@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,29 @@
|
|
|
1
|
+
import { type DictionaryOverrides } from '../../shared/i18n';
|
|
2
|
+
declare const en: {
|
|
3
|
+
editorGate: {
|
|
4
|
+
loginTitle: string;
|
|
5
|
+
loginBody: string;
|
|
6
|
+
loginButton: string;
|
|
7
|
+
activateTitle: string;
|
|
8
|
+
activateBody: string;
|
|
9
|
+
activateButton: string;
|
|
10
|
+
working: string;
|
|
11
|
+
error: string;
|
|
12
|
+
loggedIn: string;
|
|
13
|
+
};
|
|
14
|
+
bridge: {
|
|
15
|
+
saving: string;
|
|
16
|
+
};
|
|
17
|
+
overlays: {
|
|
18
|
+
editParagraph: string;
|
|
19
|
+
editFragment: string;
|
|
20
|
+
editMenu: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type VisualEditorDictionary = typeof en;
|
|
24
|
+
export type BridgeLabels = VisualEditorDictionary['bridge'];
|
|
25
|
+
export type EditorGateLabels = VisualEditorDictionary['editorGate'];
|
|
26
|
+
export type VisualEditorDictionaryOverrides = DictionaryOverrides<VisualEditorDictionary>;
|
|
27
|
+
export declare function getVisualEditorDictionary(locale: string, overrides?: VisualEditorDictionaryOverrides): VisualEditorDictionary;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/visual-editor/internal/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEhF,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;CAsBP,CAAC;AA0BF,MAAM,MAAM,sBAAsB,GAAG,OAAO,EAAE,CAAC;AAC/C,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;AAC5D,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,YAAY,CAAC,CAAC;AAEpE,MAAM,MAAM,+BAA+B,GACzC,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;AAI9C,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,+BAA+B,GAC1C,sBAAsB,CAExB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { resolveDictionary } from '../../shared/i18n';
|
|
2
|
+
const en = {
|
|
3
|
+
editorGate: {
|
|
4
|
+
loginTitle: 'Preview & edit',
|
|
5
|
+
loginBody: 'Sign in to this site to see drafts (unpublished content) and edit this page.',
|
|
6
|
+
loginButton: 'Sign in',
|
|
7
|
+
activateTitle: 'Almost there',
|
|
8
|
+
activateBody: 'Your browser will ask to use your sign-in on this site — click "Allow".',
|
|
9
|
+
activateButton: 'Allow access',
|
|
10
|
+
working: 'One moment …',
|
|
11
|
+
error: 'Access not granted. Please try again.',
|
|
12
|
+
loggedIn: 'Signed in successfully'
|
|
13
|
+
},
|
|
14
|
+
bridge: {
|
|
15
|
+
saving: 'Saving …'
|
|
16
|
+
},
|
|
17
|
+
overlays: {
|
|
18
|
+
editParagraph: 'Edit Paragraph',
|
|
19
|
+
editFragment: 'Edit Fragment',
|
|
20
|
+
editMenu: 'Edit menu'
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const de = {
|
|
24
|
+
editorGate: {
|
|
25
|
+
loginTitle: 'Vorschau & Bearbeitung',
|
|
26
|
+
loginBody: 'Melde dich auf dieser Website an, um Entwürfe (unveröffentlichte Inhalte) zu sehen und diese Seite zu bearbeiten.',
|
|
27
|
+
loginButton: 'Anmelden',
|
|
28
|
+
activateTitle: 'Fast geschafft',
|
|
29
|
+
activateBody: 'Dein Browser fragt nach der Erlaubnis, deine Anmeldung hier zu verwenden – klicke auf „Erlauben“.',
|
|
30
|
+
activateButton: 'Zugriff erlauben',
|
|
31
|
+
working: 'Einen Moment …',
|
|
32
|
+
error: 'Zugriff nicht erlaubt. Bitte erneut versuchen.',
|
|
33
|
+
loggedIn: 'Anmeldung erfolgreich'
|
|
34
|
+
},
|
|
35
|
+
bridge: {
|
|
36
|
+
saving: 'Wird gespeichert …'
|
|
37
|
+
},
|
|
38
|
+
overlays: {
|
|
39
|
+
editParagraph: 'Absatz bearbeiten',
|
|
40
|
+
editFragment: 'Fragment bearbeiten',
|
|
41
|
+
editMenu: 'Menü bearbeiten'
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const dictionaries = {
|
|
45
|
+
en,
|
|
46
|
+
de
|
|
47
|
+
};
|
|
48
|
+
export function getVisualEditorDictionary(locale, overrides) {
|
|
49
|
+
return resolveDictionary(dictionaries, en, locale, overrides);
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.js","names":["resolveDictionary","en","editorGate","loginTitle","loginBody","loginButton","activateTitle","activateBody","activateButton","working","error","loggedIn","bridge","saving","overlays","editParagraph","editFragment","editMenu","de","dictionaries","getVisualEditorDictionary","locale","overrides"],"sources":["../../../src/visual-editor/internal/i18n.ts"],"sourcesContent":["import { resolveDictionary, type DictionaryOverrides } from '../../shared/i18n';\n\nconst en = {\n editorGate: {\n loginTitle: 'Preview & edit',\n loginBody:\n 'Sign in to this site to see drafts (unpublished content) and edit this page.',\n loginButton: 'Sign in',\n activateTitle: 'Almost there',\n activateBody:\n 'Your browser will ask to use your sign-in on this site — click \"Allow\".',\n activateButton: 'Allow access',\n working: 'One moment …',\n error: 'Access not granted. Please try again.',\n loggedIn: 'Signed in successfully',\n },\n bridge: {\n saving: 'Saving …',\n },\n overlays: {\n editParagraph: 'Edit Paragraph',\n editFragment: 'Edit Fragment',\n editMenu: 'Edit menu',\n },\n};\n\nconst de: VisualEditorDictionary = {\n editorGate: {\n loginTitle: 'Vorschau & Bearbeitung',\n loginBody:\n 'Melde dich auf dieser Website an, um Entwürfe (unveröffentlichte Inhalte) zu sehen und diese Seite zu bearbeiten.',\n loginButton: 'Anmelden',\n activateTitle: 'Fast geschafft',\n activateBody:\n 'Dein Browser fragt nach der Erlaubnis, deine Anmeldung hier zu verwenden – klicke auf „Erlauben“.',\n activateButton: 'Zugriff erlauben',\n working: 'Einen Moment …',\n error: 'Zugriff nicht erlaubt. Bitte erneut versuchen.',\n loggedIn: 'Anmeldung erfolgreich',\n },\n bridge: {\n saving: 'Wird gespeichert …',\n },\n overlays: {\n editParagraph: 'Absatz bearbeiten',\n editFragment: 'Fragment bearbeiten',\n editMenu: 'Menü bearbeiten',\n },\n};\n\nexport type VisualEditorDictionary = typeof en;\nexport type BridgeLabels = VisualEditorDictionary['bridge'];\nexport type EditorGateLabels = VisualEditorDictionary['editorGate'];\n\nexport type VisualEditorDictionaryOverrides =\n DictionaryOverrides<VisualEditorDictionary>;\n\nconst dictionaries: Record<string, VisualEditorDictionary> = { en, de };\n\nexport function getVisualEditorDictionary(\n locale: string,\n overrides?: VisualEditorDictionaryOverrides\n): VisualEditorDictionary {\n return resolveDictionary(dictionaries, en, locale, overrides);\n}\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAkC,mBAAmB;AAE/E,MAAMC,EAAE,GAAG;EACTC,UAAU,EAAE;IACVC,UAAU,EAAE,gBAAgB;IAC5BC,SAAS,EACP,8EAA8E;IAChFC,WAAW,EAAE,SAAS;IACtBC,aAAa,EAAE,cAAc;IAC7BC,YAAY,EACV,yEAAyE;IAC3EC,cAAc,EAAE,cAAc;IAC9BC,OAAO,EAAE,cAAc;IACvBC,KAAK,EAAE,uCAAuC;IAC9CC,QAAQ,EAAE;EACZ,CAAC;EACDC,MAAM,EAAE;IACNC,MAAM,EAAE;EACV,CAAC;EACDC,QAAQ,EAAE;IACRC,aAAa,EAAE,gBAAgB;IAC/BC,YAAY,EAAE,eAAe;IAC7BC,QAAQ,EAAE;EACZ;AACF,CAAC;AAED,MAAMC,EAA0B,GAAG;EACjChB,UAAU,EAAE;IACVC,UAAU,EAAE,wBAAwB;IACpCC,SAAS,EACP,mHAAmH;IACrHC,WAAW,EAAE,UAAU;IACvBC,aAAa,EAAE,gBAAgB;IAC/BC,YAAY,EACV,mGAAmG;IACrGC,cAAc,EAAE,kBAAkB;IAClCC,OAAO,EAAE,gBAAgB;IACzBC,KAAK,EAAE,gDAAgD;IACvDC,QAAQ,EAAE;EACZ,CAAC;EACDC,MAAM,EAAE;IACNC,MAAM,EAAE;EACV,CAAC;EACDC,QAAQ,EAAE;IACRC,aAAa,EAAE,mBAAmB;IAClCC,YAAY,EAAE,qBAAqB;IACnCC,QAAQ,EAAE;EACZ;AACF,CAAC;AASD,MAAME,YAAoD,GAAG;EAAElB,EAAE;EAAEiB;AAAG,CAAC;AAEvE,OAAO,SAASE,yBAAyBA,CACvCC,MAAc,EACdC,SAA2C,EACnB;EACxB,OAAOtB,iBAAiB,CAACmB,YAAY,EAAElB,EAAE,EAAEoB,MAAM,EAAEC,SAAS,CAAC;AAC/D","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Origin of the trusted Drupal embedder, used as the postMessage targetOrigin so
|
|
3
|
+
* UUIDs/paths never leak to an arbitrary framer. Null when unconfigured, in which
|
|
4
|
+
* case callers must not post.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getDrupalOrigin(): string | null;
|
|
7
|
+
//# sourceMappingURL=drupal-origin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drupal-origin.d.ts","sourceRoot":"","sources":["../../../../src/visual-editor/internal/overlays/drupal-origin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,MAAM,GAAG,IAAI,CAQ/C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Origin of the trusted Drupal embedder, used as the postMessage targetOrigin so
|
|
3
|
+
* UUIDs/paths never leak to an arbitrary framer. Null when unconfigured, in which
|
|
4
|
+
* case callers must not post.
|
|
5
|
+
*/
|
|
6
|
+
export function getDrupalOrigin() {
|
|
7
|
+
const base = process.env.NEXT_PUBLIC_DRUPAL_BASE_URL;
|
|
8
|
+
if (!base) return null;
|
|
9
|
+
try {
|
|
10
|
+
return new URL(base).origin;
|
|
11
|
+
} catch {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=drupal-origin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drupal-origin.js","names":["getDrupalOrigin","base","process","env","NEXT_PUBLIC_DRUPAL_BASE_URL","URL","origin"],"sources":["../../../../src/visual-editor/internal/overlays/drupal-origin.ts"],"sourcesContent":["/**\n * Origin of the trusted Drupal embedder, used as the postMessage targetOrigin so\n * UUIDs/paths never leak to an arbitrary framer. Null when unconfigured, in which\n * case callers must not post.\n */\nexport function getDrupalOrigin(): string | null {\n const base = process.env.NEXT_PUBLIC_DRUPAL_BASE_URL;\n if (!base) return null;\n try {\n return new URL(base).origin;\n } catch {\n return null;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,eAAeA,CAAA,EAAkB;EAC/C,MAAMC,IAAI,GAAGC,OAAO,CAACC,GAAG,CAACC,2BAA2B;EACpD,IAAI,CAACH,IAAI,EAAE,OAAO,IAAI;EACtB,IAAI;IACF,OAAO,IAAII,GAAG,CAACJ,IAAI,CAAC,CAACK,MAAM;EAC7B,CAAC,CAAC,MAAM;IACN,OAAO,IAAI;EACb;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '../../../theme.css';
|
|
2
|
+
type EditButtonProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
message: Record<string, unknown>;
|
|
5
|
+
position: string;
|
|
6
|
+
showLabel?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export default function EditButton({ label, message, position, showLabel, }: EditButtonProps): import("react").JSX.Element | null;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=edit-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-button.d.ts","sourceRoot":"","sources":["../../../../src/visual-editor/internal/overlays/edit-button.tsx"],"names":[],"mappings":"AASA,OAAO,oBAAoB,CAAC;AAE5B,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,KAAK,EACL,OAAO,EACP,QAAQ,EACR,SAAiB,GAClB,EAAE,eAAe,sCAyCjB"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useEffect, useState } from 'react';
|
|
5
|
+
import { usePathname } from 'next/navigation';
|
|
6
|
+
import { cn } from '../../../shared/cn';
|
|
7
|
+
import { getDrupalOrigin } from './drupal-origin';
|
|
8
|
+
import { EditIcon } from './edit-icon';
|
|
9
|
+
import '../../../theme.css';
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
export default function EditButton(t0) {
|
|
12
|
+
const $ = _c(23);
|
|
13
|
+
const {
|
|
14
|
+
label,
|
|
15
|
+
message,
|
|
16
|
+
position,
|
|
17
|
+
showLabel: t1
|
|
18
|
+
} = t0;
|
|
19
|
+
const showLabel = t1 === undefined ? false : t1;
|
|
20
|
+
const pathname = usePathname();
|
|
21
|
+
const [isInIframe, setIsInIframe] = useState(false);
|
|
22
|
+
let t2;
|
|
23
|
+
let t3;
|
|
24
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
25
|
+
t2 = () => {
|
|
26
|
+
setIsInIframe(typeof window !== "undefined" && window.self !== window.top);
|
|
27
|
+
};
|
|
28
|
+
t3 = [];
|
|
29
|
+
$[0] = t2;
|
|
30
|
+
$[1] = t3;
|
|
31
|
+
} else {
|
|
32
|
+
t2 = $[0];
|
|
33
|
+
t3 = $[1];
|
|
34
|
+
}
|
|
35
|
+
useEffect(t2, t3);
|
|
36
|
+
let t4;
|
|
37
|
+
if ($[2] !== message || $[3] !== pathname) {
|
|
38
|
+
t4 = e => {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
const targetOrigin = getDrupalOrigin();
|
|
41
|
+
if (!targetOrigin) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
window.parent.postMessage({
|
|
45
|
+
...message,
|
|
46
|
+
pathname
|
|
47
|
+
}, targetOrigin);
|
|
48
|
+
};
|
|
49
|
+
$[2] = message;
|
|
50
|
+
$[3] = pathname;
|
|
51
|
+
$[4] = t4;
|
|
52
|
+
} else {
|
|
53
|
+
t4 = $[4];
|
|
54
|
+
}
|
|
55
|
+
const editComponent = t4;
|
|
56
|
+
if (!isInIframe) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
let t5;
|
|
60
|
+
if ($[5] !== position) {
|
|
61
|
+
t5 = cn("nh-root nh:absolute nh:flex nh:transform-gpu nh:gap-2 nh:antialiased nh:opacity-75 nh:transition-all nh:duration-75 nh:ease-in-out nh:hover:scale-105 nh:hover:opacity-100", position);
|
|
62
|
+
$[5] = position;
|
|
63
|
+
$[6] = t5;
|
|
64
|
+
} else {
|
|
65
|
+
t5 = $[6];
|
|
66
|
+
}
|
|
67
|
+
const t6 = !showLabel;
|
|
68
|
+
let t7;
|
|
69
|
+
if ($[7] !== showLabel || $[8] !== t6) {
|
|
70
|
+
t7 = cn("nh:flex nh:gap-2 nh:rounded-(--nh-radius) nh:bg-(--nh-primary) nh:py-2 nh:text-xs nh:font-(--nh-font) nh:font-bold nh:text-(--nh-primary-fg) nh:shadow-lg nh:transition-colors nh:hover:bg-[color-mix(in_oklab,var(--nh-primary),black_20%)]", {
|
|
71
|
+
"nh:px-3": showLabel,
|
|
72
|
+
"nh:px-2": t6
|
|
73
|
+
});
|
|
74
|
+
$[7] = showLabel;
|
|
75
|
+
$[8] = t6;
|
|
76
|
+
$[9] = t7;
|
|
77
|
+
} else {
|
|
78
|
+
t7 = $[9];
|
|
79
|
+
}
|
|
80
|
+
const t8 = !showLabel;
|
|
81
|
+
let t9;
|
|
82
|
+
if ($[10] !== t8) {
|
|
83
|
+
t9 = cn({
|
|
84
|
+
"nh:sr-only": t8
|
|
85
|
+
});
|
|
86
|
+
$[10] = t8;
|
|
87
|
+
$[11] = t9;
|
|
88
|
+
} else {
|
|
89
|
+
t9 = $[11];
|
|
90
|
+
}
|
|
91
|
+
let t10;
|
|
92
|
+
if ($[12] !== label || $[13] !== t9) {
|
|
93
|
+
t10 = /*#__PURE__*/_jsx("span", {
|
|
94
|
+
className: t9,
|
|
95
|
+
children: label
|
|
96
|
+
});
|
|
97
|
+
$[12] = label;
|
|
98
|
+
$[13] = t9;
|
|
99
|
+
$[14] = t10;
|
|
100
|
+
} else {
|
|
101
|
+
t10 = $[14];
|
|
102
|
+
}
|
|
103
|
+
let t11;
|
|
104
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
105
|
+
t11 = /*#__PURE__*/_jsx(EditIcon, {});
|
|
106
|
+
$[15] = t11;
|
|
107
|
+
} else {
|
|
108
|
+
t11 = $[15];
|
|
109
|
+
}
|
|
110
|
+
let t12;
|
|
111
|
+
if ($[16] !== editComponent || $[17] !== t10 || $[18] !== t7) {
|
|
112
|
+
t12 = /*#__PURE__*/_jsxs("button", {
|
|
113
|
+
onClick: editComponent,
|
|
114
|
+
className: t7,
|
|
115
|
+
children: [t10, t11]
|
|
116
|
+
});
|
|
117
|
+
$[16] = editComponent;
|
|
118
|
+
$[17] = t10;
|
|
119
|
+
$[18] = t7;
|
|
120
|
+
$[19] = t12;
|
|
121
|
+
} else {
|
|
122
|
+
t12 = $[19];
|
|
123
|
+
}
|
|
124
|
+
let t13;
|
|
125
|
+
if ($[20] !== t12 || $[21] !== t5) {
|
|
126
|
+
t13 = /*#__PURE__*/_jsx("div", {
|
|
127
|
+
className: t5,
|
|
128
|
+
children: t12
|
|
129
|
+
});
|
|
130
|
+
$[20] = t12;
|
|
131
|
+
$[21] = t5;
|
|
132
|
+
$[22] = t13;
|
|
133
|
+
} else {
|
|
134
|
+
t13 = $[22];
|
|
135
|
+
}
|
|
136
|
+
return t13;
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=edit-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-button.js","names":["c","_c","useEffect","useState","usePathname","cn","getDrupalOrigin","EditIcon","jsx","_jsx","jsxs","_jsxs","EditButton","t0","$","label","message","position","showLabel","t1","undefined","pathname","isInIframe","setIsInIframe","t2","t3","Symbol","for","window","self","top","t4","e","preventDefault","targetOrigin","parent","postMessage","editComponent","t5","t6","t7","t8","t9","t10","className","children","t11","t12","t13"],"sources":["../../../../src/visual-editor/internal/overlays/edit-button.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, useState } from 'react';\nimport { usePathname } from 'next/navigation';\n\nimport { cn } from '../../../shared/cn';\nimport { getDrupalOrigin } from './drupal-origin';\nimport { EditIcon } from './edit-icon';\n\nimport '../../../theme.css';\n\ntype EditButtonProps = {\n label: string;\n message: Record<string, unknown>;\n position: string;\n showLabel?: boolean;\n};\n\nexport default function EditButton({\n label,\n message,\n position,\n showLabel = false,\n}: EditButtonProps) {\n const pathname = usePathname();\n const [isInIframe, setIsInIframe] = useState(false);\n\n useEffect(() => {\n setIsInIframe(typeof window !== 'undefined' && window.self !== window.top);\n }, []);\n\n const editComponent = (e: React.MouseEvent<HTMLButtonElement>) => {\n e.preventDefault();\n\n const targetOrigin = getDrupalOrigin();\n if (!targetOrigin) return;\n\n window.parent.postMessage({ ...message, pathname }, targetOrigin);\n };\n\n if (!isInIframe) {\n return null;\n }\n\n return (\n <div\n className={cn(\n 'nh-root nh:absolute nh:flex nh:transform-gpu nh:gap-2 nh:antialiased nh:opacity-75 nh:transition-all nh:duration-75 nh:ease-in-out nh:hover:scale-105 nh:hover:opacity-100',\n position\n )}\n >\n <button\n onClick={editComponent}\n className={cn(\n 'nh:flex nh:gap-2 nh:rounded-(--nh-radius) nh:bg-(--nh-primary) nh:py-2 nh:text-xs nh:font-(--nh-font) nh:font-bold nh:text-(--nh-primary-fg) nh:shadow-lg nh:transition-colors nh:hover:bg-[color-mix(in_oklab,var(--nh-primary),black_20%)]',\n { 'nh:px-3': showLabel, 'nh:px-2': !showLabel }\n )}\n >\n <span className={cn({ 'nh:sr-only': !showLabel })}>{label}</span>\n\n <EditIcon />\n </button>\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,WAAW,QAAQ,iBAAiB;AAE7C,SAASC,EAAE,QAAQ,oBAAoB;AACvC,SAASC,eAAe,QAAQ,iBAAiB;AACjD,SAASC,QAAQ,QAAQ,aAAa;AAEtC,OAAO,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAS5B,eAAe,SAAAC,WAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAb,EAAA;EAAoB;IAAAc,KAAA;IAAAC,OAAA;IAAAC,QAAA;IAAAC,SAAA,EAAAC;EAAA,IAAAN,EAKjB;EADhB,MAAAK,SAAA,GAAAC,EAAiB,KAAjBC,SAAiB,GAAjB,KAAiB,GAAjBD,EAAiB;EAEjB,MAAAE,QAAA,GAAiBjB,WAAW,CAAC,CAAC;EAC9B,OAAAkB,UAAA,EAAAC,aAAA,IAAoCpB,QAAQ,CAAC,KAAK,CAAC;EAAC,IAAAqB,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAX,CAAA,QAAAY,MAAA,CAAAC,GAAA;IAE1CH,EAAA,GAAAA,CAAA;MACRD,aAAa,CAAC,OAAOK,MAAM,KAAK,WAAyC,IAA1BA,MAAM,CAAAC,IAAK,KAAKD,MAAM,CAAAE,GAAI,CAAC;IAAA,CAC3E;IAAEL,EAAA,KAAE;IAAAX,CAAA,MAAAU,EAAA;IAAAV,CAAA,MAAAW,EAAA;EAAA;IAAAD,EAAA,GAAAV,CAAA;IAAAW,EAAA,GAAAX,CAAA;EAAA;EAFLZ,SAAS,CAACsB,EAET,EAAEC,EAAE,CAAC;EAAA,IAAAM,EAAA;EAAA,IAAAjB,CAAA,QAAAE,OAAA,IAAAF,CAAA,QAAAO,QAAA;IAEgBU,EAAA,GAAAC,CAAA;MACpBA,CAAC,CAAAC,cAAe,CAAC,CAAC;MAElB,MAAAC,YAAA,GAAqB5B,eAAe,CAAC,CAAC;MACtC,IAAI,CAAC4B,YAAY;QAAA;MAAA;MAEjBN,MAAM,CAAAO,MAAO,CAAAC,WAAY,CAAC;QAAA,GAAKpB,OAAO;QAAAK;MAAW,CAAC,EAAEa,YAAY,CAAC;IAAA,CAClE;IAAApB,CAAA,MAAAE,OAAA;IAAAF,CAAA,MAAAO,QAAA;IAAAP,CAAA,MAAAiB,EAAA;EAAA;IAAAA,EAAA,GAAAjB,CAAA;EAAA;EAPD,MAAAuB,aAAA,GAAsBN,EAOrB;EAED,IAAI,CAACT,UAAU;IAAA,OACN,IAAI;EAAA;EACZ,IAAAgB,EAAA;EAAA,IAAAxB,CAAA,QAAAG,QAAA;IAIcqB,EAAA,GAAAjC,EAAE,CACX,4KAA4K,EAC5KY,QACF,CAAC;IAAAH,CAAA,MAAAG,QAAA;IAAAH,CAAA,MAAAwB,EAAA;EAAA;IAAAA,EAAA,GAAAxB,CAAA;EAAA;EAMsC,MAAAyB,EAAA,IAACrB,SAAS;EAAA,IAAAsB,EAAA;EAAA,IAAA1B,CAAA,QAAAI,SAAA,IAAAJ,CAAA,QAAAyB,EAAA;IAFpCC,EAAA,GAAAnC,EAAE,CACX,8OAA8O,EAC9O;MAAA,WAAaa,SAAS;MAAA,WAAaqB;IAAW,CAChD,CAAC;IAAAzB,CAAA,MAAAI,SAAA;IAAAJ,CAAA,MAAAyB,EAAA;IAAAzB,CAAA,MAAA0B,EAAA;EAAA;IAAAA,EAAA,GAAA1B,CAAA;EAAA;EAEmC,MAAA2B,EAAA,IAACvB,SAAS;EAAA,IAAAwB,EAAA;EAAA,IAAA5B,CAAA,SAAA2B,EAAA;IAA7BC,EAAA,GAAArC,EAAE,CAAC;MAAA,cAAgBoC;IAAW,CAAC,CAAC;IAAA3B,CAAA,OAAA2B,EAAA;IAAA3B,CAAA,OAAA4B,EAAA;EAAA;IAAAA,EAAA,GAAA5B,CAAA;EAAA;EAAA,IAAA6B,GAAA;EAAA,IAAA7B,CAAA,SAAAC,KAAA,IAAAD,CAAA,SAAA4B,EAAA;IAAjDC,GAAA,gBAAAlC,IAAA;MAAiBmC,SAAgC,EAAhCF,EAAgC;MAAAG,QAAA,EAAG9B;IAAK,CAAO,CAAC;IAAAD,CAAA,OAAAC,KAAA;IAAAD,CAAA,OAAA4B,EAAA;IAAA5B,CAAA,OAAA6B,GAAA;EAAA;IAAAA,GAAA,GAAA7B,CAAA;EAAA;EAAA,IAAAgC,GAAA;EAAA,IAAAhC,CAAA,SAAAY,MAAA,CAAAC,GAAA;IAEjEmB,GAAA,gBAAArC,IAAA,CAACF,QAAQ,IAAE,CAAC;IAAAO,CAAA,OAAAgC,GAAA;EAAA;IAAAA,GAAA,GAAAhC,CAAA;EAAA;EAAA,IAAAiC,GAAA;EAAA,IAAAjC,CAAA,SAAAuB,aAAA,IAAAvB,CAAA,SAAA6B,GAAA,IAAA7B,CAAA,SAAA0B,EAAA;IATdO,GAAA,gBAAApC,KAAA;MACW0B,OAAa,EAAbA,aAAa;MACXO,SAGV,EAHUJ,EAGV;MAAAK,QAAA,GAEDF,GAAiE,EAEjEG,GAAY;IAAA,CACN,CAAC;IAAAhC,CAAA,OAAAuB,aAAA;IAAAvB,CAAA,OAAA6B,GAAA;IAAA7B,CAAA,OAAA0B,EAAA;IAAA1B,CAAA,OAAAiC,GAAA;EAAA;IAAAA,GAAA,GAAAjC,CAAA;EAAA;EAAA,IAAAkC,GAAA;EAAA,IAAAlC,CAAA,SAAAiC,GAAA,IAAAjC,CAAA,SAAAwB,EAAA;IAhBXU,GAAA,gBAAAvC,IAAA;MACamC,SAGV,EAHUN,EAGV;MAAAO,QAAA,EAEDE;IAUS,CACN,CAAC;IAAAjC,CAAA,OAAAiC,GAAA;IAAAjC,CAAA,OAAAwB,EAAA;IAAAxB,CAAA,OAAAkC,GAAA;EAAA;IAAAA,GAAA,GAAAlC,CAAA;EAAA;EAAA,OAjBNkC,GAiBM;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-icon.d.ts","sourceRoot":"","sources":["../../../../src/visual-editor/internal/overlays/edit-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,+BAiBtD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function EditIcon(props) {
|
|
3
|
+
return /*#__PURE__*/_jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: "16",
|
|
6
|
+
height: "16",
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
fill: "none",
|
|
9
|
+
stroke: "currentColor",
|
|
10
|
+
strokeWidth: "2",
|
|
11
|
+
strokeLinecap: "round",
|
|
12
|
+
strokeLinejoin: "round",
|
|
13
|
+
...props,
|
|
14
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
15
|
+
d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=edit-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-icon.js","names":["EditIcon","props","_jsx","xmlns","width","height","viewBox","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin","children","d"],"sources":["../../../../src/visual-editor/internal/overlays/edit-icon.tsx"],"sourcesContent":["import type { SVGProps } from 'react';\n\nexport function EditIcon(props: SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <path d=\"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z\" />\n </svg>\n );\n}\n"],"mappings":";AAEA,OAAO,SAASA,QAAQA,CAACC,KAA8B,EAAE;EACvD,oBACEC,IAAA;IACEC,KAAK,EAAC,4BAA4B;IAClCC,KAAK,EAAC,IAAI;IACVC,MAAM,EAAC,IAAI;IACXC,OAAO,EAAC,WAAW;IACnBC,IAAI,EAAC,MAAM;IACXC,MAAM,EAAC,cAAc;IACrBC,WAAW,EAAC,GAAG;IACfC,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC,OAAO;IAAA,GAClBV,KAAK;IAAAW,QAAA,eAETV,IAAA;MAAMW,CAAC,EAAC;IAAyD,CAAE;EAAC,CACjE,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type FragmentEntity = {
|
|
2
|
+
id: string;
|
|
3
|
+
type?: string;
|
|
4
|
+
langcode?: string;
|
|
5
|
+
drupal_internal__fid?: string;
|
|
6
|
+
};
|
|
7
|
+
type FragmentWrapperProps = {
|
|
8
|
+
entity: FragmentEntity;
|
|
9
|
+
enable?: boolean;
|
|
10
|
+
editmode?: 'edit-form' | 'sidebar' | 'modal' | 'inline';
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export default function FragmentWrapper({ entity, enable, editmode, children, }: FragmentWrapperProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=fragment-wrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fragment-wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/visual-editor/internal/overlays/fragment/fragment-wrapper.tsx"],"names":[],"mappings":"AAKA,KAAK,cAAc,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,MAAM,EACN,MAAa,EACb,QAAoB,EACpB,QAAQ,GACT,EAAE,oBAAoB,+BA0CtB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { SignedIn, SignedOut } from '../../../../auth/server';
|
|
2
|
+
import { getVisualEditorDictionary } from '../../i18n';
|
|
3
|
+
import EditButton from '../edit-button';
|
|
4
|
+
import IframeWrapper from '../iframe-wrapper';
|
|
5
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export default function FragmentWrapper({
|
|
7
|
+
entity,
|
|
8
|
+
enable = true,
|
|
9
|
+
editmode = 'sidebar',
|
|
10
|
+
children
|
|
11
|
+
}) {
|
|
12
|
+
const {
|
|
13
|
+
type,
|
|
14
|
+
id,
|
|
15
|
+
drupal_internal__fid
|
|
16
|
+
} = entity;
|
|
17
|
+
if (!type) {
|
|
18
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
19
|
+
children: ["no visual editor ", children]
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
const lang = entity.langcode ?? 'en';
|
|
23
|
+
const label = getVisualEditorDictionary(lang).overlays.editFragment;
|
|
24
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
25
|
+
id: id,
|
|
26
|
+
"fragment-type": type,
|
|
27
|
+
"data-nodehive-enable": enable.toString(),
|
|
28
|
+
"data-nodehive-editmode": editmode,
|
|
29
|
+
"data-nodehive-type": "fragment",
|
|
30
|
+
"data-nodehive-id": drupal_internal__fid ?? '',
|
|
31
|
+
"data-nodehive-uuid": id,
|
|
32
|
+
"data-nodehive-langcode": lang,
|
|
33
|
+
className: "nh:relative",
|
|
34
|
+
children: [/*#__PURE__*/_jsx(SignedIn, {
|
|
35
|
+
children: /*#__PURE__*/_jsxs(IframeWrapper, {
|
|
36
|
+
children: [/*#__PURE__*/_jsx(EditButton, {
|
|
37
|
+
label: label,
|
|
38
|
+
position: "nh:-top-2 nh:-right-2",
|
|
39
|
+
message: {
|
|
40
|
+
type: 'fragment',
|
|
41
|
+
uuid: id,
|
|
42
|
+
id: drupal_internal__fid ?? '',
|
|
43
|
+
langcode: lang
|
|
44
|
+
}
|
|
45
|
+
}), children]
|
|
46
|
+
})
|
|
47
|
+
}), /*#__PURE__*/_jsx(SignedOut, {
|
|
48
|
+
children: children
|
|
49
|
+
})]
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=fragment-wrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fragment-wrapper.js","names":["SignedIn","SignedOut","getVisualEditorDictionary","EditButton","IframeWrapper","jsxs","_jsxs","jsx","_jsx","FragmentWrapper","entity","enable","editmode","children","type","id","drupal_internal__fid","lang","langcode","label","overlays","editFragment","toString","className","position","message","uuid"],"sources":["../../../../../src/visual-editor/internal/overlays/fragment/fragment-wrapper.tsx"],"sourcesContent":["import { SignedIn, SignedOut } from '../../../../auth/server';\nimport { getVisualEditorDictionary } from '../../i18n';\nimport EditButton from '../edit-button';\nimport IframeWrapper from '../iframe-wrapper';\n\ntype FragmentEntity = {\n id: string;\n type?: string;\n langcode?: string;\n drupal_internal__fid?: string;\n};\n\ntype FragmentWrapperProps = {\n entity: FragmentEntity;\n enable?: boolean;\n editmode?: 'edit-form' | 'sidebar' | 'modal' | 'inline';\n children: React.ReactNode;\n};\n\nexport default function FragmentWrapper({\n entity,\n enable = true,\n editmode = 'sidebar',\n children,\n}: FragmentWrapperProps) {\n const { type, id, drupal_internal__fid } = entity;\n\n if (!type) {\n return <div>no visual editor {children}</div>;\n }\n\n const lang = entity.langcode ?? 'en';\n const label = getVisualEditorDictionary(lang).overlays.editFragment;\n\n return (\n <div\n id={id}\n fragment-type={type}\n data-nodehive-enable={enable.toString()}\n data-nodehive-editmode={editmode}\n data-nodehive-type=\"fragment\"\n data-nodehive-id={drupal_internal__fid ?? ''}\n data-nodehive-uuid={id}\n data-nodehive-langcode={lang}\n className=\"nh:relative\"\n >\n <SignedIn>\n <IframeWrapper>\n <EditButton\n label={label}\n position=\"nh:-top-2 nh:-right-2\"\n message={{\n type: 'fragment',\n uuid: id,\n id: drupal_internal__fid ?? '',\n langcode: lang,\n }}\n />\n\n {children}\n </IframeWrapper>\n </SignedIn>\n\n <SignedOut>{children}</SignedOut>\n </div>\n );\n}\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,SAAS,QAAQ,yBAAyB;AAC7D,SAASC,yBAAyB,QAAQ,YAAY;AACtD,OAAOC,UAAU,MAAM,gBAAgB;AACvC,OAAOC,aAAa,MAAM,mBAAmB;AAAC,SAAAC,IAAA,IAAAC,KAAA,EAAAC,GAAA,IAAAC,IAAA;AAgB9C,eAAe,SAASC,eAAeA,CAAC;EACtCC,MAAM;EACNC,MAAM,GAAG,IAAI;EACbC,QAAQ,GAAG,SAAS;EACpBC;AACoB,CAAC,EAAE;EACvB,MAAM;IAAEC,IAAI;IAAEC,EAAE;IAAEC;EAAqB,CAAC,GAAGN,MAAM;EAEjD,IAAI,CAACI,IAAI,EAAE;IACT,oBAAOR,KAAA;MAAAO,QAAA,GAAK,mBAAiB,EAACA,QAAQ;IAAA,CAAM,CAAC;EAC/C;EAEA,MAAMI,IAAI,GAAGP,MAAM,CAACQ,QAAQ,IAAI,IAAI;EACpC,MAAMC,KAAK,GAAGjB,yBAAyB,CAACe,IAAI,CAAC,CAACG,QAAQ,CAACC,YAAY;EAEnE,oBACEf,KAAA;IACES,EAAE,EAAEA,EAAG;IACP,iBAAeD,IAAK;IACpB,wBAAsBH,MAAM,CAACW,QAAQ,CAAC,CAAE;IACxC,0BAAwBV,QAAS;IACjC,sBAAmB,UAAU;IAC7B,oBAAkBI,oBAAoB,IAAI,EAAG;IAC7C,sBAAoBD,EAAG;IACvB,0BAAwBE,IAAK;IAC7BM,SAAS,EAAC,aAAa;IAAAV,QAAA,gBAEvBL,IAAA,CAACR,QAAQ;MAAAa,QAAA,eACPP,KAAA,CAACF,aAAa;QAAAS,QAAA,gBACZL,IAAA,CAACL,UAAU;UACTgB,KAAK,EAAEA,KAAM;UACbK,QAAQ,EAAC,uBAAuB;UAChCC,OAAO,EAAE;YACPX,IAAI,EAAE,UAAU;YAChBY,IAAI,EAAEX,EAAE;YACRA,EAAE,EAAEC,oBAAoB,IAAI,EAAE;YAC9BE,QAAQ,EAAED;UACZ;QAAE,CACH,CAAC,EAEDJ,QAAQ;MAAA,CACI;IAAC,CACR,CAAC,eAEXL,IAAA,CAACP,SAAS;MAAAY,QAAA,EAAEA;IAAQ,CAAY,CAAC;EAAA,CAC9B,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type IframeWrapperProps = {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
};
|
|
4
|
+
export default function IframeWrapper({ children }: IframeWrapperProps): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=iframe-wrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iframe-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/visual-editor/internal/overlays/iframe-wrapper.tsx"],"names":[],"mappings":"AAIA,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,+VAgBrE"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useEffect, useState } from 'react';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export default function IframeWrapper(t0) {
|
|
7
|
+
const $ = _c(4);
|
|
8
|
+
const {
|
|
9
|
+
children
|
|
10
|
+
} = t0;
|
|
11
|
+
const [isInIframe, setIsInIframe] = useState(false);
|
|
12
|
+
let t1;
|
|
13
|
+
let t2;
|
|
14
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
15
|
+
t1 = () => {
|
|
16
|
+
setIsInIframe(typeof window !== "undefined" && window.self !== window.top);
|
|
17
|
+
};
|
|
18
|
+
t2 = [];
|
|
19
|
+
$[0] = t1;
|
|
20
|
+
$[1] = t2;
|
|
21
|
+
} else {
|
|
22
|
+
t1 = $[0];
|
|
23
|
+
t2 = $[1];
|
|
24
|
+
}
|
|
25
|
+
useEffect(t1, t2);
|
|
26
|
+
if (!isInIframe) {
|
|
27
|
+
return children;
|
|
28
|
+
}
|
|
29
|
+
let t3;
|
|
30
|
+
if ($[2] !== children) {
|
|
31
|
+
t3 = /*#__PURE__*/_jsx("div", {
|
|
32
|
+
className: "nh:rounded-lg nh:p-2 nh:outline-(--nh-primary) nh:hover:outline-2 nh:hover:-outline-offset-2 nh:hover:outline-dashed",
|
|
33
|
+
children: children
|
|
34
|
+
});
|
|
35
|
+
$[2] = children;
|
|
36
|
+
$[3] = t3;
|
|
37
|
+
} else {
|
|
38
|
+
t3 = $[3];
|
|
39
|
+
}
|
|
40
|
+
return t3;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=iframe-wrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iframe-wrapper.js","names":["c","_c","useEffect","useState","jsx","_jsx","IframeWrapper","t0","$","children","isInIframe","setIsInIframe","t1","t2","Symbol","for","window","self","top","t3","className"],"sources":["../../../../src/visual-editor/internal/overlays/iframe-wrapper.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, useState } from 'react';\n\ntype IframeWrapperProps = {\n children: React.ReactNode;\n};\n\nexport default function IframeWrapper({ children }: IframeWrapperProps) {\n const [isInIframe, setIsInIframe] = useState(false);\n\n useEffect(() => {\n setIsInIframe(typeof window !== 'undefined' && window.self !== window.top);\n }, []);\n\n if (!isInIframe) {\n return children;\n }\n\n return (\n <div className=\"nh:rounded-lg nh:p-2 nh:outline-(--nh-primary) nh:hover:outline-2 nh:hover:-outline-offset-2 nh:hover:outline-dashed\">\n {children}\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAM5C,eAAe,SAAAC,cAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAP,EAAA;EAAuB;IAAAQ;EAAA,IAAAF,EAAgC;EACpE,OAAAG,UAAA,EAAAC,aAAA,IAAoCR,QAAQ,CAAC,KAAK,CAAC;EAAC,IAAAS,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAL,CAAA,QAAAM,MAAA,CAAAC,GAAA;IAE1CH,EAAA,GAAAA,CAAA;MACRD,aAAa,CAAC,OAAOK,MAAM,KAAK,WAAyC,IAA1BA,MAAM,CAAAC,IAAK,KAAKD,MAAM,CAAAE,GAAI,CAAC;IAAA,CAC3E;IAAEL,EAAA,KAAE;IAAAL,CAAA,MAAAI,EAAA;IAAAJ,CAAA,MAAAK,EAAA;EAAA;IAAAD,EAAA,GAAAJ,CAAA;IAAAK,EAAA,GAAAL,CAAA;EAAA;EAFLN,SAAS,CAACU,EAET,EAAEC,EAAE,CAAC;EAEN,IAAI,CAACH,UAAU;IAAA,OACND,QAAQ;EAAA;EAChB,IAAAU,EAAA;EAAA,IAAAX,CAAA,QAAAC,QAAA;IAGCU,EAAA,gBAAAd,IAAA;MAAee,SAAsH,EAAtH,sHAAsH;MAAAX,QAAA,EAClIA;IAAQ,CACN,CAAC;IAAAD,CAAA,MAAAC,QAAA;IAAAD,CAAA,MAAAW,EAAA;EAAA;IAAAA,EAAA,GAAAX,CAAA;EAAA;EAAA,OAFNW,EAEM;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type MenuWrapperProps = {
|
|
2
|
+
type?: string;
|
|
3
|
+
menuId: string;
|
|
4
|
+
lang?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export default function MenuWrapper({ type, menuId, lang, children, }: MenuWrapperProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=menu-wrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/visual-editor/internal/overlays/menu/menu-wrapper.tsx"],"names":[],"mappings":"AAKA,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAa,EACb,MAAM,EACN,IAAW,EACX,QAAQ,GACT,EAAE,gBAAgB,+BAwBlB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SignedIn, SignedOut } from '../../../../auth/server';
|
|
2
|
+
import { getVisualEditorDictionary } from '../../i18n';
|
|
3
|
+
import EditButton from '../edit-button';
|
|
4
|
+
import IframeWrapper from '../iframe-wrapper';
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
export default function MenuWrapper({
|
|
7
|
+
type = 'menu',
|
|
8
|
+
menuId,
|
|
9
|
+
lang = 'en',
|
|
10
|
+
children
|
|
11
|
+
}) {
|
|
12
|
+
const label = getVisualEditorDictionary(lang).overlays.editMenu;
|
|
13
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
14
|
+
"data-nodehive-type": "menu",
|
|
15
|
+
className: "nh:relative",
|
|
16
|
+
children: [/*#__PURE__*/_jsx(SignedIn, {
|
|
17
|
+
children: /*#__PURE__*/_jsxs(IframeWrapper, {
|
|
18
|
+
children: [/*#__PURE__*/_jsx(EditButton, {
|
|
19
|
+
label: label,
|
|
20
|
+
position: "nh:-top-2 nh:-right-10",
|
|
21
|
+
message: {
|
|
22
|
+
type: type,
|
|
23
|
+
menu_id: menuId,
|
|
24
|
+
lang: lang
|
|
25
|
+
}
|
|
26
|
+
}), children]
|
|
27
|
+
})
|
|
28
|
+
}), /*#__PURE__*/_jsx(SignedOut, {
|
|
29
|
+
children: children
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=menu-wrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-wrapper.js","names":["SignedIn","SignedOut","getVisualEditorDictionary","EditButton","IframeWrapper","jsx","_jsx","jsxs","_jsxs","MenuWrapper","type","menuId","lang","children","label","overlays","editMenu","className","position","message","menu_id"],"sources":["../../../../../src/visual-editor/internal/overlays/menu/menu-wrapper.tsx"],"sourcesContent":["import { SignedIn, SignedOut } from '../../../../auth/server';\nimport { getVisualEditorDictionary } from '../../i18n';\nimport EditButton from '../edit-button';\nimport IframeWrapper from '../iframe-wrapper';\n\ntype MenuWrapperProps = {\n type?: string;\n menuId: string;\n lang?: string;\n children: React.ReactNode;\n};\n\nexport default function MenuWrapper({\n type = 'menu',\n menuId,\n lang = 'en',\n children,\n}: MenuWrapperProps) {\n const label = getVisualEditorDictionary(lang).overlays.editMenu;\n\n return (\n <div data-nodehive-type=\"menu\" className=\"nh:relative\">\n <SignedIn>\n <IframeWrapper>\n <EditButton\n label={label}\n position=\"nh:-top-2 nh:-right-10\"\n message={{\n type: type,\n menu_id: menuId,\n lang: lang,\n }}\n />\n\n {children}\n </IframeWrapper>\n </SignedIn>\n\n <SignedOut>{children}</SignedOut>\n </div>\n );\n}\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,SAAS,QAAQ,yBAAyB;AAC7D,SAASC,yBAAyB,QAAQ,YAAY;AACtD,OAAOC,UAAU,MAAM,gBAAgB;AACvC,OAAOC,aAAa,MAAM,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAS9C,eAAe,SAASC,WAAWA,CAAC;EAClCC,IAAI,GAAG,MAAM;EACbC,MAAM;EACNC,IAAI,GAAG,IAAI;EACXC;AACgB,CAAC,EAAE;EACnB,MAAMC,KAAK,GAAGZ,yBAAyB,CAACU,IAAI,CAAC,CAACG,QAAQ,CAACC,QAAQ;EAE/D,oBACER,KAAA;IAAK,sBAAmB,MAAM;IAACS,SAAS,EAAC,aAAa;IAAAJ,QAAA,gBACpDP,IAAA,CAACN,QAAQ;MAAAa,QAAA,eACPL,KAAA,CAACJ,aAAa;QAAAS,QAAA,gBACZP,IAAA,CAACH,UAAU;UACTW,KAAK,EAAEA,KAAM;UACbI,QAAQ,EAAC,wBAAwB;UACjCC,OAAO,EAAE;YACPT,IAAI,EAAEA,IAAI;YACVU,OAAO,EAAET,MAAM;YACfC,IAAI,EAAEA;UACR;QAAE,CACH,CAAC,EAEDC,QAAQ;MAAA,CACI;IAAC,CACR,CAAC,eAEXP,IAAA,CAACL,SAAS;MAAAY,QAAA,EAAEA;IAAQ,CAAY,CAAC;EAAA,CAC9B,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type NodeEntity = {
|
|
2
|
+
id: string;
|
|
3
|
+
type?: string;
|
|
4
|
+
drupal_internal__nid?: string | number;
|
|
5
|
+
title?: string;
|
|
6
|
+
status?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type NodeMetadataProps = {
|
|
9
|
+
entity: NodeEntity;
|
|
10
|
+
};
|
|
11
|
+
export default function NodeMetadata({ entity }: NodeMetadataProps): import("react").JSX.Element | null;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=node-metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-metadata.d.ts","sourceRoot":"","sources":["../../../../../src/visual-editor/internal/overlays/node/node-metadata.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,sCAmBjE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export default function NodeMetadata({
|
|
3
|
+
entity
|
|
4
|
+
}) {
|
|
5
|
+
const title = entity?.title;
|
|
6
|
+
const status = entity?.status;
|
|
7
|
+
if (status === true || status === undefined) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
return /*#__PURE__*/_jsx("div", {
|
|
11
|
+
className: "nh:mb-4 nh:bg-red-100/50 nh:p-4",
|
|
12
|
+
children: status === false && /*#__PURE__*/_jsxs("p", {
|
|
13
|
+
children: ['"', title, '"', " is an unpublished content."]
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=node-metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-metadata.js","names":["NodeMetadata","entity","title","status","undefined","_jsx","className","children","_jsxs"],"sources":["../../../../../src/visual-editor/internal/overlays/node/node-metadata.tsx"],"sourcesContent":["export type NodeEntity = {\n id: string;\n type?: string;\n drupal_internal__nid?: string | number;\n title?: string;\n status?: boolean;\n};\n\ntype NodeMetadataProps = {\n entity: NodeEntity;\n};\n\nexport default function NodeMetadata({ entity }: NodeMetadataProps) {\n const title = entity?.title;\n const status = entity?.status;\n\n if (status === true || status === undefined) {\n return null;\n }\n\n return (\n <div className=\"nh:mb-4 nh:bg-red-100/50 nh:p-4\">\n {status === false && (\n <p>\n {'\"'}\n {title}\n {'\"'} is an unpublished content.\n </p>\n )}\n </div>\n );\n}\n"],"mappings":";AAYA,eAAe,SAASA,YAAYA,CAAC;EAAEC;AAA0B,CAAC,EAAE;EAClE,MAAMC,KAAK,GAAGD,MAAM,EAAEC,KAAK;EAC3B,MAAMC,MAAM,GAAGF,MAAM,EAAEE,MAAM;EAE7B,IAAIA,MAAM,KAAK,IAAI,IAAIA,MAAM,KAAKC,SAAS,EAAE;IAC3C,OAAO,IAAI;EACb;EAEA,oBACEC,IAAA;IAAKC,SAAS,EAAC,iCAAiC;IAAAC,QAAA,EAC7CJ,MAAM,KAAK,KAAK,iBACfK,KAAA;MAAAD,QAAA,GACG,GAAG,EACHL,KAAK,EACL,GAAG,EAAC,6BACP;IAAA,CAAG;EACJ,CACE,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type NodeEntity } from './node-metadata';
|
|
2
|
+
type NodeWrapperProps = {
|
|
3
|
+
entity: NodeEntity;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export default function NodeWrapper({ entity, children }: NodeWrapperProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=node-wrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/visual-editor/internal/overlays/node/node-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAqB,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEhE,KAAK,gBAAgB,GAAG;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BAmBzE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import NodeMetadata from './node-metadata';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
export default function NodeWrapper({
|
|
4
|
+
entity,
|
|
5
|
+
children
|
|
6
|
+
}) {
|
|
7
|
+
const {
|
|
8
|
+
id,
|
|
9
|
+
drupal_internal__nid,
|
|
10
|
+
type
|
|
11
|
+
} = entity;
|
|
12
|
+
const dynamicId = `node-${drupal_internal__nid}`;
|
|
13
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
14
|
+
id: dynamicId,
|
|
15
|
+
"node-type": type,
|
|
16
|
+
"data-nodehive-type": "node",
|
|
17
|
+
"data-nodehive-id": drupal_internal__nid,
|
|
18
|
+
"data-nodehive-uuid": id,
|
|
19
|
+
className: "nh:relative",
|
|
20
|
+
children: [/*#__PURE__*/_jsx(NodeMetadata, {
|
|
21
|
+
entity: entity
|
|
22
|
+
}), children]
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=node-wrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-wrapper.js","names":["NodeMetadata","jsx","_jsx","jsxs","_jsxs","NodeWrapper","entity","children","id","drupal_internal__nid","type","dynamicId","className"],"sources":["../../../../../src/visual-editor/internal/overlays/node/node-wrapper.tsx"],"sourcesContent":["import NodeMetadata, { type NodeEntity } from './node-metadata';\n\ntype NodeWrapperProps = {\n entity: NodeEntity;\n children: React.ReactNode;\n};\n\nexport default function NodeWrapper({ entity, children }: NodeWrapperProps) {\n const { id, drupal_internal__nid, type } = entity;\n\n const dynamicId = `node-${drupal_internal__nid}`;\n\n return (\n <div\n id={dynamicId}\n node-type={type}\n data-nodehive-type=\"node\"\n data-nodehive-id={drupal_internal__nid}\n data-nodehive-uuid={id}\n className=\"nh:relative\"\n >\n <NodeMetadata entity={entity} />\n\n {children}\n </div>\n );\n}\n"],"mappings":"AAAA,OAAOA,YAAY,MAA2B,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAOhE,eAAe,SAASC,WAAWA,CAAC;EAAEC,MAAM;EAAEC;AAA2B,CAAC,EAAE;EAC1E,MAAM;IAAEC,EAAE;IAAEC,oBAAoB;IAAEC;EAAK,CAAC,GAAGJ,MAAM;EAEjD,MAAMK,SAAS,GAAG,QAAQF,oBAAoB,EAAE;EAEhD,oBACEL,KAAA;IACEI,EAAE,EAAEG,SAAU;IACd,aAAWD,IAAK;IAChB,sBAAmB,MAAM;IACzB,oBAAkBD,oBAAqB;IACvC,sBAAoBD,EAAG;IACvBI,SAAS,EAAC,aAAa;IAAAL,QAAA,gBAEvBL,IAAA,CAACF,YAAY;MAACM,MAAM,EAAEA;IAAO,CAAE,CAAC,EAE/BC,QAAQ;EAAA,CACN,CAAC;AAEV","ignoreList":[]}
|