@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,582 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { Button, Drawer } from '@puckeditor/core';
|
|
6
|
+
import { PencilIcon, Trash2Icon } from 'lucide-react';
|
|
7
|
+
import { toast } from 'sonner';
|
|
8
|
+
import { templateIcon } from '../../editor/component-icons';
|
|
9
|
+
import { usePuckDictionary, usePuckLocale } from '../../i18n';
|
|
10
|
+
import { ComponentListAccordion } from '../../ui/component-list-accordion';
|
|
11
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '../../ui/dialog';
|
|
12
|
+
import { DrawerItemContent } from '../../ui/drawer-item-content';
|
|
13
|
+
import { IconButton } from '../../ui/icon-button';
|
|
14
|
+
import { AiOptionsFields } from './ai-options-fields';
|
|
15
|
+
import { TEMPLATE_PREFIX } from './template-vehicles';
|
|
16
|
+
import { templateKey, templateLabel, templateMatchesQuery } from './templates';
|
|
17
|
+
import { useTemplates } from './use-templates';
|
|
18
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
const stopDrag = e => e.stopPropagation();
|
|
20
|
+
export function CustomTemplateList(t0) {
|
|
21
|
+
const $ = _c(126);
|
|
22
|
+
const {
|
|
23
|
+
title,
|
|
24
|
+
category,
|
|
25
|
+
query: t1,
|
|
26
|
+
onInsert
|
|
27
|
+
} = t0;
|
|
28
|
+
const query = t1 === undefined ? "" : t1;
|
|
29
|
+
const t = usePuckDictionary().templates;
|
|
30
|
+
const tEditor = usePuckDictionary().editor;
|
|
31
|
+
const locale = usePuckLocale();
|
|
32
|
+
const {
|
|
33
|
+
templates,
|
|
34
|
+
update,
|
|
35
|
+
remove
|
|
36
|
+
} = useTemplates();
|
|
37
|
+
const [expanded, setExpanded] = useState(true);
|
|
38
|
+
const [editTarget, setEditTarget] = useState(null);
|
|
39
|
+
const [deleteTarget, setDeleteTarget] = useState(null);
|
|
40
|
+
const [isPending, setIsPending] = useState(false);
|
|
41
|
+
let T0;
|
|
42
|
+
let T1;
|
|
43
|
+
let handleDelete;
|
|
44
|
+
let handleEdit;
|
|
45
|
+
let t2;
|
|
46
|
+
let t3;
|
|
47
|
+
let t4;
|
|
48
|
+
let t5;
|
|
49
|
+
let t6;
|
|
50
|
+
let t7;
|
|
51
|
+
let t8;
|
|
52
|
+
if ($[0] !== category || $[1] !== deleteTarget || $[2] !== editTarget || $[3] !== expanded || $[4] !== locale || $[5] !== onInsert || $[6] !== query || $[7] !== remove || $[8] !== t || $[9] !== tEditor || $[10] !== templates || $[11] !== title || $[12] !== update) {
|
|
53
|
+
t8 = Symbol.for("react.early_return_sentinel");
|
|
54
|
+
bb0: {
|
|
55
|
+
const normalizedQuery = query.trim().toLowerCase();
|
|
56
|
+
const items = templates.filter(template => template.category === category && template.source === "custom" && templateMatchesQuery(template, locale, normalizedQuery));
|
|
57
|
+
if (items.length === 0) {
|
|
58
|
+
t8 = null;
|
|
59
|
+
break bb0;
|
|
60
|
+
}
|
|
61
|
+
let t9;
|
|
62
|
+
if ($[24] !== editTarget || $[25] !== t.updated || $[26] !== update) {
|
|
63
|
+
t9 = async e => {
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
if (!editTarget) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const formData = new FormData(e.currentTarget);
|
|
69
|
+
const title_0 = String(formData.get("name") ?? "").trim();
|
|
70
|
+
if (!title_0) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
setIsPending(true);
|
|
74
|
+
const result = await update(editTarget, {
|
|
75
|
+
title: title_0,
|
|
76
|
+
aiDescription: String(formData.get("aiDescription") ?? "").trim(),
|
|
77
|
+
aiInstructions: String(formData.get("aiInstructions") ?? "").trim()
|
|
78
|
+
});
|
|
79
|
+
setIsPending(false);
|
|
80
|
+
if (!result.success) {
|
|
81
|
+
toast.error(result.message);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
toast.success(t.updated);
|
|
85
|
+
setEditTarget(null);
|
|
86
|
+
};
|
|
87
|
+
$[24] = editTarget;
|
|
88
|
+
$[25] = t.updated;
|
|
89
|
+
$[26] = update;
|
|
90
|
+
$[27] = t9;
|
|
91
|
+
} else {
|
|
92
|
+
t9 = $[27];
|
|
93
|
+
}
|
|
94
|
+
handleEdit = t9;
|
|
95
|
+
let t10;
|
|
96
|
+
if ($[28] !== deleteTarget || $[29] !== remove || $[30] !== t.deleted) {
|
|
97
|
+
t10 = async () => {
|
|
98
|
+
if (!deleteTarget) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
setIsPending(true);
|
|
102
|
+
const result_0 = await remove(deleteTarget);
|
|
103
|
+
setIsPending(false);
|
|
104
|
+
if (!result_0.success) {
|
|
105
|
+
toast.error(result_0.message);
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
toast.success(t.deleted);
|
|
109
|
+
setDeleteTarget(null);
|
|
110
|
+
};
|
|
111
|
+
$[28] = deleteTarget;
|
|
112
|
+
$[29] = remove;
|
|
113
|
+
$[30] = t.deleted;
|
|
114
|
+
$[31] = t10;
|
|
115
|
+
} else {
|
|
116
|
+
t10 = $[31];
|
|
117
|
+
}
|
|
118
|
+
handleDelete = t10;
|
|
119
|
+
T1 = ComponentListAccordion;
|
|
120
|
+
t3 = title;
|
|
121
|
+
t4 = expanded;
|
|
122
|
+
if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
|
|
123
|
+
t5 = () => setExpanded(_temp);
|
|
124
|
+
$[32] = t5;
|
|
125
|
+
} else {
|
|
126
|
+
t5 = $[32];
|
|
127
|
+
}
|
|
128
|
+
t6 = t.expand;
|
|
129
|
+
t7 = t.collapse;
|
|
130
|
+
T0 = Drawer;
|
|
131
|
+
let t11;
|
|
132
|
+
if ($[33] !== category || $[34] !== locale || $[35] !== onInsert || $[36] !== t.deleteTemplate || $[37] !== t.editTemplate || $[38] !== tEditor) {
|
|
133
|
+
t11 = template_0 => /*#__PURE__*/_jsx(Drawer.Item, {
|
|
134
|
+
name: `${TEMPLATE_PREFIX}${templateKey(template_0)}`,
|
|
135
|
+
label: templateLabel(template_0, locale),
|
|
136
|
+
children: () => /*#__PURE__*/_jsx(DrawerItemContent, {
|
|
137
|
+
icon: templateIcon(template_0.icon, category),
|
|
138
|
+
label: templateLabel(template_0, locale),
|
|
139
|
+
onAdd: () => onInsert?.(template_0),
|
|
140
|
+
addLabel: tEditor.add,
|
|
141
|
+
actions: /*#__PURE__*/_jsxs(_Fragment, {
|
|
142
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
143
|
+
title: t.editTemplate,
|
|
144
|
+
onPointerDown: stopDrag,
|
|
145
|
+
onClick: e_0 => {
|
|
146
|
+
e_0.stopPropagation();
|
|
147
|
+
setEditTarget(template_0);
|
|
148
|
+
},
|
|
149
|
+
className: "nh:hidden nh:group-hover:block nh:hover:text-gray-700",
|
|
150
|
+
children: /*#__PURE__*/_jsx(PencilIcon, {
|
|
151
|
+
className: "nh:h-4 nh:w-4"
|
|
152
|
+
})
|
|
153
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
|
154
|
+
title: t.deleteTemplate,
|
|
155
|
+
onPointerDown: stopDrag,
|
|
156
|
+
onClick: e_1 => {
|
|
157
|
+
e_1.stopPropagation();
|
|
158
|
+
setDeleteTarget(template_0);
|
|
159
|
+
},
|
|
160
|
+
className: "nh:hidden nh:group-hover:block nh:hover:text-red-600",
|
|
161
|
+
children: /*#__PURE__*/_jsx(Trash2Icon, {
|
|
162
|
+
className: "nh:h-4 nh:w-4"
|
|
163
|
+
})
|
|
164
|
+
})]
|
|
165
|
+
})
|
|
166
|
+
})
|
|
167
|
+
}, templateKey(template_0));
|
|
168
|
+
$[33] = category;
|
|
169
|
+
$[34] = locale;
|
|
170
|
+
$[35] = onInsert;
|
|
171
|
+
$[36] = t.deleteTemplate;
|
|
172
|
+
$[37] = t.editTemplate;
|
|
173
|
+
$[38] = tEditor;
|
|
174
|
+
$[39] = t11;
|
|
175
|
+
} else {
|
|
176
|
+
t11 = $[39];
|
|
177
|
+
}
|
|
178
|
+
t2 = items.map(t11);
|
|
179
|
+
}
|
|
180
|
+
$[0] = category;
|
|
181
|
+
$[1] = deleteTarget;
|
|
182
|
+
$[2] = editTarget;
|
|
183
|
+
$[3] = expanded;
|
|
184
|
+
$[4] = locale;
|
|
185
|
+
$[5] = onInsert;
|
|
186
|
+
$[6] = query;
|
|
187
|
+
$[7] = remove;
|
|
188
|
+
$[8] = t;
|
|
189
|
+
$[9] = tEditor;
|
|
190
|
+
$[10] = templates;
|
|
191
|
+
$[11] = title;
|
|
192
|
+
$[12] = update;
|
|
193
|
+
$[13] = T0;
|
|
194
|
+
$[14] = T1;
|
|
195
|
+
$[15] = handleDelete;
|
|
196
|
+
$[16] = handleEdit;
|
|
197
|
+
$[17] = t2;
|
|
198
|
+
$[18] = t3;
|
|
199
|
+
$[19] = t4;
|
|
200
|
+
$[20] = t5;
|
|
201
|
+
$[21] = t6;
|
|
202
|
+
$[22] = t7;
|
|
203
|
+
$[23] = t8;
|
|
204
|
+
} else {
|
|
205
|
+
T0 = $[13];
|
|
206
|
+
T1 = $[14];
|
|
207
|
+
handleDelete = $[15];
|
|
208
|
+
handleEdit = $[16];
|
|
209
|
+
t2 = $[17];
|
|
210
|
+
t3 = $[18];
|
|
211
|
+
t4 = $[19];
|
|
212
|
+
t5 = $[20];
|
|
213
|
+
t6 = $[21];
|
|
214
|
+
t7 = $[22];
|
|
215
|
+
t8 = $[23];
|
|
216
|
+
}
|
|
217
|
+
if (t8 !== Symbol.for("react.early_return_sentinel")) {
|
|
218
|
+
return t8;
|
|
219
|
+
}
|
|
220
|
+
let t9;
|
|
221
|
+
if ($[40] !== T0 || $[41] !== t2) {
|
|
222
|
+
t9 = /*#__PURE__*/_jsx(T0, {
|
|
223
|
+
children: t2
|
|
224
|
+
});
|
|
225
|
+
$[40] = T0;
|
|
226
|
+
$[41] = t2;
|
|
227
|
+
$[42] = t9;
|
|
228
|
+
} else {
|
|
229
|
+
t9 = $[42];
|
|
230
|
+
}
|
|
231
|
+
let t10;
|
|
232
|
+
if ($[43] !== T1 || $[44] !== t3 || $[45] !== t4 || $[46] !== t5 || $[47] !== t6 || $[48] !== t7 || $[49] !== t9) {
|
|
233
|
+
t10 = /*#__PURE__*/_jsx(T1, {
|
|
234
|
+
title: t3,
|
|
235
|
+
expanded: t4,
|
|
236
|
+
onToggle: t5,
|
|
237
|
+
expandLabel: t6,
|
|
238
|
+
collapseLabel: t7,
|
|
239
|
+
children: t9
|
|
240
|
+
});
|
|
241
|
+
$[43] = T1;
|
|
242
|
+
$[44] = t3;
|
|
243
|
+
$[45] = t4;
|
|
244
|
+
$[46] = t5;
|
|
245
|
+
$[47] = t6;
|
|
246
|
+
$[48] = t7;
|
|
247
|
+
$[49] = t9;
|
|
248
|
+
$[50] = t10;
|
|
249
|
+
} else {
|
|
250
|
+
t10 = $[50];
|
|
251
|
+
}
|
|
252
|
+
const t11 = editTarget !== null;
|
|
253
|
+
let t12;
|
|
254
|
+
if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
|
|
255
|
+
t12 = open => !open && setEditTarget(null);
|
|
256
|
+
$[51] = t12;
|
|
257
|
+
} else {
|
|
258
|
+
t12 = $[51];
|
|
259
|
+
}
|
|
260
|
+
let t13;
|
|
261
|
+
if ($[52] !== t.editTemplate) {
|
|
262
|
+
t13 = /*#__PURE__*/_jsx(DialogTitle, {
|
|
263
|
+
children: t.editTemplate
|
|
264
|
+
});
|
|
265
|
+
$[52] = t.editTemplate;
|
|
266
|
+
$[53] = t13;
|
|
267
|
+
} else {
|
|
268
|
+
t13 = $[53];
|
|
269
|
+
}
|
|
270
|
+
let t14;
|
|
271
|
+
if ($[54] !== t.editDialogDescription) {
|
|
272
|
+
t14 = /*#__PURE__*/_jsx(DialogDescription, {
|
|
273
|
+
children: t.editDialogDescription
|
|
274
|
+
});
|
|
275
|
+
$[54] = t.editDialogDescription;
|
|
276
|
+
$[55] = t14;
|
|
277
|
+
} else {
|
|
278
|
+
t14 = $[55];
|
|
279
|
+
}
|
|
280
|
+
let t15;
|
|
281
|
+
if ($[56] !== t13 || $[57] !== t14) {
|
|
282
|
+
t15 = /*#__PURE__*/_jsxs(DialogHeader, {
|
|
283
|
+
children: [t13, t14]
|
|
284
|
+
});
|
|
285
|
+
$[56] = t13;
|
|
286
|
+
$[57] = t14;
|
|
287
|
+
$[58] = t15;
|
|
288
|
+
} else {
|
|
289
|
+
t15 = $[58];
|
|
290
|
+
}
|
|
291
|
+
const t16 = editTarget?.id;
|
|
292
|
+
let t17;
|
|
293
|
+
if ($[59] !== t.name) {
|
|
294
|
+
t17 = /*#__PURE__*/_jsx("label", {
|
|
295
|
+
htmlFor: "template-name",
|
|
296
|
+
className: "nh:block nh:text-sm nh:font-medium nh:text-gray-700",
|
|
297
|
+
children: t.name
|
|
298
|
+
});
|
|
299
|
+
$[59] = t.name;
|
|
300
|
+
$[60] = t17;
|
|
301
|
+
} else {
|
|
302
|
+
t17 = $[60];
|
|
303
|
+
}
|
|
304
|
+
let t18;
|
|
305
|
+
if ($[61] !== editTarget || $[62] !== locale) {
|
|
306
|
+
t18 = editTarget ? templateLabel(editTarget, locale) : "";
|
|
307
|
+
$[61] = editTarget;
|
|
308
|
+
$[62] = locale;
|
|
309
|
+
$[63] = t18;
|
|
310
|
+
} else {
|
|
311
|
+
t18 = $[63];
|
|
312
|
+
}
|
|
313
|
+
let t19;
|
|
314
|
+
if ($[64] !== t18) {
|
|
315
|
+
t19 = /*#__PURE__*/_jsx("input", {
|
|
316
|
+
type: "text",
|
|
317
|
+
id: "template-name",
|
|
318
|
+
name: "name",
|
|
319
|
+
defaultValue: t18,
|
|
320
|
+
autoFocus: true,
|
|
321
|
+
required: true,
|
|
322
|
+
className: "nh:mt-1 nh:block nh:w-full nh:rounded-md nh:border-gray-300 nh:shadow-sm"
|
|
323
|
+
});
|
|
324
|
+
$[64] = t18;
|
|
325
|
+
$[65] = t19;
|
|
326
|
+
} else {
|
|
327
|
+
t19 = $[65];
|
|
328
|
+
}
|
|
329
|
+
let t20;
|
|
330
|
+
if ($[66] !== t17 || $[67] !== t19) {
|
|
331
|
+
t20 = /*#__PURE__*/_jsxs("div", {
|
|
332
|
+
children: [t17, t19]
|
|
333
|
+
});
|
|
334
|
+
$[66] = t17;
|
|
335
|
+
$[67] = t19;
|
|
336
|
+
$[68] = t20;
|
|
337
|
+
} else {
|
|
338
|
+
t20 = $[68];
|
|
339
|
+
}
|
|
340
|
+
const t21 = Boolean(editTarget?.ai?.description || editTarget?.ai?.instructions);
|
|
341
|
+
const t22 = editTarget?.ai?.description ?? "";
|
|
342
|
+
const t23 = editTarget?.ai?.instructions ?? "";
|
|
343
|
+
let t24;
|
|
344
|
+
if ($[69] !== t21 || $[70] !== t22 || $[71] !== t23) {
|
|
345
|
+
t24 = /*#__PURE__*/_jsx(AiOptionsFields, {
|
|
346
|
+
defaultExpanded: t21,
|
|
347
|
+
defaultDescription: t22,
|
|
348
|
+
defaultInstructions: t23
|
|
349
|
+
});
|
|
350
|
+
$[69] = t21;
|
|
351
|
+
$[70] = t22;
|
|
352
|
+
$[71] = t23;
|
|
353
|
+
$[72] = t24;
|
|
354
|
+
} else {
|
|
355
|
+
t24 = $[72];
|
|
356
|
+
}
|
|
357
|
+
let t25;
|
|
358
|
+
if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
|
|
359
|
+
t25 = () => setEditTarget(null);
|
|
360
|
+
$[73] = t25;
|
|
361
|
+
} else {
|
|
362
|
+
t25 = $[73];
|
|
363
|
+
}
|
|
364
|
+
let t26;
|
|
365
|
+
if ($[74] !== t.cancel) {
|
|
366
|
+
t26 = /*#__PURE__*/_jsx(Button, {
|
|
367
|
+
type: "button",
|
|
368
|
+
variant: "secondary",
|
|
369
|
+
onClick: t25,
|
|
370
|
+
children: t.cancel
|
|
371
|
+
});
|
|
372
|
+
$[74] = t.cancel;
|
|
373
|
+
$[75] = t26;
|
|
374
|
+
} else {
|
|
375
|
+
t26 = $[75];
|
|
376
|
+
}
|
|
377
|
+
let t27;
|
|
378
|
+
if ($[76] !== isPending || $[77] !== t.save) {
|
|
379
|
+
t27 = /*#__PURE__*/_jsx(Button, {
|
|
380
|
+
type: "submit",
|
|
381
|
+
disabled: isPending,
|
|
382
|
+
loading: isPending,
|
|
383
|
+
children: t.save
|
|
384
|
+
});
|
|
385
|
+
$[76] = isPending;
|
|
386
|
+
$[77] = t.save;
|
|
387
|
+
$[78] = t27;
|
|
388
|
+
} else {
|
|
389
|
+
t27 = $[78];
|
|
390
|
+
}
|
|
391
|
+
let t28;
|
|
392
|
+
if ($[79] !== t26 || $[80] !== t27) {
|
|
393
|
+
t28 = /*#__PURE__*/_jsxs("div", {
|
|
394
|
+
className: "nh:flex nh:justify-end nh:gap-2",
|
|
395
|
+
children: [t26, t27]
|
|
396
|
+
});
|
|
397
|
+
$[79] = t26;
|
|
398
|
+
$[80] = t27;
|
|
399
|
+
$[81] = t28;
|
|
400
|
+
} else {
|
|
401
|
+
t28 = $[81];
|
|
402
|
+
}
|
|
403
|
+
let t29;
|
|
404
|
+
if ($[82] !== handleEdit || $[83] !== t16 || $[84] !== t20 || $[85] !== t24 || $[86] !== t28) {
|
|
405
|
+
t29 = /*#__PURE__*/_jsxs("form", {
|
|
406
|
+
onSubmit: handleEdit,
|
|
407
|
+
className: "nh:space-y-4",
|
|
408
|
+
children: [t20, t24, t28]
|
|
409
|
+
}, t16);
|
|
410
|
+
$[82] = handleEdit;
|
|
411
|
+
$[83] = t16;
|
|
412
|
+
$[84] = t20;
|
|
413
|
+
$[85] = t24;
|
|
414
|
+
$[86] = t28;
|
|
415
|
+
$[87] = t29;
|
|
416
|
+
} else {
|
|
417
|
+
t29 = $[87];
|
|
418
|
+
}
|
|
419
|
+
let t30;
|
|
420
|
+
if ($[88] !== t15 || $[89] !== t29) {
|
|
421
|
+
t30 = /*#__PURE__*/_jsxs(DialogContent, {
|
|
422
|
+
className: "max-w-md",
|
|
423
|
+
children: [t15, t29]
|
|
424
|
+
});
|
|
425
|
+
$[88] = t15;
|
|
426
|
+
$[89] = t29;
|
|
427
|
+
$[90] = t30;
|
|
428
|
+
} else {
|
|
429
|
+
t30 = $[90];
|
|
430
|
+
}
|
|
431
|
+
let t31;
|
|
432
|
+
if ($[91] !== t11 || $[92] !== t30) {
|
|
433
|
+
t31 = /*#__PURE__*/_jsx(Dialog, {
|
|
434
|
+
open: t11,
|
|
435
|
+
onOpenChange: t12,
|
|
436
|
+
children: t30
|
|
437
|
+
});
|
|
438
|
+
$[91] = t11;
|
|
439
|
+
$[92] = t30;
|
|
440
|
+
$[93] = t31;
|
|
441
|
+
} else {
|
|
442
|
+
t31 = $[93];
|
|
443
|
+
}
|
|
444
|
+
const t32 = deleteTarget !== null;
|
|
445
|
+
let t33;
|
|
446
|
+
if ($[94] === Symbol.for("react.memo_cache_sentinel")) {
|
|
447
|
+
t33 = open_0 => !open_0 && setDeleteTarget(null);
|
|
448
|
+
$[94] = t33;
|
|
449
|
+
} else {
|
|
450
|
+
t33 = $[94];
|
|
451
|
+
}
|
|
452
|
+
let t34;
|
|
453
|
+
if ($[95] !== t.deleteTemplate) {
|
|
454
|
+
t34 = /*#__PURE__*/_jsx(DialogTitle, {
|
|
455
|
+
children: t.deleteTemplate
|
|
456
|
+
});
|
|
457
|
+
$[95] = t.deleteTemplate;
|
|
458
|
+
$[96] = t34;
|
|
459
|
+
} else {
|
|
460
|
+
t34 = $[96];
|
|
461
|
+
}
|
|
462
|
+
let t35;
|
|
463
|
+
if ($[97] !== deleteTarget || $[98] !== locale || $[99] !== t.deleteDialogDescription) {
|
|
464
|
+
t35 = t.deleteDialogDescription.replace("{title}", deleteTarget ? templateLabel(deleteTarget, locale) : "");
|
|
465
|
+
$[97] = deleteTarget;
|
|
466
|
+
$[98] = locale;
|
|
467
|
+
$[99] = t.deleteDialogDescription;
|
|
468
|
+
$[100] = t35;
|
|
469
|
+
} else {
|
|
470
|
+
t35 = $[100];
|
|
471
|
+
}
|
|
472
|
+
let t36;
|
|
473
|
+
if ($[101] !== t35) {
|
|
474
|
+
t36 = /*#__PURE__*/_jsx(DialogDescription, {
|
|
475
|
+
children: t35
|
|
476
|
+
});
|
|
477
|
+
$[101] = t35;
|
|
478
|
+
$[102] = t36;
|
|
479
|
+
} else {
|
|
480
|
+
t36 = $[102];
|
|
481
|
+
}
|
|
482
|
+
let t37;
|
|
483
|
+
if ($[103] !== t34 || $[104] !== t36) {
|
|
484
|
+
t37 = /*#__PURE__*/_jsxs(DialogHeader, {
|
|
485
|
+
children: [t34, t36]
|
|
486
|
+
});
|
|
487
|
+
$[103] = t34;
|
|
488
|
+
$[104] = t36;
|
|
489
|
+
$[105] = t37;
|
|
490
|
+
} else {
|
|
491
|
+
t37 = $[105];
|
|
492
|
+
}
|
|
493
|
+
let t38;
|
|
494
|
+
if ($[106] === Symbol.for("react.memo_cache_sentinel")) {
|
|
495
|
+
t38 = () => setDeleteTarget(null);
|
|
496
|
+
$[106] = t38;
|
|
497
|
+
} else {
|
|
498
|
+
t38 = $[106];
|
|
499
|
+
}
|
|
500
|
+
let t39;
|
|
501
|
+
if ($[107] !== t.cancel) {
|
|
502
|
+
t39 = /*#__PURE__*/_jsx(Button, {
|
|
503
|
+
type: "button",
|
|
504
|
+
variant: "secondary",
|
|
505
|
+
onClick: t38,
|
|
506
|
+
children: t.cancel
|
|
507
|
+
});
|
|
508
|
+
$[107] = t.cancel;
|
|
509
|
+
$[108] = t39;
|
|
510
|
+
} else {
|
|
511
|
+
t39 = $[108];
|
|
512
|
+
}
|
|
513
|
+
let t40;
|
|
514
|
+
if ($[109] !== handleDelete || $[110] !== isPending || $[111] !== t.delete) {
|
|
515
|
+
t40 = /*#__PURE__*/_jsx(Button, {
|
|
516
|
+
type: "button",
|
|
517
|
+
onClick: handleDelete,
|
|
518
|
+
loading: isPending,
|
|
519
|
+
children: t.delete
|
|
520
|
+
});
|
|
521
|
+
$[109] = handleDelete;
|
|
522
|
+
$[110] = isPending;
|
|
523
|
+
$[111] = t.delete;
|
|
524
|
+
$[112] = t40;
|
|
525
|
+
} else {
|
|
526
|
+
t40 = $[112];
|
|
527
|
+
}
|
|
528
|
+
let t41;
|
|
529
|
+
if ($[113] !== t39 || $[114] !== t40) {
|
|
530
|
+
t41 = /*#__PURE__*/_jsxs("div", {
|
|
531
|
+
className: "nh:flex nh:justify-end nh:gap-2",
|
|
532
|
+
children: [t39, t40]
|
|
533
|
+
});
|
|
534
|
+
$[113] = t39;
|
|
535
|
+
$[114] = t40;
|
|
536
|
+
$[115] = t41;
|
|
537
|
+
} else {
|
|
538
|
+
t41 = $[115];
|
|
539
|
+
}
|
|
540
|
+
let t42;
|
|
541
|
+
if ($[116] !== t37 || $[117] !== t41) {
|
|
542
|
+
t42 = /*#__PURE__*/_jsxs(DialogContent, {
|
|
543
|
+
className: "max-w-md",
|
|
544
|
+
children: [t37, t41]
|
|
545
|
+
});
|
|
546
|
+
$[116] = t37;
|
|
547
|
+
$[117] = t41;
|
|
548
|
+
$[118] = t42;
|
|
549
|
+
} else {
|
|
550
|
+
t42 = $[118];
|
|
551
|
+
}
|
|
552
|
+
let t43;
|
|
553
|
+
if ($[119] !== t32 || $[120] !== t42) {
|
|
554
|
+
t43 = /*#__PURE__*/_jsx(Dialog, {
|
|
555
|
+
open: t32,
|
|
556
|
+
onOpenChange: t33,
|
|
557
|
+
children: t42
|
|
558
|
+
});
|
|
559
|
+
$[119] = t32;
|
|
560
|
+
$[120] = t42;
|
|
561
|
+
$[121] = t43;
|
|
562
|
+
} else {
|
|
563
|
+
t43 = $[121];
|
|
564
|
+
}
|
|
565
|
+
let t44;
|
|
566
|
+
if ($[122] !== t10 || $[123] !== t31 || $[124] !== t43) {
|
|
567
|
+
t44 = /*#__PURE__*/_jsxs(_Fragment, {
|
|
568
|
+
children: [t10, t31, t43]
|
|
569
|
+
});
|
|
570
|
+
$[122] = t10;
|
|
571
|
+
$[123] = t31;
|
|
572
|
+
$[124] = t43;
|
|
573
|
+
$[125] = t44;
|
|
574
|
+
} else {
|
|
575
|
+
t44 = $[125];
|
|
576
|
+
}
|
|
577
|
+
return t44;
|
|
578
|
+
}
|
|
579
|
+
function _temp(value) {
|
|
580
|
+
return !value;
|
|
581
|
+
}
|
|
582
|
+
//# sourceMappingURL=custom-template-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-template-list.js","names":["c","_c","useState","Button","Drawer","PencilIcon","Trash2Icon","toast","templateIcon","usePuckDictionary","usePuckLocale","ComponentListAccordion","Dialog","DialogContent","DialogDescription","DialogHeader","DialogTitle","DrawerItemContent","IconButton","AiOptionsFields","TEMPLATE_PREFIX","templateKey","templateLabel","templateMatchesQuery","useTemplates","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","stopDrag","e","stopPropagation","CustomTemplateList","t0","$","title","category","query","t1","onInsert","undefined","t","templates","tEditor","editor","locale","update","remove","expanded","setExpanded","editTarget","setEditTarget","deleteTarget","setDeleteTarget","isPending","setIsPending","T0","T1","handleDelete","handleEdit","t2","t3","t4","t5","t6","t7","t8","Symbol","for","bb0","normalizedQuery","trim","toLowerCase","items","filter","template","source","length","t9","updated","preventDefault","formData","FormData","currentTarget","title_0","String","get","result","aiDescription","aiInstructions","success","error","message","t10","deleted","result_0","_temp","expand","collapse","t11","deleteTemplate","editTemplate","template_0","Item","name","label","children","icon","onAdd","addLabel","add","actions","onClick","e_0","className","e_1","map","onToggle","expandLabel","collapseLabel","t12","open","t13","t14","editDialogDescription","t15","t16","id","t17","htmlFor","t18","t19","type","defaultValue","autoFocus","required","t20","t21","Boolean","ai","description","instructions","t22","t23","t24","defaultExpanded","defaultDescription","defaultInstructions","t25","t26","cancel","variant","t27","save","t28","t29","t30","t31","onOpenChange","t32","t33","open_0","t34","t35","deleteDialogDescription","replace","t36","t37","t38","t39","t40","delete","t41","t42","t43","t44","value"],"sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/custom-template-list.tsx"],"sourcesContent":["'use client';\n\nimport { FormEvent, useState } from 'react';\nimport { Button, Drawer } from '@puckeditor/core';\nimport { PencilIcon, Trash2Icon } from 'lucide-react';\nimport { toast } from 'sonner';\n\nimport { templateIcon } from '../../editor/component-icons';\nimport { usePuckDictionary, usePuckLocale } from '../../i18n';\nimport { ComponentListAccordion } from '../../ui/component-list-accordion';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from '../../ui/dialog';\nimport { DrawerItemContent } from '../../ui/drawer-item-content';\nimport { IconButton } from '../../ui/icon-button';\nimport { AiOptionsFields } from './ai-options-fields';\nimport { TEMPLATE_PREFIX } from './template-vehicles';\nimport {\n Template,\n TemplateCategory,\n templateKey,\n templateLabel,\n templateMatchesQuery,\n} from './templates';\nimport { useTemplates } from './use-templates';\n\nconst stopDrag = (e: React.PointerEvent) => e.stopPropagation();\n\nexport function CustomTemplateList({\n title,\n category,\n query = '',\n onInsert,\n}: {\n title: string;\n category: TemplateCategory;\n query?: string;\n onInsert?: (template: Template) => void;\n}) {\n const t = usePuckDictionary().templates;\n const tEditor = usePuckDictionary().editor;\n const locale = usePuckLocale();\n const { templates, update, remove } = useTemplates();\n const [expanded, setExpanded] = useState(true);\n const [editTarget, setEditTarget] = useState<Template | null>(null);\n const [deleteTarget, setDeleteTarget] = useState<Template | null>(null);\n const [isPending, setIsPending] = useState(false);\n\n const normalizedQuery = query.trim().toLowerCase();\n const items = templates.filter(\n (template) =>\n template.category === category &&\n template.source === 'custom' &&\n templateMatchesQuery(template, locale, normalizedQuery)\n );\n\n if (items.length === 0) return null;\n\n const handleEdit = async (e: FormEvent<HTMLFormElement>) => {\n e.preventDefault();\n if (!editTarget) return;\n const formData = new FormData(e.currentTarget);\n const title = String(formData.get('name') ?? '').trim();\n if (!title) return;\n setIsPending(true);\n const result = await update(editTarget, {\n title,\n aiDescription: String(formData.get('aiDescription') ?? '').trim(),\n aiInstructions: String(formData.get('aiInstructions') ?? '').trim(),\n });\n setIsPending(false);\n if (!result.success) {\n toast.error(result.message);\n return;\n }\n toast.success(t.updated);\n setEditTarget(null);\n };\n\n const handleDelete = async () => {\n if (!deleteTarget) return;\n setIsPending(true);\n const result = await remove(deleteTarget);\n setIsPending(false);\n if (!result.success) {\n toast.error(result.message);\n return;\n }\n toast.success(t.deleted);\n setDeleteTarget(null);\n };\n\n return (\n <>\n <ComponentListAccordion\n title={title}\n expanded={expanded}\n onToggle={() => setExpanded((value) => !value)}\n expandLabel={t.expand}\n collapseLabel={t.collapse}\n >\n <Drawer>\n {items.map((template) => (\n <Drawer.Item\n key={templateKey(template)}\n name={`${TEMPLATE_PREFIX}${templateKey(template)}`}\n label={templateLabel(template, locale)}\n >\n {() => (\n <DrawerItemContent\n icon={templateIcon(template.icon, category)}\n label={templateLabel(template, locale)}\n onAdd={() => onInsert?.(template)}\n addLabel={tEditor.add}\n actions={\n <>\n <IconButton\n title={t.editTemplate}\n onPointerDown={stopDrag}\n onClick={(e) => {\n e.stopPropagation();\n setEditTarget(template);\n }}\n className=\"nh:hidden nh:group-hover:block nh:hover:text-gray-700\"\n >\n <PencilIcon className=\"nh:h-4 nh:w-4\" />\n </IconButton>\n <IconButton\n title={t.deleteTemplate}\n onPointerDown={stopDrag}\n onClick={(e) => {\n e.stopPropagation();\n setDeleteTarget(template);\n }}\n className=\"nh:hidden nh:group-hover:block nh:hover:text-red-600\"\n >\n <Trash2Icon className=\"nh:h-4 nh:w-4\" />\n </IconButton>\n </>\n }\n />\n )}\n </Drawer.Item>\n ))}\n </Drawer>\n </ComponentListAccordion>\n\n <Dialog\n open={editTarget !== null}\n onOpenChange={(open) => !open && setEditTarget(null)}\n >\n <DialogContent className=\"max-w-md\">\n <DialogHeader>\n <DialogTitle>{t.editTemplate}</DialogTitle>\n <DialogDescription>{t.editDialogDescription}</DialogDescription>\n </DialogHeader>\n <form\n key={editTarget?.id}\n onSubmit={handleEdit}\n className=\"nh:space-y-4\"\n >\n <div>\n <label\n htmlFor=\"template-name\"\n className=\"nh:block nh:text-sm nh:font-medium nh:text-gray-700\"\n >\n {t.name}\n </label>\n <input\n type=\"text\"\n id=\"template-name\"\n name=\"name\"\n defaultValue={\n editTarget ? templateLabel(editTarget, locale) : ''\n }\n autoFocus\n required\n className=\"nh:mt-1 nh:block nh:w-full nh:rounded-md nh:border-gray-300 nh:shadow-sm\"\n />\n </div>\n <AiOptionsFields\n defaultExpanded={Boolean(\n editTarget?.ai?.description || editTarget?.ai?.instructions\n )}\n defaultDescription={editTarget?.ai?.description ?? ''}\n defaultInstructions={editTarget?.ai?.instructions ?? ''}\n />\n <div className=\"nh:flex nh:justify-end nh:gap-2\">\n <Button\n type=\"button\"\n variant=\"secondary\"\n onClick={() => setEditTarget(null)}\n >\n {t.cancel}\n </Button>\n <Button type=\"submit\" disabled={isPending} loading={isPending}>\n {t.save}\n </Button>\n </div>\n </form>\n </DialogContent>\n </Dialog>\n\n <Dialog\n open={deleteTarget !== null}\n onOpenChange={(open) => !open && setDeleteTarget(null)}\n >\n <DialogContent className=\"max-w-md\">\n <DialogHeader>\n <DialogTitle>{t.deleteTemplate}</DialogTitle>\n <DialogDescription>\n {t.deleteDialogDescription.replace(\n '{title}',\n deleteTarget ? templateLabel(deleteTarget, locale) : ''\n )}\n </DialogDescription>\n </DialogHeader>\n <div className=\"nh:flex nh:justify-end nh:gap-2\">\n <Button\n type=\"button\"\n variant=\"secondary\"\n onClick={() => setDeleteTarget(null)}\n >\n {t.cancel}\n </Button>\n <Button type=\"button\" onClick={handleDelete} loading={isPending}>\n {t.delete}\n </Button>\n </div>\n </DialogContent>\n </Dialog>\n </>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAAoBC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,MAAM,EAAEC,MAAM,QAAQ,kBAAkB;AACjD,SAASC,UAA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,QAAA6I,GAAA;EAAA;IAAAA,GAAA,GAAA7I,CAAA;EAAA;EAAA,OA1IH6I,GA0IG;AAAA;AA3MA,SAAA/E,MAAAgF,KAAA;EAAA,OAqEwC,CAACA,KAAK;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { createTemplatesPlugin } from './templates-plugin';
|
|
2
|
+
export { TemplatesPanel } from './templates-panel';
|
|
3
|
+
export { useTemplateDnd } from './use-template-dnd';
|
|
4
|
+
export { stripTemplateVehicles } from './template-vehicles';
|
|
5
|
+
export { RootDropZone } from './root-drop-zone';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { createTemplatesPlugin } from './templates-plugin';
|
|
2
|
+
export { TemplatesPanel } from './templates-panel';
|
|
3
|
+
export { useTemplateDnd } from './use-template-dnd';
|
|
4
|
+
export { stripTemplateVehicles } from './template-vehicles';
|
|
5
|
+
export { RootDropZone } from './root-drop-zone';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["createTemplatesPlugin","TemplatesPanel","useTemplateDnd","stripTemplateVehicles","RootDropZone"],"sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/index.ts"],"sourcesContent":["export { createTemplatesPlugin } from './templates-plugin';\nexport { TemplatesPanel } from './templates-panel';\nexport { useTemplateDnd } from './use-template-dnd';\nexport { stripTemplateVehicles } from './template-vehicles';\nexport { RootDropZone } from './root-drop-zone';\n"],"mappings":"AAAA,SAASA,qBAAqB,QAAQ,oBAAoB;AAC1D,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,cAAc,QAAQ,oBAAoB;AACnD,SAASC,qBAAqB,QAAQ,qBAAqB;AAC3D,SAASC,YAAY,QAAQ,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-drop-zone.d.ts","sourceRoot":"","sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/root-drop-zone.tsx"],"names":[],"mappings":"AAiBA,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,+BAU3D"}
|