@nodehive/nextjs 0.1.2 → 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 +108 -135
- 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 +28 -41
- 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 +7 -5
- package/dist/puck-editor/internal/editor/grouped-entry-list.js +85 -56
- 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 +1 -0
- package/dist/puck-editor/internal/editor/use-frame-zoom.js +59 -0
- package/dist/puck-editor/internal/editor/use-frame-zoom.js.map +1 -0
- 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 +124 -115
- 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 +8 -3
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.js +59 -61
- 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 +3 -3
- package/dist/puck-editor/internal/ui/search-control.js +29 -26
- 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-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
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { AlertTriangleIcon, RotateCwIcon } from 'lucide-react';
|
|
5
|
+
import { cn } from "../../../shared/cn.js";
|
|
6
|
+
import { usePuckDictionary } from "../i18n.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
export function LoadErrorNotice(t0) {
|
|
9
|
+
const $ = _c(13);
|
|
10
|
+
const {
|
|
11
|
+
onRetry,
|
|
12
|
+
className
|
|
13
|
+
} = t0;
|
|
14
|
+
const t = usePuckDictionary().common;
|
|
15
|
+
let t1;
|
|
16
|
+
if ($[0] !== className) {
|
|
17
|
+
t1 = cn("nh:flex nh:flex-col nh:items-center nh:justify-center nh:gap-3 nh:px-4 nh:py-8 nh:text-center", className);
|
|
18
|
+
$[0] = className;
|
|
19
|
+
$[1] = t1;
|
|
20
|
+
} else {
|
|
21
|
+
t1 = $[1];
|
|
22
|
+
}
|
|
23
|
+
let t2;
|
|
24
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
25
|
+
t2 = /*#__PURE__*/_jsx(AlertTriangleIcon, {
|
|
26
|
+
className: "nh:size-6 nh:text-amber-500"
|
|
27
|
+
});
|
|
28
|
+
$[2] = t2;
|
|
29
|
+
} else {
|
|
30
|
+
t2 = $[2];
|
|
31
|
+
}
|
|
32
|
+
let t3;
|
|
33
|
+
if ($[3] !== t.loadFailed) {
|
|
34
|
+
t3 = /*#__PURE__*/_jsx("p", {
|
|
35
|
+
className: "nh:text-sm nh:text-gray-600",
|
|
36
|
+
children: t.loadFailed
|
|
37
|
+
});
|
|
38
|
+
$[3] = t.loadFailed;
|
|
39
|
+
$[4] = t3;
|
|
40
|
+
} else {
|
|
41
|
+
t3 = $[4];
|
|
42
|
+
}
|
|
43
|
+
let t4;
|
|
44
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45
|
+
t4 = /*#__PURE__*/_jsx(RotateCwIcon, {
|
|
46
|
+
className: "nh:size-4"
|
|
47
|
+
});
|
|
48
|
+
$[5] = t4;
|
|
49
|
+
} else {
|
|
50
|
+
t4 = $[5];
|
|
51
|
+
}
|
|
52
|
+
let t5;
|
|
53
|
+
if ($[6] !== onRetry || $[7] !== t.retry) {
|
|
54
|
+
t5 = /*#__PURE__*/_jsxs("button", {
|
|
55
|
+
type: "button",
|
|
56
|
+
onClick: onRetry,
|
|
57
|
+
className: "nh:flex nh:cursor-pointer nh:items-center nh:gap-1.5 nh:rounded-md nh:border nh:border-gray-200 nh:bg-white nh:px-3 nh:py-1.5 nh:text-sm nh:text-gray-700 nh:transition-colors nh:hover:bg-gray-50",
|
|
58
|
+
children: [t4, t.retry]
|
|
59
|
+
});
|
|
60
|
+
$[6] = onRetry;
|
|
61
|
+
$[7] = t.retry;
|
|
62
|
+
$[8] = t5;
|
|
63
|
+
} else {
|
|
64
|
+
t5 = $[8];
|
|
65
|
+
}
|
|
66
|
+
let t6;
|
|
67
|
+
if ($[9] !== t1 || $[10] !== t3 || $[11] !== t5) {
|
|
68
|
+
t6 = /*#__PURE__*/_jsxs("div", {
|
|
69
|
+
className: t1,
|
|
70
|
+
children: [t2, t3, t5]
|
|
71
|
+
});
|
|
72
|
+
$[9] = t1;
|
|
73
|
+
$[10] = t3;
|
|
74
|
+
$[11] = t5;
|
|
75
|
+
$[12] = t6;
|
|
76
|
+
} else {
|
|
77
|
+
t6 = $[12];
|
|
78
|
+
}
|
|
79
|
+
return t6;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=load-error-notice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-error-notice.js","names":["c","_c","AlertTriangleIcon","RotateCwIcon","cn","usePuckDictionary","jsx","_jsx","jsxs","_jsxs","LoadErrorNotice","t0","$","onRetry","className","t","common","t1","t2","Symbol","for","t3","loadFailed","children","t4","t5","retry","type","t6"],"sources":["../../../../src/puck-editor/internal/ui/load-error-notice.tsx"],"sourcesContent":["'use client';\n\nimport { AlertTriangleIcon, RotateCwIcon } from 'lucide-react';\n\nimport { cn } from '../../../shared/cn.ts';\nimport { usePuckDictionary } from '../i18n.tsx';\n\ntype LoadErrorNoticeProps = {\n onRetry: () => void;\n className?: string;\n};\n\nexport function LoadErrorNotice({ onRetry, className }: LoadErrorNoticeProps) {\n const t = usePuckDictionary().common;\n return (\n <div\n className={cn(\n 'nh:flex nh:flex-col nh:items-center nh:justify-center nh:gap-3 nh:px-4 nh:py-8 nh:text-center',\n className\n )}\n >\n <AlertTriangleIcon className=\"nh:size-6 nh:text-amber-500\" />\n <p className=\"nh:text-sm nh:text-gray-600\">{t.loadFailed}</p>\n <button\n type=\"button\"\n onClick={onRetry}\n className=\"nh:flex nh:cursor-pointer nh:items-center nh:gap-1.5 nh:rounded-md nh:border nh:border-gray-200 nh:bg-white nh:px-3 nh:py-1.5 nh:text-sm nh:text-gray-700 nh:transition-colors nh:hover:bg-gray-50\"\n >\n <RotateCwIcon className=\"nh:size-4\" />\n {t.retry}\n </button>\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,iBAAiB,EAAEC,YAAY,QAAQ,cAAc;AAE9D,SAASC,EAAE,QAAQ,uBAAuB;AAC1C,SAASC,iBAAiB,QAAQ,YAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAOhD,OAAO,SAAAC,gBAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAX,EAAA;EAAyB;IAAAY,OAAA;IAAAC;EAAA,IAAAH,EAA4C;EAC1E,MAAAI,CAAA,GAAUV,iBAAiB,CAAC,CAAC,CAAAW,MAAO;EAAC,IAAAC,EAAA;EAAA,IAAAL,CAAA,QAAAE,SAAA;IAGtBG,EAAA,GAAAb,EAAE,CACX,+FAA+F,EAC/FU,SACF,CAAC;IAAAF,CAAA,MAAAE,SAAA;IAAAF,CAAA,MAAAK,EAAA;EAAA;IAAAA,EAAA,GAAAL,CAAA;EAAA;EAAA,IAAAM,EAAA;EAAA,IAAAN,CAAA,Q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AAAM,QAAA,GAEDL,EAA6D,EAC7DG,EAA6D,EAC7DI,EAOS;IAAA,CACN,CAAC;IAAAb,CAAA,MAAAK,EAAA;IAAAL,CAAA,OAAAS,EAAA;IAAAT,CAAA,OAAAa,EAAA;IAAAb,CAAA,OAAAgB,EAAA;EAAA;IAAAA,EAAA,GAAAhB,CAAA;EAAA;EAAA,OAhBNgB,EAgBM;AAAA","ignoreList":[]}
|
|
@@ -6,4 +6,3 @@ declare function PopoverContent({ className, align, sideOffset, ...props }: Reac
|
|
|
6
6
|
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.JSX.Element;
|
|
7
7
|
declare function PopoverClose({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Close>): React.JSX.Element;
|
|
8
8
|
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose };
|
|
9
|
-
//# sourceMappingURL=popover.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 PopoverPrimitive from '@radix-ui/react-popover';
|
|
6
|
-
import { cn } from
|
|
6
|
+
import { cn } from "../../../shared/cn.js";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
function Popover(t0) {
|
|
9
9
|
const $ = _c(4);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.js","names":["c","_c","React","PopoverPrimitive","cn","jsx","_jsx","Popover","t0","$","props","t1","Root","PopoverTrigger","Trigger","PopoverContent","className","t2","align","sideOffset","undefined","t3","t4","Portal","children","Content","PopoverAnchor","Anchor","PopoverClose","Close"],"sources":["../../../../src/puck-editor/internal/ui/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\n\nimport { cn } from '../../../shared/cn';\n\nfunction Popover({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n data-puck-editor-overlay\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'nh-root nh:data-[state=open]:animate-in nh:data-[state=closed]:animate-out nh:data-[state=closed]:fade-out-0 nh:data-[state=open]:fade-in-0 nh:data-[state=closed]:zoom-out-95 nh:data-[state=open]:zoom-in-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-72 nh:origin-(--radix-popover-content-transform-origin) nh:rounded-md nh:border nh:border-(--nh-border) nh:bg-(--nh-bg) nh:p-4 nh:shadow-md nh:outline-hidden',\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverClose({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Close>) {\n return <PopoverPrimitive.Close data-slot=\"popover-close\" {...props} />;\n}\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose };\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":"popover.js","names":["c","_c","React","PopoverPrimitive","cn","jsx","_jsx","Popover","t0","$","props","t1","Root","PopoverTrigger","Trigger","PopoverContent","className","t2","align","sideOffset","undefined","t3","t4","Portal","children","Content","PopoverAnchor","Anchor","PopoverClose","Close"],"sources":["../../../../src/puck-editor/internal/ui/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\n\nimport { cn } from '../../../shared/cn.ts';\n\nfunction Popover({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n data-puck-editor-overlay\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'nh-root nh:data-[state=open]:animate-in nh:data-[state=closed]:animate-out nh:data-[state=closed]:fade-out-0 nh:data-[state=open]:fade-in-0 nh:data-[state=closed]:zoom-out-95 nh:data-[state=open]:zoom-in-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-72 nh:origin-(--radix-popover-content-transform-origin) nh:rounded-md nh:border nh:border-(--nh-border) nh:bg-(--nh-bg) nh:p-4 nh:shadow-md nh:outline-hidden',\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverClose({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Close>) {\n return <PopoverPrimitive.Close data-slot=\"popover-close\" {...props} />;\n}\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose };\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,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE3C,SAAAC,QAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAR,EAAA;EAAA,IAAAS,KAAA;EAAA,IAAAD,CAAA,QAAAD,EAAA;IAAiB;MAAA,GAAAE;IAAA,IAAAF,EAEoC;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAC,KAAA;EAAA;IAAAA,KAAA,GAAAD,CAAA;EAAA;EAAA,IAAAE,EAAA;EAAA,IAAAF,CAAA,QAAAC,KAAA;IAC5CC,EAAA,gBAAAL,IAAA,CAAAH,gBAAA,CAAAS,IAAA;MAAiC,sBAAS;MAAA,GAAKF;IAAK,CAAG,CAAC;IAAAD,CAAA,MAAAC,KAAA;IAAAD,CAAA,MAAAE,EAAA;EAAA;IAAAA,EAAA,GAAAF,CAAA;EAAA;EAAA,OAAxDE,EAAwD;AAAA;AAGjE,SAAAE,eAAAL,EAAA;EAAA,MAAAC,CAAA,GAAAR,EAAA;EAAA,IAAAS,KAAA;EAAA,IAAAD,CAAA,QAAAD,EAAA;IAAwB;MAAA,GAAAE;IAAA,IAAAF,EAEgC;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAC,KAAA;EAAA;IAAAA,KAAA,GAAAD,CAAA;EAAA;EAAA,IAAAE,EAAA;EAAA,IAAAF,CAAA,QAAAC,KAAA;IAC/CC,EAAA,gBAAAL,IAAA,CAAAH,gBAA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AAA,QAAAC,KAAA;IAC7CC,EAAA,gBAAAL,IAAA,CAAAH,gBAAA,CAAA0B,KAAA;MAAkC,4BAAe;MAAA,GAAKnB;IAAK,CAAG,CAAC;IAAAD,CAAA,MAAAC,KAAA;IAAAD,CAAA,MAAAE,EAAA;EAAA;IAAAA,EAAA,GAAAF,CAAA;EAAA;EAAA,OAA/DE,EAA+D;AAAA;AAGxE,SAASJ,OAAO,EAAEM,cAAc,EAAEE,cAAc,EAAEW,aAAa,EAAEE,YAAY","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode, RefObject } from 'react';
|
|
1
|
+
import type { KeyboardEvent, ReactNode, RefObject } from 'react';
|
|
2
2
|
type SearchControlProps = {
|
|
3
3
|
value: string;
|
|
4
4
|
onChange: (value: string) => void;
|
|
@@ -8,8 +8,9 @@ type SearchControlProps = {
|
|
|
8
8
|
compact?: boolean;
|
|
9
9
|
className?: string;
|
|
10
10
|
inputRef?: RefObject<HTMLInputElement | null>;
|
|
11
|
+
onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
11
12
|
};
|
|
12
|
-
export declare function SearchControl({ value, onChange, placeholder, clearLabel, autoFocus, compact, className, inputRef, }: SearchControlProps): import("react").JSX.Element;
|
|
13
|
+
export declare function SearchControl({ value, onChange, placeholder, clearLabel, autoFocus, compact, className, inputRef, onKeyDown, }: SearchControlProps): import("react").JSX.Element;
|
|
13
14
|
type EmptyStateProps = {
|
|
14
15
|
children: ReactNode;
|
|
15
16
|
compact?: boolean;
|
|
@@ -17,4 +18,3 @@ type EmptyStateProps = {
|
|
|
17
18
|
};
|
|
18
19
|
export declare function SearchEmptyState({ children, compact, className, }: EmptyStateProps): import("react").JSX.Element;
|
|
19
20
|
export {};
|
|
20
|
-
//# sourceMappingURL=search-control.d.ts.map
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
import { SearchIcon, XIcon } from 'lucide-react';
|
|
5
|
-
import { cn } from
|
|
6
|
-
import { usePuckDictionary } from
|
|
7
|
-
import { IconButton } from
|
|
5
|
+
import { cn } from "../../../shared/cn.js";
|
|
6
|
+
import { usePuckDictionary } from "../i18n.js";
|
|
7
|
+
import { IconButton } from "./icon-button.js";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
export function SearchControl(t0) {
|
|
10
|
-
const $ = _c(
|
|
10
|
+
const $ = _c(28);
|
|
11
11
|
const {
|
|
12
12
|
value,
|
|
13
13
|
onChange,
|
|
@@ -16,7 +16,8 @@ export function SearchControl(t0) {
|
|
|
16
16
|
autoFocus,
|
|
17
17
|
compact,
|
|
18
18
|
className,
|
|
19
|
-
inputRef
|
|
19
|
+
inputRef,
|
|
20
|
+
onKeyDown
|
|
20
21
|
} = t0;
|
|
21
22
|
const {
|
|
22
23
|
clearSearch
|
|
@@ -67,28 +68,30 @@ export function SearchControl(t0) {
|
|
|
67
68
|
t7 = $[9];
|
|
68
69
|
}
|
|
69
70
|
let t8;
|
|
70
|
-
if ($[10] !== autoFocus || $[11] !== inputRef || $[12] !==
|
|
71
|
+
if ($[10] !== autoFocus || $[11] !== inputRef || $[12] !== onKeyDown || $[13] !== placeholder || $[14] !== t5 || $[15] !== t7 || $[16] !== value) {
|
|
71
72
|
t8 = /*#__PURE__*/_jsx("input", {
|
|
72
73
|
ref: inputRef,
|
|
73
74
|
autoFocus: autoFocus,
|
|
74
75
|
type: "text",
|
|
75
76
|
value: value,
|
|
76
77
|
onChange: t5,
|
|
78
|
+
onKeyDown: onKeyDown,
|
|
77
79
|
placeholder: placeholder,
|
|
78
80
|
className: t7
|
|
79
81
|
});
|
|
80
82
|
$[10] = autoFocus;
|
|
81
83
|
$[11] = inputRef;
|
|
82
|
-
$[12] =
|
|
83
|
-
$[13] =
|
|
84
|
-
$[14] =
|
|
85
|
-
$[15] =
|
|
86
|
-
$[16] =
|
|
84
|
+
$[12] = onKeyDown;
|
|
85
|
+
$[13] = placeholder;
|
|
86
|
+
$[14] = t5;
|
|
87
|
+
$[15] = t7;
|
|
88
|
+
$[16] = value;
|
|
89
|
+
$[17] = t8;
|
|
87
90
|
} else {
|
|
88
|
-
t8 = $[
|
|
91
|
+
t8 = $[17];
|
|
89
92
|
}
|
|
90
93
|
let t9;
|
|
91
|
-
if ($[
|
|
94
|
+
if ($[18] !== compact || $[19] !== onChange || $[20] !== resolvedClearLabel || $[21] !== value) {
|
|
92
95
|
t9 = value && /*#__PURE__*/_jsx(IconButton, {
|
|
93
96
|
"aria-label": resolvedClearLabel,
|
|
94
97
|
title: resolvedClearLabel,
|
|
@@ -98,27 +101,27 @@ export function SearchControl(t0) {
|
|
|
98
101
|
className: "nh:h-4 nh:w-4"
|
|
99
102
|
})
|
|
100
103
|
});
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
104
|
+
$[18] = compact;
|
|
105
|
+
$[19] = onChange;
|
|
106
|
+
$[20] = resolvedClearLabel;
|
|
107
|
+
$[21] = value;
|
|
108
|
+
$[22] = t9;
|
|
106
109
|
} else {
|
|
107
|
-
t9 = $[
|
|
110
|
+
t9 = $[22];
|
|
108
111
|
}
|
|
109
112
|
let t10;
|
|
110
|
-
if ($[
|
|
113
|
+
if ($[23] !== t1 || $[24] !== t4 || $[25] !== t8 || $[26] !== t9) {
|
|
111
114
|
t10 = /*#__PURE__*/_jsxs("div", {
|
|
112
115
|
className: t1,
|
|
113
116
|
children: [t4, t8, t9]
|
|
114
117
|
});
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
118
|
+
$[23] = t1;
|
|
119
|
+
$[24] = t4;
|
|
120
|
+
$[25] = t8;
|
|
121
|
+
$[26] = t9;
|
|
122
|
+
$[27] = t10;
|
|
120
123
|
} else {
|
|
121
|
-
t10 = $[
|
|
124
|
+
t10 = $[27];
|
|
122
125
|
}
|
|
123
126
|
return t10;
|
|
124
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-control.js","names":["c","_c","SearchIcon","XIcon","cn","usePuckDictionary","IconButton","jsx","_jsx","jsxs","_jsxs","SearchControl","t0","$","value","onChange","placeholder","clearLabel","autoFocus","compact","className","inputRef","clearSearch","common","resolvedClearLabel","t1","t2","t3","t4","t5","e","target","t6","t7","t8","type","t9","onClick","children","t10","SearchEmptyState"],"sources":["../../../../src/puck-editor/internal/ui/search-control.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefObject } from 'react';\nimport { SearchIcon, XIcon } from 'lucide-react';\n\nimport { cn } from '../../../shared/cn';\nimport { usePuckDictionary } from '../i18n';\nimport { IconButton } from './icon-button';\n\ntype SearchControlProps = {\n value: string;\n onChange: (value: string) => void;\n placeholder: string;\n clearLabel?: string;\n autoFocus?: boolean;\n compact?: boolean;\n className?: string;\n inputRef?: RefObject<HTMLInputElement | null>;\n};\n\nexport function SearchControl({\n value,\n onChange,\n placeholder,\n clearLabel,\n autoFocus,\n compact,\n className,\n inputRef,\n}: SearchControlProps) {\n const { clearSearch } = usePuckDictionary().common;\n const resolvedClearLabel = clearLabel ?? clearSearch;\n\n return (\n <div className={cn('nh:relative', className)}>\n <SearchIcon\n className={cn(\n 'nh:absolute nh:top-1/2 nh:-translate-y-1/2 nh:text-gray-400',\n compact ? 'nh:left-2 nh:size-3.5' : 'nh:left-2.5 nh:h-4 nh:w-4'\n )}\n />\n <input\n ref={inputRef}\n autoFocus={autoFocus}\n type=\"text\"\n value={value}\n onChange={(e) => onChange(e.target.value)}\n placeholder={placeholder}\n className={cn(\n 'nh:w-full nh:rounded-md nh:border nh:border-gray-200 nh:text-sm nh:focus:outline-none',\n compact ? 'nh:py-1 nh:pr-8 nh:pl-7' : 'nh:py-1.5 nh:pr-8 nh:pl-8'\n )}\n />\n {value && (\n <IconButton\n aria-label={resolvedClearLabel}\n title={resolvedClearLabel}\n onClick={() => onChange('')}\n className={cn(\n 'nh:absolute nh:top-1/2 nh:-translate-y-1/2',\n compact ? 'nh:right-1.5' : 'nh:right-2'\n )}\n >\n <XIcon className=\"nh:h-4 nh:w-4\" />\n </IconButton>\n )}\n </div>\n );\n}\n\ntype EmptyStateProps = {\n children: ReactNode;\n compact?: boolean;\n className?: string;\n};\n\nexport function SearchEmptyState({\n children,\n compact,\n className,\n}: EmptyStateProps) {\n return (\n <div\n className={cn(\n 'nh:text-center nh:text-gray-500',\n compact ? 'nh:px-2 nh:py-3 nh:text-xs' : 'nh:px-3 nh:py-8 nh:text-sm',\n className\n )}\n >\n {children}\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAGb,SAASC,UAAU,EAAEC,KAAK,QAAQ,cAAc;AAEhD,SAASC,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"search-control.js","names":["c","_c","SearchIcon","XIcon","cn","usePuckDictionary","IconButton","jsx","_jsx","jsxs","_jsxs","SearchControl","t0","$","value","onChange","placeholder","clearLabel","autoFocus","compact","className","inputRef","onKeyDown","clearSearch","common","resolvedClearLabel","t1","t2","t3","t4","t5","e","target","t6","t7","t8","type","t9","onClick","children","t10","SearchEmptyState"],"sources":["../../../../src/puck-editor/internal/ui/search-control.tsx"],"sourcesContent":["'use client';\n\nimport type { KeyboardEvent, ReactNode, RefObject } from 'react';\nimport { SearchIcon, XIcon } from 'lucide-react';\n\nimport { cn } from '../../../shared/cn.ts';\nimport { usePuckDictionary } from '../i18n.tsx';\nimport { IconButton } from './icon-button.tsx';\n\ntype SearchControlProps = {\n value: string;\n onChange: (value: string) => void;\n placeholder: string;\n clearLabel?: string;\n autoFocus?: boolean;\n compact?: boolean;\n className?: string;\n inputRef?: RefObject<HTMLInputElement | null>;\n onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;\n};\n\nexport function SearchControl({\n value,\n onChange,\n placeholder,\n clearLabel,\n autoFocus,\n compact,\n className,\n inputRef,\n onKeyDown,\n}: SearchControlProps) {\n const { clearSearch } = usePuckDictionary().common;\n const resolvedClearLabel = clearLabel ?? clearSearch;\n\n return (\n <div className={cn('nh:relative', className)}>\n <SearchIcon\n className={cn(\n 'nh:absolute nh:top-1/2 nh:-translate-y-1/2 nh:text-gray-400',\n compact ? 'nh:left-2 nh:size-3.5' : 'nh:left-2.5 nh:h-4 nh:w-4'\n )}\n />\n <input\n ref={inputRef}\n autoFocus={autoFocus}\n type=\"text\"\n value={value}\n onChange={(e) => onChange(e.target.value)}\n onKeyDown={onKeyDown}\n placeholder={placeholder}\n className={cn(\n 'nh:w-full nh:rounded-md nh:border nh:border-gray-200 nh:text-sm nh:focus:outline-none',\n compact ? 'nh:py-1 nh:pr-8 nh:pl-7' : 'nh:py-1.5 nh:pr-8 nh:pl-8'\n )}\n />\n {value && (\n <IconButton\n aria-label={resolvedClearLabel}\n title={resolvedClearLabel}\n onClick={() => onChange('')}\n className={cn(\n 'nh:absolute nh:top-1/2 nh:-translate-y-1/2',\n compact ? 'nh:right-1.5' : 'nh:right-2'\n )}\n >\n <XIcon className=\"nh:h-4 nh:w-4\" />\n </IconButton>\n )}\n </div>\n );\n}\n\ntype EmptyStateProps = {\n children: ReactNode;\n compact?: boolean;\n className?: string;\n};\n\nexport function SearchEmptyState({\n children,\n compact,\n className,\n}: EmptyStateProps) {\n return (\n <div\n className={cn(\n 'nh:text-center nh:text-gray-500',\n compact ? 'nh:px-2 nh:py-3 nh:text-xs' : 'nh:px-3 nh:py-8 nh:text-sm',\n className\n )}\n >\n {children}\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAGb,SAASC,UAAU,EAAEC,KAAK,QAAQ,cAAc;AAEhD,SAASC,EAAE,QAAQ,uBAAuB;AAC1C,SAASC,iBAAiB,QAAQ,YAAa;AAC/C,SAASC,UAAU,QAAQ,kBAAmB;AAAC,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AA,IAAAP,CAAA,QAAAa,EAAA;IAF5DC,EAAA,GAAAvB,EAAE,CACX,iCAAiC,EACjCsB,EAAqE,EACrEN,SACF,CAAC;IAAAP,CAAA,MAAAO,SAAA;IAAAP,CAAA,MAAAa,EAAA;IAAAb,CAAA,MAAAc,EAAA;EAAA;IAAAA,EAAA,GAAAd,CAAA;EAAA;EAAA,IAAAe,EAAA;EAAA,IAAAf,CAAA,QAAA0B,QAAA,IAAA1B,CAAA,QAAAc,EAAA;IALHC,EAAA,gBAAApB,IAAA;MACaY,SAIV,EAJUO,EAIV;MAAAY,QAAA,EAEAA;IAAQ,CACN,CAAC;IAAA1B,CAAA,MAAA0B,QAAA;IAAA1B,CAAA,MAAAc,EAAA;IAAAd,CAAA,MAAAe,EAAA;EAAA;IAAAA,EAAA,GAAAf,CAAA;EAAA;EAAA,OARNe,EAQM;AAAA","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PuckNode } from './puck-node';
|
|
1
|
+
import { PuckNode } from './puck-node.js';
|
|
2
2
|
type UsePuckOverlayOptions = {
|
|
3
3
|
node: PuckNode;
|
|
4
4
|
fieldName: string;
|
|
@@ -13,4 +13,3 @@ export declare function usePuckOverlay({ node, fieldName, isLoggedIn, }: UsePuck
|
|
|
13
13
|
isHighlighted: boolean;
|
|
14
14
|
};
|
|
15
15
|
export {};
|
|
16
|
-
//# sourceMappingURL=use-puck-overlay.d.ts.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
import { useEffect, useState } from 'react';
|
|
5
5
|
import { usePathname, useRouter, useSearchParams } from 'next/navigation';
|
|
6
|
-
import { useScrollLockOutside } from
|
|
7
|
-
import { useAgentHandle } from
|
|
8
|
-
import { usePuckEditor } from
|
|
6
|
+
import { useScrollLockOutside } from "./editor/use-scroll-lock-outside.js";
|
|
7
|
+
import { useAgentHandle } from "./plugins/agent-plugin/use-agent-handle.js";
|
|
8
|
+
import { usePuckEditor } from "./puck-editor-provider.js";
|
|
9
9
|
export function usePuckOverlay(t0) {
|
|
10
10
|
const $ = _c(22);
|
|
11
11
|
const {
|
|
@@ -25,8 +25,9 @@ export function usePuckOverlay(t0) {
|
|
|
25
25
|
t1 = $[1];
|
|
26
26
|
}
|
|
27
27
|
const puckDataParams = t1;
|
|
28
|
-
const
|
|
29
|
-
const [
|
|
28
|
+
const shouldOpenFromUrl = puckDataParams === "" || puckDataParams === fieldName;
|
|
29
|
+
const [isEditMode, setIsEditMode] = useState(shouldOpenFromUrl);
|
|
30
|
+
const [isEditorReady, setIsEditorReady] = useState(shouldOpenFromUrl);
|
|
30
31
|
const {
|
|
31
32
|
registerEditor,
|
|
32
33
|
isHighlighted
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-puck-overlay.js","names":["c","_c","useEffect","useState","usePathname","useRouter","useSearchParams","useScrollLockOutside","useAgentHandle","usePuckEditor","usePuckOverlay","t0","$","node","fieldName","isLoggedIn","searchParams","router","pathName","t1","get","puckDataParams","isEditMode","setIsEditMode","isEditorReady","setIsEditorReady","registerEditor","isHighlighted","t2","t3","t4","Symbol","for","openEditor","t5","has","newSearchParams","URLSearchParams","toString","delete","replace","scroll","refresh","closeEditor","t6","langcode","type","open","close","lang","t7"],"sources":["../../../src/puck-editor/internal/use-puck-overlay.ts"],"sourcesContent":["'use client';\n\nimport { useEffect, useState } from 'react';\nimport { usePathname, useRouter, useSearchParams } from 'next/navigation';\n\nimport { useScrollLockOutside } from './editor/use-scroll-lock-outside';\nimport { useAgentHandle } from './plugins/agent-plugin/use-agent-handle';\nimport { usePuckEditor } from './puck-editor-provider';\nimport { PuckNode } from './puck-node';\n\ntype UsePuckOverlayOptions = {\n node: PuckNode;\n fieldName: string;\n isLoggedIn: boolean;\n};\n\nexport function usePuckOverlay({\n node,\n fieldName,\n isLoggedIn,\n}: UsePuckOverlayOptions) {\n const searchParams = useSearchParams();\n const router = useRouter();\n const pathName = usePathname();\n const puckDataParams = searchParams.get('puckeditor');\n const [isEditMode, setIsEditMode] = useState(
|
|
1
|
+
{"version":3,"file":"use-puck-overlay.js","names":["c","_c","useEffect","useState","usePathname","useRouter","useSearchParams","useScrollLockOutside","useAgentHandle","usePuckEditor","usePuckOverlay","t0","$","node","fieldName","isLoggedIn","searchParams","router","pathName","t1","get","puckDataParams","shouldOpenFromUrl","isEditMode","setIsEditMode","isEditorReady","setIsEditorReady","registerEditor","isHighlighted","t2","t3","t4","Symbol","for","openEditor","t5","has","newSearchParams","URLSearchParams","toString","delete","replace","scroll","refresh","closeEditor","t6","langcode","type","open","close","lang","t7"],"sources":["../../../src/puck-editor/internal/use-puck-overlay.ts"],"sourcesContent":["'use client';\n\nimport { useEffect, useState } from 'react';\nimport { usePathname, useRouter, useSearchParams } from 'next/navigation';\n\nimport { useScrollLockOutside } from './editor/use-scroll-lock-outside.ts';\nimport { useAgentHandle } from './plugins/agent-plugin/use-agent-handle.ts';\nimport { usePuckEditor } from './puck-editor-provider.tsx';\nimport { PuckNode } from './puck-node.ts';\n\ntype UsePuckOverlayOptions = {\n node: PuckNode;\n fieldName: string;\n isLoggedIn: boolean;\n};\n\nexport function usePuckOverlay({\n node,\n fieldName,\n isLoggedIn,\n}: UsePuckOverlayOptions) {\n const searchParams = useSearchParams();\n const router = useRouter();\n const pathName = usePathname();\n const puckDataParams = searchParams.get('puckeditor');\n const shouldOpenFromUrl =\n puckDataParams === '' || puckDataParams === fieldName;\n const [isEditMode, setIsEditMode] = useState(shouldOpenFromUrl);\n const [isEditorReady, setIsEditorReady] = useState(shouldOpenFromUrl);\n const { registerEditor, isHighlighted } = usePuckEditor();\n\n useEffect(() => {\n registerEditor(() => setIsEditMode(true));\n }, [registerEditor]);\n\n useScrollLockOutside(isEditMode, '[data-puck-editor-overlay]');\n\n const openEditor = () => setIsEditMode(true);\n\n const closeEditor = async () => {\n setIsEditMode(false);\n if (searchParams.has('puckeditor')) {\n const newSearchParams = new URLSearchParams(searchParams.toString());\n newSearchParams.delete('puckeditor');\n router.replace(`${pathName}?${newSearchParams.toString()}`, {\n scroll: true,\n });\n }\n router.refresh();\n };\n\n useAgentHandle({\n isLoggedIn,\n open: openEditor,\n close: closeEditor,\n isEditMode,\n type: node.type,\n fieldName,\n lang: node.langcode,\n });\n\n return {\n isEditMode,\n isEditorReady,\n setIsEditorReady,\n openEditor,\n closeEditor,\n isHighlighted,\n };\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,WAAW,EAAEC,SAAS,EAAEC,eAAe,QAAQ,iBAAiB;AAEzE,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,SAASC,cAAc,QAAQ,4CAA4C;AAC3E,SAASC,aAAa,QAAQ,2BAA4B;AAS1D,OAAO,SAAAC,eAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAX,EAAA;EAAwB;IAAAY,IAAA;IAAAC,SAAA;IAAAC;EAAA,IAAAJ,EAIP;EACtB,MAAAK,YAAA,GAAqBV,eAAe,CAAC,CAAC;EACtC,MAAAW,MAAA,GAAeZ,SAAS,CAAC,CAAC;EAC1B,MAAAa,QAAA,GAAiBd,WAAW,CAAC,CAAC;EAAC,IAAAe,EAAA;EAAA,IAAAP,CAAA,QAAAI,YAAA;IACRG,EAAA,GAAAH,YAAY,CAAAI,GAAI,CAAC,YAAY,CAAC;IAAAR,CAAA,MAAAI,YAAA;IAAAJ,CAAA,MAAAO,EAAA;EAAA;IAAAA,EAAA,GAAAP,CAAA;EAAA;EAArD,MAAAS,cAAA,GAAuBF,EAA8B;EACrD,MAAAG,iBAAA,GACED,cAAc,KAAK,EAAkC,IAA5BA,cAAc,KAAKP,SAAS;EACvD,OAAAS,UAAA,EAAAC,aAAA,IAAoCrB,QAAQ,CAACmB,iBAAiB,CAAC;EAC/D,OAAAG,aAAA,EAAAC,gBAAA,IAA0CvB,QAAQ,CAACm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AgC,WAAA;IAAAhC,CAAA,OAAAW,UAAA;IAAAX,CAAA,OAAAa,aAAA;IAAAb,CAAA,OAAAgB,aAAA;IAAAhB,CAAA,OAAAuC,EAAA;EAAA;IAAAA,EAAA,GAAAvC,CAAA;EAAA;EAAA,OAPMuC,EAON;AAAA","ignoreList":[]}
|
|
@@ -3,4 +3,3 @@ export declare const stripInstanceNames: (data: Data, config: Config) => Data;
|
|
|
3
3
|
export declare const generateId: (type?: string | number) => string;
|
|
4
4
|
export declare const appendComponents: (dispatch: (action: PuckAction) => void, zone: string, startIndex: number, content: ComponentData[]) => void;
|
|
5
5
|
export declare const generateTemplateIds: (template: ComponentData[], config: Config) => ComponentData[];
|
|
6
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { CroppedImage, cropFocusPosition, cropSizes, type CroppedImageProps, } from './internal/render/cropped-image';
|
|
2
|
-
export type { CropBreakpoint, CropRegion, MediaCrop, MediaCropConfig, } from './internal/fields/media-selector/crop-types';
|
|
3
|
-
//# sourceMappingURL=render.d.ts.map
|
|
1
|
+
export { CroppedImage, cropFocusPosition, cropSizes, type CroppedImageProps, } from './internal/render/cropped-image.js';
|
|
2
|
+
export type { CropBreakpoint, CropRegion, MediaCrop, MediaCropConfig, } from './internal/fields/media-selector/crop-types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CroppedImage, cropFocusPosition, cropSizes } from
|
|
1
|
+
export { CroppedImage, cropFocusPosition, cropSizes } from "./internal/render/cropped-image.js";
|
|
2
2
|
//# sourceMappingURL=render.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","names":["CroppedImage","cropFocusPosition","cropSizes"],"sources":["../../src/puck-editor/render.ts"],"sourcesContent":["export {\n CroppedImage,\n cropFocusPosition,\n cropSizes,\n type CroppedImageProps,\n} from './internal/render/cropped-image';\nexport type {\n CropBreakpoint,\n CropRegion,\n MediaCrop,\n MediaCropConfig,\n} from './internal/fields/media-selector/crop-types';\n"],"mappings":"AAAA,SACEA,YAAY,EACZC,iBAAiB,EACjBC,SAAS,QAEJ,
|
|
1
|
+
{"version":3,"file":"render.js","names":["CroppedImage","cropFocusPosition","cropSizes"],"sources":["../../src/puck-editor/render.ts"],"sourcesContent":["export {\n CroppedImage,\n cropFocusPosition,\n cropSizes,\n type CroppedImageProps,\n} from './internal/render/cropped-image.tsx';\nexport type {\n CropBreakpoint,\n CropRegion,\n MediaCrop,\n MediaCropConfig,\n} from './internal/fields/media-selector/crop-types.ts';\n"],"mappings":"AAAA,SACEA,YAAY,EACZC,iBAAiB,EACjBC,SAAS,QAEJ,oCAAqC","ignoreList":[]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export type { PuckApiConfig } from './internal/api/config';
|
|
2
|
-
export { createPuckApi } from './internal/api/create-puck-api';
|
|
3
|
-
export type { PuckBundleConfig, PuckContentModelInput, PuckTemplatesConfig, } from './internal/content-model';
|
|
4
|
-
//# sourceMappingURL=server.d.ts.map
|
|
1
|
+
export type { PuckApiConfig, PuckPublishContext, PuckPublishPageSettings, PuckPublishPayload, } from './internal/api/config.js';
|
|
2
|
+
export { createPuckApi } from './internal/api/create-puck-api.js';
|
|
3
|
+
export type { PuckBundleConfig, PuckContentModelInput, PuckTemplatesConfig, } from './internal/content-model.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","names":["createPuckApi"],"sources":["../../src/puck-editor/server.ts"],"sourcesContent":["// Server entry: the handler factory for the catch-all API mount.\nexport type {
|
|
1
|
+
{"version":3,"file":"server.js","names":["createPuckApi"],"sources":["../../src/puck-editor/server.ts"],"sourcesContent":["// Server entry: the handler factory for the catch-all API mount.\nexport type {\n PuckApiConfig,\n PuckPublishContext,\n PuckPublishPageSettings,\n PuckPublishPayload,\n} from './internal/api/config.ts';\nexport { createPuckApi } from './internal/api/create-puck-api.ts';\nexport type {\n PuckBundleConfig,\n PuckContentModelInput,\n PuckTemplatesConfig,\n} from './internal/content-model.ts';\n"],"mappings":"AAAA;;AAOA,SAASA,aAAa,QAAQ,mCAAmC","ignoreList":[]}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { createPuckSmartActions } from './internal/smart-actions';
|
|
2
|
-
//# sourceMappingURL=smart-actions.d.ts.map
|
|
1
|
+
export { createPuckSmartActions } from './internal/smart-actions/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createPuckSmartActions } from
|
|
1
|
+
export { createPuckSmartActions } from "./internal/smart-actions/index.js";
|
|
2
2
|
//# sourceMappingURL=smart-actions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smart-actions.js","names":["createPuckSmartActions"],"sources":["../../src/puck-editor/smart-actions.ts"],"sourcesContent":["export { createPuckSmartActions } from './internal/smart-actions';\n"],"mappings":"AAAA,SAASA,sBAAsB,QAAQ,
|
|
1
|
+
{"version":3,"file":"smart-actions.js","names":["createPuckSmartActions"],"sources":["../../src/puck-editor/smart-actions.ts"],"sourcesContent":["export { createPuckSmartActions } from './internal/smart-actions/index.ts';\n"],"mappings":"AAAA,SAASA,sBAAsB,QAAQ,mCAAmC","ignoreList":[]}
|
package/dist/shared/cn.d.ts
CHANGED
package/dist/shared/i18n.d.ts
CHANGED
|
@@ -2,4 +2,3 @@ export type DictionaryOverrides<D> = {
|
|
|
2
2
|
[Section in keyof D]?: Partial<D[Section]>;
|
|
3
3
|
};
|
|
4
4
|
export declare function resolveDictionary<D extends Record<string, object>>(dictionaries: Record<string, D>, fallback: D, locale: string, overrides?: DictionaryOverrides<D>): D;
|
|
5
|
-
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const REVALIDATE_PATH = "/api/nodehive/revalidate";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revalidate-path.js","names":["REVALIDATE_PATH"],"sources":["../../src/shared/revalidate-path.ts"],"sourcesContent":["export const REVALIDATE_PATH = '/api/nodehive/revalidate';\n"],"mappings":"AAAA,OAAO,MAAMA,eAAe,GAAG,0BAA0B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-is-in-iframe.js","names":["useIsHydrated","useIsInIframe","window","self","top"],"sources":["../../src/shared/use-is-in-iframe.ts"],"sourcesContent":["'use client';\n\nimport { useIsHydrated } from './use-is-hydrated';\n\nexport function useIsInIframe(): boolean {\n return useIsHydrated() && window.self !== window.top;\n}\n"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,aAAa,QAAQ,
|
|
1
|
+
{"version":3,"file":"use-is-in-iframe.js","names":["useIsHydrated","useIsInIframe","window","self","top"],"sources":["../../src/shared/use-is-in-iframe.ts"],"sourcesContent":["'use client';\n\nimport { useIsHydrated } from './use-is-hydrated.ts';\n\nexport function useIsInIframe(): boolean {\n return useIsHydrated() && window.self !== window.top;\n}\n"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,aAAa,QAAQ,sBAAsB;AAEpD,OAAO,SAAAC,cAAA;EAAA,OACED,aAAa,CAA+B,CAAC,IAA1BE,MAAM,CAAAC,IAAK,KAAKD,MAAM,CAAAE,GAAI;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SmartActionsLabels } from './i18n.js';
|
|
2
|
+
import type { SmartActionsToolbarAction } from './toolbar/types.js';
|
|
3
|
+
export type SmartActionsBuilderContext = {
|
|
4
|
+
lang: string;
|
|
5
|
+
labels: SmartActionsLabels;
|
|
6
|
+
};
|
|
7
|
+
export type SmartActionsBuilder = (defaults: SmartActionsToolbarAction[], context: SmartActionsBuilderContext) => SmartActionsToolbarAction[];
|
|
8
|
+
export declare function assembleSmartActions({ profile, extraActions, rest, context, buildActions, }: {
|
|
9
|
+
profile: SmartActionsToolbarAction | null;
|
|
10
|
+
extraActions: SmartActionsToolbarAction[];
|
|
11
|
+
rest: SmartActionsToolbarAction[];
|
|
12
|
+
context: SmartActionsBuilderContext;
|
|
13
|
+
buildActions?: SmartActionsBuilder;
|
|
14
|
+
}): SmartActionsToolbarAction[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function assembleSmartActions({
|
|
2
|
+
profile,
|
|
3
|
+
extraActions,
|
|
4
|
+
rest,
|
|
5
|
+
context,
|
|
6
|
+
buildActions
|
|
7
|
+
}) {
|
|
8
|
+
const defaults = [...(profile ? [profile] : []), ...extraActions, ...rest];
|
|
9
|
+
return buildActions ? buildActions(defaults, context) : defaults;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=assemble-smart-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assemble-smart-actions.js","names":["assembleSmartActions","profile","extraActions","rest","context","buildActions","defaults"],"sources":["../../../src/smart-actions/internal/assemble-smart-actions.ts"],"sourcesContent":["import type { SmartActionsLabels } from './i18n.ts';\nimport type { SmartActionsToolbarAction } from './toolbar/types.ts';\n\nexport type SmartActionsBuilderContext = {\n lang: string;\n labels: SmartActionsLabels;\n};\n\nexport type SmartActionsBuilder = (\n defaults: SmartActionsToolbarAction[],\n context: SmartActionsBuilderContext\n) => SmartActionsToolbarAction[];\n\nexport function assembleSmartActions({\n profile,\n extraActions,\n rest,\n context,\n buildActions,\n}: {\n profile: SmartActionsToolbarAction | null;\n extraActions: SmartActionsToolbarAction[];\n rest: SmartActionsToolbarAction[];\n context: SmartActionsBuilderContext;\n buildActions?: SmartActionsBuilder;\n}): SmartActionsToolbarAction[] {\n const defaults = [...(profile ? [profile] : []), ...extraActions, ...rest];\n return buildActions ? buildActions(defaults, context) : defaults;\n}\n"],"mappings":"AAaA,OAAO,SAASA,oBAAoBA,CAAC;EACnCC,OAAO;EACPC,YAAY;EACZC,IAAI;EACJC,OAAO;EACPC;AAOF,CAAC,EAA+B;EAC9B,MAAMC,QAAQ,GAAG,CAAC,IAAIL,OAAO,GAAG,CAACA,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,GAAGC,YAAY,EAAE,GAAGC,IAAI,CAAC;EAC1E,OAAOE,YAAY,GAAGA,YAAY,CAACC,QAAQ,EAAEF,OAAO,CAAC,GAAGE,QAAQ;AAClE","ignoreList":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { ExternalLink } from 'lucide-react';
|
|
5
|
+
import { cn } from "../../shared/cn.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export default function BackendEditLink(t0) {
|
|
8
|
+
const $ = _c(7);
|
|
9
|
+
const {
|
|
10
|
+
href,
|
|
11
|
+
label
|
|
12
|
+
} = t0;
|
|
13
|
+
if (!href) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
let t1;
|
|
17
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
18
|
+
t1 = 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");
|
|
19
|
+
$[0] = t1;
|
|
20
|
+
} else {
|
|
21
|
+
t1 = $[0];
|
|
22
|
+
}
|
|
23
|
+
let t2;
|
|
24
|
+
if ($[1] !== label) {
|
|
25
|
+
t2 = /*#__PURE__*/_jsx("span", {
|
|
26
|
+
className: "nh:sr-only",
|
|
27
|
+
children: label
|
|
28
|
+
});
|
|
29
|
+
$[1] = label;
|
|
30
|
+
$[2] = t2;
|
|
31
|
+
} else {
|
|
32
|
+
t2 = $[2];
|
|
33
|
+
}
|
|
34
|
+
let t3;
|
|
35
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
36
|
+
t3 = /*#__PURE__*/_jsx(ExternalLink, {
|
|
37
|
+
className: "nh:h-5 nh:w-5"
|
|
38
|
+
});
|
|
39
|
+
$[3] = t3;
|
|
40
|
+
} else {
|
|
41
|
+
t3 = $[3];
|
|
42
|
+
}
|
|
43
|
+
let t4;
|
|
44
|
+
if ($[4] !== href || $[5] !== t2) {
|
|
45
|
+
t4 = /*#__PURE__*/_jsxs("a", {
|
|
46
|
+
href: href,
|
|
47
|
+
target: "_blank",
|
|
48
|
+
rel: "noreferrer",
|
|
49
|
+
className: t1,
|
|
50
|
+
children: [t2, t3]
|
|
51
|
+
});
|
|
52
|
+
$[4] = href;
|
|
53
|
+
$[5] = t2;
|
|
54
|
+
$[6] = t4;
|
|
55
|
+
} else {
|
|
56
|
+
t4 = $[6];
|
|
57
|
+
}
|
|
58
|
+
return t4;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=backend-edit-link.js.map
|