@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
|
@@ -3,7 +3,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useState, useEffect, useMemo } from 'react';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { toast } from 'sonner';
|
|
6
|
-
import AutoForm, { AutoFormSubmit } from '../../../../../../../ui/src/components/
|
|
6
|
+
import AutoForm, { AutoFormSubmit } from '../../../../../../../ui/src/components/auto-form/index.mjs';
|
|
7
|
+
import { fromJSONSchemaWithDates, buildFieldConfigFromJsonSchema as buildFieldConfigFromJsonSchema$1 } from '../../../../../../../ui/src/components/auto-form/utils.mjs';
|
|
7
8
|
import { Input } from '../../../../../../../ui/src/components/input.mjs';
|
|
8
9
|
import { Label } from '../../../../../../../ui/src/components/label.mjs';
|
|
9
10
|
import { Badge } from '../../../../../../../ui/src/components/badge.mjs';
|
|
@@ -12,133 +13,30 @@ import { slugify } from '../../../utils.mjs';
|
|
|
12
13
|
import { CMS_LOCALIZATION } from '../../localization/index.mjs';
|
|
13
14
|
import { CMSFileUpload } from './file-upload.mjs';
|
|
14
15
|
|
|
15
|
-
function
|
|
16
|
-
const
|
|
17
|
-
const properties = jsonSchema.properties
|
|
18
|
-
|
|
16
|
+
function buildFieldConfigFromJsonSchema(jsonSchema, uploadImage, fieldComponents) {
|
|
17
|
+
const baseConfig = buildFieldConfigFromJsonSchema$1(jsonSchema, fieldComponents);
|
|
18
|
+
const properties = jsonSchema.properties;
|
|
19
|
+
if (!properties) return baseConfig;
|
|
19
20
|
for (const [key, prop] of Object.entries(properties)) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
if (prop.fieldType === "file" && !fieldComponents?.["file"]) {
|
|
22
|
+
if (!uploadImage) {
|
|
23
|
+
baseConfig[key] = {
|
|
24
|
+
...baseConfig[key],
|
|
25
|
+
fieldType: () => /* @__PURE__ */ jsxs("div", { className: "rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive", children: [
|
|
26
|
+
"File upload requires an ",
|
|
27
|
+
/* @__PURE__ */ jsx("code", { children: "uploadImage" }),
|
|
28
|
+
" function in CMS overrides."
|
|
29
|
+
] })
|
|
30
|
+
};
|
|
28
31
|
} else {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
case "number":
|
|
34
|
-
case "integer": {
|
|
35
|
-
let numSchema = z.coerce.number();
|
|
36
|
-
if (prop.minimum !== void 0) {
|
|
37
|
-
numSchema = numSchema.min(prop.minimum);
|
|
38
|
-
}
|
|
39
|
-
if (prop.maximum !== void 0) {
|
|
40
|
-
numSchema = numSchema.max(prop.maximum);
|
|
41
|
-
}
|
|
42
|
-
fieldSchema = numSchema;
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
case "boolean": {
|
|
46
|
-
fieldSchema = z.boolean();
|
|
47
|
-
if (prop.default !== void 0) {
|
|
48
|
-
fieldSchema = fieldSchema.default(
|
|
49
|
-
prop.default
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
case "string": {
|
|
55
|
-
if (prop.format === "date" || prop.format === "date-time") {
|
|
56
|
-
fieldSchema = z.coerce.date();
|
|
57
|
-
} else {
|
|
58
|
-
let strSchema = z.string();
|
|
59
|
-
if (prop.minLength !== void 0) {
|
|
60
|
-
strSchema = strSchema.min(prop.minLength);
|
|
61
|
-
}
|
|
62
|
-
if (prop.maxLength !== void 0) {
|
|
63
|
-
strSchema = strSchema.max(prop.maxLength);
|
|
64
|
-
}
|
|
65
|
-
fieldSchema = strSchema;
|
|
66
|
-
}
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
default: {
|
|
70
|
-
fieldSchema = z.string();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
if (prop.default !== void 0 && typeValue !== "boolean") {
|
|
75
|
-
fieldSchema = fieldSchema.default(prop.default);
|
|
76
|
-
}
|
|
77
|
-
if (!required.includes(key)) {
|
|
78
|
-
fieldSchema = fieldSchema.optional();
|
|
79
|
-
}
|
|
80
|
-
shape[key] = fieldSchema;
|
|
81
|
-
}
|
|
82
|
-
return z.object(shape);
|
|
83
|
-
}
|
|
84
|
-
const BUILTIN_FIELD_TYPES = [
|
|
85
|
-
"checkbox",
|
|
86
|
-
"date",
|
|
87
|
-
"select",
|
|
88
|
-
"radio",
|
|
89
|
-
"switch",
|
|
90
|
-
"textarea",
|
|
91
|
-
"number",
|
|
92
|
-
"file",
|
|
93
|
-
"fallback"
|
|
94
|
-
];
|
|
95
|
-
function buildFieldConfigFromJsonSchema(jsonSchema, storedFieldConfig, uploadImage, fieldComponents) {
|
|
96
|
-
const fieldConfig = {};
|
|
97
|
-
const properties = jsonSchema.properties;
|
|
98
|
-
if (!properties) return fieldConfig;
|
|
99
|
-
for (const [key, value] of Object.entries(properties)) {
|
|
100
|
-
const config = {};
|
|
101
|
-
if (value.description) {
|
|
102
|
-
config.description = value.description;
|
|
103
|
-
}
|
|
104
|
-
if (value.placeholder) {
|
|
105
|
-
config.inputProps = {
|
|
106
|
-
placeholder: value.placeholder
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
if (storedFieldConfig?.[key]) {
|
|
110
|
-
const storedConfig = storedFieldConfig[key];
|
|
111
|
-
const fieldType = storedConfig.fieldType;
|
|
112
|
-
if (fieldType) {
|
|
113
|
-
if (fieldComponents?.[fieldType]) {
|
|
114
|
-
const CustomComponent = fieldComponents[fieldType];
|
|
115
|
-
config.fieldType = (props) => /* @__PURE__ */ jsx(CustomComponent, { ...props });
|
|
116
|
-
} else if (fieldType === "file") {
|
|
117
|
-
if (!uploadImage) {
|
|
118
|
-
config.fieldType = () => /* @__PURE__ */ jsxs("div", { className: "rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive", children: [
|
|
119
|
-
"File upload requires an ",
|
|
120
|
-
/* @__PURE__ */ jsx("code", { children: "uploadImage" }),
|
|
121
|
-
" function in CMS overrides."
|
|
122
|
-
] });
|
|
123
|
-
} else {
|
|
124
|
-
config.fieldType = (props) => /* @__PURE__ */ jsx(CMSFileUpload, { ...props, uploadImage });
|
|
125
|
-
}
|
|
126
|
-
} else if (BUILTIN_FIELD_TYPES.includes(
|
|
127
|
-
fieldType
|
|
128
|
-
)) {
|
|
129
|
-
config.fieldType = fieldType;
|
|
130
|
-
} else {
|
|
131
|
-
console.warn(
|
|
132
|
-
`CMS: Unknown fieldType "${fieldType}" for field "${key}". Provide a component via fieldComponents override or use a built-in type.`
|
|
133
|
-
);
|
|
134
|
-
}
|
|
32
|
+
baseConfig[key] = {
|
|
33
|
+
...baseConfig[key],
|
|
34
|
+
fieldType: (props) => /* @__PURE__ */ jsx(CMSFileUpload, { ...props, uploadImage })
|
|
35
|
+
};
|
|
135
36
|
}
|
|
136
37
|
}
|
|
137
|
-
if (Object.keys(config).length > 0) {
|
|
138
|
-
fieldConfig[key] = config;
|
|
139
|
-
}
|
|
140
38
|
}
|
|
141
|
-
return
|
|
39
|
+
return baseConfig;
|
|
142
40
|
}
|
|
143
41
|
function findSlugSourceField(jsonSchema) {
|
|
144
42
|
const properties = jsonSchema.properties;
|
|
@@ -191,29 +89,16 @@ function ContentForm({
|
|
|
191
89
|
return {};
|
|
192
90
|
}
|
|
193
91
|
}, [contentType.jsonSchema]);
|
|
194
|
-
const storedFieldConfig = useMemo(() => {
|
|
195
|
-
if (!contentType.fieldConfig) return void 0;
|
|
196
|
-
try {
|
|
197
|
-
return JSON.parse(contentType.fieldConfig);
|
|
198
|
-
} catch {
|
|
199
|
-
return void 0;
|
|
200
|
-
}
|
|
201
|
-
}, [contentType.fieldConfig]);
|
|
202
92
|
const zodSchema = useMemo(() => {
|
|
203
93
|
try {
|
|
204
|
-
return
|
|
94
|
+
return fromJSONSchemaWithDates(jsonSchema);
|
|
205
95
|
} catch {
|
|
206
96
|
return z.object({});
|
|
207
97
|
}
|
|
208
98
|
}, [jsonSchema]);
|
|
209
99
|
const fieldConfig = useMemo(
|
|
210
|
-
() => buildFieldConfigFromJsonSchema(
|
|
211
|
-
|
|
212
|
-
storedFieldConfig,
|
|
213
|
-
uploadImage,
|
|
214
|
-
fieldComponents
|
|
215
|
-
),
|
|
216
|
-
[jsonSchema, storedFieldConfig, uploadImage, fieldComponents]
|
|
100
|
+
() => buildFieldConfigFromJsonSchema(jsonSchema, uploadImage, fieldComponents),
|
|
101
|
+
[jsonSchema, uploadImage, fieldComponents]
|
|
217
102
|
);
|
|
218
103
|
const slugSourceField = useMemo(
|
|
219
104
|
() => findSlugSourceField(jsonSchema),
|
|
@@ -8,8 +8,8 @@ const input = require('../../../../../../../ui/src/components/input.cjs');
|
|
|
8
8
|
const button = require('../../../../../../../ui/src/components/button.cjs');
|
|
9
9
|
const form = require('../../../../../../../ui/src/components/form.cjs');
|
|
10
10
|
const lucideReact = require('lucide-react');
|
|
11
|
-
const label = require('../../../../../../../ui/src/components/
|
|
12
|
-
const tooltip = require('../../../../../../../ui/src/components/
|
|
11
|
+
const label = require('../../../../../../../ui/src/components/auto-form/common/label.cjs');
|
|
12
|
+
const tooltip = require('../../../../../../../ui/src/components/auto-form/common/tooltip.cjs');
|
|
13
13
|
|
|
14
14
|
function CMSFileUpload({
|
|
15
15
|
label: label$1,
|
|
@@ -6,8 +6,8 @@ import { Input } from '../../../../../../../ui/src/components/input.mjs';
|
|
|
6
6
|
import { Button } from '../../../../../../../ui/src/components/button.mjs';
|
|
7
7
|
import { FormItem, FormControl, FormMessage } from '../../../../../../../ui/src/components/form.mjs';
|
|
8
8
|
import { Loader2, Trash2 } from 'lucide-react';
|
|
9
|
-
import AutoFormLabel from '../../../../../../../ui/src/components/
|
|
10
|
-
import AutoFormTooltip from '../../../../../../../ui/src/components/
|
|
9
|
+
import AutoFormLabel from '../../../../../../../ui/src/components/auto-form/common/label.mjs';
|
|
10
|
+
import AutoFormTooltip from '../../../../../../../ui/src/components/auto-form/common/tooltip.mjs';
|
|
11
11
|
|
|
12
12
|
function CMSFileUpload({
|
|
13
13
|
label,
|
|
@@ -10,12 +10,29 @@ const emptyState = require('../shared/empty-state.cjs');
|
|
|
10
10
|
const pageWrapper = require('../shared/page-wrapper.cjs');
|
|
11
11
|
const editorSkeleton = require('../loading/editor-skeleton.cjs');
|
|
12
12
|
const index = require('../../localization/index.cjs');
|
|
13
|
+
const useRouteLifecycle = require('../../../../../../../ui/src/hooks/use-route-lifecycle.cjs');
|
|
13
14
|
const cmsHooks = require('../../hooks/cms-hooks.cjs');
|
|
14
15
|
|
|
15
16
|
function ContentEditorPage({ typeSlug, id }) {
|
|
16
|
-
const
|
|
17
|
-
const
|
|
17
|
+
const overrides = context.usePluginOverrides("cms");
|
|
18
|
+
const { navigate } = overrides;
|
|
19
|
+
const localization = { ...index.CMS_LOCALIZATION, ...overrides.localization };
|
|
18
20
|
const basePath = context.useBasePath();
|
|
21
|
+
useRouteLifecycle.useRouteLifecycle({
|
|
22
|
+
routeName: "contentEditor",
|
|
23
|
+
context: {
|
|
24
|
+
path: id ? `/cms/${typeSlug}/${id}` : `/cms/${typeSlug}/new`,
|
|
25
|
+
params: id ? { typeSlug, id } : { typeSlug },
|
|
26
|
+
isSSR: typeof window === "undefined"
|
|
27
|
+
},
|
|
28
|
+
overrides,
|
|
29
|
+
beforeRenderHook: (overrides2, context) => {
|
|
30
|
+
if (overrides2.onBeforeEditorRendered) {
|
|
31
|
+
return overrides2.onBeforeEditorRendered(typeSlug, id ?? null, context);
|
|
32
|
+
}
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
19
36
|
const { contentTypes } = cmsHooks.useSuspenseContentTypes();
|
|
20
37
|
const contentType = contentTypes.find((ct) => ct.slug === typeSlug);
|
|
21
38
|
const isEditing = !!id;
|
|
@@ -8,12 +8,29 @@ import { EmptyState } from '../shared/empty-state.mjs';
|
|
|
8
8
|
import { PageWrapper } from '../shared/page-wrapper.mjs';
|
|
9
9
|
import { EditorSkeleton } from '../loading/editor-skeleton.mjs';
|
|
10
10
|
import { CMS_LOCALIZATION } from '../../localization/index.mjs';
|
|
11
|
+
import { useRouteLifecycle } from '../../../../../../../ui/src/hooks/use-route-lifecycle.mjs';
|
|
11
12
|
import { useSuspenseContentTypes, useContentItem, useCreateContent, useUpdateContent } from '../../hooks/cms-hooks.mjs';
|
|
12
13
|
|
|
13
14
|
function ContentEditorPage({ typeSlug, id }) {
|
|
14
|
-
const
|
|
15
|
-
const
|
|
15
|
+
const overrides = usePluginOverrides("cms");
|
|
16
|
+
const { navigate } = overrides;
|
|
17
|
+
const localization = { ...CMS_LOCALIZATION, ...overrides.localization };
|
|
16
18
|
const basePath = useBasePath();
|
|
19
|
+
useRouteLifecycle({
|
|
20
|
+
routeName: "contentEditor",
|
|
21
|
+
context: {
|
|
22
|
+
path: id ? `/cms/${typeSlug}/${id}` : `/cms/${typeSlug}/new`,
|
|
23
|
+
params: id ? { typeSlug, id } : { typeSlug },
|
|
24
|
+
isSSR: typeof window === "undefined"
|
|
25
|
+
},
|
|
26
|
+
overrides,
|
|
27
|
+
beforeRenderHook: (overrides2, context) => {
|
|
28
|
+
if (overrides2.onBeforeEditorRendered) {
|
|
29
|
+
return overrides2.onBeforeEditorRendered(typeSlug, id ?? null, context);
|
|
30
|
+
}
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
17
34
|
const { contentTypes } = useSuspenseContentTypes();
|
|
18
35
|
const contentType = contentTypes.find((ct) => ct.slug === typeSlug);
|
|
19
36
|
const isEditing = !!id;
|
|
@@ -9,17 +9,30 @@ const context = require('@btst/stack/context');
|
|
|
9
9
|
const emptyState = require('../shared/empty-state.cjs');
|
|
10
10
|
const pageWrapper = require('../shared/page-wrapper.cjs');
|
|
11
11
|
const index = require('../../localization/index.cjs');
|
|
12
|
+
const useRouteLifecycle = require('../../../../../../../ui/src/hooks/use-route-lifecycle.cjs');
|
|
12
13
|
const sonner = require('sonner');
|
|
13
14
|
const cmsHooks = require('../../hooks/cms-hooks.cjs');
|
|
14
15
|
|
|
15
16
|
function ContentListPage({ typeSlug }) {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
localization: customLocalization
|
|
20
|
-
} = context.usePluginOverrides("cms");
|
|
21
|
-
const localization = { ...index.CMS_LOCALIZATION, ...customLocalization };
|
|
17
|
+
const overrides = context.usePluginOverrides("cms");
|
|
18
|
+
const { navigate, Link } = overrides;
|
|
19
|
+
const localization = { ...index.CMS_LOCALIZATION, ...overrides.localization };
|
|
22
20
|
const basePath = context.useBasePath();
|
|
21
|
+
useRouteLifecycle.useRouteLifecycle({
|
|
22
|
+
routeName: "contentList",
|
|
23
|
+
context: {
|
|
24
|
+
path: `/cms/${typeSlug}`,
|
|
25
|
+
params: { typeSlug },
|
|
26
|
+
isSSR: typeof window === "undefined"
|
|
27
|
+
},
|
|
28
|
+
overrides,
|
|
29
|
+
beforeRenderHook: (overrides2, context) => {
|
|
30
|
+
if (overrides2.onBeforeListRendered) {
|
|
31
|
+
return overrides2.onBeforeListRendered(typeSlug, context);
|
|
32
|
+
}
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
23
36
|
const limit = 20;
|
|
24
37
|
const { contentTypes } = cmsHooks.useSuspenseContentTypes();
|
|
25
38
|
const contentType = contentTypes.find((ct) => ct.slug === typeSlug);
|
|
@@ -7,17 +7,30 @@ import { usePluginOverrides, useBasePath } from '@btst/stack/context';
|
|
|
7
7
|
import { EmptyState } from '../shared/empty-state.mjs';
|
|
8
8
|
import { PageWrapper } from '../shared/page-wrapper.mjs';
|
|
9
9
|
import { CMS_LOCALIZATION } from '../../localization/index.mjs';
|
|
10
|
+
import { useRouteLifecycle } from '../../../../../../../ui/src/hooks/use-route-lifecycle.mjs';
|
|
10
11
|
import { toast } from 'sonner';
|
|
11
12
|
import { useSuspenseContentTypes, useSuspenseContent, useDeleteContent } from '../../hooks/cms-hooks.mjs';
|
|
12
13
|
|
|
13
14
|
function ContentListPage({ typeSlug }) {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
localization: customLocalization
|
|
18
|
-
} = usePluginOverrides("cms");
|
|
19
|
-
const localization = { ...CMS_LOCALIZATION, ...customLocalization };
|
|
15
|
+
const overrides = usePluginOverrides("cms");
|
|
16
|
+
const { navigate, Link } = overrides;
|
|
17
|
+
const localization = { ...CMS_LOCALIZATION, ...overrides.localization };
|
|
20
18
|
const basePath = useBasePath();
|
|
19
|
+
useRouteLifecycle({
|
|
20
|
+
routeName: "contentList",
|
|
21
|
+
context: {
|
|
22
|
+
path: `/cms/${typeSlug}`,
|
|
23
|
+
params: { typeSlug },
|
|
24
|
+
isSSR: typeof window === "undefined"
|
|
25
|
+
},
|
|
26
|
+
overrides,
|
|
27
|
+
beforeRenderHook: (overrides2, context) => {
|
|
28
|
+
if (overrides2.onBeforeListRendered) {
|
|
29
|
+
return overrides2.onBeforeListRendered(typeSlug, context);
|
|
30
|
+
}
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
21
34
|
const limit = 20;
|
|
22
35
|
const { contentTypes } = useSuspenseContentTypes();
|
|
23
36
|
const contentType = contentTypes.find((ct) => ct.slug === typeSlug);
|
|
@@ -8,12 +8,28 @@ const context = require('@btst/stack/context');
|
|
|
8
8
|
const emptyState = require('../shared/empty-state.cjs');
|
|
9
9
|
const pageWrapper = require('../shared/page-wrapper.cjs');
|
|
10
10
|
const index = require('../../localization/index.cjs');
|
|
11
|
+
const useRouteLifecycle = require('../../../../../../../ui/src/hooks/use-route-lifecycle.cjs');
|
|
11
12
|
const cmsHooks = require('../../hooks/cms-hooks.cjs');
|
|
12
13
|
|
|
13
14
|
function DashboardPage() {
|
|
14
|
-
const
|
|
15
|
-
const
|
|
15
|
+
const overrides = context.usePluginOverrides("cms");
|
|
16
|
+
const { navigate } = overrides;
|
|
17
|
+
const localization = { ...index.CMS_LOCALIZATION, ...overrides.localization };
|
|
16
18
|
const basePath = context.useBasePath();
|
|
19
|
+
useRouteLifecycle.useRouteLifecycle({
|
|
20
|
+
routeName: "dashboard",
|
|
21
|
+
context: {
|
|
22
|
+
path: "/cms",
|
|
23
|
+
isSSR: typeof window === "undefined"
|
|
24
|
+
},
|
|
25
|
+
overrides,
|
|
26
|
+
beforeRenderHook: (overrides2, context) => {
|
|
27
|
+
if (overrides2.onBeforeDashboardRendered) {
|
|
28
|
+
return overrides2.onBeforeDashboardRendered(context);
|
|
29
|
+
}
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
17
33
|
const { contentTypes } = cmsHooks.useSuspenseContentTypes();
|
|
18
34
|
if (contentTypes.length === 0) {
|
|
19
35
|
return /* @__PURE__ */ jsxRuntime.jsx(pageWrapper.PageWrapper, { testId: "cms-dashboard-page", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full max-w-5xl space-y-6", children: [
|
|
@@ -6,12 +6,28 @@ import { usePluginOverrides, useBasePath } from '@btst/stack/context';
|
|
|
6
6
|
import { EmptyState } from '../shared/empty-state.mjs';
|
|
7
7
|
import { PageWrapper } from '../shared/page-wrapper.mjs';
|
|
8
8
|
import { CMS_LOCALIZATION } from '../../localization/index.mjs';
|
|
9
|
+
import { useRouteLifecycle } from '../../../../../../../ui/src/hooks/use-route-lifecycle.mjs';
|
|
9
10
|
import { useSuspenseContentTypes } from '../../hooks/cms-hooks.mjs';
|
|
10
11
|
|
|
11
12
|
function DashboardPage() {
|
|
12
|
-
const
|
|
13
|
-
const
|
|
13
|
+
const overrides = usePluginOverrides("cms");
|
|
14
|
+
const { navigate } = overrides;
|
|
15
|
+
const localization = { ...CMS_LOCALIZATION, ...overrides.localization };
|
|
14
16
|
const basePath = useBasePath();
|
|
17
|
+
useRouteLifecycle({
|
|
18
|
+
routeName: "dashboard",
|
|
19
|
+
context: {
|
|
20
|
+
path: "/cms",
|
|
21
|
+
isSSR: typeof window === "undefined"
|
|
22
|
+
},
|
|
23
|
+
overrides,
|
|
24
|
+
beforeRenderHook: (overrides2, context) => {
|
|
25
|
+
if (overrides2.onBeforeDashboardRendered) {
|
|
26
|
+
return overrides2.onBeforeDashboardRendered(context);
|
|
27
|
+
}
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
15
31
|
const { contentTypes } = useSuspenseContentTypes();
|
|
16
32
|
if (contentTypes.length === 0) {
|
|
17
33
|
return /* @__PURE__ */ jsx(PageWrapper, { testId: "cms-dashboard-page", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-5xl space-y-6", children: [
|
|
@@ -24,15 +24,41 @@ const ContentEditorPageComponent = React.lazy(
|
|
|
24
24
|
function createDashboardLoader(config) {
|
|
25
25
|
return async () => {
|
|
26
26
|
if (typeof window === "undefined") {
|
|
27
|
-
const { queryClient, apiBasePath, apiBaseURL, headers } = config;
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
const { queryClient, apiBasePath, apiBaseURL, headers, hooks } = config;
|
|
28
|
+
const context = {
|
|
29
|
+
path: "/cms",
|
|
30
|
+
isSSR: true,
|
|
31
|
+
apiBaseURL,
|
|
32
|
+
apiBasePath,
|
|
33
|
+
headers
|
|
34
|
+
};
|
|
33
35
|
try {
|
|
36
|
+
if (hooks?.beforeLoadDashboard) {
|
|
37
|
+
const canLoad = await hooks.beforeLoadDashboard(context);
|
|
38
|
+
if (!canLoad) {
|
|
39
|
+
throw new Error("Load prevented by beforeLoadDashboard hook");
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
const client$1 = client.createApiClient({
|
|
43
|
+
baseURL: apiBaseURL,
|
|
44
|
+
basePath: apiBasePath
|
|
45
|
+
});
|
|
46
|
+
const queries = plugins_cms_queryKeys.createCMSQueryKeys(client$1, headers);
|
|
34
47
|
await queryClient.prefetchQuery(queries.cmsTypes.list());
|
|
35
|
-
|
|
48
|
+
if (hooks?.afterLoadDashboard) {
|
|
49
|
+
await hooks.afterLoadDashboard(context);
|
|
50
|
+
}
|
|
51
|
+
const queryState = queryClient.getQueryState(
|
|
52
|
+
queries.cmsTypes.list().queryKey
|
|
53
|
+
);
|
|
54
|
+
if (queryState?.error && hooks?.onLoadError) {
|
|
55
|
+
const error = queryState.error instanceof Error ? queryState.error : new Error(String(queryState.error));
|
|
56
|
+
await hooks.onLoadError(error, context);
|
|
57
|
+
}
|
|
58
|
+
} catch (error) {
|
|
59
|
+
if (hooks?.onLoadError) {
|
|
60
|
+
await hooks.onLoadError(error, context);
|
|
61
|
+
}
|
|
36
62
|
}
|
|
37
63
|
}
|
|
38
64
|
};
|
|
@@ -40,14 +66,28 @@ function createDashboardLoader(config) {
|
|
|
40
66
|
function createContentListLoader(typeSlug, config) {
|
|
41
67
|
return async () => {
|
|
42
68
|
if (typeof window === "undefined") {
|
|
43
|
-
const { queryClient, apiBasePath, apiBaseURL, headers } = config;
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
69
|
+
const { queryClient, apiBasePath, apiBaseURL, headers, hooks } = config;
|
|
70
|
+
const context = {
|
|
71
|
+
path: `/cms/${typeSlug}`,
|
|
72
|
+
params: { typeSlug },
|
|
73
|
+
isSSR: true,
|
|
74
|
+
apiBaseURL,
|
|
75
|
+
apiBasePath,
|
|
76
|
+
headers
|
|
77
|
+
};
|
|
50
78
|
try {
|
|
79
|
+
if (hooks?.beforeLoadContentList) {
|
|
80
|
+
const canLoad = await hooks.beforeLoadContentList(typeSlug, context);
|
|
81
|
+
if (!canLoad) {
|
|
82
|
+
throw new Error("Load prevented by beforeLoadContentList hook");
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
const client$1 = client.createApiClient({
|
|
86
|
+
baseURL: apiBaseURL,
|
|
87
|
+
basePath: apiBasePath
|
|
88
|
+
});
|
|
89
|
+
const queries = plugins_cms_queryKeys.createCMSQueryKeys(client$1, headers);
|
|
90
|
+
const limit = 20;
|
|
51
91
|
await queryClient.prefetchQuery(queries.cmsTypes.list());
|
|
52
92
|
const listQuery = queries.cmsContent.list({
|
|
53
93
|
typeSlug,
|
|
@@ -70,7 +110,22 @@ function createContentListLoader(typeSlug, config) {
|
|
|
70
110
|
},
|
|
71
111
|
initialPageParam: 0
|
|
72
112
|
});
|
|
73
|
-
|
|
113
|
+
if (hooks?.afterLoadContentList) {
|
|
114
|
+
await hooks.afterLoadContentList(typeSlug, context);
|
|
115
|
+
}
|
|
116
|
+
const typesState = queryClient.getQueryState(
|
|
117
|
+
queries.cmsTypes.list().queryKey
|
|
118
|
+
);
|
|
119
|
+
const listState = queryClient.getQueryState(listQuery.queryKey);
|
|
120
|
+
const queryError = typesState?.error || listState?.error;
|
|
121
|
+
if (queryError && hooks?.onLoadError) {
|
|
122
|
+
const error = queryError instanceof Error ? queryError : new Error(String(queryError));
|
|
123
|
+
await hooks.onLoadError(error, context);
|
|
124
|
+
}
|
|
125
|
+
} catch (error) {
|
|
126
|
+
if (hooks?.onLoadError) {
|
|
127
|
+
await hooks.onLoadError(error, context);
|
|
128
|
+
}
|
|
74
129
|
}
|
|
75
130
|
}
|
|
76
131
|
};
|
|
@@ -78,13 +133,31 @@ function createContentListLoader(typeSlug, config) {
|
|
|
78
133
|
function createContentEditorLoader(typeSlug, id, config) {
|
|
79
134
|
return async () => {
|
|
80
135
|
if (typeof window === "undefined") {
|
|
81
|
-
const { queryClient, apiBasePath, apiBaseURL, headers } = config;
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
136
|
+
const { queryClient, apiBasePath, apiBaseURL, headers, hooks } = config;
|
|
137
|
+
const context = {
|
|
138
|
+
path: id ? `/cms/${typeSlug}/${id}` : `/cms/${typeSlug}/new`,
|
|
139
|
+
params: id ? { typeSlug, id } : { typeSlug },
|
|
140
|
+
isSSR: true,
|
|
141
|
+
apiBaseURL,
|
|
142
|
+
apiBasePath,
|
|
143
|
+
headers
|
|
144
|
+
};
|
|
87
145
|
try {
|
|
146
|
+
if (hooks?.beforeLoadContentEditor) {
|
|
147
|
+
const canLoad = await hooks.beforeLoadContentEditor(
|
|
148
|
+
typeSlug,
|
|
149
|
+
id,
|
|
150
|
+
context
|
|
151
|
+
);
|
|
152
|
+
if (!canLoad) {
|
|
153
|
+
throw new Error("Load prevented by beforeLoadContentEditor hook");
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
const client$1 = client.createApiClient({
|
|
157
|
+
baseURL: apiBaseURL,
|
|
158
|
+
basePath: apiBasePath
|
|
159
|
+
});
|
|
160
|
+
const queries = plugins_cms_queryKeys.createCMSQueryKeys(client$1, headers);
|
|
88
161
|
const promises = [queryClient.prefetchQuery(queries.cmsTypes.list())];
|
|
89
162
|
if (id) {
|
|
90
163
|
promises.push(
|
|
@@ -92,7 +165,24 @@ function createContentEditorLoader(typeSlug, id, config) {
|
|
|
92
165
|
);
|
|
93
166
|
}
|
|
94
167
|
await Promise.all(promises);
|
|
95
|
-
|
|
168
|
+
if (hooks?.afterLoadContentEditor) {
|
|
169
|
+
await hooks.afterLoadContentEditor(typeSlug, id, context);
|
|
170
|
+
}
|
|
171
|
+
const typesState = queryClient.getQueryState(
|
|
172
|
+
queries.cmsTypes.list().queryKey
|
|
173
|
+
);
|
|
174
|
+
const itemState = id ? queryClient.getQueryState(
|
|
175
|
+
queries.cmsContent.detail(typeSlug, id).queryKey
|
|
176
|
+
) : null;
|
|
177
|
+
const queryError = typesState?.error || itemState?.error;
|
|
178
|
+
if (queryError && hooks?.onLoadError) {
|
|
179
|
+
const error = queryError instanceof Error ? queryError : new Error(String(queryError));
|
|
180
|
+
await hooks.onLoadError(error, context);
|
|
181
|
+
}
|
|
182
|
+
} catch (error) {
|
|
183
|
+
if (hooks?.onLoadError) {
|
|
184
|
+
await hooks.onLoadError(error, context);
|
|
185
|
+
}
|
|
96
186
|
}
|
|
97
187
|
}
|
|
98
188
|
};
|