@btst/stack 1.4.1 → 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-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/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/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/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/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.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/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/src/plugins/blog/client/components/shared/page-layout.tsx +0 -23
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const form = require('../../form.cjs');
|
|
8
|
+
const React = require('react');
|
|
9
|
+
const reactHookForm = require('react-hook-form');
|
|
10
|
+
const button = require('../../button.cjs');
|
|
11
|
+
const utils$1 = require('../../../lib/utils.cjs');
|
|
12
|
+
const zod = require('@hookform/resolvers/zod');
|
|
13
|
+
const object = require('./fields/object.cjs');
|
|
14
|
+
const utils = require('./utils.cjs');
|
|
15
|
+
|
|
16
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
17
|
+
|
|
18
|
+
const React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
19
|
+
|
|
20
|
+
function AutoFormSubmit({
|
|
21
|
+
children,
|
|
22
|
+
className,
|
|
23
|
+
disabled
|
|
24
|
+
}) {
|
|
25
|
+
return /* @__PURE__ */ jsxRuntime.jsx(button.Button, { type: "submit", disabled, className, children: children ?? "Submit" });
|
|
26
|
+
}
|
|
27
|
+
function AutoForm({
|
|
28
|
+
formSchema,
|
|
29
|
+
values: valuesProp,
|
|
30
|
+
onValuesChange: onValuesChangeProp,
|
|
31
|
+
onParsedValuesChange,
|
|
32
|
+
onSubmit: onSubmitProp,
|
|
33
|
+
fieldConfig,
|
|
34
|
+
children,
|
|
35
|
+
className,
|
|
36
|
+
dependencies
|
|
37
|
+
}) {
|
|
38
|
+
const objectFormSchema = utils.getObjectFormSchema(formSchema);
|
|
39
|
+
const defaultValues = utils.getDefaultValues(objectFormSchema, fieldConfig);
|
|
40
|
+
const form$1 = reactHookForm.useForm({
|
|
41
|
+
// Cast to any to handle Zod v4 type compatibility with @hookform/resolvers
|
|
42
|
+
resolver: zod.zodResolver(formSchema),
|
|
43
|
+
defaultValues: defaultValues ?? void 0,
|
|
44
|
+
values: valuesProp
|
|
45
|
+
});
|
|
46
|
+
function onSubmit(values) {
|
|
47
|
+
const parsedValues = formSchema.safeParse(values);
|
|
48
|
+
if (parsedValues.success) {
|
|
49
|
+
onSubmitProp?.(parsedValues.data, form$1);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
React__default.useEffect(() => {
|
|
53
|
+
const subscription = form$1.watch((values) => {
|
|
54
|
+
onValuesChangeProp?.(values, form$1);
|
|
55
|
+
const parsedValues = formSchema.safeParse(values);
|
|
56
|
+
if (parsedValues.success) {
|
|
57
|
+
onParsedValuesChange?.(parsedValues.data, form$1);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
return () => subscription.unsubscribe();
|
|
61
|
+
}, [form$1, formSchema, onValuesChangeProp, onParsedValuesChange]);
|
|
62
|
+
const renderChildren = typeof children === "function" ? children(form$1.formState) : children;
|
|
63
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full", children: /* @__PURE__ */ jsxRuntime.jsx(form.Form, { ...form$1, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
64
|
+
"form",
|
|
65
|
+
{
|
|
66
|
+
onSubmit: (e) => {
|
|
67
|
+
form$1.handleSubmit(onSubmit)(e);
|
|
68
|
+
},
|
|
69
|
+
className: utils$1.cn("space-y-5", className),
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
72
|
+
object,
|
|
73
|
+
{
|
|
74
|
+
schema: objectFormSchema,
|
|
75
|
+
form: form$1,
|
|
76
|
+
dependencies,
|
|
77
|
+
fieldConfig
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
renderChildren
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
) }) });
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
exports.AutoFormSubmit = AutoFormSubmit;
|
|
87
|
+
exports.default = AutoForm;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { Form } from '../../form.mjs';
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
import { useForm } from 'react-hook-form';
|
|
6
|
+
import { Button } from '../../button.mjs';
|
|
7
|
+
import { cn } from '../../../lib/utils.mjs';
|
|
8
|
+
import { zodResolver } from '@hookform/resolvers/zod';
|
|
9
|
+
import AutoFormObject from './fields/object.mjs';
|
|
10
|
+
import { getObjectFormSchema, getDefaultValues } from './utils.mjs';
|
|
11
|
+
|
|
12
|
+
function AutoFormSubmit({
|
|
13
|
+
children,
|
|
14
|
+
className,
|
|
15
|
+
disabled
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Button, { type: "submit", disabled, className, children: children ?? "Submit" });
|
|
18
|
+
}
|
|
19
|
+
function AutoForm({
|
|
20
|
+
formSchema,
|
|
21
|
+
values: valuesProp,
|
|
22
|
+
onValuesChange: onValuesChangeProp,
|
|
23
|
+
onParsedValuesChange,
|
|
24
|
+
onSubmit: onSubmitProp,
|
|
25
|
+
fieldConfig,
|
|
26
|
+
children,
|
|
27
|
+
className,
|
|
28
|
+
dependencies
|
|
29
|
+
}) {
|
|
30
|
+
const objectFormSchema = getObjectFormSchema(formSchema);
|
|
31
|
+
const defaultValues = getDefaultValues(objectFormSchema, fieldConfig);
|
|
32
|
+
const form = useForm({
|
|
33
|
+
// Cast to any to handle Zod v4 type compatibility with @hookform/resolvers
|
|
34
|
+
resolver: zodResolver(formSchema),
|
|
35
|
+
defaultValues: defaultValues ?? void 0,
|
|
36
|
+
values: valuesProp
|
|
37
|
+
});
|
|
38
|
+
function onSubmit(values) {
|
|
39
|
+
const parsedValues = formSchema.safeParse(values);
|
|
40
|
+
if (parsedValues.success) {
|
|
41
|
+
onSubmitProp?.(parsedValues.data, form);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
React__default.useEffect(() => {
|
|
45
|
+
const subscription = form.watch((values) => {
|
|
46
|
+
onValuesChangeProp?.(values, form);
|
|
47
|
+
const parsedValues = formSchema.safeParse(values);
|
|
48
|
+
if (parsedValues.success) {
|
|
49
|
+
onParsedValuesChange?.(parsedValues.data, form);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return () => subscription.unsubscribe();
|
|
53
|
+
}, [form, formSchema, onValuesChangeProp, onParsedValuesChange]);
|
|
54
|
+
const renderChildren = typeof children === "function" ? children(form.formState) : children;
|
|
55
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full", children: /* @__PURE__ */ jsx(Form, { ...form, children: /* @__PURE__ */ jsxs(
|
|
56
|
+
"form",
|
|
57
|
+
{
|
|
58
|
+
onSubmit: (e) => {
|
|
59
|
+
form.handleSubmit(onSubmit)(e);
|
|
60
|
+
},
|
|
61
|
+
className: cn("space-y-5", className),
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ jsx(
|
|
64
|
+
AutoFormObject,
|
|
65
|
+
{
|
|
66
|
+
schema: objectFormSchema,
|
|
67
|
+
form,
|
|
68
|
+
dependencies,
|
|
69
|
+
fieldConfig
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
renderChildren
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
) }) });
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { AutoFormSubmit, AutoForm as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var DependencyType = /* @__PURE__ */ ((DependencyType2) => {
|
|
4
|
+
DependencyType2[DependencyType2["DISABLES"] = 0] = "DISABLES";
|
|
5
|
+
DependencyType2[DependencyType2["REQUIRES"] = 1] = "REQUIRES";
|
|
6
|
+
DependencyType2[DependencyType2["HIDES"] = 2] = "HIDES";
|
|
7
|
+
DependencyType2[DependencyType2["SETS_OPTIONS"] = 3] = "SETS_OPTIONS";
|
|
8
|
+
return DependencyType2;
|
|
9
|
+
})(DependencyType || {});
|
|
10
|
+
|
|
11
|
+
exports.DependencyType = DependencyType;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var DependencyType = /* @__PURE__ */ ((DependencyType2) => {
|
|
2
|
+
DependencyType2[DependencyType2["DISABLES"] = 0] = "DISABLES";
|
|
3
|
+
DependencyType2[DependencyType2["REQUIRES"] = 1] = "REQUIRES";
|
|
4
|
+
DependencyType2[DependencyType2["HIDES"] = 2] = "HIDES";
|
|
5
|
+
DependencyType2[DependencyType2["SETS_OPTIONS"] = 3] = "SETS_OPTIONS";
|
|
6
|
+
return DependencyType2;
|
|
7
|
+
})(DependencyType || {});
|
|
8
|
+
|
|
9
|
+
export { DependencyType };
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const z = require('zod');
|
|
4
|
+
|
|
5
|
+
function getDefTypeName(schema) {
|
|
6
|
+
const def = schema._zod?.def;
|
|
7
|
+
return def?.type || "";
|
|
8
|
+
}
|
|
9
|
+
function beautifyObjectName(string) {
|
|
10
|
+
let output = string.replace(/([A-Z])/g, " $1");
|
|
11
|
+
output = output.charAt(0).toUpperCase() + output.slice(1);
|
|
12
|
+
return output;
|
|
13
|
+
}
|
|
14
|
+
function getBaseSchema(schema) {
|
|
15
|
+
if (!schema) return null;
|
|
16
|
+
const def = schema._zod?.def;
|
|
17
|
+
if (!def) return schema;
|
|
18
|
+
if (def.innerType) {
|
|
19
|
+
return getBaseSchema(def.innerType);
|
|
20
|
+
}
|
|
21
|
+
if (def.out) {
|
|
22
|
+
return getBaseSchema(def.out);
|
|
23
|
+
}
|
|
24
|
+
if (def.schema) {
|
|
25
|
+
return getBaseSchema(def.schema);
|
|
26
|
+
}
|
|
27
|
+
return schema;
|
|
28
|
+
}
|
|
29
|
+
function getBaseType(schema) {
|
|
30
|
+
const baseSchema = getBaseSchema(schema);
|
|
31
|
+
if (!baseSchema) return "";
|
|
32
|
+
const typeName = getDefTypeName(baseSchema);
|
|
33
|
+
const typeMap = {
|
|
34
|
+
object: "ZodObject",
|
|
35
|
+
array: "ZodArray",
|
|
36
|
+
string: "ZodString",
|
|
37
|
+
number: "ZodNumber",
|
|
38
|
+
int: "ZodNumber",
|
|
39
|
+
float: "ZodNumber",
|
|
40
|
+
boolean: "ZodBoolean",
|
|
41
|
+
date: "ZodDate",
|
|
42
|
+
enum: "ZodEnum",
|
|
43
|
+
nativeEnum: "ZodNativeEnum",
|
|
44
|
+
literal: "ZodLiteral",
|
|
45
|
+
union: "ZodUnion"
|
|
46
|
+
};
|
|
47
|
+
return typeMap[typeName] || typeName;
|
|
48
|
+
}
|
|
49
|
+
function getDefaultValueInZodStack(schema) {
|
|
50
|
+
const def = schema._zod?.def;
|
|
51
|
+
if (!def) return void 0;
|
|
52
|
+
if (def.type === "default") {
|
|
53
|
+
const defaultValue = def.defaultValue;
|
|
54
|
+
if (typeof defaultValue === "function") {
|
|
55
|
+
return defaultValue();
|
|
56
|
+
}
|
|
57
|
+
return defaultValue;
|
|
58
|
+
}
|
|
59
|
+
if (def.innerType) {
|
|
60
|
+
return getDefaultValueInZodStack(def.innerType);
|
|
61
|
+
}
|
|
62
|
+
if (def.schema) {
|
|
63
|
+
return getDefaultValueInZodStack(def.schema);
|
|
64
|
+
}
|
|
65
|
+
return void 0;
|
|
66
|
+
}
|
|
67
|
+
function getDefaultValues(schema, fieldConfig) {
|
|
68
|
+
if (!schema) return null;
|
|
69
|
+
const { shape } = schema;
|
|
70
|
+
const defaultValues = {};
|
|
71
|
+
if (!shape) return defaultValues;
|
|
72
|
+
for (const key of Object.keys(shape)) {
|
|
73
|
+
const item = shape[key];
|
|
74
|
+
if (getBaseType(item) === "ZodObject") {
|
|
75
|
+
const defaultItems = getDefaultValues(
|
|
76
|
+
getBaseSchema(item),
|
|
77
|
+
fieldConfig?.[key]
|
|
78
|
+
);
|
|
79
|
+
if (defaultItems !== null) {
|
|
80
|
+
for (const defaultItemKey of Object.keys(defaultItems)) {
|
|
81
|
+
const pathKey = `${key}.${defaultItemKey}`;
|
|
82
|
+
defaultValues[pathKey] = defaultItems[defaultItemKey];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
} else {
|
|
86
|
+
let defaultValue = getDefaultValueInZodStack(item);
|
|
87
|
+
if ((defaultValue === null || defaultValue === "") && fieldConfig?.[key]?.inputProps) {
|
|
88
|
+
defaultValue = (fieldConfig?.[key]?.inputProps).defaultValue;
|
|
89
|
+
}
|
|
90
|
+
if (defaultValue !== void 0) {
|
|
91
|
+
defaultValues[key] = defaultValue;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return defaultValues;
|
|
96
|
+
}
|
|
97
|
+
function getObjectFormSchema(schema) {
|
|
98
|
+
if (!schema) return schema;
|
|
99
|
+
const def = schema._zod?.def;
|
|
100
|
+
if (!def) return schema;
|
|
101
|
+
if (def.type === "pipe") {
|
|
102
|
+
return getObjectFormSchema(def.in);
|
|
103
|
+
}
|
|
104
|
+
if (def.innerType) {
|
|
105
|
+
return getObjectFormSchema(def.innerType);
|
|
106
|
+
}
|
|
107
|
+
if (def.schema) {
|
|
108
|
+
return getObjectFormSchema(def.schema);
|
|
109
|
+
}
|
|
110
|
+
return schema;
|
|
111
|
+
}
|
|
112
|
+
function getSchemaDescription(schema) {
|
|
113
|
+
const registered = z.z.globalRegistry.get(schema);
|
|
114
|
+
if (registered?.description) {
|
|
115
|
+
return registered.description;
|
|
116
|
+
}
|
|
117
|
+
const def = schema._zod?.def;
|
|
118
|
+
return def?.description;
|
|
119
|
+
}
|
|
120
|
+
function zodToHtmlInputProps(schema) {
|
|
121
|
+
const def = schema._zod?.def;
|
|
122
|
+
const defType = def?.type || "";
|
|
123
|
+
if (["optional", "nullable"].includes(defType)) {
|
|
124
|
+
return {
|
|
125
|
+
...zodToHtmlInputProps(def.innerType),
|
|
126
|
+
required: false
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
if (defType === "default") {
|
|
130
|
+
return {
|
|
131
|
+
...zodToHtmlInputProps(def.innerType),
|
|
132
|
+
required: false
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
const inputProps = {
|
|
136
|
+
required: true
|
|
137
|
+
};
|
|
138
|
+
const checks = def?.checks;
|
|
139
|
+
if (!checks || !Array.isArray(checks)) {
|
|
140
|
+
return inputProps;
|
|
141
|
+
}
|
|
142
|
+
const type = getBaseType(schema);
|
|
143
|
+
for (const check of checks) {
|
|
144
|
+
const checkKind = check.kind || check.type;
|
|
145
|
+
if (checkKind === "min" || checkKind === "min_length") {
|
|
146
|
+
if (type === "ZodString") {
|
|
147
|
+
inputProps.minLength = check.value ?? check.minimum;
|
|
148
|
+
} else {
|
|
149
|
+
inputProps.min = check.value ?? check.minimum;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (checkKind === "max" || checkKind === "max_length") {
|
|
153
|
+
if (type === "ZodString") {
|
|
154
|
+
inputProps.maxLength = check.value ?? check.maximum;
|
|
155
|
+
} else {
|
|
156
|
+
inputProps.max = check.value ?? check.maximum;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return inputProps;
|
|
161
|
+
}
|
|
162
|
+
function sortFieldsByOrder(fieldConfig, keys) {
|
|
163
|
+
const sortedFields = keys.sort((a, b) => {
|
|
164
|
+
const fieldA = fieldConfig?.[a]?.order ?? 0;
|
|
165
|
+
const fieldB = fieldConfig?.[b]?.order ?? 0;
|
|
166
|
+
return fieldA - fieldB;
|
|
167
|
+
});
|
|
168
|
+
return sortedFields;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
exports.beautifyObjectName = beautifyObjectName;
|
|
172
|
+
exports.getBaseSchema = getBaseSchema;
|
|
173
|
+
exports.getBaseType = getBaseType;
|
|
174
|
+
exports.getDefaultValueInZodStack = getDefaultValueInZodStack;
|
|
175
|
+
exports.getDefaultValues = getDefaultValues;
|
|
176
|
+
exports.getObjectFormSchema = getObjectFormSchema;
|
|
177
|
+
exports.getSchemaDescription = getSchemaDescription;
|
|
178
|
+
exports.sortFieldsByOrder = sortFieldsByOrder;
|
|
179
|
+
exports.zodToHtmlInputProps = zodToHtmlInputProps;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
function getDefTypeName(schema) {
|
|
4
|
+
const def = schema._zod?.def;
|
|
5
|
+
return def?.type || "";
|
|
6
|
+
}
|
|
7
|
+
function beautifyObjectName(string) {
|
|
8
|
+
let output = string.replace(/([A-Z])/g, " $1");
|
|
9
|
+
output = output.charAt(0).toUpperCase() + output.slice(1);
|
|
10
|
+
return output;
|
|
11
|
+
}
|
|
12
|
+
function getBaseSchema(schema) {
|
|
13
|
+
if (!schema) return null;
|
|
14
|
+
const def = schema._zod?.def;
|
|
15
|
+
if (!def) return schema;
|
|
16
|
+
if (def.innerType) {
|
|
17
|
+
return getBaseSchema(def.innerType);
|
|
18
|
+
}
|
|
19
|
+
if (def.out) {
|
|
20
|
+
return getBaseSchema(def.out);
|
|
21
|
+
}
|
|
22
|
+
if (def.schema) {
|
|
23
|
+
return getBaseSchema(def.schema);
|
|
24
|
+
}
|
|
25
|
+
return schema;
|
|
26
|
+
}
|
|
27
|
+
function getBaseType(schema) {
|
|
28
|
+
const baseSchema = getBaseSchema(schema);
|
|
29
|
+
if (!baseSchema) return "";
|
|
30
|
+
const typeName = getDefTypeName(baseSchema);
|
|
31
|
+
const typeMap = {
|
|
32
|
+
object: "ZodObject",
|
|
33
|
+
array: "ZodArray",
|
|
34
|
+
string: "ZodString",
|
|
35
|
+
number: "ZodNumber",
|
|
36
|
+
int: "ZodNumber",
|
|
37
|
+
float: "ZodNumber",
|
|
38
|
+
boolean: "ZodBoolean",
|
|
39
|
+
date: "ZodDate",
|
|
40
|
+
enum: "ZodEnum",
|
|
41
|
+
nativeEnum: "ZodNativeEnum",
|
|
42
|
+
literal: "ZodLiteral",
|
|
43
|
+
union: "ZodUnion"
|
|
44
|
+
};
|
|
45
|
+
return typeMap[typeName] || typeName;
|
|
46
|
+
}
|
|
47
|
+
function getDefaultValueInZodStack(schema) {
|
|
48
|
+
const def = schema._zod?.def;
|
|
49
|
+
if (!def) return void 0;
|
|
50
|
+
if (def.type === "default") {
|
|
51
|
+
const defaultValue = def.defaultValue;
|
|
52
|
+
if (typeof defaultValue === "function") {
|
|
53
|
+
return defaultValue();
|
|
54
|
+
}
|
|
55
|
+
return defaultValue;
|
|
56
|
+
}
|
|
57
|
+
if (def.innerType) {
|
|
58
|
+
return getDefaultValueInZodStack(def.innerType);
|
|
59
|
+
}
|
|
60
|
+
if (def.schema) {
|
|
61
|
+
return getDefaultValueInZodStack(def.schema);
|
|
62
|
+
}
|
|
63
|
+
return void 0;
|
|
64
|
+
}
|
|
65
|
+
function getDefaultValues(schema, fieldConfig) {
|
|
66
|
+
if (!schema) return null;
|
|
67
|
+
const { shape } = schema;
|
|
68
|
+
const defaultValues = {};
|
|
69
|
+
if (!shape) return defaultValues;
|
|
70
|
+
for (const key of Object.keys(shape)) {
|
|
71
|
+
const item = shape[key];
|
|
72
|
+
if (getBaseType(item) === "ZodObject") {
|
|
73
|
+
const defaultItems = getDefaultValues(
|
|
74
|
+
getBaseSchema(item),
|
|
75
|
+
fieldConfig?.[key]
|
|
76
|
+
);
|
|
77
|
+
if (defaultItems !== null) {
|
|
78
|
+
for (const defaultItemKey of Object.keys(defaultItems)) {
|
|
79
|
+
const pathKey = `${key}.${defaultItemKey}`;
|
|
80
|
+
defaultValues[pathKey] = defaultItems[defaultItemKey];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
} else {
|
|
84
|
+
let defaultValue = getDefaultValueInZodStack(item);
|
|
85
|
+
if ((defaultValue === null || defaultValue === "") && fieldConfig?.[key]?.inputProps) {
|
|
86
|
+
defaultValue = (fieldConfig?.[key]?.inputProps).defaultValue;
|
|
87
|
+
}
|
|
88
|
+
if (defaultValue !== void 0) {
|
|
89
|
+
defaultValues[key] = defaultValue;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return defaultValues;
|
|
94
|
+
}
|
|
95
|
+
function getObjectFormSchema(schema) {
|
|
96
|
+
if (!schema) return schema;
|
|
97
|
+
const def = schema._zod?.def;
|
|
98
|
+
if (!def) return schema;
|
|
99
|
+
if (def.type === "pipe") {
|
|
100
|
+
return getObjectFormSchema(def.in);
|
|
101
|
+
}
|
|
102
|
+
if (def.innerType) {
|
|
103
|
+
return getObjectFormSchema(def.innerType);
|
|
104
|
+
}
|
|
105
|
+
if (def.schema) {
|
|
106
|
+
return getObjectFormSchema(def.schema);
|
|
107
|
+
}
|
|
108
|
+
return schema;
|
|
109
|
+
}
|
|
110
|
+
function getSchemaDescription(schema) {
|
|
111
|
+
const registered = z.globalRegistry.get(schema);
|
|
112
|
+
if (registered?.description) {
|
|
113
|
+
return registered.description;
|
|
114
|
+
}
|
|
115
|
+
const def = schema._zod?.def;
|
|
116
|
+
return def?.description;
|
|
117
|
+
}
|
|
118
|
+
function zodToHtmlInputProps(schema) {
|
|
119
|
+
const def = schema._zod?.def;
|
|
120
|
+
const defType = def?.type || "";
|
|
121
|
+
if (["optional", "nullable"].includes(defType)) {
|
|
122
|
+
return {
|
|
123
|
+
...zodToHtmlInputProps(def.innerType),
|
|
124
|
+
required: false
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
if (defType === "default") {
|
|
128
|
+
return {
|
|
129
|
+
...zodToHtmlInputProps(def.innerType),
|
|
130
|
+
required: false
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
const inputProps = {
|
|
134
|
+
required: true
|
|
135
|
+
};
|
|
136
|
+
const checks = def?.checks;
|
|
137
|
+
if (!checks || !Array.isArray(checks)) {
|
|
138
|
+
return inputProps;
|
|
139
|
+
}
|
|
140
|
+
const type = getBaseType(schema);
|
|
141
|
+
for (const check of checks) {
|
|
142
|
+
const checkKind = check.kind || check.type;
|
|
143
|
+
if (checkKind === "min" || checkKind === "min_length") {
|
|
144
|
+
if (type === "ZodString") {
|
|
145
|
+
inputProps.minLength = check.value ?? check.minimum;
|
|
146
|
+
} else {
|
|
147
|
+
inputProps.min = check.value ?? check.minimum;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
if (checkKind === "max" || checkKind === "max_length") {
|
|
151
|
+
if (type === "ZodString") {
|
|
152
|
+
inputProps.maxLength = check.value ?? check.maximum;
|
|
153
|
+
} else {
|
|
154
|
+
inputProps.max = check.value ?? check.maximum;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return inputProps;
|
|
159
|
+
}
|
|
160
|
+
function sortFieldsByOrder(fieldConfig, keys) {
|
|
161
|
+
const sortedFields = keys.sort((a, b) => {
|
|
162
|
+
const fieldA = fieldConfig?.[a]?.order ?? 0;
|
|
163
|
+
const fieldB = fieldConfig?.[b]?.order ?? 0;
|
|
164
|
+
return fieldA - fieldB;
|
|
165
|
+
});
|
|
166
|
+
return sortedFields;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export { beautifyObjectName, getBaseSchema, getBaseType, getDefaultValueInZodStack, getDefaultValues, getObjectFormSchema, getSchemaDescription, sortFieldsByOrder, zodToHtmlInputProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { d as AiChatApiRouter, b as AiChatBackendConfig, A as AiChatBackendHooks, a as AiChatMode, C as ChatApiContext, c as aiChatBackendPlugin, createAiChatQueryKeys } from '../query-keys.cjs';
|
|
2
2
|
import '@btst/stack/plugins/api';
|
|
3
|
+
import 'better-call';
|
|
3
4
|
import 'zod/v4/core';
|
|
4
5
|
import 'zod';
|
|
5
|
-
import 'better-call';
|
|
6
6
|
import 'ai';
|
|
7
7
|
import '../../../shared/stack.Be1QIHEn.cjs';
|
|
8
8
|
import '@tanstack/react-query';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { d as AiChatApiRouter, b as AiChatBackendConfig, A as AiChatBackendHooks, a as AiChatMode, C as ChatApiContext, c as aiChatBackendPlugin, createAiChatQueryKeys } from '../query-keys.mjs';
|
|
2
2
|
import '@btst/stack/plugins/api';
|
|
3
|
+
import 'better-call';
|
|
3
4
|
import 'zod/v4/core';
|
|
4
5
|
import 'zod';
|
|
5
|
-
import 'better-call';
|
|
6
6
|
import 'ai';
|
|
7
7
|
import '../../../shared/stack.Be1QIHEn.mjs';
|
|
8
8
|
import '@tanstack/react-query';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { d as AiChatApiRouter, b as AiChatBackendConfig, A as AiChatBackendHooks, a as AiChatMode, C as ChatApiContext, c as aiChatBackendPlugin, createAiChatQueryKeys } from '../query-keys.js';
|
|
2
2
|
import '@btst/stack/plugins/api';
|
|
3
|
+
import 'better-call';
|
|
3
4
|
import 'zod/v4/core';
|
|
4
5
|
import 'zod';
|
|
5
|
-
import 'better-call';
|
|
6
6
|
import 'ai';
|
|
7
7
|
import '../../../shared/stack.Be1QIHEn.js';
|
|
8
8
|
import '@tanstack/react-query';
|
|
@@ -3,9 +3,9 @@ import { ConversationWithMessages } from '../../query-keys.cjs';
|
|
|
3
3
|
import { S as SerializedConversation } from '../../../../shared/stack.Be1QIHEn.cjs';
|
|
4
4
|
export { a as SerializedMessage } from '../../../../shared/stack.Be1QIHEn.cjs';
|
|
5
5
|
import '@btst/stack/plugins/api';
|
|
6
|
+
import 'better-call';
|
|
6
7
|
import 'zod/v4/core';
|
|
7
8
|
import 'zod';
|
|
8
|
-
import 'better-call';
|
|
9
9
|
import 'ai';
|
|
10
10
|
import '@btst/stack/plugins/client';
|
|
11
11
|
|
|
@@ -3,9 +3,9 @@ import { ConversationWithMessages } from '../../query-keys.mjs';
|
|
|
3
3
|
import { S as SerializedConversation } from '../../../../shared/stack.Be1QIHEn.mjs';
|
|
4
4
|
export { a as SerializedMessage } from '../../../../shared/stack.Be1QIHEn.mjs';
|
|
5
5
|
import '@btst/stack/plugins/api';
|
|
6
|
+
import 'better-call';
|
|
6
7
|
import 'zod/v4/core';
|
|
7
8
|
import 'zod';
|
|
8
|
-
import 'better-call';
|
|
9
9
|
import 'ai';
|
|
10
10
|
import '@btst/stack/plugins/client';
|
|
11
11
|
|
|
@@ -3,9 +3,9 @@ import { ConversationWithMessages } from '../../query-keys.js';
|
|
|
3
3
|
import { S as SerializedConversation } from '../../../../shared/stack.Be1QIHEn.js';
|
|
4
4
|
export { a as SerializedMessage } from '../../../../shared/stack.Be1QIHEn.js';
|
|
5
5
|
import '@btst/stack/plugins/api';
|
|
6
|
+
import 'better-call';
|
|
6
7
|
import 'zod/v4/core';
|
|
7
8
|
import 'zod';
|
|
8
|
-
import 'better-call';
|
|
9
9
|
import 'ai';
|
|
10
10
|
import '@btst/stack/plugins/client';
|
|
11
11
|
|