@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,126 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { usePathname } from 'next/navigation';
|
|
6
|
+
import { RefreshCcw } from 'lucide-react';
|
|
7
|
+
import { cn } from '../../shared/cn';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
export default function RefreshPage() {
|
|
10
|
+
const $ = _c(17);
|
|
11
|
+
const pathname = usePathname();
|
|
12
|
+
const [isRefreshing, setIsRefreshing] = useState(false);
|
|
13
|
+
let t0;
|
|
14
|
+
if ($[0] !== isRefreshing || $[1] !== pathname) {
|
|
15
|
+
t0 = async function refreshPage() {
|
|
16
|
+
if (isRefreshing) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
let success = false;
|
|
20
|
+
let error = null;
|
|
21
|
+
setIsRefreshing(true);
|
|
22
|
+
;
|
|
23
|
+
try {
|
|
24
|
+
const response = await fetch("/api/nodehive/revalidate", {
|
|
25
|
+
method: "POST",
|
|
26
|
+
headers: {
|
|
27
|
+
"Content-Type": "application/json"
|
|
28
|
+
},
|
|
29
|
+
body: JSON.stringify({
|
|
30
|
+
path: pathname
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
if (!response.ok) {
|
|
34
|
+
error = "Error revalidating the page";
|
|
35
|
+
setIsRefreshing(false);
|
|
36
|
+
} else {
|
|
37
|
+
success = true;
|
|
38
|
+
location.reload();
|
|
39
|
+
}
|
|
40
|
+
} catch (t1) {
|
|
41
|
+
const err = t1;
|
|
42
|
+
console.error(err);
|
|
43
|
+
error = err instanceof Error ? err.message : "Unknown error occurred";
|
|
44
|
+
setIsRefreshing(false);
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
success,
|
|
48
|
+
error
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
$[0] = isRefreshing;
|
|
52
|
+
$[1] = pathname;
|
|
53
|
+
$[2] = t0;
|
|
54
|
+
} else {
|
|
55
|
+
t0 = $[2];
|
|
56
|
+
}
|
|
57
|
+
const refreshPage = t0;
|
|
58
|
+
let t1;
|
|
59
|
+
if ($[3] !== refreshPage) {
|
|
60
|
+
t1 = async () => await refreshPage();
|
|
61
|
+
$[3] = refreshPage;
|
|
62
|
+
$[4] = t1;
|
|
63
|
+
} else {
|
|
64
|
+
t1 = $[4];
|
|
65
|
+
}
|
|
66
|
+
const t2 = !isRefreshing;
|
|
67
|
+
let t3;
|
|
68
|
+
if ($[5] !== isRefreshing || $[6] !== t2) {
|
|
69
|
+
t3 = 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)", {
|
|
70
|
+
"nh:cursor-pointer": t2,
|
|
71
|
+
"nh:cursor-wait": isRefreshing
|
|
72
|
+
});
|
|
73
|
+
$[5] = isRefreshing;
|
|
74
|
+
$[6] = t2;
|
|
75
|
+
$[7] = t3;
|
|
76
|
+
} else {
|
|
77
|
+
t3 = $[7];
|
|
78
|
+
}
|
|
79
|
+
let t4;
|
|
80
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
81
|
+
t4 = /*#__PURE__*/_jsx("span", {
|
|
82
|
+
className: "nh:sr-only",
|
|
83
|
+
children: "Refresh Page"
|
|
84
|
+
});
|
|
85
|
+
$[8] = t4;
|
|
86
|
+
} else {
|
|
87
|
+
t4 = $[8];
|
|
88
|
+
}
|
|
89
|
+
let t5;
|
|
90
|
+
if ($[9] !== isRefreshing) {
|
|
91
|
+
t5 = cn("nh:h-5 nh:w-5", {
|
|
92
|
+
"nh:[animation:spin_1s_linear_infinite_reverse]": isRefreshing
|
|
93
|
+
});
|
|
94
|
+
$[9] = isRefreshing;
|
|
95
|
+
$[10] = t5;
|
|
96
|
+
} else {
|
|
97
|
+
t5 = $[10];
|
|
98
|
+
}
|
|
99
|
+
let t6;
|
|
100
|
+
if ($[11] !== t5) {
|
|
101
|
+
t6 = /*#__PURE__*/_jsx(RefreshCcw, {
|
|
102
|
+
className: t5
|
|
103
|
+
});
|
|
104
|
+
$[11] = t5;
|
|
105
|
+
$[12] = t6;
|
|
106
|
+
} else {
|
|
107
|
+
t6 = $[12];
|
|
108
|
+
}
|
|
109
|
+
let t7;
|
|
110
|
+
if ($[13] !== t1 || $[14] !== t3 || $[15] !== t6) {
|
|
111
|
+
t7 = /*#__PURE__*/_jsxs("button", {
|
|
112
|
+
type: "button",
|
|
113
|
+
onClick: t1,
|
|
114
|
+
className: t3,
|
|
115
|
+
children: [t4, t6]
|
|
116
|
+
});
|
|
117
|
+
$[13] = t1;
|
|
118
|
+
$[14] = t3;
|
|
119
|
+
$[15] = t6;
|
|
120
|
+
$[16] = t7;
|
|
121
|
+
} else {
|
|
122
|
+
t7 = $[16];
|
|
123
|
+
}
|
|
124
|
+
return t7;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=refresh-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-page.js","names":["c","_c","useState","usePathname","RefreshCcw","cn","jsx","_jsx","jsxs","_jsxs","RefreshPage","$","pathname","isRefreshing","setIsRefreshing","t0","refreshPage","success","error","response","fetch","method","headers","body","JSON","stringify","path","ok","location","reload","t1","err","console","Error","message","t2","t3","t4","Symbol","for","className","children","t5","t6","t7","type","onClick"],"sources":["../../../src/smart-actions/internal/refresh-page.tsx"],"sourcesContent":["'use client';\n\nimport { useState } from 'react';\nimport { usePathname } from 'next/navigation';\nimport { RefreshCcw } from 'lucide-react';\n\nimport { cn } from '../../shared/cn';\n\nexport default function RefreshPage() {\n const pathname = usePathname();\n const [isRefreshing, setIsRefreshing] = useState(false);\n\n async function refreshPage() {\n if (isRefreshing) return;\n\n let success = false;\n let error = null;\n\n setIsRefreshing(true);\n\n try {\n const response = await fetch('/api/nodehive/revalidate', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ path: pathname }),\n });\n\n if (!response.ok) {\n error = 'Error revalidating the page';\n setIsRefreshing(false);\n } else {\n success = true;\n location.reload();\n }\n } catch (err) {\n console.error(err);\n error = err instanceof Error ? err.message : 'Unknown error occurred';\n setIsRefreshing(false);\n }\n\n return { success, error };\n }\n\n return (\n <button\n type=\"button\"\n onClick={async () => await refreshPage()}\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': !isRefreshing, 'nh:cursor-wait': isRefreshing }\n )}\n >\n <span className=\"nh:sr-only\">Refresh Page</span>\n <RefreshCcw\n className={cn('nh:h-5 nh:w-5', {\n 'nh:[animation:spin_1s_linear_infinite_reverse]': isRefreshing,\n })}\n />\n </button>\n );\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { NodeHiveClient } from 'nodehive-js';
|
|
2
|
+
import type { SmartActionsDictionaryOverrides, SmartActionsLabels } from './i18n';
|
|
3
|
+
import type { SmartActionsToolbarAction } from './toolbar/types';
|
|
4
|
+
interface SmartActionsButtonProps {
|
|
5
|
+
lang: string;
|
|
6
|
+
nodeId?: number;
|
|
7
|
+
/** Drupal base URL for the backend edit deep link. */
|
|
8
|
+
drupalBaseUrl?: string;
|
|
9
|
+
/** Toolbar launcher icon; defaults to /metadata/nodehive-icon.svg from the project public folder. */
|
|
10
|
+
launcherIconSrc?: string;
|
|
11
|
+
/** Project client factory, e.g. createUserClient from the auth binding. */
|
|
12
|
+
createUserClient: () => NodeHiveClient;
|
|
13
|
+
/** Project logout Server Action (Server Action so Next's CSRF applies). */
|
|
14
|
+
logout: () => Promise<void>;
|
|
15
|
+
/** Per-section label overrides merged over the resolved dictionary. */
|
|
16
|
+
dictionaryOverrides?: SmartActionsDictionaryOverrides;
|
|
17
|
+
extraActions?: (context: {
|
|
18
|
+
lang: string;
|
|
19
|
+
labels: SmartActionsLabels;
|
|
20
|
+
}) => SmartActionsToolbarAction[];
|
|
21
|
+
}
|
|
22
|
+
export default function SmartActionsButton({ lang, nodeId, drupalBaseUrl, launcherIconSrc, createUserClient, logout, dictionaryOverrides, extraActions, }: SmartActionsButtonProps): Promise<import("react").JSX.Element>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=smart-actions-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-actions-button.d.ts","sourceRoot":"","sources":["../../../src/smart-actions/internal/smart-actions-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlD,OAAO,KAAK,EACV,+BAA+B,EAC/B,kBAAkB,EACnB,MAAM,QAAQ,CAAC;AAEhB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAEjE,UAAU,uBAAuB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qGAAqG;IACrG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2EAA2E;IAC3E,gBAAgB,EAAE,MAAM,cAAc,CAAC;IACvC,2EAA2E;IAC3E,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,uEAAuE;IACvE,mBAAmB,CAAC,EAAE,+BAA+B,CAAC;IACtD,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,kBAAkB,CAAC;KAC5B,KAAK,yBAAyB,EAAE,CAAC;CACnC;AAED,wBAA8B,kBAAkB,CAAC,EAC/C,IAAI,EACJ,MAAM,EACN,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,MAAM,EACN,mBAAmB,EACnB,YAAY,GACb,EAAE,uBAAuB,wCAiBzB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { SignedIn } from '../../auth/server';
|
|
2
|
+
import { getSmartActionsContext } from './get-smart-actions-context';
|
|
3
|
+
import SmartActionsToolbarClient from './smart-actions-toolbar-client';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export default async function SmartActionsButton({
|
|
6
|
+
lang,
|
|
7
|
+
nodeId,
|
|
8
|
+
drupalBaseUrl,
|
|
9
|
+
launcherIconSrc,
|
|
10
|
+
createUserClient,
|
|
11
|
+
logout,
|
|
12
|
+
dictionaryOverrides,
|
|
13
|
+
extraActions
|
|
14
|
+
}) {
|
|
15
|
+
const {
|
|
16
|
+
labels,
|
|
17
|
+
userImageUrl,
|
|
18
|
+
backendEditUrl
|
|
19
|
+
} = await getSmartActionsContext({
|
|
20
|
+
createUserClient,
|
|
21
|
+
lang,
|
|
22
|
+
nodeId,
|
|
23
|
+
drupalBaseUrl,
|
|
24
|
+
dictionaryOverrides
|
|
25
|
+
});
|
|
26
|
+
return /*#__PURE__*/_jsx(SignedIn, {
|
|
27
|
+
children: /*#__PURE__*/_jsx(SmartActionsToolbarClient, {
|
|
28
|
+
lang: lang,
|
|
29
|
+
launcherIconSrc: launcherIconSrc,
|
|
30
|
+
backendEditUrl: backendEditUrl,
|
|
31
|
+
userImageUrl: userImageUrl,
|
|
32
|
+
labels: labels,
|
|
33
|
+
logout: logout,
|
|
34
|
+
extraActions: extraActions?.({
|
|
35
|
+
lang,
|
|
36
|
+
labels
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=smart-actions-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-actions-button.js","names":["SignedIn","getSmartActionsContext","SmartActionsToolbarClient","jsx","_jsx","SmartActionsButton","lang","nodeId","drupalBaseUrl","launcherIconSrc","createUserClient","logout","dictionaryOverrides","extraActions","labels","userImageUrl","backendEditUrl","children"],"sources":["../../../src/smart-actions/internal/smart-actions-button.tsx"],"sourcesContent":["import type { NodeHiveClient } from 'nodehive-js';\n\nimport { SignedIn } from '../../auth/server';\nimport { getSmartActionsContext } from './get-smart-actions-context';\nimport type {\n SmartActionsDictionaryOverrides,\n SmartActionsLabels,\n} from './i18n';\nimport SmartActionsToolbarClient from './smart-actions-toolbar-client';\nimport type { SmartActionsToolbarAction } from './toolbar/types';\n\ninterface SmartActionsButtonProps {\n lang: string;\n nodeId?: number;\n /** Drupal base URL for the backend edit deep link. */\n drupalBaseUrl?: string;\n /** Toolbar launcher icon; defaults to /metadata/nodehive-icon.svg from the project public folder. */\n launcherIconSrc?: string;\n /** Project client factory, e.g. createUserClient from the auth binding. */\n createUserClient: () => NodeHiveClient;\n /** Project logout Server Action (Server Action so Next's CSRF applies). */\n logout: () => Promise<void>;\n /** Per-section label overrides merged over the resolved dictionary. */\n dictionaryOverrides?: SmartActionsDictionaryOverrides;\n extraActions?: (context: {\n lang: string;\n labels: SmartActionsLabels;\n }) => SmartActionsToolbarAction[];\n}\n\nexport default async function SmartActionsButton({\n lang,\n nodeId,\n drupalBaseUrl,\n launcherIconSrc,\n createUserClient,\n logout,\n dictionaryOverrides,\n extraActions,\n}: SmartActionsButtonProps) {\n const { labels, userImageUrl, backendEditUrl } = await getSmartActionsContext(\n { createUserClient, lang, nodeId, drupalBaseUrl, dictionaryOverrides }\n );\n return (\n <SignedIn>\n <SmartActionsToolbarClient\n lang={lang}\n launcherIconSrc={launcherIconSrc}\n backendEditUrl={backendEditUrl}\n userImageUrl={userImageUrl}\n labels={labels}\n logout={logout}\n extraActions={extraActions?.({ lang, labels })}\n />\n </SignedIn>\n );\n}\n"],"mappings":"AAEA,SAASA,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,sBAAsB,QAAQ,6BAA6B;AAKpE,OAAOC,yBAAyB,MAAM,gCAAgC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAsBvE,eAAe,eAAeC,kBAAkBA,CAAC;EAC/CC,IAAI;EACJC,MAAM;EACNC,aAAa;EACbC,eAAe;EACfC,gBAAgB;EAChBC,MAAM;EACNC,mBAAmB;EACnBC;AACuB,CAAC,EAAE;EAC1B,MAAM;IAAEC,MAAM;IAAEC,YAAY;IAAEC;EAAe,CAAC,GAAG,MAAMf,sBAAsB,CAC3E;IAAES,gBAAgB;IAAEJ,IAAI;IAAEC,MAAM;IAAEC,aAAa;IAAEI;EAAoB,CACvE,CAAC;EACD,oBACER,IAAA,CAACJ,QAAQ;IAAAiB,QAAA,eACPb,IAAA,CAACF,yBAAyB;MACxBI,IAAI,EAAEA,IAAK;MACXG,eAAe,EAAEA,eAAgB;MACjCO,cAAc,EAAEA,cAAe;MAC/BD,YAAY,EAAEA,YAAa;MAC3BD,MAAM,EAAEA,MAAO;MACfH,MAAM,EAAEA,MAAO;MACfE,YAAY,EAAEA,YAAY,GAAG;QAAEP,IAAI;QAAEQ;MAAO,CAAC;IAAE,CAChD;EAAC,CACM,CAAC;AAEf","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SmartActionsLabels } from './i18n';
|
|
2
|
+
import type { SmartActionsToolbarAction } from './toolbar/types';
|
|
3
|
+
type SmartActionsConfigContext = {
|
|
4
|
+
lang: string;
|
|
5
|
+
backendEditUrl: string | null;
|
|
6
|
+
userImageUrl?: string | null;
|
|
7
|
+
labels: SmartActionsLabels;
|
|
8
|
+
logout: () => Promise<void>;
|
|
9
|
+
extraActions?: SmartActionsToolbarAction[];
|
|
10
|
+
};
|
|
11
|
+
export declare function getSmartActionsConfig({ lang, backendEditUrl, userImageUrl, labels, logout, extraActions, }: SmartActionsConfigContext): SmartActionsToolbarAction[];
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=smart-actions-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-actions-config.d.ts","sourceRoot":"","sources":["../../../src/smart-actions/internal/smart-actions-config.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAGjE,KAAK,yBAAyB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,YAAY,CAAC,EAAE,yBAAyB,EAAE,CAAC;CAC5C,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,cAAc,EACd,YAAY,EACZ,MAAM,EACN,MAAM,EACN,YAAiB,GAClB,EAAE,yBAAyB,GAAG,yBAAyB,EAAE,CA+DzD"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { ExternalLink } from 'lucide-react';
|
|
5
|
+
import { cn } from '../../shared/cn';
|
|
6
|
+
import LogoutForm from './logout-form';
|
|
7
|
+
import RefreshPage from './refresh-page';
|
|
8
|
+
import UserProfile from './user-profile';
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export function getSmartActionsConfig({
|
|
11
|
+
lang,
|
|
12
|
+
backendEditUrl,
|
|
13
|
+
userImageUrl,
|
|
14
|
+
labels,
|
|
15
|
+
logout,
|
|
16
|
+
extraActions = []
|
|
17
|
+
}) {
|
|
18
|
+
function UserProfileAction() {
|
|
19
|
+
const $ = _c(1);
|
|
20
|
+
let t0;
|
|
21
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
22
|
+
t0 = /*#__PURE__*/_jsx(UserProfile, {
|
|
23
|
+
href: `/${lang}/nodehive/account`,
|
|
24
|
+
imageUrl: userImageUrl,
|
|
25
|
+
label: labels.account
|
|
26
|
+
});
|
|
27
|
+
$[0] = t0;
|
|
28
|
+
} else {
|
|
29
|
+
t0 = $[0];
|
|
30
|
+
}
|
|
31
|
+
return t0;
|
|
32
|
+
}
|
|
33
|
+
function BackendEditAction() {
|
|
34
|
+
const $ = _c(1);
|
|
35
|
+
if (!backendEditUrl) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
let t0;
|
|
39
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
40
|
+
t0 = /*#__PURE__*/_jsxs("a", {
|
|
41
|
+
href: backendEditUrl,
|
|
42
|
+
target: "_blank",
|
|
43
|
+
rel: "noreferrer",
|
|
44
|
+
className: cn("nh:flex nh:h-8 nh:w-8 nh:cursor-pointer nh:items-center nh:justify-center nh:rounded-full nh:text-(--nh-primary-fg) nh:transition-colors nh:hover:bg-(--nh-toolbar-bg) nh:focus-visible:ring-2 nh:focus-visible:ring-(--nh-toolbar-fg) nh:focus-visible:ring-offset-2 nh:focus-visible:ring-offset-(--nh-toolbar-bg-strong) nh:focus-visible:outline-none"),
|
|
45
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
46
|
+
className: "nh:sr-only",
|
|
47
|
+
children: labels.nodeHive
|
|
48
|
+
}), /*#__PURE__*/_jsx(ExternalLink, {
|
|
49
|
+
className: "nh:h-5 nh:w-5"
|
|
50
|
+
})]
|
|
51
|
+
});
|
|
52
|
+
$[0] = t0;
|
|
53
|
+
} else {
|
|
54
|
+
t0 = $[0];
|
|
55
|
+
}
|
|
56
|
+
return t0;
|
|
57
|
+
}
|
|
58
|
+
function RefreshAction() {
|
|
59
|
+
const $ = _c(1);
|
|
60
|
+
let t0;
|
|
61
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
62
|
+
t0 = /*#__PURE__*/_jsx(RefreshPage, {});
|
|
63
|
+
$[0] = t0;
|
|
64
|
+
} else {
|
|
65
|
+
t0 = $[0];
|
|
66
|
+
}
|
|
67
|
+
return t0;
|
|
68
|
+
}
|
|
69
|
+
function LogoutAction() {
|
|
70
|
+
const $ = _c(1);
|
|
71
|
+
let t0;
|
|
72
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
73
|
+
t0 = /*#__PURE__*/_jsx(LogoutForm, {
|
|
74
|
+
logout: logout
|
|
75
|
+
});
|
|
76
|
+
$[0] = t0;
|
|
77
|
+
} else {
|
|
78
|
+
t0 = $[0];
|
|
79
|
+
}
|
|
80
|
+
return t0;
|
|
81
|
+
}
|
|
82
|
+
return [{
|
|
83
|
+
id: 'user-profile',
|
|
84
|
+
label: labels.account,
|
|
85
|
+
Component: UserProfileAction
|
|
86
|
+
}, ...extraActions, {
|
|
87
|
+
id: 'backend-edit',
|
|
88
|
+
label: labels.nodeHive,
|
|
89
|
+
isVisible: Boolean(backendEditUrl),
|
|
90
|
+
Component: BackendEditAction
|
|
91
|
+
}, {
|
|
92
|
+
id: 'refresh-page',
|
|
93
|
+
label: labels.refresh,
|
|
94
|
+
Component: RefreshAction
|
|
95
|
+
}, {
|
|
96
|
+
id: 'logout',
|
|
97
|
+
label: labels.logout,
|
|
98
|
+
Component: LogoutAction
|
|
99
|
+
}];
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=smart-actions-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-actions-config.js","names":["c","_c","ExternalLink","cn","LogoutForm","RefreshPage","UserProfile","jsx","_jsx","jsxs","_jsxs","getSmartActionsConfig","lang","backendEditUrl","userImageUrl","labels","logout","extraActions","UserProfileAction","$","t0","Symbol","for","href","label","account","BackendEditAction","target","rel","className","children","nodeHive","RefreshAction","LogoutAction","id","Component","isVisible","Boolean","refresh"],"sources":["../../../src/smart-actions/internal/smart-actions-config.tsx"],"sourcesContent":["'use client';\n\nimport { ExternalLink } from 'lucide-react';\n\nimport { cn } from '../../shared/cn';\nimport type { SmartActionsLabels } from './i18n';\nimport LogoutForm from './logout-form';\nimport RefreshPage from './refresh-page';\nimport type { SmartActionsToolbarAction } from './toolbar/types';\nimport UserProfile from './user-profile';\n\ntype SmartActionsConfigContext = {\n lang: string;\n backendEditUrl: string | null;\n userImageUrl?: string | null;\n labels: SmartActionsLabels;\n logout: () => Promise<void>;\n extraActions?: SmartActionsToolbarAction[];\n};\n\nexport function getSmartActionsConfig({\n lang,\n backendEditUrl,\n userImageUrl,\n labels,\n logout,\n extraActions = [],\n}: SmartActionsConfigContext): SmartActionsToolbarAction[] {\n function UserProfileAction() {\n return (\n <UserProfile\n href={`/${lang}/nodehive/account`}\n imageUrl={userImageUrl}\n label={labels.account}\n />\n );\n }\n\n function BackendEditAction() {\n if (!backendEditUrl) {\n return null;\n }\n\n return (\n <a\n href={backendEditUrl}\n target=\"_blank\"\n rel=\"noreferrer\"\n className={cn(\n 'nh:flex nh:h-8 nh:w-8 nh:cursor-pointer nh:items-center nh:justify-center nh:rounded-full nh:text-(--nh-primary-fg) nh:transition-colors nh:hover:bg-(--nh-toolbar-bg) nh:focus-visible:ring-2 nh:focus-visible:ring-(--nh-toolbar-fg) nh:focus-visible:ring-offset-2 nh:focus-visible:ring-offset-(--nh-toolbar-bg-strong) nh:focus-visible:outline-none'\n )}\n >\n <span className=\"nh:sr-only\">{labels.nodeHive}</span>\n <ExternalLink className=\"nh:h-5 nh:w-5\" />\n </a>\n );\n }\n\n function RefreshAction() {\n return <RefreshPage />;\n }\n\n function LogoutAction() {\n return <LogoutForm logout={logout} />;\n }\n\n return [\n {\n id: 'user-profile',\n label: labels.account,\n Component: UserProfileAction,\n },\n ...extraActions,\n {\n id: 'backend-edit',\n label: labels.nodeHive,\n isVisible: Boolean(backendEditUrl),\n Component: BackendEditAction,\n },\n {\n id: 'refresh-page',\n label: labels.refresh,\n Component: RefreshAction,\n },\n {\n id: 'logout',\n label: labels.logout,\n Component: LogoutAction,\n },\n ];\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SmartActionsLabels } from './i18n';
|
|
2
|
+
import type { SmartActionsToolbarAction } from './toolbar/types';
|
|
3
|
+
import '../../theme.css';
|
|
4
|
+
type SmartActionsToolbarClientProps = {
|
|
5
|
+
lang: string;
|
|
6
|
+
launcherIconSrc?: string;
|
|
7
|
+
backendEditUrl: string | null;
|
|
8
|
+
userImageUrl?: string | null;
|
|
9
|
+
labels: SmartActionsLabels;
|
|
10
|
+
logout: () => Promise<void>;
|
|
11
|
+
extraActions?: SmartActionsToolbarAction[];
|
|
12
|
+
};
|
|
13
|
+
export default function SmartActionsToolbarClient({ lang, launcherIconSrc, backendEditUrl, userImageUrl, labels, logout, extraActions, }: SmartActionsToolbarClientProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=smart-actions-toolbar-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-actions-toolbar-client.d.ts","sourceRoot":"","sources":["../../../src/smart-actions/internal/smart-actions-toolbar-client.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAG5C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,iBAAiB,CAAC;AAEzB,KAAK,8BAA8B,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,YAAY,CAAC,EAAE,yBAAyB,EAAE,CAAC;CAC5C,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,IAAI,EACJ,eAA+C,EAC/C,cAAc,EACd,YAAY,EACZ,MAAM,EACN,MAAM,EACN,YAAY,GACb,EAAE,8BAA8B,+BAqBhC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { getSmartActionsConfig } from './smart-actions-config';
|
|
5
|
+
import SmartActionsToolbar from './toolbar/smart-actions-toolbar';
|
|
6
|
+
import '../../theme.css';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
export default function SmartActionsToolbarClient(t0) {
|
|
9
|
+
const $ = _c(15);
|
|
10
|
+
const {
|
|
11
|
+
lang,
|
|
12
|
+
launcherIconSrc: t1,
|
|
13
|
+
backendEditUrl,
|
|
14
|
+
userImageUrl,
|
|
15
|
+
labels,
|
|
16
|
+
logout,
|
|
17
|
+
extraActions
|
|
18
|
+
} = t0;
|
|
19
|
+
const launcherIconSrc = t1 === undefined ? "/metadata/nodehive-icon.svg" : t1;
|
|
20
|
+
let t2;
|
|
21
|
+
if ($[0] !== backendEditUrl || $[1] !== extraActions || $[2] !== labels || $[3] !== lang || $[4] !== logout || $[5] !== userImageUrl) {
|
|
22
|
+
t2 = getSmartActionsConfig({
|
|
23
|
+
lang,
|
|
24
|
+
backendEditUrl,
|
|
25
|
+
userImageUrl,
|
|
26
|
+
labels,
|
|
27
|
+
logout,
|
|
28
|
+
extraActions
|
|
29
|
+
});
|
|
30
|
+
$[0] = backendEditUrl;
|
|
31
|
+
$[1] = extraActions;
|
|
32
|
+
$[2] = labels;
|
|
33
|
+
$[3] = lang;
|
|
34
|
+
$[4] = logout;
|
|
35
|
+
$[5] = userImageUrl;
|
|
36
|
+
$[6] = t2;
|
|
37
|
+
} else {
|
|
38
|
+
t2 = $[6];
|
|
39
|
+
}
|
|
40
|
+
const actions = t2;
|
|
41
|
+
let t3;
|
|
42
|
+
if ($[7] !== labels.collapse || $[8] !== labels.launcherAction || $[9] !== labels.toolbarActions) {
|
|
43
|
+
t3 = {
|
|
44
|
+
collapse: labels.collapse,
|
|
45
|
+
launcherAction: labels.launcherAction,
|
|
46
|
+
toolbarActions: labels.toolbarActions
|
|
47
|
+
};
|
|
48
|
+
$[7] = labels.collapse;
|
|
49
|
+
$[8] = labels.launcherAction;
|
|
50
|
+
$[9] = labels.toolbarActions;
|
|
51
|
+
$[10] = t3;
|
|
52
|
+
} else {
|
|
53
|
+
t3 = $[10];
|
|
54
|
+
}
|
|
55
|
+
let t4;
|
|
56
|
+
if ($[11] !== actions || $[12] !== launcherIconSrc || $[13] !== t3) {
|
|
57
|
+
t4 = /*#__PURE__*/_jsx(SmartActionsToolbar, {
|
|
58
|
+
actions: actions,
|
|
59
|
+
launcherIconSrc: launcherIconSrc,
|
|
60
|
+
labels: t3
|
|
61
|
+
});
|
|
62
|
+
$[11] = actions;
|
|
63
|
+
$[12] = launcherIconSrc;
|
|
64
|
+
$[13] = t3;
|
|
65
|
+
$[14] = t4;
|
|
66
|
+
} else {
|
|
67
|
+
t4 = $[14];
|
|
68
|
+
}
|
|
69
|
+
return t4;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=smart-actions-toolbar-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-actions-toolbar-client.js","names":["c","_c","getSmartActionsConfig","SmartActionsToolbar","jsx","_jsx","SmartActionsToolbarClient","t0","$","lang","launcherIconSrc","t1","backendEditUrl","userImageUrl","labels","logout","extraActions","undefined","t2","actions","t3","collapse","launcherAction","toolbarActions","t4"],"sources":["../../../src/smart-actions/internal/smart-actions-toolbar-client.tsx"],"sourcesContent":["'use client';\n\nimport { SmartActionsLabels } from './i18n';\nimport { getSmartActionsConfig } from './smart-actions-config';\nimport SmartActionsToolbar from './toolbar/smart-actions-toolbar';\nimport type { SmartActionsToolbarAction } from './toolbar/types';\n\nimport '../../theme.css';\n\ntype SmartActionsToolbarClientProps = {\n lang: string;\n launcherIconSrc?: string;\n backendEditUrl: string | null;\n userImageUrl?: string | null;\n labels: SmartActionsLabels;\n logout: () => Promise<void>;\n extraActions?: SmartActionsToolbarAction[];\n};\n\nexport default function SmartActionsToolbarClient({\n lang,\n launcherIconSrc = '/metadata/nodehive-icon.svg',\n backendEditUrl,\n userImageUrl,\n labels,\n logout,\n extraActions,\n}: SmartActionsToolbarClientProps) {\n const actions = getSmartActionsConfig({\n lang,\n backendEditUrl,\n userImageUrl,\n labels,\n logout,\n extraActions,\n });\n\n return (\n <SmartActionsToolbar\n actions={actions}\n launcherIconSrc={launcherIconSrc}\n labels={{\n collapse: labels.collapse,\n launcherAction: labels.launcherAction,\n toolbarActions: labels.toolbarActions,\n }}\n />\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAGb,SAASC,qBAAqB,QAAQ,wBAAwB;AAC9D,OAAOC,mBAAmB,MAAM,iCAAiC;AAGjE,OAAO,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAYzB,eAAe,SAAAC,0BAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAP,EAAA;EAAmC;IAAAQ,IAAA;IAAAC,eAAA,EAAAC,EAAA;IAAAC,cAAA;IAAAC,YAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC;EAAA,IAAAT,EAQjB;EAN/B,MAAAG,eAAA,GAAAC,EAA+C,KAA/CM,SAA+C,GAA/C,6BAA+C,GAA/CN,EAA+C;EAAA,IAAAO,EAAA;EAAA,IAAAV,CAAA,QAAAI,cAAA,IAAAJ,CAAA,QAAAQ,YAAA,IAAAR,CAAA,QAAAM,MAAA,IAAAN,CAAA,QAAAC,IAAA,IAAAD,CAAA,QAAAO,MAAA,IAAAP,CAAA,QAAAK,YAAA;IAO/BK,EAAA,GAAAhB,qBAAqB,CAAC;MAAAO,IAAA;MAAAG,cAAA;MAAAC,YAAA;MAAAC,MAAA;MAAAC,MAAA;MAAAC;IAOtC,CAAC,CAAC;IAAAR,CAAA,MAAAI,cAAA;IAAAJ,CAAA,MAAAQ,YAAA;IAAAR,CAAA,MAAAM,MAAA;IAAAN,CAAA,MAAAC,IAAA;IAAAD,CAAA,MAAAO,MAAA;IAAAP,CAAA,MAAAK,YAAA;IAAAL,CAAA,MAAAU,EAAA;EAAA;IAAAA,EAAA,GAAAV,CAAA;EAAA;EAPF,MAAAW,OAAA,GAAgBD,EAOd;EAAC,IAAAE,EAAA;EAAA,IAAAZ,CAAA,QAAAM,MAAA,CAAAO,QAAA,IAAAb,CAAA,QAAAM,MAAA,CAAAQ,cAAA,IAAAd,CAAA,QAAAM,MAAA,CAAAS,cAAA;IAMSH,EAAA;MAAAC,QAAA,EACIP,MAAM,CAAAO,QAAS;MAAAC,cAAA,EACTR,MAAM,CAAAQ,cAAe;MAAAC,cAAA,EACrBT,MAAM,CAAAS;IACxB,CAAC;IAAAf,CAAA,MAAAM,MAAA,CAAAO,QAAA;IAAAb,CAAA,MAAAM,MAAA,CAAAQ,cAAA;IAAAd,CAAA,MAAAM,MAAA,CAAAS,cAAA;IAAAf,CAAA,OAAAY,EAAA;EAAA;IAAAA,EAAA,GAAAZ,CAAA;EAAA;EAAA,IAAAgB,EAAA;EAAA,IAAAhB,CAAA,SAAAW,OAAA,IAAAX,CAAA,SAAAE,eAAA,IAAAF,CAAA,SAAAY,EAAA;IAPHI,EAAA,gBAAAnB,IAAA,CAACF,mBAAmB;MACTgB,OAAO,EAAPA,OAAO;MACCT,eAAe,EAAfA,eAAe;MACxBI,MAIP,EAJOM;IAIP,CACF,CAAC;IAAAZ,CAAA,OAAAW,OAAA;IAAAX,CAAA,OAAAE,eAAA;IAAAF,CAAA,OAAAY,EAAA;IAAAZ,CAAA,OAAAgB,EAAA;EAAA;IAAAA,EAAA,GAAAhB,CAAA;EAAA;EAAA,OARFgB,EAQE;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SmartActionsToolbarAction } from './types';
|
|
2
|
+
type SmartActionsToolbarProps = {
|
|
3
|
+
actions: SmartActionsToolbarAction[];
|
|
4
|
+
launcherIconSrc: string;
|
|
5
|
+
labels: {
|
|
6
|
+
collapse: string;
|
|
7
|
+
launcherAction: string;
|
|
8
|
+
toolbarActions: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default function SmartActionsToolbar({ actions, launcherIconSrc, labels, }: SmartActionsToolbarProps): import("react").JSX.Element | null;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=smart-actions-toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-actions-toolbar.d.ts","sourceRoot":"","sources":["../../../../src/smart-actions/internal/toolbar/smart-actions-toolbar.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,yBAAyB,EAE1B,MAAM,SAAS,CAAC;AAMjB,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAGrC,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,cAAc,EAAE,MAAM,CAAC;QACvB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;CACH,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,OAAO,EACP,eAAe,EACf,MAAM,GACP,EAAE,wBAAwB,sCA6H1B"}
|