@dayflow/core 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 DayFlow Contributors
3
+ Copyright (c) 2025 Jayce Li
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.d.ts CHANGED
@@ -573,7 +573,7 @@ interface CalendarAppConfig {
573
573
  defaultCalendar?: string;
574
574
  theme?: ThemeConfig;
575
575
  useEventDetailDialog?: boolean;
576
- useCalendarHeader?: boolean | ((props: CalendarHeaderProps) => TNode);
576
+ useCalendarHeader?: boolean;
577
577
  customMobileEventRenderer?: MobileEventRenderer;
578
578
  locale?: string | Locale;
579
579
  readOnly?: boolean | ReadOnlyConfig;
@@ -666,7 +666,7 @@ interface ICalendarApp {
666
666
  dismissUI: () => void;
667
667
  getPlugin: <T = unknown>(name: string) => T | undefined;
668
668
  hasPlugin: (name: string) => boolean;
669
- getCalendarHeaderConfig: () => boolean | ((props: CalendarHeaderProps) => TNode);
669
+ getCalendarHeaderConfig: () => boolean;
670
670
  triggerRender: () => void;
671
671
  getCalendarRegistry: () => CalendarRegistry;
672
672
  getUseEventDetailDialog: () => boolean;
@@ -1444,6 +1444,13 @@ interface DragPluginConfig {
1444
1444
  supportedViews: ViewType[];
1445
1445
  onEventDrop?: (updatedEvent: Event, originalEvent: Event) => void | Promise<void>;
1446
1446
  onEventResize?: (updatedEvent: Event, originalEvent: Event) => void | Promise<void>;
1447
+ /**
1448
+ * Controls cursor position relative to the drag indicator when dragging all-day events
1449
+ * in month/year views.
1450
+ * - `true` (default): cursor anchors to the start (left edge) of the indicator
1451
+ * - `false`: cursor anchors to the center of the indicator
1452
+ */
1453
+ allDayDragCursorAtStart?: boolean;
1447
1454
  [key: string]: unknown;
1448
1455
  }
1449
1456
  /**
@@ -1592,7 +1599,7 @@ declare class CalendarApp implements ICalendarApp {
1592
1599
  getCalendarRegistry: () => CalendarRegistry;
1593
1600
  getUseEventDetailDialog: () => boolean;
1594
1601
  getCustomMobileEventRenderer: () => MobileEventRenderer | undefined;
1595
- getCalendarHeaderConfig: () => boolean | ((props: CalendarHeaderProps) => TNode);
1602
+ getCalendarHeaderConfig: () => boolean;
1596
1603
  get timeZone(): string;
1597
1604
  setOverrides: (overrides: string[]) => void;
1598
1605
  updateConfig: (config: Partial<CalendarAppConfig>) => void;