@btst/stack 2.0.1 → 2.2.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/api/index.cjs +9 -1
- package/dist/api/index.d.cts +4 -4
- package/dist/api/index.d.mts +4 -4
- package/dist/api/index.d.ts +4 -4
- package/dist/api/index.mjs +9 -1
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.mts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/UI.cjs +2 -2
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/UI.mjs +2 -2
- package/dist/packages/stack/src/plugins/ai-chat/api/getters.cjs +42 -0
- package/dist/packages/stack/src/plugins/ai-chat/api/getters.mjs +39 -0
- package/dist/packages/stack/src/plugins/ai-chat/api/plugin.cjs +5 -0
- package/dist/packages/stack/src/plugins/ai-chat/api/plugin.mjs +5 -0
- package/dist/packages/stack/src/plugins/blog/api/getters.cjs +131 -0
- package/dist/packages/stack/src/plugins/blog/api/getters.mjs +127 -0
- package/dist/packages/stack/src/plugins/blog/api/plugin.cjs +9 -107
- package/dist/packages/stack/src/plugins/blog/api/plugin.mjs +9 -107
- package/dist/packages/stack/src/plugins/blog/client/plugin.cjs +1 -1
- package/dist/packages/stack/src/plugins/blog/client/plugin.mjs +1 -1
- package/dist/packages/stack/src/plugins/cms/api/getters.cjs +146 -0
- package/dist/packages/stack/src/plugins/cms/api/getters.mjs +138 -0
- package/dist/packages/stack/src/plugins/cms/api/plugin.cjs +560 -622
- package/dist/packages/stack/src/plugins/cms/api/plugin.mjs +559 -621
- package/dist/packages/stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +1 -1
- package/dist/packages/stack/src/plugins/cms/client/components/pages/content-editor-page.internal.mjs +1 -1
- package/dist/packages/stack/src/plugins/cms/client/hooks/cms-hooks.cjs +6 -3
- package/dist/packages/stack/src/plugins/cms/client/hooks/cms-hooks.mjs +6 -3
- package/dist/packages/stack/src/plugins/form-builder/api/getters.cjs +111 -0
- package/dist/packages/stack/src/plugins/form-builder/api/getters.mjs +104 -0
- package/dist/packages/stack/src/plugins/form-builder/api/plugin.cjs +16 -88
- package/dist/packages/stack/src/plugins/form-builder/api/plugin.mjs +12 -84
- package/dist/packages/stack/src/plugins/form-builder/client/components/pages/submissions-page.internal.cjs +1 -1
- package/dist/packages/stack/src/plugins/form-builder/client/components/pages/submissions-page.internal.mjs +1 -1
- package/dist/packages/stack/src/plugins/kanban/api/getters.cjs +84 -0
- package/dist/packages/stack/src/plugins/kanban/api/getters.mjs +81 -0
- package/dist/packages/stack/src/plugins/kanban/api/plugin.cjs +9 -123
- package/dist/packages/stack/src/plugins/kanban/api/plugin.mjs +9 -123
- package/dist/packages/stack/src/plugins/kanban/client/plugin.cjs +1 -1
- package/dist/packages/stack/src/plugins/kanban/client/plugin.mjs +1 -1
- package/dist/packages/ui/src/components/calendar.cjs +2 -2
- package/dist/packages/ui/src/components/calendar.mjs +2 -2
- package/dist/packages/ui/src/components/sonner.cjs +34 -0
- package/dist/packages/ui/src/components/sonner.mjs +32 -0
- package/dist/packages/ui/src/components/ui-builder/components/code-panel.cjs +3 -2
- package/dist/packages/ui/src/components/ui-builder/components/code-panel.mjs +3 -2
- package/dist/packages/ui/src/components/ui-builder/index.cjs +10 -4
- package/dist/packages/ui/src/components/ui-builder/index.mjs +10 -4
- package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.cjs +22 -23
- package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.mjs +22 -23
- package/dist/packages/ui/src/components/ui-builder/internal/components/layer-context-menu-portal.cjs +261 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/layer-context-menu-portal.mjs +255 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/layer-context-menu.cjs +125 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/layer-context-menu.mjs +119 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.cjs +6 -17
- package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.mjs +7 -18
- package/dist/packages/ui/src/components/ui-builder/internal/components/nav.cjs +23 -18
- package/dist/packages/ui/src/components/ui-builder/internal/components/nav.mjs +23 -18
- package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.cjs +8 -23
- package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.mjs +9 -24
- package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.cjs +9 -41
- package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.mjs +9 -41
- package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.cjs +7 -16
- package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.mjs +7 -16
- package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.cjs +16 -11
- package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.mjs +16 -11
- package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.cjs +260 -20
- package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.mjs +260 -20
- package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.cjs +105 -17
- package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.mjs +107 -19
- package/dist/packages/ui/src/components/ui-builder/layer-renderer.cjs +4 -2
- package/dist/packages/ui/src/components/ui-builder/layer-renderer.mjs +4 -2
- package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.cjs +3 -1
- package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.mjs +3 -1
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-layer-actions.cjs +107 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-layer-actions.mjs +105 -0
- package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.cjs +9 -7
- package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.mjs +9 -7
- package/dist/packages/ui/src/lib/ui-builder/shortcuts/shortcut-registry.cjs +71 -0
- package/dist/packages/ui/src/lib/ui-builder/shortcuts/shortcut-registry.mjs +68 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-store.cjs +48 -3
- package/dist/packages/ui/src/lib/ui-builder/store/editor-store.mjs +48 -3
- package/dist/packages/ui/src/lib/ui-builder/store/layer-store.cjs +4 -1
- package/dist/packages/ui/src/lib/ui-builder/store/layer-store.mjs +4 -1
- package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.cjs +8 -0
- package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.mjs +8 -1
- package/dist/packages/ui/src/lib/ui-builder/utils/paste-validation.cjs +25 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/paste-validation.mjs +23 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.cjs +42 -3
- package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.mjs +42 -3
- package/dist/plugins/ai-chat/api/index.cjs +3 -0
- package/dist/plugins/ai-chat/api/index.d.cts +27 -4
- package/dist/plugins/ai-chat/api/index.d.mts +27 -4
- package/dist/plugins/ai-chat/api/index.d.ts +27 -4
- package/dist/plugins/ai-chat/api/index.mjs +1 -0
- package/dist/plugins/ai-chat/client/hooks/index.d.cts +2 -2
- package/dist/plugins/ai-chat/client/hooks/index.d.mts +2 -2
- package/dist/plugins/ai-chat/client/hooks/index.d.ts +2 -2
- package/dist/plugins/ai-chat/query-keys.d.cts +9 -284
- package/dist/plugins/ai-chat/query-keys.d.mts +9 -284
- package/dist/plugins/ai-chat/query-keys.d.ts +9 -284
- package/dist/plugins/api/index.d.cts +4 -3
- package/dist/plugins/api/index.d.mts +4 -3
- package/dist/plugins/api/index.d.ts +4 -3
- package/dist/plugins/blog/api/index.cjs +4 -0
- package/dist/plugins/blog/api/index.d.cts +3 -2
- package/dist/plugins/blog/api/index.d.mts +3 -2
- package/dist/plugins/blog/api/index.d.ts +3 -2
- package/dist/plugins/blog/api/index.mjs +1 -0
- package/dist/plugins/blog/client/hooks/index.d.cts +6 -6
- package/dist/plugins/blog/client/hooks/index.d.mts +6 -6
- package/dist/plugins/blog/client/hooks/index.d.ts +6 -6
- package/dist/plugins/blog/client/index.d.cts +1 -1
- package/dist/plugins/blog/client/index.d.mts +1 -1
- package/dist/plugins/blog/client/index.d.ts +1 -1
- package/dist/plugins/blog/query-keys.cjs +7 -4
- package/dist/plugins/blog/query-keys.d.cts +81 -27
- package/dist/plugins/blog/query-keys.d.mts +81 -27
- package/dist/plugins/blog/query-keys.d.ts +81 -27
- package/dist/plugins/blog/query-keys.mjs +7 -4
- package/dist/plugins/client/index.d.cts +2 -2
- package/dist/plugins/client/index.d.mts +2 -2
- package/dist/plugins/client/index.d.ts +2 -2
- package/dist/plugins/cms/api/index.cjs +4 -0
- package/dist/plugins/cms/api/index.d.cts +61 -5
- package/dist/plugins/cms/api/index.d.mts +61 -5
- package/dist/plugins/cms/api/index.d.ts +61 -5
- package/dist/plugins/cms/api/index.mjs +1 -0
- package/dist/plugins/cms/client/hooks/index.d.cts +1 -1
- package/dist/plugins/cms/client/hooks/index.d.mts +1 -1
- package/dist/plugins/cms/client/hooks/index.d.ts +1 -1
- package/dist/plugins/cms/query-keys.d.cts +2 -1
- package/dist/plugins/cms/query-keys.d.mts +2 -1
- package/dist/plugins/cms/query-keys.d.ts +2 -1
- package/dist/plugins/form-builder/api/index.cjs +4 -0
- package/dist/plugins/form-builder/api/index.d.cts +77 -7
- package/dist/plugins/form-builder/api/index.d.mts +77 -7
- package/dist/plugins/form-builder/api/index.d.ts +77 -7
- package/dist/plugins/form-builder/api/index.mjs +1 -0
- package/dist/plugins/form-builder/client/components/index.d.cts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.mts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.ts +1 -1
- package/dist/plugins/form-builder/client/hooks/index.d.cts +1 -1
- package/dist/plugins/form-builder/client/hooks/index.d.mts +1 -1
- package/dist/plugins/form-builder/client/hooks/index.d.ts +1 -1
- package/dist/plugins/form-builder/query-keys.d.cts +2 -1
- package/dist/plugins/form-builder/query-keys.d.mts +2 -1
- package/dist/plugins/form-builder/query-keys.d.ts +2 -1
- package/dist/plugins/kanban/api/index.cjs +3 -0
- package/dist/plugins/kanban/api/index.d.cts +49 -52
- package/dist/plugins/kanban/api/index.d.mts +49 -52
- package/dist/plugins/kanban/api/index.d.ts +49 -52
- package/dist/plugins/kanban/api/index.mjs +1 -0
- package/dist/plugins/kanban/client/components/index.d.cts +1 -1
- package/dist/plugins/kanban/client/components/index.d.mts +1 -1
- package/dist/plugins/kanban/client/components/index.d.ts +1 -1
- package/dist/plugins/kanban/client/hooks/index.d.cts +1 -1
- package/dist/plugins/kanban/client/hooks/index.d.mts +1 -1
- package/dist/plugins/kanban/client/hooks/index.d.ts +1 -1
- package/dist/plugins/kanban/client/index.d.cts +1 -1
- package/dist/plugins/kanban/client/index.d.mts +1 -1
- package/dist/plugins/kanban/client/index.d.ts +1 -1
- package/dist/plugins/kanban/query-keys.cjs +4 -3
- package/dist/plugins/kanban/query-keys.d.cts +2 -1
- package/dist/plugins/kanban/query-keys.d.mts +2 -1
- package/dist/plugins/kanban/query-keys.d.ts +2 -1
- package/dist/plugins/kanban/query-keys.mjs +4 -3
- package/dist/plugins/open-api/api/index.d.cts +2 -2
- package/dist/plugins/open-api/api/index.d.mts +2 -2
- package/dist/plugins/open-api/api/index.d.ts +2 -2
- package/dist/plugins/route-docs/client/index.d.cts +1 -1
- package/dist/plugins/route-docs/client/index.d.mts +1 -1
- package/dist/plugins/route-docs/client/index.d.ts +1 -1
- package/dist/plugins/ui-builder/client/components/index.d.cts +1 -1
- package/dist/plugins/ui-builder/client/components/index.d.mts +1 -1
- package/dist/plugins/ui-builder/client/components/index.d.ts +1 -1
- package/dist/plugins/ui-builder/client/hooks/index.d.cts +2 -2
- package/dist/plugins/ui-builder/client/hooks/index.d.mts +2 -2
- package/dist/plugins/ui-builder/client/hooks/index.d.ts +2 -2
- package/dist/plugins/ui-builder/client/index.d.cts +16 -6
- package/dist/plugins/ui-builder/client/index.d.mts +16 -6
- package/dist/plugins/ui-builder/client/index.d.ts +16 -6
- package/dist/plugins/ui-builder/index.d.cts +3 -3
- package/dist/plugins/ui-builder/index.d.mts +3 -3
- package/dist/plugins/ui-builder/index.d.ts +3 -3
- package/dist/shared/{stack.DYCFcnkL.d.mts → stack.6fUOjLs9.d.mts} +1 -1
- package/dist/shared/{stack.BoA0xkJv.d.mts → stack.7n9Y_u7N.d.cts} +33 -7
- package/dist/shared/{stack.BoA0xkJv.d.cts → stack.7n9Y_u7N.d.mts} +33 -7
- package/dist/shared/{stack.BoA0xkJv.d.ts → stack.7n9Y_u7N.d.ts} +33 -7
- package/dist/shared/{stack.BdJFrdyt.d.cts → stack.B-YHz18S.d.cts} +2 -2
- package/dist/shared/stack.BeSm90va.d.ts +289 -0
- package/dist/shared/{stack.kFbDspnF.d.ts → stack.C-Ptrz8s.d.ts} +1 -1
- package/dist/shared/{stack.BYysGdHl.d.cts → stack.C-WUPMT6.d.cts} +1 -1
- package/dist/shared/{stack.DzH_wcvr.d.cts → stack.CIrIsc-A.d.cts} +2 -2
- package/dist/shared/{stack.DzH_wcvr.d.mts → stack.CIrIsc-A.d.mts} +2 -2
- package/dist/shared/{stack.DzH_wcvr.d.ts → stack.CIrIsc-A.d.ts} +2 -2
- package/dist/shared/stack.CMh_EdxW.d.cts +289 -0
- package/dist/shared/{stack.BsXokfNh.d.cts → stack.CXjzTMsb.d.cts} +1 -1
- package/dist/shared/{stack.BsXokfNh.d.mts → stack.CXjzTMsb.d.mts} +1 -1
- package/dist/shared/{stack.BsXokfNh.d.ts → stack.CXjzTMsb.d.ts} +1 -1
- package/dist/shared/{stack.ChVuHi5e.d.mts → stack.D1DMlJp-.d.mts} +2 -2
- package/dist/shared/stack.Dg09R0oB.d.mts +289 -0
- package/dist/shared/{stack.EhM4pmtN.d.ts → stack.GygI_T3X.d.ts} +2 -2
- package/dist/shared/{stack.DKDMI-QO.d.mts → stack.QD1y_7NY.d.cts} +7 -1
- package/dist/shared/{stack.DKDMI-QO.d.ts → stack.QD1y_7NY.d.mts} +7 -1
- package/dist/shared/{stack.DKDMI-QO.d.cts → stack.QD1y_7NY.d.ts} +7 -1
- package/package.json +1 -1
- package/src/__tests__/stack-api.test.ts +118 -0
- package/src/api/index.ts +15 -1
- package/src/plugins/ai-chat/__tests__/getters.test.ts +109 -0
- package/src/plugins/ai-chat/api/getters.ts +71 -0
- package/src/plugins/ai-chat/api/index.ts +1 -0
- package/src/plugins/ai-chat/api/plugin.ts +8 -0
- package/src/plugins/api/index.ts +3 -1
- package/src/plugins/blog/__tests__/getters.test.ts +540 -0
- package/src/plugins/blog/api/getters.ts +243 -0
- package/src/plugins/blog/api/index.ts +7 -0
- package/src/plugins/blog/api/plugin.ts +13 -141
- package/src/plugins/blog/client/plugin.tsx +2 -1
- package/src/plugins/blog/query-keys.ts +16 -13
- package/src/plugins/cms/__tests__/getters.test.ts +206 -0
- package/src/plugins/cms/api/getters.ts +244 -0
- package/src/plugins/cms/api/index.ts +5 -0
- package/src/plugins/cms/api/plugin.ts +50 -154
- package/src/plugins/cms/client/components/pages/content-editor-page.internal.tsx +1 -1
- package/src/plugins/cms/client/hooks/cms-hooks.tsx +3 -0
- package/src/plugins/cms/types.ts +1 -1
- package/src/plugins/form-builder/__tests__/getters.test.ts +159 -0
- package/src/plugins/form-builder/api/getters.ts +203 -0
- package/src/plugins/form-builder/api/index.ts +1 -0
- package/src/plugins/form-builder/api/plugin.ts +22 -115
- package/src/plugins/form-builder/client/components/pages/submissions-page.internal.tsx +1 -1
- package/src/plugins/form-builder/types.ts +2 -2
- package/src/plugins/kanban/__tests__/getters.test.ts +172 -0
- package/src/plugins/kanban/api/getters.ts +149 -0
- package/src/plugins/kanban/api/index.ts +1 -0
- package/src/plugins/kanban/api/plugin.ts +16 -146
- package/src/plugins/kanban/client/plugin.tsx +2 -1
- package/src/plugins/kanban/query-keys.ts +8 -5
- package/src/types.ts +44 -5
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/DayPicker.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/DayPicker.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarDay.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarDay.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/DateLib.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/DateLib.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Button.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Button.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/CaptionLabel.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/CaptionLabel.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Chevron.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Chevron.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Day.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Day.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DayButton.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DayButton.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Dropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Dropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DropdownNav.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DropdownNav.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Footer.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Footer.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Month.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Month.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthCaption.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthCaption.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthGrid.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthGrid.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Months.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Months.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Nav.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Nav.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/NextMonthButton.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/NextMonthButton.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Option.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Option.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Root.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Root.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Select.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Select.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Week.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Week.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumber.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumber.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekday.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekday.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekdays.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekdays.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weeks.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weeks.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/YearsDropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/YearsDropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/custom-components.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/custom-components.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatCaption.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatCaption.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatDay.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatDay.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/index.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/index.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getComponents.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getComponents.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDates.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDates.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDays.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDays.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFormatters.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFormatters.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getLabels.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getLabels.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonths.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonths.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeeks.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeeks.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/index.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/index.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelDayButton.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelDayButton.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGrid.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGrid.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGridcell.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGridcell.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNav.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNav.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNext.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNext.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelPrevious.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelPrevious.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekday.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekday.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/locale/en-US.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/locale/en-US.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/noonDateLib.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/noonDateLib.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useMulti.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useMulti.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useRange.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useRange.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useSingle.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useSingle.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/useAnimation.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/useAnimation.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/useCalendar.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/useCalendar.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/useDayPicker.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/useDayPicker.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/useFocus.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/useFocus.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/useSelection.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/useSelection.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/addToRange.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/addToRange.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/toTimeZone.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/toTimeZone.mjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/typeguards.cjs +0 -0
- package/dist/node_modules/.pnpm/{react-day-picker@9.13.0_react@19.2.0 → react-day-picker@9.13.2_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/typeguards.mjs +0 -0
- package/dist/shared/{stack.CcI4sYJP.d.ts → stack.BkYlUT_8.d.cts} +6 -6
- package/dist/shared/{stack.CcI4sYJP.d.cts → stack.BkYlUT_8.d.mts} +6 -6
- package/dist/shared/{stack.CcI4sYJP.d.mts → stack.BkYlUT_8.d.ts} +6 -6
|
@@ -2,6 +2,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import React__default, { useMemo, useState, useRef, useCallback, useLayoutEffect } from 'react';
|
|
3
3
|
import isDeepEqual from '../../../../../../_virtual/index.mjs';
|
|
4
4
|
import { useLayerStore } from '../../../lib/ui-builder/store/layer-store.mjs';
|
|
5
|
+
import { isVariableReference } from '../types.mjs';
|
|
5
6
|
import { cn } from '../../../lib/utils.mjs';
|
|
6
7
|
import { hasLayerChildren, findAllParentLayersRecursive } from '../../../lib/ui-builder/store/layer-utils.mjs';
|
|
7
8
|
import { Plus } from 'lucide-react';
|
|
@@ -18,9 +19,7 @@ const LayersPanel = ({ className }) => {
|
|
|
18
19
|
selectedLayerId,
|
|
19
20
|
findLayerById,
|
|
20
21
|
updateLayer,
|
|
21
|
-
selectLayer
|
|
22
|
-
removeLayer,
|
|
23
|
-
duplicateLayer
|
|
22
|
+
selectLayer
|
|
24
23
|
} = useLayerStore();
|
|
25
24
|
const pageLayer = findLayerById(selectedPageId);
|
|
26
25
|
const layers = useMemo(() => [pageLayer], [pageLayer]);
|
|
@@ -35,9 +34,7 @@ const LayersPanel = ({ className }) => {
|
|
|
35
34
|
selectedPageId,
|
|
36
35
|
selectedLayerId,
|
|
37
36
|
updateLayer,
|
|
38
|
-
selectLayer
|
|
39
|
-
removeLayer,
|
|
40
|
-
duplicateLayer
|
|
37
|
+
selectLayer
|
|
41
38
|
}
|
|
42
39
|
);
|
|
43
40
|
};
|
|
@@ -48,9 +45,7 @@ const LayersTree = React__default.memo(
|
|
|
48
45
|
selectedPageId,
|
|
49
46
|
selectedLayerId,
|
|
50
47
|
updateLayer,
|
|
51
|
-
selectLayer
|
|
52
|
-
removeLayer,
|
|
53
|
-
duplicateLayer
|
|
48
|
+
selectLayer
|
|
54
49
|
}) => {
|
|
55
50
|
const [openIdsArray, setOpenIdsArray] = useState([]);
|
|
56
51
|
const prevSelectedLayerId = useRef(selectedLayerId);
|
|
@@ -135,10 +130,7 @@ const LayersTree = React__default.memo(
|
|
|
135
130
|
onToggle: handleNodeToggle,
|
|
136
131
|
level: stat.level,
|
|
137
132
|
selectedLayerId,
|
|
138
|
-
selectLayer
|
|
139
|
-
removeLayer,
|
|
140
|
-
duplicateLayer,
|
|
141
|
-
updateLayer
|
|
133
|
+
selectLayer
|
|
142
134
|
},
|
|
143
135
|
stableKey
|
|
144
136
|
);
|
|
@@ -147,9 +139,6 @@ const LayersTree = React__default.memo(
|
|
|
147
139
|
handleNodeToggle,
|
|
148
140
|
selectedLayerId,
|
|
149
141
|
selectLayer,
|
|
150
|
-
removeLayer,
|
|
151
|
-
duplicateLayer,
|
|
152
|
-
updateLayer,
|
|
153
142
|
layers
|
|
154
143
|
]
|
|
155
144
|
);
|
|
@@ -160,6 +149,8 @@ const LayersTree = React__default.memo(
|
|
|
160
149
|
processed.children = layer.children.map(processLayer);
|
|
161
150
|
} else if (typeof layer.children === "string") {
|
|
162
151
|
processed.children = [];
|
|
152
|
+
} else if (isVariableReference(layer.children)) {
|
|
153
|
+
processed.children = [];
|
|
163
154
|
} else if (!layer.children) {
|
|
164
155
|
processed.children = [];
|
|
165
156
|
}
|
|
@@ -37,12 +37,14 @@ function isLayerBeingDraggedOrDescendant(layerId, activeLayerId, pages) {
|
|
|
37
37
|
return false;
|
|
38
38
|
}
|
|
39
39
|
const RenderLayer = React.memo(
|
|
40
|
-
({ layer, componentRegistry, editorConfig, variables, variableValues }) => {
|
|
40
|
+
({ layer, componentRegistry, editorConfig, variables, variableValues, functionRegistry }) => {
|
|
41
41
|
const storeVariables = layerStore.useLayerStore((state) => state.variables);
|
|
42
42
|
const pages = layerStore.useLayerStore((state) => state.pages);
|
|
43
43
|
const isLayerAPage = layerStore.useLayerStore((state) => state.isLayerAPage(layer.id));
|
|
44
44
|
const registry = editorStore.useEditorStore((state) => state.registry);
|
|
45
|
+
const storeFunctionRegistry = editorStore.useEditorStore((state) => state.functionRegistry);
|
|
45
46
|
const dndContext = dndContexts.useDndContext();
|
|
47
|
+
const effectiveFunctionRegistry = functionRegistry ?? storeFunctionRegistry;
|
|
46
48
|
const effectiveVariables = variables || storeVariables;
|
|
47
49
|
const componentDefinition = componentRegistry[layer.type];
|
|
48
50
|
const prevLayer = React.useRef(layer);
|
|
@@ -54,8 +56,8 @@ const RenderLayer = React.memo(
|
|
|
54
56
|
layer
|
|
55
57
|
}), [layer, componentRegistry]);
|
|
56
58
|
const resolvedProps = React.useMemo(
|
|
57
|
-
() => variableResolver.resolveVariableReferences(layer.props, effectiveVariables, variableValues),
|
|
58
|
-
[layer.props, effectiveVariables, variableValues]
|
|
59
|
+
() => variableResolver.resolveVariableReferences(layer.props, effectiveVariables, variableValues, effectiveFunctionRegistry),
|
|
60
|
+
[layer.props, effectiveVariables, variableValues, effectiveFunctionRegistry]
|
|
59
61
|
);
|
|
60
62
|
const childEditorConfig = React.useMemo(() => {
|
|
61
63
|
return editorConfig ? { ...editorConfig, zIndex: editorConfig.zIndex + 1, parentUpdated: editorConfig.parentUpdated || !index(prevLayer.current, layer) } : void 0;
|
|
@@ -71,7 +73,12 @@ const RenderLayer = React.memo(
|
|
|
71
73
|
[editorConfig, dndContext.isDragging, canAcceptChildren, isBeingDragged]
|
|
72
74
|
);
|
|
73
75
|
const childProps = React.useMemo(() => {
|
|
74
|
-
const props = {
|
|
76
|
+
const props = {};
|
|
77
|
+
for (const [key, value] of Object.entries(resolvedProps)) {
|
|
78
|
+
if (!key.startsWith("__function_")) {
|
|
79
|
+
props[key] = value;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
75
82
|
if (showDropZones && layerUtils.hasLayerChildren(layer)) {
|
|
76
83
|
const existingClassName = props.className || "";
|
|
77
84
|
if (!hasPositionClass(existingClassName)) {
|
|
@@ -103,7 +110,8 @@ const RenderLayer = React.memo(
|
|
|
103
110
|
layer: child,
|
|
104
111
|
variables,
|
|
105
112
|
variableValues,
|
|
106
|
-
editorConfig: childEditorConfig
|
|
113
|
+
editorConfig: childEditorConfig,
|
|
114
|
+
functionRegistry
|
|
107
115
|
},
|
|
108
116
|
child.id
|
|
109
117
|
);
|
|
@@ -174,9 +182,7 @@ const RenderLayer = React.memo(
|
|
|
174
182
|
zIndex,
|
|
175
183
|
totalLayers,
|
|
176
184
|
selectedLayer,
|
|
177
|
-
onSelectElement
|
|
178
|
-
handleDuplicateLayer,
|
|
179
|
-
handleDeleteLayer
|
|
185
|
+
onSelectElement
|
|
180
186
|
} = editorConfig;
|
|
181
187
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
182
188
|
devProfiler.DevProfiler,
|
|
@@ -192,8 +198,6 @@ const RenderLayer = React.memo(
|
|
|
192
198
|
onSelectElement,
|
|
193
199
|
isPageLayer: isLayerAPage,
|
|
194
200
|
totalLayers,
|
|
195
|
-
onDuplicateLayer: handleDuplicateLayer,
|
|
196
|
-
onDeleteLayer: handleDeleteLayer,
|
|
197
201
|
children: DragFeedbackWrapper
|
|
198
202
|
},
|
|
199
203
|
layer.id
|
|
@@ -213,7 +217,8 @@ const RenderLayer = React.memo(
|
|
|
213
217
|
const layerEqual = index(prevProps.layer, nextProps.layer);
|
|
214
218
|
const variablesEqual = index(prevProps.variables, nextProps.variables);
|
|
215
219
|
const variableValuesEqual = index(prevProps.variableValues, nextProps.variableValues);
|
|
216
|
-
|
|
220
|
+
const functionRegistryEqual = prevProps.functionRegistry === nextProps.functionRegistry;
|
|
221
|
+
return editorConfigEqual && layerEqual && variablesEqual && variableValuesEqual && functionRegistryEqual;
|
|
217
222
|
}
|
|
218
223
|
);
|
|
219
224
|
RenderLayer.displayName = "RenderLayer";
|
|
@@ -35,12 +35,14 @@ function isLayerBeingDraggedOrDescendant(layerId, activeLayerId, pages) {
|
|
|
35
35
|
return false;
|
|
36
36
|
}
|
|
37
37
|
const RenderLayer = memo(
|
|
38
|
-
({ layer, componentRegistry, editorConfig, variables, variableValues }) => {
|
|
38
|
+
({ layer, componentRegistry, editorConfig, variables, variableValues, functionRegistry }) => {
|
|
39
39
|
const storeVariables = useLayerStore((state) => state.variables);
|
|
40
40
|
const pages = useLayerStore((state) => state.pages);
|
|
41
41
|
const isLayerAPage = useLayerStore((state) => state.isLayerAPage(layer.id));
|
|
42
42
|
const registry = useEditorStore((state) => state.registry);
|
|
43
|
+
const storeFunctionRegistry = useEditorStore((state) => state.functionRegistry);
|
|
43
44
|
const dndContext = useDndContext();
|
|
45
|
+
const effectiveFunctionRegistry = functionRegistry ?? storeFunctionRegistry;
|
|
44
46
|
const effectiveVariables = variables || storeVariables;
|
|
45
47
|
const componentDefinition = componentRegistry[layer.type];
|
|
46
48
|
const prevLayer = useRef(layer);
|
|
@@ -52,8 +54,8 @@ const RenderLayer = memo(
|
|
|
52
54
|
layer
|
|
53
55
|
}), [layer, componentRegistry]);
|
|
54
56
|
const resolvedProps = useMemo(
|
|
55
|
-
() => resolveVariableReferences(layer.props, effectiveVariables, variableValues),
|
|
56
|
-
[layer.props, effectiveVariables, variableValues]
|
|
57
|
+
() => resolveVariableReferences(layer.props, effectiveVariables, variableValues, effectiveFunctionRegistry),
|
|
58
|
+
[layer.props, effectiveVariables, variableValues, effectiveFunctionRegistry]
|
|
57
59
|
);
|
|
58
60
|
const childEditorConfig = useMemo(() => {
|
|
59
61
|
return editorConfig ? { ...editorConfig, zIndex: editorConfig.zIndex + 1, parentUpdated: editorConfig.parentUpdated || !isDeepEqual(prevLayer.current, layer) } : void 0;
|
|
@@ -69,7 +71,12 @@ const RenderLayer = memo(
|
|
|
69
71
|
[editorConfig, dndContext.isDragging, canAcceptChildren, isBeingDragged]
|
|
70
72
|
);
|
|
71
73
|
const childProps = useMemo(() => {
|
|
72
|
-
const props = {
|
|
74
|
+
const props = {};
|
|
75
|
+
for (const [key, value] of Object.entries(resolvedProps)) {
|
|
76
|
+
if (!key.startsWith("__function_")) {
|
|
77
|
+
props[key] = value;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
73
80
|
if (showDropZones && hasLayerChildren(layer)) {
|
|
74
81
|
const existingClassName = props.className || "";
|
|
75
82
|
if (!hasPositionClass(existingClassName)) {
|
|
@@ -101,7 +108,8 @@ const RenderLayer = memo(
|
|
|
101
108
|
layer: child,
|
|
102
109
|
variables,
|
|
103
110
|
variableValues,
|
|
104
|
-
editorConfig: childEditorConfig
|
|
111
|
+
editorConfig: childEditorConfig,
|
|
112
|
+
functionRegistry
|
|
105
113
|
},
|
|
106
114
|
child.id
|
|
107
115
|
);
|
|
@@ -172,9 +180,7 @@ const RenderLayer = memo(
|
|
|
172
180
|
zIndex,
|
|
173
181
|
totalLayers,
|
|
174
182
|
selectedLayer,
|
|
175
|
-
onSelectElement
|
|
176
|
-
handleDuplicateLayer,
|
|
177
|
-
handleDeleteLayer
|
|
183
|
+
onSelectElement
|
|
178
184
|
} = editorConfig;
|
|
179
185
|
return /* @__PURE__ */ jsx(
|
|
180
186
|
DevProfiler,
|
|
@@ -190,8 +196,6 @@ const RenderLayer = memo(
|
|
|
190
196
|
onSelectElement,
|
|
191
197
|
isPageLayer: isLayerAPage,
|
|
192
198
|
totalLayers,
|
|
193
|
-
onDuplicateLayer: handleDuplicateLayer,
|
|
194
|
-
onDeleteLayer: handleDeleteLayer,
|
|
195
199
|
children: DragFeedbackWrapper
|
|
196
200
|
},
|
|
197
201
|
layer.id
|
|
@@ -211,7 +215,8 @@ const RenderLayer = memo(
|
|
|
211
215
|
const layerEqual = isDeepEqual(prevProps.layer, nextProps.layer);
|
|
212
216
|
const variablesEqual = isDeepEqual(prevProps.variables, nextProps.variables);
|
|
213
217
|
const variableValuesEqual = isDeepEqual(prevProps.variableValues, nextProps.variableValues);
|
|
214
|
-
|
|
218
|
+
const functionRegistryEqual = prevProps.functionRegistry === nextProps.functionRegistry;
|
|
219
|
+
return editorConfigEqual && layerEqual && variablesEqual && variableValuesEqual && functionRegistryEqual;
|
|
215
220
|
}
|
|
216
221
|
);
|
|
217
222
|
RenderLayer.displayName = "RenderLayer";
|
|
@@ -9,6 +9,101 @@ const renderTemplate = (template, data) => {
|
|
|
9
9
|
return data[key] ?? "";
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
+
const zodSchemaToTypeString = (schema) => {
|
|
13
|
+
const zodSchema = schema;
|
|
14
|
+
const def = zodSchema?._zod?.def ?? zodSchema?._def;
|
|
15
|
+
if (!def) {
|
|
16
|
+
return "(...args: unknown[]) => unknown";
|
|
17
|
+
}
|
|
18
|
+
const typeName = def.type ?? def.typeName;
|
|
19
|
+
if (typeName === "tuple" || typeName === "ZodTuple") {
|
|
20
|
+
const items = def.items ?? def.rest?.items ?? [];
|
|
21
|
+
if (!items || items.length === 0) {
|
|
22
|
+
return "() => void";
|
|
23
|
+
}
|
|
24
|
+
const paramTypes = items.map((item, index) => {
|
|
25
|
+
const { type: paramType, isOptional } = zodSchemaToParamType(item);
|
|
26
|
+
const optionalMark = isOptional ? "?" : "";
|
|
27
|
+
return `arg${index}${optionalMark}: ${paramType}`;
|
|
28
|
+
}).join(", ");
|
|
29
|
+
return `(${paramTypes}) => void`;
|
|
30
|
+
}
|
|
31
|
+
if (typeName === "object" || typeName === "ZodObject") {
|
|
32
|
+
return "(params: Record<string, unknown>) => void";
|
|
33
|
+
}
|
|
34
|
+
if (typeName === "function" || typeName === "ZodFunction") {
|
|
35
|
+
return "(...args: unknown[]) => unknown";
|
|
36
|
+
}
|
|
37
|
+
return "(...args: unknown[]) => unknown";
|
|
38
|
+
};
|
|
39
|
+
const zodSchemaToParamType = (schema) => {
|
|
40
|
+
const zodSchema = schema;
|
|
41
|
+
const def = zodSchema?._zod?.def ?? zodSchema?._def;
|
|
42
|
+
if (!def) {
|
|
43
|
+
return { type: "unknown", isOptional: false };
|
|
44
|
+
}
|
|
45
|
+
const typeName = def.type ?? def.typeName;
|
|
46
|
+
if (typeName === "optional" || typeName === "ZodOptional") {
|
|
47
|
+
const innerType = def.innerType ?? def.wrapped;
|
|
48
|
+
return { type: zodSchemaToSingleType(innerType), isOptional: true };
|
|
49
|
+
}
|
|
50
|
+
return { type: zodSchemaToSingleType(schema), isOptional: false };
|
|
51
|
+
};
|
|
52
|
+
const zodSchemaToSingleType = (schema) => {
|
|
53
|
+
const zodSchema = schema;
|
|
54
|
+
const def = zodSchema?._zod?.def ?? zodSchema?._def;
|
|
55
|
+
if (!def) {
|
|
56
|
+
return "unknown";
|
|
57
|
+
}
|
|
58
|
+
const typeName = def.type ?? def.typeName;
|
|
59
|
+
switch (typeName) {
|
|
60
|
+
case "string":
|
|
61
|
+
case "ZodString":
|
|
62
|
+
return "string";
|
|
63
|
+
case "number":
|
|
64
|
+
case "ZodNumber":
|
|
65
|
+
return "number";
|
|
66
|
+
case "boolean":
|
|
67
|
+
case "ZodBoolean":
|
|
68
|
+
return "boolean";
|
|
69
|
+
case "void":
|
|
70
|
+
case "ZodVoid":
|
|
71
|
+
return "void";
|
|
72
|
+
case "undefined":
|
|
73
|
+
case "ZodUndefined":
|
|
74
|
+
return "undefined";
|
|
75
|
+
case "null":
|
|
76
|
+
case "ZodNull":
|
|
77
|
+
return "null";
|
|
78
|
+
case "any":
|
|
79
|
+
case "ZodAny":
|
|
80
|
+
return "unknown";
|
|
81
|
+
case "unknown":
|
|
82
|
+
case "ZodUnknown":
|
|
83
|
+
return "unknown";
|
|
84
|
+
case "custom":
|
|
85
|
+
case "ZodType":
|
|
86
|
+
return "unknown";
|
|
87
|
+
case "object":
|
|
88
|
+
case "ZodObject":
|
|
89
|
+
return "Record<string, unknown>";
|
|
90
|
+
case "array":
|
|
91
|
+
case "ZodArray":
|
|
92
|
+
return "unknown[]";
|
|
93
|
+
case "optional":
|
|
94
|
+
case "ZodOptional": {
|
|
95
|
+
const innerOptional = def.innerType ?? def.wrapped;
|
|
96
|
+
return `${zodSchemaToSingleType(innerOptional)} | undefined`;
|
|
97
|
+
}
|
|
98
|
+
case "nullable":
|
|
99
|
+
case "ZodNullable": {
|
|
100
|
+
const innerNullable = def.innerType ?? def.wrapped;
|
|
101
|
+
return `${zodSchemaToSingleType(innerNullable)} | null`;
|
|
102
|
+
}
|
|
103
|
+
default:
|
|
104
|
+
return "unknown";
|
|
105
|
+
}
|
|
106
|
+
};
|
|
12
107
|
const toValidIdentifier = (input) => {
|
|
13
108
|
let identifier = input.trim();
|
|
14
109
|
if (/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(identifier)) {
|
|
@@ -44,11 +139,74 @@ const generateVariableIdentifiers = (variables) => {
|
|
|
44
139
|
});
|
|
45
140
|
return identifierMap;
|
|
46
141
|
};
|
|
47
|
-
const
|
|
142
|
+
const generateFunctionIdentifiers = (functionIds, reservedIdentifiers) => {
|
|
143
|
+
const identifierMap = /* @__PURE__ */ new Map();
|
|
144
|
+
const usedIdentifiers = new Set(reservedIdentifiers);
|
|
145
|
+
functionIds.forEach((funcId) => {
|
|
146
|
+
const baseIdentifier = toValidIdentifier(funcId);
|
|
147
|
+
let identifier = baseIdentifier;
|
|
148
|
+
let counter = 1;
|
|
149
|
+
while (usedIdentifiers.has(identifier)) {
|
|
150
|
+
identifier = `${baseIdentifier}${counter}`;
|
|
151
|
+
counter++;
|
|
152
|
+
}
|
|
153
|
+
usedIdentifiers.add(identifier);
|
|
154
|
+
identifierMap.set(funcId, identifier);
|
|
155
|
+
});
|
|
156
|
+
return identifierMap;
|
|
157
|
+
};
|
|
158
|
+
const collectFunctionMetadataIds = (layer) => {
|
|
159
|
+
const functionIds = /* @__PURE__ */ new Set();
|
|
160
|
+
for (const [key, value] of Object.entries(layer.props)) {
|
|
161
|
+
if (key.startsWith("__function_") && typeof value === "string") {
|
|
162
|
+
functionIds.add(value);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
if (layerUtils.hasLayerChildren(layer)) {
|
|
166
|
+
layer.children.forEach((child) => {
|
|
167
|
+
const childIds = collectFunctionMetadataIds(child);
|
|
168
|
+
childIds.forEach((id) => functionIds.add(id));
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
return functionIds;
|
|
172
|
+
};
|
|
173
|
+
const pageLayerToCode = (page, componentRegistry, variables = [], functionRegistry) => {
|
|
48
174
|
const layers = page.children;
|
|
49
175
|
const { mode, colorTheme, borderRadius, ...restOfProps } = page.props;
|
|
50
176
|
const variableIdentifiers = generateVariableIdentifiers(variables);
|
|
51
|
-
const
|
|
177
|
+
const functionMetadataIds = /* @__PURE__ */ new Set();
|
|
178
|
+
for (const [key, value] of Object.entries(restOfProps)) {
|
|
179
|
+
if (key.startsWith("__function_") && typeof value === "string") {
|
|
180
|
+
functionMetadataIds.add(value);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
if (Array.isArray(layers)) {
|
|
184
|
+
layers.forEach((layer) => {
|
|
185
|
+
const layerFuncIds = collectFunctionMetadataIds(layer);
|
|
186
|
+
layerFuncIds.forEach((id) => functionMetadataIds.add(id));
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
const functionVarReservedIds = /* @__PURE__ */ new Set();
|
|
190
|
+
for (const variable of variables) {
|
|
191
|
+
if (variable.type === "function") {
|
|
192
|
+
const identifier = variableIdentifiers.get(variable.id);
|
|
193
|
+
if (identifier) {
|
|
194
|
+
functionVarReservedIds.add(identifier);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
const functionIdentifiers = generateFunctionIdentifiers(functionMetadataIds, functionVarReservedIds);
|
|
199
|
+
for (const variable of variables) {
|
|
200
|
+
if (variable.type === "function" && typeof variable.defaultValue === "string") {
|
|
201
|
+
if (functionMetadataIds.has(variable.defaultValue)) {
|
|
202
|
+
const varIdentifier = variableIdentifiers.get(variable.id);
|
|
203
|
+
if (varIdentifier) {
|
|
204
|
+
functionIdentifiers.set(variable.defaultValue, varIdentifier);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
const pageProps = generatePropsString(restOfProps, variables, variableIdentifiers, functionIdentifiers);
|
|
52
210
|
const imports = /* @__PURE__ */ new Set();
|
|
53
211
|
const collectImports = (layer) => {
|
|
54
212
|
const componentDefinition = componentRegistry[layer.type];
|
|
@@ -64,13 +222,30 @@ const pageLayerToCode = (page, componentRegistry, variables = []) => {
|
|
|
64
222
|
let code = "";
|
|
65
223
|
if (Array.isArray(layers)) {
|
|
66
224
|
layers.forEach(collectImports);
|
|
67
|
-
code = layers.map((layer) => generateLayerCode(layer, 1, variables, variableIdentifiers)).join("\n");
|
|
225
|
+
code = layers.map((layer) => generateLayerCode(layer, 1, variables, variableIdentifiers, functionIdentifiers)).join("\n");
|
|
68
226
|
} else {
|
|
69
227
|
code = `{"${layers}"}`;
|
|
70
228
|
}
|
|
71
229
|
const importsString = Array.from(imports).join("\n");
|
|
72
|
-
const variablePropsInterface = generateVariablePropsInterface(
|
|
73
|
-
|
|
230
|
+
const variablePropsInterface = generateVariablePropsInterface(
|
|
231
|
+
variables,
|
|
232
|
+
variableIdentifiers,
|
|
233
|
+
functionMetadataIds,
|
|
234
|
+
functionRegistry,
|
|
235
|
+
functionIdentifiers
|
|
236
|
+
);
|
|
237
|
+
const hasRegularVariables = variables.some((v) => v.type !== "function");
|
|
238
|
+
const hasFunctionVariables = variables.some((v) => v.type === "function");
|
|
239
|
+
const hasFunctionMetadata = functionMetadataIds.size > 0;
|
|
240
|
+
const hasFunctions = hasFunctionVariables || hasFunctionMetadata;
|
|
241
|
+
let variablePropsParam = "";
|
|
242
|
+
if (hasRegularVariables && hasFunctions) {
|
|
243
|
+
variablePropsParam = "{ variables, functions }: PageProps";
|
|
244
|
+
} else if (hasRegularVariables) {
|
|
245
|
+
variablePropsParam = "{ variables }: PageProps";
|
|
246
|
+
} else if (hasFunctions) {
|
|
247
|
+
variablePropsParam = "{ functions }: PageProps";
|
|
248
|
+
}
|
|
74
249
|
const finalCode = renderTemplate(reactComponentTemplate, {
|
|
75
250
|
imports: importsString,
|
|
76
251
|
variablePropsInterface,
|
|
@@ -80,14 +255,14 @@ const pageLayerToCode = (page, componentRegistry, variables = []) => {
|
|
|
80
255
|
});
|
|
81
256
|
return finalCode;
|
|
82
257
|
};
|
|
83
|
-
const generateLayerCode = (layer, indent = 0, variables = [], variableIdentifiers) => {
|
|
258
|
+
const generateLayerCode = (layer, indent = 0, variables = [], variableIdentifiers, functionIdentifiers) => {
|
|
84
259
|
if (!variableIdentifiers && variables.length > 0) {
|
|
85
260
|
variableIdentifiers = generateVariableIdentifiers(variables);
|
|
86
261
|
}
|
|
87
262
|
const indentation = " ".repeat(indent);
|
|
88
263
|
let childrenCode = "";
|
|
89
264
|
if (layerUtils.hasLayerChildren(layer) && layer.children.length > 0) {
|
|
90
|
-
childrenCode = layer.children.map((child) => generateLayerCode(child, indent + 1, variables, variableIdentifiers)).join("\n");
|
|
265
|
+
childrenCode = layer.children.map((child) => generateLayerCode(child, indent + 1, variables, variableIdentifiers, functionIdentifiers)).join("\n");
|
|
91
266
|
} else if (typeof layer.children === "string") {
|
|
92
267
|
childrenCode = `${indentation}${" "}{${JSON.stringify(layer.children)}}`;
|
|
93
268
|
}
|
|
@@ -95,24 +270,36 @@ const generateLayerCode = (layer, indent = 0, variables = [], variableIdentifier
|
|
|
95
270
|
return `${indentation}<${layer.type}${generatePropsString(
|
|
96
271
|
layer.props,
|
|
97
272
|
variables,
|
|
98
|
-
variableIdentifiers
|
|
273
|
+
variableIdentifiers,
|
|
274
|
+
functionIdentifiers
|
|
99
275
|
)}>
|
|
100
276
|
${childrenCode}
|
|
101
277
|
${indentation}</${layer.type}>`;
|
|
102
278
|
} else {
|
|
103
|
-
return `${indentation}<${layer.type}${generatePropsString(layer.props, variables, variableIdentifiers)} />`;
|
|
279
|
+
return `${indentation}<${layer.type}${generatePropsString(layer.props, variables, variableIdentifiers, functionIdentifiers)} />`;
|
|
104
280
|
}
|
|
105
281
|
};
|
|
106
|
-
const generatePropsString = (props, variables = [], variableIdentifiers) => {
|
|
282
|
+
const generatePropsString = (props, variables = [], variableIdentifiers, functionIdentifiers) => {
|
|
107
283
|
if (!variableIdentifiers && variables.length > 0) {
|
|
108
284
|
variableIdentifiers = generateVariableIdentifiers(variables);
|
|
109
285
|
}
|
|
110
|
-
const
|
|
286
|
+
const functionMetadata = /* @__PURE__ */ new Map();
|
|
287
|
+
for (const [key, value] of Object.entries(props)) {
|
|
288
|
+
if (key.startsWith("__function_") && typeof value === "string") {
|
|
289
|
+
const propName = key.replace("__function_", "");
|
|
290
|
+
functionMetadata.set(propName, value);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
const propsArray = Object.entries(props).filter(([key, _]) => !key.startsWith("__function_")).filter(([key, _]) => !functionMetadata.has(key)).filter(([_, value]) => value !== void 0).map(([key, value]) => {
|
|
111
294
|
let propValue;
|
|
112
295
|
if (types.isVariableReference(value)) {
|
|
113
296
|
const variable = variables.find((v) => v.id === value.__variableRef);
|
|
114
297
|
if (variable && variableIdentifiers) {
|
|
115
|
-
|
|
298
|
+
if (variable.type === "function") {
|
|
299
|
+
propValue = `{functions.${variableIdentifiers.get(variable.id)}}`;
|
|
300
|
+
} else {
|
|
301
|
+
propValue = `{variables.${variableIdentifiers.get(variable.id)}}`;
|
|
302
|
+
}
|
|
116
303
|
} else {
|
|
117
304
|
propValue = `{undefined}`;
|
|
118
305
|
}
|
|
@@ -125,15 +312,22 @@ const generatePropsString = (props, variables = [], variableIdentifiers) => {
|
|
|
125
312
|
}
|
|
126
313
|
return `${key}=${propValue}`;
|
|
127
314
|
});
|
|
315
|
+
functionMetadata.forEach((funcId, propName) => {
|
|
316
|
+
const sanitizedId = functionIdentifiers?.get(funcId) ?? toValidIdentifier(funcId);
|
|
317
|
+
propsArray.push(`${propName}={functions.${sanitizedId}}`);
|
|
318
|
+
});
|
|
128
319
|
return propsArray.length > 0 ? ` ${propsArray.join(" ")}` : "";
|
|
129
320
|
};
|
|
130
|
-
const generateVariablePropsInterface = (variables, variableIdentifiers) => {
|
|
131
|
-
|
|
321
|
+
const generateVariablePropsInterface = (variables, variableIdentifiers, functionMetadataIds, functionRegistry, functionIdentifiers) => {
|
|
322
|
+
const hasFunctionMetadata = functionMetadataIds && functionMetadataIds.size > 0;
|
|
323
|
+
if (variables.length === 0 && !hasFunctionMetadata) return "";
|
|
132
324
|
if (!variableIdentifiers) {
|
|
133
325
|
variableIdentifiers = generateVariableIdentifiers(variables);
|
|
134
326
|
}
|
|
135
|
-
const
|
|
136
|
-
|
|
327
|
+
const regularVariables = variables.filter((v) => v.type !== "function");
|
|
328
|
+
const functionVariables = variables.filter((v) => v.type === "function");
|
|
329
|
+
const variableTypes = regularVariables.map((variable) => {
|
|
330
|
+
let tsType = "unknown";
|
|
137
331
|
switch (variable.type) {
|
|
138
332
|
case "string":
|
|
139
333
|
tsType = "string";
|
|
@@ -147,13 +341,59 @@ const generateVariablePropsInterface = (variables, variableIdentifiers) => {
|
|
|
147
341
|
}
|
|
148
342
|
return ` ${variableIdentifiers.get(variable.id)}: ${tsType};`;
|
|
149
343
|
}).join("\n");
|
|
150
|
-
|
|
151
|
-
|
|
344
|
+
const functionVariableTypes = functionVariables.map((variable) => {
|
|
345
|
+
const funcId = variable.defaultValue;
|
|
346
|
+
const funcDef = typeof funcId === "string" ? functionRegistry?.[funcId] : void 0;
|
|
347
|
+
if (funcDef?.typeSignature) {
|
|
348
|
+
return ` ${variableIdentifiers.get(variable.id)}: ${funcDef.typeSignature};`;
|
|
349
|
+
}
|
|
350
|
+
if (funcDef?.schema) {
|
|
351
|
+
const typeString = zodSchemaToTypeString(funcDef.schema);
|
|
352
|
+
return ` ${variableIdentifiers.get(variable.id)}: ${typeString};`;
|
|
353
|
+
}
|
|
354
|
+
return ` ${variableIdentifiers.get(variable.id)}: (...args: unknown[]) => unknown;`;
|
|
355
|
+
});
|
|
356
|
+
const emittedFunctionIdentifiers = /* @__PURE__ */ new Set();
|
|
357
|
+
for (const variable of functionVariables) {
|
|
358
|
+
const identifier = variableIdentifiers.get(variable.id);
|
|
359
|
+
if (identifier) {
|
|
360
|
+
emittedFunctionIdentifiers.add(identifier);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
const functionMetadataTypes = hasFunctionMetadata ? Array.from(functionMetadataIds).filter((funcId) => {
|
|
364
|
+
const sanitizedId = functionIdentifiers?.get(funcId) ?? toValidIdentifier(funcId);
|
|
365
|
+
return !emittedFunctionIdentifiers.has(sanitizedId);
|
|
366
|
+
}).map((funcId) => {
|
|
367
|
+
const funcDef = functionRegistry?.[funcId];
|
|
368
|
+
const sanitizedId = functionIdentifiers?.get(funcId) ?? toValidIdentifier(funcId);
|
|
369
|
+
if (funcDef?.typeSignature) {
|
|
370
|
+
return ` ${sanitizedId}: ${funcDef.typeSignature};`;
|
|
371
|
+
}
|
|
372
|
+
if (funcDef?.schema) {
|
|
373
|
+
const typeString = zodSchemaToTypeString(funcDef.schema);
|
|
374
|
+
return ` ${sanitizedId}: ${typeString};`;
|
|
375
|
+
}
|
|
376
|
+
return ` ${sanitizedId}: (...args: unknown[]) => unknown;`;
|
|
377
|
+
}) : [];
|
|
378
|
+
const allFunctionTypes = [...functionVariableTypes, ...functionMetadataTypes].join("\n");
|
|
379
|
+
const hasVariables = regularVariables.length > 0;
|
|
380
|
+
const hasFunctions = functionVariables.length > 0 || hasFunctionMetadata;
|
|
381
|
+
if (!hasVariables && !hasFunctions) return "";
|
|
382
|
+
let interfaceContent = "interface PageProps {\n";
|
|
383
|
+
if (hasVariables) {
|
|
384
|
+
interfaceContent += ` variables: {
|
|
152
385
|
${variableTypes}
|
|
153
386
|
};
|
|
154
|
-
}
|
|
155
|
-
|
|
156
387
|
`;
|
|
388
|
+
}
|
|
389
|
+
if (hasFunctions) {
|
|
390
|
+
interfaceContent += ` functions: {
|
|
391
|
+
${allFunctionTypes}
|
|
392
|
+
};
|
|
393
|
+
`;
|
|
394
|
+
}
|
|
395
|
+
interfaceContent += "}\n\n";
|
|
396
|
+
return interfaceContent;
|
|
157
397
|
};
|
|
158
398
|
const reactComponentTemplate = `import React from "react";
|
|
159
399
|
<%~ it.imports %>
|