@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,275 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
const React = require('react');
|
|
5
|
+
const client = require('@btst/stack/plugins/client');
|
|
6
|
+
const yar = require('@btst/yar');
|
|
7
|
+
const plugins_cms_queryKeys = require('../../../../../../plugins/cms/query-keys.cjs');
|
|
8
|
+
|
|
9
|
+
const DashboardPageComponent = React.lazy(
|
|
10
|
+
() => import('./components/pages/dashboard-page.cjs').then((m) => ({
|
|
11
|
+
default: m.DashboardPageComponent
|
|
12
|
+
}))
|
|
13
|
+
);
|
|
14
|
+
const ContentListPageComponent = React.lazy(
|
|
15
|
+
() => import('./components/pages/content-list-page.cjs').then((m) => ({
|
|
16
|
+
default: m.ContentListPageComponent
|
|
17
|
+
}))
|
|
18
|
+
);
|
|
19
|
+
const ContentEditorPageComponent = React.lazy(
|
|
20
|
+
() => import('./components/pages/content-editor-page.cjs').then((m) => ({
|
|
21
|
+
default: m.ContentEditorPageComponent
|
|
22
|
+
}))
|
|
23
|
+
);
|
|
24
|
+
function createDashboardLoader(config) {
|
|
25
|
+
return async () => {
|
|
26
|
+
if (typeof window === "undefined") {
|
|
27
|
+
const { queryClient, apiBasePath, apiBaseURL, headers, hooks } = config;
|
|
28
|
+
const context = {
|
|
29
|
+
path: "/cms",
|
|
30
|
+
isSSR: true,
|
|
31
|
+
apiBaseURL,
|
|
32
|
+
apiBasePath,
|
|
33
|
+
headers
|
|
34
|
+
};
|
|
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);
|
|
47
|
+
await queryClient.prefetchQuery(queries.cmsTypes.list());
|
|
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
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function createContentListLoader(typeSlug, config) {
|
|
67
|
+
return async () => {
|
|
68
|
+
if (typeof window === "undefined") {
|
|
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
|
+
};
|
|
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;
|
|
91
|
+
await queryClient.prefetchQuery(queries.cmsTypes.list());
|
|
92
|
+
const listQuery = queries.cmsContent.list({
|
|
93
|
+
typeSlug,
|
|
94
|
+
limit,
|
|
95
|
+
offset: 0
|
|
96
|
+
});
|
|
97
|
+
await queryClient.prefetchInfiniteQuery({
|
|
98
|
+
queryKey: listQuery.queryKey,
|
|
99
|
+
queryFn: async ({ pageParam = 0 }) => {
|
|
100
|
+
const response = await client$1("/content/:typeSlug", {
|
|
101
|
+
method: "GET",
|
|
102
|
+
params: { typeSlug },
|
|
103
|
+
query: { limit, offset: pageParam },
|
|
104
|
+
headers
|
|
105
|
+
});
|
|
106
|
+
if (typeof response === "object" && response !== null && "error" in response && response.error) {
|
|
107
|
+
throw new Error(String(response.error));
|
|
108
|
+
}
|
|
109
|
+
return response.data;
|
|
110
|
+
},
|
|
111
|
+
initialPageParam: 0
|
|
112
|
+
});
|
|
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
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function createContentEditorLoader(typeSlug, id, config) {
|
|
134
|
+
return async () => {
|
|
135
|
+
if (typeof window === "undefined") {
|
|
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
|
+
};
|
|
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);
|
|
161
|
+
const promises = [queryClient.prefetchQuery(queries.cmsTypes.list())];
|
|
162
|
+
if (id) {
|
|
163
|
+
promises.push(
|
|
164
|
+
queryClient.prefetchQuery(queries.cmsContent.detail(typeSlug, id))
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
await Promise.all(promises);
|
|
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
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function createDashboardMeta() {
|
|
191
|
+
return () => {
|
|
192
|
+
const title = "CMS Dashboard";
|
|
193
|
+
return [
|
|
194
|
+
{ title },
|
|
195
|
+
{ name: "title", content: title },
|
|
196
|
+
{ name: "robots", content: "noindex" }
|
|
197
|
+
];
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function createContentListMeta(typeSlug, config) {
|
|
201
|
+
return () => {
|
|
202
|
+
const { queryClient, apiBasePath, apiBaseURL } = config;
|
|
203
|
+
const client$1 = client.createApiClient({
|
|
204
|
+
baseURL: apiBaseURL,
|
|
205
|
+
basePath: apiBasePath
|
|
206
|
+
});
|
|
207
|
+
const queries = plugins_cms_queryKeys.createCMSQueryKeys(client$1);
|
|
208
|
+
const contentTypes = queryClient.getQueryData(
|
|
209
|
+
queries.cmsTypes.list().queryKey
|
|
210
|
+
);
|
|
211
|
+
const contentType = contentTypes?.find((ct) => ct.slug === typeSlug);
|
|
212
|
+
const title = contentType?.name ? `${contentType.name} | CMS` : "Content | CMS";
|
|
213
|
+
return [
|
|
214
|
+
{ title },
|
|
215
|
+
{ name: "title", content: title },
|
|
216
|
+
{ name: "robots", content: "noindex" }
|
|
217
|
+
];
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
function createContentEditorMeta(typeSlug, id, config) {
|
|
221
|
+
return () => {
|
|
222
|
+
const { queryClient, apiBasePath, apiBaseURL } = config;
|
|
223
|
+
const client$1 = client.createApiClient({
|
|
224
|
+
baseURL: apiBaseURL,
|
|
225
|
+
basePath: apiBasePath
|
|
226
|
+
});
|
|
227
|
+
const queries = plugins_cms_queryKeys.createCMSQueryKeys(client$1);
|
|
228
|
+
const contentTypes = queryClient.getQueryData(
|
|
229
|
+
queries.cmsTypes.list().queryKey
|
|
230
|
+
);
|
|
231
|
+
const contentType = contentTypes?.find((ct) => ct.slug === typeSlug);
|
|
232
|
+
const title = id ? `Edit ${contentType?.name || "Content"} | CMS` : `New ${contentType?.name || "Content"} | CMS`;
|
|
233
|
+
return [
|
|
234
|
+
{ title },
|
|
235
|
+
{ name: "title", content: title },
|
|
236
|
+
{ name: "robots", content: "noindex" }
|
|
237
|
+
];
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
const cmsClientPlugin = (config) => client.defineClientPlugin({
|
|
241
|
+
name: "cms",
|
|
242
|
+
routes: () => ({
|
|
243
|
+
dashboard: yar.createRoute("/cms", () => ({
|
|
244
|
+
PageComponent: () => /* @__PURE__ */ jsxRuntime.jsx(DashboardPageComponent, {}),
|
|
245
|
+
loader: createDashboardLoader(config),
|
|
246
|
+
meta: createDashboardMeta()
|
|
247
|
+
})),
|
|
248
|
+
contentList: yar.createRoute("/cms/:typeSlug", ({ params }) => ({
|
|
249
|
+
PageComponent: () => /* @__PURE__ */ jsxRuntime.jsx(ContentListPageComponent, { typeSlug: params.typeSlug }),
|
|
250
|
+
loader: createContentListLoader(params.typeSlug, config),
|
|
251
|
+
meta: createContentListMeta(params.typeSlug, config)
|
|
252
|
+
})),
|
|
253
|
+
newContent: yar.createRoute("/cms/:typeSlug/new", ({ params }) => ({
|
|
254
|
+
PageComponent: () => /* @__PURE__ */ jsxRuntime.jsx(ContentEditorPageComponent, { typeSlug: params.typeSlug }),
|
|
255
|
+
loader: createContentEditorLoader(params.typeSlug, void 0, config),
|
|
256
|
+
meta: createContentEditorMeta(params.typeSlug, void 0, config)
|
|
257
|
+
})),
|
|
258
|
+
editContent: yar.createRoute("/cms/:typeSlug/:id", ({ params }) => ({
|
|
259
|
+
PageComponent: () => /* @__PURE__ */ jsxRuntime.jsx(
|
|
260
|
+
ContentEditorPageComponent,
|
|
261
|
+
{
|
|
262
|
+
typeSlug: params.typeSlug,
|
|
263
|
+
id: params.id
|
|
264
|
+
}
|
|
265
|
+
),
|
|
266
|
+
loader: createContentEditorLoader(params.typeSlug, params.id, config),
|
|
267
|
+
meta: createContentEditorMeta(params.typeSlug, params.id, config)
|
|
268
|
+
}))
|
|
269
|
+
}),
|
|
270
|
+
sitemap: async () => {
|
|
271
|
+
return [];
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
exports.cmsClientPlugin = cmsClientPlugin;
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { lazy } from 'react';
|
|
3
|
+
import { defineClientPlugin, createApiClient } from '@btst/stack/plugins/client';
|
|
4
|
+
import { createRoute } from '@btst/yar';
|
|
5
|
+
import { createCMSQueryKeys } from '../../../../../../plugins/cms/query-keys.mjs';
|
|
6
|
+
|
|
7
|
+
const DashboardPageComponent = lazy(
|
|
8
|
+
() => import('./components/pages/dashboard-page.mjs').then((m) => ({
|
|
9
|
+
default: m.DashboardPageComponent
|
|
10
|
+
}))
|
|
11
|
+
);
|
|
12
|
+
const ContentListPageComponent = lazy(
|
|
13
|
+
() => import('./components/pages/content-list-page.mjs').then((m) => ({
|
|
14
|
+
default: m.ContentListPageComponent
|
|
15
|
+
}))
|
|
16
|
+
);
|
|
17
|
+
const ContentEditorPageComponent = lazy(
|
|
18
|
+
() => import('./components/pages/content-editor-page.mjs').then((m) => ({
|
|
19
|
+
default: m.ContentEditorPageComponent
|
|
20
|
+
}))
|
|
21
|
+
);
|
|
22
|
+
function createDashboardLoader(config) {
|
|
23
|
+
return async () => {
|
|
24
|
+
if (typeof window === "undefined") {
|
|
25
|
+
const { queryClient, apiBasePath, apiBaseURL, headers, hooks } = config;
|
|
26
|
+
const context = {
|
|
27
|
+
path: "/cms",
|
|
28
|
+
isSSR: true,
|
|
29
|
+
apiBaseURL,
|
|
30
|
+
apiBasePath,
|
|
31
|
+
headers
|
|
32
|
+
};
|
|
33
|
+
try {
|
|
34
|
+
if (hooks?.beforeLoadDashboard) {
|
|
35
|
+
const canLoad = await hooks.beforeLoadDashboard(context);
|
|
36
|
+
if (!canLoad) {
|
|
37
|
+
throw new Error("Load prevented by beforeLoadDashboard hook");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
const client = createApiClient({
|
|
41
|
+
baseURL: apiBaseURL,
|
|
42
|
+
basePath: apiBasePath
|
|
43
|
+
});
|
|
44
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
45
|
+
await queryClient.prefetchQuery(queries.cmsTypes.list());
|
|
46
|
+
if (hooks?.afterLoadDashboard) {
|
|
47
|
+
await hooks.afterLoadDashboard(context);
|
|
48
|
+
}
|
|
49
|
+
const queryState = queryClient.getQueryState(
|
|
50
|
+
queries.cmsTypes.list().queryKey
|
|
51
|
+
);
|
|
52
|
+
if (queryState?.error && hooks?.onLoadError) {
|
|
53
|
+
const error = queryState.error instanceof Error ? queryState.error : new Error(String(queryState.error));
|
|
54
|
+
await hooks.onLoadError(error, context);
|
|
55
|
+
}
|
|
56
|
+
} catch (error) {
|
|
57
|
+
if (hooks?.onLoadError) {
|
|
58
|
+
await hooks.onLoadError(error, context);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function createContentListLoader(typeSlug, config) {
|
|
65
|
+
return async () => {
|
|
66
|
+
if (typeof window === "undefined") {
|
|
67
|
+
const { queryClient, apiBasePath, apiBaseURL, headers, hooks } = config;
|
|
68
|
+
const context = {
|
|
69
|
+
path: `/cms/${typeSlug}`,
|
|
70
|
+
params: { typeSlug },
|
|
71
|
+
isSSR: true,
|
|
72
|
+
apiBaseURL,
|
|
73
|
+
apiBasePath,
|
|
74
|
+
headers
|
|
75
|
+
};
|
|
76
|
+
try {
|
|
77
|
+
if (hooks?.beforeLoadContentList) {
|
|
78
|
+
const canLoad = await hooks.beforeLoadContentList(typeSlug, context);
|
|
79
|
+
if (!canLoad) {
|
|
80
|
+
throw new Error("Load prevented by beforeLoadContentList hook");
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const client = createApiClient({
|
|
84
|
+
baseURL: apiBaseURL,
|
|
85
|
+
basePath: apiBasePath
|
|
86
|
+
});
|
|
87
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
88
|
+
const limit = 20;
|
|
89
|
+
await queryClient.prefetchQuery(queries.cmsTypes.list());
|
|
90
|
+
const listQuery = queries.cmsContent.list({
|
|
91
|
+
typeSlug,
|
|
92
|
+
limit,
|
|
93
|
+
offset: 0
|
|
94
|
+
});
|
|
95
|
+
await queryClient.prefetchInfiniteQuery({
|
|
96
|
+
queryKey: listQuery.queryKey,
|
|
97
|
+
queryFn: async ({ pageParam = 0 }) => {
|
|
98
|
+
const response = await client("/content/:typeSlug", {
|
|
99
|
+
method: "GET",
|
|
100
|
+
params: { typeSlug },
|
|
101
|
+
query: { limit, offset: pageParam },
|
|
102
|
+
headers
|
|
103
|
+
});
|
|
104
|
+
if (typeof response === "object" && response !== null && "error" in response && response.error) {
|
|
105
|
+
throw new Error(String(response.error));
|
|
106
|
+
}
|
|
107
|
+
return response.data;
|
|
108
|
+
},
|
|
109
|
+
initialPageParam: 0
|
|
110
|
+
});
|
|
111
|
+
if (hooks?.afterLoadContentList) {
|
|
112
|
+
await hooks.afterLoadContentList(typeSlug, context);
|
|
113
|
+
}
|
|
114
|
+
const typesState = queryClient.getQueryState(
|
|
115
|
+
queries.cmsTypes.list().queryKey
|
|
116
|
+
);
|
|
117
|
+
const listState = queryClient.getQueryState(listQuery.queryKey);
|
|
118
|
+
const queryError = typesState?.error || listState?.error;
|
|
119
|
+
if (queryError && hooks?.onLoadError) {
|
|
120
|
+
const error = queryError instanceof Error ? queryError : new Error(String(queryError));
|
|
121
|
+
await hooks.onLoadError(error, context);
|
|
122
|
+
}
|
|
123
|
+
} catch (error) {
|
|
124
|
+
if (hooks?.onLoadError) {
|
|
125
|
+
await hooks.onLoadError(error, context);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function createContentEditorLoader(typeSlug, id, config) {
|
|
132
|
+
return async () => {
|
|
133
|
+
if (typeof window === "undefined") {
|
|
134
|
+
const { queryClient, apiBasePath, apiBaseURL, headers, hooks } = config;
|
|
135
|
+
const context = {
|
|
136
|
+
path: id ? `/cms/${typeSlug}/${id}` : `/cms/${typeSlug}/new`,
|
|
137
|
+
params: id ? { typeSlug, id } : { typeSlug },
|
|
138
|
+
isSSR: true,
|
|
139
|
+
apiBaseURL,
|
|
140
|
+
apiBasePath,
|
|
141
|
+
headers
|
|
142
|
+
};
|
|
143
|
+
try {
|
|
144
|
+
if (hooks?.beforeLoadContentEditor) {
|
|
145
|
+
const canLoad = await hooks.beforeLoadContentEditor(
|
|
146
|
+
typeSlug,
|
|
147
|
+
id,
|
|
148
|
+
context
|
|
149
|
+
);
|
|
150
|
+
if (!canLoad) {
|
|
151
|
+
throw new Error("Load prevented by beforeLoadContentEditor hook");
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
const client = createApiClient({
|
|
155
|
+
baseURL: apiBaseURL,
|
|
156
|
+
basePath: apiBasePath
|
|
157
|
+
});
|
|
158
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
159
|
+
const promises = [queryClient.prefetchQuery(queries.cmsTypes.list())];
|
|
160
|
+
if (id) {
|
|
161
|
+
promises.push(
|
|
162
|
+
queryClient.prefetchQuery(queries.cmsContent.detail(typeSlug, id))
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
await Promise.all(promises);
|
|
166
|
+
if (hooks?.afterLoadContentEditor) {
|
|
167
|
+
await hooks.afterLoadContentEditor(typeSlug, id, context);
|
|
168
|
+
}
|
|
169
|
+
const typesState = queryClient.getQueryState(
|
|
170
|
+
queries.cmsTypes.list().queryKey
|
|
171
|
+
);
|
|
172
|
+
const itemState = id ? queryClient.getQueryState(
|
|
173
|
+
queries.cmsContent.detail(typeSlug, id).queryKey
|
|
174
|
+
) : null;
|
|
175
|
+
const queryError = typesState?.error || itemState?.error;
|
|
176
|
+
if (queryError && hooks?.onLoadError) {
|
|
177
|
+
const error = queryError instanceof Error ? queryError : new Error(String(queryError));
|
|
178
|
+
await hooks.onLoadError(error, context);
|
|
179
|
+
}
|
|
180
|
+
} catch (error) {
|
|
181
|
+
if (hooks?.onLoadError) {
|
|
182
|
+
await hooks.onLoadError(error, context);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
function createDashboardMeta() {
|
|
189
|
+
return () => {
|
|
190
|
+
const title = "CMS Dashboard";
|
|
191
|
+
return [
|
|
192
|
+
{ title },
|
|
193
|
+
{ name: "title", content: title },
|
|
194
|
+
{ name: "robots", content: "noindex" }
|
|
195
|
+
];
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
function createContentListMeta(typeSlug, config) {
|
|
199
|
+
return () => {
|
|
200
|
+
const { queryClient, apiBasePath, apiBaseURL } = config;
|
|
201
|
+
const client = createApiClient({
|
|
202
|
+
baseURL: apiBaseURL,
|
|
203
|
+
basePath: apiBasePath
|
|
204
|
+
});
|
|
205
|
+
const queries = createCMSQueryKeys(client);
|
|
206
|
+
const contentTypes = queryClient.getQueryData(
|
|
207
|
+
queries.cmsTypes.list().queryKey
|
|
208
|
+
);
|
|
209
|
+
const contentType = contentTypes?.find((ct) => ct.slug === typeSlug);
|
|
210
|
+
const title = contentType?.name ? `${contentType.name} | CMS` : "Content | CMS";
|
|
211
|
+
return [
|
|
212
|
+
{ title },
|
|
213
|
+
{ name: "title", content: title },
|
|
214
|
+
{ name: "robots", content: "noindex" }
|
|
215
|
+
];
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
function createContentEditorMeta(typeSlug, id, config) {
|
|
219
|
+
return () => {
|
|
220
|
+
const { queryClient, apiBasePath, apiBaseURL } = config;
|
|
221
|
+
const client = createApiClient({
|
|
222
|
+
baseURL: apiBaseURL,
|
|
223
|
+
basePath: apiBasePath
|
|
224
|
+
});
|
|
225
|
+
const queries = createCMSQueryKeys(client);
|
|
226
|
+
const contentTypes = queryClient.getQueryData(
|
|
227
|
+
queries.cmsTypes.list().queryKey
|
|
228
|
+
);
|
|
229
|
+
const contentType = contentTypes?.find((ct) => ct.slug === typeSlug);
|
|
230
|
+
const title = id ? `Edit ${contentType?.name || "Content"} | CMS` : `New ${contentType?.name || "Content"} | CMS`;
|
|
231
|
+
return [
|
|
232
|
+
{ title },
|
|
233
|
+
{ name: "title", content: title },
|
|
234
|
+
{ name: "robots", content: "noindex" }
|
|
235
|
+
];
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
const cmsClientPlugin = (config) => defineClientPlugin({
|
|
239
|
+
name: "cms",
|
|
240
|
+
routes: () => ({
|
|
241
|
+
dashboard: createRoute("/cms", () => ({
|
|
242
|
+
PageComponent: () => /* @__PURE__ */ jsx(DashboardPageComponent, {}),
|
|
243
|
+
loader: createDashboardLoader(config),
|
|
244
|
+
meta: createDashboardMeta()
|
|
245
|
+
})),
|
|
246
|
+
contentList: createRoute("/cms/:typeSlug", ({ params }) => ({
|
|
247
|
+
PageComponent: () => /* @__PURE__ */ jsx(ContentListPageComponent, { typeSlug: params.typeSlug }),
|
|
248
|
+
loader: createContentListLoader(params.typeSlug, config),
|
|
249
|
+
meta: createContentListMeta(params.typeSlug, config)
|
|
250
|
+
})),
|
|
251
|
+
newContent: createRoute("/cms/:typeSlug/new", ({ params }) => ({
|
|
252
|
+
PageComponent: () => /* @__PURE__ */ jsx(ContentEditorPageComponent, { typeSlug: params.typeSlug }),
|
|
253
|
+
loader: createContentEditorLoader(params.typeSlug, void 0, config),
|
|
254
|
+
meta: createContentEditorMeta(params.typeSlug, void 0, config)
|
|
255
|
+
})),
|
|
256
|
+
editContent: createRoute("/cms/:typeSlug/:id", ({ params }) => ({
|
|
257
|
+
PageComponent: () => /* @__PURE__ */ jsx(
|
|
258
|
+
ContentEditorPageComponent,
|
|
259
|
+
{
|
|
260
|
+
typeSlug: params.typeSlug,
|
|
261
|
+
id: params.id
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
loader: createContentEditorLoader(params.typeSlug, params.id, config),
|
|
265
|
+
meta: createContentEditorMeta(params.typeSlug, params.id, config)
|
|
266
|
+
}))
|
|
267
|
+
}),
|
|
268
|
+
sitemap: async () => {
|
|
269
|
+
return [];
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
export { cmsClientPlugin };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const db = require('@btst/db');
|
|
4
|
+
|
|
5
|
+
const cmsSchema = db.createDbPlugin("cms", {
|
|
6
|
+
contentType: {
|
|
7
|
+
modelName: "contentType",
|
|
8
|
+
fields: {
|
|
9
|
+
name: {
|
|
10
|
+
type: "string",
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
slug: {
|
|
14
|
+
type: "string",
|
|
15
|
+
required: true,
|
|
16
|
+
unique: true
|
|
17
|
+
},
|
|
18
|
+
description: {
|
|
19
|
+
type: "string",
|
|
20
|
+
required: false
|
|
21
|
+
},
|
|
22
|
+
jsonSchema: {
|
|
23
|
+
type: "string",
|
|
24
|
+
required: true
|
|
25
|
+
},
|
|
26
|
+
fieldConfig: {
|
|
27
|
+
type: "string",
|
|
28
|
+
required: false
|
|
29
|
+
},
|
|
30
|
+
createdAt: {
|
|
31
|
+
type: "date",
|
|
32
|
+
defaultValue: () => /* @__PURE__ */ new Date()
|
|
33
|
+
},
|
|
34
|
+
updatedAt: {
|
|
35
|
+
type: "date",
|
|
36
|
+
defaultValue: () => /* @__PURE__ */ new Date()
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
contentItem: {
|
|
41
|
+
modelName: "contentItem",
|
|
42
|
+
fields: {
|
|
43
|
+
contentTypeId: {
|
|
44
|
+
type: "string",
|
|
45
|
+
required: true,
|
|
46
|
+
references: {
|
|
47
|
+
model: "contentType",
|
|
48
|
+
field: "id",
|
|
49
|
+
onDelete: "cascade"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
slug: {
|
|
53
|
+
type: "string",
|
|
54
|
+
required: true
|
|
55
|
+
},
|
|
56
|
+
data: {
|
|
57
|
+
type: "string",
|
|
58
|
+
required: true
|
|
59
|
+
},
|
|
60
|
+
authorId: {
|
|
61
|
+
type: "string",
|
|
62
|
+
required: false
|
|
63
|
+
},
|
|
64
|
+
createdAt: {
|
|
65
|
+
type: "date",
|
|
66
|
+
defaultValue: () => /* @__PURE__ */ new Date()
|
|
67
|
+
},
|
|
68
|
+
updatedAt: {
|
|
69
|
+
type: "date",
|
|
70
|
+
defaultValue: () => /* @__PURE__ */ new Date()
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
exports.cmsSchema = cmsSchema;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { createDbPlugin } from '@btst/db';
|
|
2
|
+
|
|
3
|
+
const cmsSchema = createDbPlugin("cms", {
|
|
4
|
+
contentType: {
|
|
5
|
+
modelName: "contentType",
|
|
6
|
+
fields: {
|
|
7
|
+
name: {
|
|
8
|
+
type: "string",
|
|
9
|
+
required: true
|
|
10
|
+
},
|
|
11
|
+
slug: {
|
|
12
|
+
type: "string",
|
|
13
|
+
required: true,
|
|
14
|
+
unique: true
|
|
15
|
+
},
|
|
16
|
+
description: {
|
|
17
|
+
type: "string",
|
|
18
|
+
required: false
|
|
19
|
+
},
|
|
20
|
+
jsonSchema: {
|
|
21
|
+
type: "string",
|
|
22
|
+
required: true
|
|
23
|
+
},
|
|
24
|
+
fieldConfig: {
|
|
25
|
+
type: "string",
|
|
26
|
+
required: false
|
|
27
|
+
},
|
|
28
|
+
createdAt: {
|
|
29
|
+
type: "date",
|
|
30
|
+
defaultValue: () => /* @__PURE__ */ new Date()
|
|
31
|
+
},
|
|
32
|
+
updatedAt: {
|
|
33
|
+
type: "date",
|
|
34
|
+
defaultValue: () => /* @__PURE__ */ new Date()
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
contentItem: {
|
|
39
|
+
modelName: "contentItem",
|
|
40
|
+
fields: {
|
|
41
|
+
contentTypeId: {
|
|
42
|
+
type: "string",
|
|
43
|
+
required: true,
|
|
44
|
+
references: {
|
|
45
|
+
model: "contentType",
|
|
46
|
+
field: "id",
|
|
47
|
+
onDelete: "cascade"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
slug: {
|
|
51
|
+
type: "string",
|
|
52
|
+
required: true
|
|
53
|
+
},
|
|
54
|
+
data: {
|
|
55
|
+
type: "string",
|
|
56
|
+
required: true
|
|
57
|
+
},
|
|
58
|
+
authorId: {
|
|
59
|
+
type: "string",
|
|
60
|
+
required: false
|
|
61
|
+
},
|
|
62
|
+
createdAt: {
|
|
63
|
+
type: "date",
|
|
64
|
+
defaultValue: () => /* @__PURE__ */ new Date()
|
|
65
|
+
},
|
|
66
|
+
updatedAt: {
|
|
67
|
+
type: "date",
|
|
68
|
+
defaultValue: () => /* @__PURE__ */ new Date()
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export { cmsSchema };
|