@nodehive/nextjs 0.1.3 → 0.2.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/README.md +1 -1
- package/dist/auth/index.d.ts +2 -3
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/internal/config.d.ts +15 -5
- package/dist/auth/internal/config.js.map +1 -1
- package/dist/auth/internal/draft-mode.d.ts +2 -3
- package/dist/auth/internal/draft-mode.js +3 -20
- package/dist/auth/internal/draft-mode.js.map +1 -1
- package/dist/auth/internal/editor-locale.d.ts +0 -1
- package/dist/auth/internal/handoff.d.ts +0 -1
- package/dist/auth/internal/has-session.d.ts +0 -1
- package/dist/auth/internal/has-session.js +1 -1
- package/dist/auth/internal/has-session.js.map +1 -1
- package/dist/auth/internal/i18n.d.ts +10 -0
- package/dist/auth/internal/i18n.js +25 -0
- package/dist/auth/internal/i18n.js.map +1 -0
- package/dist/auth/internal/logout.d.ts +1 -2
- package/dist/auth/internal/logout.js +3 -3
- package/dist/auth/internal/logout.js.map +1 -1
- package/dist/auth/internal/next-cookie-storage.d.ts +5 -2
- package/dist/auth/internal/next-cookie-storage.js +8 -1
- package/dist/auth/internal/next-cookie-storage.js.map +1 -1
- package/dist/auth/internal/nodehive-client.d.ts +6 -4
- package/dist/auth/internal/nodehive-client.js +6 -4
- package/dist/auth/internal/nodehive-client.js.map +1 -1
- package/dist/auth/internal/oauth-config.d.ts +0 -1
- package/dist/auth/internal/proxy-helpers.d.ts +0 -1
- package/dist/auth/internal/proxy-helpers.js +4 -4
- package/dist/auth/internal/proxy-helpers.js.map +1 -1
- package/dist/auth/internal/refresh.d.ts +1 -2
- package/dist/auth/internal/refresh.js +4 -4
- package/dist/auth/internal/refresh.js.map +1 -1
- package/dist/auth/internal/require-auth.d.ts +0 -1
- package/dist/auth/internal/require-auth.js +1 -1
- package/dist/auth/internal/require-auth.js.map +1 -1
- package/dist/auth/internal/return-to.d.ts +0 -1
- package/dist/auth/internal/roles.d.ts +17 -0
- package/dist/auth/internal/roles.js +39 -0
- package/dist/auth/internal/roles.js.map +1 -0
- package/dist/auth/internal/routes/callback.d.ts +1 -2
- package/dist/auth/internal/routes/callback.js +6 -6
- package/dist/auth/internal/routes/callback.js.map +1 -1
- package/dist/auth/internal/routes/chips-exchange.d.ts +1 -2
- package/dist/auth/internal/routes/chips-exchange.js +5 -5
- package/dist/auth/internal/routes/chips-exchange.js.map +1 -1
- package/dist/auth/internal/routes/draft.d.ts +1 -2
- package/dist/auth/internal/routes/draft.js +3 -3
- package/dist/auth/internal/routes/draft.js.map +1 -1
- package/dist/auth/internal/routes/index.d.ts +4 -2
- package/dist/auth/internal/routes/index.js +7 -7
- package/dist/auth/internal/routes/index.js.map +1 -1
- package/dist/auth/internal/routes/login.d.ts +0 -1
- package/dist/auth/internal/routes/login.js +3 -3
- package/dist/auth/internal/routes/login.js.map +1 -1
- package/dist/auth/internal/routes/popup-done.d.ts +2 -2
- package/dist/auth/internal/routes/popup-done.js +9 -7
- package/dist/auth/internal/routes/popup-done.js.map +1 -1
- package/dist/auth/internal/routes/refresh.d.ts +2 -5
- package/dist/auth/internal/routes/refresh.js +8 -2
- package/dist/auth/internal/routes/refresh.js.map +1 -1
- package/dist/auth/internal/same-origin.d.ts +0 -1
- package/dist/auth/internal/session-gates.d.ts +27 -3
- package/dist/auth/internal/session-gates.js +35 -3
- package/dist/auth/internal/session-gates.js.map +1 -1
- package/dist/auth/internal/update-session.d.ts +1 -2
- package/dist/auth/internal/update-session.js +1 -1
- package/dist/auth/internal/update-session.js.map +1 -1
- package/dist/auth/internal/use-editor-login.d.ts +0 -1
- package/dist/auth/internal/use-editor-login.js +2 -3
- package/dist/auth/internal/use-editor-login.js.map +1 -1
- package/dist/auth/proxy.d.ts +7 -8
- package/dist/auth/proxy.js +6 -6
- package/dist/auth/proxy.js.map +1 -1
- package/dist/auth/react.d.ts +1 -2
- package/dist/auth/react.js +1 -1
- package/dist/auth/react.js.map +1 -1
- package/dist/auth/routes.d.ts +3 -3
- package/dist/auth/routes.js +1 -1
- package/dist/auth/routes.js.map +1 -1
- package/dist/auth/server.d.ts +14 -12
- package/dist/auth/server.js +14 -9
- package/dist/auth/server.js.map +1 -1
- package/dist/bridge-protocol/index.d.ts +50 -0
- package/dist/bridge-protocol/index.js +25 -0
- package/dist/bridge-protocol/index.js.map +1 -0
- package/dist/puck-editor/editor.d.ts +8 -0
- package/dist/puck-editor/editor.js +9 -0
- package/dist/puck-editor/editor.js.map +1 -0
- package/dist/puck-editor/fields.d.ts +6 -7
- package/dist/puck-editor/fields.js +3 -3
- package/dist/puck-editor/fields.js.map +1 -1
- package/dist/puck-editor/index.d.ts +17 -14
- package/dist/puck-editor/index.js +13 -11
- package/dist/puck-editor/index.js.map +1 -1
- package/dist/puck-editor/internal/api/client.d.ts +19 -4
- package/dist/puck-editor/internal/api/client.js +56 -19
- package/dist/puck-editor/internal/api/client.js.map +1 -1
- package/dist/puck-editor/internal/api/config.d.ts +36 -3
- package/dist/puck-editor/internal/api/config.js.map +1 -1
- package/dist/puck-editor/internal/api/create-puck-api.d.ts +1 -2
- package/dist/puck-editor/internal/api/create-puck-api.js +10 -13
- package/dist/puck-editor/internal/api/create-puck-api.js.map +1 -1
- package/dist/puck-editor/internal/api/handlers/create-page.d.ts +1 -2
- package/dist/puck-editor/internal/api/handlers/create-page.js +6 -4
- package/dist/puck-editor/internal/api/handlers/create-page.js.map +1 -1
- package/dist/puck-editor/internal/api/handlers/entities.d.ts +6 -5
- package/dist/puck-editor/internal/api/handlers/entities.js +60 -15
- package/dist/puck-editor/internal/api/handlers/entities.js.map +1 -1
- package/dist/puck-editor/internal/api/handlers/publish.d.ts +3 -6
- package/dist/puck-editor/internal/api/handlers/publish.js +57 -14
- package/dist/puck-editor/internal/api/handlers/publish.js.map +1 -1
- package/dist/puck-editor/internal/api/handlers/template.d.ts +5 -2
- package/dist/puck-editor/internal/api/handlers/template.js +28 -60
- package/dist/puck-editor/internal/api/handlers/template.js.map +1 -1
- package/dist/puck-editor/internal/api/handlers/upload.d.ts +10 -2
- package/dist/puck-editor/internal/api/handlers/upload.js +93 -28
- package/dist/puck-editor/internal/api/handlers/upload.js.map +1 -1
- package/dist/puck-editor/internal/api/localize-message.d.ts +15 -0
- package/dist/puck-editor/internal/api/localize-message.js +15 -0
- package/dist/puck-editor/internal/api/localize-message.js.map +1 -0
- package/dist/puck-editor/internal/api/media-params.d.ts +3 -3
- package/dist/puck-editor/internal/api/media-params.js +23 -19
- package/dist/puck-editor/internal/api/media-params.js.map +1 -1
- package/dist/puck-editor/internal/api/media-upload.d.ts +5 -3
- package/dist/puck-editor/internal/api/media-upload.js +33 -22
- package/dist/puck-editor/internal/api/media-upload.js.map +1 -1
- package/dist/puck-editor/internal/api/message-codes.d.ts +2 -0
- package/dist/puck-editor/internal/api/message-codes.js +2 -0
- package/dist/puck-editor/internal/api/message-codes.js.map +1 -0
- package/dist/puck-editor/internal/api/space.d.ts +0 -1
- package/dist/puck-editor/internal/api/type-segment.d.ts +2 -0
- package/dist/puck-editor/internal/api/type-segment.js +9 -0
- package/dist/puck-editor/internal/api/type-segment.js.map +1 -0
- package/dist/puck-editor/internal/content-model.d.ts +31 -3
- package/dist/puck-editor/internal/content-model.js +76 -6
- package/dist/puck-editor/internal/content-model.js.map +1 -1
- package/dist/puck-editor/internal/dictionaries.d.ts +225 -0
- package/dist/puck-editor/internal/dictionaries.js +673 -0
- package/dist/puck-editor/internal/dictionaries.js.map +1 -0
- package/dist/puck-editor/internal/editor/allowed-types.d.ts +1 -2
- package/dist/puck-editor/internal/editor/allowed-types.js +2 -2
- package/dist/puck-editor/internal/editor/allowed-types.js.map +1 -1
- package/dist/puck-editor/internal/editor/canvas-add-picker.d.ts +0 -1
- package/dist/puck-editor/internal/editor/canvas-add-picker.js +5 -5
- package/dist/puck-editor/internal/editor/canvas-add-picker.js.map +1 -1
- package/dist/puck-editor/internal/editor/canvas-empty-state.d.ts +0 -1
- package/dist/puck-editor/internal/editor/canvas-empty-state.js +4 -4
- package/dist/puck-editor/internal/editor/canvas-empty-state.js.map +1 -1
- package/dist/puck-editor/internal/editor/canvas-quick-add.d.ts +0 -1
- package/dist/puck-editor/internal/editor/canvas-quick-add.js +8 -8
- package/dist/puck-editor/internal/editor/canvas-quick-add.js.map +1 -1
- package/dist/puck-editor/internal/editor/canvas-scroll.d.ts +0 -1
- package/dist/puck-editor/internal/editor/component-icons.d.ts +1 -2
- package/dist/puck-editor/internal/editor/component-icons.js.map +1 -1
- package/dist/puck-editor/internal/editor/component-item.d.ts +0 -1
- package/dist/puck-editor/internal/editor/component-item.js +2 -2
- package/dist/puck-editor/internal/editor/component-item.js.map +1 -1
- package/dist/puck-editor/internal/editor/compose-save-issues.d.ts +15 -0
- package/dist/puck-editor/internal/editor/compose-save-issues.js +16 -0
- package/dist/puck-editor/internal/editor/compose-save-issues.js.map +1 -0
- package/dist/puck-editor/internal/editor/dirty-state.d.ts +3 -0
- package/dist/puck-editor/internal/editor/dirty-state.js +7 -0
- package/dist/puck-editor/internal/editor/dirty-state.js.map +1 -0
- package/dist/puck-editor/internal/editor/draft-restore-banner.d.ts +9 -0
- package/dist/puck-editor/internal/editor/draft-restore-banner.js +289 -0
- package/dist/puck-editor/internal/editor/draft-restore-banner.js.map +1 -0
- package/dist/puck-editor/internal/editor/draft-storage.d.ts +41 -0
- package/dist/puck-editor/internal/editor/draft-storage.js +129 -0
- package/dist/puck-editor/internal/editor/draft-storage.js.map +1 -0
- package/dist/puck-editor/internal/editor/editor-action-bar.d.ts +0 -1
- package/dist/puck-editor/internal/editor/editor-action-bar.js +4 -4
- package/dist/puck-editor/internal/editor/editor-action-bar.js.map +1 -1
- package/dist/puck-editor/internal/editor/editor-header-actions.d.ts +6 -4
- package/dist/puck-editor/internal/editor/editor-header-actions.js +119 -60
- package/dist/puck-editor/internal/editor/editor-header-actions.js.map +1 -1
- package/dist/puck-editor/internal/editor/find-missing-required-fields.d.ts +0 -1
- package/dist/puck-editor/internal/editor/grouped-drawer-panel.d.ts +1 -2
- package/dist/puck-editor/internal/editor/grouped-drawer-panel.js +6 -6
- package/dist/puck-editor/internal/editor/grouped-drawer-panel.js.map +1 -1
- package/dist/puck-editor/internal/editor/grouped-entry-list.d.ts +1 -2
- package/dist/puck-editor/internal/editor/grouped-entry-list.js +3 -3
- package/dist/puck-editor/internal/editor/grouped-entry-list.js.map +1 -1
- package/dist/puck-editor/internal/editor/header-save-button.d.ts +4 -4
- package/dist/puck-editor/internal/editor/header-save-button.js +66 -27
- package/dist/puck-editor/internal/editor/header-save-button.js.map +1 -1
- package/dist/puck-editor/internal/editor/leave-confirm-dialog.d.ts +5 -0
- package/dist/puck-editor/internal/editor/leave-confirm-dialog.js +140 -0
- package/dist/puck-editor/internal/editor/leave-confirm-dialog.js.map +1 -0
- package/dist/puck-editor/internal/editor/page-template-picker.d.ts +0 -1
- package/dist/puck-editor/internal/editor/page-template-picker.js +5 -5
- package/dist/puck-editor/internal/editor/page-template-picker.js.map +1 -1
- package/dist/puck-editor/internal/editor/picker-entry-item.d.ts +1 -2
- package/dist/puck-editor/internal/editor/picker-entry-item.js +4 -4
- package/dist/puck-editor/internal/editor/picker-entry-item.js.map +1 -1
- package/dist/puck-editor/internal/editor/picker-model.d.ts +14 -5
- package/dist/puck-editor/internal/editor/picker-model.js +157 -132
- package/dist/puck-editor/internal/editor/picker-model.js.map +1 -1
- package/dist/puck-editor/internal/editor/publish-puck-data.d.ts +18 -4
- package/dist/puck-editor/internal/editor/publish-puck-data.js +25 -4
- package/dist/puck-editor/internal/editor/publish-puck-data.js.map +1 -1
- package/dist/puck-editor/internal/editor/puck-editor.d.ts +6 -4
- package/dist/puck-editor/internal/editor/puck-editor.js +270 -209
- package/dist/puck-editor/internal/editor/puck-editor.js.map +1 -1
- package/dist/puck-editor/internal/editor/save-guard.d.ts +15 -0
- package/dist/puck-editor/internal/editor/save-guard.js +30 -0
- package/dist/puck-editor/internal/editor/save-guard.js.map +1 -0
- package/dist/puck-editor/internal/editor/save-page-context.d.ts +8 -0
- package/dist/puck-editor/internal/editor/save-page-context.js +34 -0
- package/dist/puck-editor/internal/editor/save-page-context.js.map +1 -0
- package/dist/puck-editor/internal/editor/section-template-modal.d.ts +0 -1
- package/dist/puck-editor/internal/editor/section-template-modal.js +2 -2
- package/dist/puck-editor/internal/editor/section-template-modal.js.map +1 -1
- package/dist/puck-editor/internal/editor/unsaved-changes-guard.d.ts +3 -0
- package/dist/puck-editor/internal/editor/unsaved-changes-guard.js +38 -0
- package/dist/puck-editor/internal/editor/unsaved-changes-guard.js.map +1 -0
- package/dist/puck-editor/internal/editor/use-dirty-baseline.d.ts +5 -0
- package/dist/puck-editor/internal/editor/use-dirty-baseline.js +72 -0
- package/dist/puck-editor/internal/editor/use-dirty-baseline.js.map +1 -0
- package/dist/puck-editor/internal/editor/use-draft-recovery.d.ts +16 -0
- package/dist/puck-editor/internal/editor/use-draft-recovery.js +194 -0
- package/dist/puck-editor/internal/editor/use-draft-recovery.js.map +1 -0
- package/dist/puck-editor/internal/editor/use-frame-zoom.d.ts +0 -1
- package/dist/puck-editor/internal/editor/use-is-dirty.d.ts +1 -0
- package/dist/puck-editor/internal/editor/use-is-dirty.js +32 -0
- package/dist/puck-editor/internal/editor/use-is-dirty.js.map +1 -0
- package/dist/puck-editor/internal/editor/use-scroll-lock-outside.d.ts +0 -1
- package/dist/puck-editor/internal/editor-config.d.ts +16 -3
- package/dist/puck-editor/internal/editor-config.js +8 -1
- package/dist/puck-editor/internal/editor-config.js.map +1 -1
- package/dist/puck-editor/internal/editor-query-client.d.ts +0 -1
- package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.d.ts +0 -1
- package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.js +2 -2
- package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.d.ts +0 -1
- package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.js +1 -1
- package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.d.ts +0 -1
- package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.js +1 -1
- package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/date-picker/date-picker.d.ts +0 -1
- package/dist/puck-editor/internal/fields/date-picker/date-picker.js +90 -73
- package/dist/puck-editor/internal/fields/date-picker/date-picker.js.map +1 -1
- package/dist/puck-editor/internal/fields/index.d.ts +10 -10
- package/dist/puck-editor/internal/fields/index.js +10 -9
- package/dist/puck-editor/internal/fields/index.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/anchor.d.ts +0 -1
- package/dist/puck-editor/internal/fields/link-picker/anchor.js +1 -1
- package/dist/puck-editor/internal/fields/link-picker/anchor.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/create-link-field.d.ts +1 -2
- package/dist/puck-editor/internal/fields/link-picker/create-link-field.js +1 -1
- package/dist/puck-editor/internal/fields/link-picker/create-link-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/humanize.d.ts +0 -1
- package/dist/puck-editor/internal/fields/link-picker/link-picker-control.d.ts +0 -1
- package/dist/puck-editor/internal/fields/link-picker/link-picker-control.js +208 -140
- package/dist/puck-editor/internal/fields/link-picker/link-picker-control.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/link-picker-field.d.ts +1 -2
- package/dist/puck-editor/internal/fields/link-picker/link-picker-field.js +6 -6
- package/dist/puck-editor/internal/fields/link-picker/link-picker-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/link-value.d.ts +25 -5
- package/dist/puck-editor/internal/fields/link-picker/link-value.js +56 -6
- package/dist/puck-editor/internal/fields/link-picker/link-value.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.d.ts +0 -1
- package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.js +4 -4
- package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/richtext-extensions.d.ts +0 -1
- package/dist/puck-editor/internal/fields/link-picker/segmented-control.d.ts +0 -1
- package/dist/puck-editor/internal/fields/link-picker/segmented-control.js +3 -3
- package/dist/puck-editor/internal/fields/link-picker/segmented-control.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/types.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-array/create-media-array-field.d.ts +2 -3
- package/dist/puck-editor/internal/fields/media-array/create-media-array-field.js +1 -1
- package/dist/puck-editor/internal/fields/media-array/create-media-array-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-array/media-array-field.d.ts +2 -3
- package/dist/puck-editor/internal/fields/media-array/media-array-field.js +100 -88
- package/dist/puck-editor/internal/fields/media-array/media-array-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-array/reorder.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.d.ts +2 -3
- package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.js +1 -1
- package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.d.ts +1 -2
- package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.js +4 -4
- package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-selector/crop-types.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-selector/extract-fields.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-selector/image-upload-form.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-selector/image-upload-form.js +19 -10
- package/dist/puck-editor/internal/fields/media-selector/image-upload-form.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.d.ts +7 -3
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.js +29 -22
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.d.ts +1 -2
- package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.js +281 -255
- package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-selector/use-debounced-value.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-selector/use-media-library.d.ts +15 -2
- package/dist/puck-editor/internal/fields/media-selector/use-media-library.js +23 -18
- package/dist/puck-editor/internal/fields/media-selector/use-media-library.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-selector/video-upload-form.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-selector/video-upload-form.js +12 -6
- package/dist/puck-editor/internal/fields/media-selector/video-upload-form.js.map +1 -1
- package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.d.ts +0 -1
- package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.js +2 -2
- package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/required-field-label.d.ts +0 -1
- package/dist/puck-editor/internal/fields/required-field-label.js +1 -1
- package/dist/puck-editor/internal/fields/required-field-label.js.map +1 -1
- package/dist/puck-editor/internal/fields/required.d.ts +0 -1
- package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.d.ts +13 -3
- package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.js +32 -22
- package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.js.map +1 -1
- package/dist/puck-editor/internal/i18n.d.ts +2 -181
- package/dist/puck-editor/internal/i18n.js +2 -358
- package/dist/puck-editor/internal/i18n.js.map +1 -1
- package/dist/puck-editor/internal/locale.d.ts +0 -1
- package/dist/puck-editor/internal/localize.d.ts +1 -2
- package/dist/puck-editor/internal/localize.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.d.ts +3 -3
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.js +41 -32
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.js +2 -2
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.d.ts +3 -3
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.js +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/catalog.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/constants.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/create-page.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/find-component-location.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/help.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/index.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/agent-plugin/index.js +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/index.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/list-media.d.ts +2 -2
- package/dist/puck-editor/internal/plugins/agent-plugin/list-media.js +4 -3
- package/dist/puck-editor/internal/plugins/agent-plugin/list-media.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/templates.d.ts +5 -6
- package/dist/puck-editor/internal/plugins/agent-plugin/templates.js +2 -2
- package/dist/puck-editor/internal/plugins/agent-plugin/templates.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/upload-media.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.js +2 -2
- package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.js.map +1 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.js +3 -3
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.js.map +1 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.js +1 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.js.map +1 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/index.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/blocks-plugin/index.js +1 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/index.js.map +1 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/index.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/outline-plugin/index.js +1 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/index.js.map +1 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.js +8 -8
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.js.map +1 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.js +1 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.js.map +1 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-tree.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/index.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/sections-plugin/index.js +1 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/index.js.map +1 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.js +5 -5
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.js.map +1 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.js +1 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.js +2 -2
- package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.js +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.js +3 -3
- package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.js +224 -219
- package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/index.d.ts +5 -6
- package/dist/puck-editor/internal/plugins/templates-plugin/index.js +5 -5
- package/dist/puck-editor/internal/plugins/templates-plugin/index.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.js +3 -3
- package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/template-form.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/templates-plugin/template-form.js +17 -16
- package/dist/puck-editor/internal/plugins/templates-plugin/template-form.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.js +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.js +171 -161
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.js +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates.d.ts +2 -3
- package/dist/puck-editor/internal/plugins/templates-plugin/templates.js +9 -2
- package/dist/puck-editor/internal/plugins/templates-plugin/templates.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.js +22 -20
- package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.d.ts +14 -5
- package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.js +23 -15
- package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.js.map +1 -1
- package/dist/puck-editor/internal/puck-augmentation.d.ts +0 -1
- package/dist/puck-editor/internal/puck-editor-provider.d.ts +0 -1
- package/dist/puck-editor/internal/puck-node.d.ts +0 -1
- package/dist/puck-editor/internal/puck-props.d.ts +13 -0
- package/dist/puck-editor/internal/puck-props.js +2 -0
- package/dist/puck-editor/internal/puck-props.js.map +1 -0
- package/dist/puck-editor/internal/puck-wrapper.d.ts +25 -6
- package/dist/puck-editor/internal/puck-wrapper.js +124 -115
- package/dist/puck-editor/internal/puck-wrapper.js.map +1 -1
- package/dist/puck-editor/internal/render/cropped-image.d.ts +1 -2
- package/dist/puck-editor/internal/render/cropped-image.js.map +1 -1
- package/dist/puck-editor/internal/smart-actions/action-selection.d.ts +8 -0
- package/dist/puck-editor/internal/smart-actions/action-selection.js +10 -0
- package/dist/puck-editor/internal/smart-actions/action-selection.js.map +1 -0
- package/dist/puck-editor/internal/smart-actions/index.d.ts +10 -4
- package/dist/puck-editor/internal/smart-actions/index.js +27 -12
- package/dist/puck-editor/internal/smart-actions/index.js.map +1 -1
- package/dist/puck-editor/internal/smart-actions/new-page.d.ts +3 -2
- package/dist/puck-editor/internal/smart-actions/new-page.js +6 -6
- package/dist/puck-editor/internal/smart-actions/new-page.js.map +1 -1
- package/dist/puck-editor/internal/smart-actions/open-puck-editor.d.ts +3 -2
- package/dist/puck-editor/internal/smart-actions/open-puck-editor.js +49 -37
- package/dist/puck-editor/internal/smart-actions/open-puck-editor.js.map +1 -1
- package/dist/puck-editor/internal/ui/calendar.d.ts +0 -1
- package/dist/puck-editor/internal/ui/calendar.js +1 -1
- package/dist/puck-editor/internal/ui/calendar.js.map +1 -1
- package/dist/puck-editor/internal/ui/component-list-accordion.d.ts +0 -1
- package/dist/puck-editor/internal/ui/dialog.d.ts +0 -1
- package/dist/puck-editor/internal/ui/dialog.js +33 -20
- package/dist/puck-editor/internal/ui/dialog.js.map +1 -1
- package/dist/puck-editor/internal/ui/drawer-item-content.d.ts +0 -1
- package/dist/puck-editor/internal/ui/icon-button.d.ts +0 -1
- package/dist/puck-editor/internal/ui/icon-button.js +1 -1
- package/dist/puck-editor/internal/ui/icon-button.js.map +1 -1
- package/dist/puck-editor/internal/ui/load-error-notice.d.ts +6 -0
- package/dist/puck-editor/internal/ui/load-error-notice.js +81 -0
- package/dist/puck-editor/internal/ui/load-error-notice.js.map +1 -0
- package/dist/puck-editor/internal/ui/popover.d.ts +0 -1
- package/dist/puck-editor/internal/ui/popover.js +1 -1
- package/dist/puck-editor/internal/ui/popover.js.map +1 -1
- package/dist/puck-editor/internal/ui/required-mark.d.ts +0 -1
- package/dist/puck-editor/internal/ui/search-control.d.ts +0 -1
- package/dist/puck-editor/internal/ui/search-control.js +3 -3
- package/dist/puck-editor/internal/ui/search-control.js.map +1 -1
- package/dist/puck-editor/internal/ui/use-panel-search-focus.d.ts +0 -1
- package/dist/puck-editor/internal/use-puck-overlay.d.ts +1 -2
- package/dist/puck-editor/internal/use-puck-overlay.js +6 -5
- package/dist/puck-editor/internal/use-puck-overlay.js.map +1 -1
- package/dist/puck-editor/internal/utils.d.ts +0 -1
- package/dist/puck-editor/render.d.ts +2 -3
- package/dist/puck-editor/render.js +1 -1
- package/dist/puck-editor/render.js.map +1 -1
- package/dist/puck-editor/server.d.ts +3 -4
- package/dist/puck-editor/server.js +1 -1
- package/dist/puck-editor/server.js.map +1 -1
- package/dist/puck-editor/smart-actions.d.ts +1 -2
- package/dist/puck-editor/smart-actions.js +1 -1
- package/dist/puck-editor/smart-actions.js.map +1 -1
- package/dist/shared/cn.d.ts +0 -1
- package/dist/shared/i18n.d.ts +0 -1
- package/dist/shared/revalidate-path.d.ts +1 -0
- package/dist/shared/revalidate-path.js +2 -0
- package/dist/shared/revalidate-path.js.map +1 -0
- package/dist/shared/toolbar-action.d.ts +0 -1
- package/dist/shared/use-is-hydrated.d.ts +0 -1
- package/dist/shared/use-is-in-iframe.d.ts +0 -1
- package/dist/shared/use-is-in-iframe.js +1 -1
- package/dist/shared/use-is-in-iframe.js.map +1 -1
- package/dist/smart-actions/internal/assemble-smart-actions.d.ts +14 -0
- package/dist/smart-actions/internal/assemble-smart-actions.js +11 -0
- package/dist/smart-actions/internal/assemble-smart-actions.js.map +1 -0
- package/dist/smart-actions/internal/backend-edit-link.d.ts +6 -0
- package/dist/smart-actions/internal/backend-edit-link.js +60 -0
- package/dist/smart-actions/internal/backend-edit-link.js.map +1 -0
- package/dist/smart-actions/internal/get-smart-actions-context.d.ts +1 -2
- package/dist/smart-actions/internal/get-smart-actions-context.js +2 -2
- package/dist/smart-actions/internal/get-smart-actions-context.js.map +1 -1
- package/dist/smart-actions/internal/i18n.d.ts +1 -2
- package/dist/smart-actions/internal/i18n.js +16 -2
- package/dist/smart-actions/internal/i18n.js.map +1 -1
- package/dist/smart-actions/internal/logout-form.d.ts +2 -2
- package/dist/smart-actions/internal/logout-form.js +47 -40
- package/dist/smart-actions/internal/logout-form.js.map +1 -1
- package/dist/smart-actions/internal/refresh-page.d.ts +3 -2
- package/dist/smart-actions/internal/refresh-page.js +60 -53
- package/dist/smart-actions/internal/refresh-page.js.map +1 -1
- package/dist/smart-actions/internal/smart-actions-button.d.ts +22 -4
- package/dist/smart-actions/internal/smart-actions-button.js +36 -13
- package/dist/smart-actions/internal/smart-actions-button.js.map +1 -1
- package/dist/smart-actions/internal/smart-actions-config.d.ts +12 -4
- package/dist/smart-actions/internal/smart-actions-config.js +36 -80
- package/dist/smart-actions/internal/smart-actions-config.js.map +1 -1
- package/dist/smart-actions/internal/smart-actions-toolbar-client.d.ts +5 -11
- package/dist/smart-actions/internal/smart-actions-toolbar-client.js +13 -53
- package/dist/smart-actions/internal/smart-actions-toolbar-client.js.map +1 -1
- package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.d.ts +1 -2
- package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.js +4 -4
- package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.js.map +1 -1
- package/dist/smart-actions/internal/toolbar/storage.d.ts +1 -2
- package/dist/smart-actions/internal/toolbar/storage.js.map +1 -1
- package/dist/smart-actions/internal/toolbar/types.d.ts +1 -2
- package/dist/smart-actions/internal/toolbar/types.js.map +1 -1
- package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.d.ts +1 -2
- package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.js +1 -1
- package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.js.map +1 -1
- package/dist/smart-actions/internal/ui/tooltip.d.ts +0 -1
- package/dist/smart-actions/internal/ui/tooltip.js +1 -1
- package/dist/smart-actions/internal/ui/tooltip.js.map +1 -1
- package/dist/smart-actions/internal/user-profile.d.ts +0 -1
- package/dist/smart-actions/internal/user-profile.js +71 -24
- package/dist/smart-actions/internal/user-profile.js.map +1 -1
- package/dist/smart-actions/server.d.ts +5 -4
- package/dist/smart-actions/server.js +2 -2
- package/dist/smart-actions/server.js.map +1 -1
- package/dist/theme.css +1 -1
- package/dist/visual-editor/index.d.ts +3 -4
- package/dist/visual-editor/index.js +3 -3
- package/dist/visual-editor/index.js.map +1 -1
- package/dist/visual-editor/internal/bridge/connector.d.ts +4 -3
- package/dist/visual-editor/internal/bridge/connector.js +22 -21
- package/dist/visual-editor/internal/bridge/connector.js.map +1 -1
- package/dist/visual-editor/internal/bridge/draft-mode-self-heal.d.ts +0 -1
- package/dist/visual-editor/internal/bridge/editor-auth-gate-server.d.ts +5 -3
- package/dist/visual-editor/internal/bridge/editor-auth-gate-server.js +7 -8
- package/dist/visual-editor/internal/bridge/editor-auth-gate-server.js.map +1 -1
- package/dist/visual-editor/internal/bridge/editor-auth-gate.d.ts +3 -3
- package/dist/visual-editor/internal/bridge/editor-auth-gate.js +4 -2
- package/dist/visual-editor/internal/bridge/editor-auth-gate.js.map +1 -1
- package/dist/visual-editor/internal/i18n.d.ts +3 -2
- package/dist/visual-editor/internal/i18n.js +32 -4
- package/dist/visual-editor/internal/i18n.js.map +1 -1
- package/dist/visual-editor/internal/overlays/drupal-origin.d.ts +1 -7
- package/dist/visual-editor/internal/overlays/drupal-origin.js +16 -3
- package/dist/visual-editor/internal/overlays/drupal-origin.js.map +1 -1
- package/dist/visual-editor/internal/overlays/edit-button.d.ts +5 -4
- package/dist/visual-editor/internal/overlays/edit-button.js +46 -44
- package/dist/visual-editor/internal/overlays/edit-button.js.map +1 -1
- package/dist/visual-editor/internal/overlays/edit-icon.d.ts +0 -1
- package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.d.ts +11 -2
- package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.js +18 -7
- package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.js.map +1 -1
- package/dist/visual-editor/internal/overlays/iframe-wrapper.d.ts +0 -1
- package/dist/visual-editor/internal/overlays/iframe-wrapper.js +1 -1
- package/dist/visual-editor/internal/overlays/iframe-wrapper.js.map +1 -1
- package/dist/visual-editor/internal/overlays/menu/menu-wrapper.d.ts +12 -3
- package/dist/visual-editor/internal/overlays/menu/menu-wrapper.js +14 -5
- package/dist/visual-editor/internal/overlays/menu/menu-wrapper.js.map +1 -1
- package/dist/visual-editor/internal/overlays/node/node-metadata.d.ts +4 -2
- package/dist/visual-editor/internal/overlays/node/node-metadata.js +10 -4
- package/dist/visual-editor/internal/overlays/node/node-metadata.js.map +1 -1
- package/dist/visual-editor/internal/overlays/node/node-wrapper.d.ts +5 -3
- package/dist/visual-editor/internal/overlays/node/node-wrapper.js +4 -2
- package/dist/visual-editor/internal/overlays/node/node-wrapper.js.map +1 -1
- package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.d.ts +11 -2
- package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.js +18 -7
- package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.js.map +1 -1
- package/dist/visual-editor/internal/revalidate-route.d.ts +0 -1
- package/dist/visual-editor/internal/revalidate-route.js +1 -1
- package/dist/visual-editor/internal/revalidate-route.js.map +1 -1
- package/dist/visual-editor/server.d.ts +6 -7
- package/dist/visual-editor/server.js +6 -6
- package/dist/visual-editor/server.js.map +1 -1
- package/package.json +19 -3
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/internal/config.d.ts.map +0 -1
- package/dist/auth/internal/draft-mode.d.ts.map +0 -1
- package/dist/auth/internal/editor-locale.d.ts.map +0 -1
- package/dist/auth/internal/handoff.d.ts.map +0 -1
- package/dist/auth/internal/has-session.d.ts.map +0 -1
- package/dist/auth/internal/logout.d.ts.map +0 -1
- package/dist/auth/internal/next-cookie-storage.d.ts.map +0 -1
- package/dist/auth/internal/nodehive-client.d.ts.map +0 -1
- package/dist/auth/internal/oauth-config.d.ts.map +0 -1
- package/dist/auth/internal/proxy-helpers.d.ts.map +0 -1
- package/dist/auth/internal/refresh.d.ts.map +0 -1
- package/dist/auth/internal/require-auth.d.ts.map +0 -1
- package/dist/auth/internal/return-to.d.ts.map +0 -1
- package/dist/auth/internal/routes/callback.d.ts.map +0 -1
- package/dist/auth/internal/routes/chips-exchange.d.ts.map +0 -1
- package/dist/auth/internal/routes/draft.d.ts.map +0 -1
- package/dist/auth/internal/routes/index.d.ts.map +0 -1
- package/dist/auth/internal/routes/login.d.ts.map +0 -1
- package/dist/auth/internal/routes/popup-done.d.ts.map +0 -1
- package/dist/auth/internal/routes/refresh.d.ts.map +0 -1
- package/dist/auth/internal/same-origin.d.ts.map +0 -1
- package/dist/auth/internal/session-gates.d.ts.map +0 -1
- package/dist/auth/internal/update-session.d.ts.map +0 -1
- package/dist/auth/internal/use-editor-login.d.ts.map +0 -1
- package/dist/auth/proxy.d.ts.map +0 -1
- package/dist/auth/react.d.ts.map +0 -1
- package/dist/auth/routes.d.ts.map +0 -1
- package/dist/auth/server.d.ts.map +0 -1
- package/dist/puck-editor/fields.d.ts.map +0 -1
- package/dist/puck-editor/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/client.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/config.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/create-puck-api.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/handlers/create-page.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/handlers/entities.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/handlers/publish.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/handlers/template.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/handlers/upload.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/media-params.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/media-upload.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/space.d.ts.map +0 -1
- package/dist/puck-editor/internal/content-model.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/allowed-types.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/canvas-add-picker.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/canvas-empty-state.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/canvas-quick-add.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/canvas-scroll.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/component-icons.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/component-item.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/editor-action-bar.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/editor-header-actions.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/find-missing-required-fields.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/grouped-drawer-panel.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/grouped-entry-list.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/header-save-button.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/page-template-picker.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/picker-entry-item.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/picker-model.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/publish-puck-data.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/puck-editor.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/section-template-modal.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/use-frame-zoom.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/use-scroll-lock-outside.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor-config.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor-query-client.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/date-picker/date-picker.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/anchor.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/create-link-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/humanize.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/link-picker-control.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/link-picker-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/link-value.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/richtext-extensions.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/segmented-control.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/types.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-array/create-media-array-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-array/media-array-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-array/reorder.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/crop-types.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/extract-fields.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/image-upload-form.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/use-debounced-value.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/use-media-library.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/video-upload-form.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/required-field-label.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/required.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/i18n.d.ts.map +0 -1
- package/dist/puck-editor/internal/locale.d.ts.map +0 -1
- package/dist/puck-editor/internal/localize.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/catalog.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/constants.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/create-page.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/find-component-location.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/help.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/list-media.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/templates.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/upload-media.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-tree.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/template-form.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.d.ts.map +0 -1
- package/dist/puck-editor/internal/puck-augmentation.d.ts.map +0 -1
- package/dist/puck-editor/internal/puck-editor-provider.d.ts.map +0 -1
- package/dist/puck-editor/internal/puck-node.d.ts.map +0 -1
- package/dist/puck-editor/internal/puck-wrapper.d.ts.map +0 -1
- package/dist/puck-editor/internal/render/cropped-image.d.ts.map +0 -1
- package/dist/puck-editor/internal/smart-actions/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/smart-actions/new-page.d.ts.map +0 -1
- package/dist/puck-editor/internal/smart-actions/open-puck-editor.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/calendar.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/component-list-accordion.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/dialog.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/drawer-item-content.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/icon-button.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/popover.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/required-mark.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/search-control.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/use-panel-search-focus.d.ts.map +0 -1
- package/dist/puck-editor/internal/use-puck-overlay.d.ts.map +0 -1
- package/dist/puck-editor/internal/utils.d.ts.map +0 -1
- package/dist/puck-editor/render.d.ts.map +0 -1
- package/dist/puck-editor/server.d.ts.map +0 -1
- package/dist/puck-editor/smart-actions.d.ts.map +0 -1
- package/dist/shared/cn.d.ts.map +0 -1
- package/dist/shared/i18n.d.ts.map +0 -1
- package/dist/shared/toolbar-action.d.ts.map +0 -1
- package/dist/shared/use-is-hydrated.d.ts.map +0 -1
- package/dist/shared/use-is-in-iframe.d.ts.map +0 -1
- package/dist/smart-actions/internal/get-smart-actions-context.d.ts.map +0 -1
- package/dist/smart-actions/internal/i18n.d.ts.map +0 -1
- package/dist/smart-actions/internal/logout-form.d.ts.map +0 -1
- package/dist/smart-actions/internal/refresh-page.d.ts.map +0 -1
- package/dist/smart-actions/internal/smart-actions-button.d.ts.map +0 -1
- package/dist/smart-actions/internal/smart-actions-config.d.ts.map +0 -1
- package/dist/smart-actions/internal/smart-actions-toolbar-client.d.ts.map +0 -1
- package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.d.ts.map +0 -1
- package/dist/smart-actions/internal/toolbar/storage.d.ts.map +0 -1
- package/dist/smart-actions/internal/toolbar/types.d.ts.map +0 -1
- package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.d.ts.map +0 -1
- package/dist/smart-actions/internal/ui/tooltip.d.ts.map +0 -1
- package/dist/smart-actions/internal/user-profile.d.ts.map +0 -1
- package/dist/smart-actions/server.d.ts.map +0 -1
- package/dist/visual-editor/index.d.ts.map +0 -1
- package/dist/visual-editor/internal/bridge/connector.d.ts.map +0 -1
- package/dist/visual-editor/internal/bridge/draft-mode-self-heal.d.ts.map +0 -1
- package/dist/visual-editor/internal/bridge/editor-auth-gate-server.d.ts.map +0 -1
- package/dist/visual-editor/internal/bridge/editor-auth-gate.d.ts.map +0 -1
- package/dist/visual-editor/internal/i18n.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/drupal-origin.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/edit-button.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/edit-icon.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/iframe-wrapper.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/menu/menu-wrapper.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/node/node-metadata.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/node/node-wrapper.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.d.ts.map +0 -1
- package/dist/visual-editor/internal/revalidate-route.d.ts.map +0 -1
- package/dist/visual-editor/server.d.ts.map +0 -1
|
@@ -1,101 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { cn } from '../../shared/cn';
|
|
6
|
-
import LogoutForm from './logout-form';
|
|
7
|
-
import RefreshPage from './refresh-page';
|
|
8
|
-
import UserProfile from './user-profile';
|
|
9
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import BackendEditLink from "./backend-edit-link.js";
|
|
2
|
+
import LogoutForm from "./logout-form.js";
|
|
3
|
+
import RefreshPage from "./refresh-page.js";
|
|
4
|
+
import UserProfile from "./user-profile.js";
|
|
10
5
|
export function getSmartActionsConfig({
|
|
11
6
|
lang,
|
|
12
7
|
backendEditUrl,
|
|
13
8
|
userImageUrl,
|
|
14
9
|
labels,
|
|
15
10
|
logout,
|
|
16
|
-
|
|
11
|
+
accountHref,
|
|
12
|
+
extraActions = [],
|
|
13
|
+
buildActions
|
|
17
14
|
}) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
let t0;
|
|
21
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
22
|
-
t0 = /*#__PURE__*/_jsx(UserProfile, {
|
|
23
|
-
href: `/${lang}/nodehive/account`,
|
|
24
|
-
imageUrl: userImageUrl,
|
|
25
|
-
label: labels.account
|
|
26
|
-
});
|
|
27
|
-
$[0] = t0;
|
|
28
|
-
} else {
|
|
29
|
-
t0 = $[0];
|
|
30
|
-
}
|
|
31
|
-
return t0;
|
|
32
|
-
}
|
|
33
|
-
function BackendEditAction() {
|
|
34
|
-
const $ = _c(1);
|
|
35
|
-
if (!backendEditUrl) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
let t0;
|
|
39
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
40
|
-
t0 = /*#__PURE__*/_jsxs("a", {
|
|
41
|
-
href: backendEditUrl,
|
|
42
|
-
target: "_blank",
|
|
43
|
-
rel: "noreferrer",
|
|
44
|
-
className: cn("nh:flex nh:h-8 nh:w-8 nh:cursor-pointer nh:items-center nh:justify-center nh:rounded-full nh:text-(--nh-primary-fg) nh:transition-colors nh:hover:bg-(--nh-toolbar-bg) nh:focus-visible:ring-2 nh:focus-visible:ring-(--nh-toolbar-fg) nh:focus-visible:ring-offset-2 nh:focus-visible:ring-offset-(--nh-toolbar-bg-strong) nh:focus-visible:outline-none"),
|
|
45
|
-
children: [/*#__PURE__*/_jsx("span", {
|
|
46
|
-
className: "nh:sr-only",
|
|
47
|
-
children: labels.nodeHive
|
|
48
|
-
}), /*#__PURE__*/_jsx(ExternalLink, {
|
|
49
|
-
className: "nh:h-5 nh:w-5"
|
|
50
|
-
})]
|
|
51
|
-
});
|
|
52
|
-
$[0] = t0;
|
|
53
|
-
} else {
|
|
54
|
-
t0 = $[0];
|
|
55
|
-
}
|
|
56
|
-
return t0;
|
|
57
|
-
}
|
|
58
|
-
function RefreshAction() {
|
|
59
|
-
const $ = _c(1);
|
|
60
|
-
let t0;
|
|
61
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
62
|
-
t0 = /*#__PURE__*/_jsx(RefreshPage, {});
|
|
63
|
-
$[0] = t0;
|
|
64
|
-
} else {
|
|
65
|
-
t0 = $[0];
|
|
66
|
-
}
|
|
67
|
-
return t0;
|
|
68
|
-
}
|
|
69
|
-
function LogoutAction() {
|
|
70
|
-
const $ = _c(1);
|
|
71
|
-
let t0;
|
|
72
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
73
|
-
t0 = /*#__PURE__*/_jsx(LogoutForm, {
|
|
74
|
-
logout: logout
|
|
75
|
-
});
|
|
76
|
-
$[0] = t0;
|
|
77
|
-
} else {
|
|
78
|
-
t0 = $[0];
|
|
79
|
-
}
|
|
80
|
-
return t0;
|
|
81
|
-
}
|
|
82
|
-
return [{
|
|
15
|
+
const profileHref = accountHref === undefined ? `/${lang}/nodehive/account` : accountHref;
|
|
16
|
+
const profile = profileHref === null ? null : {
|
|
83
17
|
id: 'user-profile',
|
|
84
18
|
label: labels.account,
|
|
85
|
-
Component:
|
|
86
|
-
|
|
19
|
+
Component: UserProfile,
|
|
20
|
+
props: {
|
|
21
|
+
href: profileHref,
|
|
22
|
+
imageUrl: userImageUrl,
|
|
23
|
+
label: labels.account
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const rest = [{
|
|
87
27
|
id: 'backend-edit',
|
|
88
28
|
label: labels.nodeHive,
|
|
89
29
|
isVisible: Boolean(backendEditUrl),
|
|
90
|
-
Component:
|
|
30
|
+
Component: BackendEditLink,
|
|
31
|
+
props: {
|
|
32
|
+
href: backendEditUrl,
|
|
33
|
+
label: labels.nodeHive
|
|
34
|
+
}
|
|
91
35
|
}, {
|
|
92
36
|
id: 'refresh-page',
|
|
93
37
|
label: labels.refresh,
|
|
94
|
-
Component:
|
|
38
|
+
Component: RefreshPage,
|
|
39
|
+
props: {
|
|
40
|
+
label: labels.refresh
|
|
41
|
+
}
|
|
95
42
|
}, {
|
|
96
43
|
id: 'logout',
|
|
97
44
|
label: labels.logout,
|
|
98
|
-
Component:
|
|
45
|
+
Component: LogoutForm,
|
|
46
|
+
props: {
|
|
47
|
+
logout,
|
|
48
|
+
label: labels.logout
|
|
49
|
+
}
|
|
99
50
|
}];
|
|
51
|
+
const defaults = [...(profile ? [profile] : []), ...extraActions, ...rest];
|
|
52
|
+
return buildActions ? buildActions(defaults, {
|
|
53
|
+
lang,
|
|
54
|
+
labels
|
|
55
|
+
}) : defaults;
|
|
100
56
|
}
|
|
101
57
|
//# sourceMappingURL=smart-actions-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smart-actions-config.js","names":["
|
|
1
|
+
{"version":3,"file":"smart-actions-config.js","names":["BackendEditLink","LogoutForm","RefreshPage","UserProfile","getSmartActionsConfig","lang","backendEditUrl","userImageUrl","labels","logout","accountHref","extraActions","buildActions","profileHref","undefined","profile","id","label","account","Component","props","href","imageUrl","rest","nodeHive","isVisible","Boolean","refresh","defaults"],"sources":["../../../src/smart-actions/internal/smart-actions-config.tsx"],"sourcesContent":["import type { ComponentType } from 'react';\n\nimport BackendEditLink from './backend-edit-link.tsx';\nimport type { SmartActionsLabels } from './i18n.ts';\nimport LogoutForm from './logout-form.tsx';\nimport RefreshPage from './refresh-page.tsx';\nimport type { SmartActionsToolbarAction } from './toolbar/types.ts';\nimport UserProfile from './user-profile.tsx';\n\nexport type SmartActionsBuilderContext = {\n lang: string;\n labels: SmartActionsLabels;\n};\n\nexport type SmartActionsBuilder = (\n defaults: SmartActionsToolbarAction[],\n context: SmartActionsBuilderContext\n) => SmartActionsToolbarAction[];\n\ntype ActionComponent = ComponentType<Record<string, unknown>>;\n\ntype SmartActionsConfigContext = {\n lang: string;\n backendEditUrl: string | null;\n userImageUrl?: string | null;\n labels: SmartActionsLabels;\n logout: () => Promise<void>;\n /** Account link target; null omits the profile action. Defaults to /{lang}/nodehive/account. */\n accountHref?: string | null;\n extraActions?: SmartActionsToolbarAction[];\n /** Reorders/filters the default actions (profile, extras, backend edit, refresh, logout). */\n buildActions?: SmartActionsBuilder;\n};\n\nexport function getSmartActionsConfig({\n lang,\n backendEditUrl,\n userImageUrl,\n labels,\n logout,\n accountHref,\n extraActions = [],\n buildActions,\n}: SmartActionsConfigContext): SmartActionsToolbarAction[] {\n const profileHref =\n accountHref === undefined ? `/${lang}/nodehive/account` : accountHref;\n\n const profile: SmartActionsToolbarAction | null =\n profileHref === null\n ? null\n : {\n id: 'user-profile',\n label: labels.account,\n Component: UserProfile as unknown as ActionComponent,\n props: {\n href: profileHref,\n imageUrl: userImageUrl,\n label: labels.account,\n },\n };\n\n const rest: SmartActionsToolbarAction[] = [\n {\n id: 'backend-edit',\n label: labels.nodeHive,\n isVisible: Boolean(backendEditUrl),\n Component: BackendEditLink as unknown as ActionComponent,\n props: { href: backendEditUrl, label: labels.nodeHive },\n },\n {\n id: 'refresh-page',\n label: labels.refresh,\n Component: RefreshPage as unknown as ActionComponent,\n props: { label: labels.refresh },\n },\n {\n id: 'logout',\n label: labels.logout,\n Component: LogoutForm as unknown as ActionComponent,\n props: { logout, label: labels.logout },\n },\n ];\n\n const defaults = [...(profile ? [profile] : []), ...extraActions, ...rest];\n return buildAct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C;IACnDmB,KAAK,EAAE;MAAEX,MAAM;MAAEQ,KAAK,EAAET,MAAM,CAACC;IAAO;EACxC,CAAC,CACF;EAED,MAAMmB,QAAQ,GAAG,CAAC,IAAIb,OAAO,GAAG,CAACA,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,GAAGJ,YAAY,EAAE,GAAGY,IAAI,CAAC;EAC1E,OAAOX,YAAY,GAAGA,YAAY,CAACgB,QAAQ,EAAE;IAAEvB,IAAI;IAAEG;EAAO,CAAC,CAAC,GAAGoB,QAAQ;AAC3E","ignoreList":[]}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { SmartActionsLabels } from './i18n';
|
|
2
|
-
import type { SmartActionsToolbarAction } from './toolbar/types';
|
|
3
|
-
import '../../theme.css';
|
|
1
|
+
import { SmartActionsLabels } from './i18n.js';
|
|
2
|
+
import type { SmartActionsToolbarAction } from './toolbar/types.js';
|
|
4
3
|
type SmartActionsToolbarClientProps = {
|
|
5
|
-
lang: string;
|
|
6
4
|
launcherIconSrc?: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
labels: SmartActionsLabels;
|
|
10
|
-
logout: () => Promise<void>;
|
|
11
|
-
extraActions?: SmartActionsToolbarAction[];
|
|
5
|
+
actions: SmartActionsToolbarAction[];
|
|
6
|
+
labels: Pick<SmartActionsLabels, 'collapse' | 'launcherAction' | 'toolbarActions'>;
|
|
12
7
|
};
|
|
13
|
-
export default function SmartActionsToolbarClient({
|
|
8
|
+
export default function SmartActionsToolbarClient({ launcherIconSrc, actions, labels, }: SmartActionsToolbarClientProps): import("react").JSX.Element;
|
|
14
9
|
export {};
|
|
15
|
-
//# sourceMappingURL=smart-actions-toolbar-client.d.ts.map
|
|
@@ -1,71 +1,31 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
|
-
import
|
|
5
|
-
import SmartActionsToolbar from './toolbar/smart-actions-toolbar';
|
|
4
|
+
import SmartActionsToolbar from "./toolbar/smart-actions-toolbar.js";
|
|
6
5
|
import '../../theme.css';
|
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
7
|
export default function SmartActionsToolbarClient(t0) {
|
|
9
|
-
const $ = _c(
|
|
8
|
+
const $ = _c(4);
|
|
10
9
|
const {
|
|
11
|
-
lang,
|
|
12
10
|
launcherIconSrc: t1,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
labels,
|
|
16
|
-
logout,
|
|
17
|
-
extraActions
|
|
11
|
+
actions,
|
|
12
|
+
labels
|
|
18
13
|
} = t0;
|
|
19
14
|
const launcherIconSrc = t1 === undefined ? "/metadata/nodehive-icon.svg" : t1;
|
|
20
15
|
let t2;
|
|
21
|
-
if ($[0] !==
|
|
22
|
-
t2 =
|
|
23
|
-
lang,
|
|
24
|
-
backendEditUrl,
|
|
25
|
-
userImageUrl,
|
|
26
|
-
labels,
|
|
27
|
-
logout,
|
|
28
|
-
extraActions
|
|
29
|
-
});
|
|
30
|
-
$[0] = backendEditUrl;
|
|
31
|
-
$[1] = extraActions;
|
|
32
|
-
$[2] = labels;
|
|
33
|
-
$[3] = lang;
|
|
34
|
-
$[4] = logout;
|
|
35
|
-
$[5] = userImageUrl;
|
|
36
|
-
$[6] = t2;
|
|
37
|
-
} else {
|
|
38
|
-
t2 = $[6];
|
|
39
|
-
}
|
|
40
|
-
const actions = t2;
|
|
41
|
-
let t3;
|
|
42
|
-
if ($[7] !== labels.collapse || $[8] !== labels.launcherAction || $[9] !== labels.toolbarActions) {
|
|
43
|
-
t3 = {
|
|
44
|
-
collapse: labels.collapse,
|
|
45
|
-
launcherAction: labels.launcherAction,
|
|
46
|
-
toolbarActions: labels.toolbarActions
|
|
47
|
-
};
|
|
48
|
-
$[7] = labels.collapse;
|
|
49
|
-
$[8] = labels.launcherAction;
|
|
50
|
-
$[9] = labels.toolbarActions;
|
|
51
|
-
$[10] = t3;
|
|
52
|
-
} else {
|
|
53
|
-
t3 = $[10];
|
|
54
|
-
}
|
|
55
|
-
let t4;
|
|
56
|
-
if ($[11] !== actions || $[12] !== launcherIconSrc || $[13] !== t3) {
|
|
57
|
-
t4 = /*#__PURE__*/_jsx(SmartActionsToolbar, {
|
|
16
|
+
if ($[0] !== actions || $[1] !== labels || $[2] !== launcherIconSrc) {
|
|
17
|
+
t2 = /*#__PURE__*/_jsx(SmartActionsToolbar, {
|
|
58
18
|
actions: actions,
|
|
59
19
|
launcherIconSrc: launcherIconSrc,
|
|
60
|
-
labels:
|
|
20
|
+
labels: labels
|
|
61
21
|
});
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
22
|
+
$[0] = actions;
|
|
23
|
+
$[1] = labels;
|
|
24
|
+
$[2] = launcherIconSrc;
|
|
25
|
+
$[3] = t2;
|
|
66
26
|
} else {
|
|
67
|
-
|
|
27
|
+
t2 = $[3];
|
|
68
28
|
}
|
|
69
|
-
return
|
|
29
|
+
return t2;
|
|
70
30
|
}
|
|
71
31
|
//# sourceMappingURL=smart-actions-toolbar-client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smart-actions-toolbar-client.js","names":["c","_c","
|
|
1
|
+
{"version":3,"file":"smart-actions-toolbar-client.js","names":["c","_c","SmartActionsToolbar","jsx","_jsx","SmartActionsToolbarClient","t0","$","launcherIconSrc","t1","actions","labels","undefined","t2"],"sources":["../../../src/smart-actions/internal/smart-actions-toolbar-client.tsx"],"sourcesContent":["'use client';\n\nimport { SmartActionsLabels } from './i18n.ts';\nimport SmartActionsToolbar from './toolbar/smart-actions-toolbar.tsx';\nimport type { SmartActionsToolbarAction } from './toolbar/types.ts';\n\nimport '../../theme.css';\n\ntype SmartActionsToolbarClientProps = {\n launcherIconSrc?: string;\n actions: SmartActionsToolbarAction[];\n labels: Pick<\n SmartActionsLabels,\n 'collapse' | 'launcherAction' | 'toolbarActions'\n >;\n};\n\nexport default function SmartActionsToolbarClient({\n launcherIconSrc = '/metadata/nodehive-icon.svg',\n actions,\n labels,\n}: SmartActionsToolbarClientProps) {\n return (\n <SmartActionsToolbar\n actions={actions}\n launcherIconSrc={launcherIconSrc}\n labels={labels}\n />\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAGb,OAAOC,mBAAmB,MAAM,oCAAqC;AAGrE,OAAO,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAWzB,eAAe,SAAAC,0BAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAN,EAAA;EAAmC;IAAAO,eAAA,EAAAC,EAAA;IAAAC,OAAA;IAAAC;EAAA,IAAAL,EAIjB;EAH/B,MAAAE,eAAA,GAAAC,EAA+C,KAA/CG,SAA+C,GAA/C,6BAA+C,GAA/CH,EAA+C;EAAA,IAAAI,EAAA;EAAA,IAAAN,CAAA,QAAAG,OAAA,IAAAH,CAAA,QAAAI,MAAA,IAAAJ,CAAA,QAAAC,eAAA;IAK7CK,EAAA,gBAAAT,IAAA,CAACF,mBAAmB;MACTQ,OAAO,EAAPA,OAAO;MACCF,eAAe,EAAfA,eAAe;MACxBG,MAAM,EAANA;IAAM,CACf,CAAC;IAAAJ,CAAA,MAAAG,OAAA;IAAAH,CAAA,MAAAI,MAAA;IAAAJ,CAAA,MAAAC,eAAA;IAAAD,CAAA,MAAAM,EAAA;EAAA;IAAAA,EAAA,GAAAN,CAAA;EAAA;EAAA,OAJFM,EAIE;AAAA","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SmartActionsToolbarAction } from './types';
|
|
1
|
+
import type { SmartActionsToolbarAction } from './types.js';
|
|
2
2
|
type SmartActionsToolbarProps = {
|
|
3
3
|
actions: SmartActionsToolbarAction[];
|
|
4
4
|
launcherIconSrc: string;
|
|
@@ -10,4 +10,3 @@ type SmartActionsToolbarProps = {
|
|
|
10
10
|
};
|
|
11
11
|
export default function SmartActionsToolbar({ actions, launcherIconSrc, labels, }: SmartActionsToolbarProps): import("react").JSX.Element | null;
|
|
12
12
|
export {};
|
|
13
|
-
//# sourceMappingURL=smart-actions-toolbar.d.ts.map
|
|
@@ -5,10 +5,10 @@ import { useState } from 'react';
|
|
|
5
5
|
import Image from 'next/image';
|
|
6
6
|
import { ChevronDown } from 'lucide-react';
|
|
7
7
|
import { motion } from 'motion/react';
|
|
8
|
-
import { cn } from
|
|
9
|
-
import { useIsHydrated } from
|
|
10
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from
|
|
11
|
-
import { useSmartActionsToolbarMode } from
|
|
8
|
+
import { cn } from "../../../shared/cn.js";
|
|
9
|
+
import { useIsHydrated } from "../../../shared/use-is-hydrated.js";
|
|
10
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip.js";
|
|
11
|
+
import { useSmartActionsToolbarMode } from "./use-smart-actions-toolbar-mode.js";
|
|
12
12
|
|
|
13
13
|
// Small delay so tooltips don't flash instantly when sweeping across the toolbar.
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smart-actions-toolbar.js","names":["c","_c","useState","Image","ChevronDown","motion","cn","useIsHydrated","Tooltip","TooltipContent","TooltipTrigger","useSmartActionsToolbarMode","jsx","_jsx","jsxs","_jsxs","TOOLBAR_TOOLTIP_DELAY","SmartActionsToolbar","t0","$","actions","launcherIconSrc","labels","mode","setMode","isHydrated","isCollapsedFlyoutOpen","setIsCollapsedFlyoutOpen","visibleActions","filter","_temp","prevMode","setPrevMode","length","t1","Symbol","for","handleCollapsedBlur","event","currentTarget","contains","relatedTarget","t2","t3","t4","t5","t6","t7","t8","t9","t10","alt","width","height","className","t11","launcherAction","type","onClick","children","t12","t13","t14","opacity","y","scale","t15","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, 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 { useIsHydrated } from '../../../shared/use-is-hydrated';\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 isHydrated = useIsHydrated();\n const [isCollapsedFlyoutOpen, setIsCollapsedFlyoutOpen] = useState(false);\n const visibleActions = actions.filter((action) => action.isVisible !== false);\n\n // Mode can also change from other tabs (storage sync). Any transition resets\n // the flyout so the collapsed launcher never reappears with it stuck open.\n const [prevMode, setPrevMode] = useState(mode);\n if (mode !== prevMode) {\n setPrevMode(mode);\n setIsCollapsedFlyoutOpen(false);\n }\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 (!isHydrated || 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,QAAQ,QAAQ,OAAO;AAC5C,OAAOC,KAAK,MAAM,YAAY;AAC9B,SAASC,WAAW,QAAQ,cAAc;AAC1C,SAASC,MAAM,QAAQ,cAAc;AAErC,SAASC,EAAE,QAAQ,oBAAoB;AACvC,SAASC,aAAa,QAAQ,iCAAiC;AAC/D,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,MAAAc,UAAA,GAAmBlB,aAAa,CAAC,CAAC;EAClC,OAAAmB,qBAAA,EAAAC,wBAAA,IAA0DzB,QAAQ,CAAC,KAAK,CAAC;EACzE,MAAA0B,cAAA,GAAuBR,OAAO,CAAAS,MAAO,CAACC,KAAsC,CAAC;EAI7E,OAAAC,QAAA,EAAAC,WAAA,IAAgC9B,QAAQ,CAACqB,IAAI,CAAC;EAC9C,IAAIA,IAAI,KAAKQ,QAAQ;IACnBC,WAAW,CAACT,IAAI,CAAC;IACjBI,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T,MAAM,CAACU,EAeZ,CAAC;AAET","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"smart-actions-toolbar.js","names":["c","_c","useState","Image","ChevronDown","motion","cn","useIsHydrated","Tooltip","TooltipContent","TooltipTrigger","useSmartActionsToolbarMode","jsx","_jsx","jsxs","_jsxs","TOOLBAR_TOOLTIP_DELAY","SmartActionsToolbar","t0","$","actions","launcherIconSrc","labels","mode","setMode","isHydrated","isCollapsedFlyoutOpen","setIsCollapsedFlyoutOpen","visibleActions","filter","_temp","prevMode","setPrevMode","length","t1","Symbol","for","handleCollapsedBlur","event","currentTarget","contains","relatedTarget","t2","t3","t4","t5","t6","t7","t8","t9","t10","alt","width","height","className","t11","launcherAction","type","onClick","children","t12","t13","t14","opacity","y","scale","t15","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, useState } from 'react';\nimport Image from 'next/image';\nimport { ChevronDown } from 'lucide-react';\nimport { motion } from 'motion/react';\n\nimport { cn } from '../../../shared/cn.ts';\nimport { useIsHydrated } from '../../../shared/use-is-hydrated.ts';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip.tsx';\nimport type {\n SmartActionsToolbarAction,\n SmartActionsToolbarMode,\n} from './types.ts';\nimport { useSmartActionsToolbarMode } from './use-smart-actions-toolbar-mode.ts';\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 isHydrated = useIsHydrated();\n const [isCollapsedFlyoutOpen, setIsCollapsedFlyoutOpen] = useState(false);\n const visibleActions = actions.filter((action) => action.isVisible !== false);\n\n // Mode can also change from other tabs (storage sync). Any transition resets\n // the flyout so the collapsed launcher never reappears with it stuck open.\n const [prevMode, setPrevMode] = useState(mode);\n if (mode !== prevMode) {\n setPrevMode(mode);\n setIsCollapsedFlyoutOpen(false);\n }\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 (!isHydrated || 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,QAAQ,QAAQ,OAAO;AAC5C,OAAOC,KAAK,MAAM,YAAY;AAC9B,SAASC,WAAW,QAAQ,cAAc;AAC1C,SAASC,MAAM,QAAQ,cAAc;AAErC,SAASC,EAAE,QAAQ,uBAAuB;AAC1C,SAASC,aAAa,QAAQ,oCAAoC;AAClE,SAASC,OAAO,EAAEC,cAAc,EAAEC,cAAc,QAAQ,kBAAmB;AAK3E,SAASC,0BAA0B,QAAQ,qCAAqC;;AAEhF;AAA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AC7B;EACA,MAAMmE,eAAe,GAAGH,MAAM,CAACI,SAAS;EAExC,oBACE9E,IAAA;IAAA8C,QAAA,eACE5C,KAAA,CAACP,OAAO;MAACoF,aAAa,EAAE5E,qBAAsB;MAAA2C,QAAA,gBAC5C9C,IAAA,CAACH,cAAc;QAACwE,OAAO;QAAAvB,QAAA,eACrB9C,IAAA;UAAKyC,SAAS,EAAC,gBAAgB;UAAAK,QAAA,eAC7B9C,IAAA,CAAC6E,eAAe;YAAA,IAAMH,MAAM,CAACM,KAAK,IAAI,CAAC,CAAC;UAAA,CAAI;QAAC,CAC1C;MAAC,CACQ,CAAC,eACjBhF,IAAA,CAACJ,cAAc;QACbqF,IAAI,EAAEvE,IAAI,KAAK,WAAW,GAAG,OAAO,GAAGwE,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":[]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { SmartActionsToolbarMode } from './types';
|
|
1
|
+
import type { SmartActionsToolbarMode } from './types.js';
|
|
2
2
|
export declare const SMART_ACTIONS_TOOLBAR_MODE_STORAGE_KEY = "nodehive.smart-actions.toolbar.mode";
|
|
3
3
|
export declare const SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT = "nodehive-smart-actions-toolbar-mode-change";
|
|
4
4
|
export declare const DEFAULT_SMART_ACTIONS_TOOLBAR_MODE: SmartActionsToolbarMode;
|
|
5
5
|
export declare function readStoredToolbarMode(): SmartActionsToolbarMode;
|
|
6
6
|
export declare function writeStoredToolbarMode(mode: SmartActionsToolbarMode): void;
|
|
7
|
-
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -1 +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":[]}
|
|
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.ts';\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":[]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ToolbarAction } from '../../../shared/toolbar-action';
|
|
1
|
+
import type { ToolbarAction } from '../../../shared/toolbar-action.js';
|
|
2
2
|
export type SmartActionsToolbarMode = 'expanded' | 'collapsed';
|
|
3
3
|
export type SmartActionsToolbarAction = ToolbarAction;
|
|
4
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +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":[]}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../../src/smart-actions/internal/toolbar/types.ts"],"sourcesContent":["import type { ToolbarAction } from '../../../shared/toolbar-action.ts';\n\nexport type SmartActionsToolbarMode = 'expanded' | 'collapsed';\n\nexport type SmartActionsToolbarAction = ToolbarAction;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { SmartActionsToolbarMode } from './types';
|
|
1
|
+
import type { SmartActionsToolbarMode } from './types.js';
|
|
2
2
|
export declare function useSmartActionsToolbarMode(): {
|
|
3
3
|
mode: SmartActionsToolbarMode;
|
|
4
4
|
setMode: (nextMode: SmartActionsToolbarMode) => void;
|
|
5
5
|
};
|
|
6
|
-
//# sourceMappingURL=use-smart-actions-toolbar-mode.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
import { useSyncExternalStore } from 'react';
|
|
5
|
-
import { DEFAULT_SMART_ACTIONS_TOOLBAR_MODE, readStoredToolbarMode, SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT, writeStoredToolbarMode } from
|
|
5
|
+
import { DEFAULT_SMART_ACTIONS_TOOLBAR_MODE, readStoredToolbarMode, SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT, writeStoredToolbarMode } from "./storage.js";
|
|
6
6
|
function subscribeToToolbarModeChanges(onStoreChange) {
|
|
7
7
|
window.addEventListener('storage', onStoreChange);
|
|
8
8
|
window.addEventListener(SMART_ACTIONS_TOOLBAR_MODE_CHANGE_EVENT, onStoreChange);
|
|
@@ -1 +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,
|
|
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.ts';\nimport type { SmartActionsToolbarMode } from './types.ts';\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,cAAc;AAGrB,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":[]}
|
|
@@ -5,4 +5,3 @@ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimit
|
|
|
5
5
|
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
|
|
6
6
|
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
|
|
7
7
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
8
|
-
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
6
|
-
import { cn } from
|
|
6
|
+
import { cn } from "../../../shared/cn.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
function TooltipProvider(t0) {
|
|
9
9
|
const $ = _c(6);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","names":["c","_c","React","TooltipPrimitive","cn","jsx","_jsx","jsxs","_jsxs","TooltipProvider","t0","$","props","t1","delayDuration","undefined","t2","Provider","Tooltip","children","Root","TooltipTrigger","Trigger","TooltipContent","className","sideOffset","t3","Symbol","for","Arrow","t4","Portal","Content"],"sources":["../../../../src/smart-actions/internal/ui/tooltip.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\n\nimport { cn } from '../../../shared/cn';\n\nfunction TooltipProvider({\n delayDuration = 0,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n return (\n <TooltipPrimitive.Provider\n data-slot=\"tooltip-provider\"\n delayDuration={delayDuration}\n {...props}\n />\n );\n}\n\nfunction Tooltip({\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n return (\n <TooltipProvider>\n <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n </TooltipProvider>\n );\n}\n\nfunction TooltipTrigger({\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nfunction TooltipContent({\n className,\n sideOffset = 0,\n children,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n '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)',\n className\n )}\n {...props}\n >\n {children}\n <TooltipPrimitive.Arrow 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)\" />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAO,KAAKC,gBAAgB,MAAM,yBAAyB;AAE3D,SAASC,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"tooltip.js","names":["c","_c","React","TooltipPrimitive","cn","jsx","_jsx","jsxs","_jsxs","TooltipProvider","t0","$","props","t1","delayDuration","undefined","t2","Provider","Tooltip","children","Root","TooltipTrigger","Trigger","TooltipContent","className","sideOffset","t3","Symbol","for","Arrow","t4","Portal","Content"],"sources":["../../../../src/smart-actions/internal/ui/tooltip.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\n\nimport { cn } from '../../../shared/cn.ts';\n\nfunction TooltipProvider({\n delayDuration = 0,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n return (\n <TooltipPrimitive.Provider\n data-slot=\"tooltip-provider\"\n delayDuration={delayDuration}\n {...props}\n />\n );\n}\n\nfunction Tooltip({\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n return (\n <TooltipProvider>\n <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n </TooltipProvider>\n );\n}\n\nfunction TooltipTrigger({\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nfunction TooltipContent({\n className,\n sideOffset = 0,\n children,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n '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)',\n className\n )}\n {...props}\n >\n {children}\n <TooltipPrimitive.Arrow 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)\" />\n </TooltipPrimitive.Content>\n </Toolt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