@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,564 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { createUsePuck } from '@puckeditor/core';
|
|
6
|
+
import * as Popover from '@radix-ui/react-popover';
|
|
7
|
+
import { keepPreviousData, useQuery } from '@tanstack/react-query';
|
|
8
|
+
import { ChevronDown, Search, X } from 'lucide-react';
|
|
9
|
+
import { puckFetch } from '../../api/client';
|
|
10
|
+
import { usePuckDictionary } from '../../i18n';
|
|
11
|
+
import { getPathLocale } from '../../locale';
|
|
12
|
+
import { collectPageAnchors, hasAnchorFragment } from './anchor';
|
|
13
|
+
import { humanize } from './humanize';
|
|
14
|
+
import { isExternalHref } from './link-value';
|
|
15
|
+
import SegmentedControl from './segmented-control';
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
const MODE_VALUES = ['internal', 'external', 'anchor'];
|
|
18
|
+
const usePuck = createUsePuck();
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* A value is treated as external only when it carries an explicit external
|
|
22
|
+
* scheme (http(s), mailto, tel, or protocol-relative `//`). Relative paths and
|
|
23
|
+
* in-page anchors (incl. the default `#` placeholder) default to the internal
|
|
24
|
+
* picker, so editors land on the page list. Delegates to {@link isExternalHref}
|
|
25
|
+
* so mode detection and target derivation never diverge.
|
|
26
|
+
*/
|
|
27
|
+
export function isExternalValue(value) {
|
|
28
|
+
return isExternalHref(value);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** A bare `#` is the legacy empty/placeholder href — treat it as "no link". */
|
|
32
|
+
export function isEmptyValue(value) {
|
|
33
|
+
return !value || value === '#';
|
|
34
|
+
}
|
|
35
|
+
function linkLabel(link, locale) {
|
|
36
|
+
return link.label?.[locale] ?? Object.values(link.label ?? {})[0] ?? link.path;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Path as shown to the editor: the locale prefix (`/de`) is dropped for
|
|
41
|
+
* readability (e.g. `/blog/test` instead of `/de/blog/test`). The full,
|
|
42
|
+
* stored path stays available as a hover tooltip.
|
|
43
|
+
*/
|
|
44
|
+
function displayPath(path, locale) {
|
|
45
|
+
const stripped = path.replace(new RegExp(`^/${locale}(?=/|$)`), '');
|
|
46
|
+
return stripped === '' ? '/' : stripped;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The shared link-selection control: Internal/External/Anchor toggle, external URL input,
|
|
50
|
+
* and the searchable, group-filtered internal dropdown (incl. unpublished
|
|
51
|
+
* drafts). Owns only the href; the wrapping field/popover owns the target
|
|
52
|
+
* override and persistence. Used by both `LinkPickerField` (Puck field) and the
|
|
53
|
+
* richtext link popover so both surfaces share identical selection UI.
|
|
54
|
+
*/
|
|
55
|
+
export default function LinkPickerControl(t0) {
|
|
56
|
+
const $ = _c(21);
|
|
57
|
+
const {
|
|
58
|
+
href,
|
|
59
|
+
onHrefChange,
|
|
60
|
+
onSubmit
|
|
61
|
+
} = t0;
|
|
62
|
+
let t1;
|
|
63
|
+
if ($[0] !== href) {
|
|
64
|
+
t1 = () => hasAnchorFragment(href) ? "anchor" : isExternalValue(href) ? "external" : "internal";
|
|
65
|
+
$[0] = href;
|
|
66
|
+
$[1] = t1;
|
|
67
|
+
} else {
|
|
68
|
+
t1 = $[1];
|
|
69
|
+
}
|
|
70
|
+
const [mode, setMode] = useState(t1);
|
|
71
|
+
let t2;
|
|
72
|
+
if ($[2] !== mode) {
|
|
73
|
+
t2 = s => mode === "anchor" ? s.appState.data : null;
|
|
74
|
+
$[2] = mode;
|
|
75
|
+
$[3] = t2;
|
|
76
|
+
} else {
|
|
77
|
+
t2 = $[3];
|
|
78
|
+
}
|
|
79
|
+
const pageData = usePuck(t2);
|
|
80
|
+
let t3;
|
|
81
|
+
if ($[4] !== pageData) {
|
|
82
|
+
t3 = pageData ? collectPageAnchors(pageData) : [];
|
|
83
|
+
$[4] = pageData;
|
|
84
|
+
$[5] = t3;
|
|
85
|
+
} else {
|
|
86
|
+
t3 = $[5];
|
|
87
|
+
}
|
|
88
|
+
const anchors = t3;
|
|
89
|
+
const t = usePuckDictionary().linkPicker;
|
|
90
|
+
const [open, setOpen] = useState(false);
|
|
91
|
+
const [query, setQuery] = useState("");
|
|
92
|
+
const [activeGroup, setActiveGroup] = useState(null);
|
|
93
|
+
const locale = typeof window !== "undefined" ? getPathLocale(window.location.pathname) : "en";
|
|
94
|
+
const {
|
|
95
|
+
data: links,
|
|
96
|
+
isLoading: loading,
|
|
97
|
+
isError: error
|
|
98
|
+
} = useQuery({
|
|
99
|
+
queryKey: ["puck-links", locale],
|
|
100
|
+
queryFn: async () => {
|
|
101
|
+
const data = await puckFetch(`/links?lang=${locale}`);
|
|
102
|
+
return Array.isArray(data) ? data : [];
|
|
103
|
+
},
|
|
104
|
+
enabled: mode === "internal" && open,
|
|
105
|
+
staleTime: Infinity,
|
|
106
|
+
placeholderData: keepPreviousData
|
|
107
|
+
});
|
|
108
|
+
const selectedLink = links?.find(l => l.path === href) ?? null;
|
|
109
|
+
const info = new Map();
|
|
110
|
+
(links ?? []).forEach(l_0 => {
|
|
111
|
+
const key = l_0.group ?? "page";
|
|
112
|
+
if (!info.has(key)) {
|
|
113
|
+
info.set(key, {
|
|
114
|
+
label: l_0.groupLabel ?? humanize(key),
|
|
115
|
+
order: info.size
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
const groupInfo = info;
|
|
120
|
+
const groupLabelOf = key_0 => groupInfo.get(key_0)?.label ?? humanize(key_0);
|
|
121
|
+
const groupOrderOf = key_1 => groupInfo.get(key_1)?.order ?? Number.MAX_SAFE_INTEGER;
|
|
122
|
+
let t4;
|
|
123
|
+
bb0: {
|
|
124
|
+
if (!links) {
|
|
125
|
+
t4 = [];
|
|
126
|
+
break bb0;
|
|
127
|
+
}
|
|
128
|
+
const keys = new Set(links.map(_temp));
|
|
129
|
+
t4 = [...keys].map(key_2 => ({
|
|
130
|
+
key: key_2,
|
|
131
|
+
label: groupLabelOf(key_2),
|
|
132
|
+
order: groupOrderOf(key_2)
|
|
133
|
+
})).sort(_temp2);
|
|
134
|
+
}
|
|
135
|
+
const availableGroups = t4;
|
|
136
|
+
let t5;
|
|
137
|
+
bb1: {
|
|
138
|
+
if (!links) {
|
|
139
|
+
t5 = [];
|
|
140
|
+
break bb1;
|
|
141
|
+
}
|
|
142
|
+
const q = query.trim().toLowerCase();
|
|
143
|
+
const filtered = links.filter(l_2 => {
|
|
144
|
+
if (activeGroup && (l_2.group ?? "page") !== activeGroup) {
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
147
|
+
if (!q) {
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
return l_2.path.toLowerCase().includes(q) || linkLabel(l_2, locale).toLowerCase().includes(q);
|
|
151
|
+
});
|
|
152
|
+
const byGroup = new Map();
|
|
153
|
+
for (const link of filtered) {
|
|
154
|
+
const key_3 = link.group ?? "page";
|
|
155
|
+
const bucket = byGroup.get(key_3) ?? [];
|
|
156
|
+
bucket.push(link);
|
|
157
|
+
byGroup.set(key_3, bucket);
|
|
158
|
+
}
|
|
159
|
+
t5 = [...byGroup.entries()].map(t6 => {
|
|
160
|
+
const [key_4, items] = t6;
|
|
161
|
+
return {
|
|
162
|
+
key: key_4,
|
|
163
|
+
label: groupLabelOf(key_4),
|
|
164
|
+
order: groupOrderOf(key_4),
|
|
165
|
+
items: items.sort((a_0, b_0) => linkLabel(a_0, locale).localeCompare(linkLabel(b_0, locale)))
|
|
166
|
+
};
|
|
167
|
+
}).sort(_temp3);
|
|
168
|
+
}
|
|
169
|
+
const groups = t5;
|
|
170
|
+
let t6;
|
|
171
|
+
if ($[6] !== onSubmit) {
|
|
172
|
+
t6 = e => {
|
|
173
|
+
if (e.key === "Enter") {
|
|
174
|
+
e.preventDefault();
|
|
175
|
+
onSubmit?.();
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
$[6] = onSubmit;
|
|
179
|
+
$[7] = t6;
|
|
180
|
+
} else {
|
|
181
|
+
t6 = $[7];
|
|
182
|
+
}
|
|
183
|
+
const submitOnEnter = t6;
|
|
184
|
+
let t7;
|
|
185
|
+
if ($[8] !== mode || $[9] !== onHrefChange) {
|
|
186
|
+
t7 = next => {
|
|
187
|
+
if (next === mode) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
setMode(next);
|
|
191
|
+
onHrefChange("");
|
|
192
|
+
setQuery("");
|
|
193
|
+
setActiveGroup(null);
|
|
194
|
+
setOpen(false);
|
|
195
|
+
};
|
|
196
|
+
$[8] = mode;
|
|
197
|
+
$[9] = onHrefChange;
|
|
198
|
+
$[10] = t7;
|
|
199
|
+
} else {
|
|
200
|
+
t7 = $[10];
|
|
201
|
+
}
|
|
202
|
+
const switchMode = t7;
|
|
203
|
+
const t8 = "nh:flex nh:flex-col nh:gap-2";
|
|
204
|
+
let t9;
|
|
205
|
+
if ($[11] !== t) {
|
|
206
|
+
t9 = MODE_VALUES.map(value => ({
|
|
207
|
+
value,
|
|
208
|
+
label: t[value]
|
|
209
|
+
}));
|
|
210
|
+
$[11] = t;
|
|
211
|
+
$[12] = t9;
|
|
212
|
+
} else {
|
|
213
|
+
t9 = $[12];
|
|
214
|
+
}
|
|
215
|
+
let t10;
|
|
216
|
+
if ($[13] !== mode || $[14] !== switchMode || $[15] !== t.linkMode || $[16] !== t9) {
|
|
217
|
+
t10 = /*#__PURE__*/_jsx(SegmentedControl, {
|
|
218
|
+
options: t9,
|
|
219
|
+
value: mode,
|
|
220
|
+
onChange: switchMode,
|
|
221
|
+
variant: "puck",
|
|
222
|
+
ariaLabel: t.linkMode
|
|
223
|
+
});
|
|
224
|
+
$[13] = mode;
|
|
225
|
+
$[14] = switchMode;
|
|
226
|
+
$[15] = t.linkMode;
|
|
227
|
+
$[16] = t9;
|
|
228
|
+
$[17] = t10;
|
|
229
|
+
} else {
|
|
230
|
+
t10 = $[17];
|
|
231
|
+
}
|
|
232
|
+
const t11 = mode === "external" ? /*#__PURE__*/_jsx("input", {
|
|
233
|
+
type: "text",
|
|
234
|
+
value: href,
|
|
235
|
+
placeholder: t.externalPlaceholder,
|
|
236
|
+
onChange: e_0 => onHrefChange(e_0.target.value),
|
|
237
|
+
onKeyDown: submitOnEnter,
|
|
238
|
+
className: "nh:w-full nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-sm"
|
|
239
|
+
}) : mode === "anchor" ? /*#__PURE__*/_jsx(AnchorInput, {
|
|
240
|
+
href: href,
|
|
241
|
+
anchors: anchors,
|
|
242
|
+
onHrefChange: onHrefChange,
|
|
243
|
+
onSubmit: onSubmit
|
|
244
|
+
}) : /*#__PURE__*/_jsx(Popover.Root, {
|
|
245
|
+
open: open,
|
|
246
|
+
onOpenChange: setOpen,
|
|
247
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
248
|
+
className: "nh:relative",
|
|
249
|
+
children: [/*#__PURE__*/_jsx(Popover.Trigger, {
|
|
250
|
+
asChild: true,
|
|
251
|
+
children: /*#__PURE__*/_jsxs("button", {
|
|
252
|
+
type: "button",
|
|
253
|
+
className: "nh:flex nh:w-full nh:items-center nh:justify-between nh:gap-2 nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-left nh:text-sm nh:hover:bg-(--nh-muted)",
|
|
254
|
+
children: [/*#__PURE__*/_jsxs("span", {
|
|
255
|
+
className: "nh:flex nh:min-w-0 nh:items-center nh:gap-2",
|
|
256
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
257
|
+
className: isEmptyValue(href) ? "nh:truncate nh:text-gray-500" : "nh:truncate",
|
|
258
|
+
children: isEmptyValue(href) ? "Select page \u2026" : selectedLink ? linkLabel(selectedLink, locale) : href
|
|
259
|
+
}), selectedLink?.published === false && /*#__PURE__*/_jsx("span", {
|
|
260
|
+
className: "nh:shrink-0 nh:rounded-full nh:bg-amber-50 nh:px-1.5 nh:py-0.5 nh:text-[9px] nh:font-semibold nh:uppercase nh:tracking-wide nh:text-amber-600 nh:ring-1 nh:ring-inset nh:ring-amber-200",
|
|
261
|
+
children: "Draft"
|
|
262
|
+
})]
|
|
263
|
+
}), /*#__PURE__*/_jsxs("span", {
|
|
264
|
+
className: "nh:flex nh:shrink-0 nh:items-center nh:gap-1",
|
|
265
|
+
children: [!isEmptyValue(href) && /*#__PURE__*/_jsx(X, {
|
|
266
|
+
className: "nh:size-4 nh:text-gray-500 nh:hover:text-(--nh-fg)",
|
|
267
|
+
onClick: e_1 => {
|
|
268
|
+
e_1.stopPropagation();
|
|
269
|
+
onHrefChange("");
|
|
270
|
+
}
|
|
271
|
+
}), /*#__PURE__*/_jsx(ChevronDown, {
|
|
272
|
+
className: "nh:size-4 nh:text-gray-500"
|
|
273
|
+
})]
|
|
274
|
+
})]
|
|
275
|
+
})
|
|
276
|
+
}), !isEmptyValue(href) && /*#__PURE__*/_jsx("div", {
|
|
277
|
+
className: "nh:mt-1 nh:truncate nh:font-mono nh:text-xs nh:text-gray-500",
|
|
278
|
+
title: href,
|
|
279
|
+
children: displayPath(href, locale)
|
|
280
|
+
}), /*#__PURE__*/_jsxs(Popover.Content, {
|
|
281
|
+
align: "start",
|
|
282
|
+
sideOffset: 4,
|
|
283
|
+
"data-puck-rte-menu": true,
|
|
284
|
+
className: "nh:z-50 nh:w-(--radix-popover-trigger-width) nh:overflow-hidden nh:rounded-md nh:border nh:border-(--nh-border) nh:bg-(--nh-bg) nh:text-(--nh-fg) nh:shadow-md",
|
|
285
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
286
|
+
className: "nh:flex nh:items-center nh:gap-2 nh:border-b nh:border-(--nh-border) nh:p-2",
|
|
287
|
+
children: [/*#__PURE__*/_jsx(Search, {
|
|
288
|
+
className: "nh:size-4 nh:shrink-0 nh:text-gray-500"
|
|
289
|
+
}), /*#__PURE__*/_jsx("input", {
|
|
290
|
+
type: "text",
|
|
291
|
+
autoFocus: true,
|
|
292
|
+
value: query,
|
|
293
|
+
placeholder: t.searchPlaceholder,
|
|
294
|
+
onChange: e_2 => setQuery(e_2.target.value),
|
|
295
|
+
className: "nh:w-full nh:text-sm outline-none"
|
|
296
|
+
})]
|
|
297
|
+
}), availableGroups.length > 1 && /*#__PURE__*/_jsx("div", {
|
|
298
|
+
className: "nh:flex nh:flex-wrap nh:gap-1 nh:border-b nh:border-(--nh-border) nh:p-2",
|
|
299
|
+
children: [{
|
|
300
|
+
key: null,
|
|
301
|
+
label: t.all
|
|
302
|
+
}, ...availableGroups].map(chip => {
|
|
303
|
+
const isActive = activeGroup === chip.key;
|
|
304
|
+
return /*#__PURE__*/_jsx("button", {
|
|
305
|
+
type: "button",
|
|
306
|
+
onClick: () => setActiveGroup(chip.key),
|
|
307
|
+
className: `nh:rounded-full nh:px-2.5 nh:py-1 nh:text-xs nh:font-medium nh:transition-colors ${isActive ? "nh:bg-(--nh-primary) nh:text-(--nh-primary-fg)" : "nh:text-gray-500 bg-(--nh-muted) hover:bg-gray-200"}`,
|
|
308
|
+
children: chip.label
|
|
309
|
+
}, chip.key ?? "__all");
|
|
310
|
+
})
|
|
311
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
312
|
+
className: "nh:max-h-72 nh:overflow-y-auto nh:py-1",
|
|
313
|
+
children: [loading && /*#__PURE__*/_jsx("div", {
|
|
314
|
+
className: "nh:px-3 nh:py-4 nh:text-center nh:text-xs nh:text-gray-500",
|
|
315
|
+
children: t.loading
|
|
316
|
+
}), !loading && error && /*#__PURE__*/_jsx("div", {
|
|
317
|
+
className: "nh:px-3 nh:py-4 nh:text-center nh:text-xs nh:text-red-600",
|
|
318
|
+
children: t.loadFailed
|
|
319
|
+
}), !loading && !error && groups.length === 0 && /*#__PURE__*/_jsx("div", {
|
|
320
|
+
className: "nh:px-3 nh:py-4 nh:text-center nh:text-xs nh:text-gray-500",
|
|
321
|
+
children: t.noResults
|
|
322
|
+
}), groups.map(group => /*#__PURE__*/_jsxs("div", {
|
|
323
|
+
children: [!activeGroup && /*#__PURE__*/_jsx("div", {
|
|
324
|
+
className: "nh:px-3 nh:pt-2 nh:pb-1 nh:text-xs nh:font-semibold nh:tracking-wide nh:text-gray-500 nh:uppercase",
|
|
325
|
+
children: group.label
|
|
326
|
+
}), group.items.map(link_0 => {
|
|
327
|
+
const isSelected = link_0.path === href;
|
|
328
|
+
return /*#__PURE__*/_jsxs("button", {
|
|
329
|
+
type: "button",
|
|
330
|
+
onClick: () => {
|
|
331
|
+
onHrefChange(link_0.path);
|
|
332
|
+
setOpen(false);
|
|
333
|
+
},
|
|
334
|
+
className: `nh:flex nh:w-full nh:flex-col nh:items-start nh:gap-0.5 nh:px-3 nh:py-2 nh:text-left nh:hover:bg-(--nh-muted) ${isSelected ? "bg-(--nh-muted)" : ""}`,
|
|
335
|
+
children: [/*#__PURE__*/_jsxs("span", {
|
|
336
|
+
className: "nh:flex nh:w-full nh:items-center nh:gap-2 nh:text-sm",
|
|
337
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
338
|
+
className: "nh:truncate",
|
|
339
|
+
children: linkLabel(link_0, locale)
|
|
340
|
+
}), link_0.published === false && /*#__PURE__*/_jsx("span", {
|
|
341
|
+
className: "nh:shrink-0 nh:rounded-full nh:bg-amber-50 nh:px-1.5 nh:py-0.5 nh:text-[9px] nh:font-semibold nh:uppercase nh:tracking-wide nh:text-amber-600 nh:ring-1 nh:ring-inset nh:ring-amber-200",
|
|
342
|
+
children: "Draft"
|
|
343
|
+
})]
|
|
344
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
345
|
+
className: "nh:w-full nh:truncate nh:font-mono nh:text-xs nh:text-gray-500",
|
|
346
|
+
title: link_0.path,
|
|
347
|
+
children: displayPath(link_0.path, locale)
|
|
348
|
+
})]
|
|
349
|
+
}, link_0.path);
|
|
350
|
+
})]
|
|
351
|
+
}, group.key))]
|
|
352
|
+
})]
|
|
353
|
+
})]
|
|
354
|
+
})
|
|
355
|
+
});
|
|
356
|
+
let t12;
|
|
357
|
+
if ($[18] !== t10 || $[19] !== t11) {
|
|
358
|
+
t12 = /*#__PURE__*/_jsxs("div", {
|
|
359
|
+
className: t8,
|
|
360
|
+
children: [t10, t11]
|
|
361
|
+
});
|
|
362
|
+
$[18] = t10;
|
|
363
|
+
$[19] = t11;
|
|
364
|
+
$[20] = t12;
|
|
365
|
+
} else {
|
|
366
|
+
t12 = $[20];
|
|
367
|
+
}
|
|
368
|
+
return t12;
|
|
369
|
+
}
|
|
370
|
+
function _temp3(a_1, b_1) {
|
|
371
|
+
return a_1.order - b_1.order;
|
|
372
|
+
}
|
|
373
|
+
function _temp2(a, b) {
|
|
374
|
+
return a.order - b.order;
|
|
375
|
+
}
|
|
376
|
+
function _temp(l_1) {
|
|
377
|
+
return l_1.group ?? "page";
|
|
378
|
+
}
|
|
379
|
+
/** Sentinel select value for the free-form "Other …" anchor option. */
|
|
380
|
+
const OTHER_ANCHOR = '__other__';
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Anchor-mode input: a dropdown of the section Anchor IDs found on the current
|
|
384
|
+
* Puck page, plus an «Other …» option. Picking a section stores `#id`; picking
|
|
385
|
+
* «Other …» reveals a text field for a custom fragment target — a section on
|
|
386
|
+
* another page (`/onboarding#start`) or an external URL
|
|
387
|
+
* (`https://example.com#start`).
|
|
388
|
+
*
|
|
389
|
+
* The initial mode is auto-detected from the stored value: a value that matches
|
|
390
|
+
* one of this page's sections selects that option; any other non-empty value
|
|
391
|
+
* preselects «Other …» and shows it in the text field, so links round-trip.
|
|
392
|
+
*/
|
|
393
|
+
function AnchorInput(t0) {
|
|
394
|
+
const $ = _c(34);
|
|
395
|
+
const {
|
|
396
|
+
href,
|
|
397
|
+
anchors,
|
|
398
|
+
onHrefChange,
|
|
399
|
+
onSubmit
|
|
400
|
+
} = t0;
|
|
401
|
+
const t = usePuckDictionary().linkPicker;
|
|
402
|
+
let t1;
|
|
403
|
+
if ($[0] !== anchors || $[1] !== href) {
|
|
404
|
+
let t2;
|
|
405
|
+
if ($[3] !== href) {
|
|
406
|
+
t2 = a => `#${a.id}` === href;
|
|
407
|
+
$[3] = href;
|
|
408
|
+
$[4] = t2;
|
|
409
|
+
} else {
|
|
410
|
+
t2 = $[4];
|
|
411
|
+
}
|
|
412
|
+
t1 = anchors.some(t2);
|
|
413
|
+
$[0] = anchors;
|
|
414
|
+
$[1] = href;
|
|
415
|
+
$[2] = t1;
|
|
416
|
+
} else {
|
|
417
|
+
t1 = $[2];
|
|
418
|
+
}
|
|
419
|
+
const matchesSection = t1;
|
|
420
|
+
let t2;
|
|
421
|
+
if ($[5] !== href || $[6] !== matchesSection) {
|
|
422
|
+
t2 = () => !isEmptyValue(href) && !matchesSection;
|
|
423
|
+
$[5] = href;
|
|
424
|
+
$[6] = matchesSection;
|
|
425
|
+
$[7] = t2;
|
|
426
|
+
} else {
|
|
427
|
+
t2 = $[7];
|
|
428
|
+
}
|
|
429
|
+
const [isOther, setIsOther] = useState(t2);
|
|
430
|
+
const selectValue = isOther ? OTHER_ANCHOR : matchesSection ? href : "";
|
|
431
|
+
let t3;
|
|
432
|
+
if ($[8] !== matchesSection || $[9] !== onHrefChange) {
|
|
433
|
+
t3 = e => {
|
|
434
|
+
const next = e.target.value;
|
|
435
|
+
if (next === OTHER_ANCHOR) {
|
|
436
|
+
setIsOther(true);
|
|
437
|
+
if (matchesSection) {
|
|
438
|
+
onHrefChange("");
|
|
439
|
+
}
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
setIsOther(false);
|
|
443
|
+
onHrefChange(next);
|
|
444
|
+
};
|
|
445
|
+
$[8] = matchesSection;
|
|
446
|
+
$[9] = onHrefChange;
|
|
447
|
+
$[10] = t3;
|
|
448
|
+
} else {
|
|
449
|
+
t3 = $[10];
|
|
450
|
+
}
|
|
451
|
+
let t4;
|
|
452
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
453
|
+
t4 = /*#__PURE__*/_jsx("option", {
|
|
454
|
+
value: "",
|
|
455
|
+
children: "Select section \u2026"
|
|
456
|
+
});
|
|
457
|
+
$[11] = t4;
|
|
458
|
+
} else {
|
|
459
|
+
t4 = $[11];
|
|
460
|
+
}
|
|
461
|
+
let t5;
|
|
462
|
+
if ($[12] !== anchors) {
|
|
463
|
+
t5 = anchors.map(_temp4);
|
|
464
|
+
$[12] = anchors;
|
|
465
|
+
$[13] = t5;
|
|
466
|
+
} else {
|
|
467
|
+
t5 = $[13];
|
|
468
|
+
}
|
|
469
|
+
let t6;
|
|
470
|
+
if ($[14] !== t.otherAnchor) {
|
|
471
|
+
t6 = /*#__PURE__*/_jsx("option", {
|
|
472
|
+
value: OTHER_ANCHOR,
|
|
473
|
+
children: t.otherAnchor
|
|
474
|
+
});
|
|
475
|
+
$[14] = t.otherAnchor;
|
|
476
|
+
$[15] = t6;
|
|
477
|
+
} else {
|
|
478
|
+
t6 = $[15];
|
|
479
|
+
}
|
|
480
|
+
let t7;
|
|
481
|
+
if ($[16] !== selectValue || $[17] !== t3 || $[18] !== t5 || $[19] !== t6) {
|
|
482
|
+
t7 = /*#__PURE__*/_jsxs("select", {
|
|
483
|
+
value: selectValue,
|
|
484
|
+
onChange: t3,
|
|
485
|
+
className: "nh:w-full nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-sm",
|
|
486
|
+
children: [t4, t5, t6]
|
|
487
|
+
});
|
|
488
|
+
$[16] = selectValue;
|
|
489
|
+
$[17] = t3;
|
|
490
|
+
$[18] = t5;
|
|
491
|
+
$[19] = t6;
|
|
492
|
+
$[20] = t7;
|
|
493
|
+
} else {
|
|
494
|
+
t7 = $[20];
|
|
495
|
+
}
|
|
496
|
+
let t8;
|
|
497
|
+
if ($[21] !== href || $[22] !== isOther || $[23] !== onHrefChange || $[24] !== onSubmit || $[25] !== t.anchorPlaceholder) {
|
|
498
|
+
t8 = isOther && /*#__PURE__*/_jsx("input", {
|
|
499
|
+
type: "text",
|
|
500
|
+
value: href,
|
|
501
|
+
placeholder: t.anchorPlaceholder,
|
|
502
|
+
onChange: e_0 => onHrefChange(e_0.target.value),
|
|
503
|
+
onKeyDown: e_1 => {
|
|
504
|
+
if (e_1.key === "Enter") {
|
|
505
|
+
e_1.preventDefault();
|
|
506
|
+
onSubmit?.();
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
className: "nh:w-full nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-sm"
|
|
510
|
+
});
|
|
511
|
+
$[21] = href;
|
|
512
|
+
$[22] = isOther;
|
|
513
|
+
$[23] = onHrefChange;
|
|
514
|
+
$[24] = onSubmit;
|
|
515
|
+
$[25] = t.anchorPlaceholder;
|
|
516
|
+
$[26] = t8;
|
|
517
|
+
} else {
|
|
518
|
+
t8 = $[26];
|
|
519
|
+
}
|
|
520
|
+
let t9;
|
|
521
|
+
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
522
|
+
t9 = {
|
|
523
|
+
fontSize: "var(--puck-font-size-xxxs)",
|
|
524
|
+
color: "var(--puck-color-grey-05)",
|
|
525
|
+
lineHeight: 1.4
|
|
526
|
+
};
|
|
527
|
+
$[27] = t9;
|
|
528
|
+
} else {
|
|
529
|
+
t9 = $[27];
|
|
530
|
+
}
|
|
531
|
+
const t10 = anchors.length === 0 ? "No sections on this page yet. Choose \xABOther \u2026\xBB to link to an anchor on another page or an external page." : "Pick a section on this page, or \xABOther \u2026\xBB for an anchor on another page (/onboarding#anchor) or external page (https://\u2026#anchor).";
|
|
532
|
+
let t11;
|
|
533
|
+
if ($[28] !== t10) {
|
|
534
|
+
t11 = /*#__PURE__*/_jsx("p", {
|
|
535
|
+
style: t9,
|
|
536
|
+
children: t10
|
|
537
|
+
});
|
|
538
|
+
$[28] = t10;
|
|
539
|
+
$[29] = t11;
|
|
540
|
+
} else {
|
|
541
|
+
t11 = $[29];
|
|
542
|
+
}
|
|
543
|
+
let t12;
|
|
544
|
+
if ($[30] !== t11 || $[31] !== t7 || $[32] !== t8) {
|
|
545
|
+
t12 = /*#__PURE__*/_jsxs("div", {
|
|
546
|
+
className: "nh:flex nh:flex-col nh:gap-2",
|
|
547
|
+
children: [t7, t8, t11]
|
|
548
|
+
});
|
|
549
|
+
$[30] = t11;
|
|
550
|
+
$[31] = t7;
|
|
551
|
+
$[32] = t8;
|
|
552
|
+
$[33] = t12;
|
|
553
|
+
} else {
|
|
554
|
+
t12 = $[33];
|
|
555
|
+
}
|
|
556
|
+
return t12;
|
|
557
|
+
}
|
|
558
|
+
function _temp4(anchor) {
|
|
559
|
+
return /*#__PURE__*/_jsxs("option", {
|
|
560
|
+
value: `#${anchor.id}`,
|
|
561
|
+
children: ["#", anchor.id, " \xB7 ", anchor.label]
|
|
562
|
+
}, anchor.id);
|
|
563
|
+
}
|
|
564
|
+
//# sourceMappingURL=link-picker-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-picker-control.js","names":["c","_c","useState","createUsePuck","Popover","keepPreviousData","useQuery","ChevronDown","Search","X","puckFetch","usePuckDictionary","getPathLocale","collectPageAnchors","hasAnchorFragment","humanize","isExternalHref","SegmentedControl","jsx","_jsx","jsxs","_jsxs","MODE_VALUES","usePuck","isExternalValue","value","isEmptyValue","linkLabel","link","locale","label","Object","values","path","displayPath","stripped","replace","RegExp","LinkPickerControl","t0","$","href","onHrefChange","onSubmit","t1","mode","setMode","t2","s","appState","data","pageData","t3","anchors","t","linkPicker","open","setOpen","query","setQuery","activeGroup","setActiveGroup","window","location","pathname","links","isLoading","loading","isError","error","queryKey","queryFn","Array","isArray","enabled","staleTime","Infinity","placeholderData","selectedLink","find","l","info","Map","forEach","l_0","key","group","has","set","groupLabel","order","size","groupInfo","groupLabelOf","key_0","get","groupOrderOf","key_1","Number","MAX_SAFE_INTEGER","t4","bb0","keys","Set","map","_temp","key_2","sort","_temp2","availableGroups","t5","bb1","q","trim","toLowerCase","filtered","filter","l_2","includes","byGroup","key_3","bucket","push","entries","t6","key_4","items","a_0","b_0","a","localeCompare","b","_temp3","groups","e","preventDefault","submitOnEnter","t7","next","switchMode","t8","t9","t10","linkMode","options","variant","ariaLabel","t11","type","placeholder","externalPlaceholder","onChange","e_0","target","className","AnchorInput","Root","children","Trigger","asChild","published","onClick","e_1","stopPropagation","Content","align","sideOffset","autoFocus","searchPlaceholder","e_2","length","all","chip","isActive","loadFailed","noResults","link_0","isSelected","title","t12","a_1","b_1","l_1","OTHER_ANCHOR","id","some","matchesSection","isOther","setIsOther","selectValue","Symbol","for","_temp4","otherAnchor","anchorPlaceholder","onKeyDown","fontSize","color","lineHeight","style","anchor"],"sources":["../../../../../src/puck-editor/internal/fields/link-picker/link-picker-control.tsx"],"sourcesContent":["'use client';\n\nimport { useState, type KeyboardEvent } from 'react';\nimport { createUsePuck } from '@puckeditor/core';\nimport * as Popover from '@radix-ui/react-popover';\nimport { keepPreviousData, useQuery } from '@tanstack/react-query';\nimport { ChevronDown, Search, X } from 'lucide-react';\n\nimport { puckFetch } from '../../api/client';\nimport { usePuckDictionary } from '../../i18n';\nimport { getPathLocale } from '../../locale';\nimport {\n collectPageAnchors,\n hasAnchorFragment,\n type PageAnchor,\n} from './anchor';\nimport { humanize } from './humanize';\nimport { isExternalHref } from './link-value';\nimport SegmentedControl from './segmented-control';\nimport type { RoutableLink } from './types';\n\ntype LinkMode = 'internal' | 'external' | 'anchor';\n\nconst MODE_VALUES: LinkMode[] = ['internal', 'external', 'anchor'];\n\nconst usePuck = createUsePuck();\n\n/**\n * A value is treated as external only when it carries an explicit external\n * scheme (http(s), mailto, tel, or protocol-relative `//`). Relative paths and\n * in-page anchors (incl. the default `#` placeholder) default to the internal\n * picker, so editors land on the page list. Delegates to {@link isExternalHref}\n * so mode detection and target derivation never diverge.\n */\nexport function isExternalValue(value: string): boolean {\n return isExternalHref(value);\n}\n\n/** A bare `#` is the legacy empty/placeholder href — treat it as \"no link\". */\nexport function isEmptyValue(value: string): boolean {\n return !value || value === '#';\n}\n\nfunction linkLabel(link: RoutableLink, locale: string): string {\n return (\n link.label?.[locale] ?? Object.values(link.label ?? {})[0] ?? link.path\n );\n}\n\n/**\n * Path as shown to the editor: the locale prefix (`/de`) is dropped for\n * readability (e.g. `/blog/test` instead of `/de/blog/test`). The full,\n * stored path stays available as a hover tooltip.\n */\nfunction displayPath(path: string, locale: string): string {\n const stripped = path.replace(new RegExp(`^/${locale}(?=/|$)`), '');\n return stripped === '' ? '/' : stripped;\n}\n\ntype LinkPickerControlProps = {\n /** Current href — internal locale-prefixed path or external URL. */\n href: string;\n /** Emits the next href whenever the editor picks/types/clears a value. */\n onHrefChange: (href: string) => void;\n onSubmit?: () => void;\n};\n\n/**\n * The shared link-selection control: Internal/External/Anchor toggle, external URL input,\n * and the searchable, group-filtered internal dropdown (incl. unpublished\n * drafts). Owns only the href; the wrapping field/popover owns the target\n * override and persistence. Used by both `LinkPickerField` (Puck field) and the\n * richtext link popover so both surfaces share identical selection UI.\n */\nexport default function LinkPickerControl({\n href,\n onHrefChange,\n onSubmit,\n}: LinkPickerControlProps) {\n const [mode, setMode] = useState<'internal' | 'external' | 'anchor'>(() =>\n hasAnchorFragment(href)\n ? 'anchor'\n : isExternalValue(href)\n ? 'external'\n : 'internal'\n );\n\n // Section anchors set on the current Puck page (drives the \"Anchor\" mode).\n const pageData = usePuck((s) => (mode === 'anchor' ? s.appState.data : null));\n const anchors = pageData ? collectPageAnchors(pageData) : [];\n const t = usePuckDictionary().linkPicker;\n const [open, setOpen] = useState(false);\n const [query, setQuery] = useState('');\n const [activeGroup, setActiveGroup] = useState<string | null>(null);\n\n const locale: string =\n typeof window !== 'undefined'\n ? getPathLocale(window.location.pathname)\n : 'en';\n\n // Lazily loaded the first time the internal dropdown opens, then kept forever\n // (staleTime: Infinity). The query key is shared, so multiple link fields on\n // one page dedupe to a single fetch.\n const {\n data: links,\n isLoading: loading,\n isError: error,\n } = useQuery({\n queryKey: ['puck-links', locale],\n queryFn: async (): Promise<RoutableLink[]> => {\n const data = await puckFetch<RoutableLink[]>(`/links?lang=${locale}`);\n return Array.isArray(data) ? data : [];\n },\n enabled: mode === 'internal' && open,\n staleTime: Infinity,\n placeholderData: keepPreviousData,\n });\n\n const selectedLink = links?.find((l) => l.path === href) ?? null;\n\n // Group label + order derived from the links themselves: the consumer's\n // collector supplies `groupLabel`, order follows first appearance. Unknown\n // groups fall back to a humanized key, so the package never enumerates\n // project bundles.\n const groupInfo = (() => {\n const info = new Map<string, { label: string; order: number }>();\n (links ?? []).forEach((l) => {\n const key = l.group ?? 'page';\n if (!info.has(key)) {\n info.set(key, {\n label: l.groupLabel ?? humanize(key),\n order: info.size,\n });\n }\n });\n return info;\n })();\n const groupLabelOf = (key: string) =>\n groupInfo.get(key)?.label ?? humanize(key);\n const groupOrderOf = (key: string) =>\n groupInfo.get(key)?.order ?? Number.MAX_SAFE_INTEGER;\n\n // All groups actually present, ordered — drives the filter chips.\n const availableGroups = (() => {\n if (!links) return [];\n const keys = new Set(links.map((l) => l.group ?? 'page'));\n return [...keys]\n .map((key) => ({\n key,\n label: groupLabelOf(key),\n order: groupOrderOf(key),\n }))\n .sort((a, b) => a.order - b.order);\n })();\n\n // Filter by active group + query, then group and order for display.\n const groups = (() => {\n if (!links) return [];\n const q = query.trim().toLowerCase();\n const filtered = links.filter((l) => {\n if (activeGroup && (l.group ?? 'page') !== activeGroup) return false;\n if (!q) return true;\n return (\n l.path.toLowerCase().includes(q) ||\n linkLabel(l, locale).toLowerCase().includes(q)\n );\n });\n\n const byGroup = new Map<string, RoutableLink[]>();\n for (const link of filtered) {\n const key = link.group ?? 'page';\n const bucket = byGroup.get(key) ?? [];\n bucket.push(link);\n byGroup.set(key, bucket);\n }\n\n return [...byGroup.entries()]\n .map(([key, items]) => ({\n key,\n label: groupLabelOf(key),\n order: groupOrderOf(key),\n items: items.sort((a, b) =>\n linkLabel(a, locale).localeCompare(linkLabel(b, locale))\n ),\n }))\n .sort((a, b) => a.order - b.order);\n })();\n\n const submitOnEnter = (e: KeyboardEvent) => {\n if (e.key === 'Enter') {\n e.preventDefault();\n onSubmit?.();\n }\n };\n\n const switchMode = (next: 'internal' | 'external' | 'anchor') => {\n if (next === mode) return;\n setMode(next);\n // Clearing the href on switch avoids leaving an internal path in \"external\"\n // mode; the wrapping field/popover preserves any target override.\n onHrefChange('');\n setQuery('');\n setActiveGroup(null);\n setOpen(false);\n };\n\n return (\n <div className=\"nh:flex nh:flex-col nh:gap-2\">\n {/* Mode toggle: Internal / External / Anchor */}\n <SegmentedControl\n options={MODE_VALUES.map((value) => ({ value, label: t[value] }))}\n value={mode}\n onChange={switchMode}\n variant=\"puck\"\n ariaLabel={t.linkMode}\n />\n\n {mode === 'external' ? (\n <input\n type=\"text\"\n value={href}\n placeholder={t.externalPlaceholder}\n onChange={(e) => onHrefChange(e.target.value)}\n onKeyDown={submitOnEnter}\n className=\"nh:w-full nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-sm\"\n />\n ) : mode === 'anchor' ? (\n <AnchorInput\n href={href}\n anchors={anchors}\n onHrefChange={onHrefChange}\n onSubmit={onSubmit}\n />\n ) : (\n <Popover.Root open={open} onOpenChange={setOpen}>\n <div className=\"nh:relative\">\n {/* Trigger */}\n <Popover.Trigger asChild>\n <button\n type=\"button\"\n className=\"nh:flex nh:w-full nh:items-center nh:justify-between nh:gap-2 nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-left nh:text-sm nh:hover:bg-(--nh-muted)\"\n >\n <span className=\"nh:flex nh:min-w-0 nh:items-center nh:gap-2\">\n <span\n className={\n isEmptyValue(href)\n ? 'nh:truncate nh:text-gray-500'\n : 'nh:truncate'\n }\n >\n {isEmptyValue(href)\n ? 'Select page …'\n : selectedLink\n ? linkLabel(selectedLink, locale)\n : href}\n </span>\n {selectedLink?.published === false && (\n <span className=\"nh:shrink-0 nh:rounded-full nh:bg-amber-50 nh:px-1.5 nh:py-0.5 nh:text-[9px] nh:font-semibold nh:uppercase nh:tracking-wide nh:text-amber-600 nh:ring-1 nh:ring-inset nh:ring-amber-200\">\n Draft\n </span>\n )}\n </span>\n <span className=\"nh:flex nh:shrink-0 nh:items-center nh:gap-1\">\n {!isEmptyValue(href) && (\n <X\n className=\"nh:size-4 nh:text-gray-500 nh:hover:text-(--nh-fg)\"\n onClick={(e) => {\n e.stopPropagation();\n onHrefChange('');\n }}\n />\n )}\n <ChevronDown className=\"nh:size-4 nh:text-gray-500\" />\n </span>\n </button>\n </Popover.Trigger>\n\n {!isEmptyValue(href) && (\n <div\n className=\"nh:mt-1 nh:truncate nh:font-mono nh:text-xs nh:text-gray-500\"\n title={href}\n >\n {displayPath(href, locale)}\n </div>\n )}\n\n <Popover.Content\n align=\"start\"\n sideOffset={4}\n data-puck-rte-menu\n className=\"nh:z-50 nh:w-(--radix-popover-trigger-width) nh:overflow-hidden nh:rounded-md nh:border nh:border-(--nh-border) nh:bg-(--nh-bg) nh:text-(--nh-fg) nh:shadow-md\"\n >\n <div className=\"nh:flex nh:items-center nh:gap-2 nh:border-b nh:border-(--nh-border) nh:p-2\">\n <Search className=\"nh:size-4 nh:shrink-0 nh:text-gray-500\" />\n <input\n type=\"text\"\n autoFocus\n value={query}\n placeholder={t.searchPlaceholder}\n onChange={(e) => setQuery(e.target.value)}\n className=\"nh:w-full nh:text-sm outline-none\"\n />\n </div>\n\n {/* Group filter chips */}\n {availableGroups.length > 1 && (\n <div className=\"nh:flex nh:flex-wrap nh:gap-1 nh:border-b nh:border-(--nh-border) nh:p-2\">\n {[{ key: null, label: t.all }, ...availableGroups].map(\n (chip) => {\n const isActive = activeGroup === chip.key;\n return (\n <button\n key={chip.key ?? '__all'}\n type=\"button\"\n onClick={() => setActiveGroup(chip.key)}\n className={`nh:rounded-full nh:px-2.5 nh:py-1 nh:text-xs nh:font-medium nh:transition-colors ${\n isActive\n ? 'nh:bg-(--nh-primary) nh:text-(--nh-primary-fg)'\n : 'nh:text-gray-500 bg-(--nh-muted) hover:bg-gray-200'\n }`}\n >\n {chip.label}\n </button>\n );\n }\n )}\n </div>\n )}\n\n <div className=\"nh:max-h-72 nh:overflow-y-auto nh:py-1\">\n {loading && (\n <div className=\"nh:px-3 nh:py-4 nh:text-center nh:text-xs nh:text-gray-500\">\n {t.loading}\n </div>\n )}\n {!loading && error && (\n <div className=\"nh:px-3 nh:py-4 nh:text-center nh:text-xs nh:text-red-600\">\n {t.loadFailed}\n </div>\n )}\n {!loading && !error && groups.length === 0 && (\n <div className=\"nh:px-3 nh:py-4 nh:text-center nh:text-xs nh:text-gray-500\">\n {t.noResults}\n </div>\n )}\n\n {groups.map((group) => (\n <div key={group.key}>\n {!activeGroup && (\n <div className=\"nh:px-3 nh:pt-2 nh:pb-1 nh:text-xs nh:font-semibold nh:tracking-wide nh:text-gray-500 nh:uppercase\">\n {group.label}\n </div>\n )}\n {group.items.map((link) => {\n const isSelected = link.path === href;\n return (\n <button\n key={link.path}\n type=\"button\"\n onClick={() => {\n onHrefChange(link.path);\n setOpen(false);\n }}\n className={`nh:flex nh:w-full nh:flex-col nh:items-start nh:gap-0.5 nh:px-3 nh:py-2 nh:text-left nh:hover:bg-(--nh-muted) ${\n isSelected ? 'bg-(--nh-muted)' : ''\n }`}\n >\n <span className=\"nh:flex nh:w-full nh:items-center nh:gap-2 nh:text-sm\">\n <span className=\"nh:truncate\">\n {linkLabel(link, locale)}\n </span>\n {link.published === false && (\n <span className=\"nh:shrink-0 nh:rounded-full nh:bg-amber-50 nh:px-1.5 nh:py-0.5 nh:text-[9px] nh:font-semibold nh:uppercase nh:tracking-wide nh:text-amber-600 nh:ring-1 nh:ring-inset nh:ring-amber-200\">\n Draft\n </span>\n )}\n </span>\n <span\n className=\"nh:w-full nh:truncate nh:font-mono nh:text-xs nh:text-gray-500\"\n title={link.path}\n >\n {displayPath(link.path, locale)}\n </span>\n </button>\n );\n })}\n </div>\n ))}\n </div>\n </Popover.Content>\n </div>\n </Popover.Root>\n )}\n </div>\n );\n}\n\ntype AnchorInputProps = {\n href: string;\n anchors: PageAnchor[];\n onHrefChange: (href: string) => void;\n onSubmit?: () => void;\n};\n\n/** Sentinel select value for the free-form \"Other …\" anchor option. */\nconst OTHER_ANCHOR = '__other__';\n\n/**\n * Anchor-mode input: a dropdown of the section Anchor IDs found on the current\n * Puck page, plus an «Other …» option. Picking a section stores `#id`; picking\n * «Other …» reveals a text field for a custom fragment target — a section on\n * another page (`/onboarding#start`) or an external URL\n * (`https://example.com#start`).\n *\n * The initial mode is auto-detected from the stored value: a value that matches\n * one of this page's sections selects that option; any other non-empty value\n * preselects «Other …» and shows it in the text field, so links round-trip.\n */\nfunction AnchorInput({\n href,\n anchors,\n onHrefChange,\n onSubmit,\n}: AnchorInputProps) {\n const t = usePuckDictionary().linkPicker;\n const matchesSection = anchors.some((a) => `#${a.id}` === href);\n const [isOther, setIsOther] = useState(\n () => !isEmptyValue(href) && !matchesSection\n );\n\n const selectValue = isOther ? OTHER_ANCHOR : matchesSection ? href : '';\n\n return (\n <div className=\"nh:flex nh:flex-col nh:gap-2\">\n <select\n value={selectValue}\n onChange={(e) => {\n const next = e.target.value;\n if (next === OTHER_ANCHOR) {\n setIsOther(true);\n // Start the custom field empty unless a custom value is already set.\n if (matchesSection) onHrefChange('');\n return;\n }\n setIsOther(false);\n onHrefChange(next); // '' (placeholder) or '#section-id'\n }}\n className=\"nh:w-full nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-sm\"\n >\n <option value=\"\">Select section …</option>\n {anchors.map((anchor) => (\n <option key={anchor.id} value={`#${anchor.id}`}>\n #{anchor.id} · {anchor.label}\n </option>\n ))}\n <option value={OTHER_ANCHOR}>{t.otherAnchor}</option>\n </select>\n\n {isOther && (\n <input\n type=\"text\"\n value={href}\n placeholder={t.anchorPlaceholder}\n onChange={(e) => onHrefChange(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n e.preventDefault();\n onSubmit?.();\n }\n }}\n className=\"nh:w-full nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-sm\"\n />\n )}\n\n <p\n style={{\n fontSize: 'var(--puck-font-size-xxxs)',\n color: 'var(--puck-color-grey-05)',\n lineHeight: 1.4,\n }}\n >\n {anchors.length === 0\n ? 'No sections on this page yet. Choose «Other …» to link to an anchor on another page or an external page.'\n : 'Pick a section on this page, or «Other …» for an anchor on another page (/onboarding#anchor) or external page (https://…#anchor).'}\n </p>\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,QAAQ,QAA4B,OAAO;AACpD,SAASC,aAAa,QAAQ,kBAAkB;AAChD,OAAO,KAAKC,OAAO,MAAM,yBAAyB;AAClD,SAASC,gBAAgB,EAAEC,QAAQ,QAAQ,uBAAuB;AAClE,SAASC,WAAW,EAAEC,MAAM,EAAEC,CAAC,QAAQ,cAAc;AAErD,SAASC,SAAS,QAAQ,kBAAkB;AAC5C,SAASC,iBAAiB,QAAQ,YAAY;AAC9C,SAASC,aAAa,QAAQ,cAAc;AAC5C,SACEC,kBAAkB,EAClBC,iBAAiB,QAEZ,UAAU;AACjB,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,cAAc,QAAQ,cAAc;AAC7C,OAAOC,gBAAgB,MAAM,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAKnD,MAAMC,WAAuB,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC;AAElE,MAAMC,OAAO,GAAGpB,aAAa,CAAC,CAAC;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASqB,eAAeA,CAACC,KAAa,EAAW;EACtD,OAAOT,cAAc,CAACS,KAAK,CAAC;AAC9B;;AAEA;AACA,OAAO,SAASC,YAAYA,CAACD,KAAa,EAAW;EACnD,OAAO,CAACA,KAAK,IAAIA,KAAK,KAAK,GAAG;AAChC;AAEA,SAASE,SAASA,CAACC,IAAkB,EAAEC,MA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AAA;IAAAjG,CAAA,OAAAoG,EAAA;IAAApG,CAAA,OAAA2I,GAAA;EAAA;IAAAA,GAAA,GAAA3I,CAAA;EAAA;EAAA,OApDN2I,GAoDM;AAAA;AAnEV,SAAAa,OAAAQ,MAAA;EAAA,oBAiCUnL,KAAA;IAA+BI,KAAe,EAAf,IAAI+K,MAAM,CAAAhB,EAAG,EAAE;IAAA3B,QAAA,GAAE,GAC7C,EAAC2C,MAAM,CAAAhB,EAAG,EAAC,QAAG,EAACgB,MAAM,CAAA1K,KAAM;EAAA,GADjB0K,MAAM,CAAAhB,EAEX,CAAC;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type LinkValue } from './link-value';
|
|
2
|
+
type LinkPickerFieldProps = {
|
|
3
|
+
value: LinkValue | string;
|
|
4
|
+
onChange: (value: LinkValue) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
};
|
|
7
|
+
export default function LinkPickerField({ value, onChange, label, }: LinkPickerFieldProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=link-picker-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-picker-field.d.ts","sourceRoot":"","sources":["../../../../../src/puck-editor/internal/fields/link-picker/link-picker-field.tsx"],"names":[],"mappings":"AAOA,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,KAAK,oBAAoB,GAAG;IAE1B,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,KAAK,EACL,QAAQ,EACR,KAAK,GACN,EAAE,oBAAoB,+BAiDtB"}
|