@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,57 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { createContext, useContext } from 'react';
|
|
5
|
+
import { resolveContentModel } from './content-model';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const PuckEditorConfigContext = /*#__PURE__*/createContext({});
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Mounted by PuckWrapper. Headless setups that use useMediaLibrary or
|
|
11
|
+
* MediaSelectorField outside PuckWrapper mount this provider themselves.
|
|
12
|
+
*/
|
|
13
|
+
export function PuckEditorConfigProvider(t0) {
|
|
14
|
+
const $ = _c(3);
|
|
15
|
+
const {
|
|
16
|
+
config,
|
|
17
|
+
children
|
|
18
|
+
} = t0;
|
|
19
|
+
let t1;
|
|
20
|
+
if ($[0] !== children || $[1] !== config) {
|
|
21
|
+
t1 = /*#__PURE__*/_jsx(PuckEditorConfigContext.Provider, {
|
|
22
|
+
value: config,
|
|
23
|
+
children: children
|
|
24
|
+
});
|
|
25
|
+
$[0] = children;
|
|
26
|
+
$[1] = config;
|
|
27
|
+
$[2] = t1;
|
|
28
|
+
} else {
|
|
29
|
+
t1 = $[2];
|
|
30
|
+
}
|
|
31
|
+
return t1;
|
|
32
|
+
}
|
|
33
|
+
export function usePuckEditorConfig() {
|
|
34
|
+
return useContext(PuckEditorConfigContext);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Resolved content model; defaults apply without a provider (headless). */
|
|
38
|
+
export function usePuckContentModel() {
|
|
39
|
+
const $ = _c(2);
|
|
40
|
+
const {
|
|
41
|
+
contentModel
|
|
42
|
+
} = useContext(PuckEditorConfigContext);
|
|
43
|
+
let t0;
|
|
44
|
+
if ($[0] !== contentModel) {
|
|
45
|
+
t0 = resolveContentModel(contentModel);
|
|
46
|
+
$[0] = contentModel;
|
|
47
|
+
$[1] = t0;
|
|
48
|
+
} else {
|
|
49
|
+
t0 = $[1];
|
|
50
|
+
}
|
|
51
|
+
return t0;
|
|
52
|
+
}
|
|
53
|
+
const NO_BUILTINS = [];
|
|
54
|
+
export function useBuiltinTemplates() {
|
|
55
|
+
return useContext(PuckEditorConfigContext).builtinTemplates ?? NO_BUILTINS;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=editor-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-config.js","names":["c","_c","createContext","useContext","resolveContentModel","jsx","_jsx","PuckEditorConfigContext","PuckEditorConfigProvider","t0","$","config","children","t1","Provider","usePuckEditorConfig","usePuckContentModel","contentModel","NO_BUILTINS","useBuiltinTemplates","builtinTemplates"],"sources":["../../../src/puck-editor/internal/editor-config.tsx"],"sourcesContent":["'use client';\n\nimport { createContext, useContext, type ReactNode } from 'react';\n\nimport {\n resolveContentModel,\n type PuckContentModel,\n type PuckContentModelInput,\n} from './content-model';\nimport type { BuiltinTemplate } from './plugins/templates-plugin/templates';\n\nexport type PuckEditorConfig = {\n /**\n * Absolute Drupal base URL used to absolutize relative media URIs\n * (thumbnails). Injected by the project instead of reading NEXT_PUBLIC_*\n * env in module code — env inlining is not guaranteed inside packages.\n */\n drupalBaseUrl?: string;\n /**\n * Drupal content-model overrides. Pass the same value to createPuckApi so\n * the editor UI and the publish validation stay in sync.\n */\n contentModel?: PuckContentModelInput;\n builtinTemplates?: BuiltinTemplate[];\n};\n\nconst PuckEditorConfigContext = createContext<PuckEditorConfig>({});\n\n/**\n * Mounted by PuckWrapper. Headless setups that use useMediaLibrary or\n * MediaSelectorField outside PuckWrapper mount this provider themselves.\n */\nexport function PuckEditorConfigProvider({\n config,\n children,\n}: {\n config: PuckEditorConfig;\n children: ReactNode;\n}) {\n return (\n <PuckEditorConfigContext.Provider value={config}>\n {children}\n </PuckEditorConfigContext.Provider>\n );\n}\n\nexport function usePuckEditorConfig(): PuckEditorConfig {\n return useContext(PuckEditorConfigContext);\n}\n\n/** Resolved content model; defaults apply without a provider (headless). */\nexport function usePuckContentModel(): PuckContentModel {\n const { contentModel } = useContext(PuckEditorConfigContext);\n return resolveContentModel(contentModel);\n}\n\nconst NO_BUILTINS: BuiltinTemplate[] = [];\n\nexport function useBuiltinTemplates(): BuiltinTemplate[] {\n return useContext(PuckEditorConfigContext).builtinTemplates ?? NO_BUILTINS;\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,aAAa,EAAEC,UAAU,QAAwB,OAAO;AAEjE,SACEC,mBAAmB,QAGd,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAkBzB,MAAMC,uBAAuB,gBAAGL,aAAa,CAAmB,CAAC,CAAC,CAAC;;AAEnE;AACA;AACA;AACA;AACA,OAAO,SAAAM,yBAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAT,EAAA;EAAkC;IAAAU,MAAA;IAAAC;EAAA,IAAAH,EAMxC;EAAA,IAAAI,EAAA;EAAA,IAAAH,CAAA,QAAAE,QAAA,IAAAF,CAAA,QAAAC,MAAA;IAEGE,EAAA,gBAAAP,IAAA,CAAAC,uBAAA,CAAAO,QAAA;MAAyCH,KAAM,EAANA,MAAM;MAAAC,QAAA,EAC5CA;IAAQ,CACuB,CAAC;IAAAF,CAAA,MAAAE,QAAA;IAAAF,CAAA,MAAAC,MAAA;IAAAD,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAAA,OAFnCG,EAEmC;AAAA;AAIvC,OAAO,SAAAE,oBAAA;EAAA,OACEZ,UAAU,CAACI,uBAAuB,CAAC;AAAA;;AAG5C;AACA,OAAO,SAAAS,oBAAA;EAAA,MAAAN,CAAA,GAAAT,EAAA;EACL;IAAAgB;EAAA,IAAyBd,UAAU,CAACI,uBAAuB,CAAC;EAAC,IAAAE,EAAA;EAAA,IAAAC,CAAA,QAAAO,YAAA;IACtDR,EAAA,GAAAL,mBAAmB,CAACa,YAAY,CAAC;IAAAP,CAAA,MAAAO,YAAA;IAAAP,CAAA,MAAAD,EAAA;EAAA;IAAAA,EAAA,GAAAC,CAAA;EAAA;EAAA,OAAjCD,EAAiC;AAAA;AAG1C,MAAMS,WAA8B,GAAG,EAAE;AAEzC,OAAO,SAAAC,oBAAA;EAAA,OACEhB,UAAU,CAACI,uBAAuB,CAAC,CAAAa,gBAAgC,IAAnEF,WAAmE;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-query-client.d.ts","sourceRoot":"","sources":["../../../src/puck-editor/internal/editor-query-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,eAAO,MAAM,mBAAmB,+BAAgC,CAAC;AAIjE,wBAAgB,oBAAoB,IAAI,WAAW,CAGlD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
2
|
+
export const TEMPLATES_QUERY_KEY = ['templates-plugin'];
|
|
3
|
+
let editorQueryClient = null;
|
|
4
|
+
export function getEditorQueryClient() {
|
|
5
|
+
editorQueryClient ??= new QueryClient();
|
|
6
|
+
return editorQueryClient;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=editor-query-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-query-client.js","names":["QueryClient","TEMPLATES_QUERY_KEY","editorQueryClient","getEditorQueryClient"],"sources":["../../../src/puck-editor/internal/editor-query-client.ts"],"sourcesContent":["import { QueryClient } from '@tanstack/react-query';\n\nexport const TEMPLATES_QUERY_KEY = ['templates-plugin'] as const;\n\nlet editorQueryClient: QueryClient | null = null;\n\nexport function getEditorQueryClient(): QueryClient {\n editorQueryClient ??= new QueryClient();\n return editorQueryClient;\n}\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,uBAAuB;AAEnD,OAAO,MAAMC,mBAAmB,GAAG,CAAC,kBAAkB,CAAU;AAEhE,IAAIC,iBAAqC,GAAG,IAAI;AAEhD,OAAO,SAASC,oBAAoBA,CAAA,EAAgB;EAClDD,iBAAiB,KAAK,IAAIF,WAAW,CAAC,CAAC;EACvC,OAAOE,iBAAiB;AAC1B","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type CheckboxOption = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
type CheckboxGroupFieldProps = {
|
|
6
|
+
label?: string;
|
|
7
|
+
options: CheckboxOption[];
|
|
8
|
+
value?: string[];
|
|
9
|
+
onChange: (value: string[]) => void;
|
|
10
|
+
helperText?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function CheckboxGroupField({ label, options, value, onChange, helperText, }: CheckboxGroupFieldProps): import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=checkbox-group-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-group-field.d.ts","sourceRoot":"","sources":["../../../../../src/puck-editor/internal/fields/checkbox-group/checkbox-group-field.tsx"],"names":[],"mappings":"AAKA,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,OAAO,EACP,KAAU,EACV,QAAQ,EACR,UAAU,GACX,EAAE,uBAAuB,+BAkCzB"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { usePuckDictionary } from '../../i18n';
|
|
5
|
+
import { RequiredFieldLabel } from '../required-field-label';
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export function CheckboxGroupField(t0) {
|
|
8
|
+
const $ = _c(22);
|
|
9
|
+
const {
|
|
10
|
+
label,
|
|
11
|
+
options,
|
|
12
|
+
value: t1,
|
|
13
|
+
onChange,
|
|
14
|
+
helperText
|
|
15
|
+
} = t0;
|
|
16
|
+
let t2;
|
|
17
|
+
if ($[0] !== t1) {
|
|
18
|
+
t2 = t1 === undefined ? [] : t1;
|
|
19
|
+
$[0] = t1;
|
|
20
|
+
$[1] = t2;
|
|
21
|
+
} else {
|
|
22
|
+
t2 = $[1];
|
|
23
|
+
}
|
|
24
|
+
const value = t2;
|
|
25
|
+
const t = usePuckDictionary().fields;
|
|
26
|
+
let t3;
|
|
27
|
+
if ($[2] !== onChange || $[3] !== value) {
|
|
28
|
+
t3 = optionValue => {
|
|
29
|
+
if (value.includes(optionValue)) {
|
|
30
|
+
onChange(value.filter(item => item !== optionValue));
|
|
31
|
+
} else {
|
|
32
|
+
onChange([...value, optionValue]);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
$[2] = onChange;
|
|
36
|
+
$[3] = value;
|
|
37
|
+
$[4] = t3;
|
|
38
|
+
} else {
|
|
39
|
+
t3 = $[4];
|
|
40
|
+
}
|
|
41
|
+
const handleToggle = t3;
|
|
42
|
+
const t4 = label ?? t.options;
|
|
43
|
+
let t5;
|
|
44
|
+
if ($[5] !== t4) {
|
|
45
|
+
t5 = /*#__PURE__*/_jsx(RequiredFieldLabel, {
|
|
46
|
+
label: t4
|
|
47
|
+
});
|
|
48
|
+
$[5] = t4;
|
|
49
|
+
$[6] = t5;
|
|
50
|
+
} else {
|
|
51
|
+
t5 = $[6];
|
|
52
|
+
}
|
|
53
|
+
let t6;
|
|
54
|
+
if ($[7] !== helperText) {
|
|
55
|
+
t6 = helperText ? /*#__PURE__*/_jsx("p", {
|
|
56
|
+
className: "nh:text-xs nh:text-gray-500",
|
|
57
|
+
children: helperText
|
|
58
|
+
}) : null;
|
|
59
|
+
$[7] = helperText;
|
|
60
|
+
$[8] = t6;
|
|
61
|
+
} else {
|
|
62
|
+
t6 = $[8];
|
|
63
|
+
}
|
|
64
|
+
let t7;
|
|
65
|
+
if ($[9] !== handleToggle || $[10] !== options || $[11] !== value) {
|
|
66
|
+
let t8;
|
|
67
|
+
if ($[13] !== handleToggle || $[14] !== value) {
|
|
68
|
+
t8 = option => /*#__PURE__*/_jsxs("label", {
|
|
69
|
+
className: "nh:flex nh:items-center nh:gap-2 nh:rounded nh:border nh:border-transparent nh:px-2 nh:py-1 nh:text-sm nh:font-medium nh:text-gray-700 nh:hover:border-gray-200",
|
|
70
|
+
children: [/*#__PURE__*/_jsx("input", {
|
|
71
|
+
type: "checkbox",
|
|
72
|
+
className: "nh:size-4 nh:rounded nh:border-gray-300 nh:text-(--nh-primary)",
|
|
73
|
+
checked: value.includes(option.value),
|
|
74
|
+
onChange: () => handleToggle(option.value)
|
|
75
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
76
|
+
className: "nh:text-gray-900",
|
|
77
|
+
children: option.label
|
|
78
|
+
})]
|
|
79
|
+
}, option.value);
|
|
80
|
+
$[13] = handleToggle;
|
|
81
|
+
$[14] = value;
|
|
82
|
+
$[15] = t8;
|
|
83
|
+
} else {
|
|
84
|
+
t8 = $[15];
|
|
85
|
+
}
|
|
86
|
+
t7 = options.map(t8);
|
|
87
|
+
$[9] = handleToggle;
|
|
88
|
+
$[10] = options;
|
|
89
|
+
$[11] = value;
|
|
90
|
+
$[12] = t7;
|
|
91
|
+
} else {
|
|
92
|
+
t7 = $[12];
|
|
93
|
+
}
|
|
94
|
+
let t8;
|
|
95
|
+
if ($[16] !== t7) {
|
|
96
|
+
t8 = /*#__PURE__*/_jsx("div", {
|
|
97
|
+
className: "nh:flex nh:flex-col nh:gap-1",
|
|
98
|
+
children: t7
|
|
99
|
+
});
|
|
100
|
+
$[16] = t7;
|
|
101
|
+
$[17] = t8;
|
|
102
|
+
} else {
|
|
103
|
+
t8 = $[17];
|
|
104
|
+
}
|
|
105
|
+
let t9;
|
|
106
|
+
if ($[18] !== t5 || $[19] !== t6 || $[20] !== t8) {
|
|
107
|
+
t9 = /*#__PURE__*/_jsxs("div", {
|
|
108
|
+
className: "nh:flex nh:flex-col nh:gap-2",
|
|
109
|
+
children: [t5, t6, t8]
|
|
110
|
+
});
|
|
111
|
+
$[18] = t5;
|
|
112
|
+
$[19] = t6;
|
|
113
|
+
$[20] = t8;
|
|
114
|
+
$[21] = t9;
|
|
115
|
+
} else {
|
|
116
|
+
t9 = $[21];
|
|
117
|
+
}
|
|
118
|
+
return t9;
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=checkbox-group-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-group-field.js","names":["c","_c","usePuckDictionary","RequiredFieldLabel","jsx","_jsx","jsxs","_jsxs","CheckboxGroupField","t0","$","label","options","value","t1","onChange","helperText","t2","undefined","t","fields","t3","optionValue","includes","filter","item","handleToggle","t4","t5","t6","className","children","t7","t8","option","type","checked","map","t9"],"sources":["../../../../../src/puck-editor/internal/fields/checkbox-group/checkbox-group-field.tsx"],"sourcesContent":["'use client';\n\nimport { usePuckDictionary } from '../../i18n';\nimport { RequiredFieldLabel } from '../required-field-label';\n\ntype CheckboxOption = {\n label: string;\n value: string;\n};\n\ntype CheckboxGroupFieldProps = {\n label?: string;\n options: CheckboxOption[];\n value?: string[];\n onChange: (value: string[]) => void;\n helperText?: string;\n};\n\nexport function CheckboxGroupField({\n label,\n options,\n value = [],\n onChange,\n helperText,\n}: CheckboxGroupFieldProps) {\n const t = usePuckDictionary().fields;\n const handleToggle = (optionValue: string) => {\n if (value.includes(optionValue)) {\n onChange(value.filter((item) => item !== optionValue));\n } else {\n onChange([...value, optionValue]);\n }\n };\n\n return (\n <div className=\"nh:flex nh:flex-col nh:gap-2\">\n <RequiredFieldLabel label={label ?? t.options} />\n {helperText ? (\n <p className=\"nh:text-xs nh:text-gray-500\">{helperText}</p>\n ) : null}\n <div className=\"nh:flex nh:flex-col nh:gap-1\">\n {options.map((option) => (\n <label\n key={option.value}\n className=\"nh:flex nh:items-center nh:gap-2 nh:rounded nh:border nh:border-transparent nh:px-2 nh:py-1 nh:text-sm nh:font-medium nh:text-gray-700 nh:hover:border-gray-200\"\n >\n <input\n type=\"checkbox\"\n className=\"nh:size-4 nh:rounded nh:border-gray-300 nh:text-(--nh-primary)\"\n checked={value.includes(option.value)}\n onChange={() => handleToggle(option.value)}\n />\n <span className=\"nh:text-gray-900\">{option.label}</span>\n </label>\n ))}\n </div>\n </div>\n );\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface CheckboxGroupFieldOptions {
|
|
2
|
+
label?: string;
|
|
3
|
+
options: Array<{
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}>;
|
|
7
|
+
helperText?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const createCheckboxGroupField: ({ label, options, helperText, }: CheckboxGroupFieldOptions) => {
|
|
10
|
+
type: "custom";
|
|
11
|
+
label: string | undefined;
|
|
12
|
+
render: ({ field, value, onChange }: {
|
|
13
|
+
field: import("@puckeditor/core").CustomField<string[]>;
|
|
14
|
+
name: string;
|
|
15
|
+
id: string;
|
|
16
|
+
value: string[];
|
|
17
|
+
onChange: (value: string[], uiState?: Partial<import("@puckeditor/core").UiState>) => void;
|
|
18
|
+
readOnly?: boolean;
|
|
19
|
+
}) => import("react").JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=create-checkbox-group-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-checkbox-group-field.d.ts","sourceRoot":"","sources":["../../../../../src/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,wBAAwB,GAAI,iCAItC,yBAAyB;;;;;;;;;;;CAc3B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CheckboxGroupField } from './checkbox-group-field';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
export const createCheckboxGroupField = ({
|
|
4
|
+
label,
|
|
5
|
+
options,
|
|
6
|
+
helperText
|
|
7
|
+
}) => {
|
|
8
|
+
return {
|
|
9
|
+
type: 'custom',
|
|
10
|
+
label,
|
|
11
|
+
render: ({
|
|
12
|
+
field,
|
|
13
|
+
value,
|
|
14
|
+
onChange
|
|
15
|
+
}) => /*#__PURE__*/_jsx(CheckboxGroupField, {
|
|
16
|
+
label: field.label ?? label,
|
|
17
|
+
options: options,
|
|
18
|
+
value: value,
|
|
19
|
+
onChange: onChange,
|
|
20
|
+
helperText: helperText
|
|
21
|
+
})
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=create-checkbox-group-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-checkbox-group-field.js","names":["CheckboxGroupField","jsx","_jsx","createCheckboxGroupField","label","options","helperText","type","render","field","value","onChange"],"sources":["../../../../../src/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.tsx"],"sourcesContent":["import type { CustomFieldRender } from '@puckeditor/core';\n\nimport { CheckboxGroupField } from './checkbox-group-field';\n\nexport interface CheckboxGroupFieldOptions {\n label?: string;\n options: Array<{ label: string; value: string }>;\n helperText?: string;\n}\n\nexport const createCheckboxGroupField = ({\n label,\n options,\n helperText,\n}: CheckboxGroupFieldOptions) => {\n return {\n type: 'custom' as const,\n label,\n render: (({ field, value, onChange }) => (\n <CheckboxGroupField\n label={field.label ?? label}\n options={options}\n value={value}\n onChange={onChange}\n helperText={helperText}\n />\n )) satisfies CustomFieldRender<string[]>,\n };\n};\n"],"mappings":"AAEA,SAASA,kBAAkB,QAAQ,wBAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQ5D,OAAO,MAAMC,wBAAwB,GAAGA,CAAC;EACvCC,KAAK;EACLC,OAAO;EACPC;AACyB,CAAC,KAAK;EAC/B,OAAO;IACLC,IAAI,EAAE,QAAiB;IACvBH,KAAK;IACLI,MAAM,EAAGA,CAAC;MAAEC,KAAK;MAAEC,KAAK;MAAEC;IAAS,CAAC,kBAClCT,IAAA,CAACF,kBAAkB;MACjBI,KAAK,EAAEK,KAAK,CAACL,KAAK,IAAIA,KAAM;MAC5BC,OAAO,EAAEA,OAAQ;MACjBK,KAAK,EAAEA,KAAM;MACbC,QAAQ,EAAEA,QAAS;MACnBL,UAAU,EAAEA;IAAW,CACxB;EAEL,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface DatePickerFieldOptions {
|
|
2
|
+
label?: string;
|
|
3
|
+
}
|
|
4
|
+
export declare const createDatePickerField: ({ label, }?: DatePickerFieldOptions) => {
|
|
5
|
+
type: "custom";
|
|
6
|
+
label: string | undefined;
|
|
7
|
+
render: ({ field, value, onChange }: {
|
|
8
|
+
field: import("@puckeditor/core").CustomField<string>;
|
|
9
|
+
name: string;
|
|
10
|
+
id: string;
|
|
11
|
+
value: string;
|
|
12
|
+
onChange: (value: string, uiState?: Partial<import("@puckeditor/core").UiState>) => void;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
}) => import("react").JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=create-date-picker-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-date-picker-field.d.ts","sourceRoot":"","sources":["../../../../../src/puck-editor/internal/fields/date-picker/create-date-picker-field.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,qBAAqB,GAAI,aAEnC,sBAA2B;;;;;;;;;;;CAY7B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DatePicker } from './date-picker';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
export const createDatePickerField = ({
|
|
4
|
+
label
|
|
5
|
+
} = {}) => {
|
|
6
|
+
return {
|
|
7
|
+
type: 'custom',
|
|
8
|
+
label,
|
|
9
|
+
render: ({
|
|
10
|
+
field,
|
|
11
|
+
value,
|
|
12
|
+
onChange
|
|
13
|
+
}) => /*#__PURE__*/_jsx(DatePicker, {
|
|
14
|
+
date: value,
|
|
15
|
+
onChange: onChange,
|
|
16
|
+
label: field.label ?? label
|
|
17
|
+
})
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=create-date-picker-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-date-picker-field.js","names":["DatePicker","jsx","_jsx","createDatePickerField","label","type","render","field","value","onChange","date"],"sources":["../../../../../src/puck-editor/internal/fields/date-picker/create-date-picker-field.tsx"],"sourcesContent":["import type { CustomFieldRender } from '@puckeditor/core';\n\nimport { DatePicker } from './date-picker';\n\nexport interface DatePickerFieldOptions {\n label?: string;\n}\n\nexport const createDatePickerField = ({\n label,\n}: DatePickerFieldOptions = {}) => {\n return {\n type: 'custom' as const,\n label,\n render: (({ field, value, onChange }) => (\n <DatePicker\n date={value}\n onChange={onChange}\n label={field.label ?? label}\n />\n )) satisfies CustomFieldRender<string>,\n };\n};\n"],"mappings":"AAEA,SAASA,UAAU,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAM3C,OAAO,MAAMC,qBAAqB,GAAGA,CAAC;EACpCC;AACsB,CAAC,GAAG,CAAC,CAAC,KAAK;EACjC,OAAO;IACLC,IAAI,EAAE,QAAiB;IACvBD,KAAK;IACLE,MAAM,EAAGA,CAAC;MAAEC,KAAK;MAAEC,KAAK;MAAEC;IAAS,CAAC,kBAClCP,IAAA,CAACF,UAAU;MACTU,IAAI,EAAEF,KAAM;MACZC,QAAQ,EAAEA,QAAS;MACnBL,KAAK,EAAEG,KAAK,CAACH,KAAK,IAAIA;IAAM,CAC7B;EAEL,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type DatePickerProps = {
|
|
2
|
+
date: string;
|
|
3
|
+
onChange: (date: string) => void;
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function DatePicker({ date, onChange, label }: DatePickerProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=date-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../../../src/puck-editor/internal/fields/date-picker/date-picker.tsx"],"names":[],"mappings":"AAYA,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,eAAe,+BAyCpE"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { format } from 'date-fns';
|
|
5
|
+
import { de } from 'date-fns/locale';
|
|
6
|
+
import { CalendarIcon } from 'lucide-react';
|
|
7
|
+
import { cn } from '../../../../shared/cn';
|
|
8
|
+
import { usePuckDictionary } from '../../i18n';
|
|
9
|
+
import { Calendar } from '../../ui/calendar';
|
|
10
|
+
import { Popover, PopoverContent, PopoverTrigger } from '../../ui/popover';
|
|
11
|
+
import { RequiredFieldLabel } from '../required-field-label';
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
export function DatePicker(t0) {
|
|
14
|
+
const $ = _c(25);
|
|
15
|
+
const {
|
|
16
|
+
date,
|
|
17
|
+
onChange,
|
|
18
|
+
label
|
|
19
|
+
} = t0;
|
|
20
|
+
const t = usePuckDictionary().fields;
|
|
21
|
+
let t1;
|
|
22
|
+
if ($[0] !== onChange) {
|
|
23
|
+
t1 = day => {
|
|
24
|
+
if (day) {
|
|
25
|
+
onChange(day.toUTCString());
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
$[0] = onChange;
|
|
29
|
+
$[1] = t1;
|
|
30
|
+
} else {
|
|
31
|
+
t1 = $[1];
|
|
32
|
+
}
|
|
33
|
+
const handleDateChange = t1;
|
|
34
|
+
let t2;
|
|
35
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
36
|
+
t2 = /*#__PURE__*/_jsx(CalendarIcon, {
|
|
37
|
+
className: "nh:size-4"
|
|
38
|
+
});
|
|
39
|
+
$[2] = t2;
|
|
40
|
+
} else {
|
|
41
|
+
t2 = $[2];
|
|
42
|
+
}
|
|
43
|
+
const t3 = label ?? t.date;
|
|
44
|
+
let t4;
|
|
45
|
+
if ($[3] !== t3) {
|
|
46
|
+
t4 = /*#__PURE__*/_jsx(RequiredFieldLabel, {
|
|
47
|
+
icon: t2,
|
|
48
|
+
label: t3
|
|
49
|
+
});
|
|
50
|
+
$[3] = t3;
|
|
51
|
+
$[4] = t4;
|
|
52
|
+
} else {
|
|
53
|
+
t4 = $[4];
|
|
54
|
+
}
|
|
55
|
+
const t5 = !date && "nh:text-gray-500";
|
|
56
|
+
let t6;
|
|
57
|
+
if ($[5] !== t5) {
|
|
58
|
+
t6 = cn("nh:flex nh:w-full nh:cursor-pointer nh:items-center nh:justify-start nh:gap-2 nh:rounded-sm nh:border nh:border-gray-300 nh:p-3 nh:text-left nh:text-sm nh:font-normal", t5);
|
|
59
|
+
$[5] = t5;
|
|
60
|
+
$[6] = t6;
|
|
61
|
+
} else {
|
|
62
|
+
t6 = $[6];
|
|
63
|
+
}
|
|
64
|
+
let t7;
|
|
65
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
66
|
+
t7 = /*#__PURE__*/_jsx(CalendarIcon, {
|
|
67
|
+
className: "nh:size-5"
|
|
68
|
+
});
|
|
69
|
+
$[7] = t7;
|
|
70
|
+
} else {
|
|
71
|
+
t7 = $[7];
|
|
72
|
+
}
|
|
73
|
+
let t8;
|
|
74
|
+
if ($[8] !== date || $[9] !== t) {
|
|
75
|
+
t8 = date ? format(new Date(date), "PPP", {
|
|
76
|
+
locale: de
|
|
77
|
+
}) : /*#__PURE__*/_jsx("span", {
|
|
78
|
+
children: t.selectDate
|
|
79
|
+
});
|
|
80
|
+
$[8] = date;
|
|
81
|
+
$[9] = t;
|
|
82
|
+
$[10] = t8;
|
|
83
|
+
} else {
|
|
84
|
+
t8 = $[10];
|
|
85
|
+
}
|
|
86
|
+
let t9;
|
|
87
|
+
if ($[11] !== t6 || $[12] !== t8) {
|
|
88
|
+
t9 = /*#__PURE__*/_jsx(PopoverTrigger, {
|
|
89
|
+
asChild: true,
|
|
90
|
+
children: /*#__PURE__*/_jsxs("button", {
|
|
91
|
+
type: "button",
|
|
92
|
+
className: t6,
|
|
93
|
+
children: [t7, t8]
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
|
+
$[11] = t6;
|
|
97
|
+
$[12] = t8;
|
|
98
|
+
$[13] = t9;
|
|
99
|
+
} else {
|
|
100
|
+
t9 = $[13];
|
|
101
|
+
}
|
|
102
|
+
let t10;
|
|
103
|
+
if ($[14] !== date) {
|
|
104
|
+
t10 = new Date(date);
|
|
105
|
+
$[14] = date;
|
|
106
|
+
$[15] = t10;
|
|
107
|
+
} else {
|
|
108
|
+
t10 = $[15];
|
|
109
|
+
}
|
|
110
|
+
let t11;
|
|
111
|
+
if ($[16] !== handleDateChange || $[17] !== t10) {
|
|
112
|
+
t11 = /*#__PURE__*/_jsx(PopoverContent, {
|
|
113
|
+
className: "nh:w-auto nh:p-0",
|
|
114
|
+
children: /*#__PURE__*/_jsx(Calendar, {
|
|
115
|
+
mode: "single",
|
|
116
|
+
selected: t10,
|
|
117
|
+
onSelect: handleDateChange,
|
|
118
|
+
locale: de
|
|
119
|
+
})
|
|
120
|
+
});
|
|
121
|
+
$[16] = handleDateChange;
|
|
122
|
+
$[17] = t10;
|
|
123
|
+
$[18] = t11;
|
|
124
|
+
} else {
|
|
125
|
+
t11 = $[18];
|
|
126
|
+
}
|
|
127
|
+
let t12;
|
|
128
|
+
if ($[19] !== t11 || $[20] !== t9) {
|
|
129
|
+
t12 = /*#__PURE__*/_jsxs(Popover, {
|
|
130
|
+
children: [t9, t11]
|
|
131
|
+
});
|
|
132
|
+
$[19] = t11;
|
|
133
|
+
$[20] = t9;
|
|
134
|
+
$[21] = t12;
|
|
135
|
+
} else {
|
|
136
|
+
t12 = $[21];
|
|
137
|
+
}
|
|
138
|
+
let t13;
|
|
139
|
+
if ($[22] !== t12 || $[23] !== t4) {
|
|
140
|
+
t13 = /*#__PURE__*/_jsxs("div", {
|
|
141
|
+
children: [t4, t12]
|
|
142
|
+
});
|
|
143
|
+
$[22] = t12;
|
|
144
|
+
$[23] = t4;
|
|
145
|
+
$[24] = t13;
|
|
146
|
+
} else {
|
|
147
|
+
t13 = $[24];
|
|
148
|
+
}
|
|
149
|
+
return t13;
|
|
150
|
+
}
|
|
151
|
+
//# sourceMappingURL=date-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker.js","names":["c","_c","format","de","CalendarIcon","cn","usePuckDictionary","Calendar","Popover","PopoverContent","PopoverTrigger","RequiredFieldLabel","jsx","_jsx","jsxs","_jsxs","DatePicker","t0","$","date","onChange","label","t","fields","t1","day","toUTCString","handleDateChange","t2","Symbol","for","className","t3","t4","icon","t5","t6","t7","t8","Date","locale","children","selectDate","t9","asChild","type","t10","t11","mode","selected","t12","t13"],"sources":["../../../../../src/puck-editor/internal/fields/date-picker/date-picker.tsx"],"sourcesContent":["'use client';\n\nimport { format } from 'date-fns';\nimport { de } from 'date-fns/locale';\nimport { CalendarIcon } from 'lucide-react';\n\nimport { cn } from '../../../../shared/cn';\nimport { usePuckDictionary } from '../../i18n';\nimport { Calendar } from '../../ui/calendar';\nimport { Popover, PopoverContent, PopoverTrigger } from '../../ui/popover';\nimport { RequiredFieldLabel } from '../required-field-label';\n\ntype DatePickerProps = {\n date: string;\n onChange: (date: string) => void;\n label?: string;\n};\n\nexport function DatePicker({ date, onChange, label }: DatePickerProps) {\n const t = usePuckDictionary().fields;\n const handleDateChange = (day: Date | undefined) => {\n if (day) {\n onChange(day.toUTCString());\n }\n };\n return (\n <div>\n <RequiredFieldLabel\n icon={<CalendarIcon className=\"nh:size-4\" />}\n label={label ?? t.date}\n />\n <Popover>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className={cn(\n 'nh:flex nh:w-full nh:cursor-pointer nh:items-center nh:justify-start nh:gap-2 nh:rounded-sm nh:border nh:border-gray-300 nh:p-3 nh:text-left nh:text-sm nh:font-normal',\n !date && 'nh:text-gray-500'\n )}\n >\n <CalendarIcon className=\"nh:size-5\" />\n {date ? (\n format(new Date(date), 'PPP', { locale: de })\n ) : (\n <span>{t.selectDate}</span>\n )}\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"nh:w-auto nh:p-0\">\n <Calendar\n mode=\"single\"\n selected={new Date(date)}\n onSelect={handleDateChange}\n locale={de}\n />\n </PopoverContent>\n </Popover>\n </div>\n );\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { createCheckboxGroupField, type CheckboxGroupFieldOptions, } from './checkbox-group/create-checkbox-group-field';
|
|
2
|
+
export { createDatePickerField, type DatePickerFieldOptions, } from './date-picker/create-date-picker-field';
|
|
3
|
+
export { createLinkField } from './link-picker/create-link-field';
|
|
4
|
+
export { createMediaArrayField, type MediaArrayFieldOptions, } from './media-array/create-media-array-field';
|
|
5
|
+
export { createMediaSelectorField, type MediaSelectorFieldOptions, } from './media-selector/create-media-selector-field';
|
|
6
|
+
export { createNodeSelectorField, type NodeSelectorFieldOptions, type NodeSelectorItem, } from './node-selector/create-node-selector-field';
|
|
7
|
+
export { createRichTextField } from './rich-text/create-rich-text-field';
|
|
8
|
+
export { required } from './required';
|
|
9
|
+
export { RequiredFieldLabel } from './required-field-label';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/puck-editor/internal/fields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,KAAK,yBAAyB,GAC/B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,GAC5B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,GAC5B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,wBAAwB,EACxB,KAAK,yBAAyB,GAC/B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,uBAAuB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,GACtB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { createCheckboxGroupField } from './checkbox-group/create-checkbox-group-field';
|
|
2
|
+
export { createDatePickerField } from './date-picker/create-date-picker-field';
|
|
3
|
+
export { createLinkField } from './link-picker/create-link-field';
|
|
4
|
+
export { createMediaArrayField } from './media-array/create-media-array-field';
|
|
5
|
+
export { createMediaSelectorField } from './media-selector/create-media-selector-field';
|
|
6
|
+
export { createNodeSelectorField } from './node-selector/create-node-selector-field';
|
|
7
|
+
export { createRichTextField } from './rich-text/create-rich-text-field';
|
|
8
|
+
export { required } from './required';
|
|
9
|
+
export { RequiredFieldLabel } from './required-field-label';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["createCheckboxGroupField","createDatePickerField","createLinkField","createMediaArrayField","createMediaSelectorField","createNodeSelectorField","createRichTextField","required","RequiredFieldLabel"],"sources":["../../../../src/puck-editor/internal/fields/index.ts"],"sourcesContent":["export {\n createCheckboxGroupField,\n type CheckboxGroupFieldOptions,\n} from './checkbox-group/create-checkbox-group-field';\nexport {\n createDatePickerField,\n type DatePickerFieldOptions,\n} from './date-picker/create-date-picker-field';\nexport { createLinkField } from './link-picker/create-link-field';\nexport {\n createMediaArrayField,\n type MediaArrayFieldOptions,\n} from './media-array/create-media-array-field';\nexport {\n createMediaSelectorField,\n type MediaSelectorFieldOptions,\n} from './media-selector/create-media-selector-field';\nexport {\n createNodeSelectorField,\n type NodeSelectorFieldOptions,\n type NodeSelectorItem,\n} from './node-selector/create-node-selector-field';\nexport { createRichTextField } from './rich-text/create-rich-text-field';\nexport { required } from './required';\nexport { RequiredFieldLabel } from './required-field-label';\n"],"mappings":"AAAA,SACEA,wBAAwB,QAEnB,8CAA8C;AACrD,SACEC,qBAAqB,QAEhB,wCAAwC;AAC/C,SAASC,eAAe,QAAQ,iCAAiC;AACjE,SACEC,qBAAqB,QAEhB,wCAAwC;AAC/C,SACEC,wBAAwB,QAEnB,8CAA8C;AACrD,SACEC,uBAAuB,QAGlB,4CAA4C;AACnD,SAASC,mBAAmB,QAAQ,oCAAoC;AACxE,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,kBAAkB,QAAQ,wBAAwB","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalizes an editor-entered anchor value into a valid element id:
|
|
3
|
+
* trims, strips a leading '#', lowercases, turns whitespace into dashes
|
|
4
|
+
* and drops anything that is not [a-z0-9-_].
|
|
5
|
+
*/
|
|
6
|
+
export declare function normalizeAnchorId(value?: string): string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* True when a stored link href points at an in-page anchor (`#section`). The
|
|
9
|
+
* bare `#` placeholder is treated as empty (no link), so it is excluded.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isAnchorValue(value?: string): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* True when a stored link href carries an in-page fragment anywhere — a
|
|
14
|
+
* same-page anchor (`#start`), a cross-page anchor (`/onboarding#start`) or an
|
|
15
|
+
* external one (`https://example.com#start`). The bare `#` placeholder counts
|
|
16
|
+
* as empty. Used to route fragment-bearing values back into the picker's
|
|
17
|
+
* "Anchor" mode on reload, since those are entered through the anchor field.
|
|
18
|
+
*/
|
|
19
|
+
export declare function hasAnchorFragment(value?: string): boolean;
|
|
20
|
+
/** A section anchor available on the current Puck page. */
|
|
21
|
+
export interface PageAnchor {
|
|
22
|
+
/** Normalized anchor id, without the leading '#'. */
|
|
23
|
+
id: string;
|
|
24
|
+
/** Human-readable hint for the picker dropdown (the section type). */
|
|
25
|
+
label: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Walk a Puck document (`{ root, content, zones }`, slots inline in props) and
|
|
29
|
+
* collect every section Anchor ID set on it, deduped and sorted. Drives the
|
|
30
|
+
* "Anchor" mode of the shared link picker so editors link to same-page sections.
|
|
31
|
+
*/
|
|
32
|
+
export declare function collectPageAnchors(data: unknown): PageAnchor[];
|
|
33
|
+
//# sourceMappingURL=anchor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor.d.ts","sourceRoot":"","sources":["../../../../../src/puck-editor/internal/fields/link-picker/anchor.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAUpE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAIzD;AAED,2DAA2D;AAC3D,MAAM,WAAW,UAAU;IACzB,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAC;CACf;AA0CD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,UAAU,EAAE,CAuB9D"}
|