@dayflow/core 0.1.0

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.
Files changed (304) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +392 -0
  3. package/dist/Old/MonthView.d.ts +8 -0
  4. package/dist/Old/MonthView.d.ts.map +1 -0
  5. package/dist/Old/monthView/MonthDragIndicator.d.ts +13 -0
  6. package/dist/Old/monthView/MonthDragIndicator.d.ts.map +1 -0
  7. package/dist/Old/monthView/MultiDayEvent.d.ts +26 -0
  8. package/dist/Old/monthView/MultiDayEvent.d.ts.map +1 -0
  9. package/dist/Old/monthView/WeekComponent.d.ts +43 -0
  10. package/dist/Old/monthView/WeekComponent.d.ts.map +1 -0
  11. package/dist/Old/monthView/util.d.ts +6 -0
  12. package/dist/Old/monthView/util.d.ts.map +1 -0
  13. package/dist/Old/src/app/layout.d.ts +7 -0
  14. package/dist/Old/src/app/layout.d.ts.map +1 -0
  15. package/dist/Old/src/app/page.d.ts +2 -0
  16. package/dist/Old/src/app/page.d.ts.map +1 -0
  17. package/dist/Old/src/app/test/page.d.ts +2 -0
  18. package/dist/Old/src/app/test/page.d.ts.map +1 -0
  19. package/dist/Old/src/components/EventLayout.d.ts +134 -0
  20. package/dist/Old/src/components/EventLayout.d.ts.map +1 -0
  21. package/dist/Old/src/components/common/TodayBox.d.ts +8 -0
  22. package/dist/Old/src/components/common/TodayBox.d.ts.map +1 -0
  23. package/dist/Old/src/components/monthView/MonthDragIndicator.d.ts +13 -0
  24. package/dist/Old/src/components/monthView/MonthDragIndicator.d.ts.map +1 -0
  25. package/dist/Old/src/components/monthView/MultiDayEvent.d.ts +26 -0
  26. package/dist/Old/src/components/monthView/MultiDayEvent.d.ts.map +1 -0
  27. package/dist/Old/src/components/monthView/WeekComponent.d.ts +43 -0
  28. package/dist/Old/src/components/monthView/WeekComponent.d.ts.map +1 -0
  29. package/dist/Old/src/components/monthView/util.d.ts +6 -0
  30. package/dist/Old/src/components/monthView/util.d.ts.map +1 -0
  31. package/dist/Old/src/components/weekView/CalendarEvent.d.ts +29 -0
  32. package/dist/Old/src/components/weekView/CalendarEvent.d.ts.map +1 -0
  33. package/dist/Old/src/components/weekView/DragIndicator/DefaultDragIndicator.d.ts +3 -0
  34. package/dist/Old/src/components/weekView/DragIndicator/DefaultDragIndicator.d.ts.map +1 -0
  35. package/dist/Old/src/components/weekView/DragIndicator/DragIndicatorComponent.d.ts +8 -0
  36. package/dist/Old/src/components/weekView/DragIndicator/DragIndicatorComponent.d.ts.map +1 -0
  37. package/dist/Old/src/core/CalendarApp.d.ts +29 -0
  38. package/dist/Old/src/core/CalendarApp.d.ts.map +1 -0
  39. package/dist/Old/src/core/CalendarRenderer.d.ts +9 -0
  40. package/dist/Old/src/core/CalendarRenderer.d.ts.map +1 -0
  41. package/dist/Old/src/core/config.d.ts +61 -0
  42. package/dist/Old/src/core/config.d.ts.map +1 -0
  43. package/dist/Old/src/core/index.d.ts +8 -0
  44. package/dist/Old/src/core/index.d.ts.map +1 -0
  45. package/dist/Old/src/core/useCalendarAdapter.d.ts +4 -0
  46. package/dist/Old/src/core/useCalendarAdapter.d.ts.map +1 -0
  47. package/dist/Old/src/core/useCalendarApp.d.ts +3 -0
  48. package/dist/Old/src/core/useCalendarApp.d.ts.map +1 -0
  49. package/dist/Old/src/factories/ViewAdapter.d.ts +5 -0
  50. package/dist/Old/src/factories/ViewAdapter.d.ts.map +1 -0
  51. package/dist/Old/src/factories/createDayView.d.ts +12 -0
  52. package/dist/Old/src/factories/createDayView.d.ts.map +1 -0
  53. package/dist/Old/src/factories/createMonthView.d.ts +16 -0
  54. package/dist/Old/src/factories/createMonthView.d.ts.map +1 -0
  55. package/dist/Old/src/factories/createWeekView.d.ts +15 -0
  56. package/dist/Old/src/factories/createWeekView.d.ts.map +1 -0
  57. package/dist/Old/src/factories/createYearView.d.ts +10 -0
  58. package/dist/Old/src/factories/createYearView.d.ts.map +1 -0
  59. package/dist/Old/src/factories/index.d.ts +18 -0
  60. package/dist/Old/src/factories/index.d.ts.map +1 -0
  61. package/dist/Old/src/hooks/drag/index.d.ts +8 -0
  62. package/dist/Old/src/hooks/drag/index.d.ts.map +1 -0
  63. package/dist/Old/src/hooks/drag/useDrag.d.ts +3 -0
  64. package/dist/Old/src/hooks/drag/useDrag.d.ts.map +1 -0
  65. package/dist/Old/src/hooks/drag/useDragCommon.d.ts +3 -0
  66. package/dist/Old/src/hooks/drag/useDragCommon.d.ts.map +1 -0
  67. package/dist/Old/src/hooks/drag/useDragHandlers.d.ts +3 -0
  68. package/dist/Old/src/hooks/drag/useDragHandlers.d.ts.map +1 -0
  69. package/dist/Old/src/hooks/drag/useDragManager.d.ts +3 -0
  70. package/dist/Old/src/hooks/drag/useDragManager.d.ts.map +1 -0
  71. package/dist/Old/src/hooks/drag/useDragState.d.ts +3 -0
  72. package/dist/Old/src/hooks/drag/useDragState.d.ts.map +1 -0
  73. package/dist/Old/src/hooks/drag/useMonthDrag.d.ts +3 -0
  74. package/dist/Old/src/hooks/drag/useMonthDrag.d.ts.map +1 -0
  75. package/dist/Old/src/hooks/drag/useWeekDayDrag.d.ts +3 -0
  76. package/dist/Old/src/hooks/drag/useWeekDayDrag.d.ts.map +1 -0
  77. package/dist/Old/src/hooks/virtualScroll/index.d.ts +3 -0
  78. package/dist/Old/src/hooks/virtualScroll/index.d.ts.map +1 -0
  79. package/dist/Old/src/hooks/virtualScroll/useVirtualMonthScroll.d.ts +8 -0
  80. package/dist/Old/src/hooks/virtualScroll/useVirtualMonthScroll.d.ts.map +1 -0
  81. package/dist/Old/src/hooks/virtualScroll/useVirtualScroll.d.ts +49 -0
  82. package/dist/Old/src/hooks/virtualScroll/useVirtualScroll.d.ts.map +1 -0
  83. package/dist/Old/src/plugins/dragPlugin.d.ts +6 -0
  84. package/dist/Old/src/plugins/dragPlugin.d.ts.map +1 -0
  85. package/dist/Old/src/plugins/eventsPlugin.d.ts +4 -0
  86. package/dist/Old/src/plugins/eventsPlugin.d.ts.map +1 -0
  87. package/dist/Old/src/plugins/index.d.ts +7 -0
  88. package/dist/Old/src/plugins/index.d.ts.map +1 -0
  89. package/dist/Old/src/types/calendar.d.ts +27 -0
  90. package/dist/Old/src/types/calendar.d.ts.map +1 -0
  91. package/dist/Old/src/types/config.d.ts +20 -0
  92. package/dist/Old/src/types/config.d.ts.map +1 -0
  93. package/dist/Old/src/types/core.d.ts +148 -0
  94. package/dist/Old/src/types/core.d.ts.map +1 -0
  95. package/dist/Old/src/types/dragIndicator.d.ts +141 -0
  96. package/dist/Old/src/types/dragIndicator.d.ts.map +1 -0
  97. package/dist/Old/src/types/event.d.ts +27 -0
  98. package/dist/Old/src/types/event.d.ts.map +1 -0
  99. package/dist/Old/src/types/factory.d.ts +148 -0
  100. package/dist/Old/src/types/factory.d.ts.map +1 -0
  101. package/dist/Old/src/types/hook.d.ts +104 -0
  102. package/dist/Old/src/types/hook.d.ts.map +1 -0
  103. package/dist/Old/src/types/index.d.ts +11 -0
  104. package/dist/Old/src/types/index.d.ts.map +1 -0
  105. package/dist/Old/src/types/layout.d.ts +114 -0
  106. package/dist/Old/src/types/layout.d.ts.map +1 -0
  107. package/dist/Old/src/types/monthView.d.ts +62 -0
  108. package/dist/Old/src/types/monthView.d.ts.map +1 -0
  109. package/dist/Old/src/types/plugin.d.ts +78 -0
  110. package/dist/Old/src/types/plugin.d.ts.map +1 -0
  111. package/dist/Old/src/utils/dateFormat.d.ts +15 -0
  112. package/dist/Old/src/utils/dateFormat.d.ts.map +1 -0
  113. package/dist/Old/src/utils/helpers.d.ts +89 -0
  114. package/dist/Old/src/utils/helpers.d.ts.map +1 -0
  115. package/dist/Old/src/utils/index.d.ts +3 -0
  116. package/dist/Old/src/utils/index.d.ts.map +1 -0
  117. package/dist/Old/src/views/DayView.d.ts +8 -0
  118. package/dist/Old/src/views/DayView.d.ts.map +1 -0
  119. package/dist/Old/src/views/MonthView.d.ts +8 -0
  120. package/dist/Old/src/views/MonthView.d.ts.map +1 -0
  121. package/dist/Old/src/views/WeekView.d.ts +8 -0
  122. package/dist/Old/src/views/WeekView.d.ts.map +1 -0
  123. package/dist/Old/src/views/YearView.d.ts +8 -0
  124. package/dist/Old/src/views/YearView.d.ts.map +1 -0
  125. package/dist/Old/useVirtualMonthScroll.d.ts +8 -0
  126. package/dist/Old/useVirtualMonthScroll.d.ts.map +1 -0
  127. package/dist/components/EventLayout.d.ts +134 -0
  128. package/dist/components/EventLayout.d.ts.map +1 -0
  129. package/dist/components/common/ColorPicker.d.ts +17 -0
  130. package/dist/components/common/ColorPicker.d.ts.map +1 -0
  131. package/dist/components/common/DefaultEventDetailDialog.d.ts +9 -0
  132. package/dist/components/common/DefaultEventDetailDialog.d.ts.map +1 -0
  133. package/dist/components/common/DefaultEventDetailPanel.d.ts +8 -0
  134. package/dist/components/common/DefaultEventDetailPanel.d.ts.map +1 -0
  135. package/dist/components/common/EventDetailPanelWithContent.d.ts +12 -0
  136. package/dist/components/common/EventDetailPanelWithContent.d.ts.map +1 -0
  137. package/dist/components/common/RangePicker.d.ts +24 -0
  138. package/dist/components/common/RangePicker.d.ts.map +1 -0
  139. package/dist/components/common/TodayBox.d.ts +8 -0
  140. package/dist/components/common/TodayBox.d.ts.map +1 -0
  141. package/dist/components/common/ViewHeader.d.ts +28 -0
  142. package/dist/components/common/ViewHeader.d.ts.map +1 -0
  143. package/dist/components/common/ViewSwitcher.d.ts +9 -0
  144. package/dist/components/common/ViewSwitcher.d.ts.map +1 -0
  145. package/dist/components/monthView/MonthDragIndicator.d.ts +13 -0
  146. package/dist/components/monthView/MonthDragIndicator.d.ts.map +1 -0
  147. package/dist/components/monthView/MultiDayEvent.d.ts +26 -0
  148. package/dist/components/monthView/MultiDayEvent.d.ts.map +1 -0
  149. package/dist/components/monthView/WeekComponent.d.ts +46 -0
  150. package/dist/components/monthView/WeekComponent.d.ts.map +1 -0
  151. package/dist/components/monthView/util.d.ts +12 -0
  152. package/dist/components/monthView/util.d.ts.map +1 -0
  153. package/dist/components/sidebar/DefaultCalendarSidebar.d.ts +5 -0
  154. package/dist/components/sidebar/DefaultCalendarSidebar.d.ts.map +1 -0
  155. package/dist/components/weekView/CalendarEvent.d.ts +43 -0
  156. package/dist/components/weekView/CalendarEvent.d.ts.map +1 -0
  157. package/dist/components/weekView/DragIndicator/DefaultDragIndicator.d.ts +3 -0
  158. package/dist/components/weekView/DragIndicator/DefaultDragIndicator.d.ts.map +1 -0
  159. package/dist/components/weekView/DragIndicator/DragIndicatorComponent.d.ts +8 -0
  160. package/dist/components/weekView/DragIndicator/DragIndicatorComponent.d.ts.map +1 -0
  161. package/dist/core/CalendarApp.d.ts +43 -0
  162. package/dist/core/CalendarApp.d.ts.map +1 -0
  163. package/dist/core/CalendarRenderer.d.ts +15 -0
  164. package/dist/core/CalendarRenderer.d.ts.map +1 -0
  165. package/dist/core/DayFlowCalendar.d.ts +15 -0
  166. package/dist/core/DayFlowCalendar.d.ts.map +1 -0
  167. package/dist/core/calendarRegistry.d.ts +104 -0
  168. package/dist/core/calendarRegistry.d.ts.map +1 -0
  169. package/dist/core/config.d.ts +61 -0
  170. package/dist/core/config.d.ts.map +1 -0
  171. package/dist/core/index.d.ts +7 -0
  172. package/dist/core/index.d.ts.map +1 -0
  173. package/dist/core/useCalendarAdapter.d.ts +4 -0
  174. package/dist/core/useCalendarAdapter.d.ts.map +1 -0
  175. package/dist/core/useCalendarApp.d.ts +3 -0
  176. package/dist/core/useCalendarApp.d.ts.map +1 -0
  177. package/dist/factories/ViewAdapter.d.ts +5 -0
  178. package/dist/factories/ViewAdapter.d.ts.map +1 -0
  179. package/dist/factories/createDayView.d.ts +12 -0
  180. package/dist/factories/createDayView.d.ts.map +1 -0
  181. package/dist/factories/createMonthView.d.ts +16 -0
  182. package/dist/factories/createMonthView.d.ts.map +1 -0
  183. package/dist/factories/createWeekView.d.ts +15 -0
  184. package/dist/factories/createWeekView.d.ts.map +1 -0
  185. package/dist/factories/createYearView.d.ts +10 -0
  186. package/dist/factories/createYearView.d.ts.map +1 -0
  187. package/dist/factories/index.d.ts +18 -0
  188. package/dist/factories/index.d.ts.map +1 -0
  189. package/dist/hooks/drag/index.d.ts +8 -0
  190. package/dist/hooks/drag/index.d.ts.map +1 -0
  191. package/dist/hooks/drag/useDrag.d.ts +3 -0
  192. package/dist/hooks/drag/useDrag.d.ts.map +1 -0
  193. package/dist/hooks/drag/useDragCommon.d.ts +3 -0
  194. package/dist/hooks/drag/useDragCommon.d.ts.map +1 -0
  195. package/dist/hooks/drag/useDragHandlers.d.ts +3 -0
  196. package/dist/hooks/drag/useDragHandlers.d.ts.map +1 -0
  197. package/dist/hooks/drag/useDragManager.d.ts +3 -0
  198. package/dist/hooks/drag/useDragManager.d.ts.map +1 -0
  199. package/dist/hooks/drag/useDragState.d.ts +3 -0
  200. package/dist/hooks/drag/useDragState.d.ts.map +1 -0
  201. package/dist/hooks/drag/useMonthDrag.d.ts +3 -0
  202. package/dist/hooks/drag/useMonthDrag.d.ts.map +1 -0
  203. package/dist/hooks/drag/useWeekDayDrag.d.ts +3 -0
  204. package/dist/hooks/drag/useWeekDayDrag.d.ts.map +1 -0
  205. package/dist/hooks/useEventCreator.d.ts +63 -0
  206. package/dist/hooks/useEventCreator.d.ts.map +1 -0
  207. package/dist/hooks/virtualScroll/index.d.ts +3 -0
  208. package/dist/hooks/virtualScroll/index.d.ts.map +1 -0
  209. package/dist/hooks/virtualScroll/useVirtualMonthScroll.d.ts +8 -0
  210. package/dist/hooks/virtualScroll/useVirtualMonthScroll.d.ts.map +1 -0
  211. package/dist/hooks/virtualScroll/useVirtualScroll.d.ts +49 -0
  212. package/dist/hooks/virtualScroll/useVirtualScroll.d.ts.map +1 -0
  213. package/dist/index.d.ts +35 -0
  214. package/dist/index.d.ts.map +1 -0
  215. package/dist/index.esm.js +125 -0
  216. package/dist/index.esm.js.map +1 -0
  217. package/dist/index.js +126 -0
  218. package/dist/index.js.map +1 -0
  219. package/dist/plugins/dragPlugin.d.ts +6 -0
  220. package/dist/plugins/dragPlugin.d.ts.map +1 -0
  221. package/dist/plugins/eventsPlugin.d.ts +4 -0
  222. package/dist/plugins/eventsPlugin.d.ts.map +1 -0
  223. package/dist/plugins/index.d.ts +7 -0
  224. package/dist/plugins/index.d.ts.map +1 -0
  225. package/dist/setupTests.d.ts +2 -0
  226. package/dist/setupTests.d.ts.map +1 -0
  227. package/dist/styles/calendarClassNames.d.ts +155 -0
  228. package/dist/styles/calendarClassNames.d.ts.map +1 -0
  229. package/dist/styles/classNames.d.ts +297 -0
  230. package/dist/styles/classNames.d.ts.map +1 -0
  231. package/dist/styles.css +1 -0
  232. package/dist/types/calendar.d.ts +27 -0
  233. package/dist/types/calendar.d.ts.map +1 -0
  234. package/dist/types/calendarTypes.d.ts +69 -0
  235. package/dist/types/calendarTypes.d.ts.map +1 -0
  236. package/dist/types/config.d.ts +20 -0
  237. package/dist/types/config.d.ts.map +1 -0
  238. package/dist/types/core.d.ts +192 -0
  239. package/dist/types/core.d.ts.map +1 -0
  240. package/dist/types/dragIndicator.d.ts +155 -0
  241. package/dist/types/dragIndicator.d.ts.map +1 -0
  242. package/dist/types/event.d.ts +17 -0
  243. package/dist/types/event.d.ts.map +1 -0
  244. package/dist/types/eventDetail.d.ts +73 -0
  245. package/dist/types/eventDetail.d.ts.map +1 -0
  246. package/dist/types/factory.d.ts +154 -0
  247. package/dist/types/factory.d.ts.map +1 -0
  248. package/dist/types/hook.d.ts +104 -0
  249. package/dist/types/hook.d.ts.map +1 -0
  250. package/dist/types/index.d.ts +13 -0
  251. package/dist/types/index.d.ts.map +1 -0
  252. package/dist/types/layout.d.ts +114 -0
  253. package/dist/types/layout.d.ts.map +1 -0
  254. package/dist/types/monthView.d.ts +64 -0
  255. package/dist/types/monthView.d.ts.map +1 -0
  256. package/dist/types/plugin.d.ts +78 -0
  257. package/dist/types/plugin.d.ts.map +1 -0
  258. package/dist/utils/calendarDataUtils.d.ts +84 -0
  259. package/dist/utils/calendarDataUtils.d.ts.map +1 -0
  260. package/dist/utils/colorResolver.d.ts +33 -0
  261. package/dist/utils/colorResolver.d.ts.map +1 -0
  262. package/dist/utils/colorUtils.d.ts +27 -0
  263. package/dist/utils/colorUtils.d.ts.map +1 -0
  264. package/dist/utils/compat.d.ts +60 -0
  265. package/dist/utils/compat.d.ts.map +1 -0
  266. package/dist/utils/dateConstants.d.ts +23 -0
  267. package/dist/utils/dateConstants.d.ts.map +1 -0
  268. package/dist/utils/dateFormat.d.ts +16 -0
  269. package/dist/utils/dateFormat.d.ts.map +1 -0
  270. package/dist/utils/dateRangeUtils.d.ts +25 -0
  271. package/dist/utils/dateRangeUtils.d.ts.map +1 -0
  272. package/dist/utils/dateTimeUtils.d.ts +50 -0
  273. package/dist/utils/dateTimeUtils.d.ts.map +1 -0
  274. package/dist/utils/eventHelpers.d.ts +144 -0
  275. package/dist/utils/eventHelpers.d.ts.map +1 -0
  276. package/dist/utils/eventUtils.d.ts +109 -0
  277. package/dist/utils/eventUtils.d.ts.map +1 -0
  278. package/dist/utils/helpers.d.ts +27 -0
  279. package/dist/utils/helpers.d.ts.map +1 -0
  280. package/dist/utils/index.d.ts +7 -0
  281. package/dist/utils/index.d.ts.map +1 -0
  282. package/dist/utils/logger.d.ts +16 -0
  283. package/dist/utils/logger.d.ts.map +1 -0
  284. package/dist/utils/rangePicker.d.ts +9 -0
  285. package/dist/utils/rangePicker.d.ts.map +1 -0
  286. package/dist/utils/temporal.d.ts +101 -0
  287. package/dist/utils/temporal.d.ts.map +1 -0
  288. package/dist/utils/temporalTypeGuards.d.ts +64 -0
  289. package/dist/utils/temporalTypeGuards.d.ts.map +1 -0
  290. package/dist/utils/testDataUtils.d.ts +15 -0
  291. package/dist/utils/testDataUtils.d.ts.map +1 -0
  292. package/dist/utils/timeUtils.d.ts +39 -0
  293. package/dist/utils/timeUtils.d.ts.map +1 -0
  294. package/dist/utils/utilityFunctions.d.ts +12 -0
  295. package/dist/utils/utilityFunctions.d.ts.map +1 -0
  296. package/dist/views/DayView.d.ts +14 -0
  297. package/dist/views/DayView.d.ts.map +1 -0
  298. package/dist/views/MonthView.d.ts +14 -0
  299. package/dist/views/MonthView.d.ts.map +1 -0
  300. package/dist/views/WeekView.d.ts +14 -0
  301. package/dist/views/WeekView.d.ts.map +1 -0
  302. package/dist/views/YearView.d.ts +8 -0
  303. package/dist/views/YearView.d.ts.map +1 -0
  304. package/package.json +94 -0
@@ -0,0 +1,101 @@
1
+ /**
2
+ * Temporal API utility functions
3
+ * Provides date-time processing, conversion, and compatibility support
4
+ */
5
+ import { Temporal } from 'temporal-polyfill';
6
+ /**
7
+ * Check if value is Temporal.PlainDate
8
+ * Uses multiple methods to check, handling polyfill and serialization issues
9
+ */
10
+ export declare function isPlainDate(date: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime): date is Temporal.PlainDate;
11
+ /**
12
+ * Check if value is Temporal.ZonedDateTime
13
+ */
14
+ export declare function isZonedDateTime(date: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime): date is Temporal.ZonedDateTime;
15
+ /**
16
+ * Check if value is Date object
17
+ */
18
+ export declare function isDate(value: any): value is Date;
19
+ /**
20
+ * Convert Date to Temporal.ZonedDateTime
21
+ * @param date Date object
22
+ * @param timeZone Timezone (defaults to system timezone)
23
+ * @returns Temporal.ZonedDateTime
24
+ */
25
+ export declare function dateToZonedDateTime(date: Date, timeZone?: string): Temporal.ZonedDateTime;
26
+ /**
27
+ * Convert Date to Temporal.PlainDate
28
+ * @param date Date object
29
+ * @returns Temporal.PlainDate
30
+ */
31
+ export declare function dateToPlainDate(date: Date): Temporal.PlainDate;
32
+ /**
33
+ * Convert Temporal.ZonedDateTime to Date
34
+ * @param zdt Temporal.ZonedDateTime
35
+ * @returns Date object
36
+ */
37
+ export declare function zonedDateTimeToDate(zdt: Temporal.ZonedDateTime): Date;
38
+ /**
39
+ * Convert Temporal.PlainDate to Date
40
+ * @param plainDate Temporal.PlainDate
41
+ * @param timeZone Timezone (optional)
42
+ * @returns Date object (time set to 00:00:00)
43
+ */
44
+ export declare function plainDateToDate(plainDate: Temporal.PlainDate, timeZone?: string): Date;
45
+ /**
46
+ * Convert Temporal (PlainDate | ZonedDateTime) to Date
47
+ * @param temporal Temporal date-time object
48
+ * @param timeZone Timezone (optional, only used for PlainDate)
49
+ * @returns Date object
50
+ */
51
+ export declare function temporalToDate(temporal: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime, timeZone?: string): Date;
52
+ /**
53
+ * Extract hour number (with decimals) from Temporal object
54
+ * @param temporal Temporal time object
55
+ * @returns Hour number (0-24, supports decimals), returns 0 if PlainDate
56
+ */
57
+ export declare function extractHourFromTemporal(temporal: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime): number;
58
+ /**
59
+ * Create new Temporal object with specified hour
60
+ * @param temporal Base Temporal object
61
+ * @param hour Hour number (supports decimals)
62
+ * @returns New Temporal (PlainDateTime or ZonedDateTime)
63
+ */
64
+ export declare function createTemporalWithHour(temporal: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime, hour: number): Temporal.PlainDateTime | Temporal.ZonedDateTime;
65
+ /**
66
+ * Check if two Temporal dates are on the same day
67
+ */
68
+ export declare function isSamePlainDate(date1: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime, date2: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime): boolean;
69
+ /**
70
+ * Check if event spans multiple days
71
+ */
72
+ export declare function isMultiDayTemporalEvent(start: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime, end: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime): boolean;
73
+ /**
74
+ * Get start time of Temporal date (00:00:00)
75
+ */
76
+ export declare function getStartOfTemporal(temporal: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime, timeZone?: string): Temporal.ZonedDateTime;
77
+ /**
78
+ * Get end time of Temporal date (23:59:59.999)
79
+ */
80
+ export declare function getEndOfTemporal(temporal: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime, timeZone?: string): Temporal.ZonedDateTime;
81
+ /**
82
+ * Calculate days difference between two Temporal dates
83
+ */
84
+ export declare function daysBetween(start: Temporal.PlainDate | Temporal.ZonedDateTime, end: Temporal.PlainDate | Temporal.ZonedDateTime): number;
85
+ /**
86
+ * Calculate days difference between two Date objects (ignoring time component)
87
+ */
88
+ export declare function daysDifference(date1: Date, date2: Date): number;
89
+ /**
90
+ * Add specified days to a date
91
+ */
92
+ export declare function addDays(date: Date, days: number): Date;
93
+ /**
94
+ * Get current time (Temporal.ZonedDateTime)
95
+ */
96
+ export declare function now(timeZone?: string): Temporal.ZonedDateTime;
97
+ /**
98
+ * Get today's date (Temporal.PlainDate)
99
+ */
100
+ export declare function today(timeZone?: string): Temporal.PlainDate;
101
+ //# sourceMappingURL=temporal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporal.d.ts","sourceRoot":"","sources":["../../src/utils/temporal.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Temporal Type Guards and Conversion Utilities
3
+ *
4
+ * This module provides type guards for distinguishing between different Temporal types
5
+ * and unified conversion functions for internal processing.
6
+ */
7
+ import { Temporal } from 'temporal-polyfill';
8
+ /**
9
+ * Check if temporal is PlainDate (date only, no time)
10
+ */
11
+ export declare function isPlainDate(temporal: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime): temporal is Temporal.PlainDate;
12
+ /**
13
+ * Check if temporal is PlainDateTime (date + time, no timezone)
14
+ */
15
+ export declare function isPlainDateTime(temporal: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime): temporal is Temporal.PlainDateTime;
16
+ /**
17
+ * Check if temporal is ZonedDateTime (date + time + timezone)
18
+ */
19
+ export declare function isZonedDateTime(temporal: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime): temporal is Temporal.ZonedDateTime;
20
+ /**
21
+ * Convert any Temporal type to Date (for internal processing)
22
+ * Handles all three Temporal types uniformly
23
+ */
24
+ export declare function temporalToDate(temporal: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime): Date;
25
+ /**
26
+ * Convert Date to PlainDate (for all-day events)
27
+ */
28
+ export declare function dateToPlainDate(date: Date): Temporal.PlainDate;
29
+ /**
30
+ * Convert Date to PlainDateTime (for local events without timezone)
31
+ */
32
+ export declare function dateToPlainDateTime(date: Date): Temporal.PlainDateTime;
33
+ /**
34
+ * Convert Date to ZonedDateTime (for timezone-aware events)
35
+ */
36
+ export declare function dateToZonedDateTime(date: Date, timeZone: string): Temporal.ZonedDateTime;
37
+ /**
38
+ * Convert PlainDateTime to Date
39
+ */
40
+ export declare function plainDateTimeToDate(pdt: Temporal.PlainDateTime): Date;
41
+ /**
42
+ * Convert PlainDate to Date (at midnight)
43
+ */
44
+ export declare function plainDateToDate(pd: Temporal.PlainDate): Date;
45
+ /**
46
+ * Extract hour from any Temporal type (with decimal for minutes)
47
+ * @returns Hour number (0-24, with decimals, e.g., 14.5 = 14:30)
48
+ */
49
+ export declare function extractHourFromTemporal(temporal: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime): number;
50
+ /**
51
+ * Create a new Temporal with specified hour (supports PlainDateTime and ZonedDateTime)
52
+ * @param temporal Base temporal object
53
+ * @param hour Hour with decimals (e.g., 14.5 = 14:30)
54
+ */
55
+ export declare function setHourInTemporal(temporal: Temporal.PlainDateTime | Temporal.ZonedDateTime, hour: number): Temporal.PlainDateTime | Temporal.ZonedDateTime;
56
+ /**
57
+ * Check if two Temporal objects represent the same day
58
+ */
59
+ export declare function isSameTemporal(t1: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime, t2: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime): boolean;
60
+ /**
61
+ * Get PlainDate from any Temporal type
62
+ */
63
+ export declare function getPlainDate(temporal: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime): Temporal.PlainDate;
64
+ //# sourceMappingURL=temporalTypeGuards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporalTypeGuards.d.ts","sourceRoot":"","sources":["../../src/utils/temporalTypeGuards.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAM7C;;GAEG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,GAC7E,QAAQ,IAAI,QAAQ,CAAC,SAAS,CAEhC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,GAC7E,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAEpC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,GAC7E,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAEpC;AAMD;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,GAC7E,IAAI,CAsBN;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,CAM9D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,QAAQ,CAAC,aAAa,CAUtE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,GACf,QAAQ,CAAC,aAAa,CAWxB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAUrE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAE5D;AAMD;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,GAC7E,MAAM,CASR;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,EACzD,IAAI,EAAE,MAAM,GACX,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,CAUjD;AAMD;;GAEG;AACH,wBAAgB,cAAc,CAC5B,EAAE,EAAE,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,EACxE,EAAE,EAAE,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,GACvE,OAAO,CAeT;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,GAC7E,QAAQ,CAAC,SAAS,CAQpB"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Test Data Generation Utilities
3
+ *
4
+ * This module provides test/demo event data for calendar development and testing.
5
+ * The generated events are relative to the current week for consistent demo experience.
6
+ */
7
+ import { Event } from '@/types';
8
+ /**
9
+ * Generate test events for calendar demo/testing
10
+ * Events are generated relative to the current week (Monday-Sunday)
11
+ * Includes various overlapping events, all-day events, and edge cases
12
+ * @returns Array of test events
13
+ */
14
+ export declare function getTestEvents(): Event[];
15
+ //# sourceMappingURL=testDataUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testDataUtils.d.ts","sourceRoot":"","sources":["../../src/utils/testDataUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMhC;;;;;GAKG;AACH,wBAAgB,aAAa,IAAI,KAAK,EAAE,CA4ZvC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Time Utilities
3
+ *
4
+ * This module provides utilities for time formatting, calculations, and time step operations.
5
+ * Handles 24-hour format, time rounding, and special cases like midnight crossings.
6
+ */
7
+ import { Event } from '@/types';
8
+ /**
9
+ * Time step for calendar grid (0.25 = 15 minutes)
10
+ */
11
+ export declare const TIME_STEP = 0.25;
12
+ /**
13
+ * Format hours and minutes to HH:MM format
14
+ * @param hours Hour number (supports decimals, e.g., 14.5 = 14:30)
15
+ * @param minutes Optional minutes (if not provided, extracted from decimal hours)
16
+ * @returns Formatted time string (e.g., "14:30")
17
+ */
18
+ export declare const formatTime: (hours: number, minutes?: number) => string;
19
+ /**
20
+ * Format event time range as a string
21
+ * @param event Event object
22
+ * @returns Formatted time range (e.g., "14:00 - 16:00" or "All day")
23
+ */
24
+ export declare const formatEventTimeRange: (event: Event) => string;
25
+ /**
26
+ * Round hour to nearest time step
27
+ * @param hour Hour number
28
+ * @returns Rounded hour
29
+ */
30
+ export declare const roundToTimeStep: (hour: number) => number;
31
+ /**
32
+ * Get event end hour (handles cross-day events less than 24 hours)
33
+ * When an event ends exactly at midnight of the next day and duration is less than 24 hours,
34
+ * it should be treated as 24:00 of the current day in week/day views to avoid displaying as next day 00:00.
35
+ * @param event Event object
36
+ * @returns End hour (0-24)
37
+ */
38
+ export declare const getEventEndHour: (event: Event) => number;
39
+ //# sourceMappingURL=timeUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeUtils.d.ts","sourceRoot":"","sources":["../../src/utils/timeUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQhC;;GAEG;AACH,eAAO,MAAM,SAAS,OAAO,CAAC;AAE9B;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,EAAE,gBAAW,WAIpD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,KAAK,WAOhD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,WAG3C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,KAAK,KAAG,MAmC9C,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * General Utility Functions
3
+ *
4
+ * This module provides general-purpose utility functions that don't fit
5
+ * into other specialized categories.
6
+ */
7
+ /**
8
+ * Generate unique key (using timestamp and random number combination)
9
+ * @returns Unique key string
10
+ */
11
+ export declare function generateUniKey(): string;
12
+ //# sourceMappingURL=utilityFunctions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilityFunctions.d.ts","sourceRoot":"","sources":["../../src/utils/utilityFunctions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;;GAGG;AACH,wBAAgB,cAAc,WAE7B"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { CalendarApp } from '@/core';
3
+ import { EventDetailContentRenderer, EventDetailDialogRenderer } from '@/types';
4
+ import { ViewSwitcherMode } from '@/components/common/ViewHeader';
5
+ interface DayViewProps {
6
+ app: CalendarApp;
7
+ customDetailPanelContent?: EventDetailContentRenderer;
8
+ customEventDetailDialog?: EventDetailDialogRenderer;
9
+ calendarRef: React.RefObject<HTMLDivElement | null>;
10
+ switcherMode?: ViewSwitcherMode;
11
+ }
12
+ declare const DayView: React.FC<DayViewProps>;
13
+ export default DayView;
14
+ //# sourceMappingURL=DayView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DayView.d.ts","sourceRoot":"","sources":["../../src/views/DayView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AASrC,OAAO,EAGL,0BAA0B,EAC1B,yBAAyB,EAE1B,MAAM,SAAS,CAAC;AAMjB,OAAmB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAqC9E,UAAU,YAAY;IACpB,GAAG,EAAE,WAAW,CAAC;IACjB,wBAAwB,CAAC,EAAE,0BAA0B,CAAC;IACtD,uBAAuB,CAAC,EAAE,yBAAyB,CAAC;IACpD,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAmkBnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { CalendarApp } from '@/core';
3
+ import { EventDetailContentRenderer, EventDetailDialogRenderer } from '@/types';
4
+ import { ViewSwitcherMode } from '@/components/common/ViewHeader';
5
+ interface MonthViewProps {
6
+ app: CalendarApp;
7
+ customDetailPanelContent?: EventDetailContentRenderer;
8
+ customEventDetailDialog?: EventDetailDialogRenderer;
9
+ calendarRef: React.RefObject<HTMLDivElement | null>;
10
+ switcherMode?: ViewSwitcherMode;
11
+ }
12
+ declare const MonthView: React.FC<MonthViewProps>;
13
+ export default MonthView;
14
+ //# sourceMappingURL=MonthView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MonthView.d.ts","sourceRoot":"","sources":["../../src/views/MonthView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGrC,OAAO,EAIL,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAOjB,OAAmB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAW9E,UAAU,cAAc;IACtB,GAAG,EAAE,WAAW,CAAC;IACjB,wBAAwB,CAAC,EAAE,0BAA0B,CAAC;IACtD,uBAAuB,CAAC,EAAE,yBAAyB,CAAC;IACpD,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA0ZvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { CalendarApp } from '@/core';
3
+ import { EventDetailContentRenderer, EventDetailDialogRenderer } from '@/types';
4
+ import { ViewSwitcherMode } from '@/components/common/ViewHeader';
5
+ interface WeekViewProps {
6
+ app: CalendarApp;
7
+ customDetailPanelContent?: EventDetailContentRenderer;
8
+ customEventDetailDialog?: EventDetailDialogRenderer;
9
+ calendarRef: React.RefObject<HTMLDivElement | null>;
10
+ switcherMode?: ViewSwitcherMode;
11
+ }
12
+ declare const WeekView: React.FC<WeekViewProps>;
13
+ export default WeekView;
14
+ //# sourceMappingURL=WeekView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WeekView.d.ts","sourceRoot":"","sources":["../../src/views/WeekView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAQrC,OAAO,EAGL,0BAA0B,EAC1B,yBAAyB,EAE1B,MAAM,SAAS,CAAC;AAMjB,OAAmB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAsB9E,UAAU,aAAa;IACrB,GAAG,EAAE,WAAW,CAAC;IACjB,wBAAwB,CAAC,EAAE,0BAA0B,CAAC;IACtD,uBAAuB,CAAC,EAAE,yBAAyB,CAAC;IACpD,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmoBrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { CalendarApp } from '@/core';
3
+ interface YearViewProps {
4
+ app: CalendarApp;
5
+ }
6
+ declare const VirtualizedYearView: React.FC<YearViewProps>;
7
+ export default VirtualizedYearView;
8
+ //# sourceMappingURL=YearView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"YearView.d.ts","sourceRoot":"","sources":["../../src/views/YearView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AASrC,UAAU,aAAa;IACrB,GAAG,EAAE,WAAW,CAAC;CAClB;AAqBD,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA0ThD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "@dayflow/core",
3
+ "version": "0.1.0",
4
+ "description": "A flexible and feature-rich calendar component library for React applications with drag-and-drop support, multiple views (Day, Week, Month, Year), and plugin architecture",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "README.md",
11
+ "LICENSE"
12
+ ],
13
+ "sideEffects": [
14
+ "*.css",
15
+ "**/*.css"
16
+ ],
17
+ "keywords": [
18
+ "react",
19
+ "calendar",
20
+ "schedule",
21
+ "events",
22
+ "typescript",
23
+ "drag-drop",
24
+ "react-calendar",
25
+ "event-calendar",
26
+ "day-view",
27
+ "week-view",
28
+ "month-view",
29
+ "year-view",
30
+ "virtual-scroll",
31
+ "plugin-architecture"
32
+ ],
33
+ "author": "Jayce Li",
34
+ "license": "MIT",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "https://github.com/JayceV552/DayFlow.git"
38
+ },
39
+ "bugs": {
40
+ "url": "https://github.com/JayceV552/DayFlow/issues"
41
+ },
42
+ "homepage": "https://github.com/JayceV552/DayFlow#readme",
43
+ "scripts": {
44
+ "dev": "vite --port 5529",
45
+ "build": "rollup -c --bundleConfigAsCjs",
46
+ "typecheck": "tsc --noEmit",
47
+ "test": "jest",
48
+ "test:watch": "jest --watch",
49
+ "test:coverage": "jest --coverage",
50
+ "prepublishOnly": "npm run typecheck && npm run test && npm run build"
51
+ },
52
+ "peerDependencies": {
53
+ "react": ">=18.0.0",
54
+ "react-dom": ">=18.0.0"
55
+ },
56
+ "dependencies": {
57
+ "lodash": "^4.17.21",
58
+ "lucide-react": "^0.487.0",
59
+ "temporal-polyfill": "^0.3.0",
60
+ "tslib": "^2.8.1"
61
+ },
62
+ "devDependencies": {
63
+ "@rollup/plugin-commonjs": "^28.0.2",
64
+ "@rollup/plugin-node-resolve": "^16.0.0",
65
+ "@rollup/plugin-typescript": "^12.1.2",
66
+ "@tailwindcss/postcss": "^4.1.14",
67
+ "@testing-library/jest-dom": "^6.9.1",
68
+ "@testing-library/react": "^14.3.1",
69
+ "@testing-library/user-event": "^14.6.1",
70
+ "@types/jest": "^29.5.14",
71
+ "@types/lodash": "^4.17.13",
72
+ "@types/node": "^22.10.2",
73
+ "@types/react": "^19.0.6",
74
+ "@types/react-dom": "^19.0.2",
75
+ "@vitejs/plugin-react": "^4.7.0",
76
+ "autoprefixer": "^10.4.21",
77
+ "identity-obj-proxy": "^3.0.0",
78
+ "jest": "^29.7.0",
79
+ "jest-environment-jsdom": "^29.7.0",
80
+ "postcss": "^8.5.6",
81
+ "prettier": "^3.6.2",
82
+ "react": "^19.2.0",
83
+ "react-dom": "^19.2.0",
84
+ "rollup": "^4.29.1",
85
+ "rollup-plugin-peer-deps-external": "^2.2.4",
86
+ "rollup-plugin-postcss": "^4.0.2",
87
+ "rollup-plugin-terser": "^7.0.2",
88
+ "rollup-plugin-visualizer": "^6.0.5",
89
+ "tailwindcss": "^4.1.14",
90
+ "ts-jest": "^29.4.5",
91
+ "typescript": "^5.7.2",
92
+ "vite": "^5.4.20"
93
+ }
94
+ }