@nodehive/nextjs 0.1.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/LICENSE +21 -0
- package/README.md +102 -0
- package/dist/auth/index.d.ts +6 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +7 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/internal/config.d.ts +24 -0
- package/dist/auth/internal/config.d.ts.map +1 -0
- package/dist/auth/internal/config.js +2 -0
- package/dist/auth/internal/config.js.map +1 -0
- package/dist/auth/internal/draft-mode.d.ts +17 -0
- package/dist/auth/internal/draft-mode.d.ts.map +1 -0
- package/dist/auth/internal/draft-mode.js +73 -0
- package/dist/auth/internal/draft-mode.js.map +1 -0
- package/dist/auth/internal/editor-locale.d.ts +4 -0
- package/dist/auth/internal/editor-locale.d.ts.map +1 -0
- package/dist/auth/internal/editor-locale.js +14 -0
- package/dist/auth/internal/editor-locale.js.map +1 -0
- package/dist/auth/internal/handoff.d.ts +11 -0
- package/dist/auth/internal/handoff.d.ts.map +1 -0
- package/dist/auth/internal/handoff.js +44 -0
- package/dist/auth/internal/handoff.js.map +1 -0
- package/dist/auth/internal/has-session.d.ts +7 -0
- package/dist/auth/internal/has-session.d.ts.map +1 -0
- package/dist/auth/internal/has-session.js +11 -0
- package/dist/auth/internal/has-session.js.map +1 -0
- package/dist/auth/internal/logout.d.ts +12 -0
- package/dist/auth/internal/logout.d.ts.map +1 -0
- package/dist/auth/internal/logout.js +48 -0
- package/dist/auth/internal/logout.js.map +1 -0
- package/dist/auth/internal/next-cookie-storage.d.ts +28 -0
- package/dist/auth/internal/next-cookie-storage.d.ts.map +1 -0
- package/dist/auth/internal/next-cookie-storage.js +103 -0
- package/dist/auth/internal/next-cookie-storage.js.map +1 -0
- package/dist/auth/internal/nodehive-client.d.ts +6 -0
- package/dist/auth/internal/nodehive-client.d.ts.map +1 -0
- package/dist/auth/internal/nodehive-client.js +64 -0
- package/dist/auth/internal/nodehive-client.js.map +1 -0
- package/dist/auth/internal/oauth-config.d.ts +37 -0
- package/dist/auth/internal/oauth-config.d.ts.map +1 -0
- package/dist/auth/internal/oauth-config.js +70 -0
- package/dist/auth/internal/oauth-config.js.map +1 -0
- package/dist/auth/internal/proxy-helpers.d.ts +15 -0
- package/dist/auth/internal/proxy-helpers.d.ts.map +1 -0
- package/dist/auth/internal/proxy-helpers.js +43 -0
- package/dist/auth/internal/proxy-helpers.js.map +1 -0
- package/dist/auth/internal/refresh.d.ts +13 -0
- package/dist/auth/internal/refresh.d.ts.map +1 -0
- package/dist/auth/internal/refresh.js +170 -0
- package/dist/auth/internal/refresh.js.map +1 -0
- package/dist/auth/internal/require-auth.d.ts +2 -0
- package/dist/auth/internal/require-auth.d.ts.map +1 -0
- package/dist/auth/internal/require-auth.js +11 -0
- package/dist/auth/internal/require-auth.js.map +1 -0
- package/dist/auth/internal/return-to.d.ts +16 -0
- package/dist/auth/internal/return-to.d.ts.map +1 -0
- package/dist/auth/internal/return-to.js +31 -0
- package/dist/auth/internal/return-to.js.map +1 -0
- package/dist/auth/internal/routes/callback.d.ts +11 -0
- package/dist/auth/internal/routes/callback.d.ts.map +1 -0
- package/dist/auth/internal/routes/callback.js +93 -0
- package/dist/auth/internal/routes/callback.js.map +1 -0
- package/dist/auth/internal/routes/chips-exchange.d.ts +4 -0
- package/dist/auth/internal/routes/chips-exchange.d.ts.map +1 -0
- package/dist/auth/internal/routes/chips-exchange.js +64 -0
- package/dist/auth/internal/routes/chips-exchange.js.map +1 -0
- package/dist/auth/internal/routes/draft.d.ts +4 -0
- package/dist/auth/internal/routes/draft.d.ts.map +1 -0
- package/dist/auth/internal/routes/draft.js +34 -0
- package/dist/auth/internal/routes/draft.js.map +1 -0
- package/dist/auth/internal/routes/index.d.ts +25 -0
- package/dist/auth/internal/routes/index.d.ts.map +1 -0
- package/dist/auth/internal/routes/index.js +66 -0
- package/dist/auth/internal/routes/index.js.map +1 -0
- package/dist/auth/internal/routes/login.d.ts +3 -0
- package/dist/auth/internal/routes/login.d.ts.map +1 -0
- package/dist/auth/internal/routes/login.js +47 -0
- package/dist/auth/internal/routes/login.js.map +1 -0
- package/dist/auth/internal/routes/popup-done.d.ts +3 -0
- package/dist/auth/internal/routes/popup-done.d.ts.map +1 -0
- package/dist/auth/internal/routes/popup-done.js +24 -0
- package/dist/auth/internal/routes/popup-done.js.map +1 -0
- package/dist/auth/internal/routes/refresh.d.ts +6 -0
- package/dist/auth/internal/routes/refresh.d.ts.map +1 -0
- package/dist/auth/internal/routes/refresh.js +44 -0
- package/dist/auth/internal/routes/refresh.js.map +1 -0
- package/dist/auth/internal/same-origin.d.ts +8 -0
- package/dist/auth/internal/same-origin.d.ts.map +1 -0
- package/dist/auth/internal/same-origin.js +9 -0
- package/dist/auth/internal/same-origin.js.map +1 -0
- package/dist/auth/internal/session-gates.d.ts +7 -0
- package/dist/auth/internal/session-gates.d.ts.map +1 -0
- package/dist/auth/internal/session-gates.js +12 -0
- package/dist/auth/internal/session-gates.js.map +1 -0
- package/dist/auth/internal/update-session.d.ts +17 -0
- package/dist/auth/internal/update-session.d.ts.map +1 -0
- package/dist/auth/internal/update-session.js +39 -0
- package/dist/auth/internal/update-session.js.map +1 -0
- package/dist/auth/internal/use-editor-login.d.ts +33 -0
- package/dist/auth/internal/use-editor-login.d.ts.map +1 -0
- package/dist/auth/internal/use-editor-login.js +143 -0
- package/dist/auth/internal/use-editor-login.js.map +1 -0
- package/dist/auth/proxy.d.ts +8 -0
- package/dist/auth/proxy.d.ts.map +1 -0
- package/dist/auth/proxy.js +8 -0
- package/dist/auth/proxy.js.map +1 -0
- package/dist/auth/react.d.ts +2 -0
- package/dist/auth/react.d.ts.map +1 -0
- package/dist/auth/react.js +3 -0
- package/dist/auth/react.js.map +1 -0
- package/dist/auth/routes.d.ts +3 -0
- package/dist/auth/routes.d.ts.map +1 -0
- package/dist/auth/routes.js +3 -0
- package/dist/auth/routes.js.map +1 -0
- package/dist/auth/server.d.ts +23 -0
- package/dist/auth/server.d.ts.map +1 -0
- package/dist/auth/server.js +61 -0
- package/dist/auth/server.js.map +1 -0
- package/dist/puck-editor/fields.d.ts +7 -0
- package/dist/puck-editor/fields.d.ts.map +1 -0
- package/dist/puck-editor/fields.js +4 -0
- package/dist/puck-editor/fields.js.map +1 -0
- package/dist/puck-editor/index.d.ts +14 -0
- package/dist/puck-editor/index.d.ts.map +1 -0
- package/dist/puck-editor/index.js +12 -0
- package/dist/puck-editor/index.js.map +1 -0
- package/dist/puck-editor/internal/api/client.d.ts +32 -0
- package/dist/puck-editor/internal/api/client.d.ts.map +1 -0
- package/dist/puck-editor/internal/api/client.js +128 -0
- package/dist/puck-editor/internal/api/client.js.map +1 -0
- package/dist/puck-editor/internal/api/config.d.ts +29 -0
- package/dist/puck-editor/internal/api/config.d.ts.map +1 -0
- package/dist/puck-editor/internal/api/config.js +2 -0
- package/dist/puck-editor/internal/api/config.js.map +1 -0
- package/dist/puck-editor/internal/api/create-puck-api.d.ts +26 -0
- package/dist/puck-editor/internal/api/create-puck-api.d.ts.map +1 -0
- package/dist/puck-editor/internal/api/create-puck-api.js +124 -0
- package/dist/puck-editor/internal/api/create-puck-api.js.map +1 -0
- package/dist/puck-editor/internal/api/handlers/create-page.d.ts +13 -0
- package/dist/puck-editor/internal/api/handlers/create-page.d.ts.map +1 -0
- package/dist/puck-editor/internal/api/handlers/create-page.js +125 -0
- package/dist/puck-editor/internal/api/handlers/create-page.js.map +1 -0
- package/dist/puck-editor/internal/api/handlers/entities.d.ts +17 -0
- package/dist/puck-editor/internal/api/handlers/entities.d.ts.map +1 -0
- package/dist/puck-editor/internal/api/handlers/entities.js +166 -0
- package/dist/puck-editor/internal/api/handlers/entities.js.map +1 -0
- package/dist/puck-editor/internal/api/handlers/publish.d.ts +6 -0
- package/dist/puck-editor/internal/api/handlers/publish.d.ts.map +1 -0
- package/dist/puck-editor/internal/api/handlers/publish.js +115 -0
- package/dist/puck-editor/internal/api/handlers/publish.js.map +1 -0
- package/dist/puck-editor/internal/api/handlers/template.d.ts +15 -0
- package/dist/puck-editor/internal/api/handlers/template.d.ts.map +1 -0
- package/dist/puck-editor/internal/api/handlers/template.js +222 -0
- package/dist/puck-editor/internal/api/handlers/template.js.map +1 -0
- package/dist/puck-editor/internal/api/handlers/upload.d.ts +13 -0
- package/dist/puck-editor/internal/api/handlers/upload.d.ts.map +1 -0
- package/dist/puck-editor/internal/api/handlers/upload.js +129 -0
- package/dist/puck-editor/internal/api/handlers/upload.js.map +1 -0
- package/dist/puck-editor/internal/api/media-params.d.ts +4 -0
- package/dist/puck-editor/internal/api/media-params.d.ts.map +1 -0
- package/dist/puck-editor/internal/api/media-params.js +38 -0
- package/dist/puck-editor/internal/api/media-params.js.map +1 -0
- package/dist/puck-editor/internal/api/media-upload.d.ts +24 -0
- package/dist/puck-editor/internal/api/media-upload.d.ts.map +1 -0
- package/dist/puck-editor/internal/api/media-upload.js +171 -0
- package/dist/puck-editor/internal/api/media-upload.js.map +1 -0
- package/dist/puck-editor/internal/api/space.d.ts +4 -0
- package/dist/puck-editor/internal/api/space.d.ts.map +1 -0
- package/dist/puck-editor/internal/api/space.js +11 -0
- package/dist/puck-editor/internal/api/space.js.map +1 -0
- package/dist/puck-editor/internal/content-model.d.ts +55 -0
- package/dist/puck-editor/internal/content-model.d.ts.map +1 -0
- package/dist/puck-editor/internal/content-model.js +73 -0
- package/dist/puck-editor/internal/content-model.js.map +1 -0
- package/dist/puck-editor/internal/editor/allowed-types.d.ts +4 -0
- package/dist/puck-editor/internal/editor/allowed-types.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/allowed-types.js +6 -0
- package/dist/puck-editor/internal/editor/allowed-types.js.map +1 -0
- package/dist/puck-editor/internal/editor/canvas-add-picker.d.ts +9 -0
- package/dist/puck-editor/internal/editor/canvas-add-picker.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/canvas-add-picker.js +231 -0
- package/dist/puck-editor/internal/editor/canvas-add-picker.js.map +1 -0
- package/dist/puck-editor/internal/editor/canvas-empty-state.d.ts +6 -0
- package/dist/puck-editor/internal/editor/canvas-empty-state.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/canvas-empty-state.js +85 -0
- package/dist/puck-editor/internal/editor/canvas-empty-state.js.map +1 -0
- package/dist/puck-editor/internal/editor/canvas-quick-add.d.ts +2 -0
- package/dist/puck-editor/internal/editor/canvas-quick-add.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/canvas-quick-add.js +844 -0
- package/dist/puck-editor/internal/editor/canvas-quick-add.js.map +1 -0
- package/dist/puck-editor/internal/editor/canvas-scroll.d.ts +3 -0
- package/dist/puck-editor/internal/editor/canvas-scroll.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/canvas-scroll.js +16 -0
- package/dist/puck-editor/internal/editor/canvas-scroll.js.map +1 -0
- package/dist/puck-editor/internal/editor/component-icons.d.ts +14 -0
- package/dist/puck-editor/internal/editor/component-icons.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/component-icons.js +35 -0
- package/dist/puck-editor/internal/editor/component-icons.js.map +1 -0
- package/dist/puck-editor/internal/editor/component-item.d.ts +6 -0
- package/dist/puck-editor/internal/editor/component-item.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/component-item.js +42 -0
- package/dist/puck-editor/internal/editor/component-item.js.map +1 -0
- package/dist/puck-editor/internal/editor/editor-action-bar.d.ts +6 -0
- package/dist/puck-editor/internal/editor/editor-action-bar.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/editor-action-bar.js +249 -0
- package/dist/puck-editor/internal/editor/editor-action-bar.js.map +1 -0
- package/dist/puck-editor/internal/editor/editor-header-actions.d.ts +7 -0
- package/dist/puck-editor/internal/editor/editor-header-actions.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/editor-header-actions.js +120 -0
- package/dist/puck-editor/internal/editor/editor-header-actions.js.map +1 -0
- package/dist/puck-editor/internal/editor/find-missing-required-fields.d.ts +15 -0
- package/dist/puck-editor/internal/editor/find-missing-required-fields.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/find-missing-required-fields.js +61 -0
- package/dist/puck-editor/internal/editor/find-missing-required-fields.js.map +1 -0
- package/dist/puck-editor/internal/editor/grouped-drawer-panel.d.ts +15 -0
- package/dist/puck-editor/internal/editor/grouped-drawer-panel.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/grouped-drawer-panel.js +147 -0
- package/dist/puck-editor/internal/editor/grouped-drawer-panel.js.map +1 -0
- package/dist/puck-editor/internal/editor/grouped-entry-list.d.ts +17 -0
- package/dist/puck-editor/internal/editor/grouped-entry-list.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/grouped-entry-list.js +125 -0
- package/dist/puck-editor/internal/editor/grouped-entry-list.js.map +1 -0
- package/dist/puck-editor/internal/editor/header-save-button.d.ts +5 -0
- package/dist/puck-editor/internal/editor/header-save-button.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/header-save-button.js +60 -0
- package/dist/puck-editor/internal/editor/header-save-button.js.map +1 -0
- package/dist/puck-editor/internal/editor/page-template-picker.d.ts +4 -0
- package/dist/puck-editor/internal/editor/page-template-picker.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/page-template-picker.js +140 -0
- package/dist/puck-editor/internal/editor/page-template-picker.js.map +1 -0
- package/dist/puck-editor/internal/editor/picker-entry-item.d.ts +6 -0
- package/dist/puck-editor/internal/editor/picker-entry-item.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/picker-entry-item.js +79 -0
- package/dist/puck-editor/internal/editor/picker-entry-item.js.map +1 -0
- package/dist/puck-editor/internal/editor/picker-model.d.ts +62 -0
- package/dist/puck-editor/internal/editor/picker-model.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/picker-model.js +489 -0
- package/dist/puck-editor/internal/editor/picker-model.js.map +1 -0
- package/dist/puck-editor/internal/editor/publish-puck-data.d.ts +30 -0
- package/dist/puck-editor/internal/editor/publish-puck-data.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/publish-puck-data.js +30 -0
- package/dist/puck-editor/internal/editor/publish-puck-data.js.map +1 -0
- package/dist/puck-editor/internal/editor/puck-editor.d.ts +15 -0
- package/dist/puck-editor/internal/editor/puck-editor.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/puck-editor.js +333 -0
- package/dist/puck-editor/internal/editor/puck-editor.js.map +1 -0
- package/dist/puck-editor/internal/editor/section-template-modal.d.ts +4 -0
- package/dist/puck-editor/internal/editor/section-template-modal.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/section-template-modal.js +71 -0
- package/dist/puck-editor/internal/editor/section-template-modal.js.map +1 -0
- package/dist/puck-editor/internal/editor/use-scroll-lock-outside.d.ts +15 -0
- package/dist/puck-editor/internal/editor/use-scroll-lock-outside.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor/use-scroll-lock-outside.js +93 -0
- package/dist/puck-editor/internal/editor/use-scroll-lock-outside.js.map +1 -0
- package/dist/puck-editor/internal/editor-config.d.ts +30 -0
- package/dist/puck-editor/internal/editor-config.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor-config.js +57 -0
- package/dist/puck-editor/internal/editor-config.js.map +1 -0
- package/dist/puck-editor/internal/editor-query-client.d.ts +4 -0
- package/dist/puck-editor/internal/editor-query-client.d.ts.map +1 -0
- package/dist/puck-editor/internal/editor-query-client.js +8 -0
- package/dist/puck-editor/internal/editor-query-client.js.map +1 -0
- package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.d.ts +14 -0
- package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.js +120 -0
- package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.js.map +1 -0
- package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.d.ts +21 -0
- package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.js +24 -0
- package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.js.map +1 -0
- package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.d.ts +16 -0
- package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.js +20 -0
- package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.js.map +1 -0
- package/dist/puck-editor/internal/fields/date-picker/date-picker.d.ts +8 -0
- package/dist/puck-editor/internal/fields/date-picker/date-picker.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/date-picker/date-picker.js +151 -0
- package/dist/puck-editor/internal/fields/date-picker/date-picker.js.map +1 -0
- package/dist/puck-editor/internal/fields/index.d.ts +10 -0
- package/dist/puck-editor/internal/fields/index.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/index.js +10 -0
- package/dist/puck-editor/internal/fields/index.js.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/anchor.d.ts +33 -0
- package/dist/puck-editor/internal/fields/link-picker/anchor.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/anchor.js +83 -0
- package/dist/puck-editor/internal/fields/link-picker/anchor.js.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/create-link-field.d.ts +24 -0
- package/dist/puck-editor/internal/fields/link-picker/create-link-field.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/create-link-field.js +31 -0
- package/dist/puck-editor/internal/fields/link-picker/create-link-field.js.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/humanize.d.ts +2 -0
- package/dist/puck-editor/internal/fields/link-picker/humanize.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/humanize.js +4 -0
- package/dist/puck-editor/internal/fields/link-picker/humanize.js.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/link-picker-control.d.ts +27 -0
- package/dist/puck-editor/internal/fields/link-picker/link-picker-control.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/link-picker-control.js +564 -0
- package/dist/puck-editor/internal/fields/link-picker/link-picker-control.js.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/link-picker-field.d.ts +9 -0
- package/dist/puck-editor/internal/fields/link-picker/link-picker-field.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/link-picker-field.js +189 -0
- package/dist/puck-editor/internal/fields/link-picker/link-picker-field.js.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/link-value.d.ts +72 -0
- package/dist/puck-editor/internal/fields/link-picker/link-value.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/link-value.js +114 -0
- package/dist/puck-editor/internal/fields/link-picker/link-value.js.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.d.ts +14 -0
- package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.js +667 -0
- package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.js.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/richtext-extensions.d.ts +11 -0
- package/dist/puck-editor/internal/fields/link-picker/richtext-extensions.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/richtext-extensions.js +34 -0
- package/dist/puck-editor/internal/fields/link-picker/richtext-extensions.js.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/segmented-control.d.ts +40 -0
- package/dist/puck-editor/internal/fields/link-picker/segmented-control.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/segmented-control.js +146 -0
- package/dist/puck-editor/internal/fields/link-picker/segmented-control.js.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/types.d.ts +34 -0
- package/dist/puck-editor/internal/fields/link-picker/types.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/link-picker/types.js +2 -0
- package/dist/puck-editor/internal/fields/link-picker/types.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-array/create-media-array-field.d.ts +27 -0
- package/dist/puck-editor/internal/fields/media-array/create-media-array-field.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-array/create-media-array-field.js +32 -0
- package/dist/puck-editor/internal/fields/media-array/create-media-array-field.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-array/media-array-field.d.ts +13 -0
- package/dist/puck-editor/internal/fields/media-array/media-array-field.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-array/media-array-field.js +372 -0
- package/dist/puck-editor/internal/fields/media-array/media-array-field.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-array/reorder.d.ts +2 -0
- package/dist/puck-editor/internal/fields/media-array/reorder.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-array/reorder.js +8 -0
- package/dist/puck-editor/internal/fields/media-array/reorder.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.d.ts +27 -0
- package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.js +32 -0
- package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.d.ts +11 -0
- package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.js +219 -0
- package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/crop-types.d.ts +24 -0
- package/dist/puck-editor/internal/fields/media-selector/crop-types.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/crop-types.js +8 -0
- package/dist/puck-editor/internal/fields/media-selector/crop-types.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/extract-fields.d.ts +8 -0
- package/dist/puck-editor/internal/fields/media-selector/extract-fields.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/extract-fields.js +51 -0
- package/dist/puck-editor/internal/fields/media-selector/extract-fields.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/image-upload-form.d.ts +7 -0
- package/dist/puck-editor/internal/fields/media-selector/image-upload-form.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/image-upload-form.js +147 -0
- package/dist/puck-editor/internal/fields/media-selector/image-upload-form.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.d.ts +30 -0
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.js +358 -0
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.d.ts +14 -0
- package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.js +355 -0
- package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/use-debounced-value.d.ts +2 -0
- package/dist/puck-editor/internal/fields/media-selector/use-debounced-value.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/use-debounced-value.js +55 -0
- package/dist/puck-editor/internal/fields/media-selector/use-debounced-value.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/use-media-library.d.ts +24 -0
- package/dist/puck-editor/internal/fields/media-selector/use-media-library.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/use-media-library.js +229 -0
- package/dist/puck-editor/internal/fields/media-selector/use-media-library.js.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/video-upload-form.d.ts +7 -0
- package/dist/puck-editor/internal/fields/media-selector/video-upload-form.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/media-selector/video-upload-form.js +120 -0
- package/dist/puck-editor/internal/fields/media-selector/video-upload-form.js.map +1 -0
- package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.d.ts +31 -0
- package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.js +39 -0
- package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.js.map +1 -0
- package/dist/puck-editor/internal/fields/required-field-label.d.ts +16 -0
- package/dist/puck-editor/internal/fields/required-field-label.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/required-field-label.js +89 -0
- package/dist/puck-editor/internal/fields/required-field-label.js.map +1 -0
- package/dist/puck-editor/internal/fields/required.d.ts +19 -0
- package/dist/puck-editor/internal/fields/required.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/required.js +20 -0
- package/dist/puck-editor/internal/fields/required.js.map +1 -0
- package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.d.ts +37 -0
- package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.d.ts.map +1 -0
- package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.js +26 -0
- package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.js.map +1 -0
- package/dist/puck-editor/internal/i18n.d.ts +188 -0
- package/dist/puck-editor/internal/i18n.d.ts.map +1 -0
- package/dist/puck-editor/internal/i18n.js +414 -0
- package/dist/puck-editor/internal/i18n.js.map +1 -0
- package/dist/puck-editor/internal/locale.d.ts +13 -0
- package/dist/puck-editor/internal/locale.d.ts.map +1 -0
- package/dist/puck-editor/internal/locale.js +20 -0
- package/dist/puck-editor/internal/locale.js.map +1 -0
- package/dist/puck-editor/internal/localize.d.ts +11 -0
- package/dist/puck-editor/internal/localize.d.ts.map +1 -0
- package/dist/puck-editor/internal/localize.js +42 -0
- package/dist/puck-editor/internal/localize.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.d.ts +21 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.js +197 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.d.ts +2 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.js +131 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.d.ts +20 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.js +46 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.d.ts +46 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.js +176 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/catalog.d.ts +20 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/catalog.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/catalog.js +39 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/catalog.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/constants.d.ts +5 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/constants.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/constants.js +3 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/constants.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/create-page.d.ts +17 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/create-page.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/create-page.js +35 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/create-page.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/find-component-location.d.ts +19 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/find-component-location.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/find-component-location.js +79 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/find-component-location.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/help.d.ts +2 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/help.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/help.js +243 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/help.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/index.d.ts +2 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/index.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/index.js +2 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/index.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/list-media.d.ts +19 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/list-media.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/list-media.js +31 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/list-media.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/templates.d.ts +23 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/templates.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/templates.js +72 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/templates.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/upload-media.d.ts +20 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/upload-media.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/upload-media.js +34 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/upload-media.js.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.d.ts +17 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.js +70 -0
- package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.js.map +1 -0
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.d.ts +2 -0
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.js +37 -0
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.js.map +1 -0
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.d.ts +7 -0
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.js +18 -0
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.js.map +1 -0
- package/dist/puck-editor/internal/plugins/blocks-plugin/index.d.ts +2 -0
- package/dist/puck-editor/internal/plugins/blocks-plugin/index.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/blocks-plugin/index.js +2 -0
- package/dist/puck-editor/internal/plugins/blocks-plugin/index.js.map +1 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/index.d.ts +2 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/index.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/index.js +2 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/index.js.map +1 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.d.ts +2 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.js +861 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.js.map +1 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.d.ts +5 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.js +16 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.js.map +1 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-tree.d.ts +53 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-tree.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-tree.js +145 -0
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-tree.js.map +1 -0
- package/dist/puck-editor/internal/plugins/sections-plugin/index.d.ts +2 -0
- package/dist/puck-editor/internal/plugins/sections-plugin/index.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/sections-plugin/index.js +2 -0
- package/dist/puck-editor/internal/plugins/sections-plugin/index.js.map +1 -0
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.d.ts +2 -0
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.js +69 -0
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.js.map +1 -0
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.d.ts +7 -0
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.js +18 -0
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.d.ts +6 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.js +178 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.d.ts +3 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.js +55 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.d.ts +12 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.js +125 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.d.ts +8 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.js +582 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/index.d.ts +6 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/index.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/index.js +6 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/index.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.d.ts +4 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.js +54 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/template-form.d.ts +11 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/template-form.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/template-form.js +92 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/template-form.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.d.ts +7 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.js +30 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.d.ts +2 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.js +471 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.d.ts +5 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.js +16 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/templates.d.ts +43 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/templates.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/templates.js +115 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/templates.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.d.ts +9 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.js +152 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.js.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.d.ts +16 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.d.ts.map +1 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.js +134 -0
- package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.js.map +1 -0
- package/dist/puck-editor/internal/puck-augmentation.d.ts +28 -0
- package/dist/puck-editor/internal/puck-augmentation.d.ts.map +1 -0
- package/dist/puck-editor/internal/puck-augmentation.js +7 -0
- package/dist/puck-editor/internal/puck-augmentation.js.map +1 -0
- package/dist/puck-editor/internal/puck-editor-provider.d.ts +12 -0
- package/dist/puck-editor/internal/puck-editor-provider.d.ts.map +1 -0
- package/dist/puck-editor/internal/puck-editor-provider.js +69 -0
- package/dist/puck-editor/internal/puck-editor-provider.js.map +1 -0
- package/dist/puck-editor/internal/puck-node.d.ts +29 -0
- package/dist/puck-editor/internal/puck-node.d.ts.map +1 -0
- package/dist/puck-editor/internal/puck-node.js +2 -0
- package/dist/puck-editor/internal/puck-node.js.map +1 -0
- package/dist/puck-editor/internal/puck-wrapper.d.ts +19 -0
- package/dist/puck-editor/internal/puck-wrapper.d.ts.map +1 -0
- package/dist/puck-editor/internal/puck-wrapper.js +270 -0
- package/dist/puck-editor/internal/puck-wrapper.js.map +1 -0
- package/dist/puck-editor/internal/render/cropped-image.d.ts +19 -0
- package/dist/puck-editor/internal/render/cropped-image.d.ts.map +1 -0
- package/dist/puck-editor/internal/render/cropped-image.js +126 -0
- package/dist/puck-editor/internal/render/cropped-image.js.map +1 -0
- package/dist/puck-editor/internal/smart-actions/index.d.ts +13 -0
- package/dist/puck-editor/internal/smart-actions/index.d.ts.map +1 -0
- package/dist/puck-editor/internal/smart-actions/index.js +29 -0
- package/dist/puck-editor/internal/smart-actions/index.js.map +1 -0
- package/dist/puck-editor/internal/smart-actions/new-page.d.ts +13 -0
- package/dist/puck-editor/internal/smart-actions/new-page.d.ts.map +1 -0
- package/dist/puck-editor/internal/smart-actions/new-page.js +80 -0
- package/dist/puck-editor/internal/smart-actions/new-page.js.map +1 -0
- package/dist/puck-editor/internal/smart-actions/open-puck-editor.d.ts +2 -0
- package/dist/puck-editor/internal/smart-actions/open-puck-editor.d.ts.map +1 -0
- package/dist/puck-editor/internal/smart-actions/open-puck-editor.js +65 -0
- package/dist/puck-editor/internal/smart-actions/open-puck-editor.js.map +1 -0
- package/dist/puck-editor/internal/ui/calendar.d.ts +9 -0
- package/dist/puck-editor/internal/ui/calendar.d.ts.map +1 -0
- package/dist/puck-editor/internal/ui/calendar.js +147 -0
- package/dist/puck-editor/internal/ui/calendar.js.map +1 -0
- package/dist/puck-editor/internal/ui/component-list-accordion.d.ts +13 -0
- package/dist/puck-editor/internal/ui/component-list-accordion.d.ts.map +1 -0
- package/dist/puck-editor/internal/ui/component-list-accordion.js +93 -0
- package/dist/puck-editor/internal/ui/component-list-accordion.js.map +1 -0
- package/dist/puck-editor/internal/ui/dialog.d.ts +20 -0
- package/dist/puck-editor/internal/ui/dialog.d.ts.map +1 -0
- package/dist/puck-editor/internal/ui/dialog.js +286 -0
- package/dist/puck-editor/internal/ui/dialog.js.map +1 -0
- package/dist/puck-editor/internal/ui/drawer-item-content.d.ts +11 -0
- package/dist/puck-editor/internal/ui/drawer-item-content.d.ts.map +1 -0
- package/dist/puck-editor/internal/ui/drawer-item-content.js +109 -0
- package/dist/puck-editor/internal/ui/drawer-item-content.js.map +1 -0
- package/dist/puck-editor/internal/ui/icon-button.d.ts +10 -0
- package/dist/puck-editor/internal/ui/icon-button.d.ts.map +1 -0
- package/dist/puck-editor/internal/ui/icon-button.js +72 -0
- package/dist/puck-editor/internal/ui/icon-button.js.map +1 -0
- package/dist/puck-editor/internal/ui/popover.d.ts +9 -0
- package/dist/puck-editor/internal/ui/popover.d.ts.map +1 -0
- package/dist/puck-editor/internal/ui/popover.js +165 -0
- package/dist/puck-editor/internal/ui/popover.js.map +1 -0
- package/dist/puck-editor/internal/ui/required-mark.d.ts +2 -0
- package/dist/puck-editor/internal/ui/required-mark.d.ts.map +1 -0
- package/dist/puck-editor/internal/ui/required-mark.js +12 -0
- package/dist/puck-editor/internal/ui/required-mark.js.map +1 -0
- package/dist/puck-editor/internal/ui/search-control.d.ts +20 -0
- package/dist/puck-editor/internal/ui/search-control.d.ts.map +1 -0
- package/dist/puck-editor/internal/ui/search-control.js +156 -0
- package/dist/puck-editor/internal/ui/search-control.js.map +1 -0
- package/dist/puck-editor/internal/ui/use-panel-search-focus.d.ts +2 -0
- package/dist/puck-editor/internal/ui/use-panel-search-focus.d.ts.map +1 -0
- package/dist/puck-editor/internal/ui/use-panel-search-focus.js +40 -0
- package/dist/puck-editor/internal/ui/use-panel-search-focus.js.map +1 -0
- package/dist/puck-editor/internal/use-puck-overlay.d.ts +16 -0
- package/dist/puck-editor/internal/use-puck-overlay.d.ts.map +1 -0
- package/dist/puck-editor/internal/use-puck-overlay.js +121 -0
- package/dist/puck-editor/internal/use-puck-overlay.js.map +1 -0
- package/dist/puck-editor/internal/utils.d.ts +6 -0
- package/dist/puck-editor/internal/utils.d.ts.map +1 -0
- package/dist/puck-editor/internal/utils.js +57 -0
- package/dist/puck-editor/internal/utils.js.map +1 -0
- package/dist/puck-editor/puck-theme.css +110 -0
- package/dist/puck-editor/render.d.ts +3 -0
- package/dist/puck-editor/render.d.ts.map +1 -0
- package/dist/puck-editor/render.js +2 -0
- package/dist/puck-editor/render.js.map +1 -0
- package/dist/puck-editor/server.d.ts +4 -0
- package/dist/puck-editor/server.d.ts.map +1 -0
- package/dist/puck-editor/server.js +4 -0
- package/dist/puck-editor/server.js.map +1 -0
- package/dist/puck-editor/smart-actions.d.ts +2 -0
- package/dist/puck-editor/smart-actions.d.ts.map +1 -0
- package/dist/puck-editor/smart-actions.js +2 -0
- package/dist/puck-editor/smart-actions.js.map +1 -0
- package/dist/shared/cn.d.ts +3 -0
- package/dist/shared/cn.d.ts.map +1 -0
- package/dist/shared/cn.js +9 -0
- package/dist/shared/cn.js.map +1 -0
- package/dist/shared/i18n.d.ts +5 -0
- package/dist/shared/i18n.d.ts.map +1 -0
- package/dist/shared/i18n.js +18 -0
- package/dist/shared/i18n.js.map +1 -0
- package/dist/shared/toolbar-action.d.ts +9 -0
- package/dist/shared/toolbar-action.d.ts.map +1 -0
- package/dist/shared/toolbar-action.js +2 -0
- package/dist/shared/toolbar-action.js.map +1 -0
- package/dist/smart-actions/internal/get-smart-actions-context.d.ts +19 -0
- package/dist/smart-actions/internal/get-smart-actions-context.d.ts.map +1 -0
- package/dist/smart-actions/internal/get-smart-actions-context.js +24 -0
- package/dist/smart-actions/internal/get-smart-actions-context.js.map +1 -0
- package/dist/smart-actions/internal/i18n.d.ts +20 -0
- package/dist/smart-actions/internal/i18n.d.ts.map +1 -0
- package/dist/smart-actions/internal/i18n.js +35 -0
- package/dist/smart-actions/internal/i18n.js.map +1 -0
- package/dist/smart-actions/internal/logout-form.d.ts +8 -0
- package/dist/smart-actions/internal/logout-form.d.ts.map +1 -0
- package/dist/smart-actions/internal/logout-form.js +88 -0
- package/dist/smart-actions/internal/logout-form.js.map +1 -0
- package/dist/smart-actions/internal/refresh-page.d.ts +2 -0
- package/dist/smart-actions/internal/refresh-page.d.ts.map +1 -0
- package/dist/smart-actions/internal/refresh-page.js +126 -0
- package/dist/smart-actions/internal/refresh-page.js.map +1 -0
- package/dist/smart-actions/internal/smart-actions-button.d.ts +24 -0
- package/dist/smart-actions/internal/smart-actions-button.d.ts.map +1 -0
- package/dist/smart-actions/internal/smart-actions-button.js +41 -0
- package/dist/smart-actions/internal/smart-actions-button.js.map +1 -0
- package/dist/smart-actions/internal/smart-actions-config.d.ts +13 -0
- package/dist/smart-actions/internal/smart-actions-config.d.ts.map +1 -0
- package/dist/smart-actions/internal/smart-actions-config.js +101 -0
- package/dist/smart-actions/internal/smart-actions-config.js.map +1 -0
- package/dist/smart-actions/internal/smart-actions-toolbar-client.d.ts +15 -0
- package/dist/smart-actions/internal/smart-actions-toolbar-client.d.ts.map +1 -0
- package/dist/smart-actions/internal/smart-actions-toolbar-client.js +71 -0
- package/dist/smart-actions/internal/smart-actions-toolbar-client.js.map +1 -0
- package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.d.ts +13 -0
- package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.d.ts.map +1 -0
- package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.js +323 -0
- package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.js.map +1 -0
- package/dist/smart-actions/internal/toolbar/storage.d.ts +7 -0
- package/dist/smart-actions/internal/toolbar/storage.d.ts.map +1 -0
- package/dist/smart-actions/internal/toolbar/storage.js +29 -0
- package/dist/smart-actions/internal/toolbar/storage.js.map +1 -0
- package/dist/smart-actions/internal/toolbar/types.d.ts +4 -0
- package/dist/smart-actions/internal/toolbar/types.d.ts.map +1 -0
- package/dist/smart-actions/internal/toolbar/types.js +2 -0
- package/dist/smart-actions/internal/toolbar/types.js.map +1 -0
- package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.d.ts +6 -0
- package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.d.ts.map +1 -0
- package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.js +43 -0
- package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.js.map +1 -0
- package/dist/smart-actions/internal/ui/tooltip.d.ts +8 -0
- package/dist/smart-actions/internal/ui/tooltip.d.ts.map +1 -0
- package/dist/smart-actions/internal/ui/tooltip.js +156 -0
- package/dist/smart-actions/internal/ui/tooltip.js.map +1 -0
- package/dist/smart-actions/internal/user-profile.d.ts +8 -0
- package/dist/smart-actions/internal/user-profile.d.ts.map +1 -0
- package/dist/smart-actions/internal/user-profile.js +30 -0
- package/dist/smart-actions/internal/user-profile.js.map +1 -0
- package/dist/smart-actions/server.d.ts +4 -0
- package/dist/smart-actions/server.d.ts.map +1 -0
- package/dist/smart-actions/server.js +4 -0
- package/dist/smart-actions/server.js.map +1 -0
- package/dist/theme.css +2 -0
- package/dist/visual-editor/index.d.ts +4 -0
- package/dist/visual-editor/index.d.ts.map +1 -0
- package/dist/visual-editor/index.js +4 -0
- package/dist/visual-editor/index.js.map +1 -0
- package/dist/visual-editor/internal/bridge/connector.d.ts +7 -0
- package/dist/visual-editor/internal/bridge/connector.d.ts.map +1 -0
- package/dist/visual-editor/internal/bridge/connector.js +72 -0
- package/dist/visual-editor/internal/bridge/connector.js.map +1 -0
- package/dist/visual-editor/internal/bridge/draft-mode-self-heal.d.ts +8 -0
- package/dist/visual-editor/internal/bridge/draft-mode-self-heal.d.ts.map +1 -0
- package/dist/visual-editor/internal/bridge/draft-mode-self-heal.js +44 -0
- package/dist/visual-editor/internal/bridge/draft-mode-self-heal.js.map +1 -0
- package/dist/visual-editor/internal/bridge/editor-auth-gate-server.d.ts +16 -0
- package/dist/visual-editor/internal/bridge/editor-auth-gate-server.d.ts.map +1 -0
- package/dist/visual-editor/internal/bridge/editor-auth-gate-server.js +43 -0
- package/dist/visual-editor/internal/bridge/editor-auth-gate-server.js.map +1 -0
- package/dist/visual-editor/internal/bridge/editor-auth-gate.d.ts +15 -0
- package/dist/visual-editor/internal/bridge/editor-auth-gate.d.ts.map +1 -0
- package/dist/visual-editor/internal/bridge/editor-auth-gate.js +146 -0
- package/dist/visual-editor/internal/bridge/editor-auth-gate.js.map +1 -0
- package/dist/visual-editor/internal/i18n.d.ts +29 -0
- package/dist/visual-editor/internal/i18n.d.ts.map +1 -0
- package/dist/visual-editor/internal/i18n.js +51 -0
- package/dist/visual-editor/internal/i18n.js.map +1 -0
- package/dist/visual-editor/internal/overlays/drupal-origin.d.ts +7 -0
- package/dist/visual-editor/internal/overlays/drupal-origin.d.ts.map +1 -0
- package/dist/visual-editor/internal/overlays/drupal-origin.js +15 -0
- package/dist/visual-editor/internal/overlays/drupal-origin.js.map +1 -0
- package/dist/visual-editor/internal/overlays/edit-button.d.ts +10 -0
- package/dist/visual-editor/internal/overlays/edit-button.d.ts.map +1 -0
- package/dist/visual-editor/internal/overlays/edit-button.js +138 -0
- package/dist/visual-editor/internal/overlays/edit-button.js.map +1 -0
- package/dist/visual-editor/internal/overlays/edit-icon.d.ts +3 -0
- package/dist/visual-editor/internal/overlays/edit-icon.d.ts.map +1 -0
- package/dist/visual-editor/internal/overlays/edit-icon.js +19 -0
- package/dist/visual-editor/internal/overlays/edit-icon.js.map +1 -0
- package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.d.ts +15 -0
- package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.d.ts.map +1 -0
- package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.js +52 -0
- package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.js.map +1 -0
- package/dist/visual-editor/internal/overlays/iframe-wrapper.d.ts +6 -0
- package/dist/visual-editor/internal/overlays/iframe-wrapper.d.ts.map +1 -0
- package/dist/visual-editor/internal/overlays/iframe-wrapper.js +42 -0
- package/dist/visual-editor/internal/overlays/iframe-wrapper.js.map +1 -0
- package/dist/visual-editor/internal/overlays/menu/menu-wrapper.d.ts +9 -0
- package/dist/visual-editor/internal/overlays/menu/menu-wrapper.d.ts.map +1 -0
- package/dist/visual-editor/internal/overlays/menu/menu-wrapper.js +33 -0
- package/dist/visual-editor/internal/overlays/menu/menu-wrapper.js.map +1 -0
- package/dist/visual-editor/internal/overlays/node/node-metadata.d.ts +13 -0
- package/dist/visual-editor/internal/overlays/node/node-metadata.d.ts.map +1 -0
- package/dist/visual-editor/internal/overlays/node/node-metadata.js +17 -0
- package/dist/visual-editor/internal/overlays/node/node-metadata.js.map +1 -0
- package/dist/visual-editor/internal/overlays/node/node-wrapper.d.ts +8 -0
- package/dist/visual-editor/internal/overlays/node/node-wrapper.d.ts.map +1 -0
- package/dist/visual-editor/internal/overlays/node/node-wrapper.js +25 -0
- package/dist/visual-editor/internal/overlays/node/node-wrapper.js.map +1 -0
- package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.d.ts +18 -0
- package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.d.ts.map +1 -0
- package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.js +58 -0
- package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.js.map +1 -0
- package/dist/visual-editor/internal/revalidate-route.d.ts +19 -0
- package/dist/visual-editor/internal/revalidate-route.d.ts.map +1 -0
- package/dist/visual-editor/internal/revalidate-route.js +51 -0
- package/dist/visual-editor/internal/revalidate-route.js.map +1 -0
- package/dist/visual-editor/server.d.ts +7 -0
- package/dist/visual-editor/server.d.ts.map +1 -0
- package/dist/visual-editor/server.js +8 -0
- package/dist/visual-editor/server.js.map +1 -0
- package/package.json +154 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { ChevronRightIcon } from 'lucide-react';
|
|
6
|
+
import { cn } from '../../../../shared/cn';
|
|
7
|
+
import { usePuckDictionary } from '../../i18n';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
export function AiOptionsFields(t0) {
|
|
10
|
+
const $ = _c(32);
|
|
11
|
+
const {
|
|
12
|
+
defaultExpanded: t1,
|
|
13
|
+
defaultDescription: t2,
|
|
14
|
+
defaultInstructions: t3
|
|
15
|
+
} = t0;
|
|
16
|
+
const defaultExpanded = t1 === undefined ? false : t1;
|
|
17
|
+
const defaultDescription = t2 === undefined ? "" : t2;
|
|
18
|
+
const defaultInstructions = t3 === undefined ? "" : t3;
|
|
19
|
+
const t = usePuckDictionary().templates;
|
|
20
|
+
const [expanded, setExpanded] = useState(defaultExpanded);
|
|
21
|
+
let t4;
|
|
22
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23
|
+
t4 = () => setExpanded(_temp);
|
|
24
|
+
$[0] = t4;
|
|
25
|
+
} else {
|
|
26
|
+
t4 = $[0];
|
|
27
|
+
}
|
|
28
|
+
let t5;
|
|
29
|
+
if ($[1] !== expanded) {
|
|
30
|
+
t5 = cn("nh:size-4 nh:transition-transform", {
|
|
31
|
+
"nh:rotate-90": expanded
|
|
32
|
+
});
|
|
33
|
+
$[1] = expanded;
|
|
34
|
+
$[2] = t5;
|
|
35
|
+
} else {
|
|
36
|
+
t5 = $[2];
|
|
37
|
+
}
|
|
38
|
+
let t6;
|
|
39
|
+
if ($[3] !== t5) {
|
|
40
|
+
t6 = /*#__PURE__*/_jsx(ChevronRightIcon, {
|
|
41
|
+
className: t5
|
|
42
|
+
});
|
|
43
|
+
$[3] = t5;
|
|
44
|
+
$[4] = t6;
|
|
45
|
+
} else {
|
|
46
|
+
t6 = $[4];
|
|
47
|
+
}
|
|
48
|
+
let t7;
|
|
49
|
+
if ($[5] !== expanded || $[6] !== t.aiOptions || $[7] !== t6) {
|
|
50
|
+
t7 = /*#__PURE__*/_jsxs("button", {
|
|
51
|
+
type: "button",
|
|
52
|
+
onClick: t4,
|
|
53
|
+
"aria-expanded": expanded,
|
|
54
|
+
className: "nh:flex nh:items-center nh:gap-1 nh:text-sm nh:font-medium nh:text-gray-700 nh:hover:text-gray-900",
|
|
55
|
+
children: [t6, t.aiOptions]
|
|
56
|
+
});
|
|
57
|
+
$[5] = expanded;
|
|
58
|
+
$[6] = t.aiOptions;
|
|
59
|
+
$[7] = t6;
|
|
60
|
+
$[8] = t7;
|
|
61
|
+
} else {
|
|
62
|
+
t7 = $[8];
|
|
63
|
+
}
|
|
64
|
+
const t8 = !expanded;
|
|
65
|
+
let t9;
|
|
66
|
+
if ($[9] !== t8) {
|
|
67
|
+
t9 = cn("nh:mt-3 nh:space-y-4", {
|
|
68
|
+
"nh:hidden": t8
|
|
69
|
+
});
|
|
70
|
+
$[9] = t8;
|
|
71
|
+
$[10] = t9;
|
|
72
|
+
} else {
|
|
73
|
+
t9 = $[10];
|
|
74
|
+
}
|
|
75
|
+
let t10;
|
|
76
|
+
if ($[11] !== t.aiDescription) {
|
|
77
|
+
t10 = /*#__PURE__*/_jsx("label", {
|
|
78
|
+
htmlFor: "aiDescription",
|
|
79
|
+
className: "nh:block nh:text-sm nh:font-medium nh:text-gray-700",
|
|
80
|
+
children: t.aiDescription
|
|
81
|
+
});
|
|
82
|
+
$[11] = t.aiDescription;
|
|
83
|
+
$[12] = t10;
|
|
84
|
+
} else {
|
|
85
|
+
t10 = $[12];
|
|
86
|
+
}
|
|
87
|
+
let t11;
|
|
88
|
+
if ($[13] !== defaultDescription) {
|
|
89
|
+
t11 = /*#__PURE__*/_jsx("textarea", {
|
|
90
|
+
id: "aiDescription",
|
|
91
|
+
name: "aiDescription",
|
|
92
|
+
rows: 2,
|
|
93
|
+
defaultValue: defaultDescription,
|
|
94
|
+
className: "nh:mt-1 nh:block nh:w-full nh:rounded-md nh:border-gray-300 nh:shadow-sm"
|
|
95
|
+
});
|
|
96
|
+
$[13] = defaultDescription;
|
|
97
|
+
$[14] = t11;
|
|
98
|
+
} else {
|
|
99
|
+
t11 = $[14];
|
|
100
|
+
}
|
|
101
|
+
let t12;
|
|
102
|
+
if ($[15] !== t10 || $[16] !== t11) {
|
|
103
|
+
t12 = /*#__PURE__*/_jsxs("div", {
|
|
104
|
+
children: [t10, t11]
|
|
105
|
+
});
|
|
106
|
+
$[15] = t10;
|
|
107
|
+
$[16] = t11;
|
|
108
|
+
$[17] = t12;
|
|
109
|
+
} else {
|
|
110
|
+
t12 = $[17];
|
|
111
|
+
}
|
|
112
|
+
let t13;
|
|
113
|
+
if ($[18] !== t.aiInstructions) {
|
|
114
|
+
t13 = /*#__PURE__*/_jsx("label", {
|
|
115
|
+
htmlFor: "aiInstructions",
|
|
116
|
+
className: "nh:block nh:text-sm nh:font-medium nh:text-gray-700",
|
|
117
|
+
children: t.aiInstructions
|
|
118
|
+
});
|
|
119
|
+
$[18] = t.aiInstructions;
|
|
120
|
+
$[19] = t13;
|
|
121
|
+
} else {
|
|
122
|
+
t13 = $[19];
|
|
123
|
+
}
|
|
124
|
+
let t14;
|
|
125
|
+
if ($[20] !== defaultInstructions) {
|
|
126
|
+
t14 = /*#__PURE__*/_jsx("textarea", {
|
|
127
|
+
id: "aiInstructions",
|
|
128
|
+
name: "aiInstructions",
|
|
129
|
+
rows: 3,
|
|
130
|
+
defaultValue: defaultInstructions,
|
|
131
|
+
className: "nh:mt-1 nh:block nh:w-full nh:rounded-md nh:border-gray-300 nh:shadow-sm"
|
|
132
|
+
});
|
|
133
|
+
$[20] = defaultInstructions;
|
|
134
|
+
$[21] = t14;
|
|
135
|
+
} else {
|
|
136
|
+
t14 = $[21];
|
|
137
|
+
}
|
|
138
|
+
let t15;
|
|
139
|
+
if ($[22] !== t13 || $[23] !== t14) {
|
|
140
|
+
t15 = /*#__PURE__*/_jsxs("div", {
|
|
141
|
+
children: [t13, t14]
|
|
142
|
+
});
|
|
143
|
+
$[22] = t13;
|
|
144
|
+
$[23] = t14;
|
|
145
|
+
$[24] = t15;
|
|
146
|
+
} else {
|
|
147
|
+
t15 = $[24];
|
|
148
|
+
}
|
|
149
|
+
let t16;
|
|
150
|
+
if ($[25] !== t12 || $[26] !== t15 || $[27] !== t9) {
|
|
151
|
+
t16 = /*#__PURE__*/_jsxs("div", {
|
|
152
|
+
className: t9,
|
|
153
|
+
children: [t12, t15]
|
|
154
|
+
});
|
|
155
|
+
$[25] = t12;
|
|
156
|
+
$[26] = t15;
|
|
157
|
+
$[27] = t9;
|
|
158
|
+
$[28] = t16;
|
|
159
|
+
} else {
|
|
160
|
+
t16 = $[28];
|
|
161
|
+
}
|
|
162
|
+
let t17;
|
|
163
|
+
if ($[29] !== t16 || $[30] !== t7) {
|
|
164
|
+
t17 = /*#__PURE__*/_jsxs("div", {
|
|
165
|
+
children: [t7, t16]
|
|
166
|
+
});
|
|
167
|
+
$[29] = t16;
|
|
168
|
+
$[30] = t7;
|
|
169
|
+
$[31] = t17;
|
|
170
|
+
} else {
|
|
171
|
+
t17 = $[31];
|
|
172
|
+
}
|
|
173
|
+
return t17;
|
|
174
|
+
}
|
|
175
|
+
function _temp(value) {
|
|
176
|
+
return !value;
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=ai-options-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-options-fields.js","names":["c","_c","useState","ChevronRightIcon","cn","usePuckDictionary","jsx","_jsx","jsxs","_jsxs","AiOptionsFields","t0","$","defaultExpanded","t1","defaultDescription","t2","defaultInstructions","t3","undefined","t","templates","expanded","setExpanded","t4","Symbol","for","_temp","t5","t6","className","t7","aiOptions","type","onClick","children","t8","t9","t10","aiDescription","htmlFor","t11","id","name","rows","t12","t13","aiInstructions","t14","t15","t16","t17","value"],"sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/ai-options-fields.tsx"],"sourcesContent":["'use client';\n\nimport { useState } from 'react';\nimport { ChevronRightIcon } from 'lucide-react';\n\nimport { cn } from '../../../../shared/cn';\nimport { usePuckDictionary } from '../../i18n';\n\nexport function AiOptionsFields({\n defaultExpanded = false,\n defaultDescription = '',\n defaultInstructions = '',\n}: {\n defaultExpanded?: boolean;\n defaultDescription?: string;\n defaultInstructions?: string;\n}) {\n const t = usePuckDictionary().templates;\n const [expanded, setExpanded] = useState(defaultExpanded);\n\n return (\n <div>\n <button\n type=\"button\"\n onClick={() => setExpanded((value) => !value)}\n aria-expanded={expanded}\n className=\"nh:flex nh:items-center nh:gap-1 nh:text-sm nh:font-medium nh:text-gray-700 nh:hover:text-gray-900\"\n >\n <ChevronRightIcon\n className={cn('nh:size-4 nh:transition-transform', {\n 'nh:rotate-90': expanded,\n })}\n />\n {t.aiOptions}\n </button>\n <div className={cn('nh:mt-3 nh:space-y-4', { 'nh:hidden': !expanded })}>\n <div>\n <label\n htmlFor=\"aiDescription\"\n className=\"nh:block nh:text-sm nh:font-medium nh:text-gray-700\"\n >\n {t.aiDescription}\n </label>\n <textarea\n id=\"aiDescription\"\n name=\"aiDescription\"\n rows={2}\n defaultValue={defaultDescription}\n className=\"nh:mt-1 nh:block nh:w-full nh:rounded-md nh:border-gray-300 nh:shadow-sm\"\n />\n </div>\n\n <div>\n <label\n htmlFor=\"aiInstructions\"\n className=\"nh:block nh:text-sm nh:font-medium nh:text-gray-700\"\n >\n {t.aiInstructions}\n </label>\n <textarea\n id=\"aiInstructions\"\n name=\"aiInstructions\"\n rows={3}\n defaultValue={defaultInstructions}\n className=\"nh:mt-1 nh:block nh:w-full nh:rounded-md nh:border-gray-300 nh:shadow-sm\"\n />\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAA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
|
|
1
|
+
{"version":3,"file":"apply-vehicle-slot-constraints.d.ts","sourceRoot":"","sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAS,MAAM,kBAAkB,CAAC;AAsEtD,eAAO,MAAM,2BAA2B,GACtC,QAAQ,MAAM,EACd,cAAc,MAAM,EAAE,KACrB,MAoBF,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { sectionComponentTypes } from '../outline-plugin/outline-tree';
|
|
2
|
+
const referencesSection = (list, sectionTypes) => !!list && list.some(type => sectionTypes.includes(type));
|
|
3
|
+
const constrainSlot = (field, sectionTypes, vehicleTypes) => {
|
|
4
|
+
let next = field;
|
|
5
|
+
if (referencesSection(field.disallow, sectionTypes)) {
|
|
6
|
+
next = {
|
|
7
|
+
...next,
|
|
8
|
+
disallow: [...(field.disallow ?? []), ...vehicleTypes]
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
if (referencesSection(field.allow, sectionTypes)) {
|
|
12
|
+
next = {
|
|
13
|
+
...next,
|
|
14
|
+
allow: [...(field.allow ?? []), ...vehicleTypes]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
return next;
|
|
18
|
+
};
|
|
19
|
+
const constrainField = (field, sectionTypes, vehicleTypes) => {
|
|
20
|
+
if (field.type === 'slot') {
|
|
21
|
+
return constrainSlot(field, sectionTypes, vehicleTypes);
|
|
22
|
+
}
|
|
23
|
+
if (field.type === 'object' && field.objectFields) {
|
|
24
|
+
return {
|
|
25
|
+
...field,
|
|
26
|
+
objectFields: constrainFields(field.objectFields, sectionTypes, vehicleTypes)
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
if (field.type === 'array' && field.arrayFields) {
|
|
30
|
+
return {
|
|
31
|
+
...field,
|
|
32
|
+
arrayFields: constrainFields(field.arrayFields, sectionTypes, vehicleTypes)
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return field;
|
|
36
|
+
};
|
|
37
|
+
const constrainFields = (fields, sectionTypes, vehicleTypes) => Object.fromEntries(Object.entries(fields).map(([name, field]) => [name, constrainField(field, sectionTypes, vehicleTypes)]));
|
|
38
|
+
export const applyVehicleSlotConstraints = (config, vehicleTypes) => {
|
|
39
|
+
if (vehicleTypes.length === 0) return config;
|
|
40
|
+
const sectionTypes = sectionComponentTypes(config);
|
|
41
|
+
if (sectionTypes.length === 0) return config;
|
|
42
|
+
const components = Object.fromEntries(Object.entries(config.components).map(([type, componentConfig]) => {
|
|
43
|
+
const fields = componentConfig.fields;
|
|
44
|
+
if (!fields) return [type, componentConfig];
|
|
45
|
+
return [type, {
|
|
46
|
+
...componentConfig,
|
|
47
|
+
fields: constrainFields(fields, sectionTypes, vehicleTypes)
|
|
48
|
+
}];
|
|
49
|
+
}));
|
|
50
|
+
return {
|
|
51
|
+
...config,
|
|
52
|
+
components
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=apply-vehicle-slot-constraints.js.map
|
package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-vehicle-slot-constraints.js","names":["sectionComponentTypes","referencesSection","list","sectionTypes","some","type","includes","constrainSlot","field","vehicleTypes","next","disallow","allow","constrainField","objectFields","constrainFields","arrayFields","fields","Object","fromEntries","entries","map","name","applyVehicleSlotConstraints","config","length","components","componentConfig"],"sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.ts"],"sourcesContent":["import type { Config, Field } from '@puckeditor/core';\n\nimport { sectionComponentTypes } from '../outline-plugin/outline-tree';\n\ntype Fields = Record<string, Field>;\ntype SlotField = Extract<Field, { type: 'slot' }>;\n\nconst referencesSection = (\n list: string[] | undefined,\n sectionTypes: string[]\n): boolean => !!list && list.some((type) => sectionTypes.includes(type));\n\nconst constrainSlot = (\n field: SlotField,\n sectionTypes: string[],\n vehicleTypes: string[]\n): Field => {\n let next = field;\n if (referencesSection(field.disallow, sectionTypes)) {\n next = { ...next, disallow: [...(field.disallow ?? []), ...vehicleTypes] };\n }\n if (referencesSection(field.allow, sectionTypes)) {\n next = { ...next, allow: [...(field.allow ?? []), ...vehicleTypes] };\n }\n return next;\n};\n\nconst constrainField = (\n field: Field,\n sectionTypes: string[],\n vehicleTypes: string[]\n): Field => {\n if (field.type === 'slot') {\n return constrainSlot(field, sectionTypes, vehicleTypes);\n }\n if (field.type === 'object' && field.objectFields) {\n return {\n ...field,\n objectFields: constrainFields(\n field.objectFields as Fields,\n sectionTypes,\n vehicleTypes\n ),\n };\n }\n if (field.type === 'array' && field.arrayFields) {\n return {\n ...field,\n arrayFields: constrainFields(\n field.arrayFields as Fields,\n sectionTypes,\n vehicleTypes\n ),\n };\n }\n return field;\n};\n\nconst constrainFields = (\n fields: Fields,\n sectionTypes: string[],\n vehicleTypes: string[]\n): Fields =>\n Object.fromEntries(\n Object.entries(fields).map(([name, field]) => [\n name,\n constrainField(field, sectionTypes, vehicleTypes),\n ])\n );\n\nexport const applyVehicleSlotConstraints = (\n config: Config,\n vehicleTypes: string[]\n): Config => {\n if (vehicleTypes.length === 0) return config;\n const sectionTypes = sectionComponentTypes(config);\n if (sectionTypes.length === 0) return config;\n\n const components = Object.fromEntries(\n Object.entries(config.components).map(([type, componentConfig]) => {\n const fields = componentConfig.fields as Fields | undefined;\n if (!fields) return [type, componentConfig];\n return [\n type,\n {\n ...componentConfig,\n fields: constrainFields(fields, sectionTypes, vehicleTypes),\n },\n ];\n })\n );\n\n return { ...config, components } as Config;\n};\n"],"mappings":"AAEA,SAASA,qBAAqB,QAAQ,gCAAgC;AAKtE,MAAMC,iBAAiB,GAAGA,CACxBC,IAA0B,EAC1BC,YAAsB,KACV,CAAC,CAACD,IAAI,IAAIA,IAAI,CAACE,IAAI,CAAEC,IAAI,IAAKF,YAAY,CAACG,QAAQ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BE,MAAc,EACdd,YAAsB,EACtBM,YAAsB,KAEtBS,MAAM,CAACC,WAAW,CAChBD,MAAM,CAACE,OAAO,CAACH,MAAM,CAAC,CAACI,GAAG,CAAC,CAAC,CAACC,IAAI,EAAEd,KAAK,CAAC,KAAK,CAC5Cc,IAAI,EACJT,cAAc,CAACL,KAAK,EAAEL,YAAY,EAAEM,YAAY,CAAC,CAClD,CACH,CAAC;AAEH,OAAO,MAAMc,2BAA2B,GAAGA,CACzCC,MAAc,EACdf,YAAsB,KACX;EACX,IAAIA,YAAY,CAACgB,MAAM,KAAK,CAAC,EAAE,OAAOD,MAAM;EAC5C,MAAMrB,YAAY,GAAGH,qBAAqB,CAACwB,MAAM,CAAC;EAClD,IAAIrB,YAAY,CAACsB,MAAM,KAAK,CAAC,EAAE,OAAOD,MAAM;EAE5C,MAAME,UAAU,GAAGR,MAAM,CAACC,WAAW,CACnCD,MAAM,CAACE,OAAO,CAACI,MAAM,CAACE,UAAU,CAAC,CAACL,GAAG,CAAC,CAAC,CAAChB,IAAI,EAAEsB,eAAe,CAAC,KAAK;IACjE,MAAMV,MAAM,GAAGU,eAAe,CAACV,MAA4B;IAC3D,IAAI,CAACA,MAAM,EAAE,OAAO,CAACZ,IAAI,EAAEsB,eAAe,CAAC;IAC3C,OAAO,CACLtB,IAAI,EACJ;MACE,GAAGsB,eAAe;MAClBV,MAAM,EAAEF,eAAe,CAACE,MAAM,EAAEd,YAAY,EAAEM,YAAY;IAC5D,CAAC,CACF;EACH,CAAC,CACH,CAAC;EAED,OAAO;IAAE,GAAGe,MAAM;IAAEE;EAAW,CAAC;AAClC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Content } from '@puckeditor/core';
|
|
2
|
+
import type { TemplateCategory } from './templates';
|
|
3
|
+
type ContentTemplateModalProps = {
|
|
4
|
+
content: Content | null;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
setIsOpen: (arg: boolean) => void;
|
|
7
|
+
category: TemplateCategory;
|
|
8
|
+
onTemplateSaved?: () => void;
|
|
9
|
+
};
|
|
10
|
+
export default function ComponentTemplateModal({ content, isOpen, setIsOpen, category, onTemplateSaved, }: ContentTemplateModalProps): import("react").JSX.Element | null;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=component-template-modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-template-modal.d.ts","sourceRoot":"","sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/component-template-modal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAW3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,OAAO,EACP,MAAM,EACN,SAAS,EACT,QAAQ,EACR,eAAe,GAChB,EAAE,yBAAyB,sCA4B3B"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { usePuckDictionary } from '../../i18n';
|
|
5
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '../../ui/dialog';
|
|
6
|
+
import { TemplateForm } from './template-form';
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
export default function ComponentTemplateModal(t0) {
|
|
9
|
+
const $ = _c(26);
|
|
10
|
+
const {
|
|
11
|
+
content,
|
|
12
|
+
isOpen,
|
|
13
|
+
setIsOpen,
|
|
14
|
+
category,
|
|
15
|
+
onTemplateSaved
|
|
16
|
+
} = t0;
|
|
17
|
+
const t = usePuckDictionary().templates;
|
|
18
|
+
if (!content) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
let t1;
|
|
22
|
+
if ($[0] !== onTemplateSaved || $[1] !== setIsOpen) {
|
|
23
|
+
t1 = () => {
|
|
24
|
+
setIsOpen(false);
|
|
25
|
+
onTemplateSaved?.();
|
|
26
|
+
};
|
|
27
|
+
$[0] = onTemplateSaved;
|
|
28
|
+
$[1] = setIsOpen;
|
|
29
|
+
$[2] = t1;
|
|
30
|
+
} else {
|
|
31
|
+
t1 = $[2];
|
|
32
|
+
}
|
|
33
|
+
const handleTemplateSaved = t1;
|
|
34
|
+
let t2;
|
|
35
|
+
if ($[3] !== setIsOpen) {
|
|
36
|
+
t2 = open => !open && setIsOpen(false);
|
|
37
|
+
$[3] = setIsOpen;
|
|
38
|
+
$[4] = t2;
|
|
39
|
+
} else {
|
|
40
|
+
t2 = $[4];
|
|
41
|
+
}
|
|
42
|
+
let t3;
|
|
43
|
+
if ($[5] !== t.saveAsComponentTemplate) {
|
|
44
|
+
t3 = /*#__PURE__*/_jsx(DialogTitle, {
|
|
45
|
+
children: t.saveAsComponentTemplate
|
|
46
|
+
});
|
|
47
|
+
$[5] = t.saveAsComponentTemplate;
|
|
48
|
+
$[6] = t3;
|
|
49
|
+
} else {
|
|
50
|
+
t3 = $[6];
|
|
51
|
+
}
|
|
52
|
+
let t4;
|
|
53
|
+
if ($[7] !== t.saveComponentDialogDescription) {
|
|
54
|
+
t4 = /*#__PURE__*/_jsx(DialogDescription, {
|
|
55
|
+
children: t.saveComponentDialogDescription
|
|
56
|
+
});
|
|
57
|
+
$[7] = t.saveComponentDialogDescription;
|
|
58
|
+
$[8] = t4;
|
|
59
|
+
} else {
|
|
60
|
+
t4 = $[8];
|
|
61
|
+
}
|
|
62
|
+
let t5;
|
|
63
|
+
if ($[9] !== t3 || $[10] !== t4) {
|
|
64
|
+
t5 = /*#__PURE__*/_jsxs(DialogHeader, {
|
|
65
|
+
children: [t3, t4]
|
|
66
|
+
});
|
|
67
|
+
$[9] = t3;
|
|
68
|
+
$[10] = t4;
|
|
69
|
+
$[11] = t5;
|
|
70
|
+
} else {
|
|
71
|
+
t5 = $[11];
|
|
72
|
+
}
|
|
73
|
+
let t6;
|
|
74
|
+
if ($[12] !== setIsOpen) {
|
|
75
|
+
t6 = () => setIsOpen(false);
|
|
76
|
+
$[12] = setIsOpen;
|
|
77
|
+
$[13] = t6;
|
|
78
|
+
} else {
|
|
79
|
+
t6 = $[13];
|
|
80
|
+
}
|
|
81
|
+
let t7;
|
|
82
|
+
if ($[14] !== category || $[15] !== content || $[16] !== handleTemplateSaved || $[17] !== t6) {
|
|
83
|
+
t7 = /*#__PURE__*/_jsx(TemplateForm, {
|
|
84
|
+
content: content,
|
|
85
|
+
onCancel: t6,
|
|
86
|
+
onTemplateSaved: handleTemplateSaved,
|
|
87
|
+
category: category
|
|
88
|
+
});
|
|
89
|
+
$[14] = category;
|
|
90
|
+
$[15] = content;
|
|
91
|
+
$[16] = handleTemplateSaved;
|
|
92
|
+
$[17] = t6;
|
|
93
|
+
$[18] = t7;
|
|
94
|
+
} else {
|
|
95
|
+
t7 = $[18];
|
|
96
|
+
}
|
|
97
|
+
let t8;
|
|
98
|
+
if ($[19] !== t5 || $[20] !== t7) {
|
|
99
|
+
t8 = /*#__PURE__*/_jsxs(DialogContent, {
|
|
100
|
+
className: "nh:max-h-dvh nh:max-w-lg nh:overflow-y-auto",
|
|
101
|
+
children: [t5, t7]
|
|
102
|
+
});
|
|
103
|
+
$[19] = t5;
|
|
104
|
+
$[20] = t7;
|
|
105
|
+
$[21] = t8;
|
|
106
|
+
} else {
|
|
107
|
+
t8 = $[21];
|
|
108
|
+
}
|
|
109
|
+
let t9;
|
|
110
|
+
if ($[22] !== isOpen || $[23] !== t2 || $[24] !== t8) {
|
|
111
|
+
t9 = /*#__PURE__*/_jsx(Dialog, {
|
|
112
|
+
open: isOpen,
|
|
113
|
+
onOpenChange: t2,
|
|
114
|
+
children: t8
|
|
115
|
+
});
|
|
116
|
+
$[22] = isOpen;
|
|
117
|
+
$[23] = t2;
|
|
118
|
+
$[24] = t8;
|
|
119
|
+
$[25] = t9;
|
|
120
|
+
} else {
|
|
121
|
+
t9 = $[25];
|
|
122
|
+
}
|
|
123
|
+
return t9;
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=component-template-modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-template-modal.js","names":["c","_c","usePuckDictionary","Dialog","DialogContent","DialogDescription","DialogHeader","DialogTitle","TemplateForm","jsx","_jsx","jsxs","_jsxs","ComponentTemplateModal","t0","$","content","isOpen","setIsOpen","category","onTemplateSaved","t","templates","t1","handleTemplateSaved","t2","open","t3","saveAsComponentTemplate","children","t4","saveComponentDialogDescription","t5","t6","t7","onCancel","t8","className","t9","onOpenChange"],"sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/component-template-modal.tsx"],"sourcesContent":["'use client';\n\nimport { Content } from '@puckeditor/core';\n\nimport { usePuckDictionary } from '../../i18n';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from '../../ui/dialog';\nimport { TemplateForm } from './template-form';\nimport type { TemplateCategory } from './templates';\n\ntype ContentTemplateModalProps = {\n content: Content | null;\n isOpen: boolean;\n setIsOpen: (arg: boolean) => void;\n category: TemplateCategory;\n onTemplateSaved?: () => void;\n};\n\nexport default function ComponentTemplateModal({\n content,\n isOpen,\n setIsOpen,\n category,\n onTemplateSaved,\n}: ContentTemplateModalProps) {\n const t = usePuckDictionary().templates;\n\n if (!content) return null;\n\n const handleTemplateSaved = () => {\n setIsOpen(false);\n onTemplateSaved?.();\n };\n\n return (\n <Dialog open={isOpen} onOpenChange={(open) => !open && setIsOpen(false)}>\n <DialogContent className=\"nh:max-h-dvh nh:max-w-lg nh:overflow-y-auto\">\n <DialogHeader>\n <DialogTitle>{t.saveAsComponentTemplate}</DialogTitle>\n <DialogDescription>\n {t.saveComponentDialogDescription}\n </DialogDescription>\n </DialogHeader>\n <TemplateForm\n content={content}\n onCancel={() => setIsOpen(false)}\n onTemplateSaved={handleTemplateSaved}\n category={category}\n />\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAIb,SAASC,iBAAiB,QAAQ,YAAY;AAC9C,SACEC,MAAM,EACNC,aAAa,EACbC,iBAAiB,EACjBC,YAAY,EACZC,WAAW,QACN,iBAAiB;AACxB,SAASC,YAAY,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAW/C,eAAe,SAAAC,uBAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAd,EAAA;EAAgC;IAAAe,OAAA;IAAAC,MAAA;IAAAC,SAAA;IAAAC,QAAA;IAAAC;EAAA,IAAAN,EAMnB;EAC1B,MAAAO,CAAA,GAAUnB,iBAAiB,CAAC,CAAC,CAAAoB,SAAU;EAEvC,IAAI,CAACN,OAAO;IAAA,OAAS,IAAI;EAAA;EAAC,IAAAO,EAAA;EAAA,IAAAR,CAAA,QAAAK,eAAA,IAAAL,CAAA,QAAAG,SAAA;IAEEK,EAAA,GAAAA,CAAA;MAC1BL,SAAS,CAAC,KAAK,CAAC;MAChBE,eAAe,GAAG,CAAC;IAAA,CACpB;IAAAL,CAAA,MAAAK,eAAA;IAAAL,CAAA,MAAAG,SAAA;IAAAH,CAAA,MAAAQ,EAAA;EAAA;IAAAA,EAAA,GAAAR,CAAA;EAAA;EAHD,MAAAS,mBAAA,GAA4BD,EAG3B;EAAC,IAAAE,EAAA;EAAA,IAAAV,CAAA,QAAAG,SAAA;IAGoCO,EAAA,GAAAC,IAAA,IAAU,CAACA,IAAwB,IAAhBR,SAAS,CAAC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';
|
|
2
|
+
export declare function CustomTemplateList({ title, category, query, onInsert, }: {
|
|
3
|
+
title: string;
|
|
4
|
+
category: TemplateCategory;
|
|
5
|
+
query?: string;
|
|
6
|
+
onInsert?: (template: Template) => void;
|
|
7
|
+
}): import("react").JSX.Element | null;
|
|
8
|
+
//# sourceMappingURL=custom-template-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-template-list.d.ts","sourceRoot":"","sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/custom-template-list.tsx"],"names":[],"mappings":"AAqBA,OAAO,EACL,QAAQ,EACR,gBAAgB,EAIjB,MAAM,aAAa,CAAC;AAKrB,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,QAAQ,EACR,KAAU,EACV,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CACzC,sCAmMA"}
|