@btst/stack 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-accordion@1.2.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_947719a27ff11ec6f09710dd9e85efc5/node_modules/@radix-ui/react-accordion/dist/index.cjs +321 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_947719a27ff11ec6f09710dd9e85efc5/node_modules/@radix-ui/react-accordion/dist/index.mjs +306 -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-collapsible@1.1.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types__d025a77f62ee83ca6bd8b0ea1f9de738/node_modules/@radix-ui/react-collapsible/dist/index.cjs +168 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types__d025a77f62ee83ca6bd8b0ea1f9de738/node_modules/@radix-ui/react-collapsible/dist/index.mjs +146 -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 +36 -3
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-interface.mjs +36 -3
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-layout.cjs +16 -3
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-layout.mjs +16 -3
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-message.cjs +35 -3
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-message.mjs +35 -3
- 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/client/components/tool-call-display.cjs +123 -0
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/tool-call-display.mjs +121 -0
- 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/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/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 +83 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.mjs +81 -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 +152 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.mjs +150 -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 +68 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.mjs +66 -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 +185 -0
- package/dist/packages/better-stack/src/plugins/cms/client/plugin.mjs +183 -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/accordion.cjs +67 -0
- package/dist/packages/ui/src/components/accordion.mjs +62 -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/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/components/index.cjs +2 -0
- package/dist/plugins/ai-chat/client/components/index.d.cts +1 -1
- package/dist/plugins/ai-chat/client/components/index.d.mts +1 -1
- package/dist/plugins/ai-chat/client/components/index.d.ts +1 -1
- package/dist/plugins/ai-chat/client/components/index.mjs +1 -0
- 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/client/index.cjs +2 -0
- package/dist/plugins/ai-chat/client/index.d.cts +5 -176
- package/dist/plugins/ai-chat/client/index.d.mts +5 -176
- package/dist/plugins/ai-chat/client/index.d.ts +5 -176
- package/dist/plugins/ai-chat/client/index.mjs +1 -0
- 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/client/components/shared/markdown-content-styles.css +6 -0
- package/dist/plugins/blog/query-keys.d.cts +102 -362
- package/dist/plugins/blog/query-keys.d.mts +102 -362
- package/dist/plugins/blog/query-keys.d.ts +102 -362
- 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 +344 -0
- package/dist/plugins/cms/client/index.d.mts +344 -0
- package/dist/plugins/cms/client/index.d.ts +344 -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.DaOcgmrM.d.cts +323 -0
- package/dist/shared/stack.DaOcgmrM.d.mts +323 -0
- package/dist/shared/stack.DaOcgmrM.d.ts +323 -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 +56 -2
- package/src/plugins/ai-chat/client/components/chat-layout.tsx +16 -1
- package/src/plugins/ai-chat/client/components/chat-message.tsx +59 -3
- package/src/plugins/ai-chat/client/components/chat-sidebar.tsx +4 -1
- package/src/plugins/ai-chat/client/components/index.ts +2 -0
- package/src/plugins/ai-chat/client/components/tool-call-display.tsx +197 -0
- package/src/plugins/ai-chat/client/index.ts +12 -1
- package/src/plugins/ai-chat/client/overrides.ts +71 -0
- 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/shared/markdown-content-styles.css +6 -0
- package/src/plugins/blog/client/components/shared/page-wrapper.tsx +9 -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 +121 -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 +198 -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 +94 -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 +283 -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/dist/shared/stack.DorMi9CZ.d.cts +0 -80
- package/dist/shared/stack.DorMi9CZ.d.mts +0 -80
- package/dist/shared/stack.DorMi9CZ.d.ts +0 -80
- package/src/plugins/blog/client/components/shared/page-layout.tsx +0 -23
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery, useSuspenseQuery, useInfiniteQuery, useSuspenseInfiniteQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
3
|
+
import { createApiClient } from '@btst/stack/plugins/client';
|
|
4
|
+
import { usePluginOverrides } from '@btst/stack/context';
|
|
5
|
+
import { createCMSQueryKeys } from '../../../../../../../plugins/cms/query-keys.mjs';
|
|
6
|
+
|
|
7
|
+
function isErrorResponse(response) {
|
|
8
|
+
if (typeof response !== "object" || response === null) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
const obj = response;
|
|
12
|
+
return "error" in obj && obj.error !== null && obj.error !== void 0;
|
|
13
|
+
}
|
|
14
|
+
function toError(error) {
|
|
15
|
+
if (error instanceof Error) {
|
|
16
|
+
return error;
|
|
17
|
+
}
|
|
18
|
+
if (typeof error === "object" && error !== null) {
|
|
19
|
+
const errorObj = error;
|
|
20
|
+
const message = (typeof errorObj.message === "string" ? errorObj.message : null) || (typeof errorObj.error === "string" ? errorObj.error : null) || JSON.stringify(error);
|
|
21
|
+
const err = new Error(message);
|
|
22
|
+
Object.assign(err, error);
|
|
23
|
+
return err;
|
|
24
|
+
}
|
|
25
|
+
return new Error(String(error));
|
|
26
|
+
}
|
|
27
|
+
const SHARED_QUERY_CONFIG = {
|
|
28
|
+
retry: false,
|
|
29
|
+
refetchOnWindowFocus: false,
|
|
30
|
+
refetchOnMount: false,
|
|
31
|
+
refetchOnReconnect: false,
|
|
32
|
+
staleTime: 1e3 * 60 * 5,
|
|
33
|
+
// 5 minutes
|
|
34
|
+
gcTime: 1e3 * 60 * 10
|
|
35
|
+
// 10 minutes
|
|
36
|
+
};
|
|
37
|
+
function useContentTypes() {
|
|
38
|
+
const { apiBaseURL, apiBasePath, headers } = usePluginOverrides("cms");
|
|
39
|
+
const client = createApiClient({
|
|
40
|
+
baseURL: apiBaseURL,
|
|
41
|
+
basePath: apiBasePath
|
|
42
|
+
});
|
|
43
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
44
|
+
const baseQuery = queries.cmsTypes.list();
|
|
45
|
+
const { data, isLoading, error, refetch } = useQuery({
|
|
46
|
+
...baseQuery,
|
|
47
|
+
...SHARED_QUERY_CONFIG
|
|
48
|
+
});
|
|
49
|
+
return {
|
|
50
|
+
contentTypes: data ?? [],
|
|
51
|
+
isLoading,
|
|
52
|
+
error,
|
|
53
|
+
refetch
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function useSuspenseContentTypes() {
|
|
57
|
+
const { apiBaseURL, apiBasePath, headers } = usePluginOverrides("cms");
|
|
58
|
+
const client = createApiClient({
|
|
59
|
+
baseURL: apiBaseURL,
|
|
60
|
+
basePath: apiBasePath
|
|
61
|
+
});
|
|
62
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
63
|
+
const baseQuery = queries.cmsTypes.list();
|
|
64
|
+
const { data, refetch, error, isFetching } = useSuspenseQuery({
|
|
65
|
+
...baseQuery,
|
|
66
|
+
...SHARED_QUERY_CONFIG
|
|
67
|
+
});
|
|
68
|
+
if (error && !isFetching) {
|
|
69
|
+
throw error;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
contentTypes: data ?? [],
|
|
73
|
+
refetch
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function useContentType(slug) {
|
|
77
|
+
const { apiBaseURL, apiBasePath, headers } = usePluginOverrides("cms");
|
|
78
|
+
const client = createApiClient({
|
|
79
|
+
baseURL: apiBaseURL,
|
|
80
|
+
basePath: apiBasePath
|
|
81
|
+
});
|
|
82
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
83
|
+
const baseQuery = queries.cmsTypes.detail(slug);
|
|
84
|
+
const { data, isLoading, error, refetch } = useQuery({
|
|
85
|
+
...baseQuery,
|
|
86
|
+
...SHARED_QUERY_CONFIG,
|
|
87
|
+
enabled: !!slug
|
|
88
|
+
});
|
|
89
|
+
return {
|
|
90
|
+
contentType: data ?? null,
|
|
91
|
+
isLoading,
|
|
92
|
+
error,
|
|
93
|
+
refetch
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function useContent(typeSlug, options = {}) {
|
|
97
|
+
const { apiBaseURL, apiBasePath, headers } = usePluginOverrides("cms");
|
|
98
|
+
const client = createApiClient({
|
|
99
|
+
baseURL: apiBaseURL,
|
|
100
|
+
basePath: apiBasePath
|
|
101
|
+
});
|
|
102
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
103
|
+
const { limit = 10, enabled = true } = options;
|
|
104
|
+
const baseQuery = queries.cmsContent.list({ typeSlug, limit, offset: 0 });
|
|
105
|
+
const {
|
|
106
|
+
data,
|
|
107
|
+
isLoading,
|
|
108
|
+
error,
|
|
109
|
+
fetchNextPage,
|
|
110
|
+
hasNextPage,
|
|
111
|
+
isFetchingNextPage,
|
|
112
|
+
refetch
|
|
113
|
+
} = useInfiniteQuery({
|
|
114
|
+
queryKey: baseQuery.queryKey,
|
|
115
|
+
queryFn: async ({ pageParam = 0 }) => {
|
|
116
|
+
const response = await client("/content/:typeSlug", {
|
|
117
|
+
method: "GET",
|
|
118
|
+
params: { typeSlug },
|
|
119
|
+
query: { limit, offset: pageParam },
|
|
120
|
+
headers
|
|
121
|
+
});
|
|
122
|
+
if (isErrorResponse(response)) {
|
|
123
|
+
throw toError(response.error);
|
|
124
|
+
}
|
|
125
|
+
return response.data;
|
|
126
|
+
},
|
|
127
|
+
...SHARED_QUERY_CONFIG,
|
|
128
|
+
initialPageParam: 0,
|
|
129
|
+
getNextPageParam: (lastPage, allPages) => {
|
|
130
|
+
if (!lastPage || typeof lastPage !== "object") return void 0;
|
|
131
|
+
const items2 = lastPage?.items;
|
|
132
|
+
if (!Array.isArray(items2) || items2.length < limit) return void 0;
|
|
133
|
+
const loadedCount = (allPages || []).reduce(
|
|
134
|
+
(sum, page) => sum + (Array.isArray(page?.items) ? page.items.length : 0),
|
|
135
|
+
0
|
|
136
|
+
);
|
|
137
|
+
const total2 = lastPage?.total ?? 0;
|
|
138
|
+
if (loadedCount >= total2) return void 0;
|
|
139
|
+
return loadedCount;
|
|
140
|
+
},
|
|
141
|
+
enabled: enabled && !!typeSlug
|
|
142
|
+
});
|
|
143
|
+
const pages = data?.pages;
|
|
144
|
+
const items = pages?.flatMap(
|
|
145
|
+
(page) => Array.isArray(page?.items) ? page.items : []
|
|
146
|
+
) ?? [];
|
|
147
|
+
const total = pages?.[0]?.total ?? 0;
|
|
148
|
+
return {
|
|
149
|
+
items,
|
|
150
|
+
total,
|
|
151
|
+
isLoading,
|
|
152
|
+
error,
|
|
153
|
+
loadMore: fetchNextPage,
|
|
154
|
+
hasMore: !!hasNextPage,
|
|
155
|
+
isLoadingMore: isFetchingNextPage,
|
|
156
|
+
refetch
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function useSuspenseContent(typeSlug, options = {}) {
|
|
160
|
+
const { apiBaseURL, apiBasePath, headers } = usePluginOverrides("cms");
|
|
161
|
+
const client = createApiClient({
|
|
162
|
+
baseURL: apiBaseURL,
|
|
163
|
+
basePath: apiBasePath
|
|
164
|
+
});
|
|
165
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
166
|
+
const { limit = 10 } = options;
|
|
167
|
+
const baseQuery = queries.cmsContent.list({ typeSlug, limit, offset: 0 });
|
|
168
|
+
const {
|
|
169
|
+
data,
|
|
170
|
+
fetchNextPage,
|
|
171
|
+
hasNextPage,
|
|
172
|
+
isFetchingNextPage,
|
|
173
|
+
refetch,
|
|
174
|
+
error,
|
|
175
|
+
isFetching
|
|
176
|
+
} = useSuspenseInfiniteQuery({
|
|
177
|
+
queryKey: baseQuery.queryKey,
|
|
178
|
+
queryFn: async ({ pageParam = 0 }) => {
|
|
179
|
+
const response = await client("/content/:typeSlug", {
|
|
180
|
+
method: "GET",
|
|
181
|
+
params: { typeSlug },
|
|
182
|
+
query: { limit, offset: pageParam },
|
|
183
|
+
headers
|
|
184
|
+
});
|
|
185
|
+
if (isErrorResponse(response)) {
|
|
186
|
+
throw toError(response.error);
|
|
187
|
+
}
|
|
188
|
+
return response.data;
|
|
189
|
+
},
|
|
190
|
+
...SHARED_QUERY_CONFIG,
|
|
191
|
+
initialPageParam: 0,
|
|
192
|
+
getNextPageParam: (lastPage, allPages) => {
|
|
193
|
+
if (!lastPage || typeof lastPage !== "object") return void 0;
|
|
194
|
+
const items2 = lastPage?.items;
|
|
195
|
+
if (!Array.isArray(items2) || items2.length < limit) return void 0;
|
|
196
|
+
const loadedCount = (allPages || []).reduce(
|
|
197
|
+
(sum, page) => sum + (Array.isArray(page?.items) ? page.items.length : 0),
|
|
198
|
+
0
|
|
199
|
+
);
|
|
200
|
+
const total2 = lastPage?.total ?? 0;
|
|
201
|
+
if (loadedCount >= total2) return void 0;
|
|
202
|
+
return loadedCount;
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
if (error && !isFetching) {
|
|
206
|
+
throw error;
|
|
207
|
+
}
|
|
208
|
+
const pages = data.pages;
|
|
209
|
+
const items = pages?.flatMap(
|
|
210
|
+
(page) => Array.isArray(page?.items) ? page.items : []
|
|
211
|
+
) ?? [];
|
|
212
|
+
const total = pages?.[0]?.total ?? 0;
|
|
213
|
+
return {
|
|
214
|
+
items,
|
|
215
|
+
total,
|
|
216
|
+
loadMore: fetchNextPage,
|
|
217
|
+
hasMore: !!hasNextPage,
|
|
218
|
+
isLoadingMore: isFetchingNextPage,
|
|
219
|
+
refetch
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
function useContentItem(typeSlug, id) {
|
|
223
|
+
const { apiBaseURL, apiBasePath, headers } = usePluginOverrides("cms");
|
|
224
|
+
const client = createApiClient({
|
|
225
|
+
baseURL: apiBaseURL,
|
|
226
|
+
basePath: apiBasePath
|
|
227
|
+
});
|
|
228
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
229
|
+
const baseQuery = queries.cmsContent.detail(typeSlug, id);
|
|
230
|
+
const { data, isLoading, error, refetch } = useQuery({
|
|
231
|
+
...baseQuery,
|
|
232
|
+
...SHARED_QUERY_CONFIG,
|
|
233
|
+
enabled: !!typeSlug && !!id
|
|
234
|
+
});
|
|
235
|
+
return {
|
|
236
|
+
item: data ?? null,
|
|
237
|
+
isLoading,
|
|
238
|
+
error,
|
|
239
|
+
refetch
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
function useSuspenseContentItem(typeSlug, id) {
|
|
243
|
+
const { apiBaseURL, apiBasePath, headers } = usePluginOverrides("cms");
|
|
244
|
+
const client = createApiClient({
|
|
245
|
+
baseURL: apiBaseURL,
|
|
246
|
+
basePath: apiBasePath
|
|
247
|
+
});
|
|
248
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
249
|
+
const baseQuery = queries.cmsContent.detail(typeSlug, id);
|
|
250
|
+
const { data, refetch, error, isFetching } = useSuspenseQuery({
|
|
251
|
+
...baseQuery,
|
|
252
|
+
...SHARED_QUERY_CONFIG
|
|
253
|
+
});
|
|
254
|
+
if (error && !isFetching) {
|
|
255
|
+
throw error;
|
|
256
|
+
}
|
|
257
|
+
return {
|
|
258
|
+
item: data ?? null,
|
|
259
|
+
refetch
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
function useContentItemBySlug(typeSlug, slug) {
|
|
263
|
+
const { apiBaseURL, apiBasePath, headers } = usePluginOverrides("cms");
|
|
264
|
+
const client = createApiClient({
|
|
265
|
+
baseURL: apiBaseURL,
|
|
266
|
+
basePath: apiBasePath
|
|
267
|
+
});
|
|
268
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
269
|
+
const baseQuery = queries.cmsContent.bySlug(typeSlug, slug);
|
|
270
|
+
const { data, isLoading, error, refetch } = useQuery({
|
|
271
|
+
...baseQuery,
|
|
272
|
+
...SHARED_QUERY_CONFIG,
|
|
273
|
+
enabled: !!typeSlug && !!slug
|
|
274
|
+
});
|
|
275
|
+
return {
|
|
276
|
+
item: data ?? null,
|
|
277
|
+
isLoading,
|
|
278
|
+
error,
|
|
279
|
+
refetch
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
function useCreateContent(typeSlug) {
|
|
283
|
+
const { refresh, apiBaseURL, apiBasePath, headers } = usePluginOverrides("cms");
|
|
284
|
+
const client = createApiClient({
|
|
285
|
+
baseURL: apiBaseURL,
|
|
286
|
+
basePath: apiBasePath
|
|
287
|
+
});
|
|
288
|
+
const queryClient = useQueryClient();
|
|
289
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
290
|
+
return useMutation({
|
|
291
|
+
mutationKey: [...queries.cmsContent._def, typeSlug, "create"],
|
|
292
|
+
mutationFn: async (data) => {
|
|
293
|
+
const response = await client("@post/content/:typeSlug", {
|
|
294
|
+
method: "POST",
|
|
295
|
+
params: { typeSlug },
|
|
296
|
+
body: data,
|
|
297
|
+
headers
|
|
298
|
+
});
|
|
299
|
+
if (isErrorResponse(response)) {
|
|
300
|
+
throw toError(response.error);
|
|
301
|
+
}
|
|
302
|
+
return response.data;
|
|
303
|
+
},
|
|
304
|
+
onSuccess: async () => {
|
|
305
|
+
await queryClient.invalidateQueries({
|
|
306
|
+
queryKey: queries.cmsContent.list._def
|
|
307
|
+
});
|
|
308
|
+
await queryClient.invalidateQueries({
|
|
309
|
+
queryKey: queries.cmsTypes.list._def
|
|
310
|
+
});
|
|
311
|
+
if (refresh) {
|
|
312
|
+
await refresh();
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
function useUpdateContent(typeSlug) {
|
|
318
|
+
const { refresh, apiBaseURL, apiBasePath, headers } = usePluginOverrides("cms");
|
|
319
|
+
const client = createApiClient({
|
|
320
|
+
baseURL: apiBaseURL,
|
|
321
|
+
basePath: apiBasePath
|
|
322
|
+
});
|
|
323
|
+
const queryClient = useQueryClient();
|
|
324
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
325
|
+
return useMutation({
|
|
326
|
+
mutationKey: [...queries.cmsContent._def, typeSlug, "update"],
|
|
327
|
+
mutationFn: async ({ id, data }) => {
|
|
328
|
+
const response = await client("@put/content/:typeSlug/:id", {
|
|
329
|
+
method: "PUT",
|
|
330
|
+
params: { typeSlug, id },
|
|
331
|
+
body: data,
|
|
332
|
+
headers
|
|
333
|
+
});
|
|
334
|
+
if (isErrorResponse(response)) {
|
|
335
|
+
throw toError(response.error);
|
|
336
|
+
}
|
|
337
|
+
return response.data;
|
|
338
|
+
},
|
|
339
|
+
onSuccess: async (updated) => {
|
|
340
|
+
if (updated) {
|
|
341
|
+
queryClient.setQueryData(
|
|
342
|
+
queries.cmsContent.detail(typeSlug, updated.id).queryKey,
|
|
343
|
+
updated
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
await queryClient.invalidateQueries({
|
|
347
|
+
queryKey: queries.cmsContent.list._def
|
|
348
|
+
});
|
|
349
|
+
if (refresh) {
|
|
350
|
+
await refresh();
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
function useDeleteContent(typeSlug) {
|
|
356
|
+
const { refresh, apiBaseURL, apiBasePath, headers } = usePluginOverrides("cms");
|
|
357
|
+
const client = createApiClient({
|
|
358
|
+
baseURL: apiBaseURL,
|
|
359
|
+
basePath: apiBasePath
|
|
360
|
+
});
|
|
361
|
+
const queryClient = useQueryClient();
|
|
362
|
+
const queries = createCMSQueryKeys(client, headers);
|
|
363
|
+
return useMutation({
|
|
364
|
+
mutationKey: [...queries.cmsContent._def, typeSlug, "delete"],
|
|
365
|
+
mutationFn: async (id) => {
|
|
366
|
+
const response = await client("@delete/content/:typeSlug/:id", {
|
|
367
|
+
method: "DELETE",
|
|
368
|
+
params: { typeSlug, id },
|
|
369
|
+
headers
|
|
370
|
+
});
|
|
371
|
+
if (isErrorResponse(response)) {
|
|
372
|
+
throw toError(response.error);
|
|
373
|
+
}
|
|
374
|
+
return response.data;
|
|
375
|
+
},
|
|
376
|
+
onSuccess: async () => {
|
|
377
|
+
await queryClient.invalidateQueries({
|
|
378
|
+
queryKey: queries.cmsContent._def
|
|
379
|
+
});
|
|
380
|
+
await queryClient.invalidateQueries({
|
|
381
|
+
queryKey: queries.cmsTypes.list._def
|
|
382
|
+
});
|
|
383
|
+
if (refresh) {
|
|
384
|
+
await refresh();
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export { useContent, useContentItem, useContentItemBySlug, useContentType, useContentTypes, useCreateContent, useDeleteContent, useSuspenseContent, useSuspenseContentItem, useSuspenseContentTypes, useUpdateContent };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const CMS_COMMON = {
|
|
4
|
+
// Buttons
|
|
5
|
+
CMS_BUTTON_SAVE: "Save",
|
|
6
|
+
CMS_BUTTON_CANCEL: "Cancel",
|
|
7
|
+
CMS_BUTTON_DELETE: "Delete",
|
|
8
|
+
CMS_BUTTON_CREATE: "Create",
|
|
9
|
+
CMS_BUTTON_BACK: "Back",
|
|
10
|
+
CMS_BUTTON_NEW_ITEM: "New Item",
|
|
11
|
+
// Labels
|
|
12
|
+
CMS_LABEL_SLUG: "Slug",
|
|
13
|
+
CMS_LABEL_SLUG_DESCRIPTION: "URL-friendly identifier for this item",
|
|
14
|
+
CMS_LABEL_CREATED_AT: "Created",
|
|
15
|
+
CMS_LABEL_UPDATED_AT: "Last Updated",
|
|
16
|
+
CMS_LABEL_ACTIONS: "Actions",
|
|
17
|
+
// Status
|
|
18
|
+
CMS_STATUS_LOADING: "Loading...",
|
|
19
|
+
CMS_STATUS_SAVING: "Saving...",
|
|
20
|
+
CMS_STATUS_DELETING: "Deleting...",
|
|
21
|
+
// Errors
|
|
22
|
+
CMS_ERROR_GENERIC: "Something went wrong",
|
|
23
|
+
CMS_ERROR_NOT_FOUND: "Not found",
|
|
24
|
+
CMS_ERROR_VALIDATION: "Please fix the errors above",
|
|
25
|
+
// Attribution
|
|
26
|
+
CMS_ATTRIBUTION: "Powered by Better Stack"
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
exports.CMS_COMMON = CMS_COMMON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const CMS_COMMON = {
|
|
2
|
+
// Buttons
|
|
3
|
+
CMS_BUTTON_SAVE: "Save",
|
|
4
|
+
CMS_BUTTON_CANCEL: "Cancel",
|
|
5
|
+
CMS_BUTTON_DELETE: "Delete",
|
|
6
|
+
CMS_BUTTON_CREATE: "Create",
|
|
7
|
+
CMS_BUTTON_BACK: "Back",
|
|
8
|
+
CMS_BUTTON_NEW_ITEM: "New Item",
|
|
9
|
+
// Labels
|
|
10
|
+
CMS_LABEL_SLUG: "Slug",
|
|
11
|
+
CMS_LABEL_SLUG_DESCRIPTION: "URL-friendly identifier for this item",
|
|
12
|
+
CMS_LABEL_CREATED_AT: "Created",
|
|
13
|
+
CMS_LABEL_UPDATED_AT: "Last Updated",
|
|
14
|
+
CMS_LABEL_ACTIONS: "Actions",
|
|
15
|
+
// Status
|
|
16
|
+
CMS_STATUS_LOADING: "Loading...",
|
|
17
|
+
CMS_STATUS_SAVING: "Saving...",
|
|
18
|
+
CMS_STATUS_DELETING: "Deleting...",
|
|
19
|
+
// Errors
|
|
20
|
+
CMS_ERROR_GENERIC: "Something went wrong",
|
|
21
|
+
CMS_ERROR_NOT_FOUND: "Not found",
|
|
22
|
+
CMS_ERROR_VALIDATION: "Please fix the errors above",
|
|
23
|
+
// Attribution
|
|
24
|
+
CMS_ATTRIBUTION: "Powered by Better Stack"
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { CMS_COMMON };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const CMS_DASHBOARD = {
|
|
4
|
+
CMS_DASHBOARD_TITLE: "Content",
|
|
5
|
+
CMS_DASHBOARD_SUBTITLE: "Manage your content types",
|
|
6
|
+
CMS_DASHBOARD_NO_TYPES: "No content types configured",
|
|
7
|
+
CMS_DASHBOARD_NO_TYPES_DESCRIPTION: "Add content types to your CMS configuration to get started.",
|
|
8
|
+
CMS_DASHBOARD_ITEMS_COUNT: "{count} items",
|
|
9
|
+
CMS_DASHBOARD_ITEMS_COUNT_ZERO: "No items",
|
|
10
|
+
CMS_DASHBOARD_ITEMS_COUNT_ONE: "1 item"
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
exports.CMS_DASHBOARD = CMS_DASHBOARD;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const CMS_DASHBOARD = {
|
|
2
|
+
CMS_DASHBOARD_TITLE: "Content",
|
|
3
|
+
CMS_DASHBOARD_SUBTITLE: "Manage your content types",
|
|
4
|
+
CMS_DASHBOARD_NO_TYPES: "No content types configured",
|
|
5
|
+
CMS_DASHBOARD_NO_TYPES_DESCRIPTION: "Add content types to your CMS configuration to get started.",
|
|
6
|
+
CMS_DASHBOARD_ITEMS_COUNT: "{count} items",
|
|
7
|
+
CMS_DASHBOARD_ITEMS_COUNT_ZERO: "No items",
|
|
8
|
+
CMS_DASHBOARD_ITEMS_COUNT_ONE: "1 item"
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { CMS_DASHBOARD };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const CMS_EDITOR = {
|
|
4
|
+
CMS_EDITOR_TITLE_NEW: "New {typeName}",
|
|
5
|
+
CMS_EDITOR_TITLE_EDIT: "Edit {typeName}",
|
|
6
|
+
CMS_EDITOR_SLUG_AUTO: "Auto-generated from first field",
|
|
7
|
+
CMS_EDITOR_SLUG_MANUAL: "Manually set",
|
|
8
|
+
CMS_EDITOR_DELETE_CONFIRM: "Are you sure you want to delete this item?",
|
|
9
|
+
CMS_EDITOR_UNSAVED_CHANGES: "You have unsaved changes"
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.CMS_EDITOR = CMS_EDITOR;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const CMS_EDITOR = {
|
|
2
|
+
CMS_EDITOR_TITLE_NEW: "New {typeName}",
|
|
3
|
+
CMS_EDITOR_TITLE_EDIT: "Edit {typeName}",
|
|
4
|
+
CMS_EDITOR_SLUG_AUTO: "Auto-generated from first field",
|
|
5
|
+
CMS_EDITOR_SLUG_MANUAL: "Manually set",
|
|
6
|
+
CMS_EDITOR_DELETE_CONFIRM: "Are you sure you want to delete this item?",
|
|
7
|
+
CMS_EDITOR_UNSAVED_CHANGES: "You have unsaved changes"
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { CMS_EDITOR };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const CMS_LIST = {
|
|
4
|
+
CMS_LIST_TITLE: "{typeName}",
|
|
5
|
+
CMS_LIST_EMPTY: "No items yet",
|
|
6
|
+
CMS_LIST_EMPTY_DESCRIPTION: "Create your first item to get started.",
|
|
7
|
+
CMS_LIST_COLUMN_SLUG: "Slug",
|
|
8
|
+
CMS_LIST_COLUMN_CREATED: "Created",
|
|
9
|
+
CMS_LIST_COLUMN_UPDATED: "Updated",
|
|
10
|
+
CMS_LIST_COLUMN_ACTIONS: "Actions",
|
|
11
|
+
CMS_LIST_ACTION_EDIT: "Edit",
|
|
12
|
+
CMS_LIST_ACTION_DELETE: "Delete",
|
|
13
|
+
CMS_LIST_PAGINATION_SHOWING: "Showing {from}-{to} of {total}",
|
|
14
|
+
CMS_LIST_PAGINATION_PREVIOUS: "Previous",
|
|
15
|
+
CMS_LIST_PAGINATION_NEXT: "Next"
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
exports.CMS_LIST = CMS_LIST;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const CMS_LIST = {
|
|
2
|
+
CMS_LIST_TITLE: "{typeName}",
|
|
3
|
+
CMS_LIST_EMPTY: "No items yet",
|
|
4
|
+
CMS_LIST_EMPTY_DESCRIPTION: "Create your first item to get started.",
|
|
5
|
+
CMS_LIST_COLUMN_SLUG: "Slug",
|
|
6
|
+
CMS_LIST_COLUMN_CREATED: "Created",
|
|
7
|
+
CMS_LIST_COLUMN_UPDATED: "Updated",
|
|
8
|
+
CMS_LIST_COLUMN_ACTIONS: "Actions",
|
|
9
|
+
CMS_LIST_ACTION_EDIT: "Edit",
|
|
10
|
+
CMS_LIST_ACTION_DELETE: "Delete",
|
|
11
|
+
CMS_LIST_PAGINATION_SHOWING: "Showing {from}-{to} of {total}",
|
|
12
|
+
CMS_LIST_PAGINATION_PREVIOUS: "Previous",
|
|
13
|
+
CMS_LIST_PAGINATION_NEXT: "Next"
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { CMS_LIST };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const CMS_TOASTS = {
|
|
4
|
+
CMS_TOAST_CREATE_SUCCESS: "Item created successfully",
|
|
5
|
+
CMS_TOAST_UPDATE_SUCCESS: "Item updated successfully",
|
|
6
|
+
CMS_TOAST_DELETE_SUCCESS: "Item deleted successfully",
|
|
7
|
+
CMS_TOAST_ERROR: "An error occurred. Please try again.",
|
|
8
|
+
CMS_TOAST_VALIDATION_ERROR: "Please fix the validation errors",
|
|
9
|
+
CMS_TOAST_DUPLICATE_SLUG: "An item with this slug already exists"
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.CMS_TOASTS = CMS_TOASTS;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const CMS_TOASTS = {
|
|
2
|
+
CMS_TOAST_CREATE_SUCCESS: "Item created successfully",
|
|
3
|
+
CMS_TOAST_UPDATE_SUCCESS: "Item updated successfully",
|
|
4
|
+
CMS_TOAST_DELETE_SUCCESS: "Item deleted successfully",
|
|
5
|
+
CMS_TOAST_ERROR: "An error occurred. Please try again.",
|
|
6
|
+
CMS_TOAST_VALIDATION_ERROR: "Please fix the validation errors",
|
|
7
|
+
CMS_TOAST_DUPLICATE_SLUG: "An item with this slug already exists"
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { CMS_TOASTS };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const cmsCommon = require('./cms-common.cjs');
|
|
4
|
+
const cmsToasts = require('./cms-toasts.cjs');
|
|
5
|
+
const cmsDashboard = require('./cms-dashboard.cjs');
|
|
6
|
+
const cmsList = require('./cms-list.cjs');
|
|
7
|
+
const cmsEditor = require('./cms-editor.cjs');
|
|
8
|
+
|
|
9
|
+
const CMS_LOCALIZATION = {
|
|
10
|
+
...cmsCommon.CMS_COMMON,
|
|
11
|
+
...cmsToasts.CMS_TOASTS,
|
|
12
|
+
...cmsDashboard.CMS_DASHBOARD,
|
|
13
|
+
...cmsList.CMS_LIST,
|
|
14
|
+
...cmsEditor.CMS_EDITOR
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
exports.CMS_LOCALIZATION = CMS_LOCALIZATION;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CMS_COMMON } from './cms-common.mjs';
|
|
2
|
+
import { CMS_TOASTS } from './cms-toasts.mjs';
|
|
3
|
+
import { CMS_DASHBOARD } from './cms-dashboard.mjs';
|
|
4
|
+
import { CMS_LIST } from './cms-list.mjs';
|
|
5
|
+
import { CMS_EDITOR } from './cms-editor.mjs';
|
|
6
|
+
|
|
7
|
+
const CMS_LOCALIZATION = {
|
|
8
|
+
...CMS_COMMON,
|
|
9
|
+
...CMS_TOASTS,
|
|
10
|
+
...CMS_DASHBOARD,
|
|
11
|
+
...CMS_LIST,
|
|
12
|
+
...CMS_EDITOR
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { CMS_LOCALIZATION };
|