@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,489 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { createUsePuck, useGetPuck } from '@puckeditor/core';
|
|
5
|
+
import { toast } from 'sonner';
|
|
6
|
+
import { usePuckDictionary, usePuckLocale } from '../i18n';
|
|
7
|
+
import { buildTree, isTypeAllowed, ROOT_ZONE, sectionComponentTypes } from '../plugins/outline-plugin/outline-tree';
|
|
8
|
+
import { TEMPLATE_PREFIX } from '../plugins/templates-plugin/template-vehicles';
|
|
9
|
+
import { expandTemplate, templateKey, templateLabel } from '../plugins/templates-plugin/templates';
|
|
10
|
+
import { useTemplates } from '../plugins/templates-plugin/use-templates';
|
|
11
|
+
import { appendComponents, generateId } from '../utils';
|
|
12
|
+
import { scrollToCanvas } from './canvas-scroll';
|
|
13
|
+
export function blockCategoryIds(config) {
|
|
14
|
+
return Object.keys(config.categories ?? {}).filter(id => id !== 'sections' && config.categories?.[id]?.visible !== false);
|
|
15
|
+
}
|
|
16
|
+
export function blockCategoryLabel(config, id) {
|
|
17
|
+
return config.categories?.[id]?.title ?? id;
|
|
18
|
+
}
|
|
19
|
+
const usePuck = createUsePuck();
|
|
20
|
+
function componentEntry(config, type) {
|
|
21
|
+
const picker = config.components[type]?.metadata?.picker;
|
|
22
|
+
return {
|
|
23
|
+
key: `c:${type}`,
|
|
24
|
+
drawerName: type,
|
|
25
|
+
label: picker?.label ?? config.components[type]?.label ?? type,
|
|
26
|
+
primaryType: type,
|
|
27
|
+
iconNode: picker?.icon,
|
|
28
|
+
pinned: picker?.pinned ?? false,
|
|
29
|
+
group: config.components[type]?.metadata?.group || undefined
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function templateGroupLabel(config, groupId, fallback) {
|
|
33
|
+
return groupId ? blockCategoryLabel(config, groupId) : fallback;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Group by category id, ordered by the config's category declaration order.
|
|
37
|
+
// Ungrouped entries (no id) render first as a flat, headerless list.
|
|
38
|
+
export function buildGroups(entries, config) {
|
|
39
|
+
const byId = new Map();
|
|
40
|
+
for (const {
|
|
41
|
+
group,
|
|
42
|
+
...entry
|
|
43
|
+
} of entries) {
|
|
44
|
+
const id = group ?? '';
|
|
45
|
+
if (!byId.has(id)) byId.set(id, []);
|
|
46
|
+
byId.get(id).push(entry);
|
|
47
|
+
}
|
|
48
|
+
const order = Object.keys(config.categories ?? {});
|
|
49
|
+
const rank = id => id === '' ? -1 : order.indexOf(id);
|
|
50
|
+
return [...byId.keys()].sort((a, b) => rank(a) - rank(b)).map(id => ({
|
|
51
|
+
key: id || '__flat__',
|
|
52
|
+
id: id || undefined,
|
|
53
|
+
label: id ? blockCategoryLabel(config, id) : '',
|
|
54
|
+
entries: byId.get(id)
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Label-keyed grouping kept for the page-template pickers.
|
|
59
|
+
export function mergeIntoGroups(entries) {
|
|
60
|
+
const order = [];
|
|
61
|
+
const byGroup = new Map();
|
|
62
|
+
for (const {
|
|
63
|
+
group,
|
|
64
|
+
...entry
|
|
65
|
+
} of entries) {
|
|
66
|
+
const key = group ?? '';
|
|
67
|
+
if (!byGroup.has(key)) {
|
|
68
|
+
byGroup.set(key, []);
|
|
69
|
+
order.push(key);
|
|
70
|
+
}
|
|
71
|
+
byGroup.get(key).push(entry);
|
|
72
|
+
}
|
|
73
|
+
return order.map(group => ({
|
|
74
|
+
key: group || '__flat__',
|
|
75
|
+
label: group,
|
|
76
|
+
entries: byGroup.get(group)
|
|
77
|
+
}));
|
|
78
|
+
}
|
|
79
|
+
export function filterGroupsByQuery(groups, query) {
|
|
80
|
+
const normalized = query.trim().toLowerCase();
|
|
81
|
+
return groups.map(group => ({
|
|
82
|
+
...group,
|
|
83
|
+
entries: group.entries.filter(entry => entry.label.toLowerCase().includes(normalized))
|
|
84
|
+
})).filter(group => group.entries.length > 0);
|
|
85
|
+
}
|
|
86
|
+
export function templateEntry(template, locale) {
|
|
87
|
+
return {
|
|
88
|
+
key: `t:${templateKey(template)}`,
|
|
89
|
+
drawerName: `${TEMPLATE_PREFIX}${templateKey(template)}`,
|
|
90
|
+
label: templateLabel(template, locale),
|
|
91
|
+
primaryType: template.data[0]?.type ?? '',
|
|
92
|
+
icon: template.icon,
|
|
93
|
+
template
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
export function usePickerModel() {
|
|
97
|
+
const $ = _c(76);
|
|
98
|
+
const config = usePuck(_temp);
|
|
99
|
+
const dispatch = usePuck(_temp2);
|
|
100
|
+
const getPermissions = usePuck(_temp3);
|
|
101
|
+
const getPuck = useGetPuck();
|
|
102
|
+
const tBlocks = usePuckDictionary().blocks;
|
|
103
|
+
const tTemplates = usePuckDictionary().templates;
|
|
104
|
+
const locale = usePuckLocale();
|
|
105
|
+
const {
|
|
106
|
+
templates,
|
|
107
|
+
brokenTemplates,
|
|
108
|
+
isLoading,
|
|
109
|
+
invalidate,
|
|
110
|
+
update,
|
|
111
|
+
remove
|
|
112
|
+
} = useTemplates();
|
|
113
|
+
let canInsertType;
|
|
114
|
+
let customSectionTemplates;
|
|
115
|
+
let pageTemplates;
|
|
116
|
+
let pinnedBlockEntries;
|
|
117
|
+
let pinnedSectionEntries;
|
|
118
|
+
let sectionGroups;
|
|
119
|
+
let sectionTypes;
|
|
120
|
+
let t0;
|
|
121
|
+
if ($[0] !== config || $[1] !== getPermissions || $[2] !== locale || $[3] !== templates) {
|
|
122
|
+
sectionTypes = sectionComponentTypes(config);
|
|
123
|
+
let t1;
|
|
124
|
+
if ($[12] !== getPermissions) {
|
|
125
|
+
t1 = type => getPermissions({
|
|
126
|
+
type
|
|
127
|
+
}).insert !== false;
|
|
128
|
+
$[12] = getPermissions;
|
|
129
|
+
$[13] = t1;
|
|
130
|
+
} else {
|
|
131
|
+
t1 = $[13];
|
|
132
|
+
}
|
|
133
|
+
canInsertType = t1;
|
|
134
|
+
let t2;
|
|
135
|
+
if ($[14] !== templates) {
|
|
136
|
+
t2 = templates.filter(_temp4);
|
|
137
|
+
$[14] = templates;
|
|
138
|
+
$[15] = t2;
|
|
139
|
+
} else {
|
|
140
|
+
t2 = $[15];
|
|
141
|
+
}
|
|
142
|
+
customSectionTemplates = t2;
|
|
143
|
+
let t3;
|
|
144
|
+
if ($[16] !== templates) {
|
|
145
|
+
t3 = templates.filter(_temp5);
|
|
146
|
+
$[16] = templates;
|
|
147
|
+
$[17] = t3;
|
|
148
|
+
} else {
|
|
149
|
+
t3 = $[17];
|
|
150
|
+
}
|
|
151
|
+
pageTemplates = t3;
|
|
152
|
+
const builtinSections = templates.filter(_temp6);
|
|
153
|
+
let t4;
|
|
154
|
+
if ($[18] !== config.components) {
|
|
155
|
+
t4 = type_0 => config.components[type_0];
|
|
156
|
+
$[18] = config.components;
|
|
157
|
+
$[19] = t4;
|
|
158
|
+
} else {
|
|
159
|
+
t4 = $[19];
|
|
160
|
+
}
|
|
161
|
+
let t5;
|
|
162
|
+
if ($[20] !== config) {
|
|
163
|
+
t5 = type_1 => componentEntry(config, type_1);
|
|
164
|
+
$[20] = config;
|
|
165
|
+
$[21] = t5;
|
|
166
|
+
} else {
|
|
167
|
+
t5 = $[21];
|
|
168
|
+
}
|
|
169
|
+
const sectionCodeEntries = sectionTypes.filter(t4).map(t5);
|
|
170
|
+
pinnedSectionEntries = sectionCodeEntries.filter(_temp7);
|
|
171
|
+
let t6;
|
|
172
|
+
if ($[22] !== locale) {
|
|
173
|
+
t6 = template_2 => ({
|
|
174
|
+
...templateEntry(template_2, locale),
|
|
175
|
+
group: template_2.group
|
|
176
|
+
});
|
|
177
|
+
$[22] = locale;
|
|
178
|
+
$[23] = t6;
|
|
179
|
+
} else {
|
|
180
|
+
t6 = $[23];
|
|
181
|
+
}
|
|
182
|
+
const sectionTemplateEntries = builtinSections.map(t6);
|
|
183
|
+
sectionGroups = buildGroups([...sectionCodeEntries.filter(_temp8), ...sectionTemplateEntries], config);
|
|
184
|
+
const categorized = new Set();
|
|
185
|
+
const blockCodeEntries = [];
|
|
186
|
+
for (const id of blockCategoryIds(config)) {
|
|
187
|
+
for (const type_2 of config.categories?.[id]?.components ?? []) {
|
|
188
|
+
if (!config.components[type_2]) {
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
if (sectionTypes.includes(type_2)) {
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
categorized.add(type_2);
|
|
195
|
+
blockCodeEntries.push({
|
|
196
|
+
...componentEntry(config, type_2),
|
|
197
|
+
group: id
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
const hasHiddenOtherCategory = config.categories?.other?.visible === false;
|
|
202
|
+
const leftoverTypes = Object.keys(config.components).filter(type_3 => !categorized.has(type_3) && !sectionTypes.includes(type_3) && !type_3.startsWith(TEMPLATE_PREFIX));
|
|
203
|
+
if (!hasHiddenOtherCategory) {
|
|
204
|
+
for (const type_4 of leftoverTypes) {
|
|
205
|
+
blockCodeEntries.push({
|
|
206
|
+
...componentEntry(config, type_4),
|
|
207
|
+
group: undefined
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
pinnedBlockEntries = blockCodeEntries.filter(_temp9);
|
|
212
|
+
t0 = buildGroups(blockCodeEntries.filter(_temp0), config);
|
|
213
|
+
$[0] = config;
|
|
214
|
+
$[1] = getPermissions;
|
|
215
|
+
$[2] = locale;
|
|
216
|
+
$[3] = templates;
|
|
217
|
+
$[4] = canInsertType;
|
|
218
|
+
$[5] = customSectionTemplates;
|
|
219
|
+
$[6] = pageTemplates;
|
|
220
|
+
$[7] = pinnedBlockEntries;
|
|
221
|
+
$[8] = pinnedSectionEntries;
|
|
222
|
+
$[9] = sectionGroups;
|
|
223
|
+
$[10] = sectionTypes;
|
|
224
|
+
$[11] = t0;
|
|
225
|
+
} else {
|
|
226
|
+
canInsertType = $[4];
|
|
227
|
+
customSectionTemplates = $[5];
|
|
228
|
+
pageTemplates = $[6];
|
|
229
|
+
pinnedBlockEntries = $[7];
|
|
230
|
+
pinnedSectionEntries = $[8];
|
|
231
|
+
sectionGroups = $[9];
|
|
232
|
+
sectionTypes = $[10];
|
|
233
|
+
t0 = $[11];
|
|
234
|
+
}
|
|
235
|
+
const blockGroups = t0;
|
|
236
|
+
let t1;
|
|
237
|
+
if ($[24] !== blockGroups || $[25] !== customSectionTemplates || $[26] !== pageTemplates || $[27] !== pinnedBlockEntries || $[28] !== pinnedSectionEntries || $[29] !== sectionGroups) {
|
|
238
|
+
t1 = {
|
|
239
|
+
customSectionTemplates,
|
|
240
|
+
pageTemplates,
|
|
241
|
+
pinnedSectionEntries,
|
|
242
|
+
sectionGroups,
|
|
243
|
+
pinnedBlockEntries,
|
|
244
|
+
blockGroups
|
|
245
|
+
};
|
|
246
|
+
$[24] = blockGroups;
|
|
247
|
+
$[25] = customSectionTemplates;
|
|
248
|
+
$[26] = pageTemplates;
|
|
249
|
+
$[27] = pinnedBlockEntries;
|
|
250
|
+
$[28] = pinnedSectionEntries;
|
|
251
|
+
$[29] = sectionGroups;
|
|
252
|
+
$[30] = t1;
|
|
253
|
+
} else {
|
|
254
|
+
t1 = $[30];
|
|
255
|
+
}
|
|
256
|
+
const model = t1;
|
|
257
|
+
let t2;
|
|
258
|
+
if ($[31] !== canInsertType || $[32] !== dispatch) {
|
|
259
|
+
t2 = (target, type_5) => {
|
|
260
|
+
if (!canInsertType(type_5)) {
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
const id_0 = generateId(type_5);
|
|
264
|
+
dispatch({
|
|
265
|
+
type: "insert",
|
|
266
|
+
componentType: type_5,
|
|
267
|
+
destinationZone: target.zone,
|
|
268
|
+
destinationIndex: target.index,
|
|
269
|
+
id: id_0
|
|
270
|
+
});
|
|
271
|
+
dispatch({
|
|
272
|
+
type: "setUi",
|
|
273
|
+
ui: {
|
|
274
|
+
itemSelector: {
|
|
275
|
+
index: target.index,
|
|
276
|
+
zone: target.zone
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
scrollToCanvas(id_0);
|
|
281
|
+
};
|
|
282
|
+
$[31] = canInsertType;
|
|
283
|
+
$[32] = dispatch;
|
|
284
|
+
$[33] = t2;
|
|
285
|
+
} else {
|
|
286
|
+
t2 = $[33];
|
|
287
|
+
}
|
|
288
|
+
const insertComponent = t2;
|
|
289
|
+
let t3;
|
|
290
|
+
if ($[34] !== config || $[35] !== dispatch || $[36] !== locale || $[37] !== tTemplates) {
|
|
291
|
+
t3 = (target_0, template_3) => {
|
|
292
|
+
let expanded;
|
|
293
|
+
;
|
|
294
|
+
try {
|
|
295
|
+
expanded = expandTemplate(template_3, config, templateLabel(template_3, locale));
|
|
296
|
+
} catch (t4) {
|
|
297
|
+
const error = t4;
|
|
298
|
+
console.error("Failed to expand template:", error);
|
|
299
|
+
toast.error(tTemplates.insertFailed);
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
appendComponents(dispatch, target_0.zone, target_0.index, expanded.content);
|
|
303
|
+
if (expanded.skipped > 0) {
|
|
304
|
+
toast.warning(tTemplates.partiallyInserted.replace("{skipped}", String(expanded.skipped)).replace("{total}", String(expanded.content.length + expanded.skipped)));
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
$[34] = config;
|
|
308
|
+
$[35] = dispatch;
|
|
309
|
+
$[36] = locale;
|
|
310
|
+
$[37] = tTemplates;
|
|
311
|
+
$[38] = t3;
|
|
312
|
+
} else {
|
|
313
|
+
t3 = $[38];
|
|
314
|
+
}
|
|
315
|
+
const insertTemplate = t3;
|
|
316
|
+
let t4;
|
|
317
|
+
if ($[39] !== insertComponent || $[40] !== insertTemplate) {
|
|
318
|
+
t4 = (entry_3, target_1) => {
|
|
319
|
+
if (entry_3.template) {
|
|
320
|
+
insertTemplate(target_1, entry_3.template);
|
|
321
|
+
} else {
|
|
322
|
+
insertComponent(target_1, entry_3.drawerName);
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
$[39] = insertComponent;
|
|
326
|
+
$[40] = insertTemplate;
|
|
327
|
+
$[41] = t4;
|
|
328
|
+
} else {
|
|
329
|
+
t4 = $[41];
|
|
330
|
+
}
|
|
331
|
+
const insertEntry = t4;
|
|
332
|
+
let t5;
|
|
333
|
+
if ($[42] !== getPuck) {
|
|
334
|
+
t5 = () => ({
|
|
335
|
+
zone: ROOT_ZONE,
|
|
336
|
+
index: getPuck().appState.data.content?.length ?? 0
|
|
337
|
+
});
|
|
338
|
+
$[42] = getPuck;
|
|
339
|
+
$[43] = t5;
|
|
340
|
+
} else {
|
|
341
|
+
t5 = $[43];
|
|
342
|
+
}
|
|
343
|
+
const sectionTarget = t5;
|
|
344
|
+
let t6;
|
|
345
|
+
if ($[44] !== config || $[45] !== getPuck || $[46] !== sectionTypes) {
|
|
346
|
+
t6 = primaryType => {
|
|
347
|
+
const content = getPuck().appState.data.content ?? [];
|
|
348
|
+
const tree = buildTree(content, config);
|
|
349
|
+
for (let i = tree.length - 1; i >= 0; i--) {
|
|
350
|
+
const node = tree[i];
|
|
351
|
+
if (!sectionTypes.includes(node.type)) {
|
|
352
|
+
continue;
|
|
353
|
+
}
|
|
354
|
+
for (const zone of node.zones) {
|
|
355
|
+
if (isTypeAllowed(zone, primaryType)) {
|
|
356
|
+
return {
|
|
357
|
+
zone: zone.zoneCompound,
|
|
358
|
+
index: zone.items.length
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return null;
|
|
364
|
+
};
|
|
365
|
+
$[44] = config;
|
|
366
|
+
$[45] = getPuck;
|
|
367
|
+
$[46] = sectionTypes;
|
|
368
|
+
$[47] = t6;
|
|
369
|
+
} else {
|
|
370
|
+
t6 = $[47];
|
|
371
|
+
}
|
|
372
|
+
const blockTarget = t6;
|
|
373
|
+
let t7;
|
|
374
|
+
if ($[48] !== insertEntry || $[49] !== sectionTarget) {
|
|
375
|
+
t7 = entry_4 => {
|
|
376
|
+
insertEntry(entry_4, sectionTarget());
|
|
377
|
+
};
|
|
378
|
+
$[48] = insertEntry;
|
|
379
|
+
$[49] = sectionTarget;
|
|
380
|
+
$[50] = t7;
|
|
381
|
+
} else {
|
|
382
|
+
t7 = $[50];
|
|
383
|
+
}
|
|
384
|
+
const insertSectionEntry = t7;
|
|
385
|
+
let t8;
|
|
386
|
+
if ($[51] !== blockTarget || $[52] !== insertEntry || $[53] !== tBlocks) {
|
|
387
|
+
t8 = entry_5 => {
|
|
388
|
+
const target_2 = blockTarget(entry_5.primaryType);
|
|
389
|
+
if (!target_2) {
|
|
390
|
+
toast.error(tBlocks.noBlockTarget);
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
insertEntry(entry_5, target_2);
|
|
394
|
+
};
|
|
395
|
+
$[51] = blockTarget;
|
|
396
|
+
$[52] = insertEntry;
|
|
397
|
+
$[53] = tBlocks;
|
|
398
|
+
$[54] = t8;
|
|
399
|
+
} else {
|
|
400
|
+
t8 = $[54];
|
|
401
|
+
}
|
|
402
|
+
const insertBlockEntry = t8;
|
|
403
|
+
let t9;
|
|
404
|
+
if ($[55] !== insertTemplate || $[56] !== sectionTarget) {
|
|
405
|
+
t9 = template_4 => {
|
|
406
|
+
insertTemplate(sectionTarget(), template_4);
|
|
407
|
+
};
|
|
408
|
+
$[55] = insertTemplate;
|
|
409
|
+
$[56] = sectionTarget;
|
|
410
|
+
$[57] = t9;
|
|
411
|
+
} else {
|
|
412
|
+
t9 = $[57];
|
|
413
|
+
}
|
|
414
|
+
const insertRootTemplate = t9;
|
|
415
|
+
let t10;
|
|
416
|
+
if ($[58] !== brokenTemplates || $[59] !== canInsertType || $[60] !== config || $[61] !== insertBlockEntry || $[62] !== insertEntry || $[63] !== insertRootTemplate || $[64] !== insertSectionEntry || $[65] !== invalidate || $[66] !== isLoading || $[67] !== model.blockGroups || $[68] !== model.customSectionTemplates || $[69] !== model.pageTemplates || $[70] !== model.pinnedBlockEntries || $[71] !== model.pinnedSectionEntries || $[72] !== model.sectionGroups || $[73] !== remove || $[74] !== update) {
|
|
417
|
+
t10 = {
|
|
418
|
+
config,
|
|
419
|
+
isLoading,
|
|
420
|
+
canInsertType,
|
|
421
|
+
pinnedSectionEntries: model.pinnedSectionEntries,
|
|
422
|
+
sectionGroups: model.sectionGroups,
|
|
423
|
+
pinnedBlockEntries: model.pinnedBlockEntries,
|
|
424
|
+
blockGroups: model.blockGroups,
|
|
425
|
+
customSectionTemplates: model.customSectionTemplates,
|
|
426
|
+
pageTemplates: model.pageTemplates,
|
|
427
|
+
brokenTemplates,
|
|
428
|
+
insertEntry,
|
|
429
|
+
insertSectionEntry,
|
|
430
|
+
insertBlockEntry,
|
|
431
|
+
insertRootTemplate,
|
|
432
|
+
invalidate,
|
|
433
|
+
update,
|
|
434
|
+
remove
|
|
435
|
+
};
|
|
436
|
+
$[58] = brokenTemplates;
|
|
437
|
+
$[59] = canInsertType;
|
|
438
|
+
$[60] = config;
|
|
439
|
+
$[61] = insertBlockEntry;
|
|
440
|
+
$[62] = insertEntry;
|
|
441
|
+
$[63] = insertRootTemplate;
|
|
442
|
+
$[64] = insertSectionEntry;
|
|
443
|
+
$[65] = invalidate;
|
|
444
|
+
$[66] = isLoading;
|
|
445
|
+
$[67] = model.blockGroups;
|
|
446
|
+
$[68] = model.customSectionTemplates;
|
|
447
|
+
$[69] = model.pageTemplates;
|
|
448
|
+
$[70] = model.pinnedBlockEntries;
|
|
449
|
+
$[71] = model.pinnedSectionEntries;
|
|
450
|
+
$[72] = model.sectionGroups;
|
|
451
|
+
$[73] = remove;
|
|
452
|
+
$[74] = update;
|
|
453
|
+
$[75] = t10;
|
|
454
|
+
} else {
|
|
455
|
+
t10 = $[75];
|
|
456
|
+
}
|
|
457
|
+
return t10;
|
|
458
|
+
}
|
|
459
|
+
function _temp0(entry_2) {
|
|
460
|
+
return !entry_2.pinned;
|
|
461
|
+
}
|
|
462
|
+
function _temp9(entry_1) {
|
|
463
|
+
return entry_1.pinned;
|
|
464
|
+
}
|
|
465
|
+
function _temp8(entry_0) {
|
|
466
|
+
return !entry_0.pinned;
|
|
467
|
+
}
|
|
468
|
+
function _temp7(entry) {
|
|
469
|
+
return entry.pinned;
|
|
470
|
+
}
|
|
471
|
+
function _temp6(template_1) {
|
|
472
|
+
return template_1.category === "section" && template_1.source === "builtin";
|
|
473
|
+
}
|
|
474
|
+
function _temp5(template_0) {
|
|
475
|
+
return template_0.category === "page";
|
|
476
|
+
}
|
|
477
|
+
function _temp4(template) {
|
|
478
|
+
return template.category === "section" && template.source === "custom";
|
|
479
|
+
}
|
|
480
|
+
function _temp3(s_1) {
|
|
481
|
+
return s_1.getPermissions;
|
|
482
|
+
}
|
|
483
|
+
function _temp2(s_0) {
|
|
484
|
+
return s_0.dispatch;
|
|
485
|
+
}
|
|
486
|
+
function _temp(s) {
|
|
487
|
+
return s.config;
|
|
488
|
+
}
|
|
489
|
+
//# sourceMappingURL=picker-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picker-model.js","names":["c","_c","createUsePuck","useGetPuck","toast","usePuckDictionary","usePuckLocale","buildTree","isTypeAllowed","ROOT_ZONE","sectionComponentTypes","TEMPLATE_PREFIX","expandTemplate","templateKey","templateLabel","useTemplates","appendComponents","generateId","scrollToCanvas","blockCategoryIds","config","Object","keys","categories","filter","id","visible","blockCategoryLabel","title","usePuck","componentEntry","type","picker","components","metadata","key","drawerName","label","primaryType","iconNode","icon","pinned","group","undefined","templateGroupLabel","groupId","fallback","buildGroups","entries","byId","Map","entry","has","set","get","push","order","rank","indexOf","sort","a","b","map","mergeIntoGroups","byGroup","filterGroupsByQuery","groups","query","normalized","trim","toLowerCase","includes","length","templateEntry","template","locale","data","usePickerModel","$","_temp","dispatch","_temp2","getPermissions","_temp3","getPuck","tBlocks","blocks","tTemplates","templates","brokenTemplates","isLoading","invalidate","update","remove","canInsertType","customSectionTemplates","pageTemplates","pinnedBlockEntries","pinnedSectionEntries","sectionGroups","sectionTypes","t0","t1","insert","t2","_temp4","t3","_temp5","builtinSections","_temp6","t4","type_0","t5","type_1","sectionCodeEntries","_temp7","t6","template_2","sectionTemplateEntries","_temp8","categorized","Set","blockCodeEntries","type_2","add","hasHiddenOtherCategory","other","leftoverTypes","type_3","startsWith","type_4","_temp9","_temp0","blockGroups","model","target","type_5","id_0","componentType","destinationZone","zone","destinationIndex","index","ui","itemSelector","insertComponent","target_0","template_3","expanded","error","console","insertFailed","content","skipped","warning","partiallyInserted","replace","String","insertTemplate","entry_3","target_1","insertEntry","appState","sectionTarget","tree","i","node","zones","zoneCompound","items","blockTarget","t7","entry_4","insertSectionEntry","t8","entry_5","target_2","noBlockTarget","insertBlockEntry","t9","template_4","insertRootTemplate","t10","entry_2","entry_1","entry_0","template_1","category","source","template_0","s_1","s","s_0"],"sources":["../../../../src/puck-editor/internal/editor/picker-model.ts"],"sourcesContent":["'use client';\n\nimport { type ReactNode } from 'react';\nimport {\n Config,\n createUsePuck,\n PuckAction,\n useGetPuck,\n} from '@puckeditor/core';\nimport { toast } from 'sonner';\n\nimport { usePuckDictionary, usePuckLocale } from '../i18n';\nimport {\n buildTree,\n isTypeAllowed,\n ROOT_ZONE,\n sectionComponentTypes,\n} from '../plugins/outline-plugin/outline-tree';\nimport { TEMPLATE_PREFIX } from '../plugins/templates-plugin/template-vehicles';\nimport {\n expandTemplate,\n Template,\n templateKey,\n templateLabel,\n} from '../plugins/templates-plugin/templates';\nimport { useTemplates } from '../plugins/templates-plugin/use-templates';\nimport { appendComponents, generateId } from '../utils';\nimport { scrollToCanvas } from './canvas-scroll';\n\nexport function blockCategoryIds(config: Config): string[] {\n return Object.keys(config.categories ?? {}).filter(\n (id) => id !== 'sections' && config.categories?.[id]?.visible !== false\n );\n}\n\nexport function blockCategoryLabel(config: Config, id: string): string {\n return config.categories?.[id]?.title ?? id;\n}\n\nexport type PickerEntry = {\n key: string;\n drawerName: string;\n label: string;\n primaryType: string;\n icon?: string;\n iconNode?: ReactNode;\n pinned?: boolean;\n template?: Template;\n};\n\nexport type PickerGroup = {\n key: string;\n id?: string;\n label: string;\n entries: PickerEntry[];\n};\n\nexport type InsertTarget = { zone: string; index: number };\n\ntype GroupedEntry = PickerEntry & { group?: string };\n\ntype Dispatch = (action: PuckAction) => void;\n\nconst usePuck = createUsePuck();\n\nfunction componentEntry(config: Config, type: string): GroupedEntry {\n const picker = config.components[type]?.metadata?.picker;\n return {\n key: `c:${type}`,\n drawerName: type,\n label: picker?.label ?? config.components[type]?.label ?? type,\n primaryType: type,\n iconNode: picker?.icon,\n pinned: picker?.pinned ?? false,\n group: config.components[type]?.metadata?.group || undefined,\n };\n}\n\nexport function templateGroupLabel(\n config: Config,\n groupId: string | undefined,\n fallback: string | undefined\n): string | undefined {\n return groupId ? blockCategoryLabel(config, groupId) : fallback;\n}\n\n// Group by category id, ordered by the config's category declaration order.\n// Ungrouped entries (no id) render first as a flat, headerless list.\nexport function buildGroups(\n entries: GroupedEntry[],\n config: Config\n): PickerGroup[] {\n const byId = new Map<string, PickerEntry[]>();\n for (const { group, ...entry } of entries) {\n const id = group ?? '';\n if (!byId.has(id)) byId.set(id, []);\n byId.get(id)!.push(entry);\n }\n const order = Object.keys(config.categories ?? {});\n const rank = (id: string) => (id === '' ? -1 : order.indexOf(id));\n return [...byId.keys()]\n .sort((a, b) => rank(a) - rank(b))\n .map((id) => ({\n key: id || '__flat__',\n id: id || undefined,\n label: id ? blockCategoryLabel(config, id) : '',\n entries: byId.get(id)!,\n }));\n}\n\n// Label-keyed grouping kept for the page-template pickers.\nexport function mergeIntoGroups(\n entries: (PickerEntry & { group?: string })[]\n): PickerGroup[] {\n const order: string[] = [];\n const byGroup = new Map<string, PickerEntry[]>();\n for (const { group, ...entry } of entries) {\n const key = group ?? '';\n if (!byGroup.has(key)) {\n byGroup.set(key, []);\n order.push(key);\n }\n byGroup.get(key)!.push(entry);\n }\n return order.map((group) => ({\n key: group || '__flat__',\n label: group,\n entries: byGroup.get(group)!,\n }));\n}\n\nexport function filterGroupsByQuery(\n groups: PickerGroup[],\n query: string\n): PickerGroup[] {\n const normalized = query.trim().toLowerCase();\n return groups\n .map((group) => ({\n ...group,\n entries: group.entries.filter((entry) =>\n entry.label.toLowerCase().includes(normalized)\n ),\n }))\n .filter((group) => group.entries.length > 0);\n}\n\nexport function templateEntry(template: Template, locale: string): PickerEntry {\n return {\n key: `t:${templateKey(template)}`,\n drawerName: `${TEMPLATE_PREFIX}${templateKey(template)}`,\n label: templateLabel(template, locale),\n primaryType: template.data[0]?.type ?? '',\n icon: template.icon,\n template,\n };\n}\n\nexport function usePickerModel() {\n const config = usePuck((s) => s.config);\n const dispatch = usePuck((s) => s.dispatch) as Dispatch;\n const getPermissions = usePuck((s) => s.getPermissions);\n const getPuck = useGetPuck();\n const tBlocks = usePuckDictionary().blocks;\n const tTemplates = usePuckDictionary().templates;\n const locale = usePuckLocale();\n const { templates, brokenTemplates, isLoading, invalidate, update, remove } =\n useTemplates();\n\n const sectionTypes = sectionComponentTypes(config);\n\n const canInsertType = (type: string): boolean =>\n getPermissions({ type }).insert !== false;\n\n const customSectionTemplates = templates.filter(\n (template) =>\n template.category === 'section' && template.source === 'custom'\n );\n const pageTemplates = templates.filter(\n (template) => template.category === 'page'\n );\n const builtinSections = templates.filter(\n (template) =>\n template.category === 'section' && template.source === 'builtin'\n );\n\n const sectionCodeEntries = sectionTypes\n .filter((type) => config.components[type])\n .map((type) => componentEntry(config, type));\n\n const pinnedSectionEntries: PickerEntry[] = sectionCodeEntries.filter(\n (entry) => entry.pinned\n );\n\n const sectionTemplateEntries: GroupedEntry[] = builtinSections.map(\n (template) => ({\n ...templateEntry(template, locale),\n group: template.group,\n })\n );\n\n const sectionGroups = buildGroups(\n [\n ...sectionCodeEntries.filter((entry) => !entry.pinned),\n ...sectionTemplateEntries,\n ],\n config\n );\n\n const categorized = new Set<string>();\n const blockCodeEntries: GroupedEntry[] = [];\n for (const id of blockCategoryIds(config)) {\n for (const type of config.categories?.[id]?.components ?? []) {\n if (!config.components[type]) continue;\n if (sectionTypes.includes(type)) continue;\n categorized.add(type);\n blockCodeEntries.push({ ...componentEntry(config, type), group: id });\n }\n }\n\n const hasHiddenOtherCategory = config.categories?.other?.visible === false;\n const leftoverTypes = Object.keys(config.components).filter(\n (type) =>\n !categorized.has(type) &&\n !sectionTypes.includes(type) &&\n !type.startsWith(TEMPLATE_PREFIX)\n );\n if (!hasHiddenOtherCategory) {\n for (const type of leftoverTypes) {\n blockCodeEntries.push({\n ...componentEntry(config, type),\n group: undefined,\n });\n }\n }\n\n const pinnedBlockEntries: PickerEntry[] = blockCodeEntries.filter(\n (entry) => entry.pinned\n );\n\n const blockGroups = buildGroups(\n blockCodeEntries.filter((entry) => !entry.pinned),\n config\n );\n\n const model = {\n customSectionTemplates,\n pageTemplates,\n pinnedSectionEntries,\n sectionGroups,\n pinnedBlockEntries,\n blockGroups,\n };\n\n const insertComponent = (target: InsertTarget, type: string) => {\n if (!canInsertType(type)) return;\n const id = generateId(type);\n dispatch({\n type: 'insert',\n componentType: type,\n destinationZone: target.zone,\n destinationIndex: target.index,\n id,\n });\n dispatch({\n type: 'setUi',\n ui: { itemSelector: { index: target.index, zone: target.zone } },\n });\n scrollToCanvas(id);\n };\n\n const insertTemplate = (target: InsertTarget, template: Template) => {\n let expanded;\n try {\n expanded = expandTemplate(\n template,\n config,\n templateLabel(template, locale)\n );\n } catch (error) {\n console.error('Failed to expand template:', error);\n toast.error(tTemplates.insertFailed);\n return;\n }\n appendComponents(dispatch, target.zone, target.index, expanded.content);\n if (expanded.skipped > 0) {\n toast.warning(\n tTemplates.partiallyInserted\n .replace('{skipped}', String(expanded.skipped))\n .replace(\n '{total}',\n String(expanded.content.length + expanded.skipped)\n )\n );\n }\n };\n\n const insertEntry = (entry: PickerEntry, target: InsertTarget) => {\n if (entry.template) insertTemplate(target, entry.template);\n else insertComponent(target, entry.drawerName);\n };\n\n const sectionTarget = (): InsertTarget => ({\n zone: ROOT_ZONE,\n index: getPuck().appState.data.content?.length ?? 0,\n });\n\n const blockTarget = (primaryType: string): InsertTarget | null => {\n const content = getPuck().appState.data.content ?? [];\n const tree = buildTree(content, config);\n for (let i = tree.length - 1; i >= 0; i--) {\n const node = tree[i];\n if (!sectionTypes.includes(node.type)) continue;\n for (const zone of node.zones) {\n if (isTypeAllowed(zone, primaryType)) {\n return { zone: zone.zoneCompound, index: zone.items.length };\n }\n }\n }\n return null;\n };\n\n const insertSectionEntry = (entry: PickerEntry) => {\n insertEntry(entry, sectionTarget());\n };\n\n const insertBlockEntry = (entry: PickerEntry) => {\n const target = blockTarget(entry.primaryType);\n if (!target) {\n toast.error(tBlocks.noBlockTarget);\n return;\n }\n insertEntry(entry, target);\n };\n\n const insertRootTemplate = (template: Template) => {\n insertTemplate(sectionTarget(), template);\n };\n\n return {\n config,\n isLoading,\n canInsertType,\n pinnedSectionEntries: model.pinnedSectionEntries,\n sectionGroups: model.sectionGroups,\n pinnedBlockEntries: model.pinnedBlockEntries,\n blockGroups: model.blockGroups,\n customSectionTemplates: model.customSectionTemplates,\n pageTemplates: model.pageTemplates,\n brokenTemplates,\n insertEntry,\n insertSectionEntry,\n insertBlockEntry,\n insertRootTemplate,\n invalidate,\n update,\n remove,\n };\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAGb,SAEEC,aAAa,EAEbC,UAAU,QACL,kBAAkB;AACzB,SAASC,KAAK,QAAQ,QAAQ;AAE9B,SAASC,iBAAiB,EAAEC,aAAa,QAAQ,SAAS;AAC1D,SACEC,SAAS,EACTC,aAAa,EACbC,SAAS,EACTC,qBAAqB,QAChB,wCAAwC;AAC/C,SAASC,eAAe,QAAQ,+CAA+C;AAC/E,SACEC,cAAc,EAEdC,WAAW,EACXC,aAAa,QACR,uCAAuC;AAC9C,SAASC,YAAY,QAAQ,2CAA2C;AACxE,SAASC,gBAAgB,EAAEC,UAAU,QAAQ,U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Image?: string;
|
|
7
|
+
};
|
|
8
|
+
type PublishPuckDataParams = {
|
|
9
|
+
data: Partial<Data>;
|
|
10
|
+
pageSettings: {
|
|
11
|
+
title: string;
|
|
12
|
+
metadataTitle: string;
|
|
13
|
+
metadataDescription: string;
|
|
14
|
+
metadataImage: PublishMetadataImage | null;
|
|
15
|
+
published: boolean;
|
|
16
|
+
urlAlias: string;
|
|
17
|
+
};
|
|
18
|
+
fieldName: string;
|
|
19
|
+
nodeId: string;
|
|
20
|
+
path: string;
|
|
21
|
+
type?: string;
|
|
22
|
+
lang?: string;
|
|
23
|
+
messages?: {
|
|
24
|
+
saved: string;
|
|
25
|
+
saveFailed: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare function publishPuckData({ messages, ...params }: PublishPuckDataParams): Promise<void>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=publish-puck-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-puck-data.d.ts","sourceRoot":"","sources":["../../../../src/puck-editor/internal/editor/publish-puck-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAKxC,KAAK,oBAAoB,GAAG;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,YAAY,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,aAAa,EAAE,MAAM,CAAC;QACtB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,aAAa,EAAE,oBAAoB,GAAG,IAAI,CAAC;QAC3C,SAAS,EAAE,OAAO,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;CAClD,CAAC;AAEF,wBAAsB,eAAe,CAAC,EACpC,QAGC,EACD,GAAG,MAAM,EACV,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBvC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { toast } from 'sonner';
|
|
2
|
+
import { PUCK_API_BASE } from '../api/client';
|
|
3
|
+
export async function publishPuckData({
|
|
4
|
+
messages = {
|
|
5
|
+
saved: 'Successfully saved page',
|
|
6
|
+
saveFailed: 'Failed to save page'
|
|
7
|
+
},
|
|
8
|
+
...params
|
|
9
|
+
}) {
|
|
10
|
+
try {
|
|
11
|
+
const response = await fetch(`${PUCK_API_BASE}/publish`, {
|
|
12
|
+
method: 'PATCH',
|
|
13
|
+
headers: {
|
|
14
|
+
'Content-Type': 'application/json'
|
|
15
|
+
},
|
|
16
|
+
body: JSON.stringify(params)
|
|
17
|
+
});
|
|
18
|
+
if (!response.ok) {
|
|
19
|
+
const errorData = await response.json().catch(() => ({}));
|
|
20
|
+
console.error('Failed to publish Puck data:', errorData);
|
|
21
|
+
toast.error(messages.saveFailed);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
toast.success(messages.saved);
|
|
25
|
+
} catch (error) {
|
|
26
|
+
console.error('Failed to publish Puck data:', error);
|
|
27
|
+
toast.error(messages.saveFailed);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=publish-puck-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-puck-data.js","names":["toast","PUCK_API_BASE","publishPuckData","messages","saved","saveFailed","params","response","fetch","method","headers","body","JSON","stringify","ok","errorData","json","catch","console","error","success"],"sources":["../../../../src/puck-editor/internal/editor/publish-puck-data.ts"],"sourcesContent":["import { Data } from '@puckeditor/core';\nimport { toast } from 'sonner';\n\nimport { PUCK_API_BASE } from '../api/client';\n\ntype PublishMetadataImage = {\n id?: string;\n type?: string;\n name?: string;\n thumbnailImage?: string;\n};\n\ntype PublishPuckDataParams = {\n data: Partial<Data>;\n pageSettings: {\n title: string;\n metadataTitle: string;\n metadataDescription: string;\n metadataImage: PublishMetadataImage | null;\n published: boolean;\n urlAlias: string;\n };\n fieldName: string;\n nodeId: string;\n path: string;\n type?: string;\n lang?: string;\n messages?: { saved: string; saveFailed: string };\n};\n\nexport async function publishPuckData({\n messages = {\n saved: 'Successfully saved page',\n saveFailed: 'Failed to save page',\n },\n ...params\n}: PublishPuckDataParams): Promise<void> {\n try {\n const response = await fetch(`${PUCK_API_BASE}/publish`, {\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(params),\n });\n\n if (!response.ok) {\n const errorData = await response.json().catch(() => ({}));\n console.error('Failed to publish Puck data:', errorData);\n toast.error(messages.saveFailed);\n return;\n }\n\n toast.success(messages.saved);\n } catch (error) {\n console.error('Failed to publish Puck data:', error);\n toast.error(messages.saveFailed);\n }\n}\n"],"mappings":"AACA,SAASA,KAAK,QAAQ,QAAQ;AAE9B,SAASC,aAAa,QAAQ,eAAe;AA2B7C,OAAO,eAAeC,eAAeA,CAAC;EACpCC,QAAQ,GAAG;IACTC,KAAK,EAAE,yBAAyB;IAChCC,UAAU,EAAE;EACd,CAAC;EACD,GAAGC;AACkB,CAAC,EAAiB;EACvC,IAAI;IACF,MAAMC,QAAQ,GAAG,MAAMC,KAAK,CAAC,GAAGP,aAAa,UAAU,EAAE;MACvDQ,MAAM,EAAE,OAAO;MACfC,OAAO,EAAE;QAAE,cAAc,EAAE;MAAmB,CAAC;MAC/CC,IAAI,EAAEC,IAAI,CAACC,SAAS,CAACP,MAAM;IAC7B,CAAC,CAAC;IAEF,IAAI,CAACC,QAAQ,CAACO,EAAE,EAAE;MAChB,MAAMC,SAAS,GAAG,MAAMR,QAAQ,CAACS,IAAI,CAAC,CAAC,CAACC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;MACzDC,OAAO,CAACC,KAAK,CAAC,8BAA8B,EAAEJ,SAAS,CAAC;MACxDf,KAAK,CAACmB,KAAK,CAAChB,QAAQ,CAACE,UAAU,CAAC;MAChC;IACF;IAEAL,KAAK,CAACoB,OAAO,CAACjB,QAAQ,CAACC,KAAK,CAAC;EAC/B,CAAC,CAAC,OAAOe,KAAK,EAAE;IACdD,OAAO,CAACC,KAAK,CAAC,8BAA8B,EAAEA,KAAK,CAAC;IACpDnB,KAAK,CAACmB,KAAK,CAAChB,QAAQ,CAACE,UAAU,CAAC;EAClC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Config, Data, Overrides, Plugin } from '@puckeditor/core';
|
|
2
|
+
import { PuckNode } from '../puck-node';
|
|
3
|
+
import '@puckeditor/core/no-external.css';
|
|
4
|
+
type PuckEditorProps = {
|
|
5
|
+
node: PuckNode;
|
|
6
|
+
fieldName: string;
|
|
7
|
+
data: Partial<Data>;
|
|
8
|
+
config: Config;
|
|
9
|
+
closePuckEditor: () => void;
|
|
10
|
+
plugins?: (defaultPlugins: Plugin[]) => Plugin[];
|
|
11
|
+
overrides?: Partial<Overrides>;
|
|
12
|
+
};
|
|
13
|
+
export default function PuckEditor({ node, fieldName, data, config, closePuckEditor, plugins: customizePlugins, overrides: projectOverrides, }: PuckEditorProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=puck-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"puck-editor.d.ts","sourceRoot":"","sources":["../../../../src/puck-editor/internal/editor/puck-editor.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAQ,MAAM,kBAAkB,CAAC;AAgBzE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AASxC,OAAO,kCAAkC,CAAC;AAM1C,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAChC,CAAC;AAqDF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,MAAM,EACN,eAAe,EACf,OAAO,EAAE,gBAAgB,EACzB,SAAS,EAAE,gBAAgB,GAC5B,EAAE,eAAe,+BAsIjB"}
|