@btst/stack 1.5.0 → 1.5.2
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/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/DayPicker.cjs +14 -2
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/DayPicker.mjs +14 -2
- package/dist/node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.0/node_modules/react-day-picker/dist/esm/noonDateLib.cjs +162 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.0/node_modules/react-day-picker/dist/esm/noonDateLib.mjs +160 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.cjs +12 -8
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.mjs +12 -8
- package/dist/packages/better-stack/src/plugins/blog/client/components/pages/edit-post-page.internal.cjs +7 -6
- package/dist/packages/better-stack/src/plugins/blog/client/components/pages/edit-post-page.internal.mjs +7 -6
- package/dist/packages/better-stack/src/plugins/blog/client/components/pages/home-page.internal.cjs +9 -7
- package/dist/packages/better-stack/src/plugins/blog/client/components/pages/home-page.internal.mjs +9 -7
- package/dist/packages/better-stack/src/plugins/blog/client/components/pages/new-post-page.internal.cjs +7 -6
- package/dist/packages/better-stack/src/plugins/blog/client/components/pages/new-post-page.internal.mjs +7 -6
- package/dist/packages/better-stack/src/plugins/blog/client/components/pages/post-page.internal.cjs +7 -5
- package/dist/packages/better-stack/src/plugins/blog/client/components/pages/post-page.internal.mjs +7 -5
- package/dist/packages/better-stack/src/plugins/blog/client/components/pages/tag-page.internal.cjs +5 -3
- package/dist/packages/better-stack/src/plugins/blog/client/components/pages/tag-page.internal.mjs +5 -3
- package/dist/packages/better-stack/src/plugins/blog/client/plugin.cjs +6 -6
- package/dist/packages/better-stack/src/plugins/blog/client/plugin.mjs +6 -6
- package/dist/packages/better-stack/src/plugins/cms/api/plugin.cjs +33 -4
- package/dist/packages/better-stack/src/plugins/cms/api/plugin.mjs +33 -4
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.cjs +26 -141
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.mjs +24 -139
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.mjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +19 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.mjs +19 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.cjs +19 -6
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.mjs +19 -6
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.cjs +18 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.mjs +18 -2
- package/dist/packages/better-stack/src/plugins/cms/client/plugin.cjs +112 -22
- package/dist/packages/better-stack/src/plugins/cms/client/plugin.mjs +112 -22
- package/dist/packages/better-stack/src/plugins/cms/db.cjs +4 -0
- package/dist/packages/better-stack/src/plugins/cms/db.mjs +4 -0
- package/dist/packages/better-stack/src/plugins/cms/schemas.cjs +0 -1
- package/dist/packages/better-stack/src/plugins/cms/schemas.mjs +0 -1
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/common/label.cjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/common/label.mjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/config.cjs +0 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/config.mjs +0 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/array.cjs +15 -29
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/array.mjs +16 -16
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/checkbox.cjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/checkbox.mjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/date.cjs +29 -5
- package/dist/packages/ui/src/components/auto-form/fields/date.mjs +59 -0
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/enum.cjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/enum.mjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/input.cjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/input.mjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/number.cjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/number.mjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/object.cjs +7 -4
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/object.mjs +8 -5
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/radio-group.cjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/radio-group.mjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/switch.cjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/switch.mjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/textarea.cjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/textarea.mjs +2 -2
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/index.cjs +3 -3
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/index.mjs +3 -3
- package/dist/packages/ui/src/components/auto-form/utils.cjs +306 -0
- package/dist/packages/ui/src/components/auto-form/utils.mjs +294 -0
- package/dist/packages/ui/src/components/calendar.cjs +2 -2
- package/dist/packages/ui/src/components/calendar.mjs +2 -2
- package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/hooks}/use-route-lifecycle.cjs +8 -9
- package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/hooks}/use-route-lifecycle.mjs +1 -2
- package/dist/plugins/blog/api/index.d.cts +1 -1
- package/dist/plugins/blog/api/index.d.mts +1 -1
- package/dist/plugins/blog/api/index.d.ts +1 -1
- package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
- package/dist/plugins/blog/client/index.d.cts +1 -1
- package/dist/plugins/blog/client/index.d.mts +1 -1
- package/dist/plugins/blog/client/index.d.ts +1 -1
- package/dist/plugins/blog/query-keys.d.cts +2 -2
- package/dist/plugins/blog/query-keys.d.mts +2 -2
- package/dist/plugins/blog/query-keys.d.ts +2 -2
- package/dist/plugins/cms/api/index.d.cts +2 -4
- package/dist/plugins/cms/api/index.d.mts +2 -4
- package/dist/plugins/cms/api/index.d.ts +2 -4
- package/dist/plugins/cms/client/hooks/index.d.cts +1 -4
- package/dist/plugins/cms/client/hooks/index.d.mts +1 -4
- package/dist/plugins/cms/client/hooks/index.d.ts +1 -4
- package/dist/plugins/cms/client/index.d.cts +178 -5
- package/dist/plugins/cms/client/index.d.mts +178 -5
- package/dist/plugins/cms/client/index.d.ts +178 -5
- package/dist/plugins/cms/query-keys.d.cts +1 -4
- package/dist/plugins/cms/query-keys.d.mts +1 -4
- package/dist/plugins/cms/query-keys.d.ts +1 -4
- package/dist/shared/{stack.DwnJA87a.d.ts → stack.L-UFwz2G.d.cts} +14 -14
- package/dist/shared/{stack.BwkyFwF8.d.cts → stack.L-UFwz2G.d.mts} +14 -14
- package/dist/shared/{stack.DBqxCs0V.d.mts → stack.L-UFwz2G.d.ts} +14 -14
- package/package.json +1 -1
- package/src/plugins/blog/client/components/pages/edit-post-page.internal.tsx +4 -3
- package/src/plugins/blog/client/components/pages/home-page.internal.tsx +4 -2
- package/src/plugins/blog/client/components/pages/new-post-page.internal.tsx +4 -3
- package/src/plugins/blog/client/components/pages/post-page.internal.tsx +4 -2
- package/src/plugins/blog/client/components/pages/tag-page.internal.tsx +4 -2
- package/src/plugins/blog/client/plugin.tsx +10 -9
- package/src/plugins/cms/__tests__/schema-roundtrip.test.ts +195 -0
- package/src/plugins/cms/api/plugin.ts +65 -4
- package/src/plugins/cms/client/components/forms/content-form.tsx +50 -234
- package/src/plugins/cms/client/components/forms/file-upload.tsx +3 -3
- package/src/plugins/cms/client/components/pages/content-editor-page.internal.tsx +21 -3
- package/src/plugins/cms/client/components/pages/content-list-page.internal.tsx +21 -6
- package/src/plugins/cms/client/components/pages/dashboard-page.internal.tsx +20 -3
- package/src/plugins/cms/client/index.ts +2 -2
- package/src/plugins/cms/client/overrides.ts +1 -1
- package/src/plugins/cms/client/plugin.tsx +236 -25
- package/src/plugins/cms/db.ts +4 -0
- package/src/plugins/cms/schemas.ts +1 -1
- package/src/plugins/cms/types.ts +14 -17
- package/dist/packages/ui/src/components/ui/auto-form/fields/date.mjs +0 -35
- package/dist/packages/ui/src/components/ui/auto-form/fields/file.cjs +0 -63
- package/dist/packages/ui/src/components/ui/auto-form/fields/file.mjs +0 -61
- package/dist/packages/ui/src/components/ui/auto-form/utils.cjs +0 -179
- package/dist/packages/ui/src/components/ui/auto-form/utils.mjs +0 -169
- package/dist/shared/stack.NZJogTUn.d.cts +0 -66
- package/dist/shared/stack.NZJogTUn.d.mts +0 -66
- package/dist/shared/stack.NZJogTUn.d.ts +0 -66
- package/src/plugins/blog/client/components/shared/use-route-lifecycle.tsx +0 -68
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/UI.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/UI.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarDay.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarDay.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/DateLib.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/DateLib.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Button.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Button.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/CaptionLabel.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/CaptionLabel.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Chevron.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Chevron.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Day.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Day.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DayButton.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DayButton.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Dropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Dropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DropdownNav.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DropdownNav.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Footer.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Footer.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Month.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Month.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthCaption.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthCaption.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthGrid.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthGrid.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Months.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Months.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Nav.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Nav.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/NextMonthButton.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/NextMonthButton.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Option.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Option.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Root.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Root.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Select.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Select.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Week.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Week.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumber.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumber.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekday.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekday.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekdays.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekdays.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weeks.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weeks.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/YearsDropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/YearsDropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/custom-components.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/custom-components.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatCaption.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatCaption.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatDay.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatDay.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/index.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/index.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getComponents.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getComponents.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDates.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDates.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDays.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDays.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFormatters.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFormatters.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getLabels.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getLabels.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonths.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonths.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeeks.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeeks.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/index.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/index.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelDayButton.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelDayButton.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGrid.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGrid.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGridcell.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGridcell.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNav.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNav.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNext.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNext.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelPrevious.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelPrevious.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekday.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekday.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/locale/en-US.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/locale/en-US.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useMulti.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useMulti.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useRange.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useRange.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useSingle.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useSingle.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useAnimation.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useAnimation.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useCalendar.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useCalendar.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useDayPicker.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useDayPicker.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useFocus.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useFocus.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useSelection.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useSelection.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/addToRange.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/addToRange.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/toTimeZone.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/toTimeZone.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/typeguards.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/typeguards.mjs +0 -0
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/common/tooltip.cjs +0 -0
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/common/tooltip.mjs +0 -0
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/dependencies.cjs +0 -0
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/dependencies.mjs +0 -0
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/types.cjs +0 -0
- package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/types.mjs +0 -0
- package/dist/shared/{stack.CcI4sYJP.d.cts → stack.DLhzx1-D.d.cts} +1 -1
- package/dist/shared/{stack.CcI4sYJP.d.mts → stack.DLhzx1-D.d.mts} +1 -1
- package/dist/shared/{stack.CcI4sYJP.d.ts → stack.DLhzx1-D.d.ts} +1 -1
|
@@ -29,24 +29,104 @@ const ContentEditorPageComponent = lazy(() =>
|
|
|
29
29
|
* Context passed to loader hooks
|
|
30
30
|
*/
|
|
31
31
|
export interface LoaderContext {
|
|
32
|
+
/** Current route path */
|
|
32
33
|
path: string;
|
|
34
|
+
/** Route parameters (e.g., { typeSlug: "product", id: "123" }) */
|
|
33
35
|
params?: Record<string, string>;
|
|
36
|
+
/** Whether rendering on server (true) or client (false) */
|
|
34
37
|
isSSR: boolean;
|
|
38
|
+
/** Base URL for API calls */
|
|
35
39
|
apiBaseURL: string;
|
|
40
|
+
/** Path where the API is mounted */
|
|
36
41
|
apiBasePath: string;
|
|
42
|
+
/** Optional headers for the request */
|
|
37
43
|
headers?: Headers;
|
|
44
|
+
/** Additional context properties */
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Hooks for CMS client plugin
|
|
50
|
+
* All hooks are optional and allow consumers to customize behavior
|
|
51
|
+
*/
|
|
52
|
+
export interface CMSClientHooks {
|
|
53
|
+
/**
|
|
54
|
+
* Called before loading the dashboard page. Return false to cancel loading.
|
|
55
|
+
* @param context - Loader context with path, params, etc.
|
|
56
|
+
*/
|
|
57
|
+
beforeLoadDashboard?: (context: LoaderContext) => Promise<boolean> | boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Called after the dashboard is loaded.
|
|
60
|
+
* @param context - Loader context
|
|
61
|
+
*/
|
|
62
|
+
afterLoadDashboard?: (context: LoaderContext) => Promise<void> | void;
|
|
63
|
+
/**
|
|
64
|
+
* Called before loading a content list page. Return false to cancel loading.
|
|
65
|
+
* @param typeSlug - The content type slug
|
|
66
|
+
* @param context - Loader context
|
|
67
|
+
*/
|
|
68
|
+
beforeLoadContentList?: (
|
|
69
|
+
typeSlug: string,
|
|
70
|
+
context: LoaderContext,
|
|
71
|
+
) => Promise<boolean> | boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Called after a content list is loaded.
|
|
74
|
+
* @param typeSlug - The content type slug
|
|
75
|
+
* @param context - Loader context
|
|
76
|
+
*/
|
|
77
|
+
afterLoadContentList?: (
|
|
78
|
+
typeSlug: string,
|
|
79
|
+
context: LoaderContext,
|
|
80
|
+
) => Promise<void> | void;
|
|
81
|
+
/**
|
|
82
|
+
* Called before loading the content editor page. Return false to cancel loading.
|
|
83
|
+
* @param typeSlug - The content type slug
|
|
84
|
+
* @param id - The content item ID (undefined for new items)
|
|
85
|
+
* @param context - Loader context
|
|
86
|
+
*/
|
|
87
|
+
beforeLoadContentEditor?: (
|
|
88
|
+
typeSlug: string,
|
|
89
|
+
id: string | undefined,
|
|
90
|
+
context: LoaderContext,
|
|
91
|
+
) => Promise<boolean> | boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Called after the content editor is loaded.
|
|
94
|
+
* @param typeSlug - The content type slug
|
|
95
|
+
* @param id - The content item ID (undefined for new items)
|
|
96
|
+
* @param context - Loader context
|
|
97
|
+
*/
|
|
98
|
+
afterLoadContentEditor?: (
|
|
99
|
+
typeSlug: string,
|
|
100
|
+
id: string | undefined,
|
|
101
|
+
context: LoaderContext,
|
|
102
|
+
) => Promise<void> | void;
|
|
103
|
+
/**
|
|
104
|
+
* Called when a loading error occurs.
|
|
105
|
+
* Use this for redirects on authorization failures.
|
|
106
|
+
* @param error - The error that occurred
|
|
107
|
+
* @param context - Loader context
|
|
108
|
+
*/
|
|
109
|
+
onLoadError?: (error: Error, context: LoaderContext) => Promise<void> | void;
|
|
38
110
|
}
|
|
39
111
|
|
|
40
112
|
/**
|
|
41
113
|
* Configuration for CMS client plugin
|
|
42
114
|
*/
|
|
43
115
|
export interface CMSClientConfig {
|
|
116
|
+
/** Base URL for API calls (e.g., "http://localhost:3000") */
|
|
44
117
|
apiBaseURL: string;
|
|
118
|
+
/** Path where the API is mounted (e.g., "/api/data") */
|
|
45
119
|
apiBasePath: string;
|
|
120
|
+
/** Base URL of your site */
|
|
46
121
|
siteBaseURL: string;
|
|
122
|
+
/** Path where pages are mounted (e.g., "/pages") */
|
|
47
123
|
siteBasePath: string;
|
|
124
|
+
/** React Query client instance for caching */
|
|
48
125
|
queryClient: QueryClient;
|
|
126
|
+
/** Optional headers for SSR (e.g., forwarding cookies) */
|
|
49
127
|
headers?: Headers;
|
|
128
|
+
/** Optional hooks for customizing behavior (authorization, redirects, etc.) */
|
|
129
|
+
hooks?: CMSClientHooks;
|
|
50
130
|
}
|
|
51
131
|
|
|
52
132
|
/**
|
|
@@ -55,17 +135,56 @@ export interface CMSClientConfig {
|
|
|
55
135
|
function createDashboardLoader(config: CMSClientConfig) {
|
|
56
136
|
return async () => {
|
|
57
137
|
if (typeof window === "undefined") {
|
|
58
|
-
const { queryClient, apiBasePath, apiBaseURL, headers } = config;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
138
|
+
const { queryClient, apiBasePath, apiBaseURL, headers, hooks } = config;
|
|
139
|
+
|
|
140
|
+
const context: LoaderContext = {
|
|
141
|
+
path: "/cms",
|
|
142
|
+
isSSR: true,
|
|
143
|
+
apiBaseURL,
|
|
144
|
+
apiBasePath,
|
|
145
|
+
headers,
|
|
146
|
+
};
|
|
64
147
|
|
|
65
148
|
try {
|
|
149
|
+
// Before hook - authorization check
|
|
150
|
+
if (hooks?.beforeLoadDashboard) {
|
|
151
|
+
const canLoad = await hooks.beforeLoadDashboard(context);
|
|
152
|
+
if (!canLoad) {
|
|
153
|
+
throw new Error("Load prevented by beforeLoadDashboard hook");
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const client = createApiClient<CMSApiRouter>({
|
|
158
|
+
baseURL: apiBaseURL,
|
|
159
|
+
basePath: apiBasePath,
|
|
160
|
+
});
|
|
161
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
162
|
+
|
|
66
163
|
await queryClient.prefetchQuery(queries.cmsTypes.list());
|
|
67
|
-
|
|
68
|
-
//
|
|
164
|
+
|
|
165
|
+
// After hook
|
|
166
|
+
if (hooks?.afterLoadDashboard) {
|
|
167
|
+
await hooks.afterLoadDashboard(context);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Check if there was an error
|
|
171
|
+
const queryState = queryClient.getQueryState(
|
|
172
|
+
queries.cmsTypes.list().queryKey,
|
|
173
|
+
);
|
|
174
|
+
if (queryState?.error && hooks?.onLoadError) {
|
|
175
|
+
const error =
|
|
176
|
+
queryState.error instanceof Error
|
|
177
|
+
? queryState.error
|
|
178
|
+
: new Error(String(queryState.error));
|
|
179
|
+
await hooks.onLoadError(error, context);
|
|
180
|
+
}
|
|
181
|
+
} catch (error) {
|
|
182
|
+
// Error hook - log the error but don't throw during SSR
|
|
183
|
+
// Let Error Boundaries handle errors when components render
|
|
184
|
+
if (hooks?.onLoadError) {
|
|
185
|
+
await hooks.onLoadError(error as Error, context);
|
|
186
|
+
}
|
|
187
|
+
// Don't re-throw - let Error Boundary catch it during render
|
|
69
188
|
}
|
|
70
189
|
}
|
|
71
190
|
};
|
|
@@ -77,15 +196,33 @@ function createDashboardLoader(config: CMSClientConfig) {
|
|
|
77
196
|
function createContentListLoader(typeSlug: string, config: CMSClientConfig) {
|
|
78
197
|
return async () => {
|
|
79
198
|
if (typeof window === "undefined") {
|
|
80
|
-
const { queryClient, apiBasePath, apiBaseURL, headers } = config;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
199
|
+
const { queryClient, apiBasePath, apiBaseURL, headers, hooks } = config;
|
|
200
|
+
|
|
201
|
+
const context: LoaderContext = {
|
|
202
|
+
path: `/cms/${typeSlug}`,
|
|
203
|
+
params: { typeSlug },
|
|
204
|
+
isSSR: true,
|
|
205
|
+
apiBaseURL,
|
|
206
|
+
apiBasePath,
|
|
207
|
+
headers,
|
|
208
|
+
};
|
|
87
209
|
|
|
88
210
|
try {
|
|
211
|
+
// Before hook - authorization check
|
|
212
|
+
if (hooks?.beforeLoadContentList) {
|
|
213
|
+
const canLoad = await hooks.beforeLoadContentList(typeSlug, context);
|
|
214
|
+
if (!canLoad) {
|
|
215
|
+
throw new Error("Load prevented by beforeLoadContentList hook");
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const client = createApiClient<CMSApiRouter>({
|
|
220
|
+
baseURL: apiBaseURL,
|
|
221
|
+
basePath: apiBasePath,
|
|
222
|
+
});
|
|
223
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
224
|
+
const limit = 20;
|
|
225
|
+
|
|
89
226
|
// Prefetch content types
|
|
90
227
|
await queryClient.prefetchQuery(queries.cmsTypes.list());
|
|
91
228
|
|
|
@@ -116,8 +253,32 @@ function createContentListLoader(typeSlug: string, config: CMSClientConfig) {
|
|
|
116
253
|
},
|
|
117
254
|
initialPageParam: 0,
|
|
118
255
|
});
|
|
119
|
-
|
|
120
|
-
//
|
|
256
|
+
|
|
257
|
+
// After hook
|
|
258
|
+
if (hooks?.afterLoadContentList) {
|
|
259
|
+
await hooks.afterLoadContentList(typeSlug, context);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// Check if there was an error in either query
|
|
263
|
+
const typesState = queryClient.getQueryState(
|
|
264
|
+
queries.cmsTypes.list().queryKey,
|
|
265
|
+
);
|
|
266
|
+
const listState = queryClient.getQueryState(listQuery.queryKey);
|
|
267
|
+
const queryError = typesState?.error || listState?.error;
|
|
268
|
+
if (queryError && hooks?.onLoadError) {
|
|
269
|
+
const error =
|
|
270
|
+
queryError instanceof Error
|
|
271
|
+
? queryError
|
|
272
|
+
: new Error(String(queryError));
|
|
273
|
+
await hooks.onLoadError(error, context);
|
|
274
|
+
}
|
|
275
|
+
} catch (error) {
|
|
276
|
+
// Error hook - log the error but don't throw during SSR
|
|
277
|
+
// Let Error Boundaries handle errors when components render
|
|
278
|
+
if (hooks?.onLoadError) {
|
|
279
|
+
await hooks.onLoadError(error as Error, context);
|
|
280
|
+
}
|
|
281
|
+
// Don't re-throw - let Error Boundary catch it during render
|
|
121
282
|
}
|
|
122
283
|
}
|
|
123
284
|
};
|
|
@@ -133,14 +294,36 @@ function createContentEditorLoader(
|
|
|
133
294
|
) {
|
|
134
295
|
return async () => {
|
|
135
296
|
if (typeof window === "undefined") {
|
|
136
|
-
const { queryClient, apiBasePath, apiBaseURL, headers } = config;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
297
|
+
const { queryClient, apiBasePath, apiBaseURL, headers, hooks } = config;
|
|
298
|
+
|
|
299
|
+
const context: LoaderContext = {
|
|
300
|
+
path: id ? `/cms/${typeSlug}/${id}` : `/cms/${typeSlug}/new`,
|
|
301
|
+
params: id ? { typeSlug, id } : { typeSlug },
|
|
302
|
+
isSSR: true,
|
|
303
|
+
apiBaseURL,
|
|
304
|
+
apiBasePath,
|
|
305
|
+
headers,
|
|
306
|
+
};
|
|
142
307
|
|
|
143
308
|
try {
|
|
309
|
+
// Before hook - authorization check
|
|
310
|
+
if (hooks?.beforeLoadContentEditor) {
|
|
311
|
+
const canLoad = await hooks.beforeLoadContentEditor(
|
|
312
|
+
typeSlug,
|
|
313
|
+
id,
|
|
314
|
+
context,
|
|
315
|
+
);
|
|
316
|
+
if (!canLoad) {
|
|
317
|
+
throw new Error("Load prevented by beforeLoadContentEditor hook");
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
const client = createApiClient<CMSApiRouter>({
|
|
322
|
+
baseURL: apiBaseURL,
|
|
323
|
+
basePath: apiBasePath,
|
|
324
|
+
});
|
|
325
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
326
|
+
|
|
144
327
|
const promises = [queryClient.prefetchQuery(queries.cmsTypes.list())];
|
|
145
328
|
if (id) {
|
|
146
329
|
promises.push(
|
|
@@ -148,8 +331,36 @@ function createContentEditorLoader(
|
|
|
148
331
|
);
|
|
149
332
|
}
|
|
150
333
|
await Promise.all(promises);
|
|
151
|
-
|
|
152
|
-
//
|
|
334
|
+
|
|
335
|
+
// After hook
|
|
336
|
+
if (hooks?.afterLoadContentEditor) {
|
|
337
|
+
await hooks.afterLoadContentEditor(typeSlug, id, context);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
// Check if there was an error
|
|
341
|
+
const typesState = queryClient.getQueryState(
|
|
342
|
+
queries.cmsTypes.list().queryKey,
|
|
343
|
+
);
|
|
344
|
+
const itemState = id
|
|
345
|
+
? queryClient.getQueryState(
|
|
346
|
+
queries.cmsContent.detail(typeSlug, id).queryKey,
|
|
347
|
+
)
|
|
348
|
+
: null;
|
|
349
|
+
const queryError = typesState?.error || itemState?.error;
|
|
350
|
+
if (queryError && hooks?.onLoadError) {
|
|
351
|
+
const error =
|
|
352
|
+
queryError instanceof Error
|
|
353
|
+
? queryError
|
|
354
|
+
: new Error(String(queryError));
|
|
355
|
+
await hooks.onLoadError(error, context);
|
|
356
|
+
}
|
|
357
|
+
} catch (error) {
|
|
358
|
+
// Error hook - log the error but don't throw during SSR
|
|
359
|
+
// Let Error Boundaries handle errors when components render
|
|
360
|
+
if (hooks?.onLoadError) {
|
|
361
|
+
await hooks.onLoadError(error as Error, context);
|
|
362
|
+
}
|
|
363
|
+
// Don't re-throw - let Error Boundary catch it during render
|
|
153
364
|
}
|
|
154
365
|
}
|
|
155
366
|
};
|
package/src/plugins/cms/db.ts
CHANGED
|
@@ -31,6 +31,7 @@ export const updateContentSchema = z.object({
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Schema for content type response
|
|
34
|
+
* Note: fieldConfig is no longer included - it's merged into jsonSchema during read
|
|
34
35
|
*/
|
|
35
36
|
export const contentTypeResponseSchema = z.object({
|
|
36
37
|
id: z.string(),
|
|
@@ -38,7 +39,6 @@ export const contentTypeResponseSchema = z.object({
|
|
|
38
39
|
slug: z.string(),
|
|
39
40
|
description: z.string().nullable().optional(),
|
|
40
41
|
jsonSchema: z.string(),
|
|
41
|
-
fieldConfig: z.string().nullable().optional(),
|
|
42
42
|
createdAt: z.string(),
|
|
43
43
|
updatedAt: z.string(),
|
|
44
44
|
});
|
package/src/plugins/cms/types.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import type { z } from "zod";
|
|
2
|
-
import type { AutoFormFieldType } from "@workspace/ui/components/ui/auto-form/types";
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
|
-
* Configuration for a content type defined by the developer
|
|
4
|
+
* Configuration for a content type defined by the developer.
|
|
5
|
+
*
|
|
6
|
+
* Field types are now specified directly in the Zod schema via .meta():
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const ProductSchema = z.object({
|
|
10
|
+
* description: z.string().meta({ fieldType: "textarea" }),
|
|
11
|
+
* image: z.string().optional().meta({ fieldType: "file" }),
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
6
14
|
*/
|
|
7
15
|
export interface ContentTypeConfig {
|
|
8
16
|
/** Display name for the content type (e.g., "Product", "Testimonial") */
|
|
@@ -11,21 +19,8 @@ export interface ContentTypeConfig {
|
|
|
11
19
|
slug: string;
|
|
12
20
|
/** Optional description shown in the admin UI */
|
|
13
21
|
description?: string;
|
|
14
|
-
/** Zod schema defining the content type's fields */
|
|
22
|
+
/** Zod schema defining the content type's fields. Use .meta({ fieldType: "..." }) for field type overrides. */
|
|
15
23
|
schema: z.ZodObject<z.ZodRawShape>;
|
|
16
|
-
/**
|
|
17
|
-
* Optional field configuration for AutoForm customization.
|
|
18
|
-
*
|
|
19
|
-
* fieldType can be:
|
|
20
|
-
* - A built-in AutoForm type: "checkbox", "date", "select", "radio", "switch", "textarea", "number", "file", "fallback"
|
|
21
|
-
* - A custom type name that maps to a component provided via `fieldComponents` in overrides
|
|
22
|
-
*/
|
|
23
|
-
fieldConfig?: Record<
|
|
24
|
-
string,
|
|
25
|
-
{
|
|
26
|
-
fieldType?: AutoFormFieldType | (string & {});
|
|
27
|
-
}
|
|
28
|
-
>;
|
|
29
24
|
}
|
|
30
25
|
|
|
31
26
|
/**
|
|
@@ -41,8 +36,10 @@ export type ContentType = {
|
|
|
41
36
|
description?: string;
|
|
42
37
|
/** JSON Schema representation of the Zod schema (stringified) */
|
|
43
38
|
jsonSchema: string;
|
|
44
|
-
/**
|
|
39
|
+
/** @deprecated Legacy field config - now embedded in jsonSchema. Kept for backwards compat. */
|
|
45
40
|
fieldConfig?: string;
|
|
41
|
+
/** AutoForm schema version. 1 = legacy (separate fieldConfig), 2 = unified (fieldType in jsonSchema) */
|
|
42
|
+
autoFormVersion?: number;
|
|
46
43
|
createdAt: Date;
|
|
47
44
|
updatedAt: Date;
|
|
48
45
|
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { DatePicker } from '../../../date-picker.mjs';
|
|
3
|
-
import { FormItem, FormControl, FormMessage } from '../../../form.mjs';
|
|
4
|
-
import AutoFormLabel from '../common/label.mjs';
|
|
5
|
-
import AutoFormTooltip from '../common/tooltip.mjs';
|
|
6
|
-
|
|
7
|
-
function AutoFormDate({
|
|
8
|
-
label,
|
|
9
|
-
isRequired,
|
|
10
|
-
field,
|
|
11
|
-
fieldConfigItem,
|
|
12
|
-
fieldProps
|
|
13
|
-
}) {
|
|
14
|
-
return /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
15
|
-
/* @__PURE__ */ jsx(
|
|
16
|
-
AutoFormLabel,
|
|
17
|
-
{
|
|
18
|
-
label: fieldConfigItem?.label || label,
|
|
19
|
-
isRequired
|
|
20
|
-
}
|
|
21
|
-
),
|
|
22
|
-
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
|
|
23
|
-
DatePicker,
|
|
24
|
-
{
|
|
25
|
-
date: field.value,
|
|
26
|
-
setDate: field.onChange,
|
|
27
|
-
...fieldProps
|
|
28
|
-
}
|
|
29
|
-
) }),
|
|
30
|
-
/* @__PURE__ */ jsx(AutoFormTooltip, { fieldConfigItem }),
|
|
31
|
-
/* @__PURE__ */ jsx(FormMessage, {})
|
|
32
|
-
] });
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { AutoFormDate as default };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
const form = require('../../../form.cjs');
|
|
5
|
-
const input = require('../../../input.cjs');
|
|
6
|
-
const lucideReact = require('lucide-react');
|
|
7
|
-
const React = require('react');
|
|
8
|
-
const label = require('../common/label.cjs');
|
|
9
|
-
const tooltip = require('../common/tooltip.cjs');
|
|
10
|
-
|
|
11
|
-
function AutoFormFile({
|
|
12
|
-
label: label$1,
|
|
13
|
-
isRequired,
|
|
14
|
-
fieldConfigItem,
|
|
15
|
-
fieldProps,
|
|
16
|
-
field
|
|
17
|
-
}) {
|
|
18
|
-
const { showLabel: _showLabel, ...fieldPropsWithoutShowLabel } = fieldProps;
|
|
19
|
-
const showLabel = _showLabel === void 0 ? true : _showLabel;
|
|
20
|
-
const [file, setFile] = React.useState(null);
|
|
21
|
-
const [fileName, setFileName] = React.useState(null);
|
|
22
|
-
const handleFileChange = (e) => {
|
|
23
|
-
const file2 = e.target.files?.[0];
|
|
24
|
-
if (file2) {
|
|
25
|
-
const reader = new FileReader();
|
|
26
|
-
reader.onloadend = () => {
|
|
27
|
-
setFile(reader.result);
|
|
28
|
-
setFileName(file2.name);
|
|
29
|
-
field.onChange(reader.result);
|
|
30
|
-
};
|
|
31
|
-
reader.readAsDataURL(file2);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
const handleRemoveClick = () => {
|
|
35
|
-
setFile(null);
|
|
36
|
-
};
|
|
37
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(form.FormItem, { children: [
|
|
38
|
-
showLabel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39
|
-
label,
|
|
40
|
-
{
|
|
41
|
-
label: fieldConfigItem?.label || label$1,
|
|
42
|
-
isRequired
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
!file && /* @__PURE__ */ jsxRuntime.jsx(form.FormControl, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
46
|
-
input.Input,
|
|
47
|
-
{
|
|
48
|
-
type: "file",
|
|
49
|
-
...fieldPropsWithoutShowLabel,
|
|
50
|
-
onChange: handleFileChange,
|
|
51
|
-
value: ""
|
|
52
|
-
}
|
|
53
|
-
) }),
|
|
54
|
-
file && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-[40px] w-full flex-row items-center justify-between space-x-2 rounded-sm border p-2 text-black focus-visible:ring-0 focus-visible:ring-offset-0 dark:bg-white dark:text-black dark:focus-visible:ring-0 dark:focus-visible:ring-offset-0", children: [
|
|
55
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { children: fileName }),
|
|
56
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { onClick: handleRemoveClick, "aria-label": "Remove image", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { size: 16 }) })
|
|
57
|
-
] }),
|
|
58
|
-
/* @__PURE__ */ jsxRuntime.jsx(tooltip, { fieldConfigItem }),
|
|
59
|
-
/* @__PURE__ */ jsxRuntime.jsx(form.FormMessage, {})
|
|
60
|
-
] });
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
module.exports = AutoFormFile;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { FormItem, FormControl, FormMessage } from '../../../form.mjs';
|
|
3
|
-
import { Input } from '../../../input.mjs';
|
|
4
|
-
import { Trash2 } from 'lucide-react';
|
|
5
|
-
import { useState } from 'react';
|
|
6
|
-
import AutoFormLabel from '../common/label.mjs';
|
|
7
|
-
import AutoFormTooltip from '../common/tooltip.mjs';
|
|
8
|
-
|
|
9
|
-
function AutoFormFile({
|
|
10
|
-
label,
|
|
11
|
-
isRequired,
|
|
12
|
-
fieldConfigItem,
|
|
13
|
-
fieldProps,
|
|
14
|
-
field
|
|
15
|
-
}) {
|
|
16
|
-
const { showLabel: _showLabel, ...fieldPropsWithoutShowLabel } = fieldProps;
|
|
17
|
-
const showLabel = _showLabel === void 0 ? true : _showLabel;
|
|
18
|
-
const [file, setFile] = useState(null);
|
|
19
|
-
const [fileName, setFileName] = useState(null);
|
|
20
|
-
const handleFileChange = (e) => {
|
|
21
|
-
const file2 = e.target.files?.[0];
|
|
22
|
-
if (file2) {
|
|
23
|
-
const reader = new FileReader();
|
|
24
|
-
reader.onloadend = () => {
|
|
25
|
-
setFile(reader.result);
|
|
26
|
-
setFileName(file2.name);
|
|
27
|
-
field.onChange(reader.result);
|
|
28
|
-
};
|
|
29
|
-
reader.readAsDataURL(file2);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const handleRemoveClick = () => {
|
|
33
|
-
setFile(null);
|
|
34
|
-
};
|
|
35
|
-
return /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
36
|
-
showLabel && /* @__PURE__ */ jsx(
|
|
37
|
-
AutoFormLabel,
|
|
38
|
-
{
|
|
39
|
-
label: fieldConfigItem?.label || label,
|
|
40
|
-
isRequired
|
|
41
|
-
}
|
|
42
|
-
),
|
|
43
|
-
!file && /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
|
|
44
|
-
Input,
|
|
45
|
-
{
|
|
46
|
-
type: "file",
|
|
47
|
-
...fieldPropsWithoutShowLabel,
|
|
48
|
-
onChange: handleFileChange,
|
|
49
|
-
value: ""
|
|
50
|
-
}
|
|
51
|
-
) }),
|
|
52
|
-
file && /* @__PURE__ */ jsxs("div", { className: "flex h-[40px] w-full flex-row items-center justify-between space-x-2 rounded-sm border p-2 text-black focus-visible:ring-0 focus-visible:ring-offset-0 dark:bg-white dark:text-black dark:focus-visible:ring-0 dark:focus-visible:ring-offset-0", children: [
|
|
53
|
-
/* @__PURE__ */ jsx("p", { children: fileName }),
|
|
54
|
-
/* @__PURE__ */ jsx("button", { onClick: handleRemoveClick, "aria-label": "Remove image", children: /* @__PURE__ */ jsx(Trash2, { size: 16 }) })
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ jsx(AutoFormTooltip, { fieldConfigItem }),
|
|
57
|
-
/* @__PURE__ */ jsx(FormMessage, {})
|
|
58
|
-
] });
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export { AutoFormFile as default };
|