@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
|
@@ -6,16 +6,19 @@ import NextImage from 'next/image';
|
|
|
6
6
|
import { Button } from '@puckeditor/core';
|
|
7
7
|
import { DialogDescription } from '@radix-ui/react-dialog';
|
|
8
8
|
import { CheckIcon, ChevronLeftIcon, ChevronRightIcon, Loader2Icon, SearchIcon, XIcon } from 'lucide-react';
|
|
9
|
-
import { cn } from
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
9
|
+
import { cn } from "../../../../shared/cn.js";
|
|
10
|
+
import { mediaEntityType } from "../../content-model.js";
|
|
11
|
+
import { usePuckContentModel } from "../../editor-config.js";
|
|
12
|
+
import { usePuckDictionary } from "../../i18n.js";
|
|
13
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle } from "../../ui/dialog.js";
|
|
14
|
+
import { IconButton } from "../../ui/icon-button.js";
|
|
15
|
+
import { LoadErrorNotice } from "../../ui/load-error-notice.js";
|
|
16
|
+
import { ImageUploadForm } from "./image-upload-form.js";
|
|
17
|
+
import { useMediaLibrary } from "./use-media-library.js";
|
|
18
|
+
import { VideoUploadForm } from "./video-upload-form.js";
|
|
16
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
20
|
export function MediaSelectorModal(t0) {
|
|
18
|
-
const $ = _c(
|
|
21
|
+
const $ = _c(81);
|
|
19
22
|
const {
|
|
20
23
|
value,
|
|
21
24
|
onChange,
|
|
@@ -30,6 +33,9 @@ export function MediaSelectorModal(t0) {
|
|
|
30
33
|
const {
|
|
31
34
|
mediaSelector
|
|
32
35
|
} = usePuckDictionary();
|
|
36
|
+
const {
|
|
37
|
+
media: mediaModel
|
|
38
|
+
} = usePuckContentModel();
|
|
33
39
|
const [showAddMedia, setShowAddMedia] = useState(false);
|
|
34
40
|
let t2;
|
|
35
41
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -62,6 +68,8 @@ export function MediaSelectorModal(t0) {
|
|
|
62
68
|
mediaItems,
|
|
63
69
|
isLoading,
|
|
64
70
|
isFetching,
|
|
71
|
+
isError,
|
|
72
|
+
refetch,
|
|
65
73
|
searchQuery,
|
|
66
74
|
setSearchQuery,
|
|
67
75
|
submitSearch,
|
|
@@ -75,135 +83,236 @@ export function MediaSelectorModal(t0) {
|
|
|
75
83
|
previousPage,
|
|
76
84
|
refreshAfterUpload
|
|
77
85
|
} = useMediaLibrary(t3);
|
|
78
|
-
const getFileDisplay = _temp;
|
|
79
86
|
let t4;
|
|
80
|
-
if ($[4] !==
|
|
81
|
-
t4 =
|
|
87
|
+
if ($[4] !== mediaModel.audioType || $[5] !== mediaModel.documentType || $[6] !== mediaModel.imageType || $[7] !== mediaModel.videoType) {
|
|
88
|
+
t4 = item => {
|
|
89
|
+
if (item.type === mediaEntityType(mediaModel.audioType)) {
|
|
90
|
+
return {
|
|
91
|
+
icon: "audio_file",
|
|
92
|
+
bgColor: "nh:bg-purple-50",
|
|
93
|
+
iconColor: "nh:text-purple-600"
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
if (item.type === mediaEntityType(mediaModel.videoType)) {
|
|
97
|
+
return {
|
|
98
|
+
icon: "video_file",
|
|
99
|
+
bgColor: "nh:bg-indigo-50",
|
|
100
|
+
iconColor: "nh:text-indigo-600"
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
if (item.type === mediaEntityType(mediaModel.imageType)) {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
if (item.type !== mediaEntityType(mediaModel.documentType)) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
const fileName = item.name?.toLowerCase() || "";
|
|
110
|
+
const extension = fileName.split(".").pop();
|
|
111
|
+
switch (extension) {
|
|
112
|
+
case "pdf":
|
|
113
|
+
{
|
|
114
|
+
return {
|
|
115
|
+
icon: "picture_as_pdf",
|
|
116
|
+
bgColor: "nh:bg-red-50",
|
|
117
|
+
iconColor: "nh:text-red-600"
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
case "zip":
|
|
121
|
+
case "rar":
|
|
122
|
+
case "7z":
|
|
123
|
+
case "tar":
|
|
124
|
+
case "gz":
|
|
125
|
+
{
|
|
126
|
+
return {
|
|
127
|
+
icon: "folder_zip",
|
|
128
|
+
bgColor: "nh:bg-yellow-50",
|
|
129
|
+
iconColor: "nh:text-yellow-600"
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
case "doc":
|
|
133
|
+
case "docx":
|
|
134
|
+
{
|
|
135
|
+
return {
|
|
136
|
+
icon: "description",
|
|
137
|
+
bgColor: "nh:bg-(--nh-primary)/10",
|
|
138
|
+
iconColor: "nh:text-(--nh-primary)"
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
case "xls":
|
|
142
|
+
case "xlsx":
|
|
143
|
+
case "csv":
|
|
144
|
+
{
|
|
145
|
+
return {
|
|
146
|
+
icon: "table_chart",
|
|
147
|
+
bgColor: "nh:bg-green-50",
|
|
148
|
+
iconColor: "nh:text-green-600"
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
case "ppt":
|
|
152
|
+
case "pptx":
|
|
153
|
+
{
|
|
154
|
+
return {
|
|
155
|
+
icon: "slideshow",
|
|
156
|
+
bgColor: "nh:bg-orange-50",
|
|
157
|
+
iconColor: "nh:text-orange-600"
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
case "txt":
|
|
161
|
+
case "rtf":
|
|
162
|
+
{
|
|
163
|
+
return {
|
|
164
|
+
icon: "article",
|
|
165
|
+
bgColor: "nh:bg-gray-50",
|
|
166
|
+
iconColor: "nh:text-gray-600"
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
default:
|
|
170
|
+
{
|
|
171
|
+
return {
|
|
172
|
+
icon: "description",
|
|
173
|
+
bgColor: "nh:bg-gray-50",
|
|
174
|
+
iconColor: "nh:text-gray-600"
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
$[4] = mediaModel.audioType;
|
|
180
|
+
$[5] = mediaModel.documentType;
|
|
181
|
+
$[6] = mediaModel.imageType;
|
|
182
|
+
$[7] = mediaModel.videoType;
|
|
183
|
+
$[8] = t4;
|
|
184
|
+
} else {
|
|
185
|
+
t4 = $[8];
|
|
186
|
+
}
|
|
187
|
+
const getFileDisplay = t4;
|
|
188
|
+
let t5;
|
|
189
|
+
if ($[9] !== submitSearch) {
|
|
190
|
+
t5 = e => {
|
|
82
191
|
e.preventDefault();
|
|
83
192
|
submitSearch();
|
|
84
193
|
};
|
|
85
|
-
$[
|
|
86
|
-
$[
|
|
194
|
+
$[9] = submitSearch;
|
|
195
|
+
$[10] = t5;
|
|
87
196
|
} else {
|
|
88
|
-
|
|
197
|
+
t5 = $[10];
|
|
89
198
|
}
|
|
90
|
-
const handleSearch =
|
|
91
|
-
let
|
|
92
|
-
if ($[
|
|
93
|
-
|
|
199
|
+
const handleSearch = t5;
|
|
200
|
+
let t6;
|
|
201
|
+
if ($[11] !== refreshAfterUpload) {
|
|
202
|
+
t6 = () => {
|
|
94
203
|
refreshAfterUpload();
|
|
95
204
|
setShowAddMedia(false);
|
|
96
205
|
};
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
206
|
+
$[11] = refreshAfterUpload;
|
|
207
|
+
$[12] = t6;
|
|
99
208
|
} else {
|
|
100
|
-
|
|
209
|
+
t6 = $[12];
|
|
101
210
|
}
|
|
102
|
-
const handleMediaAdded =
|
|
103
|
-
let
|
|
104
|
-
if ($[
|
|
105
|
-
|
|
211
|
+
const handleMediaAdded = t6;
|
|
212
|
+
let t7;
|
|
213
|
+
if ($[13] !== selectMediaType) {
|
|
214
|
+
t7 = e_0 => {
|
|
106
215
|
selectMediaType(e_0.target.value);
|
|
107
216
|
};
|
|
108
|
-
$[
|
|
109
|
-
$[
|
|
217
|
+
$[13] = selectMediaType;
|
|
218
|
+
$[14] = t7;
|
|
110
219
|
} else {
|
|
111
|
-
|
|
220
|
+
t7 = $[14];
|
|
112
221
|
}
|
|
113
|
-
const handleMediaTypeChange =
|
|
114
|
-
let
|
|
115
|
-
if ($[
|
|
116
|
-
|
|
222
|
+
const handleMediaTypeChange = t7;
|
|
223
|
+
let t8;
|
|
224
|
+
if ($[15] !== onClose) {
|
|
225
|
+
t8 = () => {
|
|
117
226
|
setSelected([]);
|
|
118
227
|
onClose();
|
|
119
228
|
};
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
229
|
+
$[15] = onClose;
|
|
230
|
+
$[16] = t8;
|
|
122
231
|
} else {
|
|
123
|
-
|
|
232
|
+
t8 = $[16];
|
|
124
233
|
}
|
|
125
|
-
const handleClose =
|
|
126
|
-
let
|
|
127
|
-
if ($[
|
|
128
|
-
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
234
|
+
const handleClose = t8;
|
|
235
|
+
let t9;
|
|
236
|
+
if ($[17] !== multiple || $[18] !== selected || $[19] !== value?.id) {
|
|
237
|
+
t9 = item_0 => multiple ? selected.some(m => m.id === item_0.id) : value?.id === item_0.id;
|
|
238
|
+
$[17] = multiple;
|
|
239
|
+
$[18] = selected;
|
|
240
|
+
$[19] = value?.id;
|
|
241
|
+
$[20] = t9;
|
|
133
242
|
} else {
|
|
134
|
-
|
|
243
|
+
t9 = $[20];
|
|
135
244
|
}
|
|
136
|
-
const isSelected =
|
|
137
|
-
let
|
|
138
|
-
if ($[
|
|
139
|
-
|
|
245
|
+
const isSelected = t9;
|
|
246
|
+
let t10;
|
|
247
|
+
if ($[21] !== multiple || $[22] !== onChange) {
|
|
248
|
+
t10 = item_1 => {
|
|
140
249
|
if (!multiple) {
|
|
141
|
-
onChange?.(
|
|
250
|
+
onChange?.(item_1);
|
|
142
251
|
return;
|
|
143
252
|
}
|
|
144
|
-
setSelected(prev => prev.some(m_1 => m_1.id ===
|
|
253
|
+
setSelected(prev => prev.some(m_1 => m_1.id === item_1.id) ? prev.filter(m_0 => m_0.id !== item_1.id) : [...prev, item_1]);
|
|
145
254
|
};
|
|
146
|
-
$[
|
|
147
|
-
$[
|
|
148
|
-
$[
|
|
255
|
+
$[21] = multiple;
|
|
256
|
+
$[22] = onChange;
|
|
257
|
+
$[23] = t10;
|
|
149
258
|
} else {
|
|
150
|
-
|
|
259
|
+
t10 = $[23];
|
|
151
260
|
}
|
|
152
|
-
const handleItemClick =
|
|
153
|
-
let
|
|
154
|
-
if ($[
|
|
155
|
-
|
|
261
|
+
const handleItemClick = t10;
|
|
262
|
+
let t11;
|
|
263
|
+
if ($[24] !== onConfirmMultiple || $[25] !== selected) {
|
|
264
|
+
t11 = () => {
|
|
156
265
|
onConfirmMultiple?.(selected);
|
|
157
266
|
setSelected([]);
|
|
158
267
|
};
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
268
|
+
$[24] = onConfirmMultiple;
|
|
269
|
+
$[25] = selected;
|
|
270
|
+
$[26] = t11;
|
|
162
271
|
} else {
|
|
163
|
-
|
|
272
|
+
t11 = $[26];
|
|
164
273
|
}
|
|
165
|
-
const handleConfirmMultiple =
|
|
166
|
-
let
|
|
167
|
-
if ($[
|
|
168
|
-
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
274
|
+
const handleConfirmMultiple = t11;
|
|
275
|
+
let t12;
|
|
276
|
+
if ($[27] !== handleClose) {
|
|
277
|
+
t12 = open => !open && handleClose();
|
|
278
|
+
$[27] = handleClose;
|
|
279
|
+
$[28] = t12;
|
|
171
280
|
} else {
|
|
172
|
-
|
|
281
|
+
t12 = $[28];
|
|
173
282
|
}
|
|
174
|
-
const
|
|
175
|
-
let
|
|
176
|
-
if ($[
|
|
177
|
-
|
|
178
|
-
children:
|
|
283
|
+
const t13 = showAddMedia ? mediaType === mediaModel.imageType ? mediaSelector.addImage : mediaSelector.addRemoteVideo : mediaSelector.selectMedia;
|
|
284
|
+
let t14;
|
|
285
|
+
if ($[29] !== t13) {
|
|
286
|
+
t14 = /*#__PURE__*/_jsx(DialogTitle, {
|
|
287
|
+
children: t13
|
|
179
288
|
});
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
289
|
+
$[29] = t13;
|
|
290
|
+
$[30] = t14;
|
|
182
291
|
} else {
|
|
183
|
-
|
|
292
|
+
t14 = $[30];
|
|
184
293
|
}
|
|
185
|
-
let
|
|
186
|
-
if ($[
|
|
187
|
-
|
|
294
|
+
let t15;
|
|
295
|
+
if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
|
|
296
|
+
t15 = /*#__PURE__*/_jsx(DialogDescription, {
|
|
188
297
|
className: "nh:sr-only"
|
|
189
298
|
});
|
|
190
|
-
$[
|
|
299
|
+
$[31] = t15;
|
|
191
300
|
} else {
|
|
192
|
-
|
|
301
|
+
t15 = $[31];
|
|
193
302
|
}
|
|
194
|
-
let
|
|
195
|
-
if ($[
|
|
196
|
-
|
|
197
|
-
children: [
|
|
303
|
+
let t16;
|
|
304
|
+
if ($[32] !== t14) {
|
|
305
|
+
t16 = /*#__PURE__*/_jsxs(DialogHeader, {
|
|
306
|
+
children: [t14, t15]
|
|
198
307
|
});
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
308
|
+
$[32] = t14;
|
|
309
|
+
$[33] = t16;
|
|
201
310
|
} else {
|
|
202
|
-
|
|
311
|
+
t16 = $[33];
|
|
203
312
|
}
|
|
204
|
-
let
|
|
205
|
-
if ($[
|
|
206
|
-
|
|
313
|
+
let t17;
|
|
314
|
+
if ($[34] !== clearSearch || $[35] !== getFileDisplay || $[36] !== handleConfirmMultiple || $[37] !== handleItemClick || $[38] !== handleMediaAdded || $[39] !== handleMediaTypeChange || $[40] !== handleSearch || $[41] !== hasNextPage || $[42] !== hasPreviousPage || $[43] !== isError || $[44] !== isFetching || $[45] !== isLoading || $[46] !== isSelected || $[47] !== mediaItems || $[48] !== mediaModel.imageType || $[49] !== mediaModel.remoteVideoType || $[50] !== mediaSelector.addSelected || $[51] !== mediaSelector.clearSearch || $[52] !== mediaSelector.loadingMedia || $[53] !== mediaSelector.mediaType || $[54] !== mediaSelector.noMediaFound || $[55] !== mediaSelector.page || $[56] !== mediaSelector.remoteVideo || $[57] !== mediaSelector.search || $[58] !== mediaSelector.searchPlaceholder || $[59] !== mediaSelector.selectedCount || $[60] !== mediaSelector.uploadImage || $[61] !== mediaSelector.uploadRemoteVideo || $[62] !== mediaType || $[63] !== mediaTypes || $[64] !== multiple || $[65] !== nextPage || $[66] !== page || $[67] !== previousPage || $[68] !== refetch || $[69] !== searchQuery || $[70] !== selected || $[71] !== setSearchQuery || $[72] !== showAddMedia) {
|
|
315
|
+
t17 = !showAddMedia ? /*#__PURE__*/_jsxs("div", {
|
|
207
316
|
className: "nh:flex nh:flex-col nh:gap-4",
|
|
208
317
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
209
318
|
className: "nh:flex nh:flex-wrap nh:items-center nh:gap-2",
|
|
@@ -232,15 +341,15 @@ export function MediaSelectorModal(t0) {
|
|
|
232
341
|
type: "submit",
|
|
233
342
|
disabled: isFetching,
|
|
234
343
|
size: "large",
|
|
235
|
-
onClick:
|
|
344
|
+
onClick: _temp,
|
|
236
345
|
children: mediaSelector.search
|
|
237
346
|
})]
|
|
238
|
-
}), (mediaType ===
|
|
347
|
+
}), (mediaType === mediaModel.imageType || mediaType === mediaModel.remoteVideoType) && /*#__PURE__*/_jsx(Button, {
|
|
239
348
|
type: "button",
|
|
240
349
|
variant: "secondary",
|
|
241
350
|
size: "large",
|
|
242
351
|
onClick: () => setShowAddMedia(true),
|
|
243
|
-
children: mediaType ===
|
|
352
|
+
children: mediaType === mediaModel.imageType ? mediaSelector.uploadImage : mediaSelector.uploadRemoteVideo
|
|
244
353
|
})]
|
|
245
354
|
}), mediaTypes.length > 1 && /*#__PURE__*/_jsx("div", {
|
|
246
355
|
className: "nh:flex nh:items-center nh:gap-4 nh:rounded-md nh:border nh:border-gray-300 nh:p-4",
|
|
@@ -256,7 +365,7 @@ export function MediaSelectorModal(t0) {
|
|
|
256
365
|
className: "nh:mt-1 nh:block nh:w-full nh:rounded-md nh:border-gray-300 nh:shadow-sm",
|
|
257
366
|
children: mediaTypes.map(type => /*#__PURE__*/_jsx("option", {
|
|
258
367
|
value: type,
|
|
259
|
-
children: type ===
|
|
368
|
+
children: type === mediaModel.remoteVideoType ? mediaSelector.remoteVideo : type.charAt(0).toUpperCase() + type.slice(1)
|
|
260
369
|
}, type))
|
|
261
370
|
})]
|
|
262
371
|
})
|
|
@@ -268,16 +377,19 @@ export function MediaSelectorModal(t0) {
|
|
|
268
377
|
className: "nh:size-8 nh:animate-spin nh:text-gray-400",
|
|
269
378
|
"aria-label": mediaSelector.loadingMedia
|
|
270
379
|
})
|
|
380
|
+
}) : isError ? /*#__PURE__*/_jsx(LoadErrorNotice, {
|
|
381
|
+
onRetry: refetch,
|
|
382
|
+
className: "nh:min-h-64"
|
|
271
383
|
}) : mediaItems.length > 0 ? /*#__PURE__*/_jsx("div", {
|
|
272
384
|
className: "nh:grid nh:grid-cols-3 nh:gap-4 nh:sm:grid-cols-5",
|
|
273
|
-
children: mediaItems.map(
|
|
385
|
+
children: mediaItems.map(item_2 => /*#__PURE__*/_jsxs("button", {
|
|
274
386
|
type: "button",
|
|
275
|
-
"aria-pressed": isSelected(
|
|
387
|
+
"aria-pressed": isSelected(item_2),
|
|
276
388
|
className: cn("nh:relative nh:w-full nh:cursor-pointer nh:rounded-lg nh:border nh:border-gray-200 nh:p-2 nh:text-left nh:transition-all nh:hover:border-gray-300", {
|
|
277
|
-
"nh:border-(--nh-primary) nh:ring-2 nh:ring-(--nh-primary)": isSelected(
|
|
389
|
+
"nh:border-(--nh-primary) nh:ring-2 nh:ring-(--nh-primary)": isSelected(item_2)
|
|
278
390
|
}),
|
|
279
|
-
onClick: () => handleItemClick(
|
|
280
|
-
children: [multiple && isSelected(
|
|
391
|
+
onClick: () => handleItemClick(item_2),
|
|
392
|
+
children: [multiple && isSelected(item_2) && /*#__PURE__*/_jsx("span", {
|
|
281
393
|
className: "nh:absolute nh:top-1 nh:right-1 nh:z-10 nh:flex nh:size-5 nh:items-center nh:justify-center nh:rounded-full nh:bg-(--nh-primary) nh:text-(--nh-primary-fg)",
|
|
282
394
|
children: /*#__PURE__*/_jsx(CheckIcon, {
|
|
283
395
|
className: "nh:size-3.5"
|
|
@@ -285,7 +397,7 @@ export function MediaSelectorModal(t0) {
|
|
|
285
397
|
}), /*#__PURE__*/_jsx("div", {
|
|
286
398
|
className: "nh:mb-2 nh:aspect-square nh:w-full nh:overflow-hidden nh:rounded nh:bg-gray-100",
|
|
287
399
|
children: (() => {
|
|
288
|
-
const fileDisplay = getFileDisplay(
|
|
400
|
+
const fileDisplay = getFileDisplay(item_2);
|
|
289
401
|
if (fileDisplay) {
|
|
290
402
|
return /*#__PURE__*/_jsx("div", {
|
|
291
403
|
className: `nh:flex nh:h-full nh:w-full nh:items-center nh:justify-center ${fileDisplay.bgColor}`,
|
|
@@ -295,12 +407,12 @@ export function MediaSelectorModal(t0) {
|
|
|
295
407
|
})
|
|
296
408
|
});
|
|
297
409
|
} else {
|
|
298
|
-
if (
|
|
410
|
+
if (item_2.thumbnailImage) {
|
|
299
411
|
return /*#__PURE__*/_jsx("div", {
|
|
300
412
|
className: "nh:relative nh:h-full nh:w-full",
|
|
301
413
|
children: /*#__PURE__*/_jsx(NextImage, {
|
|
302
|
-
src:
|
|
303
|
-
alt:
|
|
414
|
+
src: item_2.thumbnailImage,
|
|
415
|
+
alt: item_2.name || "",
|
|
304
416
|
fill: true,
|
|
305
417
|
sizes: "220px",
|
|
306
418
|
className: "nh:object-contain"
|
|
@@ -319,9 +431,9 @@ export function MediaSelectorModal(t0) {
|
|
|
319
431
|
})()
|
|
320
432
|
}), /*#__PURE__*/_jsx("div", {
|
|
321
433
|
className: "nh:truncate nh:text-sm",
|
|
322
|
-
children:
|
|
434
|
+
children: item_2.name
|
|
323
435
|
})]
|
|
324
|
-
},
|
|
436
|
+
}, item_2.id))
|
|
325
437
|
}) : /*#__PURE__*/_jsx("div", {
|
|
326
438
|
className: "nh:flex nh:min-h-64 nh:items-center nh:justify-center nh:text-gray-500",
|
|
327
439
|
children: mediaSelector.noMediaFound
|
|
@@ -368,171 +480,85 @@ export function MediaSelectorModal(t0) {
|
|
|
368
480
|
children: mediaSelector.addSelected
|
|
369
481
|
})]
|
|
370
482
|
})]
|
|
371
|
-
}) : mediaType ===
|
|
483
|
+
}) : mediaType === mediaModel.imageType ? /*#__PURE__*/_jsx(ImageUploadForm, {
|
|
372
484
|
onCancel: () => setShowAddMedia(false),
|
|
373
485
|
onMediaAdded: handleMediaAdded
|
|
374
486
|
}) : /*#__PURE__*/_jsx(VideoUploadForm, {
|
|
375
487
|
onCancel: () => setShowAddMedia(false),
|
|
376
488
|
onMediaAdded: handleMediaAdded
|
|
377
489
|
});
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
381
|
-
$[
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
388
|
-
$[
|
|
389
|
-
$[
|
|
390
|
-
$[
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
402
|
-
$[
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
$[
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
$[
|
|
490
|
+
$[34] = clearSearch;
|
|
491
|
+
$[35] = getFileDisplay;
|
|
492
|
+
$[36] = handleConfirmMultiple;
|
|
493
|
+
$[37] = handleItemClick;
|
|
494
|
+
$[38] = handleMediaAdded;
|
|
495
|
+
$[39] = handleMediaTypeChange;
|
|
496
|
+
$[40] = handleSearch;
|
|
497
|
+
$[41] = hasNextPage;
|
|
498
|
+
$[42] = hasPreviousPage;
|
|
499
|
+
$[43] = isError;
|
|
500
|
+
$[44] = isFetching;
|
|
501
|
+
$[45] = isLoading;
|
|
502
|
+
$[46] = isSelected;
|
|
503
|
+
$[47] = mediaItems;
|
|
504
|
+
$[48] = mediaModel.imageType;
|
|
505
|
+
$[49] = mediaModel.remoteVideoType;
|
|
506
|
+
$[50] = mediaSelector.addSelected;
|
|
507
|
+
$[51] = mediaSelector.clearSearch;
|
|
508
|
+
$[52] = mediaSelector.loadingMedia;
|
|
509
|
+
$[53] = mediaSelector.mediaType;
|
|
510
|
+
$[54] = mediaSelector.noMediaFound;
|
|
511
|
+
$[55] = mediaSelector.page;
|
|
512
|
+
$[56] = mediaSelector.remoteVideo;
|
|
513
|
+
$[57] = mediaSelector.search;
|
|
514
|
+
$[58] = mediaSelector.searchPlaceholder;
|
|
515
|
+
$[59] = mediaSelector.selectedCount;
|
|
516
|
+
$[60] = mediaSelector.uploadImage;
|
|
517
|
+
$[61] = mediaSelector.uploadRemoteVideo;
|
|
518
|
+
$[62] = mediaType;
|
|
519
|
+
$[63] = mediaTypes;
|
|
520
|
+
$[64] = multiple;
|
|
521
|
+
$[65] = nextPage;
|
|
522
|
+
$[66] = page;
|
|
523
|
+
$[67] = previousPage;
|
|
524
|
+
$[68] = refetch;
|
|
525
|
+
$[69] = searchQuery;
|
|
526
|
+
$[70] = selected;
|
|
527
|
+
$[71] = setSearchQuery;
|
|
528
|
+
$[72] = showAddMedia;
|
|
529
|
+
$[73] = t17;
|
|
413
530
|
} else {
|
|
414
|
-
|
|
531
|
+
t17 = $[73];
|
|
415
532
|
}
|
|
416
|
-
let
|
|
417
|
-
if ($[
|
|
418
|
-
|
|
533
|
+
let t18;
|
|
534
|
+
if ($[74] !== t16 || $[75] !== t17) {
|
|
535
|
+
t18 = /*#__PURE__*/_jsxs(DialogContent, {
|
|
419
536
|
className: "nh:max-h-dvh nh:max-w-3xl nh:overflow-y-auto nh:xl:max-w-5xl",
|
|
420
|
-
children: [
|
|
537
|
+
children: [t16, t17]
|
|
421
538
|
});
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
539
|
+
$[74] = t16;
|
|
540
|
+
$[75] = t17;
|
|
541
|
+
$[76] = t18;
|
|
425
542
|
} else {
|
|
426
|
-
|
|
543
|
+
t18 = $[76];
|
|
427
544
|
}
|
|
428
|
-
let
|
|
429
|
-
if ($[
|
|
430
|
-
|
|
545
|
+
let t19;
|
|
546
|
+
if ($[77] !== isOpen || $[78] !== t12 || $[79] !== t18) {
|
|
547
|
+
t19 = /*#__PURE__*/_jsx(Dialog, {
|
|
431
548
|
open: isOpen,
|
|
432
|
-
onOpenChange:
|
|
433
|
-
children:
|
|
549
|
+
onOpenChange: t12,
|
|
550
|
+
children: t18
|
|
434
551
|
});
|
|
435
|
-
$[
|
|
436
|
-
$[
|
|
437
|
-
$[
|
|
438
|
-
$[
|
|
552
|
+
$[77] = isOpen;
|
|
553
|
+
$[78] = t12;
|
|
554
|
+
$[79] = t18;
|
|
555
|
+
$[80] = t19;
|
|
439
556
|
} else {
|
|
440
|
-
|
|
557
|
+
t19 = $[80];
|
|
441
558
|
}
|
|
442
|
-
return
|
|
559
|
+
return t19;
|
|
443
560
|
}
|
|
444
|
-
function
|
|
561
|
+
function _temp(e_2) {
|
|
445
562
|
e_2.stopPropagation();
|
|
446
563
|
}
|
|
447
|
-
function _temp(media) {
|
|
448
|
-
if (media.type === "media--audio") {
|
|
449
|
-
return {
|
|
450
|
-
icon: "audio_file",
|
|
451
|
-
bgColor: "nh:bg-purple-50",
|
|
452
|
-
iconColor: "nh:text-purple-600"
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
if (media.type === "media--video") {
|
|
456
|
-
return {
|
|
457
|
-
icon: "video_file",
|
|
458
|
-
bgColor: "nh:bg-indigo-50",
|
|
459
|
-
iconColor: "nh:text-indigo-600"
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
if (media.type === "media--image") {
|
|
463
|
-
return null;
|
|
464
|
-
}
|
|
465
|
-
if (media.type !== "media--document") {
|
|
466
|
-
return null;
|
|
467
|
-
}
|
|
468
|
-
const fileName = media.name?.toLowerCase() || "";
|
|
469
|
-
const extension = fileName.split(".").pop();
|
|
470
|
-
switch (extension) {
|
|
471
|
-
case "pdf":
|
|
472
|
-
{
|
|
473
|
-
return {
|
|
474
|
-
icon: "picture_as_pdf",
|
|
475
|
-
bgColor: "nh:bg-red-50",
|
|
476
|
-
iconColor: "nh:text-red-600"
|
|
477
|
-
};
|
|
478
|
-
}
|
|
479
|
-
case "zip":
|
|
480
|
-
case "rar":
|
|
481
|
-
case "7z":
|
|
482
|
-
case "tar":
|
|
483
|
-
case "gz":
|
|
484
|
-
{
|
|
485
|
-
return {
|
|
486
|
-
icon: "folder_zip",
|
|
487
|
-
bgColor: "nh:bg-yellow-50",
|
|
488
|
-
iconColor: "nh:text-yellow-600"
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
case "doc":
|
|
492
|
-
case "docx":
|
|
493
|
-
{
|
|
494
|
-
return {
|
|
495
|
-
icon: "description",
|
|
496
|
-
bgColor: "nh:bg-(--nh-primary)/10",
|
|
497
|
-
iconColor: "nh:text-(--nh-primary)"
|
|
498
|
-
};
|
|
499
|
-
}
|
|
500
|
-
case "xls":
|
|
501
|
-
case "xlsx":
|
|
502
|
-
case "csv":
|
|
503
|
-
{
|
|
504
|
-
return {
|
|
505
|
-
icon: "table_chart",
|
|
506
|
-
bgColor: "nh:bg-green-50",
|
|
507
|
-
iconColor: "nh:text-green-600"
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
case "ppt":
|
|
511
|
-
case "pptx":
|
|
512
|
-
{
|
|
513
|
-
return {
|
|
514
|
-
icon: "slideshow",
|
|
515
|
-
bgColor: "nh:bg-orange-50",
|
|
516
|
-
iconColor: "nh:text-orange-600"
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
case "txt":
|
|
520
|
-
case "rtf":
|
|
521
|
-
{
|
|
522
|
-
return {
|
|
523
|
-
icon: "article",
|
|
524
|
-
bgColor: "nh:bg-gray-50",
|
|
525
|
-
iconColor: "nh:text-gray-600"
|
|
526
|
-
};
|
|
527
|
-
}
|
|
528
|
-
default:
|
|
529
|
-
{
|
|
530
|
-
return {
|
|
531
|
-
icon: "description",
|
|
532
|
-
bgColor: "nh:bg-gray-50",
|
|
533
|
-
iconColor: "nh:text-gray-600"
|
|
534
|
-
};
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
564
|
//# sourceMappingURL=media-selector-modal.js.map
|