@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,667 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
5
|
+
import { arrow, autoUpdate, flip, FloatingPortal, offset, shift, useDismiss, useFloating, useInteractions } from '@floating-ui/react';
|
|
6
|
+
import { RichTextMenu } from '@puckeditor/core';
|
|
7
|
+
import { getMarkRange, posToDOMRect } from '@tiptap/core';
|
|
8
|
+
import { TextSelection } from '@tiptap/pm/state';
|
|
9
|
+
import { useEditorState } from '@tiptap/react';
|
|
10
|
+
import { Link2OffIcon, LinkIcon } from 'lucide-react';
|
|
11
|
+
import { usePuckDictionary } from '../../i18n';
|
|
12
|
+
import LinkPickerControl from './link-picker-control';
|
|
13
|
+
import { resolveLinkTarget, targetOptions } from './link-value';
|
|
14
|
+
import SegmentedControl from './segmented-control';
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
|
+
/**
|
|
17
|
+
* Derive the target-override toggle from a stored link. The Tiptap mark only
|
|
18
|
+
* persists a concrete target (`_blank` or none), so the override isn't stored:
|
|
19
|
+
* if the concrete target matches what «Automatic» would produce, show Automatic,
|
|
20
|
+
* otherwise show the explicit value. Keeps output HTML free of extra attributes.
|
|
21
|
+
*/
|
|
22
|
+
function inferTargetOverride(href, rawTarget) {
|
|
23
|
+
const concrete = rawTarget === '_blank' ? '_blank' : '_self';
|
|
24
|
+
return resolveLinkTarget(href, 'auto') === concrete ? 'auto' : concrete;
|
|
25
|
+
}
|
|
26
|
+
const FLOATING_OFFSET = 10;
|
|
27
|
+
const FLOATING_PADDING = 8;
|
|
28
|
+
const ARROW_PADDING = 10;
|
|
29
|
+
const ARROW_CLASSES = {
|
|
30
|
+
bottom: 'nh:bg-(--nh-bg) nh:border-(--nh-border) nh:absolute h-3 w-3 nh:rotate-45 nh:border-t border-l',
|
|
31
|
+
top: 'nh:bg-(--nh-bg) nh:border-(--nh-border) nh:absolute h-3 w-3 nh:rotate-45 border-r nh:border-b',
|
|
32
|
+
left: 'nh:bg-(--nh-bg) nh:border-(--nh-border) nh:absolute h-3 w-3 nh:rotate-45 nh:border-t border-r',
|
|
33
|
+
right: 'nh:bg-(--nh-bg) nh:border-(--nh-border) nh:absolute h-3 w-3 nh:rotate-45 nh:border-b border-l'
|
|
34
|
+
};
|
|
35
|
+
const STATIC_SIDE_BY_PLACEMENT = {
|
|
36
|
+
top: 'bottom',
|
|
37
|
+
right: 'left',
|
|
38
|
+
bottom: 'top',
|
|
39
|
+
left: 'right'
|
|
40
|
+
};
|
|
41
|
+
const INPUT_CLASSNAME = 'nh:border-(--nh-border) nh:mt-1 nh:w-full nh:rounded-md nh:border nh:px-2.5 nh:py-1.5 nh:text-xs nh:focus:outline-none';
|
|
42
|
+
const ACTION_BUTTON_CLASSNAME = 'nh:rounded-md nh:px-3 nh:py-1.5 nh:text-xs nh:font-medium';
|
|
43
|
+
function getLinkRange(editor) {
|
|
44
|
+
const linkType = editor.state.schema.marks.link;
|
|
45
|
+
if (!linkType) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
const markRange = getMarkRange(editor.state.selection.$from, linkType);
|
|
49
|
+
if (!markRange) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
from: markRange.from,
|
|
54
|
+
to: markRange.to
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function getActiveRange(editor) {
|
|
58
|
+
const linkRange = getLinkRange(editor);
|
|
59
|
+
if (linkRange) {
|
|
60
|
+
return linkRange;
|
|
61
|
+
}
|
|
62
|
+
const {
|
|
63
|
+
from,
|
|
64
|
+
to,
|
|
65
|
+
empty
|
|
66
|
+
} = editor.state.selection;
|
|
67
|
+
if (empty) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
from,
|
|
72
|
+
to
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function getSelectedText(editor, range) {
|
|
76
|
+
if (!range) {
|
|
77
|
+
return '';
|
|
78
|
+
}
|
|
79
|
+
return editor.state.doc.textBetween(range.from, range.to, ' ');
|
|
80
|
+
}
|
|
81
|
+
function getLinkFormState(editor) {
|
|
82
|
+
const range = getActiveRange(editor);
|
|
83
|
+
const attrs = editor.getAttributes('link');
|
|
84
|
+
const href = typeof attrs.href === 'string' ? attrs.href : '';
|
|
85
|
+
return {
|
|
86
|
+
url: href,
|
|
87
|
+
displayText: getSelectedText(editor, range),
|
|
88
|
+
target: inferTargetOverride(href, typeof attrs.target === 'string' ? attrs.target : null)
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function getSelectionReference(editor) {
|
|
92
|
+
const range = getActiveRange(editor);
|
|
93
|
+
if (!range) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
const rect = posToDOMRect(editor.view, range.from, range.to);
|
|
97
|
+
return {
|
|
98
|
+
getBoundingClientRect: () => rect,
|
|
99
|
+
contextElement: editor.view.dom
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function syncFloatingReference(editor, setPositionReference, update) {
|
|
103
|
+
if (!editor) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const selectionReference = getSelectionReference(editor);
|
|
107
|
+
if (selectionReference) {
|
|
108
|
+
setPositionReference(selectionReference);
|
|
109
|
+
update?.();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export function RichTextLinkButton(t0) {
|
|
113
|
+
const $ = _c(84);
|
|
114
|
+
const {
|
|
115
|
+
editor,
|
|
116
|
+
readOnly
|
|
117
|
+
} = t0;
|
|
118
|
+
const t = usePuckDictionary().linkPicker;
|
|
119
|
+
const tFields = usePuckDictionary().fields;
|
|
120
|
+
const [open, setOpen] = useState(false);
|
|
121
|
+
const [manualOpen, setManualOpen] = useState(false);
|
|
122
|
+
const [url, setUrl] = useState("");
|
|
123
|
+
const [displayText, setDisplayText] = useState("");
|
|
124
|
+
const [target, setTarget] = useState("auto");
|
|
125
|
+
const [floatingElement, setFloatingElement] = useState(null);
|
|
126
|
+
const [arrowElement, setArrowElement] = useState(null);
|
|
127
|
+
const manualOpenRef = useRef(false);
|
|
128
|
+
const activeLinkRangeRef = useRef(null);
|
|
129
|
+
const displayTextInputRef = useRef(null);
|
|
130
|
+
let t1;
|
|
131
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
132
|
+
t1 = nextOpen => {
|
|
133
|
+
setOpen(nextOpen);
|
|
134
|
+
if (!nextOpen) {
|
|
135
|
+
setManualOpen(false);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
$[0] = t1;
|
|
139
|
+
} else {
|
|
140
|
+
t1 = $[0];
|
|
141
|
+
}
|
|
142
|
+
let t2;
|
|
143
|
+
let t3;
|
|
144
|
+
let t4;
|
|
145
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
146
|
+
t2 = offset(FLOATING_OFFSET);
|
|
147
|
+
t3 = flip({
|
|
148
|
+
padding: FLOATING_PADDING
|
|
149
|
+
});
|
|
150
|
+
t4 = shift({
|
|
151
|
+
padding: FLOATING_PADDING
|
|
152
|
+
});
|
|
153
|
+
$[1] = t2;
|
|
154
|
+
$[2] = t3;
|
|
155
|
+
$[3] = t4;
|
|
156
|
+
} else {
|
|
157
|
+
t2 = $[1];
|
|
158
|
+
t3 = $[2];
|
|
159
|
+
t4 = $[3];
|
|
160
|
+
}
|
|
161
|
+
let t5;
|
|
162
|
+
if ($[4] !== arrowElement) {
|
|
163
|
+
t5 = arrow({
|
|
164
|
+
element: arrowElement,
|
|
165
|
+
padding: ARROW_PADDING
|
|
166
|
+
});
|
|
167
|
+
$[4] = arrowElement;
|
|
168
|
+
$[5] = t5;
|
|
169
|
+
} else {
|
|
170
|
+
t5 = $[5];
|
|
171
|
+
}
|
|
172
|
+
let t6;
|
|
173
|
+
if ($[6] !== t5) {
|
|
174
|
+
t6 = [t2, t3, t4, t5];
|
|
175
|
+
$[6] = t5;
|
|
176
|
+
$[7] = t6;
|
|
177
|
+
} else {
|
|
178
|
+
t6 = $[7];
|
|
179
|
+
}
|
|
180
|
+
let t7;
|
|
181
|
+
if ($[8] !== open || $[9] !== t6) {
|
|
182
|
+
t7 = {
|
|
183
|
+
open,
|
|
184
|
+
onOpenChange: t1,
|
|
185
|
+
placement: "bottom",
|
|
186
|
+
middleware: t6,
|
|
187
|
+
whileElementsMounted: autoUpdate
|
|
188
|
+
};
|
|
189
|
+
$[8] = open;
|
|
190
|
+
$[9] = t6;
|
|
191
|
+
$[10] = t7;
|
|
192
|
+
} else {
|
|
193
|
+
t7 = $[10];
|
|
194
|
+
}
|
|
195
|
+
const {
|
|
196
|
+
x,
|
|
197
|
+
y,
|
|
198
|
+
refs,
|
|
199
|
+
floatingStyles,
|
|
200
|
+
update,
|
|
201
|
+
context,
|
|
202
|
+
middlewareData,
|
|
203
|
+
placement
|
|
204
|
+
} = useFloating(t7);
|
|
205
|
+
let t8;
|
|
206
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
207
|
+
t8 = {
|
|
208
|
+
escapeKey: true,
|
|
209
|
+
outsidePress: true
|
|
210
|
+
};
|
|
211
|
+
$[11] = t8;
|
|
212
|
+
} else {
|
|
213
|
+
t8 = $[11];
|
|
214
|
+
}
|
|
215
|
+
const dismiss = useDismiss(context, t8);
|
|
216
|
+
let t9;
|
|
217
|
+
if ($[12] !== dismiss) {
|
|
218
|
+
t9 = [dismiss];
|
|
219
|
+
$[12] = dismiss;
|
|
220
|
+
$[13] = t9;
|
|
221
|
+
} else {
|
|
222
|
+
t9 = $[13];
|
|
223
|
+
}
|
|
224
|
+
const {
|
|
225
|
+
getFloatingProps
|
|
226
|
+
} = useInteractions(t9);
|
|
227
|
+
const setPositionReference = refs.setPositionReference;
|
|
228
|
+
const arrowX = middlewareData.arrow?.x;
|
|
229
|
+
const arrowY = middlewareData.arrow?.y;
|
|
230
|
+
const placementSide = placement.split("-")[0];
|
|
231
|
+
const staticSide = STATIC_SIDE_BY_PLACEMENT[placementSide] ?? "top";
|
|
232
|
+
const arrowClassName = ARROW_CLASSES[placementSide] ?? "nh:bg-(--nh-bg) nh:border-(--nh-border) nh:absolute h-3 w-3 nh:rotate-45 nh:border-t border-l";
|
|
233
|
+
let t10;
|
|
234
|
+
let t11;
|
|
235
|
+
if ($[14] !== floatingElement || $[15] !== refs) {
|
|
236
|
+
t10 = () => {
|
|
237
|
+
refs.setFloating(floatingElement);
|
|
238
|
+
};
|
|
239
|
+
t11 = [floatingElement, refs];
|
|
240
|
+
$[14] = floatingElement;
|
|
241
|
+
$[15] = refs;
|
|
242
|
+
$[16] = t10;
|
|
243
|
+
$[17] = t11;
|
|
244
|
+
} else {
|
|
245
|
+
t10 = $[16];
|
|
246
|
+
t11 = $[17];
|
|
247
|
+
}
|
|
248
|
+
useLayoutEffect(t10, t11);
|
|
249
|
+
let t12;
|
|
250
|
+
let t13;
|
|
251
|
+
if ($[18] !== manualOpen) {
|
|
252
|
+
t12 = () => {
|
|
253
|
+
manualOpenRef.current = manualOpen;
|
|
254
|
+
};
|
|
255
|
+
t13 = [manualOpen];
|
|
256
|
+
$[18] = manualOpen;
|
|
257
|
+
$[19] = t12;
|
|
258
|
+
$[20] = t13;
|
|
259
|
+
} else {
|
|
260
|
+
t12 = $[19];
|
|
261
|
+
t13 = $[20];
|
|
262
|
+
}
|
|
263
|
+
useEffect(t12, t13);
|
|
264
|
+
let t14;
|
|
265
|
+
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
266
|
+
t14 = formState => {
|
|
267
|
+
setUrl(formState.url);
|
|
268
|
+
setDisplayText(formState.displayText);
|
|
269
|
+
setTarget(formState.target);
|
|
270
|
+
};
|
|
271
|
+
$[21] = t14;
|
|
272
|
+
} else {
|
|
273
|
+
t14 = $[21];
|
|
274
|
+
}
|
|
275
|
+
const applyFormState = t14;
|
|
276
|
+
let t15;
|
|
277
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
278
|
+
t15 = () => {
|
|
279
|
+
activeLinkRangeRef.current = null;
|
|
280
|
+
setManualOpen(false);
|
|
281
|
+
setOpen(false);
|
|
282
|
+
};
|
|
283
|
+
$[22] = t15;
|
|
284
|
+
} else {
|
|
285
|
+
t15 = $[22];
|
|
286
|
+
}
|
|
287
|
+
const closeEditor = t15;
|
|
288
|
+
let t16;
|
|
289
|
+
let t17;
|
|
290
|
+
if ($[23] !== editor || $[24] !== readOnly || $[25] !== setPositionReference || $[26] !== update) {
|
|
291
|
+
t16 = () => {
|
|
292
|
+
if (!editor || readOnly) {
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
const handleSelectionChange = () => {
|
|
296
|
+
if (manualOpenRef.current) {
|
|
297
|
+
const edited = activeLinkRangeRef.current;
|
|
298
|
+
const range = getActiveRange(editor);
|
|
299
|
+
const sameRange = !!edited && !!range && edited.from === range.from && edited.to === range.to;
|
|
300
|
+
if (!sameRange) {
|
|
301
|
+
setManualOpen(false);
|
|
302
|
+
setOpen(false);
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
syncFloatingReference(editor, setPositionReference, update);
|
|
307
|
+
};
|
|
308
|
+
editor.on("selectionUpdate", handleSelectionChange);
|
|
309
|
+
editor.on("update", handleSelectionChange);
|
|
310
|
+
return () => {
|
|
311
|
+
editor.off("selectionUpdate", handleSelectionChange);
|
|
312
|
+
editor.off("update", handleSelectionChange);
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
t17 = [editor, readOnly, setPositionReference, update];
|
|
316
|
+
$[23] = editor;
|
|
317
|
+
$[24] = readOnly;
|
|
318
|
+
$[25] = setPositionReference;
|
|
319
|
+
$[26] = update;
|
|
320
|
+
$[27] = t16;
|
|
321
|
+
$[28] = t17;
|
|
322
|
+
} else {
|
|
323
|
+
t16 = $[27];
|
|
324
|
+
t17 = $[28];
|
|
325
|
+
}
|
|
326
|
+
useEffect(t16, t17);
|
|
327
|
+
let t18;
|
|
328
|
+
let t19;
|
|
329
|
+
if ($[29] !== editor || $[30] !== open || $[31] !== setPositionReference || $[32] !== update) {
|
|
330
|
+
t18 = () => {
|
|
331
|
+
if (!open) {
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
syncFloatingReference(editor, setPositionReference, update);
|
|
335
|
+
};
|
|
336
|
+
t19 = [editor, open, setPositionReference, update];
|
|
337
|
+
$[29] = editor;
|
|
338
|
+
$[30] = open;
|
|
339
|
+
$[31] = setPositionReference;
|
|
340
|
+
$[32] = update;
|
|
341
|
+
$[33] = t18;
|
|
342
|
+
$[34] = t19;
|
|
343
|
+
} else {
|
|
344
|
+
t18 = $[33];
|
|
345
|
+
t19 = $[34];
|
|
346
|
+
}
|
|
347
|
+
useLayoutEffect(t18, t19);
|
|
348
|
+
let t20;
|
|
349
|
+
let t21;
|
|
350
|
+
if ($[35] !== open) {
|
|
351
|
+
t20 = () => {
|
|
352
|
+
if (!open) {
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
const focusTimer = window.setTimeout(() => {
|
|
356
|
+
displayTextInputRef.current?.focus();
|
|
357
|
+
displayTextInputRef.current?.select();
|
|
358
|
+
}, 0);
|
|
359
|
+
return () => window.clearTimeout(focusTimer);
|
|
360
|
+
};
|
|
361
|
+
t21 = [open];
|
|
362
|
+
$[35] = open;
|
|
363
|
+
$[36] = t20;
|
|
364
|
+
$[37] = t21;
|
|
365
|
+
} else {
|
|
366
|
+
t20 = $[36];
|
|
367
|
+
t21 = $[37];
|
|
368
|
+
}
|
|
369
|
+
useEffect(t20, t21);
|
|
370
|
+
let t22;
|
|
371
|
+
if ($[38] !== editor) {
|
|
372
|
+
t22 = {
|
|
373
|
+
editor,
|
|
374
|
+
selector: _temp
|
|
375
|
+
};
|
|
376
|
+
$[38] = editor;
|
|
377
|
+
$[39] = t22;
|
|
378
|
+
} else {
|
|
379
|
+
t22 = $[39];
|
|
380
|
+
}
|
|
381
|
+
const linkState = useEditorState(t22);
|
|
382
|
+
if (!editor) {
|
|
383
|
+
return null;
|
|
384
|
+
}
|
|
385
|
+
const isActive = linkState?.isActive ?? false;
|
|
386
|
+
const canEditLink = isActive || (linkState?.hasSelection ?? false);
|
|
387
|
+
let t23;
|
|
388
|
+
if ($[40] !== isActive || $[41] !== url) {
|
|
389
|
+
t23 = Boolean(url.trim()) || isActive;
|
|
390
|
+
$[40] = isActive;
|
|
391
|
+
$[41] = url;
|
|
392
|
+
$[42] = t23;
|
|
393
|
+
} else {
|
|
394
|
+
t23 = $[42];
|
|
395
|
+
}
|
|
396
|
+
const hasExistingLink = t23;
|
|
397
|
+
let t24;
|
|
398
|
+
if ($[43] !== canEditLink || $[44] !== editor || $[45] !== readOnly || $[46] !== setPositionReference || $[47] !== update) {
|
|
399
|
+
t24 = () => {
|
|
400
|
+
if (readOnly || !canEditLink) {
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
activeLinkRangeRef.current = getActiveRange(editor);
|
|
404
|
+
applyFormState(getLinkFormState(editor));
|
|
405
|
+
syncFloatingReference(editor, setPositionReference, update);
|
|
406
|
+
setManualOpen(true);
|
|
407
|
+
setOpen(true);
|
|
408
|
+
};
|
|
409
|
+
$[43] = canEditLink;
|
|
410
|
+
$[44] = editor;
|
|
411
|
+
$[45] = readOnly;
|
|
412
|
+
$[46] = setPositionReference;
|
|
413
|
+
$[47] = update;
|
|
414
|
+
$[48] = t24;
|
|
415
|
+
} else {
|
|
416
|
+
t24 = $[48];
|
|
417
|
+
}
|
|
418
|
+
const openEditor = t24;
|
|
419
|
+
let t25;
|
|
420
|
+
if ($[49] !== displayText || $[50] !== editor || $[51] !== target || $[52] !== url) {
|
|
421
|
+
t25 = () => {
|
|
422
|
+
const range_0 = activeLinkRangeRef.current ?? getActiveRange(editor);
|
|
423
|
+
const linkType = editor.state.schema.marks.link;
|
|
424
|
+
const trimmedUrl = url.trim();
|
|
425
|
+
if (!range_0 || !linkType) {
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
const nextText = displayText.trim() || getSelectedText(editor, range_0) || trimmedUrl;
|
|
429
|
+
if (!nextText) {
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
let transaction = editor.state.tr.insertText(nextText, range_0.from, range_0.to);
|
|
433
|
+
const nextTo = range_0.from + nextText.length;
|
|
434
|
+
transaction = transaction.removeMark(range_0.from, nextTo, linkType);
|
|
435
|
+
if (trimmedUrl) {
|
|
436
|
+
const resolvedTarget = resolveLinkTarget(trimmedUrl, target);
|
|
437
|
+
transaction = transaction.addMark(range_0.from, nextTo, linkType.create({
|
|
438
|
+
href: trimmedUrl,
|
|
439
|
+
target: resolvedTarget === "_blank" ? "_blank" : null
|
|
440
|
+
}));
|
|
441
|
+
}
|
|
442
|
+
transaction = transaction.setSelection(TextSelection.create(transaction.doc, range_0.from, nextTo));
|
|
443
|
+
editor.view.dispatch(transaction.scrollIntoView());
|
|
444
|
+
editor.commands.focus();
|
|
445
|
+
closeEditor();
|
|
446
|
+
};
|
|
447
|
+
$[49] = displayText;
|
|
448
|
+
$[50] = editor;
|
|
449
|
+
$[51] = target;
|
|
450
|
+
$[52] = url;
|
|
451
|
+
$[53] = t25;
|
|
452
|
+
} else {
|
|
453
|
+
t25 = $[53];
|
|
454
|
+
}
|
|
455
|
+
const applyLink = t25;
|
|
456
|
+
let t26;
|
|
457
|
+
if ($[54] !== editor) {
|
|
458
|
+
t26 = () => {
|
|
459
|
+
const linkType_0 = editor.state.schema.marks.link;
|
|
460
|
+
const range_1 = activeLinkRangeRef.current ?? getLinkRange(editor);
|
|
461
|
+
if (!linkType_0 || !range_1) {
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
464
|
+
const transaction_0 = editor.state.tr.setSelection(TextSelection.create(editor.state.doc, range_1.from, range_1.to)).removeMark(range_1.from, range_1.to, linkType_0);
|
|
465
|
+
editor.view.dispatch(transaction_0.scrollIntoView());
|
|
466
|
+
editor.commands.focus();
|
|
467
|
+
closeEditor();
|
|
468
|
+
};
|
|
469
|
+
$[54] = editor;
|
|
470
|
+
$[55] = t26;
|
|
471
|
+
} else {
|
|
472
|
+
t26 = $[55];
|
|
473
|
+
}
|
|
474
|
+
const removeLink = t26;
|
|
475
|
+
const preventEditorBlur = _temp2;
|
|
476
|
+
let t27;
|
|
477
|
+
if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
|
|
478
|
+
t27 = /*#__PURE__*/_jsx(LinkIcon, {
|
|
479
|
+
className: "nh:size-4"
|
|
480
|
+
});
|
|
481
|
+
$[56] = t27;
|
|
482
|
+
} else {
|
|
483
|
+
t27 = $[56];
|
|
484
|
+
}
|
|
485
|
+
const t28 = readOnly || !canEditLink;
|
|
486
|
+
const t29 = isActive ? t.editLink : t.addLink;
|
|
487
|
+
let t30;
|
|
488
|
+
if ($[57] !== isActive || $[58] !== openEditor || $[59] !== t28 || $[60] !== t29) {
|
|
489
|
+
t30 = /*#__PURE__*/_jsx(RichTextMenu.Control, {
|
|
490
|
+
icon: t27,
|
|
491
|
+
active: isActive,
|
|
492
|
+
disabled: t28,
|
|
493
|
+
onClick: openEditor,
|
|
494
|
+
title: t29
|
|
495
|
+
});
|
|
496
|
+
$[57] = isActive;
|
|
497
|
+
$[58] = openEditor;
|
|
498
|
+
$[59] = t28;
|
|
499
|
+
$[60] = t29;
|
|
500
|
+
$[61] = t30;
|
|
501
|
+
} else {
|
|
502
|
+
t30 = $[61];
|
|
503
|
+
}
|
|
504
|
+
let t31;
|
|
505
|
+
if ($[62] !== applyLink || $[63] !== arrowClassName || $[64] !== arrowX || $[65] !== arrowY || $[66] !== canEditLink || $[67] !== displayText || $[68] !== floatingStyles || $[69] !== getFloatingProps || $[70] !== hasExistingLink || $[71] !== open || $[72] !== removeLink || $[73] !== staticSide || $[74] !== t || $[75] !== tFields || $[76] !== target || $[77] !== url || $[78] !== x || $[79] !== y) {
|
|
506
|
+
t31 = open && canEditLink ? /*#__PURE__*/_jsx(FloatingPortal, {
|
|
507
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
508
|
+
ref: setFloatingElement,
|
|
509
|
+
style: {
|
|
510
|
+
...floatingStyles,
|
|
511
|
+
visibility: x == null || y == null ? "hidden" : "visible"
|
|
512
|
+
},
|
|
513
|
+
...getFloatingProps(),
|
|
514
|
+
className: "nh:w-72 nh:max-w-[calc(100vw-2rem)] nh:rounded-md nh:border nh:border-(--nh-border) nh:bg-(--nh-bg) nh:p-3 nh:text-(--nh-fg) nh:shadow-md nh:outline-hidden z-[120]",
|
|
515
|
+
"data-puck-rte-menu": true,
|
|
516
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
517
|
+
ref: setArrowElement,
|
|
518
|
+
className: arrowClassName,
|
|
519
|
+
style: {
|
|
520
|
+
left: arrowX != null ? `${arrowX}px` : "",
|
|
521
|
+
top: arrowY != null ? `${arrowY}px` : "",
|
|
522
|
+
right: "",
|
|
523
|
+
bottom: "",
|
|
524
|
+
[staticSide]: "-7px"
|
|
525
|
+
},
|
|
526
|
+
"aria-hidden": "true"
|
|
527
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
528
|
+
className: "space-y-2.5",
|
|
529
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
530
|
+
children: [/*#__PURE__*/_jsx("label", {
|
|
531
|
+
htmlFor: "richtext-link-display-text",
|
|
532
|
+
className: "nh:text-xs nh:font-medium nh:text-(--nh-fg)",
|
|
533
|
+
children: t.displayedText
|
|
534
|
+
}), /*#__PURE__*/_jsx("input", {
|
|
535
|
+
ref: displayTextInputRef,
|
|
536
|
+
id: "richtext-link-display-text",
|
|
537
|
+
type: "text",
|
|
538
|
+
value: displayText,
|
|
539
|
+
onChange: event_0 => setDisplayText(event_0.target.value),
|
|
540
|
+
onKeyDown: event_1 => {
|
|
541
|
+
if (event_1.key === "Enter") {
|
|
542
|
+
event_1.preventDefault();
|
|
543
|
+
applyLink();
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
className: INPUT_CLASSNAME,
|
|
547
|
+
"data-puck-rte-menu": true
|
|
548
|
+
})]
|
|
549
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
550
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
551
|
+
className: "nh:text-xs nh:font-medium nh:text-(--nh-fg)",
|
|
552
|
+
children: tFields.link
|
|
553
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
554
|
+
className: "nh:mt-1",
|
|
555
|
+
"data-puck-rte-menu": true,
|
|
556
|
+
children: /*#__PURE__*/_jsx(LinkPickerControl, {
|
|
557
|
+
href: url,
|
|
558
|
+
onHrefChange: setUrl,
|
|
559
|
+
onSubmit: applyLink
|
|
560
|
+
})
|
|
561
|
+
})]
|
|
562
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
563
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
564
|
+
className: "nh:text-xs nh:font-medium nh:text-(--nh-fg)",
|
|
565
|
+
children: t.target
|
|
566
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
567
|
+
className: "nh:mt-1",
|
|
568
|
+
children: /*#__PURE__*/_jsx(SegmentedControl, {
|
|
569
|
+
options: targetOptions(t),
|
|
570
|
+
value: target,
|
|
571
|
+
onChange: setTarget,
|
|
572
|
+
variant: "popover",
|
|
573
|
+
ariaLabel: t.linkTarget,
|
|
574
|
+
itemProps: {
|
|
575
|
+
onMouseDown: preventEditorBlur,
|
|
576
|
+
"data-puck-rte-menu": true
|
|
577
|
+
}
|
|
578
|
+
})
|
|
579
|
+
})]
|
|
580
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
581
|
+
className: "nh:flex nh:gap-2",
|
|
582
|
+
children: [/*#__PURE__*/_jsx("button", {
|
|
583
|
+
type: "button",
|
|
584
|
+
onMouseDown: preventEditorBlur,
|
|
585
|
+
onClick: applyLink,
|
|
586
|
+
className: `nh:flex-1 nh:bg-(--nh-fg) nh:text-(--nh-bg) ${ACTION_BUTTON_CLASSNAME} nh:hover:opacity-90`,
|
|
587
|
+
"data-puck-rte-menu": true,
|
|
588
|
+
children: hasExistingLink ? t.updateLink : t.addLink
|
|
589
|
+
}), hasExistingLink ? /*#__PURE__*/_jsx("button", {
|
|
590
|
+
type: "button",
|
|
591
|
+
onMouseDown: preventEditorBlur,
|
|
592
|
+
onClick: removeLink,
|
|
593
|
+
className: `nh:border nh:border-(--nh-border) nh:text-gray-500 nh:hover:text-(--nh-fg) ${ACTION_BUTTON_CLASSNAME}`,
|
|
594
|
+
title: t.removeLink,
|
|
595
|
+
"data-puck-rte-menu": true,
|
|
596
|
+
children: /*#__PURE__*/_jsxs("span", {
|
|
597
|
+
className: "nh:inline-flex nh:items-center nh:gap-1.5",
|
|
598
|
+
children: [/*#__PURE__*/_jsx(Link2OffIcon, {
|
|
599
|
+
className: "nh:size-3.5"
|
|
600
|
+
}), t.removeLink]
|
|
601
|
+
})
|
|
602
|
+
}) : null]
|
|
603
|
+
})]
|
|
604
|
+
})]
|
|
605
|
+
})
|
|
606
|
+
}) : null;
|
|
607
|
+
$[62] = applyLink;
|
|
608
|
+
$[63] = arrowClassName;
|
|
609
|
+
$[64] = arrowX;
|
|
610
|
+
$[65] = arrowY;
|
|
611
|
+
$[66] = canEditLink;
|
|
612
|
+
$[67] = displayText;
|
|
613
|
+
$[68] = floatingStyles;
|
|
614
|
+
$[69] = getFloatingProps;
|
|
615
|
+
$[70] = hasExistingLink;
|
|
616
|
+
$[71] = open;
|
|
617
|
+
$[72] = removeLink;
|
|
618
|
+
$[73] = staticSide;
|
|
619
|
+
$[74] = t;
|
|
620
|
+
$[75] = tFields;
|
|
621
|
+
$[76] = target;
|
|
622
|
+
$[77] = url;
|
|
623
|
+
$[78] = x;
|
|
624
|
+
$[79] = y;
|
|
625
|
+
$[80] = t31;
|
|
626
|
+
} else {
|
|
627
|
+
t31 = $[80];
|
|
628
|
+
}
|
|
629
|
+
let t32;
|
|
630
|
+
if ($[81] !== t30 || $[82] !== t31) {
|
|
631
|
+
t32 = /*#__PURE__*/_jsxs(_Fragment, {
|
|
632
|
+
children: [t30, t31]
|
|
633
|
+
});
|
|
634
|
+
$[81] = t30;
|
|
635
|
+
$[82] = t31;
|
|
636
|
+
$[83] = t32;
|
|
637
|
+
} else {
|
|
638
|
+
t32 = $[83];
|
|
639
|
+
}
|
|
640
|
+
return t32;
|
|
641
|
+
}
|
|
642
|
+
function _temp2(event) {
|
|
643
|
+
event.preventDefault();
|
|
644
|
+
}
|
|
645
|
+
function _temp(t0) {
|
|
646
|
+
const {
|
|
647
|
+
editor: editor_0
|
|
648
|
+
} = t0;
|
|
649
|
+
return editor_0 ? {
|
|
650
|
+
isActive: editor_0.isActive("link"),
|
|
651
|
+
hasSelection: !editor_0.state.selection.empty
|
|
652
|
+
} : {
|
|
653
|
+
isActive: false,
|
|
654
|
+
hasSelection: false
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
export const renderRichTextMenu = ({
|
|
658
|
+
children,
|
|
659
|
+
editor,
|
|
660
|
+
readOnly
|
|
661
|
+
}) => /*#__PURE__*/_jsxs(RichTextMenu, {
|
|
662
|
+
children: [children, /*#__PURE__*/_jsx(RichTextLinkButton, {
|
|
663
|
+
editor: editor,
|
|
664
|
+
readOnly: readOnly
|
|
665
|
+
})]
|
|
666
|
+
});
|
|
667
|
+
//# sourceMappingURL=rich-text-link-button.js.map
|