dayflow-js/calendar
 Watch   
 Star   
 Fork   
7 days ago
calendar

v3.1.0

Plugin Architecture & Decoupling

This release introduces a new plugin-based architecture, further reducing the core bundle size and providing greater flexibility. Core features have been extracted into independent, optional packages.

New Plugin Packages (v1.0.0)

  • @dayflow/plugin-drag: Handles all drag-and-drop interactions (move, resize, and create).
  • @dayflow/plugin-keyboard-shortcuts: Provides keyboard navigation and shortcuts support.
  • @dayflow/plugin-localization: Dedicated package for multi-language support and internationalization.
  • @dayflow/plugin-sidebar: Extracts the sidebar UI and logic into a standalone plugin.

New Features & Enhancements

  • Enhanced Visibility Control:
    • Added onVisibleRangeChange callback with a reason parameter (scroll vs. navigation).
    • Marked onVisibleMonthChange as deprecated in favor of the more flexible range change callback.
  • Improved API: Simplified framework wrappers by removing the sidebarConfig attribute (now handled via the sidebar plugin).
  • UI Refresh: Updated the view switching button styles for a more modern look and feel.

Fixed

  • Accessibility: Fixed an event scaling issue when using the keyboard Tab key for navigation.
  • Search: Improved search result location accuracy within the calendar views.
  • Documentation: Comprehensive updates to plugin documentation and multi-language guides.

Breaking Changes

  • Feature Extraction: Drag-and-drop, keyboard shortcuts, and the sidebar are no longer included in @dayflow/core by default. You must install and register the corresponding plugins to retain these features.
  • Sidebar Configuration: The sidebarConfig prop has been removed from framework adapters. Configuration is now passed directly to the @dayflow/plugin-sidebar during initialization.

What's Changed

New Contributors

Full Changelog: https://github.com/dayflow-js/calendar/compare/v3.0.0...v3.1.0

12 days ago
calendar

DayFlow Calendar v3.0.1 Release Notes

Major Architectural Overhaul: Multi-Framework Support

This version marks a complete rewrite of the DayFlow internal architecture, moving from a React-only library to a framework-agnostic monorepo structure.

New Package Structure

  • @dayflow/core: The new heart of DayFlow. Powered by Preact, it handles all state management, layout algorithms, and the core rendering engine (~3KB gzipped).
  • @dayflow/react: High-performance React adapter.
  • @dayflow/vue: Brand new adapter for Vue 3.
  • @dayflow/svelte: Brand new adapter for Svelte 5 (with full SSR support).
  • @dayflow/angular: Brand new adapter for Angular (v14+).

New Features

  • Framework Agnostic: Core logic and UI are now decoupled from specific frameworks.
  • Improved Content Injection: New Content Slots system allowing users to inject native framework components (React/Vue/Svelte/Angular) into the Preact-driven calendar.
  • SSR Ready:
    • Svelte: Provided dedicated SSR bundles (dist/index.ssr.js) to avoid DOM reference errors during server-side rendering.
    • React/Vue: Enhanced hydration safety.

Fixed & Improved

  • Optimized mobile responsiveness for all framework adapters.
  • Improved build process using Rollup and Turborepo for faster and smaller bundles.

Breaking Changes

  • Package Names: If you were using the old dayflow package, you should now migrate to framework-specific packages (e.g., @dayflow/react).
  • Import Paths:
    • Components and hooks are now exported from @dayflow/[framework].
    • Core types and utilities are exported from @dayflow/core.
  • External Dependencies: To maintain framework-agnosticism, the built-in color picker (react-color) has been removed. Users should now provide their own color picker via Content Slots.

What's Changed

New Contributors

Full Changelog: https://github.com/dayflow-js/calendar/compare/v2.0.4...v3.0.1

22 days ago
calendar

DayFlow Calendar v2.0.3 Release Notes

Year Canvas

The year-canvas mode provides the ability to 'Year as one canvas' and see the distribution of events for an entire year at once.

image

Fixed Week Year View

We have completely reimagined the Year View (FixedWeekYearView) to provide a more powerful and continuous planning experience.

image

  • Continuous Grid Layout: Instead of 12 separate month grids, the year is now displayed as a continuous, scrollable grid of weeks. This "Fixed Week" layout aligns weeks vertically, making it perfect for long-term planning.
  • Multi-Day Event Support: Events spanning multiple days, weeks, or even months are now rendered as continuous bars, providing a clear visual representation of duration and overlap.
  • Drag & Drop: Full support for interactive event management.
    • Move: Drag events to reschedule them.
    • Resize: Drag the edges of an event to change its duration.
    • Create: Double-click any day to quickly create a new event.
  • Timed Events Display: A new configuration option showTimedEventsInYearView allows you to choose whether to display dot indicators for timed events alongside all-day event bars.

Customization

  • Weekend Styling: Added global CSS classes df-year-view-weekend-header and df-year-view-weekend-cell to easily customize the background color and appearance of weekends in the Year View.

Bug Fixes

  • Week View: Fixed an issue where clicking on the Week View could incorrectly trigger the drag indicator display.
  • Event Rendering: Resolved issues with all-day event rendering limits in Month View and Day View, ensuring events are correctly stacked and hidden/shown based on available space.
  • Scroll Synchronisation: Improved the synchronisation between the week header, month sidebar, and content grid in the Year View.

Upgrading

To use the new Year View features, ensure you are using the latest version of @dayflow/core.

npm install @dayflow/core@latest

The new Year View is enabled by default when using createYearView().

import { createYearView } from '@dayflow/core';

// ... in your useCalendarApp config
views: [
  createYearView({
    mode: 'fixed-week', // default is year-canvas
    showTimedEventsInYearView: true // Enable dots for timed events
  })
]