@btst/stack 1.4.1 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/index.cjs +85 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/index.mjs +83 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/mini.cjs +237 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/mini.mjs +235 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzName/index.cjs +41 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzName/index.mjs +39 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzOffset/index.cjs +46 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzOffset/index.mjs +44 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1.3.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_c1e3fbdebd5ee34a254141dc5a2dcd28/node_modules/@radix-ui/react-checkbox/dist/index.cjs +296 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1.3.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_c1e3fbdebd5ee34a254141dc5a2dcd28/node_modules/@radix-ui/react-checkbox/dist/index.mjs +271 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_5c5a3ca63b34dfe7d9d23f1e8cee675c/node_modules/@radix-ui/react-popover/dist/index.cjs +325 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_5c5a3ca63b34dfe7d9d23f1e8cee675c/node_modules/@radix-ui/react-popover/dist/index.mjs +299 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.4_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_43b950ce9f6b8d55739cce33fe173a1c/node_modules/@radix-ui/react-primitive/dist/index.cjs +56 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.4_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_43b950ce9f6b8d55739cce33fe173a1c/node_modules/@radix-ui/react-primitive/dist/index.mjs +40 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.3.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_e0d4db654009398ea41c8e459eeae4ee/node_modules/@radix-ui/react-radio-group/dist/index.cjs +304 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.3.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_e0d4db654009398ea41c8e459eeae4ee/node_modules/@radix-ui/react-radio-group/dist/index.mjs +283 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1.1.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_8aae318b88145540882c32de0262377a/node_modules/@radix-ui/react-separator/dist/index.cjs +47 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1.1.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_8aae318b88145540882c32de0262377a/node_modules/@radix-ui/react-separator/dist/index.mjs +30 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/DayPicker.cjs +326 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/DayPicker.mjs +320 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/UI.cjs +122 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/UI.mjs +122 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarDay.cjs +35 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarDay.mjs +33 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.cjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.cjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/DateLib.cjs +577 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/DateLib.mjs +573 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Button.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Button.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/CaptionLabel.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/CaptionLabel.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Chevron.cjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Chevron.mjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Day.cjs +24 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Day.mjs +18 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DayButton.cjs +25 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DayButton.mjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Dropdown.cjs +27 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Dropdown.mjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DropdownNav.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DropdownNav.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Footer.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Footer.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Month.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Month.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthCaption.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthCaption.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthGrid.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthGrid.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Months.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Months.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Nav.cjs +37 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Nav.mjs +31 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/NextMonthButton.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/NextMonthButton.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Option.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Option.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Root.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Root.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Select.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Select.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Week.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Week.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumber.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumber.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekday.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekday.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekdays.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekdays.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weeks.cjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weeks.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/YearsDropdown.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/YearsDropdown.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/custom-components.cjs +57 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/custom-components.mjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatCaption.cjs +29 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatCaption.mjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatDay.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatDay.mjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.mjs +18 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.cjs +23 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.mjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.cjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.mjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.cjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.mjs +23 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/index.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/index.mjs +7 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.cjs +75 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.mjs +73 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.cjs +97 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.mjs +95 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.cjs +24 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.mjs +22 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.cjs +30 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.mjs +28 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.cjs +35 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.mjs +33 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getComponents.cjs +22 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getComponents.mjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.cjs +29 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.mjs +27 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDates.cjs +61 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDates.mjs +59 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDays.cjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDays.mjs +19 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.cjs +35 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.mjs +33 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.cjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.mjs +24 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.cjs +48 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.mjs +46 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFormatters.cjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFormatters.mjs +24 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.cjs +29 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.mjs +27 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getLabels.cjs +55 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getLabels.mjs +53 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.cjs +35 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.mjs +33 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonths.cjs +71 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonths.mjs +69 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.cjs +53 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.mjs +51 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.cjs +42 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.mjs +40 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.cjs +38 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.mjs +36 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.cjs +39 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.mjs +37 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.cjs +29 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.mjs +27 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.cjs +28 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.mjs +26 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeeks.cjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeeks.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.cjs +38 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.mjs +36 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.cjs +29 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.mjs +27 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.cjs +33 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.mjs +31 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/index.cjs +29 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/index.mjs +11 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelDayButton.cjs +35 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelDayButton.mjs +32 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGrid.cjs +28 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGrid.mjs +25 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGridcell.cjs +24 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGridcell.mjs +22 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.cjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNav.cjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNav.mjs +13 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNext.cjs +18 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNext.mjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelPrevious.cjs +17 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelPrevious.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.cjs +17 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.mjs +15 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.cjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekday.cjs +20 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekday.mjs +18 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.cjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.mjs +14 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/locale/en-US.cjs +69 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/locale/en-US.mjs +67 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useMulti.cjs +59 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useMulti.mjs +57 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useRange.cjs +47 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useRange.mjs +45 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useSingle.cjs +46 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useSingle.mjs +44 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useAnimation.cjs +176 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useAnimation.mjs +174 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useCalendar.cjs +115 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useCalendar.mjs +113 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useDayPicker.cjs +28 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useDayPicker.mjs +25 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useFocus.cjs +58 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useFocus.mjs +56 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useSelection.cjs +33 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useSelection.mjs +31 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/addToRange.cjs +97 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/addToRange.mjs +95 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.cjs +59 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.mjs +57 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.cjs +64 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.mjs +62 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.cjs +32 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.mjs +30 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.cjs +76 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.mjs +74 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.cjs +37 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.mjs +35 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.cjs +23 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.mjs +21 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/toTimeZone.cjs +18 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/toTimeZone.mjs +16 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/typeguards.cjs +73 -0
- package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/typeguards.mjs +66 -0
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-interface.cjs +7 -0
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-interface.mjs +7 -0
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.cjs +131 -124
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.mjs +131 -124
- package/dist/packages/better-stack/src/plugins/ai-chat/schemas.cjs +23 -23
- package/dist/packages/better-stack/src/plugins/blog/api/plugin.cjs +28 -12
- package/dist/packages/better-stack/src/plugins/blog/api/plugin.mjs +18 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/form-page-skeleton.cjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/form-page-skeleton.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/list-page-skeleton.cjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/list-page-skeleton.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/post-page-skeleton.cjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/post-page-skeleton.mjs +1 -1
- 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/components/shared/page-wrapper.cjs +10 -6
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/page-wrapper.mjs +11 -7
- 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/blog/schemas.cjs +17 -17
- package/dist/packages/better-stack/src/plugins/cms/api/plugin.cjs +457 -0
- package/dist/packages/better-stack/src/plugins/cms/api/plugin.mjs +455 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.cjs +299 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.mjs +297 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +118 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.mjs +116 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/dashboard-skeleton.cjs +18 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/dashboard-skeleton.mjs +16 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/editor-skeleton.cjs +32 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/editor-skeleton.mjs +30 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/list-skeleton.cjs +32 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/list-skeleton.mjs +30 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/404-page.cjs +20 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/404-page.mjs +18 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.cjs +46 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +100 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.mjs +98 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.mjs +44 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.cjs +43 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.cjs +165 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.mjs +163 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.mjs +41 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.cjs +39 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.cjs +84 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.mjs +82 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.mjs +37 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.cjs +17 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.mjs +15 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.cjs +16 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.mjs +14 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/page-wrapper.cjs +27 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/page-wrapper.mjs +25 -0
- package/dist/packages/better-stack/src/plugins/cms/client/hooks/cms-hooks.cjs +402 -0
- package/dist/packages/better-stack/src/plugins/cms/client/hooks/cms-hooks.mjs +390 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-common.cjs +29 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-common.mjs +27 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-dashboard.cjs +13 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-dashboard.mjs +11 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-editor.cjs +12 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-editor.mjs +10 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-list.cjs +18 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-list.mjs +16 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-toasts.cjs +12 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-toasts.mjs +10 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/index.cjs +17 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/index.mjs +15 -0
- package/dist/packages/better-stack/src/plugins/cms/client/plugin.cjs +275 -0
- package/dist/packages/better-stack/src/plugins/cms/client/plugin.mjs +273 -0
- package/dist/packages/better-stack/src/plugins/cms/db.cjs +76 -0
- package/dist/packages/better-stack/src/plugins/cms/db.mjs +74 -0
- package/dist/packages/better-stack/src/plugins/cms/schemas.cjs +54 -0
- package/dist/packages/better-stack/src/plugins/cms/schemas.mjs +49 -0
- package/dist/packages/better-stack/src/plugins/cms/utils.cjs +15 -0
- package/dist/packages/better-stack/src/plugins/cms/utils.mjs +9 -0
- package/dist/packages/ui/src/components/calendar.cjs +205 -0
- package/dist/packages/ui/src/components/calendar.mjs +188 -0
- package/dist/packages/ui/src/components/checkbox.cjs +34 -0
- package/dist/packages/ui/src/components/checkbox.mjs +32 -0
- package/dist/packages/ui/src/components/date-picker.cjs +41 -0
- package/dist/packages/ui/src/components/date-picker.mjs +39 -0
- package/dist/packages/ui/src/components/form.mjs +1 -1
- package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/components}/page-layout.cjs +2 -1
- package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/components}/page-layout.mjs +2 -1
- package/dist/packages/ui/src/components/page-wrapper.cjs +20 -0
- package/dist/packages/ui/src/components/page-wrapper.mjs +18 -0
- package/dist/packages/ui/src/components/popover.cjs +41 -0
- package/dist/packages/ui/src/components/popover.mjs +37 -0
- package/dist/packages/ui/src/components/radio-group.cjs +48 -0
- package/dist/packages/ui/src/components/radio-group.mjs +45 -0
- package/dist/packages/ui/src/components/separator.cjs +29 -0
- package/dist/packages/ui/src/components/separator.mjs +27 -0
- package/dist/packages/ui/src/components/table.cjs +89 -0
- package/dist/packages/ui/src/components/table.mjs +82 -0
- package/dist/packages/ui/src/components/ui/auto-form/common/label.cjs +18 -0
- package/dist/packages/ui/src/components/ui/auto-form/common/label.mjs +16 -0
- package/dist/packages/ui/src/components/ui/auto-form/common/tooltip.cjs +9 -0
- package/dist/packages/ui/src/components/ui/auto-form/common/tooltip.mjs +7 -0
- package/dist/packages/ui/src/components/ui/auto-form/config.cjs +42 -0
- package/dist/packages/ui/src/components/ui/auto-form/config.mjs +39 -0
- package/dist/packages/ui/src/components/ui/auto-form/dependencies.cjs +48 -0
- package/dist/packages/ui/src/components/ui/auto-form/dependencies.mjs +46 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/array.cjs +103 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/array.mjs +87 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/checkbox.cjs +38 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/checkbox.mjs +36 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/date.cjs +37 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/date.mjs +35 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/enum.cjs +73 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/enum.mjs +71 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/file.cjs +63 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/file.mjs +61 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/input.cjs +32 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/input.mjs +30 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/number.cjs +31 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/number.mjs +29 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/object.cjs +149 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/object.mjs +133 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/radio-group.cjs +67 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/radio-group.mjs +65 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/switch.cjs +38 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/switch.mjs +36 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/textarea.cjs +31 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/textarea.mjs +29 -0
- package/dist/packages/ui/src/components/ui/auto-form/index.cjs +87 -0
- package/dist/packages/ui/src/components/ui/auto-form/index.mjs +78 -0
- package/dist/packages/ui/src/components/ui/auto-form/types.cjs +11 -0
- package/dist/packages/ui/src/components/ui/auto-form/types.mjs +9 -0
- package/dist/packages/ui/src/components/ui/auto-form/utils.cjs +179 -0
- package/dist/packages/ui/src/components/ui/auto-form/utils.mjs +169 -0
- 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/ai-chat/api/index.d.cts +1 -1
- package/dist/plugins/ai-chat/api/index.d.mts +1 -1
- package/dist/plugins/ai-chat/api/index.d.ts +1 -1
- package/dist/plugins/ai-chat/client/hooks/index.d.cts +1 -1
- package/dist/plugins/ai-chat/client/hooks/index.d.mts +1 -1
- package/dist/plugins/ai-chat/client/hooks/index.d.ts +1 -1
- package/dist/plugins/ai-chat/query-keys.d.cts +56 -250
- package/dist/plugins/ai-chat/query-keys.d.mts +56 -250
- package/dist/plugins/ai-chat/query-keys.d.ts +56 -250
- 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 +103 -363
- package/dist/plugins/blog/query-keys.d.mts +103 -363
- package/dist/plugins/blog/query-keys.d.ts +103 -363
- package/dist/plugins/cms/api/index.cjs +7 -0
- package/dist/plugins/cms/api/index.d.cts +101 -0
- package/dist/plugins/cms/api/index.d.mts +101 -0
- package/dist/plugins/cms/api/index.d.ts +101 -0
- package/dist/plugins/cms/api/index.mjs +1 -0
- package/dist/plugins/cms/client/components/index.cjs +14 -0
- package/dist/plugins/cms/client/components/index.d.cts +20 -0
- package/dist/plugins/cms/client/components/index.d.mts +20 -0
- package/dist/plugins/cms/client/components/index.d.ts +20 -0
- package/dist/plugins/cms/client/components/index.mjs +10 -0
- package/dist/plugins/cms/client/hooks/index.cjs +17 -0
- package/dist/plugins/cms/client/hooks/index.d.cts +203 -0
- package/dist/plugins/cms/client/hooks/index.d.mts +203 -0
- package/dist/plugins/cms/client/hooks/index.d.ts +203 -0
- package/dist/plugins/cms/client/hooks/index.mjs +1 -0
- package/dist/plugins/cms/client/index.cjs +9 -0
- package/dist/plugins/cms/client/index.d.cts +409 -0
- package/dist/plugins/cms/client/index.d.mts +409 -0
- package/dist/plugins/cms/client/index.d.ts +409 -0
- package/dist/plugins/cms/client/index.mjs +2 -0
- package/dist/plugins/cms/client.css +2 -0
- package/dist/plugins/cms/query-keys.cjs +137 -0
- package/dist/plugins/cms/query-keys.d.cts +79 -0
- package/dist/plugins/cms/query-keys.d.mts +79 -0
- package/dist/plugins/cms/query-keys.d.ts +79 -0
- package/dist/plugins/cms/query-keys.mjs +135 -0
- package/dist/plugins/cms/style.css +19 -0
- package/dist/shared/stack.BwkyFwF8.d.cts +135 -0
- package/dist/shared/stack.DBqxCs0V.d.mts +135 -0
- package/dist/shared/stack.DwnJA87a.d.ts +135 -0
- package/dist/shared/stack.NZJogTUn.d.cts +66 -0
- package/dist/shared/stack.NZJogTUn.d.mts +66 -0
- package/dist/shared/stack.NZJogTUn.d.ts +66 -0
- package/package.json +58 -5
- package/src/plugins/ai-chat/client/components/chat-interface.tsx +15 -0
- package/src/plugins/ai-chat/client/components/chat-sidebar.tsx +4 -1
- package/src/plugins/blog/api/plugin.ts +29 -2
- package/src/plugins/blog/client/components/loading/form-page-skeleton.tsx +1 -1
- package/src/plugins/blog/client/components/loading/list-page-skeleton.tsx +1 -1
- package/src/plugins/blog/client/components/loading/post-page-skeleton.tsx +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/components/shared/page-wrapper.tsx +9 -9
- package/src/plugins/blog/client/plugin.tsx +10 -9
- package/src/plugins/cms/__tests__/schema-roundtrip.test.ts +611 -0
- package/src/plugins/cms/api/index.ts +1 -0
- package/src/plugins/cms/api/plugin.ts +611 -0
- package/src/plugins/cms/client/components/forms/content-form.tsx +477 -0
- package/src/plugins/cms/client/components/forms/file-upload.tsx +164 -0
- package/src/plugins/cms/client/components/index.tsx +10 -0
- package/src/plugins/cms/client/components/loading/dashboard-skeleton.tsx +22 -0
- package/src/plugins/cms/client/components/loading/editor-skeleton.tsx +35 -0
- package/src/plugins/cms/client/components/loading/index.tsx +3 -0
- package/src/plugins/cms/client/components/loading/list-skeleton.tsx +38 -0
- package/src/plugins/cms/client/components/pages/404-page.tsx +27 -0
- package/src/plugins/cms/client/components/pages/content-editor-page.internal.tsx +139 -0
- package/src/plugins/cms/client/components/pages/content-editor-page.tsx +50 -0
- package/src/plugins/cms/client/components/pages/content-list-page.internal.tsx +213 -0
- package/src/plugins/cms/client/components/pages/content-list-page.tsx +45 -0
- package/src/plugins/cms/client/components/pages/dashboard-page.internal.tsx +111 -0
- package/src/plugins/cms/client/components/pages/dashboard-page.tsx +37 -0
- package/src/plugins/cms/client/components/shared/default-error.tsx +30 -0
- package/src/plugins/cms/client/components/shared/empty-state.tsx +26 -0
- package/src/plugins/cms/client/components/shared/page-wrapper.tsx +32 -0
- package/src/plugins/cms/client/components/shared/pagination.tsx +72 -0
- package/src/plugins/cms/client/hooks/cms-hooks.tsx +724 -0
- package/src/plugins/cms/client/hooks/index.tsx +1 -0
- package/src/plugins/cms/client/index.ts +13 -0
- package/src/plugins/cms/client/localization/cms-common.ts +29 -0
- package/src/plugins/cms/client/localization/cms-dashboard.ts +10 -0
- package/src/plugins/cms/client/localization/cms-editor.ts +8 -0
- package/src/plugins/cms/client/localization/cms-list.ts +14 -0
- package/src/plugins/cms/client/localization/cms-toasts.ts +8 -0
- package/src/plugins/cms/client/localization/index.ts +15 -0
- package/src/plugins/cms/client/overrides.ts +166 -0
- package/src/plugins/cms/client/plugin.tsx +494 -0
- package/src/plugins/cms/client.css +2 -0
- package/src/plugins/cms/db.ts +76 -0
- package/src/plugins/cms/query-keys.ts +186 -0
- package/src/plugins/cms/schemas.ts +81 -0
- package/src/plugins/cms/style.css +19 -0
- package/src/plugins/cms/types.ts +220 -0
- package/src/plugins/cms/utils.ts +11 -0
- package/src/plugins/blog/client/components/shared/page-layout.tsx +0 -23
- package/src/plugins/blog/client/components/shared/use-route-lifecycle.tsx +0 -68
- 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
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ComponentType } from 'react';
|
|
4
|
+
import * as _btst_yar from '@btst/yar';
|
|
5
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
+
import { a as AutoFormInputComponentProps } from '../../../shared/stack.NZJogTUn.js';
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
|
+
import 'react-hook-form';
|
|
9
|
+
import 'zod';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Context passed to loader hooks
|
|
13
|
+
*/
|
|
14
|
+
interface LoaderContext {
|
|
15
|
+
/** Current route path */
|
|
16
|
+
path: string;
|
|
17
|
+
/** Route parameters (e.g., { typeSlug: "product", id: "123" }) */
|
|
18
|
+
params?: Record<string, string>;
|
|
19
|
+
/** Whether rendering on server (true) or client (false) */
|
|
20
|
+
isSSR: boolean;
|
|
21
|
+
/** Base URL for API calls */
|
|
22
|
+
apiBaseURL: string;
|
|
23
|
+
/** Path where the API is mounted */
|
|
24
|
+
apiBasePath: string;
|
|
25
|
+
/** Optional headers for the request */
|
|
26
|
+
headers?: Headers;
|
|
27
|
+
/** Additional context properties */
|
|
28
|
+
[key: string]: unknown;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Hooks for CMS client plugin
|
|
32
|
+
* All hooks are optional and allow consumers to customize behavior
|
|
33
|
+
*/
|
|
34
|
+
interface CMSClientHooks {
|
|
35
|
+
/**
|
|
36
|
+
* Called before loading the dashboard page. Return false to cancel loading.
|
|
37
|
+
* @param context - Loader context with path, params, etc.
|
|
38
|
+
*/
|
|
39
|
+
beforeLoadDashboard?: (context: LoaderContext) => Promise<boolean> | boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Called after the dashboard is loaded.
|
|
42
|
+
* @param context - Loader context
|
|
43
|
+
*/
|
|
44
|
+
afterLoadDashboard?: (context: LoaderContext) => Promise<void> | void;
|
|
45
|
+
/**
|
|
46
|
+
* Called before loading a content list page. Return false to cancel loading.
|
|
47
|
+
* @param typeSlug - The content type slug
|
|
48
|
+
* @param context - Loader context
|
|
49
|
+
*/
|
|
50
|
+
beforeLoadContentList?: (typeSlug: string, context: LoaderContext) => Promise<boolean> | boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Called after a content list is loaded.
|
|
53
|
+
* @param typeSlug - The content type slug
|
|
54
|
+
* @param context - Loader context
|
|
55
|
+
*/
|
|
56
|
+
afterLoadContentList?: (typeSlug: string, context: LoaderContext) => Promise<void> | void;
|
|
57
|
+
/**
|
|
58
|
+
* Called before loading the content editor page. Return false to cancel loading.
|
|
59
|
+
* @param typeSlug - The content type slug
|
|
60
|
+
* @param id - The content item ID (undefined for new items)
|
|
61
|
+
* @param context - Loader context
|
|
62
|
+
*/
|
|
63
|
+
beforeLoadContentEditor?: (typeSlug: string, id: string | undefined, context: LoaderContext) => Promise<boolean> | boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Called after the content editor is loaded.
|
|
66
|
+
* @param typeSlug - The content type slug
|
|
67
|
+
* @param id - The content item ID (undefined for new items)
|
|
68
|
+
* @param context - Loader context
|
|
69
|
+
*/
|
|
70
|
+
afterLoadContentEditor?: (typeSlug: string, id: string | undefined, context: LoaderContext) => Promise<void> | void;
|
|
71
|
+
/**
|
|
72
|
+
* Called when a loading error occurs.
|
|
73
|
+
* Use this for redirects on authorization failures.
|
|
74
|
+
* @param error - The error that occurred
|
|
75
|
+
* @param context - Loader context
|
|
76
|
+
*/
|
|
77
|
+
onLoadError?: (error: Error, context: LoaderContext) => Promise<void> | void;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Configuration for CMS client plugin
|
|
81
|
+
*/
|
|
82
|
+
interface CMSClientConfig {
|
|
83
|
+
/** Base URL for API calls (e.g., "http://localhost:3000") */
|
|
84
|
+
apiBaseURL: string;
|
|
85
|
+
/** Path where the API is mounted (e.g., "/api/data") */
|
|
86
|
+
apiBasePath: string;
|
|
87
|
+
/** Base URL of your site */
|
|
88
|
+
siteBaseURL: string;
|
|
89
|
+
/** Path where pages are mounted (e.g., "/pages") */
|
|
90
|
+
siteBasePath: string;
|
|
91
|
+
/** React Query client instance for caching */
|
|
92
|
+
queryClient: QueryClient;
|
|
93
|
+
/** Optional headers for SSR (e.g., forwarding cookies) */
|
|
94
|
+
headers?: Headers;
|
|
95
|
+
/** Optional hooks for customizing behavior (authorization, redirects, etc.) */
|
|
96
|
+
hooks?: CMSClientHooks;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* CMS client plugin
|
|
100
|
+
* Provides routes and components for the CMS admin interface
|
|
101
|
+
*/
|
|
102
|
+
declare const cmsClientPlugin: (config: CMSClientConfig) => _btst_stack_plugins_client.ClientPlugin<Record<string, never>, {
|
|
103
|
+
dashboard: {
|
|
104
|
+
(inputCtx_0?: _btst_yar.InputContext<"/cms", _btst_yar.RouteOptions> | undefined): {
|
|
105
|
+
PageComponent?: react.ComponentType<unknown> | undefined;
|
|
106
|
+
LoadingComponent?: react.ComponentType<unknown> | undefined;
|
|
107
|
+
ErrorComponent?: react.ComponentType<unknown> | undefined;
|
|
108
|
+
loader?: (() => Promise<void>) | undefined;
|
|
109
|
+
meta?: (() => ({
|
|
110
|
+
title: string;
|
|
111
|
+
name?: undefined;
|
|
112
|
+
content?: undefined;
|
|
113
|
+
} | {
|
|
114
|
+
name: string;
|
|
115
|
+
content: string;
|
|
116
|
+
title?: undefined;
|
|
117
|
+
})[]) | undefined;
|
|
118
|
+
extra?: (() => any) | undefined;
|
|
119
|
+
};
|
|
120
|
+
options: _btst_yar.RouteOptions | undefined;
|
|
121
|
+
path: "/cms";
|
|
122
|
+
meta: _btst_yar.RouteMeta | undefined;
|
|
123
|
+
};
|
|
124
|
+
contentList: {
|
|
125
|
+
(inputCtx_0: _btst_yar.InputContext<"/cms/:typeSlug", _btst_yar.RouteOptions>): {
|
|
126
|
+
PageComponent?: react.ComponentType<unknown> | undefined;
|
|
127
|
+
LoadingComponent?: react.ComponentType<unknown> | undefined;
|
|
128
|
+
ErrorComponent?: react.ComponentType<unknown> | undefined;
|
|
129
|
+
loader?: (() => Promise<void>) | undefined;
|
|
130
|
+
meta?: (() => ({
|
|
131
|
+
title: string;
|
|
132
|
+
name?: undefined;
|
|
133
|
+
content?: undefined;
|
|
134
|
+
} | {
|
|
135
|
+
name: string;
|
|
136
|
+
content: string;
|
|
137
|
+
title?: undefined;
|
|
138
|
+
})[]) | undefined;
|
|
139
|
+
extra?: (() => any) | undefined;
|
|
140
|
+
};
|
|
141
|
+
options: _btst_yar.RouteOptions | undefined;
|
|
142
|
+
path: "/cms/:typeSlug";
|
|
143
|
+
meta: _btst_yar.RouteMeta | undefined;
|
|
144
|
+
};
|
|
145
|
+
newContent: {
|
|
146
|
+
(inputCtx_0: _btst_yar.InputContext<"/cms/:typeSlug/new", _btst_yar.RouteOptions>): {
|
|
147
|
+
PageComponent?: react.ComponentType<unknown> | undefined;
|
|
148
|
+
LoadingComponent?: react.ComponentType<unknown> | undefined;
|
|
149
|
+
ErrorComponent?: react.ComponentType<unknown> | undefined;
|
|
150
|
+
loader?: (() => Promise<void>) | undefined;
|
|
151
|
+
meta?: (() => ({
|
|
152
|
+
title: string;
|
|
153
|
+
name?: undefined;
|
|
154
|
+
content?: undefined;
|
|
155
|
+
} | {
|
|
156
|
+
name: string;
|
|
157
|
+
content: string;
|
|
158
|
+
title?: undefined;
|
|
159
|
+
})[]) | undefined;
|
|
160
|
+
extra?: (() => any) | undefined;
|
|
161
|
+
};
|
|
162
|
+
options: _btst_yar.RouteOptions | undefined;
|
|
163
|
+
path: "/cms/:typeSlug/new";
|
|
164
|
+
meta: _btst_yar.RouteMeta | undefined;
|
|
165
|
+
};
|
|
166
|
+
editContent: {
|
|
167
|
+
(inputCtx_0: _btst_yar.InputContext<"/cms/:typeSlug/:id", _btst_yar.RouteOptions>): {
|
|
168
|
+
PageComponent?: react.ComponentType<unknown> | undefined;
|
|
169
|
+
LoadingComponent?: react.ComponentType<unknown> | undefined;
|
|
170
|
+
ErrorComponent?: react.ComponentType<unknown> | undefined;
|
|
171
|
+
loader?: (() => Promise<void>) | undefined;
|
|
172
|
+
meta?: (() => ({
|
|
173
|
+
title: string;
|
|
174
|
+
name?: undefined;
|
|
175
|
+
content?: undefined;
|
|
176
|
+
} | {
|
|
177
|
+
name: string;
|
|
178
|
+
content: string;
|
|
179
|
+
title?: undefined;
|
|
180
|
+
})[]) | undefined;
|
|
181
|
+
extra?: (() => any) | undefined;
|
|
182
|
+
};
|
|
183
|
+
options: _btst_yar.RouteOptions | undefined;
|
|
184
|
+
path: "/cms/:typeSlug/:id";
|
|
185
|
+
meta: _btst_yar.RouteMeta | undefined;
|
|
186
|
+
};
|
|
187
|
+
}>;
|
|
188
|
+
|
|
189
|
+
declare const CMS_LOCALIZATION: {
|
|
190
|
+
CMS_EDITOR_TITLE_NEW: string;
|
|
191
|
+
CMS_EDITOR_TITLE_EDIT: string;
|
|
192
|
+
CMS_EDITOR_SLUG_AUTO: string;
|
|
193
|
+
CMS_EDITOR_SLUG_MANUAL: string;
|
|
194
|
+
CMS_EDITOR_DELETE_CONFIRM: string;
|
|
195
|
+
CMS_EDITOR_UNSAVED_CHANGES: string;
|
|
196
|
+
CMS_LIST_TITLE: string;
|
|
197
|
+
CMS_LIST_EMPTY: string;
|
|
198
|
+
CMS_LIST_EMPTY_DESCRIPTION: string;
|
|
199
|
+
CMS_LIST_COLUMN_SLUG: string;
|
|
200
|
+
CMS_LIST_COLUMN_CREATED: string;
|
|
201
|
+
CMS_LIST_COLUMN_UPDATED: string;
|
|
202
|
+
CMS_LIST_COLUMN_ACTIONS: string;
|
|
203
|
+
CMS_LIST_ACTION_EDIT: string;
|
|
204
|
+
CMS_LIST_ACTION_DELETE: string;
|
|
205
|
+
CMS_LIST_PAGINATION_SHOWING: string;
|
|
206
|
+
CMS_LIST_PAGINATION_PREVIOUS: string;
|
|
207
|
+
CMS_LIST_PAGINATION_NEXT: string;
|
|
208
|
+
CMS_DASHBOARD_TITLE: string;
|
|
209
|
+
CMS_DASHBOARD_SUBTITLE: string;
|
|
210
|
+
CMS_DASHBOARD_NO_TYPES: string;
|
|
211
|
+
CMS_DASHBOARD_NO_TYPES_DESCRIPTION: string;
|
|
212
|
+
CMS_DASHBOARD_ITEMS_COUNT: string;
|
|
213
|
+
CMS_DASHBOARD_ITEMS_COUNT_ZERO: string;
|
|
214
|
+
CMS_DASHBOARD_ITEMS_COUNT_ONE: string;
|
|
215
|
+
CMS_TOAST_CREATE_SUCCESS: string;
|
|
216
|
+
CMS_TOAST_UPDATE_SUCCESS: string;
|
|
217
|
+
CMS_TOAST_DELETE_SUCCESS: string;
|
|
218
|
+
CMS_TOAST_ERROR: string;
|
|
219
|
+
CMS_TOAST_VALIDATION_ERROR: string;
|
|
220
|
+
CMS_TOAST_DUPLICATE_SLUG: string;
|
|
221
|
+
CMS_BUTTON_SAVE: string;
|
|
222
|
+
CMS_BUTTON_CANCEL: string;
|
|
223
|
+
CMS_BUTTON_DELETE: string;
|
|
224
|
+
CMS_BUTTON_CREATE: string;
|
|
225
|
+
CMS_BUTTON_BACK: string;
|
|
226
|
+
CMS_BUTTON_NEW_ITEM: string;
|
|
227
|
+
CMS_LABEL_SLUG: string;
|
|
228
|
+
CMS_LABEL_SLUG_DESCRIPTION: string;
|
|
229
|
+
CMS_LABEL_CREATED_AT: string;
|
|
230
|
+
CMS_LABEL_UPDATED_AT: string;
|
|
231
|
+
CMS_LABEL_ACTIONS: string;
|
|
232
|
+
CMS_STATUS_LOADING: string;
|
|
233
|
+
CMS_STATUS_SAVING: string;
|
|
234
|
+
CMS_STATUS_DELETING: string;
|
|
235
|
+
CMS_ERROR_GENERIC: string;
|
|
236
|
+
CMS_ERROR_NOT_FOUND: string;
|
|
237
|
+
CMS_ERROR_VALIDATION: string;
|
|
238
|
+
CMS_ATTRIBUTION: string;
|
|
239
|
+
};
|
|
240
|
+
type CMSLocalization = typeof CMS_LOCALIZATION;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Context passed to lifecycle hooks
|
|
244
|
+
*/
|
|
245
|
+
interface RouteContext {
|
|
246
|
+
/** Current route path */
|
|
247
|
+
path: string;
|
|
248
|
+
/** Route parameters (e.g., { typeSlug: "product", id: "123" }) */
|
|
249
|
+
params?: Record<string, string>;
|
|
250
|
+
/** Whether rendering on server (true) or client (false) */
|
|
251
|
+
isSSR: boolean;
|
|
252
|
+
/** Additional context properties */
|
|
253
|
+
[key: string]: unknown;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Overridable components and functions for the CMS plugin
|
|
257
|
+
*
|
|
258
|
+
* External consumers can provide their own implementations of these
|
|
259
|
+
* to customize the behavior for their framework (Next.js, React Router, etc.)
|
|
260
|
+
*/
|
|
261
|
+
interface CMSPluginOverrides {
|
|
262
|
+
/**
|
|
263
|
+
* Link component for navigation
|
|
264
|
+
*/
|
|
265
|
+
Link?: ComponentType<React.ComponentProps<"a"> & Record<string, unknown>>;
|
|
266
|
+
/**
|
|
267
|
+
* Navigation function for programmatic navigation
|
|
268
|
+
*/
|
|
269
|
+
navigate: (path: string) => void | Promise<void>;
|
|
270
|
+
/**
|
|
271
|
+
* Refresh function to invalidate server-side cache (e.g., Next.js router.refresh())
|
|
272
|
+
*/
|
|
273
|
+
refresh?: () => void | Promise<void>;
|
|
274
|
+
/**
|
|
275
|
+
* Image component for displaying images
|
|
276
|
+
*/
|
|
277
|
+
Image?: ComponentType<React.ImgHTMLAttributes<HTMLImageElement> & Record<string, unknown>>;
|
|
278
|
+
/**
|
|
279
|
+
* Function used to upload an image and return its URL.
|
|
280
|
+
* Used by the default "file" field component.
|
|
281
|
+
*/
|
|
282
|
+
uploadImage?: (file: File) => Promise<string>;
|
|
283
|
+
/**
|
|
284
|
+
* Custom field components for AutoForm fields.
|
|
285
|
+
*
|
|
286
|
+
* These map field type names to React components. Use these to:
|
|
287
|
+
* - Override built-in field types (checkbox, date, select, radio, switch, textarea, file, number, fallback)
|
|
288
|
+
* - Add custom field types for your content types
|
|
289
|
+
*
|
|
290
|
+
* The component receives AutoFormInputComponentProps which includes:
|
|
291
|
+
* - field: react-hook-form field controller
|
|
292
|
+
* - label: the field label
|
|
293
|
+
* - isRequired: whether the field is required
|
|
294
|
+
* - fieldConfigItem: the field config (description, inputProps, etc.)
|
|
295
|
+
* - fieldProps: additional props from fieldConfig.inputProps
|
|
296
|
+
* - zodItem: the Zod schema for this field
|
|
297
|
+
*
|
|
298
|
+
* @example
|
|
299
|
+
* ```tsx
|
|
300
|
+
* fieldComponents: {
|
|
301
|
+
* // Override the file type with custom S3 upload
|
|
302
|
+
* file: ({ field, label, isRequired }) => (
|
|
303
|
+
* <MyS3Upload
|
|
304
|
+
* value={field.value}
|
|
305
|
+
* onChange={field.onChange}
|
|
306
|
+
* label={label}
|
|
307
|
+
* required={isRequired}
|
|
308
|
+
* />
|
|
309
|
+
* ),
|
|
310
|
+
* // Add a custom rich text editor
|
|
311
|
+
* richText: ({ field, label }) => (
|
|
312
|
+
* <MyRichTextEditor value={field.value} onChange={field.onChange} />
|
|
313
|
+
* ),
|
|
314
|
+
* }
|
|
315
|
+
* ```
|
|
316
|
+
*/
|
|
317
|
+
fieldComponents?: Record<string, ComponentType<AutoFormInputComponentProps>>;
|
|
318
|
+
/**
|
|
319
|
+
* Localization object for the CMS plugin
|
|
320
|
+
*/
|
|
321
|
+
localization?: CMSLocalization;
|
|
322
|
+
/**
|
|
323
|
+
* API base URL
|
|
324
|
+
*/
|
|
325
|
+
apiBaseURL: string;
|
|
326
|
+
/**
|
|
327
|
+
* API base path
|
|
328
|
+
*/
|
|
329
|
+
apiBasePath: string;
|
|
330
|
+
/**
|
|
331
|
+
* Whether to show the attribution
|
|
332
|
+
*/
|
|
333
|
+
showAttribution?: boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Optional headers to pass with API requests (e.g., for SSR auth)
|
|
336
|
+
*/
|
|
337
|
+
headers?: HeadersInit;
|
|
338
|
+
/**
|
|
339
|
+
* Called when a route is rendered
|
|
340
|
+
* @param routeName - Name of the route (e.g., 'dashboard', 'contentList', 'contentEditor')
|
|
341
|
+
* @param context - Route context with path, params, etc.
|
|
342
|
+
*/
|
|
343
|
+
onRouteRender?: (routeName: string, context: RouteContext) => void | Promise<void>;
|
|
344
|
+
/**
|
|
345
|
+
* Called when a route encounters an error
|
|
346
|
+
* @param routeName - Name of the route
|
|
347
|
+
* @param error - The error that occurred
|
|
348
|
+
* @param context - Route context
|
|
349
|
+
*/
|
|
350
|
+
onRouteError?: (routeName: string, error: Error, context: RouteContext) => void | Promise<void>;
|
|
351
|
+
/**
|
|
352
|
+
* Called before the dashboard page is rendered
|
|
353
|
+
* Return false to prevent rendering (e.g., for authorization)
|
|
354
|
+
* @param context - Route context
|
|
355
|
+
*/
|
|
356
|
+
onBeforeDashboardRendered?: (context: RouteContext) => boolean;
|
|
357
|
+
/**
|
|
358
|
+
* Called before the content list page is rendered
|
|
359
|
+
* Return false to prevent rendering (e.g., for authorization)
|
|
360
|
+
* @param typeSlug - The content type slug
|
|
361
|
+
* @param context - Route context
|
|
362
|
+
*/
|
|
363
|
+
onBeforeListRendered?: (typeSlug: string, context: RouteContext) => boolean;
|
|
364
|
+
/**
|
|
365
|
+
* Called before the content editor page is rendered
|
|
366
|
+
* Return false to prevent rendering (e.g., for authorization)
|
|
367
|
+
* @param typeSlug - The content type slug
|
|
368
|
+
* @param id - The content item ID (null for new items)
|
|
369
|
+
* @param context - Route context
|
|
370
|
+
*/
|
|
371
|
+
onBeforeEditorRendered?: (typeSlug: string, id: string | null, context: RouteContext) => boolean;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Props for the CMSFileUpload component
|
|
376
|
+
*/
|
|
377
|
+
interface CMSFileUploadProps extends AutoFormInputComponentProps {
|
|
378
|
+
/**
|
|
379
|
+
* Function to upload an image file and return the URL.
|
|
380
|
+
* This is required - consumers must provide an upload implementation.
|
|
381
|
+
*/
|
|
382
|
+
uploadImage: (file: File) => Promise<string>;
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Default file upload component for CMS image fields.
|
|
386
|
+
*
|
|
387
|
+
* This component:
|
|
388
|
+
* - Accepts image files via file input
|
|
389
|
+
* - Uses the required uploadImage prop to upload and get a URL
|
|
390
|
+
* - Shows a preview of the uploaded image
|
|
391
|
+
* - Allows removing the uploaded image
|
|
392
|
+
*
|
|
393
|
+
* You can use this component directly in your fieldComponents override,
|
|
394
|
+
* or create your own custom component using this as a reference.
|
|
395
|
+
*
|
|
396
|
+
* @example
|
|
397
|
+
* ```tsx
|
|
398
|
+
* // Use the default component with your upload function
|
|
399
|
+
* fieldComponents: {
|
|
400
|
+
* file: (props) => (
|
|
401
|
+
* <CMSFileUpload {...props} uploadImage={myUploadFn} />
|
|
402
|
+
* ),
|
|
403
|
+
* }
|
|
404
|
+
* ```
|
|
405
|
+
*/
|
|
406
|
+
declare function CMSFileUpload({ label, isRequired, fieldConfigItem, fieldProps, field, uploadImage, }: CMSFileUploadProps): react_jsx_runtime.JSX.Element;
|
|
407
|
+
|
|
408
|
+
export { AutoFormInputComponentProps, CMSFileUpload, cmsClientPlugin };
|
|
409
|
+
export type { CMSClientConfig, CMSClientHooks, CMSFileUploadProps, CMSLocalization, CMSPluginOverrides, LoaderContext, RouteContext };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const queryKeyFactory = require('@lukemorales/query-key-factory');
|
|
4
|
+
|
|
5
|
+
function isErrorResponse(response) {
|
|
6
|
+
if (typeof response !== "object" || response === null) {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
const obj = response;
|
|
10
|
+
return "error" in obj && obj.error !== null && obj.error !== void 0;
|
|
11
|
+
}
|
|
12
|
+
function toError(error) {
|
|
13
|
+
if (error instanceof Error) {
|
|
14
|
+
return error;
|
|
15
|
+
}
|
|
16
|
+
if (typeof error === "object" && error !== null) {
|
|
17
|
+
const errorObj = error;
|
|
18
|
+
const message = (typeof errorObj.message === "string" ? errorObj.message : null) || (typeof errorObj.error === "string" ? errorObj.error : null) || JSON.stringify(error);
|
|
19
|
+
const err = new Error(message);
|
|
20
|
+
Object.assign(err, error);
|
|
21
|
+
return err;
|
|
22
|
+
}
|
|
23
|
+
return new Error(String(error));
|
|
24
|
+
}
|
|
25
|
+
function createCMSQueryKeys(client, headers) {
|
|
26
|
+
const contentTypes = createContentTypesQueries(client, headers);
|
|
27
|
+
const content = createContentQueries(client, headers);
|
|
28
|
+
return queryKeyFactory.mergeQueryKeys(contentTypes, content);
|
|
29
|
+
}
|
|
30
|
+
function createContentTypesQueries(client, headers) {
|
|
31
|
+
return queryKeyFactory.createQueryKeys("cmsTypes", {
|
|
32
|
+
list: () => ({
|
|
33
|
+
queryKey: ["list"],
|
|
34
|
+
queryFn: async () => {
|
|
35
|
+
try {
|
|
36
|
+
const response = await client("/content-types", {
|
|
37
|
+
method: "GET",
|
|
38
|
+
headers
|
|
39
|
+
});
|
|
40
|
+
if (isErrorResponse(response)) {
|
|
41
|
+
throw toError(response.error);
|
|
42
|
+
}
|
|
43
|
+
return response.data ?? [];
|
|
44
|
+
} catch (error) {
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}),
|
|
49
|
+
detail: (slug) => ({
|
|
50
|
+
queryKey: [slug],
|
|
51
|
+
queryFn: async () => {
|
|
52
|
+
if (!slug) return null;
|
|
53
|
+
try {
|
|
54
|
+
const response = await client("/content-types/:slug", {
|
|
55
|
+
method: "GET",
|
|
56
|
+
params: { slug },
|
|
57
|
+
headers
|
|
58
|
+
});
|
|
59
|
+
if (isErrorResponse(response)) {
|
|
60
|
+
throw toError(response.error);
|
|
61
|
+
}
|
|
62
|
+
return response.data;
|
|
63
|
+
} catch (error) {
|
|
64
|
+
throw error;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function createContentQueries(client, headers) {
|
|
71
|
+
return queryKeyFactory.createQueryKeys("cmsContent", {
|
|
72
|
+
list: (params) => ({
|
|
73
|
+
queryKey: [params],
|
|
74
|
+
queryFn: async () => {
|
|
75
|
+
try {
|
|
76
|
+
const response = await client("/content/:typeSlug", {
|
|
77
|
+
method: "GET",
|
|
78
|
+
params: { typeSlug: params.typeSlug },
|
|
79
|
+
query: {
|
|
80
|
+
limit: params.limit ?? 20,
|
|
81
|
+
offset: params.offset ?? 0
|
|
82
|
+
},
|
|
83
|
+
headers
|
|
84
|
+
});
|
|
85
|
+
if (isErrorResponse(response)) {
|
|
86
|
+
throw toError(response.error);
|
|
87
|
+
}
|
|
88
|
+
return response.data;
|
|
89
|
+
} catch (error) {
|
|
90
|
+
throw error;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}),
|
|
94
|
+
detail: (typeSlug, id) => ({
|
|
95
|
+
queryKey: [typeSlug, id],
|
|
96
|
+
queryFn: async () => {
|
|
97
|
+
if (!typeSlug || !id) return null;
|
|
98
|
+
try {
|
|
99
|
+
const response = await client("/content/:typeSlug/:id", {
|
|
100
|
+
method: "GET",
|
|
101
|
+
params: { typeSlug, id },
|
|
102
|
+
headers
|
|
103
|
+
});
|
|
104
|
+
if (isErrorResponse(response)) {
|
|
105
|
+
throw toError(response.error);
|
|
106
|
+
}
|
|
107
|
+
return response.data;
|
|
108
|
+
} catch (error) {
|
|
109
|
+
throw error;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}),
|
|
113
|
+
bySlug: (typeSlug, slug) => ({
|
|
114
|
+
queryKey: ["bySlug", typeSlug, slug],
|
|
115
|
+
queryFn: async () => {
|
|
116
|
+
if (!typeSlug || !slug) return null;
|
|
117
|
+
try {
|
|
118
|
+
const response = await client("/content/:typeSlug", {
|
|
119
|
+
method: "GET",
|
|
120
|
+
params: { typeSlug },
|
|
121
|
+
query: { slug, limit: 1 },
|
|
122
|
+
headers
|
|
123
|
+
});
|
|
124
|
+
if (isErrorResponse(response)) {
|
|
125
|
+
throw toError(response.error);
|
|
126
|
+
}
|
|
127
|
+
const data = response.data;
|
|
128
|
+
return data.items[0] ?? null;
|
|
129
|
+
} catch (error) {
|
|
130
|
+
throw error;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
})
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
exports.createCMSQueryKeys = createCMSQueryKeys;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { createApiClient } from '@btst/stack/plugins/client';
|
|
3
|
+
import { S as SerializedContentType, P as PaginatedContentItems, a as SerializedContentItemWithType } from '../../shared/stack.BwkyFwF8.cjs';
|
|
4
|
+
import { CMSApiRouter } from './api/index.cjs';
|
|
5
|
+
import 'zod';
|
|
6
|
+
import '../../shared/stack.NZJogTUn.cjs';
|
|
7
|
+
import 'react-hook-form';
|
|
8
|
+
import 'react/jsx-runtime';
|
|
9
|
+
import '@btst/stack/plugins/api';
|
|
10
|
+
import 'better-call';
|
|
11
|
+
|
|
12
|
+
interface ContentListParams {
|
|
13
|
+
limit?: number;
|
|
14
|
+
offset?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create CMS query keys for React Query
|
|
18
|
+
* Used by consumers to fetch content types and content items
|
|
19
|
+
*/
|
|
20
|
+
declare function createCMSQueryKeys(client: ReturnType<typeof createApiClient<CMSApiRouter>>, headers?: HeadersInit): {
|
|
21
|
+
cmsTypes: {
|
|
22
|
+
_def: readonly ["cmsTypes"];
|
|
23
|
+
} & {
|
|
24
|
+
list: (() => Omit<{
|
|
25
|
+
queryKey: readonly ["cmsTypes", "list", string];
|
|
26
|
+
queryFn: _tanstack_react_query.QueryFunction<(SerializedContentType & {
|
|
27
|
+
itemCount: number;
|
|
28
|
+
})[], readonly ["cmsTypes", "list", string]>;
|
|
29
|
+
} & {
|
|
30
|
+
_def: readonly ["cmsTypes", "list"];
|
|
31
|
+
}, "_def">) & {
|
|
32
|
+
_def: readonly ["cmsTypes", "list"];
|
|
33
|
+
};
|
|
34
|
+
detail: ((slug: string) => Omit<{
|
|
35
|
+
queryKey: readonly ["cmsTypes", "detail", string];
|
|
36
|
+
queryFn: _tanstack_react_query.QueryFunction<SerializedContentType | null, readonly ["cmsTypes", "detail", string]>;
|
|
37
|
+
} & {
|
|
38
|
+
_def: readonly ["cmsTypes", "detail"];
|
|
39
|
+
}, "_def">) & {
|
|
40
|
+
_def: readonly ["cmsTypes", "detail"];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
cmsContent: {
|
|
44
|
+
_def: readonly ["cmsContent"];
|
|
45
|
+
} & {
|
|
46
|
+
list: ((params: {
|
|
47
|
+
typeSlug: string;
|
|
48
|
+
} & ContentListParams) => Omit<{
|
|
49
|
+
queryKey: readonly ["cmsContent", "list", {
|
|
50
|
+
typeSlug: string;
|
|
51
|
+
} & ContentListParams];
|
|
52
|
+
queryFn: _tanstack_react_query.QueryFunction<PaginatedContentItems<Record<string, unknown>>, readonly ["cmsContent", "list", {
|
|
53
|
+
typeSlug: string;
|
|
54
|
+
} & ContentListParams]>;
|
|
55
|
+
} & {
|
|
56
|
+
_def: readonly ["cmsContent", "list"];
|
|
57
|
+
}, "_def">) & {
|
|
58
|
+
_def: readonly ["cmsContent", "list"];
|
|
59
|
+
};
|
|
60
|
+
detail: ((typeSlug: string, id: string) => Omit<{
|
|
61
|
+
queryKey: readonly ["cmsContent", "detail", string, string];
|
|
62
|
+
queryFn: _tanstack_react_query.QueryFunction<SerializedContentItemWithType<Record<string, unknown>> | null, readonly ["cmsContent", "detail", string, string]>;
|
|
63
|
+
} & {
|
|
64
|
+
_def: readonly ["cmsContent", "detail"];
|
|
65
|
+
}, "_def">) & {
|
|
66
|
+
_def: readonly ["cmsContent", "detail"];
|
|
67
|
+
};
|
|
68
|
+
bySlug: ((typeSlug: string, slug: string) => Omit<{
|
|
69
|
+
queryKey: readonly ["cmsContent", "bySlug", string, string, string];
|
|
70
|
+
queryFn: _tanstack_react_query.QueryFunction<SerializedContentItemWithType<Record<string, unknown>> | null, readonly ["cmsContent", "bySlug", string, string, string]>;
|
|
71
|
+
} & {
|
|
72
|
+
_def: readonly ["cmsContent", "bySlug"];
|
|
73
|
+
}, "_def">) & {
|
|
74
|
+
_def: readonly ["cmsContent", "bySlug"];
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export { createCMSQueryKeys };
|