@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,80 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { useRouter } from 'next/navigation';
|
|
5
|
+
import { FilePlus, Loader2 } from 'lucide-react';
|
|
6
|
+
import { toast } from 'sonner';
|
|
7
|
+
import { cn } from '../../../shared/cn';
|
|
8
|
+
import { getPuckDictionary } from '../i18n';
|
|
9
|
+
import { createPage } from '../plugins/agent-plugin/create-page';
|
|
10
|
+
import { Popover, PopoverContent, PopoverTrigger } from '../ui/popover';
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
export default function NewPage({
|
|
13
|
+
lang,
|
|
14
|
+
defaultTitle,
|
|
15
|
+
bundles
|
|
16
|
+
}) {
|
|
17
|
+
const router = useRouter();
|
|
18
|
+
const [busy, setBusy] = useState(false);
|
|
19
|
+
const [open, setOpen] = useState(false);
|
|
20
|
+
const create = async bundle => {
|
|
21
|
+
setBusy(true);
|
|
22
|
+
try {
|
|
23
|
+
const {
|
|
24
|
+
editUrl
|
|
25
|
+
} = await createPage({
|
|
26
|
+
title: bundle.title ?? defaultTitle,
|
|
27
|
+
type: bundle.type,
|
|
28
|
+
lang
|
|
29
|
+
});
|
|
30
|
+
if (editUrl) {
|
|
31
|
+
router.push(editUrl);
|
|
32
|
+
} else {
|
|
33
|
+
router.refresh();
|
|
34
|
+
}
|
|
35
|
+
} catch (error) {
|
|
36
|
+
console.error('createPage failed', error);
|
|
37
|
+
toast.error(getPuckDictionary(lang).editor.pageCreateFailed);
|
|
38
|
+
} finally {
|
|
39
|
+
setBusy(false);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const trigger = onClick => /*#__PURE__*/_jsxs("button", {
|
|
43
|
+
type: "button",
|
|
44
|
+
onClick: busy ? undefined : onClick,
|
|
45
|
+
className: cn('nh:flex nh:h-8 nh:w-8 nh:items-center nh:justify-center nh:rounded-full nh:text-(--nh-primary-fg) nh:transition-colors nh:hover:bg-(--nh-toolbar-bg)', busy ? 'nh:opacity-50' : 'nh:cursor-pointer'),
|
|
46
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
47
|
+
className: "nh:sr-only",
|
|
48
|
+
children: defaultTitle
|
|
49
|
+
}), busy ? /*#__PURE__*/_jsx(Loader2, {
|
|
50
|
+
className: "nh:h-5 nh:w-5 nh:animate-spin"
|
|
51
|
+
}) : /*#__PURE__*/_jsx(FilePlus, {
|
|
52
|
+
className: "nh:h-5 nh:w-5"
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
55
|
+
if (bundles.length === 1) {
|
|
56
|
+
return trigger(() => create(bundles[0]));
|
|
57
|
+
}
|
|
58
|
+
return /*#__PURE__*/_jsxs(Popover, {
|
|
59
|
+
open: open,
|
|
60
|
+
onOpenChange: setOpen,
|
|
61
|
+
children: [/*#__PURE__*/_jsx(PopoverTrigger, {
|
|
62
|
+
asChild: true,
|
|
63
|
+
children: trigger()
|
|
64
|
+
}), /*#__PURE__*/_jsx(PopoverContent, {
|
|
65
|
+
className: "nh-root nh:w-56 nh:p-1",
|
|
66
|
+
align: "center",
|
|
67
|
+
children: bundles.map(bundle_0 => /*#__PURE__*/_jsx("button", {
|
|
68
|
+
type: "button",
|
|
69
|
+
disabled: busy,
|
|
70
|
+
onClick: () => {
|
|
71
|
+
setOpen(false);
|
|
72
|
+
create(bundle_0);
|
|
73
|
+
},
|
|
74
|
+
className: "nh:block nh:w-full nh:rounded-sm nh:px-3 nh:py-2 nh:text-left nh:text-sm nh:hover:bg-(--nh-muted) nh:disabled:opacity-50",
|
|
75
|
+
children: bundle_0.label
|
|
76
|
+
}, bundle_0.type))
|
|
77
|
+
})]
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=new-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-page.js","names":["useState","useRouter","FilePlus","Loader2","toast","cn","getPuckDictionary","createPage","Popover","PopoverContent","PopoverTrigger","jsx","_jsx","jsxs","_jsxs","NewPage","lang","defaultTitle","bundles","router","busy","setBusy","open","setOpen","create","bundle","editUrl","title","type","push","refresh","error","console","editor","pageCreateFailed","trigger","onClick","undefined","className","children","length","onOpenChange","asChild","align","map","disabled","label"],"sources":["../../../../src/puck-editor/internal/smart-actions/new-page.tsx"],"sourcesContent":["'use client';\n\nimport { useState } from 'react';\nimport { useRouter } from 'next/navigation';\nimport { FilePlus, Loader2 } from 'lucide-react';\nimport { toast } from 'sonner';\n\nimport { cn } from '../../../shared/cn';\nimport { getPuckDictionary } from '../i18n';\nimport { createPage } from '../plugins/agent-plugin/create-page';\nimport { Popover, PopoverContent, PopoverTrigger } from '../ui/popover';\n\ntype NewPageBundle = {\n type: string;\n label: string;\n title?: string;\n};\n\ntype NewPageProps = {\n lang: string;\n defaultTitle: string;\n bundles: NewPageBundle[];\n};\n\nexport default function NewPage({ lang, defaultTitle, bundles }: NewPageProps) {\n const router = useRouter();\n const [busy, setBusy] = useState(false);\n const [open, setOpen] = useState(false);\n\n const create = async (bundle: NewPageBundle) => {\n setBusy(true);\n try {\n const { editUrl } = await createPage({\n title: bundle.title ?? defaultTitle,\n type: bundle.type,\n lang,\n });\n if (editUrl) {\n router.push(editUrl);\n } else {\n router.refresh();\n }\n } catch (error) {\n console.error('createPage failed', error);\n toast.error(getPuckDictionary(lang).editor.pageCreateFailed);\n } finally {\n setBusy(false);\n }\n };\n\n const trigger = (onClick?: () => void) => (\n <button\n type=\"button\"\n onClick={busy ? undefined : onClick}\n className={cn(\n 'nh:flex nh:h-8 nh:w-8 nh:items-center nh:justify-center nh:rounded-full nh:text-(--nh-primary-fg) nh:transition-colors nh:hover:bg-(--nh-toolbar-bg)',\n busy ? 'nh:opacity-50' : 'nh:cursor-pointer'\n )}\n >\n <span className=\"nh:sr-only\">{defaultTitle}</span>\n {busy ? (\n <Loader2 className=\"nh:h-5 nh:w-5 nh:animate-spin\" />\n ) : (\n <FilePlus className=\"nh:h-5 nh:w-5\" />\n )}\n </button>\n );\n\n if (bundles.length === 1) {\n return trigger(() => create(bundles[0]));\n }\n\n return (\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>{trigger()}</PopoverTrigger>\n <PopoverContent className=\"nh-root nh:w-56 nh:p-1\" align=\"center\">\n {bundles.map((bundle) => (\n <button\n key={bundle.type}\n type=\"button\"\n disabled={busy}\n onClick={() => {\n setOpen(false);\n create(bundle);\n }}\n className=\"nh:block nh:w-full nh:rounded-sm nh:px-3 nh:py-2 nh:text-left nh:text-sm nh:hover:bg-(--nh-muted) nh:disabled:opacity-50\"\n >\n {bundle.label}\n </button>\n ))}\n </PopoverContent>\n </Popover>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,QAAQ,QAAQ,OAAO;AAChC,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,QAAQ,EAAEC,OAAO,QAAQ,cAAc;AAChD,SAASC,KAAK,QAAQ,QAAQ;AAE9B,SAASC,EAAE,QAAQ,oBAAoB;AACvC,SAASC,iBAAiB,QAAQ,SAAS;AAC3C,SAASC,UAAU,QAAQ,qCAAqC;AAChE,SAASC,OAAO,EAAEC,cAAc,EAAEC,cAAc,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAcxE,eAAe,SAASC,OAAOA,CAAC;EAAEC,IAAI;EAAEC,YAAY;EAAEC;AAAsB,CAAC,EAAE;EAC7E,MAAMC,MAAM,GAAGlB,SAAS,CAAC,CAAC;EAC1B,MAAM,CAACmB,IAAI,EAAEC,OAAO,CAAC,GAAGrB,QAAQ,CAAC,KAAK,CAAC;EACvC,MAAM,CAACsB,IAAI,EAAEC,OAAO,CAAC,GAAGvB,QAAQ,CAAC,KAAK,CAAC;EAEvC,MAAMwB,MAAM,GAAG,MAAOC,MAAqB,IAAK;IAC9CJ,OAAO,CAAC,I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I,EAAEA,IAAK;IAACmB,YAAY,EAAElB,OAAQ;IAAAgB,QAAA,gBACzC3B,IAAA,CAACF,cAAc;MAACgC,OAAO;MAAAH,QAAA,EAAEJ,OAAO,CAAC;IAAC,CAAiB,CAAC,eACpDvB,IAAA,CAACH,cAAc;MAAC6B,SAAS,EAAC,wBAAwB;MAACK,KAAK,EAAC,QAAQ;MAAAJ,QAAA,EAC9DrB,OAAO,CAAC0B,GAAG,CAAEnB,QAAM,iBAClBb,IAAA;QAEEgB,IAAI,EAAC,QAAQ;QACbiB,QAAQ,EAAEzB,IAAK;QACfgB,OAAO,EAAEA,CAAA,KAAM;UACbb,OAAO,CAAC,KAAK,CAAC;UACdC,MAAM,CAACC,QAAM,CAAC;QAChB,CAAE;QACFa,SAAS,EAAC,0HAA0H;QAAAC,QAAA,EAEnId,QAAM,CAACqB;MAAK,GATRrB,QAAM,CAACG,IAUN,CACT;IAAC,CACY,CAAC;EAAA,CACV,CAAC;AAEd","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-puck-editor.d.ts","sourceRoot":"","sources":["../../../../src/puck-editor/internal/smart-actions/open-puck-editor.tsx"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,cAAc,gCAmBrC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { SquarePen } from 'lucide-react';
|
|
5
|
+
import { cn } from '../../../shared/cn';
|
|
6
|
+
import { usePuckEditor } from '../puck-editor-provider';
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
export default function OpenPuckEditor() {
|
|
9
|
+
const $ = _c(10);
|
|
10
|
+
const {
|
|
11
|
+
openEditor,
|
|
12
|
+
setIsHighlighted
|
|
13
|
+
} = usePuckEditor();
|
|
14
|
+
let t0;
|
|
15
|
+
let t1;
|
|
16
|
+
if ($[0] !== setIsHighlighted) {
|
|
17
|
+
t0 = () => setIsHighlighted(true);
|
|
18
|
+
t1 = () => setIsHighlighted(false);
|
|
19
|
+
$[0] = setIsHighlighted;
|
|
20
|
+
$[1] = t0;
|
|
21
|
+
$[2] = t1;
|
|
22
|
+
} else {
|
|
23
|
+
t0 = $[1];
|
|
24
|
+
t1 = $[2];
|
|
25
|
+
}
|
|
26
|
+
let t2;
|
|
27
|
+
let t3;
|
|
28
|
+
let t4;
|
|
29
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
30
|
+
t2 = cn("nh:flex nh:h-8 nh:w-8 nh:items-center nh:justify-center nh:rounded-full nh:text-(--nh-primary-fg) nh:transition-colors nh:hover:bg-(--nh-toolbar-bg)", "nh:cursor-pointer");
|
|
31
|
+
t3 = /*#__PURE__*/_jsx("span", {
|
|
32
|
+
className: "nh:sr-only",
|
|
33
|
+
children: "Edit"
|
|
34
|
+
});
|
|
35
|
+
t4 = /*#__PURE__*/_jsx(SquarePen, {
|
|
36
|
+
className: "nh:h-5 nh:w-5"
|
|
37
|
+
});
|
|
38
|
+
$[3] = t2;
|
|
39
|
+
$[4] = t3;
|
|
40
|
+
$[5] = t4;
|
|
41
|
+
} else {
|
|
42
|
+
t2 = $[3];
|
|
43
|
+
t3 = $[4];
|
|
44
|
+
t4 = $[5];
|
|
45
|
+
}
|
|
46
|
+
let t5;
|
|
47
|
+
if ($[6] !== openEditor || $[7] !== t0 || $[8] !== t1) {
|
|
48
|
+
t5 = /*#__PURE__*/_jsxs("button", {
|
|
49
|
+
type: "button",
|
|
50
|
+
onClick: openEditor,
|
|
51
|
+
onMouseEnter: t0,
|
|
52
|
+
onMouseLeave: t1,
|
|
53
|
+
className: t2,
|
|
54
|
+
children: [t3, t4]
|
|
55
|
+
});
|
|
56
|
+
$[6] = openEditor;
|
|
57
|
+
$[7] = t0;
|
|
58
|
+
$[8] = t1;
|
|
59
|
+
$[9] = t5;
|
|
60
|
+
} else {
|
|
61
|
+
t5 = $[9];
|
|
62
|
+
}
|
|
63
|
+
return t5;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=open-puck-editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-puck-editor.js","names":["c","_c","SquarePen","cn","usePuckEditor","jsx","_jsx","jsxs","_jsxs","OpenPuckEditor","$","openEditor","setIsHighlighted","t0","t1","t2","t3","t4","Symbol","for","className","children","t5","type","onMouseEnter","onMouseLeave"],"sources":["../../../../src/puck-editor/internal/smart-actions/open-puck-editor.tsx"],"sourcesContent":["'use client';\n\nimport { SquarePen } from 'lucide-react';\n\nimport { cn } from '../../../shared/cn';\nimport { usePuckEditor } from '../puck-editor-provider';\n\nexport default function OpenPuckEditor() {\n const { openEditor, setIsHighlighted } = usePuckEditor();\n\n // Shown for authenticated editors (via <SignedIn>), also inside the iframe.\n return (\n <button\n type=\"button\"\n onClick={openEditor}\n onMouseEnter={() => setIsHighlighted(true)}\n onMouseLeave={() => setIsHighlighted(false)}\n className={cn(\n 'nh:flex nh:h-8 nh:w-8 nh:items-center nh:justify-center nh:rounded-full nh:text-(--nh-primary-fg) nh:transition-colors nh:hover:bg-(--nh-toolbar-bg)',\n 'nh:cursor-pointer'\n )}\n >\n <span className=\"nh:sr-only\">Edit</span>\n <SquarePen className=\"nh:h-5 nh:w-5\" />\n </button>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,SAAS,QAAQ,cAAc;AAExC,SAASC,EAAE,QAAQ,oBAAoB;AACvC,SAASC,aAAa,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExD,eAAe,SAAAC,eAAA;EAAA,MAAAC,CAAA,GAAAT,EAAA;EACb;IAAAU,UAAA;IAAAC;EAAA,IAAyCR,aAAa,CAAC,CAAC;EAAC,IAAAS,EAAA;EAAA,IAAAC,EAAA;EAA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J,CAAA,MAAAY,EAAA;EAAA;IAAAA,EAAA,GAAAZ,CAAA;EAAA;EAAA,OAZTY,EAYS;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DayPicker } from 'react-day-picker';
|
|
3
|
+
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): React.JSX.Element;
|
|
5
|
+
declare namespace Calendar {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export { Calendar };
|
|
9
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../../src/puck-editor/internal/ui/calendar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAS7C,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnE,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,UAAU,EACV,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,aAAa,qBA6Df;kBAlEQ,QAAQ;;;AAqEjB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ChevronLeft, ChevronRight } from 'lucide-react';
|
|
6
|
+
import { DayPicker } from 'react-day-picker';
|
|
7
|
+
import { cn } from '../../../shared/cn';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
const buttonBase = 'nh:inline-flex nh:cursor-pointer nh:items-center nh:justify-center nh:px-3 nh:py-1.5 nh:text-sm nh:font-bold nh:whitespace-nowrap nh:transition-colors nh:disabled:pointer-events-none nh:disabled:opacity-50';
|
|
10
|
+
const navButton = `${buttonBase} nh:rounded-full nh:border nh:border-(--nh-primary) nh:bg-(--nh-bg) nh:text-(--nh-primary) nh:hover:bg-(--nh-muted)`;
|
|
11
|
+
const dayButton = `${buttonBase} nh:rounded-full nh:hover:bg-(--nh-muted) nh:hover:text-(--nh-fg)`;
|
|
12
|
+
function Calendar(t0) {
|
|
13
|
+
const $ = _c(21);
|
|
14
|
+
let className;
|
|
15
|
+
let classNames;
|
|
16
|
+
let props;
|
|
17
|
+
let t1;
|
|
18
|
+
if ($[0] !== t0) {
|
|
19
|
+
({
|
|
20
|
+
className,
|
|
21
|
+
classNames,
|
|
22
|
+
showOutsideDays: t1,
|
|
23
|
+
...props
|
|
24
|
+
} = t0);
|
|
25
|
+
$[0] = t0;
|
|
26
|
+
$[1] = className;
|
|
27
|
+
$[2] = classNames;
|
|
28
|
+
$[3] = props;
|
|
29
|
+
$[4] = t1;
|
|
30
|
+
} else {
|
|
31
|
+
className = $[1];
|
|
32
|
+
classNames = $[2];
|
|
33
|
+
props = $[3];
|
|
34
|
+
t1 = $[4];
|
|
35
|
+
}
|
|
36
|
+
const showOutsideDays = t1 === undefined ? true : t1;
|
|
37
|
+
let t2;
|
|
38
|
+
if ($[5] !== className) {
|
|
39
|
+
t2 = cn("nh:pointer-events-auto nh:p-3", className);
|
|
40
|
+
$[5] = className;
|
|
41
|
+
$[6] = t2;
|
|
42
|
+
} else {
|
|
43
|
+
t2 = $[6];
|
|
44
|
+
}
|
|
45
|
+
let t3;
|
|
46
|
+
let t4;
|
|
47
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48
|
+
t3 = cn(navButton, "nh:z-10 nh:h-7 nh:w-7 nh:bg-transparent nh:p-0 nh:opacity-50 nh:hover:opacity-100");
|
|
49
|
+
t4 = cn(navButton, "nh:z-10 nh:h-7 nh:w-7 nh:bg-transparent nh:p-0 nh:opacity-50 nh:hover:opacity-100");
|
|
50
|
+
$[7] = t3;
|
|
51
|
+
$[8] = t4;
|
|
52
|
+
} else {
|
|
53
|
+
t3 = $[7];
|
|
54
|
+
t4 = $[8];
|
|
55
|
+
}
|
|
56
|
+
let t5;
|
|
57
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
58
|
+
t5 = cn(dayButton, "nh:relative nh:h-9 nh:w-9 nh:rounded-md nh:p-0 nh:text-center nh:text-sm nh:focus-within:relative nh:focus-within:z-20");
|
|
59
|
+
$[9] = t5;
|
|
60
|
+
} else {
|
|
61
|
+
t5 = $[9];
|
|
62
|
+
}
|
|
63
|
+
const t6 = props.mode === "range" ? "nh:bg-(--nh-primary) nh:hover:bg-(--nh-primary) nh:hover:text-(--nh-fg) nh:focus:bg-(--nh-primary) nh:focus:text-(--nh-fg)" : "nh:rounded-md! [&>button]:bg-(--nh-primary) [&>button]:text-(--nh-fg) [&>button]:hover:bg-(--nh-primary) [&>button]:hover:text-(--nh-fg)";
|
|
64
|
+
let t7;
|
|
65
|
+
if ($[10] !== t6) {
|
|
66
|
+
t7 = cn(t6);
|
|
67
|
+
$[10] = t6;
|
|
68
|
+
$[11] = t7;
|
|
69
|
+
} else {
|
|
70
|
+
t7 = $[11];
|
|
71
|
+
}
|
|
72
|
+
let t8;
|
|
73
|
+
if ($[12] !== classNames || $[13] !== t7) {
|
|
74
|
+
t8 = {
|
|
75
|
+
month: "nh:space-y-4",
|
|
76
|
+
months: "nh:flex nh:flex-col nh:sm:flex-row nh:space-y-4 nh:sm:space-y-0 nh:relative nh:gap-2",
|
|
77
|
+
month_caption: "nh:flex nh:justify-center nh:pt-1 nh:relative nh:items-center",
|
|
78
|
+
month_grid: "nh:w-full nh:border-collapse nh:space-y-1",
|
|
79
|
+
caption_label: "nh:text-sm nh:font-medium",
|
|
80
|
+
nav: "nh:flex nh:items-center nh:justify-between nh:absolute nh:inset-x-0",
|
|
81
|
+
button_previous: t3,
|
|
82
|
+
button_next: t4,
|
|
83
|
+
weeks: "nh:w-full nh:border-collapse",
|
|
84
|
+
weekdays: "nh:flex",
|
|
85
|
+
weekday: "nh:text-gray-500 nh:rounded-md nh:w-9 nh:font-normal nh:text-[0.8rem]",
|
|
86
|
+
week: "nh:flex nh:w-full nh:mt-2",
|
|
87
|
+
day: "nh:h-9 nh:w-9 nh:p-0 nh:font-normal nh:aria-selected:opacity-100 nh:rounded-none nh:first:aria-selected:rounded-l-md nh:last:aria-selected:rounded-r-md",
|
|
88
|
+
day_button: t5,
|
|
89
|
+
range_start: "day-range-start nh:bg-gray-50 nh:rounded-l-md [&>button]:bg-(--nh-primary) [&>button]:text-(--nh-fg) [&>button]:hover:bg-(--nh-primary) [&>button]:hover:text-(--nh-fg)",
|
|
90
|
+
range_end: "day-range-end nh:bg-gray-50 nh:rounded-r-md [&>button]:bg-(--nh-primary) [&>button]:text-(--nh-fg) [&>button]:hover:bg-(--nh-primary) [&>button]:hover:text-(--nh-fg)",
|
|
91
|
+
range_middle: "nh:aria-selected:bg-gray-100 nh:aria-selected:text-(--nh-fg)",
|
|
92
|
+
selected: t7,
|
|
93
|
+
today: "nh:bg-gray-100 nh:text-(--nh-fg) nh:rounded-md!",
|
|
94
|
+
outside: "day-outside nh:text-gray-500 nh:opacity-50 nh:aria-selected:bg-gray-50/50! nh:aria-selected:text-gray-500! nh:aria-selected:opacity-30!",
|
|
95
|
+
disabled: "nh:text-gray-500 nh:opacity-50",
|
|
96
|
+
hidden: "nh:invisible",
|
|
97
|
+
...classNames
|
|
98
|
+
};
|
|
99
|
+
$[12] = classNames;
|
|
100
|
+
$[13] = t7;
|
|
101
|
+
$[14] = t8;
|
|
102
|
+
} else {
|
|
103
|
+
t8 = $[14];
|
|
104
|
+
}
|
|
105
|
+
let t9;
|
|
106
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
107
|
+
t9 = {
|
|
108
|
+
Chevron: _temp
|
|
109
|
+
};
|
|
110
|
+
$[15] = t9;
|
|
111
|
+
} else {
|
|
112
|
+
t9 = $[15];
|
|
113
|
+
}
|
|
114
|
+
let t10;
|
|
115
|
+
if ($[16] !== props || $[17] !== showOutsideDays || $[18] !== t2 || $[19] !== t8) {
|
|
116
|
+
t10 = /*#__PURE__*/_jsx(DayPicker, {
|
|
117
|
+
showOutsideDays: showOutsideDays,
|
|
118
|
+
className: t2,
|
|
119
|
+
classNames: t8,
|
|
120
|
+
components: t9,
|
|
121
|
+
...props
|
|
122
|
+
});
|
|
123
|
+
$[16] = props;
|
|
124
|
+
$[17] = showOutsideDays;
|
|
125
|
+
$[18] = t2;
|
|
126
|
+
$[19] = t8;
|
|
127
|
+
$[20] = t10;
|
|
128
|
+
} else {
|
|
129
|
+
t10 = $[20];
|
|
130
|
+
}
|
|
131
|
+
return t10;
|
|
132
|
+
}
|
|
133
|
+
function _temp(t0) {
|
|
134
|
+
const {
|
|
135
|
+
...props_0
|
|
136
|
+
} = t0;
|
|
137
|
+
return props_0.orientation === "left" ? /*#__PURE__*/_jsx(ChevronLeft, {
|
|
138
|
+
...props_0,
|
|
139
|
+
className: "nh:h-4 nh:w-4"
|
|
140
|
+
}) : /*#__PURE__*/_jsx(ChevronRight, {
|
|
141
|
+
...props_0,
|
|
142
|
+
className: "nh:h-4 nh:w-4"
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
Calendar.displayName = 'Calendar';
|
|
146
|
+
export { Calendar };
|
|
147
|
+
//# sourceMappingURL=calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.js","names":["c","_c","React","ChevronLeft","ChevronRight","DayPicker","cn","jsx","_jsx","buttonBase","navButton","dayButton","Calendar","t0","$","className","classNames","props","t1","showOutsideDays","undefined","t2","t3","t4","Symbol","for","t5","t6","mode","t7","t8","month","months","month_caption","month_grid","caption_label","nav","button_previous","button_next","weeks","weekdays","weekday","week","day","day_button","range_start","range_end","range_middle","selected","today","outside","disabled","hidden","t9","Chevron","_temp","t10","components","props_0","orientation","displayName"],"sources":["../../../../src/puck-editor/internal/ui/calendar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ChevronLeft, ChevronRight } from 'lucide-react';\nimport { DayPicker } from 'react-day-picker';\n\nimport { cn } from '../../../shared/cn';\n\nconst buttonBase =\n 'nh:inline-flex nh:cursor-pointer nh:items-center nh:justify-center nh:px-3 nh:py-1.5 nh:text-sm nh:font-bold nh:whitespace-nowrap nh:transition-colors nh:disabled:pointer-events-none nh:disabled:opacity-50';\nconst navButton = `${buttonBase} nh:rounded-full nh:border nh:border-(--nh-primary) nh:bg-(--nh-bg) nh:text-(--nh-primary) nh:hover:bg-(--nh-muted)`;\nconst dayButton = `${buttonBase} nh:rounded-full nh:hover:bg-(--nh-muted) nh:hover:text-(--nh-fg)`;\n\nexport type CalendarProps = React.ComponentProps<typeof DayPicker>;\n\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n ...props\n}: CalendarProps) {\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn('nh:pointer-events-auto nh:p-3', className)}\n classNames={{\n month: 'nh:space-y-4',\n months:\n 'nh:flex nh:flex-col nh:sm:flex-row nh:space-y-4 nh:sm:space-y-0 nh:relative nh:gap-2',\n month_caption:\n 'nh:flex nh:justify-center nh:pt-1 nh:relative nh:items-center',\n month_grid: 'nh:w-full nh:border-collapse nh:space-y-1',\n caption_label: 'nh:text-sm nh:font-medium',\n nav: 'nh:flex nh:items-center nh:justify-between nh:absolute nh:inset-x-0',\n button_previous: cn(\n navButton,\n 'nh:z-10 nh:h-7 nh:w-7 nh:bg-transparent nh:p-0 nh:opacity-50 nh:hover:opacity-100'\n ),\n button_next: cn(\n navButton,\n 'nh:z-10 nh:h-7 nh:w-7 nh:bg-transparent nh:p-0 nh:opacity-50 nh:hover:opacity-100'\n ),\n weeks: 'nh:w-full nh:border-collapse',\n weekdays: 'nh:flex',\n weekday:\n 'nh:text-gray-500 nh:rounded-md nh:w-9 nh:font-normal nh:text-[0.8rem]',\n week: 'nh:flex nh:w-full nh:mt-2',\n day: 'nh:h-9 nh:w-9 nh:p-0 nh:font-normal nh:aria-selected:opacity-100 nh:rounded-none nh:first:aria-selected:rounded-l-md nh:last:aria-selected:rounded-r-md',\n day_button: cn(\n dayButton,\n 'nh:relative nh:h-9 nh:w-9 nh:rounded-md nh:p-0 nh:text-center nh:text-sm nh:focus-within:relative nh:focus-within:z-20'\n ),\n range_start:\n 'day-range-start nh:bg-gray-50 nh:rounded-l-md [&>button]:bg-(--nh-primary) [&>button]:text-(--nh-fg) [&>button]:hover:bg-(--nh-primary) [&>button]:hover:text-(--nh-fg)',\n range_end:\n 'day-range-end nh:bg-gray-50 nh:rounded-r-md [&>button]:bg-(--nh-primary) [&>button]:text-(--nh-fg) [&>button]:hover:bg-(--nh-primary) [&>button]:hover:text-(--nh-fg)',\n range_middle:\n 'nh:aria-selected:bg-gray-100 nh:aria-selected:text-(--nh-fg)',\n selected: cn(\n props.mode === 'range'\n ? 'nh:bg-(--nh-primary) nh:hover:bg-(--nh-primary) nh:hover:text-(--nh-fg) nh:focus:bg-(--nh-primary) nh:focus:text-(--nh-fg)'\n : 'nh:rounded-md! [&>button]:bg-(--nh-primary) [&>button]:text-(--nh-fg) [&>button]:hover:bg-(--nh-primary) [&>button]:hover:text-(--nh-fg)'\n ),\n today: 'nh:bg-gray-100 nh:text-(--nh-fg) nh:rounded-md!',\n outside:\n 'day-outside nh:text-gray-500 nh:opacity-50 nh:aria-selected:bg-gray-50/50! nh:aria-selected:text-gray-500! nh:aria-selected:opacity-30!',\n disabled: 'nh:text-gray-500 nh:opacity-50',\n hidden: 'nh:invisible',\n ...classNames,\n }}\n components={{\n Chevron: ({ ...props }) =>\n props.orientation === 'left' ? (\n <ChevronLeft {...props} className=\"nh:h-4 nh:w-4\" />\n ) : (\n <ChevronRight {...props} className=\"nh:h-4 nh:w-4\" />\n ),\n }}\n {...props}\n />\n );\n}\nCalendar.displayName = 'Cal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K;IAAYF,SAAe,EAAf;EAAe,CAGnD,CAAC,gBAJDP,IAAA,CAGGJ,YAAY;IAAA,GAAKa,OAAK;IAAYF,SAAe,EAAf;EAAe,CACpD,CAAC;AAAA;AAMXH,QAAQ,CAACgD,WAAW,GAAG,UAAU;AAEjC,SAAShD,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ComponentListAccordionProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
expanded: boolean;
|
|
5
|
+
onToggle: () => void;
|
|
6
|
+
expandLabel: string;
|
|
7
|
+
collapseLabel: string;
|
|
8
|
+
contentId?: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare function ComponentListAccordion({ title, expanded, onToggle, expandLabel, collapseLabel, contentId, children, }: ComponentListAccordionProps): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=component-list-accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-list-accordion.d.ts","sourceRoot":"","sources":["../../../../src/puck-editor/internal/ui/component-list-accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,2BAA2B,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,QAAQ,GACT,EAAE,2BAA2B,+BAuB7B"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
export function ComponentListAccordion(t0) {
|
|
7
|
+
const $ = _c(18);
|
|
8
|
+
const {
|
|
9
|
+
title,
|
|
10
|
+
expanded,
|
|
11
|
+
onToggle,
|
|
12
|
+
expandLabel,
|
|
13
|
+
collapseLabel,
|
|
14
|
+
contentId,
|
|
15
|
+
children
|
|
16
|
+
} = t0;
|
|
17
|
+
const t1 = `${expanded ? collapseLabel : expandLabel} ${title}`;
|
|
18
|
+
let t2;
|
|
19
|
+
if ($[0] !== title) {
|
|
20
|
+
t2 = /*#__PURE__*/_jsx("span", {
|
|
21
|
+
children: title
|
|
22
|
+
});
|
|
23
|
+
$[0] = title;
|
|
24
|
+
$[1] = t2;
|
|
25
|
+
} else {
|
|
26
|
+
t2 = $[1];
|
|
27
|
+
}
|
|
28
|
+
let t3;
|
|
29
|
+
if ($[2] !== expanded) {
|
|
30
|
+
t3 = /*#__PURE__*/_jsx("span", {
|
|
31
|
+
className: "nh:ml-auto nh:flex nh:size-3 nh:shrink-0 nh:items-center nh:justify-center",
|
|
32
|
+
children: expanded ? /*#__PURE__*/_jsx(ChevronUpIcon, {
|
|
33
|
+
size: 12,
|
|
34
|
+
strokeWidth: 2.5
|
|
35
|
+
}) : /*#__PURE__*/_jsx(ChevronDownIcon, {
|
|
36
|
+
size: 12,
|
|
37
|
+
strokeWidth: 2.5
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
$[2] = expanded;
|
|
41
|
+
$[3] = t3;
|
|
42
|
+
} else {
|
|
43
|
+
t3 = $[3];
|
|
44
|
+
}
|
|
45
|
+
let t4;
|
|
46
|
+
if ($[4] !== contentId || $[5] !== expanded || $[6] !== onToggle || $[7] !== t1 || $[8] !== t2 || $[9] !== t3) {
|
|
47
|
+
t4 = /*#__PURE__*/_jsxs("button", {
|
|
48
|
+
type: "button",
|
|
49
|
+
className: "nh:mb-1 nh:flex nh:min-h-0 nh:w-full nh:cursor-pointer nh:items-center nh:gap-1 nh:rounded-md nh:border-0 nh:bg-transparent nh:px-2 nh:py-1.5 nh:text-left nh:text-xs nh:font-medium nh:text-gray-500 nh:uppercase nh:transition-colors nh:hover:bg-gray-100 nh:hover:text-(--nh-primary) nh:focus-visible:outline-2 nh:focus-visible:outline-offset-2 nh:focus-visible:outline-(--nh-primary)",
|
|
50
|
+
"aria-expanded": expanded,
|
|
51
|
+
"aria-controls": contentId,
|
|
52
|
+
onClick: onToggle,
|
|
53
|
+
title: t1,
|
|
54
|
+
children: [t2, t3]
|
|
55
|
+
});
|
|
56
|
+
$[4] = contentId;
|
|
57
|
+
$[5] = expanded;
|
|
58
|
+
$[6] = onToggle;
|
|
59
|
+
$[7] = t1;
|
|
60
|
+
$[8] = t2;
|
|
61
|
+
$[9] = t3;
|
|
62
|
+
$[10] = t4;
|
|
63
|
+
} else {
|
|
64
|
+
t4 = $[10];
|
|
65
|
+
}
|
|
66
|
+
let t5;
|
|
67
|
+
if ($[11] !== children || $[12] !== contentId || $[13] !== expanded) {
|
|
68
|
+
t5 = expanded && /*#__PURE__*/_jsx("div", {
|
|
69
|
+
id: contentId,
|
|
70
|
+
children: children
|
|
71
|
+
});
|
|
72
|
+
$[11] = children;
|
|
73
|
+
$[12] = contentId;
|
|
74
|
+
$[13] = expanded;
|
|
75
|
+
$[14] = t5;
|
|
76
|
+
} else {
|
|
77
|
+
t5 = $[14];
|
|
78
|
+
}
|
|
79
|
+
let t6;
|
|
80
|
+
if ($[15] !== t4 || $[16] !== t5) {
|
|
81
|
+
t6 = /*#__PURE__*/_jsxs("div", {
|
|
82
|
+
className: "nh:max-w-full",
|
|
83
|
+
children: [t4, t5]
|
|
84
|
+
});
|
|
85
|
+
$[15] = t4;
|
|
86
|
+
$[16] = t5;
|
|
87
|
+
$[17] = t6;
|
|
88
|
+
} else {
|
|
89
|
+
t6 = $[17];
|
|
90
|
+
}
|
|
91
|
+
return t6;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=component-list-accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-list-accordion.js","names":["c","_c","ChevronDownIcon","ChevronUpIcon","jsx","_jsx","jsxs","_jsxs","ComponentListAccordion","t0","$","title","expanded","onToggle","expandLabel","collapseLabel","contentId","children","t1","t2","t3","className","size","strokeWidth","t4","type","t5","t6"],"sources":["../../../../src/puck-editor/internal/ui/component-list-accordion.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode } from 'react';\nimport { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';\n\ntype ComponentListAccordionProps = {\n title: string;\n expanded: boolean;\n onToggle: () => void;\n expandLabel: string;\n collapseLabel: string;\n contentId?: string;\n children: ReactNode;\n};\n\nexport function ComponentListAccordion({\n title,\n expanded,\n onToggle,\n expandLabel,\n collapseLabel,\n contentId,\n children,\n}: ComponentListAccordionProps) {\n return (\n <div className=\"nh:max-w-full\">\n <button\n type=\"button\"\n className=\"nh:mb-1 nh:flex nh:min-h-0 nh:w-full nh:cursor-pointer nh:items-center nh:gap-1 nh:rounded-md nh:border-0 nh:bg-transparent nh:px-2 nh:py-1.5 nh:text-left nh:text-xs nh:font-medium nh:text-gray-500 nh:uppercase nh:transition-colors nh:hover:bg-gray-100 nh:hover:text-(--nh-primary) nh:focus-visible:outline-2 nh:focus-visible:outline-offset-2 nh:focus-visible:outline-(--nh-primary)\"\n aria-expanded={expanded}\n aria-controls={contentId}\n onClick={onToggle}\n title={`${expanded ? collapseLabel : expandLabel} ${title}`}\n >\n <span>{title}</span>\n <span className=\"nh:ml-auto nh:flex nh:size-3 nh:shrink-0 nh:items-center nh:justify-center\">\n {expanded ? (\n <ChevronUpIcon size={12} strokeWidth={2.5} />\n ) : (\n <ChevronDownIcon size={12} strokeWidth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B,CAAA;EAAA;EAAA,OAnBNiB,EAmBM;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
4
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
6
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DialogHeader: {
|
|
10
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
declare const DialogFooter: {
|
|
14
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
19
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
20
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../../src/puck-editor/internal/ui/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAEpC,QAAA,MAAM,aAAa,8GAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,6CAAyB,CAAC;AAE5C,QAAA,MAAM,WAAW,4GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,8JAYjB,CAAC;AAGH,QAAA,MAAM,aAAa,8JAqBjB,CAAC;AAGH,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,WAAW,oKAYf,CAAC;AAGH,QAAA,MAAM,iBAAiB,8KASrB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAC"}
|