@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,323 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useEffect, useState } from 'react';
|
|
5
|
+
import Image from 'next/image';
|
|
6
|
+
import { ChevronDown } from 'lucide-react';
|
|
7
|
+
import { motion } from 'motion/react';
|
|
8
|
+
import { cn } from '../../../shared/cn';
|
|
9
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip';
|
|
10
|
+
import { useSmartActionsToolbarMode } from './use-smart-actions-toolbar-mode';
|
|
11
|
+
|
|
12
|
+
// Small delay so tooltips don't flash instantly when sweeping across the toolbar.
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
const TOOLBAR_TOOLTIP_DELAY = 200;
|
|
15
|
+
export default function SmartActionsToolbar(t0) {
|
|
16
|
+
const $ = _c(40);
|
|
17
|
+
const {
|
|
18
|
+
actions,
|
|
19
|
+
launcherIconSrc,
|
|
20
|
+
labels
|
|
21
|
+
} = t0;
|
|
22
|
+
const {
|
|
23
|
+
mode,
|
|
24
|
+
setMode
|
|
25
|
+
} = useSmartActionsToolbarMode();
|
|
26
|
+
const [isMounted, setIsMounted] = useState(false);
|
|
27
|
+
const [isCollapsedFlyoutOpen, setIsCollapsedFlyoutOpen] = useState(false);
|
|
28
|
+
const visibleActions = actions.filter(_temp);
|
|
29
|
+
let t1;
|
|
30
|
+
let t2;
|
|
31
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
32
|
+
t1 = () => {
|
|
33
|
+
setIsMounted(true);
|
|
34
|
+
};
|
|
35
|
+
t2 = [];
|
|
36
|
+
$[0] = t1;
|
|
37
|
+
$[1] = t2;
|
|
38
|
+
} else {
|
|
39
|
+
t1 = $[0];
|
|
40
|
+
t2 = $[1];
|
|
41
|
+
}
|
|
42
|
+
useEffect(t1, t2);
|
|
43
|
+
let t3;
|
|
44
|
+
let t4;
|
|
45
|
+
if ($[2] !== mode) {
|
|
46
|
+
t3 = () => {
|
|
47
|
+
if (mode === "expanded") {
|
|
48
|
+
setIsCollapsedFlyoutOpen(false);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
t4 = [mode];
|
|
52
|
+
$[2] = mode;
|
|
53
|
+
$[3] = t3;
|
|
54
|
+
$[4] = t4;
|
|
55
|
+
} else {
|
|
56
|
+
t3 = $[3];
|
|
57
|
+
t4 = $[4];
|
|
58
|
+
}
|
|
59
|
+
useEffect(t3, t4);
|
|
60
|
+
if (!isMounted || visibleActions.length === 0) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
if (mode === "collapsed") {
|
|
64
|
+
let t5;
|
|
65
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
66
|
+
t5 = function handleCollapsedBlur(event) {
|
|
67
|
+
if (!event.currentTarget.contains(event.relatedTarget)) {
|
|
68
|
+
setIsCollapsedFlyoutOpen(false);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
$[5] = t5;
|
|
72
|
+
} else {
|
|
73
|
+
t5 = $[5];
|
|
74
|
+
}
|
|
75
|
+
const handleCollapsedBlur = t5;
|
|
76
|
+
let t6;
|
|
77
|
+
let t7;
|
|
78
|
+
let t8;
|
|
79
|
+
let t9;
|
|
80
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
81
|
+
t6 = () => setIsCollapsedFlyoutOpen(true);
|
|
82
|
+
t7 = () => setIsCollapsedFlyoutOpen(true);
|
|
83
|
+
t8 = () => setIsCollapsedFlyoutOpen(false);
|
|
84
|
+
t9 = () => setIsCollapsedFlyoutOpen(true);
|
|
85
|
+
$[6] = t6;
|
|
86
|
+
$[7] = t7;
|
|
87
|
+
$[8] = t8;
|
|
88
|
+
$[9] = t9;
|
|
89
|
+
} else {
|
|
90
|
+
t6 = $[6];
|
|
91
|
+
t7 = $[7];
|
|
92
|
+
t8 = $[8];
|
|
93
|
+
t9 = $[9];
|
|
94
|
+
}
|
|
95
|
+
const t10 = isCollapsedFlyoutOpen ? "nh:gap-2" : "gap-0";
|
|
96
|
+
let t11;
|
|
97
|
+
if ($[10] !== t10) {
|
|
98
|
+
t11 = cn("nh:flex nh:flex-col-reverse nh:items-center nh:rounded-full nh:bg-(--nh-toolbar-bg-strong) nh:p-2 nh:shadow-[0_8px_40px_rgba(0,0,0,0.25)] nh:transition-all nh:duration-200 w-12 origin-bottom ease-out", t10);
|
|
99
|
+
$[10] = t10;
|
|
100
|
+
$[11] = t11;
|
|
101
|
+
} else {
|
|
102
|
+
t11 = $[11];
|
|
103
|
+
}
|
|
104
|
+
let t12;
|
|
105
|
+
if ($[12] !== setMode) {
|
|
106
|
+
t12 = () => setMode("expanded");
|
|
107
|
+
$[12] = setMode;
|
|
108
|
+
$[13] = t12;
|
|
109
|
+
} else {
|
|
110
|
+
t12 = $[13];
|
|
111
|
+
}
|
|
112
|
+
let t13;
|
|
113
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
114
|
+
t13 = cn("nh:flex nh:h-8 nh:w-8 nh:shrink-0 nh:cursor-pointer nh:items-center nh:justify-center nh:rounded-full nh:bg-(--nh-toolbar-bg-strong) 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");
|
|
115
|
+
$[14] = t13;
|
|
116
|
+
} else {
|
|
117
|
+
t13 = $[14];
|
|
118
|
+
}
|
|
119
|
+
let t14;
|
|
120
|
+
if ($[15] !== launcherIconSrc) {
|
|
121
|
+
t14 = /*#__PURE__*/_jsx(Image, {
|
|
122
|
+
src: launcherIconSrc,
|
|
123
|
+
alt: "",
|
|
124
|
+
width: 20,
|
|
125
|
+
height: 20,
|
|
126
|
+
className: "nh:block nh:h-5 nh:w-5 nh:object-contain"
|
|
127
|
+
});
|
|
128
|
+
$[15] = launcherIconSrc;
|
|
129
|
+
$[16] = t14;
|
|
130
|
+
} else {
|
|
131
|
+
t14 = $[16];
|
|
132
|
+
}
|
|
133
|
+
let t15;
|
|
134
|
+
if ($[17] !== labels.launcherAction || $[18] !== t12 || $[19] !== t14) {
|
|
135
|
+
t15 = /*#__PURE__*/_jsx("button", {
|
|
136
|
+
type: "button",
|
|
137
|
+
onClick: t12,
|
|
138
|
+
className: t13,
|
|
139
|
+
"aria-label": labels.launcherAction,
|
|
140
|
+
children: t14
|
|
141
|
+
});
|
|
142
|
+
$[17] = labels.launcherAction;
|
|
143
|
+
$[18] = t12;
|
|
144
|
+
$[19] = t14;
|
|
145
|
+
$[20] = t15;
|
|
146
|
+
} else {
|
|
147
|
+
t15 = $[20];
|
|
148
|
+
}
|
|
149
|
+
const t16 = isCollapsedFlyoutOpen ? "nh:pointer-events-auto" : "nh:pointer-events-none";
|
|
150
|
+
let t17;
|
|
151
|
+
if ($[21] !== t16) {
|
|
152
|
+
t17 = cn("nh:flex nh:flex-col-reverse nh:items-center nh:gap-2 origin-bottom", t16);
|
|
153
|
+
$[21] = t16;
|
|
154
|
+
$[22] = t17;
|
|
155
|
+
} else {
|
|
156
|
+
t17 = $[22];
|
|
157
|
+
}
|
|
158
|
+
let t18;
|
|
159
|
+
if ($[23] !== isCollapsedFlyoutOpen) {
|
|
160
|
+
t18 = isCollapsedFlyoutOpen ? {
|
|
161
|
+
height: "auto",
|
|
162
|
+
opacity: 1,
|
|
163
|
+
y: 0,
|
|
164
|
+
scale: 1
|
|
165
|
+
} : {
|
|
166
|
+
height: 0,
|
|
167
|
+
opacity: 0,
|
|
168
|
+
y: 12,
|
|
169
|
+
scale: 0.96
|
|
170
|
+
};
|
|
171
|
+
$[23] = isCollapsedFlyoutOpen;
|
|
172
|
+
$[24] = t18;
|
|
173
|
+
} else {
|
|
174
|
+
t18 = $[24];
|
|
175
|
+
}
|
|
176
|
+
let t19;
|
|
177
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
178
|
+
t19 = {
|
|
179
|
+
duration: 0.18,
|
|
180
|
+
ease: [0.16, 1, 0.3, 1]
|
|
181
|
+
};
|
|
182
|
+
$[25] = t19;
|
|
183
|
+
} else {
|
|
184
|
+
t19 = $[25];
|
|
185
|
+
}
|
|
186
|
+
return /*#__PURE__*/_jsx("div", {
|
|
187
|
+
className: "smart-actions-collapsed-toolbar nh-root nh:fixed nh:bottom-6 nh:left-6 nh:z-40",
|
|
188
|
+
onPointerEnter: t6,
|
|
189
|
+
onPointerMove: t7,
|
|
190
|
+
onPointerLeave: t8,
|
|
191
|
+
onFocus: t9,
|
|
192
|
+
onBlur: handleCollapsedBlur,
|
|
193
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
194
|
+
className: t11,
|
|
195
|
+
children: [t15, /*#__PURE__*/_jsx(motion.ul, {
|
|
196
|
+
className: t17,
|
|
197
|
+
initial: false,
|
|
198
|
+
animate: t18,
|
|
199
|
+
transition: t19,
|
|
200
|
+
inert: !isCollapsedFlyoutOpen,
|
|
201
|
+
"aria-label": labels.toolbarActions,
|
|
202
|
+
children: visibleActions.map(_temp2)
|
|
203
|
+
})]
|
|
204
|
+
})
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
const t5 = "nh:fixed nh:bottom-10 nh:left-1/2 nh:z-40 nh:-translate-x-1/2 nh:font-(--nh-font)";
|
|
208
|
+
const t6 = "nh:rounded-full nh:bg-(--nh-toolbar-bg-strong) nh:p-2 nh:text-sm nh:font-bold nh:text-(--nh-primary-fg) nh:shadow-[0_8px_40px_rgba(0,0,0,0.25)] nh:shadow-white/20 backdrop-blur-2xl";
|
|
209
|
+
const t7 = "nh:flex nh:items-center nh:gap-2";
|
|
210
|
+
let t8;
|
|
211
|
+
if ($[26] !== setMode) {
|
|
212
|
+
t8 = () => setMode("collapsed");
|
|
213
|
+
$[26] = setMode;
|
|
214
|
+
$[27] = t8;
|
|
215
|
+
} else {
|
|
216
|
+
t8 = $[27];
|
|
217
|
+
}
|
|
218
|
+
let t9;
|
|
219
|
+
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
220
|
+
t9 = /*#__PURE__*/_jsx(ChevronDown, {
|
|
221
|
+
className: "nh:h-5 nh:w-5"
|
|
222
|
+
});
|
|
223
|
+
$[28] = t9;
|
|
224
|
+
} else {
|
|
225
|
+
t9 = $[28];
|
|
226
|
+
}
|
|
227
|
+
let t10;
|
|
228
|
+
if ($[29] !== labels.collapse || $[30] !== t8) {
|
|
229
|
+
t10 = /*#__PURE__*/_jsx(TooltipTrigger, {
|
|
230
|
+
asChild: true,
|
|
231
|
+
children: /*#__PURE__*/_jsx("button", {
|
|
232
|
+
type: "button",
|
|
233
|
+
onClick: t8,
|
|
234
|
+
className: "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",
|
|
235
|
+
"aria-label": labels.collapse,
|
|
236
|
+
children: t9
|
|
237
|
+
})
|
|
238
|
+
});
|
|
239
|
+
$[29] = labels.collapse;
|
|
240
|
+
$[30] = t8;
|
|
241
|
+
$[31] = t10;
|
|
242
|
+
} else {
|
|
243
|
+
t10 = $[31];
|
|
244
|
+
}
|
|
245
|
+
let t11;
|
|
246
|
+
if ($[32] !== labels.collapse) {
|
|
247
|
+
t11 = /*#__PURE__*/_jsx(TooltipContent, {
|
|
248
|
+
sideOffset: 5,
|
|
249
|
+
className: "nh:text-(--nh-primary-fg)",
|
|
250
|
+
children: labels.collapse
|
|
251
|
+
});
|
|
252
|
+
$[32] = labels.collapse;
|
|
253
|
+
$[33] = t11;
|
|
254
|
+
} else {
|
|
255
|
+
t11 = $[33];
|
|
256
|
+
}
|
|
257
|
+
let t12;
|
|
258
|
+
if ($[34] !== t10 || $[35] !== t11) {
|
|
259
|
+
t12 = /*#__PURE__*/_jsx("li", {
|
|
260
|
+
children: /*#__PURE__*/_jsxs(Tooltip, {
|
|
261
|
+
delayDuration: TOOLBAR_TOOLTIP_DELAY,
|
|
262
|
+
children: [t10, t11]
|
|
263
|
+
})
|
|
264
|
+
}, "collapse-toolbar");
|
|
265
|
+
$[34] = t10;
|
|
266
|
+
$[35] = t11;
|
|
267
|
+
$[36] = t12;
|
|
268
|
+
} else {
|
|
269
|
+
t12 = $[36];
|
|
270
|
+
}
|
|
271
|
+
const t13 = visibleActions.map(_temp3);
|
|
272
|
+
let t14;
|
|
273
|
+
if ($[37] !== t12 || $[38] !== t13) {
|
|
274
|
+
t14 = /*#__PURE__*/_jsx("div", {
|
|
275
|
+
className: t5,
|
|
276
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
277
|
+
className: t6,
|
|
278
|
+
children: /*#__PURE__*/_jsxs("ul", {
|
|
279
|
+
className: t7,
|
|
280
|
+
children: [t12, t13]
|
|
281
|
+
})
|
|
282
|
+
})
|
|
283
|
+
});
|
|
284
|
+
$[37] = t12;
|
|
285
|
+
$[38] = t13;
|
|
286
|
+
$[39] = t14;
|
|
287
|
+
} else {
|
|
288
|
+
t14 = $[39];
|
|
289
|
+
}
|
|
290
|
+
return t14;
|
|
291
|
+
}
|
|
292
|
+
function _temp3(action_1) {
|
|
293
|
+
return renderSmartActionsToolbarItem(action_1, "expanded");
|
|
294
|
+
}
|
|
295
|
+
function _temp2(action_0) {
|
|
296
|
+
return renderSmartActionsToolbarItem(action_0, "collapsed");
|
|
297
|
+
}
|
|
298
|
+
function _temp(action) {
|
|
299
|
+
return action.isVisible !== false;
|
|
300
|
+
}
|
|
301
|
+
function renderSmartActionsToolbarItem(action, mode) {
|
|
302
|
+
const ActionComponent = action.Component;
|
|
303
|
+
return /*#__PURE__*/_jsx("li", {
|
|
304
|
+
children: /*#__PURE__*/_jsxs(Tooltip, {
|
|
305
|
+
delayDuration: TOOLBAR_TOOLTIP_DELAY,
|
|
306
|
+
children: [/*#__PURE__*/_jsx(TooltipTrigger, {
|
|
307
|
+
asChild: true,
|
|
308
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
309
|
+
className: "nh:inline-flex",
|
|
310
|
+
children: /*#__PURE__*/_jsx(ActionComponent, {
|
|
311
|
+
...(action.props ?? {})
|
|
312
|
+
})
|
|
313
|
+
})
|
|
314
|
+
}), /*#__PURE__*/_jsx(TooltipContent, {
|
|
315
|
+
side: mode === 'collapsed' ? 'right' : undefined,
|
|
316
|
+
sideOffset: 5,
|
|
317
|
+
className: "nh:z-[100] nh:text-(--nh-primary-fg)",
|
|
318
|
+
children: action.label
|
|
319
|
+
})]
|
|
320
|
+
})
|
|
321
|
+
}, action.id);
|
|
322
|
+
}
|
|
323
|
+
//# sourceMappingURL=smart-actions-toolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-actions-toolbar.js","names":["c","_c","useEffect","useState","Image","ChevronDown","motion","cn","Tooltip","TooltipContent","TooltipTrigger","useSmartActionsToolbarMode","jsx","_jsx","jsxs","_jsxs","TOOLBAR_TOOLTIP_DELAY","SmartActionsToolbar","t0","$","actions","launcherIconSrc","labels","mode","setMode","isMounted","setIsMounted","isCollapsedFlyoutOpen","setIsCollapsedFlyoutOpen","visibleActions","filter","_temp","t1","t2","Symbol","for","t3","t4","length","t5","handleCollapsedBlur","event","currentTarget","contains","relatedTarget","t6","t7","t8","t9","t10","t11","t12","t13","t14","alt","width","height","className","t15","launcherAction","type","onClick","children","t16","t17","t18","opacity","y","scale","t19","duration","ease","onPointerEnter","onPointerMove","onPointerLeave","onFocus","ul","initial","animate","transition","inert","toolbarActions","map","_temp2","collapse","asChild","sideOffset","_temp3","action_1","renderSmartActionsToolbarItem","action","action_0","isVisible","ActionComponent","Component","delayDuration","props","side","undefined","label","id"],"sources":["../../../../src/smart-actions/internal/toolbar/smart-actions-toolbar.tsx"],"sourcesContent":["'use client';\n\nimport { FocusEvent, useEffect, useState } from 'react';\nimport Image from 'next/image';\nimport { ChevronDown } from 'lucide-react';\nimport { motion } from 'motion/react';\n\nimport { cn } from '../../../shared/cn';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip';\nimport type {\n SmartActionsToolbarAction,\n SmartActionsToolbarMode,\n} from './types';\nimport { useSmartActionsToolbarMode } from './use-smart-actions-toolbar-mode';\n\n// Small delay so tooltips don't flash instantly when sweeping across the toolbar.\nconst TOOLBAR_TOOLTIP_DELAY = 200;\n\ntype SmartActionsToolbarProps = {\n actions: SmartActionsToolbarAction[];\n // Icon shown on the collapsed launcher. Kept as a prop so the reusable shell\n // stays decoupled from any project-specific asset path.\n launcherIconSrc: string;\n labels: {\n collapse: string;\n launcherAction: string;\n toolbarActions: string;\n };\n};\n\nexport default function SmartActionsToolbar({\n actions,\n launcherIconSrc,\n labels,\n}: SmartActionsToolbarProps) {\n const { mode, setMode } = useSmartActionsToolbarMode();\n const [isMounted, setIsMounted] = useState(false);\n const [isCollapsedFlyoutOpen, setIsCollapsedFlyoutOpen] = useState(false);\n const visibleActions = actions.filter((action) => action.isVisible !== false);\n\n useEffect(() => {\n setIsMounted(true);\n }, []);\n\n // Whenever the toolbar expands, make sure the collapsed flyout starts closed\n // again so collapsing later shows only the launcher button (not the hover state).\n useEffect(() => {\n if (mode === 'expanded') {\n setIsCollapsedFlyoutOpen(false);\n }\n }, [mode]);\n\n // Avoid rendering before the stored mode is known on the client. Otherwise the\n // toolbar would first paint in its default (expanded) position and then jump to\n // the persisted collapsed launcher on hydration.\n if (!isMounted || visibleActions.length === 0) {\n return null;\n }\n\n if (mode === 'collapsed') {\n function handleCollapsedBlur(event: FocusEvent<HTMLDivElement>) {\n if (!event.currentTarget.contains(event.relatedTarget)) {\n setIsCollapsedFlyoutOpen(false);\n }\n }\n\n return (\n <div\n className=\"smart-actions-collapsed-toolbar nh-root nh:fixed nh:bottom-6 nh:left-6 nh:z-40\"\n onPointerEnter={() => setIsCollapsedFlyoutOpen(true)}\n onPointerMove={() => setIsCollapsedFlyoutOpen(true)}\n onPointerLeave={() => setIsCollapsedFlyoutOpen(false)}\n onFocus={() => setIsCollapsedFlyoutOpen(true)}\n onBlur={handleCollapsedBlur}\n >\n <div\n className={cn(\n 'nh:flex nh:flex-col-reverse nh:items-center nh:rounded-full nh:bg-(--nh-toolbar-bg-strong) nh:p-2 nh:shadow-[0_8px_40px_rgba(0,0,0,0.25)] nh:transition-all nh:duration-200 w-12 origin-bottom ease-out',\n isCollapsedFlyoutOpen ? 'nh:gap-2' : 'gap-0'\n )}\n >\n <button\n type=\"button\"\n onClick={() => setMode('expanded')}\n className={cn(\n 'nh:flex nh:h-8 nh:w-8 nh:shrink-0 nh:cursor-pointer nh:items-center nh:justify-center nh:rounded-full nh:bg-(--nh-toolbar-bg-strong) 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 aria-label={labels.launcherAction}\n >\n <Image\n src={launcherIconSrc}\n alt=\"\"\n width={20}\n height={20}\n className=\"nh:block nh:h-5 nh:w-5 nh:object-contain\"\n />\n </button>\n <motion.ul\n className={cn(\n 'nh:flex nh:flex-col-reverse nh:items-center nh:gap-2 origin-bottom',\n isCollapsedFlyoutOpen\n ? 'nh:pointer-events-auto'\n : 'nh:pointer-events-none'\n )}\n initial={false}\n animate={\n isCollapsedFlyoutOpen\n ? { height: 'auto', opacity: 1, y: 0, scale: 1 }\n : { height: 0, opacity: 0, y: 12, scale: 0.96 }\n }\n transition={{\n duration: 0.18,\n ease: [0.16, 1, 0.3, 1],\n }}\n // Keep the hidden actions out of the tab order / a11y tree while the\n // flyout is closed; focusing the launcher opens it and clears inert.\n inert={!isCollapsedFlyoutOpen}\n aria-label={labels.toolbarActions}\n >\n {visibleActions.map((action) =>\n renderSmartActionsToolbarItem(action, 'collapsed')\n )}\n </motion.ul>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"nh:fixed nh:bottom-10 nh:left-1/2 nh:z-40 nh:-translate-x-1/2 nh:font-(--nh-font)\">\n <div className=\"nh:rounded-full nh:bg-(--nh-toolbar-bg-strong) nh:p-2 nh:text-sm nh:font-bold nh:text-(--nh-primary-fg) nh:shadow-[0_8px_40px_rgba(0,0,0,0.25)] nh:shadow-white/20 backdrop-blur-2xl\">\n <ul className=\"nh:flex nh:items-center nh:gap-2\">\n <li key=\"collapse-toolbar\">\n <Tooltip delayDuration={TOOLBAR_TOOLTIP_DELAY}>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={() => setMode('collapsed')}\n className=\"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 aria-label={labels.collapse}\n >\n <ChevronDown className=\"nh:h-5 nh:w-5\" />\n </button>\n </TooltipTrigger>\n <TooltipContent\n sideOffset={5}\n className=\"nh:text-(--nh-primary-fg)\"\n >\n {labels.collapse}\n </TooltipContent>\n </Tooltip>\n </li>\n {visibleActions.map((action) =>\n renderSmartActionsToolbarItem(action, 'expanded')\n )}\n </ul>\n </div>\n </div>\n );\n}\n\nfunction renderSmartActionsToolbarItem(\n action: SmartActionsToolbarAction,\n mode: SmartActionsToolbarMode\n) {\n const ActionComponent = action.Component;\n\n return (\n <li key={action.id}>\n <Tooltip delayDuration={TOOLBAR_TOOLTIP_DELAY}>\n <TooltipTrigger asChild>\n <div className=\"nh:inline-flex\">\n <ActionComponent {...(action.props ?? {})} />\n </div>\n </TooltipTrigger>\n <TooltipContent\n side={mode === 'collapsed' ? 'right' : undefined}\n sideOffset={5}\n className=\"nh:z-[100] nh:text-(--nh-primary-fg)\"\n >\n {action.label}\n </TooltipContent>\n </Tooltip>\n </li>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAAqBC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AACvD,OAAOC,KAAK,MAAM,YAAY;AAC9B,SAASC,WAAW,QAAQ,cAAc;AAC1C,SAASC,MAAM,QAAQ,cAAc;AAErC,SAASC,EAAE,QAAQ,oBAAoB;AACvC,SAASC,OAAO,EAAEC,cAAc,EAAEC,cAAc,QAAQ,eAAe;AAKvE,SAASC,0BAA0B,QAAQ,kCAAkC;;AAE7E;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,MAAMC,qBAAqB,GAAG,GAAG;AAcjC,eAAe,SAAAC,oBAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAlB,EAAA;EAA6B;IAAAmB,OAAA;IAAAC,eAAA;IAAAC;EAAA,IAAAJ,EAIjB;EACzB;IAAAK,IAAA;IAAAC;EAAA,IAA0Bb,0BAA0B,CAAC,CAAC;EACtD,OAAAc,SAAA,EAAAC,YAAA,IAAkCvB,QAAQ,CAAC,KAAK,CAAC;EACjD,OAAAwB,qBAAA,EAAAC,wBAAA,IAA0DzB,QAAQ,CAAC,KAAK,CAAC;EACzE,MAAA0B,cAAA,GAAuBT,OAAO,CAAAU,MAAO,CAACC,KAAsC,CAAC;EAAC,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAd,CAAA,QAAAe,MAAA,CAAAC,GAAA;IAEpEH,EAAA,GAAAA,CAAA;MACRN,YAAY,CAAC,IAAI,CAAC;IAAA,CACnB;IAAEO,EAAA,KAAE;IAAAd,C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;IAAAiD,QAAA,eACE/C,KAAA,CAACP,OAAO;MAACuF,aAAa,EAAE/E,qBAAsB;MAAA8C,QAAA,gBAC5CjD,IAAA,CAACH,cAAc;QAAC2E,OAAO;QAAAvB,QAAA,eACrBjD,IAAA;UAAK4C,SAAS,EAAC,gBAAgB;UAAAK,QAAA,eAC7BjD,IAAA,CAACgF,eAAe;YAAA,IAAMH,MAAM,CAACM,KAAK,IAAI,CAAC,CAAC;UAAA,CAAI;QAAC,CAC1C;MAAC,CACQ,CAAC,eACjBnF,IAAA,CAACJ,cAAc;QACbwF,IAAI,EAAE1E,IAAI,KAAK,WAAW,GAAG,OAAO,GAAG2E,SAAU;QACjDZ,UAAU,EAAE,CAAE;QACd7B,SAAS,EAAC,sCAAsC;QAAAK,QAAA,EAE/C4B,MAAM,CAACS;MAAK,CACC,CAAC;IAAA,CACV;EAAC,GAdHT,MAAM,CAACU,EAeZ,CAAC;AAET","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SmartActionsToolbarMode } from './types';
|
|
2
|
+
export declare const SMART_ACTIONS_TOOLBAR_MODE_STORAGE_KEY = "nodehive.smart-actions.toolbar.mode";
|
|
3
|
+
export declare const SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT = "nodehive-smart-actions-toolbar-mode-change";
|
|
4
|
+
export declare const DEFAULT_SMART_ACTIONS_TOOLBAR_MODE: SmartActionsToolbarMode;
|
|
5
|
+
export declare function readStoredToolbarMode(): SmartActionsToolbarMode;
|
|
6
|
+
export declare function writeStoredToolbarMode(mode: SmartActionsToolbarMode): void;
|
|
7
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../src/smart-actions/internal/toolbar/storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,sCAAsC,wCACZ,CAAC;AACxC,eAAO,MAAM,uCAAuC,+CACN,CAAC;AAE/C,eAAO,MAAM,kCAAkC,EAAE,uBACrC,CAAC;AAEb,wBAAgB,qBAAqB,IAAI,uBAAuB,CAkB/D;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,uBAAuB,QAWnE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const SMART_ACTIONS_TOOLBAR_MODE_STORAGE_KEY = 'nodehive.smart-actions.toolbar.mode';
|
|
2
|
+
export const SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT = 'nodehive-smart-actions-toolbar-mode-change';
|
|
3
|
+
export const DEFAULT_SMART_ACTIONS_TOOLBAR_MODE = 'expanded';
|
|
4
|
+
export function readStoredToolbarMode() {
|
|
5
|
+
if (typeof window === 'undefined') {
|
|
6
|
+
return DEFAULT_SMART_ACTIONS_TOOLBAR_MODE;
|
|
7
|
+
}
|
|
8
|
+
try {
|
|
9
|
+
const storedMode = window.localStorage.getItem(SMART_ACTIONS_TOOLBAR_MODE_STORAGE_KEY);
|
|
10
|
+
if (storedMode === 'collapsed' || storedMode === 'expanded') {
|
|
11
|
+
return storedMode;
|
|
12
|
+
}
|
|
13
|
+
} catch {
|
|
14
|
+
return DEFAULT_SMART_ACTIONS_TOOLBAR_MODE;
|
|
15
|
+
}
|
|
16
|
+
return DEFAULT_SMART_ACTIONS_TOOLBAR_MODE;
|
|
17
|
+
}
|
|
18
|
+
export function writeStoredToolbarMode(mode) {
|
|
19
|
+
if (typeof window === 'undefined') {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
try {
|
|
23
|
+
window.localStorage.setItem(SMART_ACTIONS_TOOLBAR_MODE_STORAGE_KEY, mode);
|
|
24
|
+
} catch {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
window.dispatchEvent(new Event(SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT));
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.js","names":["SMART_ACTIONS_TOOLBAR_MODE_STORAGE_KEY","SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT","DEFAULT_SMART_ACTIONS_TOOLBAR_MODE","readStoredToolbarMode","window","storedMode","localStorage","getItem","writeStoredToolbarMode","mode","setItem","dispatchEvent","Event"],"sources":["../../../../src/smart-actions/internal/toolbar/storage.ts"],"sourcesContent":["import type { SmartActionsToolbarMode } from './types';\n\nexport const SMART_ACTIONS_TOOLBAR_MODE_STORAGE_KEY =\n 'nodehive.smart-actions.toolbar.mode';\nexport const SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT =\n 'nodehive-smart-actions-toolbar-mode-change';\n\nexport const DEFAULT_SMART_ACTIONS_TOOLBAR_MODE: SmartActionsToolbarMode =\n 'expanded';\n\nexport function readStoredToolbarMode(): SmartActionsToolbarMode {\n if (typeof window === 'undefined') {\n return DEFAULT_SMART_ACTIONS_TOOLBAR_MODE;\n }\n\n try {\n const storedMode = window.localStorage.getItem(\n SMART_ACTIONS_TOOLBAR_MODE_STORAGE_KEY\n );\n\n if (storedMode === 'collapsed' || storedMode === 'expanded') {\n return storedMode;\n }\n } catch {\n return DEFAULT_SMART_ACTIONS_TOOLBAR_MODE;\n }\n\n return DEFAULT_SMART_ACTIONS_TOOLBAR_MODE;\n}\n\nexport function writeStoredToolbarMode(mode: SmartActionsToolbarMode) {\n if (typeof window === 'undefined') {\n return;\n }\n\n try {\n window.localStorage.setItem(SMART_ACTIONS_TOOLBAR_MODE_STORAGE_KEY, mode);\n } catch {\n return;\n }\n window.dispatchEvent(new Event(SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT));\n}\n"],"mappings":"AAEA,OAAO,MAAMA,sCAAsC,GACjD,qCAAqC;AACvC,OAAO,MAAMC,uCAAuC,GAClD,4CAA4C;AAE9C,OAAO,MAAMC,kCAA2D,GACtE,UAAU;AAEZ,OAAO,SAASC,qBAAqBA,CAAA,EAA4B;EAC/D,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;IACjC,OAAOF,kCAAkC;EAC3C;EAEA,IAAI;IACF,MAAMG,UAAU,GAAGD,MAAM,CAACE,YAAY,CAACC,OAAO,CAC5CP,sCACF,CAAC;IAED,IAAIK,UAAU,KAAK,WAAW,IAAIA,UAAU,KAAK,UAAU,EAAE;MAC3D,OAAOA,UAAU;IACnB;EACF,CAAC,CAAC,MAAM;IACN,OAAOH,kCAAkC;EAC3C;EAEA,OAAOA,kCAAkC;AAC3C;AAEA,OAAO,SAASM,sBAAsBA,CAACC,IAA6B,EAAE;EACpE,IAAI,OAAOL,MAAM,KAAK,WAAW,EAAE;IACjC;EACF;EAEA,IAAI;IACFA,MAAM,CAACE,YAAY,CAACI,OAAO,CAACV,sCAAsC,EAAES,IAAI,CAAC;EAC3E,CAAC,CAAC,MAAM;IACN;EACF;EACAL,MAAM,CAACO,aAAa,CAAC,IAAIC,KAAK,CAACX,uCAAuC,CAAC,CAAC;AAC1E","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/smart-actions/internal/toolbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,WAAW,CAAC;AAE/D,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../../src/smart-actions/internal/toolbar/types.ts"],"sourcesContent":["import type { ToolbarAction } from '../../../shared/toolbar-action';\n\nexport type SmartActionsToolbarMode = 'expanded' | 'collapsed';\n\nexport type SmartActionsToolbarAction = ToolbarAction;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SmartActionsToolbarMode } from './types';
|
|
2
|
+
export declare function useSmartActionsToolbarMode(): {
|
|
3
|
+
mode: SmartActionsToolbarMode;
|
|
4
|
+
setMode: (nextMode: SmartActionsToolbarMode) => void;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=use-smart-actions-toolbar-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-smart-actions-toolbar-mode.d.ts","sourceRoot":"","sources":["../../../../src/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAkBvD,wBAAgB,0BAA0B;;wBAOb,uBAAuB;EAKnD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useSyncExternalStore } from 'react';
|
|
5
|
+
import { DEFAULT_SMART_ACTIONS_TOOLBAR_MODE, readStoredToolbarMode, SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT, writeStoredToolbarMode } from './storage';
|
|
6
|
+
function subscribeToToolbarModeChanges(onStoreChange) {
|
|
7
|
+
window.addEventListener('storage', onStoreChange);
|
|
8
|
+
window.addEventListener(SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT, onStoreChange);
|
|
9
|
+
return () => {
|
|
10
|
+
window.removeEventListener('storage', onStoreChange);
|
|
11
|
+
window.removeEventListener(SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT, onStoreChange);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export function useSmartActionsToolbarMode() {
|
|
15
|
+
const $ = _c(3);
|
|
16
|
+
const mode = useSyncExternalStore(subscribeToToolbarModeChanges, readStoredToolbarMode, _temp);
|
|
17
|
+
let t0;
|
|
18
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
19
|
+
t0 = function setMode(nextMode) {
|
|
20
|
+
writeStoredToolbarMode(nextMode);
|
|
21
|
+
};
|
|
22
|
+
$[0] = t0;
|
|
23
|
+
} else {
|
|
24
|
+
t0 = $[0];
|
|
25
|
+
}
|
|
26
|
+
const setMode = t0;
|
|
27
|
+
let t1;
|
|
28
|
+
if ($[1] !== mode) {
|
|
29
|
+
t1 = {
|
|
30
|
+
mode,
|
|
31
|
+
setMode
|
|
32
|
+
};
|
|
33
|
+
$[1] = mode;
|
|
34
|
+
$[2] = t1;
|
|
35
|
+
} else {
|
|
36
|
+
t1 = $[2];
|
|
37
|
+
}
|
|
38
|
+
return t1;
|
|
39
|
+
}
|
|
40
|
+
function _temp() {
|
|
41
|
+
return DEFAULT_SMART_ACTIONS_TOOLBAR_MODE;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=use-smart-actions-toolbar-mode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-smart-actions-toolbar-mode.js","names":["c","_c","useSyncExternalStore","DEFAULT_SMART_ACTIONS_TOOLBAR_MODE","readStoredToolbarMode","SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT","writeStoredToolbarMode","subscribeToToolbarModeChanges","onStoreChange","window","addEventListener","removeEventListener","useSmartActionsToolbarMode","$","mode","_temp","t0","Symbol","for","setMode","nextMode","t1"],"sources":["../../../../src/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.ts"],"sourcesContent":["'use client';\n\nimport { useSyncExternalStore } from 'react';\n\nimport {\n DEFAULT_SMART_ACTIONS_TOOLBAR_MODE,\n readStoredToolbarMode,\n SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT,\n writeStoredToolbarMode,\n} from './storage';\nimport type { SmartActionsToolbarMode } from './types';\n\nfunction subscribeToToolbarModeChanges(onStoreChange: () => void) {\n window.addEventListener('storage', onStoreChange);\n window.addEventListener(\n SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT,\n onStoreChange\n );\n\n return () => {\n window.removeEventListener('storage', onStoreChange);\n window.removeEventListener(\n SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT,\n onStoreChange\n );\n };\n}\n\nexport function useSmartActionsToolbarMode() {\n const mode = useSyncExternalStore(\n subscribeToToolbarModeChanges,\n readStoredToolbarMode,\n () => DEFAULT_SMART_ACTIONS_TOOLBAR_MODE\n );\n\n function setMode(nextMode: SmartActionsToolbarMode) {\n writeStoredToolbarMode(nextMode);\n }\n\n return { mode, setMode };\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,oBAAoB,QAAQ,OAAO;AAE5C,SACEC,kCAAkC,EAClCC,qBAAqB,EACrBC,uCAAuC,EACvCC,sBAAsB,QACjB,WAAW;AAGlB,SAASC,6BAA6BA,CAACC,aAAyB,EAAE;EAChEC,MAAM,CAACC,gBAAgB,CAAC,SAAS,EAAEF,aAAa,CAAC;EACjDC,MAAM,CAACC,gBAAgB,CACrBL,uCAAuC,EACvCG,aACF,CAAC;EAED,OAAO,MAAM;IACXC,MAAM,CAACE,mBAAmB,CAAC,SAAS,EAAEH,aAAa,CAAC;IACpDC,MAAM,CAACE,mBAAmB,CACxBN,uCAAuC,EACvCG,aACF,CAAC;EACH,CAAC;AACH;AAEA,OAAO,SAAAI,2BAAA;EAAA,MAAAC,CAAA,GAAAZ,EAAA;EACL,MAAAa,IAAA,GAAaZ,oBAAoB,CAC/BK,6BAA6B,EAC7BH,qBAAqB,EACrBW,KACF,CAAC;EAAC,IAAAC,EAAA;EAAA,IAAAH,CAAA,QAAAI,MAAA,CAAAC,GAAA;IAEFF,EAAA,YAAAG,QAAAC,QAAA;MACEd,sBAAsB,CAACc,QAAQ,CAAC;IAAA,CACjC;IAAAP,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAFD,MAAAM,OAAA,GAAAH,EAEC;EAAA,IAAAK,EAAA;EAAA,IAAAR,CAAA,QAAAC,IAAA;IAEMO,EAAA;MAAAP,IAAA;MAAAK;IAAgB,CAAC;IAAAN,CAAA,MAAAC,IAAA;IAAAD,CAAA,MAAAQ,EAAA;EAAA;IAAAA,EAAA,GAAAR,CAAA;EAAA;EAAA,OAAjBQ,EAAiB;AAAA;AAXnB,SAAAN,MAAA;EAAA,OAIGZ,kCAAkC;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
|
|
7
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
8
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/smart-actions/internal/ui/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAI5D,iBAAS,eAAe,CAAC,EACvB,aAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,qBAQxD;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAMpD;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,qBAEvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,UAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,qBAiBvD;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
6
|
+
import { cn } from '../../../shared/cn';
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
function TooltipProvider(t0) {
|
|
9
|
+
const $ = _c(6);
|
|
10
|
+
let props;
|
|
11
|
+
let t1;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
({
|
|
14
|
+
delayDuration: t1,
|
|
15
|
+
...props
|
|
16
|
+
} = t0);
|
|
17
|
+
$[0] = t0;
|
|
18
|
+
$[1] = props;
|
|
19
|
+
$[2] = t1;
|
|
20
|
+
} else {
|
|
21
|
+
props = $[1];
|
|
22
|
+
t1 = $[2];
|
|
23
|
+
}
|
|
24
|
+
const delayDuration = t1 === undefined ? 0 : t1;
|
|
25
|
+
let t2;
|
|
26
|
+
if ($[3] !== delayDuration || $[4] !== props) {
|
|
27
|
+
t2 = /*#__PURE__*/_jsx(TooltipPrimitive.Provider, {
|
|
28
|
+
"data-slot": "tooltip-provider",
|
|
29
|
+
delayDuration: delayDuration,
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
$[3] = delayDuration;
|
|
33
|
+
$[4] = props;
|
|
34
|
+
$[5] = t2;
|
|
35
|
+
} else {
|
|
36
|
+
t2 = $[5];
|
|
37
|
+
}
|
|
38
|
+
return t2;
|
|
39
|
+
}
|
|
40
|
+
function Tooltip(t0) {
|
|
41
|
+
const $ = _c(4);
|
|
42
|
+
let props;
|
|
43
|
+
if ($[0] !== t0) {
|
|
44
|
+
({
|
|
45
|
+
...props
|
|
46
|
+
} = t0);
|
|
47
|
+
$[0] = t0;
|
|
48
|
+
$[1] = props;
|
|
49
|
+
} else {
|
|
50
|
+
props = $[1];
|
|
51
|
+
}
|
|
52
|
+
let t1;
|
|
53
|
+
if ($[2] !== props) {
|
|
54
|
+
t1 = /*#__PURE__*/_jsx(TooltipProvider, {
|
|
55
|
+
children: /*#__PURE__*/_jsx(TooltipPrimitive.Root, {
|
|
56
|
+
"data-slot": "tooltip",
|
|
57
|
+
...props
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
$[2] = props;
|
|
61
|
+
$[3] = t1;
|
|
62
|
+
} else {
|
|
63
|
+
t1 = $[3];
|
|
64
|
+
}
|
|
65
|
+
return t1;
|
|
66
|
+
}
|
|
67
|
+
function TooltipTrigger(t0) {
|
|
68
|
+
const $ = _c(4);
|
|
69
|
+
let props;
|
|
70
|
+
if ($[0] !== t0) {
|
|
71
|
+
({
|
|
72
|
+
...props
|
|
73
|
+
} = t0);
|
|
74
|
+
$[0] = t0;
|
|
75
|
+
$[1] = props;
|
|
76
|
+
} else {
|
|
77
|
+
props = $[1];
|
|
78
|
+
}
|
|
79
|
+
let t1;
|
|
80
|
+
if ($[2] !== props) {
|
|
81
|
+
t1 = /*#__PURE__*/_jsx(TooltipPrimitive.Trigger, {
|
|
82
|
+
"data-slot": "tooltip-trigger",
|
|
83
|
+
...props
|
|
84
|
+
});
|
|
85
|
+
$[2] = props;
|
|
86
|
+
$[3] = t1;
|
|
87
|
+
} else {
|
|
88
|
+
t1 = $[3];
|
|
89
|
+
}
|
|
90
|
+
return t1;
|
|
91
|
+
}
|
|
92
|
+
function TooltipContent(t0) {
|
|
93
|
+
const $ = _c(13);
|
|
94
|
+
let children;
|
|
95
|
+
let className;
|
|
96
|
+
let props;
|
|
97
|
+
let t1;
|
|
98
|
+
if ($[0] !== t0) {
|
|
99
|
+
({
|
|
100
|
+
className,
|
|
101
|
+
sideOffset: t1,
|
|
102
|
+
children,
|
|
103
|
+
...props
|
|
104
|
+
} = t0);
|
|
105
|
+
$[0] = t0;
|
|
106
|
+
$[1] = children;
|
|
107
|
+
$[2] = className;
|
|
108
|
+
$[3] = props;
|
|
109
|
+
$[4] = t1;
|
|
110
|
+
} else {
|
|
111
|
+
children = $[1];
|
|
112
|
+
className = $[2];
|
|
113
|
+
props = $[3];
|
|
114
|
+
t1 = $[4];
|
|
115
|
+
}
|
|
116
|
+
const sideOffset = t1 === undefined ? 0 : t1;
|
|
117
|
+
let t2;
|
|
118
|
+
if ($[5] !== className) {
|
|
119
|
+
t2 = cn("nh-root nh:animate-in nh:fade-in-0 nh:zoom-in-95 nh:data-[state=closed]:animate-out nh:data-[state=closed]:fade-out-0 nh:data-[state=closed]:zoom-out-95 nh:data-[side=bottom]:slide-in-from-top-2 nh:data-[side=left]:slide-in-from-right-2 nh:data-[side=right]:slide-in-from-left-2 nh:data-[side=top]:slide-in-from-bottom-2 nh:z-50 nh:w-fit nh:origin-(--radix-tooltip-content-transform-origin) nh:rounded-md nh:bg-(--nh-toolbar-bg-strong) nh:px-3 nh:py-1.5 nh:text-xs nh:text-balance nh:text-(--nh-toolbar-fg)", className);
|
|
120
|
+
$[5] = className;
|
|
121
|
+
$[6] = t2;
|
|
122
|
+
} else {
|
|
123
|
+
t2 = $[6];
|
|
124
|
+
}
|
|
125
|
+
let t3;
|
|
126
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
127
|
+
t3 = /*#__PURE__*/_jsx(TooltipPrimitive.Arrow, {
|
|
128
|
+
className: "nh:z-50 nh:size-2.5 nh:translate-y-[calc(-50%_-_2px)] nh:rotate-45 nh:rounded-[2px] nh:bg-(--nh-toolbar-bg-strong) nh:fill-(--nh-toolbar-bg-strong)"
|
|
129
|
+
});
|
|
130
|
+
$[7] = t3;
|
|
131
|
+
} else {
|
|
132
|
+
t3 = $[7];
|
|
133
|
+
}
|
|
134
|
+
let t4;
|
|
135
|
+
if ($[8] !== children || $[9] !== props || $[10] !== sideOffset || $[11] !== t2) {
|
|
136
|
+
t4 = /*#__PURE__*/_jsx(TooltipPrimitive.Portal, {
|
|
137
|
+
children: /*#__PURE__*/_jsxs(TooltipPrimitive.Content, {
|
|
138
|
+
"data-slot": "tooltip-content",
|
|
139
|
+
sideOffset: sideOffset,
|
|
140
|
+
className: t2,
|
|
141
|
+
...props,
|
|
142
|
+
children: [children, t3]
|
|
143
|
+
})
|
|
144
|
+
});
|
|
145
|
+
$[8] = children;
|
|
146
|
+
$[9] = props;
|
|
147
|
+
$[10] = sideOffset;
|
|
148
|
+
$[11] = t2;
|
|
149
|
+
$[12] = t4;
|
|
150
|
+
} else {
|
|
151
|
+
t4 = $[12];
|
|
152
|
+
}
|
|
153
|
+
return t4;
|
|
154
|
+
}
|
|
155
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
156
|
+
//# sourceMappingURL=tooltip.js.map
|