@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,59 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useSyncExternalStore } from 'react';
|
|
5
|
+
function readFrameZoom(doc) {
|
|
6
|
+
const frame = doc?.defaultView?.frameElement;
|
|
7
|
+
if (!frame || frame.offsetWidth === 0) return 1;
|
|
8
|
+
const zoom = frame.getBoundingClientRect().width / frame.offsetWidth;
|
|
9
|
+
return Math.round(zoom * 1000) / 1000;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// The canvas zoom is Puck-internal state without a public API; it lands as an
|
|
13
|
+
// inline transform on #puck-canvas-root (animated, hence transitionend).
|
|
14
|
+
export function useFrameZoom(doc) {
|
|
15
|
+
const $ = _c(4);
|
|
16
|
+
let t0;
|
|
17
|
+
if ($[0] !== doc?.defaultView?.frameElement) {
|
|
18
|
+
t0 = onStoreChange => {
|
|
19
|
+
const frame = doc?.defaultView?.frameElement;
|
|
20
|
+
if (!frame) {
|
|
21
|
+
return _temp;
|
|
22
|
+
}
|
|
23
|
+
const win = frame.ownerDocument.defaultView;
|
|
24
|
+
const canvasRoot = frame.closest("#puck-canvas-root") ?? frame.parentElement;
|
|
25
|
+
const observer = new MutationObserver(onStoreChange);
|
|
26
|
+
if (canvasRoot) {
|
|
27
|
+
observer.observe(canvasRoot, {
|
|
28
|
+
attributes: true,
|
|
29
|
+
attributeFilter: ["style"]
|
|
30
|
+
});
|
|
31
|
+
canvasRoot.addEventListener("transitionend", onStoreChange);
|
|
32
|
+
}
|
|
33
|
+
win?.addEventListener("resize", onStoreChange);
|
|
34
|
+
return () => {
|
|
35
|
+
observer.disconnect();
|
|
36
|
+
canvasRoot?.removeEventListener("transitionend", onStoreChange);
|
|
37
|
+
win?.removeEventListener("resize", onStoreChange);
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
$[0] = doc?.defaultView?.frameElement;
|
|
41
|
+
$[1] = t0;
|
|
42
|
+
} else {
|
|
43
|
+
t0 = $[1];
|
|
44
|
+
}
|
|
45
|
+
let t1;
|
|
46
|
+
if ($[2] !== doc) {
|
|
47
|
+
t1 = () => readFrameZoom(doc);
|
|
48
|
+
$[2] = doc;
|
|
49
|
+
$[3] = t1;
|
|
50
|
+
} else {
|
|
51
|
+
t1 = $[3];
|
|
52
|
+
}
|
|
53
|
+
return useSyncExternalStore(t0, t1, _temp2);
|
|
54
|
+
}
|
|
55
|
+
function _temp2() {
|
|
56
|
+
return 1;
|
|
57
|
+
}
|
|
58
|
+
function _temp() {}
|
|
59
|
+
//# sourceMappingURL=use-frame-zoom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-frame-zoom.js","names":["c","_c","useSyncExternalStore","readFrameZoom","doc","frame","defaultView","frameElement","offsetWidth","zoom","getBoundingClientRect","width","Math","round","useFrameZoom","$","t0","onStoreChange","_temp","win","ownerDocument","canvasRoot","closest","parentElement","observer","MutationObserver","observe","attributes","attributeFilter","addEventListener","disconnect","removeEventListener","t1","_temp2"],"sources":["../../../../src/puck-editor/internal/editor/use-frame-zoom.ts"],"sourcesContent":["'use client';\n\nimport { useSyncExternalStore } from 'react';\n\nfunction readFrameZoom(doc: Document | null): number {\n const frame = doc?.defaultView?.frameElement as HTMLElement | null;\n if (!frame || frame.offsetWidth === 0) return 1;\n const zoom = frame.getBoundingClientRect().width / frame.offsetWidth;\n return Math.round(zoom * 1000) / 1000;\n}\n\n// The canvas zoom is Puck-internal state without a public API; it lands as an\n// inline transform on #puck-canvas-root (animated, hence transitionend).\nexport function useFrameZoom(doc: Document | null): number {\n return useSyncExternalStore(\n (onStoreChange) => {\n const frame = doc?.defaultView?.frameElement as HTMLElement | null;\n if (!frame) return () => {};\n const win = frame.ownerDocument.defaultView;\n const canvasRoot =\n frame.closest('#puck-canvas-root') ?? frame.parentElement;\n const observer = new MutationObserver(onStoreChange);\n if (canvasRoot) {\n observer.observe(canvasRoot, {\n attributes: true,\n attributeFilter: ['style'],\n });\n canvasRoot.addEventListener('transitionend', onStoreChange);\n }\n win?.addEventListener('resize', onStoreChange);\n return () => {\n observer.disconnect();\n canvasRoot?.removeEventListener('transitionend', onStoreChange);\n win?.remov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E,GAAG,EAAAU,gBAA2C,CAAxB,QAAQ,EAAEZ,aAAa,CAAC;MAAA,OACvC;QACLO,QAAQ,CAAAM,UAAW,CAAC,CAAC;QACrBT,UAAU,EAAAU,mBAAqD,CAA/B,eAAe,EAAEd,aAAa,CAAC;QAC/DE,GAAG,EAAAY,mBAA8C,CAAxB,QAAQ,EAAEd,aAAa,CAAC;MAAA,CAClD;IAAA,CACF;IAAAF,CAAA,MAAAX,GAAA,EAAAE,WAAA,EAAAC,YAAA;IAAAQ,CAAA,MAAAC,EAAA;EAAA;IAAAA,EAAA,GAAAD,CAAA;EAAA;EAAA,IAAAiB,EAAA;EAAA,IAAAjB,CAAA,QAAAX,GAAA;IACD4B,EAAA,GAAAA,CAAA,KAAM7B,aAAa,CAACC,GAAG,CAAC;IAAAW,CAAA,MAAAX,GAAA;IAAAW,CAAA,MAAAiB,EAAA;EAAA;IAAAA,EAAA,GAAAjB,CAAA;EAAA;EAAA,OAtBnBb,oBAAoB,CACzBc,EAoBC,EACDgB,EAAwB,EACxBC,MACF,CAAC;AAAA;AAzBI,SAAAA,OAAA;EAAA,OAwBG,CAAC;AAAA;AAxBJ,SAAAf,MAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useIsDirty(savedVersion: number): boolean;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { createUsePuck } from '@puckeditor/core';
|
|
6
|
+
import { stripTemplateVehicles } from "../plugins/templates-plugin/index.js";
|
|
7
|
+
import { serializePuckData } from "./dirty-state.js";
|
|
8
|
+
const usePuck = createUsePuck();
|
|
9
|
+
export function useIsDirty(savedVersion) {
|
|
10
|
+
const $ = _c(2);
|
|
11
|
+
const appState = usePuck(_temp);
|
|
12
|
+
let t0;
|
|
13
|
+
if ($[0] !== appState.data) {
|
|
14
|
+
t0 = serializePuckData(stripTemplateVehicles(appState.data));
|
|
15
|
+
$[0] = appState.data;
|
|
16
|
+
$[1] = t0;
|
|
17
|
+
} else {
|
|
18
|
+
t0 = $[1];
|
|
19
|
+
}
|
|
20
|
+
const current = t0;
|
|
21
|
+
const [baseline, setBaseline] = useState(current);
|
|
22
|
+
const [seenVersion, setSeenVersion] = useState(savedVersion);
|
|
23
|
+
if (savedVersion !== seenVersion) {
|
|
24
|
+
setSeenVersion(savedVersion);
|
|
25
|
+
setBaseline(current);
|
|
26
|
+
}
|
|
27
|
+
return current !== baseline;
|
|
28
|
+
}
|
|
29
|
+
function _temp(s) {
|
|
30
|
+
return s.appState;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=use-is-dirty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-is-dirty.js","names":["c","_c","useState","createUsePuck","stripTemplateVehicles","serializePuckData","usePuck","useIsDirty","savedVersion","$","appState","_temp","t0","data","current","baseline","setBaseline","seenVersion","setSeenVersion","s"],"sources":["../../../../src/puck-editor/internal/editor/use-is-dirty.ts"],"sourcesContent":["'use client';\n\nimport { useState } from 'react';\nimport { createUsePuck } from '@puckeditor/core';\n\nimport { stripTemplateVehicles } from '../plugins/templates-plugin/index.ts';\nimport { serializePuckData } from './dirty-state.ts';\n\nconst usePuck = createUsePuck();\n\nexport function useIsDirty(savedVersion: number): boolean {\n const appState = usePuck((s) => s.appState);\n const current = serializePuckData(stripTemplateVehicles(appState.data));\n const [baseline, setBaseline] = useState(current);\n const [seenVersion, setSeenVersion] = useState(savedVersion);\n\n if (savedVersion !== seenVersion) {\n setSeenVersion(savedVersion);\n setBaseline(current);\n }\n\n return current !== baseline;\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,QAAQ,QAAQ,OAAO;AAChC,SAASC,aAAa,QAAQ,kBAAkB;AAEhD,SAASC,qBAAqB,QAAQ,sCAAsC;AAC5E,SAASC,iBAAiB,QAAQ,kBAAkB;AAEpD,MAAMC,OAAO,GAAGH,aAAa,CAAC,CAAC;AAE/B,OAAO,SAAAI,WAAAC,YAAA;EAAA,MAAAC,CAAA,GAAAR,EAAA;EACL,MAAAS,QAAA,GAAiBJ,OAAO,CAACK,KAAiB,CAAC;EAAC,IAAAC,EAAA;EAAA,IAAAH,CAAA,QAAAC,QAAA,CAAAG,IAAA;IAC5BD,EAAA,GAAAP,iBAAiB,CAACD,qBAAqB,CAACM,QAAQ,CAAAG,IAAK,CAAC,CAAC;IAAAJ,CAAA,MAAAC,QAAA,CAAAG,IAAA;IAAAJ,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAAvE,MAAAK,OAAA,GAAgBF,EAAuD;EACvE,OAAAG,QAAA,EAAAC,WAAA,IAAgCd,QAAQ,CAACY,OAAO,CAAC;EACjD,OAAAG,WAAA,EAAAC,cAAA,IAAsChB,QAAQ,CAACM,YAAY,CAAC;EAE5D,IAAIA,YAAY,KAAKS,WAAW;IAC9BC,cAAc,CAACV,YAAY,CAAC;IAC5BQ,WAAW,CAACF,OAAO,CAAC;EAAA;EACrB,OAEMA,OAAO,KAAKC,QAAQ;AAAA;AAXtB,SAAAJ,MAAAQ,CAAA;EAAA,OAC2BA,CAAC,CAAAT,QAAS;AAAA","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
import type
|
|
2
|
+
import { type PuckApiInjection } from './api/client.js';
|
|
3
|
+
import { type PuckContentModel, type PuckContentModelInput, type PuckPropTransforms } from './content-model.js';
|
|
4
|
+
import type { BuiltinTemplate } from './plugins/templates-plugin/templates.js';
|
|
4
5
|
export type PuckEditorConfig = {
|
|
5
6
|
/**
|
|
6
7
|
* Absolute Drupal base URL used to absolutize relative media URIs
|
|
@@ -14,6 +15,18 @@ export type PuckEditorConfig = {
|
|
|
14
15
|
*/
|
|
15
16
|
contentModel?: PuckContentModelInput;
|
|
16
17
|
builtinTemplates?: BuiltinTemplate[];
|
|
18
|
+
/**
|
|
19
|
+
* Prop migrations applied wherever stored Puck data enters the editor
|
|
20
|
+
* (page data and template inserts). Pass the same transforms to
|
|
21
|
+
* parsePuckData in the live-render path so both paths stay in sync.
|
|
22
|
+
*/
|
|
23
|
+
propTransforms?: PuckPropTransforms;
|
|
24
|
+
/**
|
|
25
|
+
* Overrides for the editor API calls (base path and/or fetch). Defaults to
|
|
26
|
+
* NEXT_PUBLIC_NODEHIVE_PUCK_API_BASE (or /api/puck) and the global fetch, so
|
|
27
|
+
* leaving this unset keeps the current behavior.
|
|
28
|
+
*/
|
|
29
|
+
api?: PuckApiInjection;
|
|
17
30
|
};
|
|
18
31
|
/**
|
|
19
32
|
* Mounted by PuckWrapper. Headless setups that use useMediaLibrary or
|
|
@@ -26,5 +39,5 @@ export declare function PuckEditorConfigProvider({ config, children, }: {
|
|
|
26
39
|
export declare function usePuckEditorConfig(): PuckEditorConfig;
|
|
27
40
|
/** Resolved content model; defaults apply without a provider (headless). */
|
|
28
41
|
export declare function usePuckContentModel(): PuckContentModel;
|
|
42
|
+
export declare function usePuckPropTransforms(): PuckPropTransforms | undefined;
|
|
29
43
|
export declare function useBuiltinTemplates(): BuiltinTemplate[];
|
|
30
|
-
//# sourceMappingURL=editor-config.d.ts.map
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
import { createContext, useContext } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { configurePuckApi } from "./api/client.js";
|
|
6
|
+
import { resolveContentModel } from "./content-model.js";
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
const PuckEditorConfigContext = /*#__PURE__*/createContext({});
|
|
8
9
|
|
|
@@ -16,6 +17,9 @@ export function PuckEditorConfigProvider(t0) {
|
|
|
16
17
|
config,
|
|
17
18
|
children
|
|
18
19
|
} = t0;
|
|
20
|
+
if (typeof window !== "undefined") {
|
|
21
|
+
configurePuckApi(config.api);
|
|
22
|
+
}
|
|
19
23
|
let t1;
|
|
20
24
|
if ($[0] !== children || $[1] !== config) {
|
|
21
25
|
t1 = /*#__PURE__*/_jsx(PuckEditorConfigContext.Provider, {
|
|
@@ -50,6 +54,9 @@ export function usePuckContentModel() {
|
|
|
50
54
|
}
|
|
51
55
|
return t0;
|
|
52
56
|
}
|
|
57
|
+
export function usePuckPropTransforms() {
|
|
58
|
+
return useContext(PuckEditorConfigContext).propTransforms;
|
|
59
|
+
}
|
|
53
60
|
const NO_BUILTINS = [];
|
|
54
61
|
export function useBuiltinTemplates() {
|
|
55
62
|
return useContext(PuckEditorConfigContext).builtinTemplates ?? NO_BUILTINS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-config.js","names":["c","_c","createContext","useContext","resolveContentModel","jsx","_jsx","PuckEditorConfigContext","PuckEditorConfigProvider","t0","$","config","children","t1","Provider","usePuckEditorConfig","usePuckContentModel","contentModel","NO_BUILTINS","useBuiltinTemplates","builtinTemplates"],"sources":["../../../src/puck-editor/internal/editor-config.tsx"],"sourcesContent":["'use client';\n\nimport { createContext, useContext, type ReactNode } from 'react';\n\nimport {\n resolveContentModel,\n type PuckContentModel,\n type PuckContentModelInput,\n} from './content-model';\nimport type { BuiltinTemplate } from './plugins/templates-plugin/templates';\n\nexport type PuckEditorConfig = {\n /**\n * Absolute Drupal base URL used to absolutize relative media URIs\n * (thumbnails). Injected by the project instead of reading NEXT_PUBLIC_*\n * env in module code — env inlining is not guaranteed inside packages.\n */\n drupalBaseUrl?: string;\n /**\n * Drupal content-model overrides. Pass the same value to createPuckApi so\n * the editor UI and the publish validation stay in sync.\n */\n contentModel?: PuckContentModelInput;\n builtinTemplates?: BuiltinTemplate[];\n};\n\nconst PuckEditorConfigContext = createContext<PuckEditorConfig>({});\n\n/**\n * Mounted by PuckWrapper. Headless setups that use useMediaLibrary or\n * MediaSelectorField outside PuckWrapper mount this provider themselves.\n */\nexport function PuckEditorConfigProvider({\n config,\n children,\n}: {\n config: PuckEditorConfig;\n children: ReactNode;\n}) {\n return (\n <PuckEditorConfigContext.Provider value={config}>\n {children}\n </PuckEditorConfigContext.Provider>\n );\n}\n\nexport function usePuckEditorConfig(): PuckEditorConfig {\n return useContext(PuckEditorConfigContext);\n}\n\n/** Resolved content model; defaults apply without a provider (headless). */\nexport function usePuckContentModel(): PuckContentModel {\n const { contentModel } = useContext(PuckEditorConfigContext);\n return resolveContentModel(contentModel);\n}\n\nconst NO_BUILTINS: BuiltinTemplate[] = [];\n\nexport function useBuiltinTemplates(): BuiltinTemplate[] {\n return useContext(PuckEditorConfigContext).builtinTemplates ?? NO_BUILTINS;\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,aAAa,EAAEC,UAAU,QAAwB,OAAO;AAEjE,SACEC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"editor-config.js","names":["c","_c","createContext","useContext","configurePuckApi","resolveContentModel","jsx","_jsx","PuckEditorConfigContext","PuckEditorConfigProvider","t0","$","config","children","window","api","t1","Provider","usePuckEditorConfig","usePuckContentModel","contentModel","usePuckPropTransforms","propTransforms","NO_BUILTINS","useBuiltinTemplates","builtinTemplates"],"sources":["../../../src/puck-editor/internal/editor-config.tsx"],"sourcesContent":["'use client';\n\nimport { createContext, useContext, type ReactNode } from 'react';\n\nimport { configurePuckApi, type PuckApiInjection } from './api/client.ts';\nimport {\n resolveContentModel,\n type PuckContentModel,\n type PuckContentModelInput,\n type PuckPropTransforms,\n} from './content-model.ts';\nimport type { BuiltinTemplate } from './plugins/templates-plugin/templates.ts';\n\nexport type PuckEditorConfig = {\n /**\n * Absolute Drupal base URL used to absolutize relative media URIs\n * (thumbnails). Injected by the project instead of reading NEXT_PUBLIC_*\n * env in module code — env inlining is not guaranteed inside packages.\n */\n drupalBaseUrl?: string;\n /**\n * Drupal content-model overrides. Pass the same value to createPuckApi so\n * the editor UI and the publish validation stay in sync.\n */\n contentModel?: PuckContentModelInput;\n builtinTemplates?: BuiltinTemplate[];\n /**\n * Prop migrations applied wherever stored Puck data enters the editor\n * (page data and template inserts). Pass the same transforms to\n * parsePuckData in the live-render path so both paths stay in sync.\n */\n propTransforms?: PuckPropTransforms;\n /**\n * Overrides for the editor API calls (base path and/or fetch). Defaults to\n * NEXT_PUBLIC_NODEHIVE_PUCK_API_BASE (or /api/puck) and the global fetch, so\n * leaving this unset keeps the current behavior.\n */\n api?: PuckApiInjection;\n};\n\nconst PuckEditorConfigContext = createContext<PuckEditorConfig>({});\n\n/**\n * Mounted by PuckWrapper. Headless setups that use useMediaLibrary or\n * MediaSelectorField outside PuckWrapper mount this provider themselves.\n */\nexport function PuckEditorConfigProvider({\n config,\n children,\n}: {\n config: PuckEditorConfig;\n children: ReactNode;\n}) {\n if (typeof window !== 'undefined') {\n configurePuckApi(config.api);\n }\n return (\n <PuckEditorConfigContext.Provider value={config}>\n {children}\n </PuckEditorConfigContext.Provider>\n );\n}\n\nexport function usePuckEditorConfig(): PuckEditorConfig {\n return useContext(PuckEditorConfigContext);\n}\n\n/** Resolved content model; defaults apply without a provider (headless). */\nexport function usePuckContentModel(): PuckContentModel {\n const { contentModel } = useContext(PuckEditorConfigContext);\n return resolveContentModel(contentModel);\n}\n\nexport function usePuckPropTransforms(): PuckPropTransforms | undefined {\n return useContext(PuckEditorConfigContext).propTransforms;\n}\n\nconst NO_BUILTINS: BuiltinTemplate[] = [];\n\nexport function useBuiltinTemplates(): BuiltinTemplate[] {\n return useContext(PuckEditorConfigContext).builtinTemplates ?? NO_BUILTINS;\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,aAAa,EAAEC,UAAU,QAAwB,OAAO;AAEjE,SAASC,gBAAgB,QAA+B,iBAAiB;AACzE,SACEC,mBAAmB,QAId,oBAAoB;AAAC,SAAAC,GAAA,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,uBAAuB,CAAC,CAAAiB,gBAAgC,IAAnEF,WAAmE;AAAA","ignoreList":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
|
-
import { usePuckDictionary } from
|
|
5
|
-
import { RequiredFieldLabel } from
|
|
4
|
+
import { usePuckDictionary } from "../../i18n.js";
|
|
5
|
+
import { RequiredFieldLabel } from "../required-field-label.js";
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
export function CheckboxGroupField(t0) {
|
|
8
8
|
const $ = _c(22);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-group-field.js","names":["c","_c","usePuckDictionary","RequiredFieldLabel","jsx","_jsx","jsxs","_jsxs","CheckboxGroupField","t0","$","label","options","value","t1","onChange","helperText","t2","undefined","t","fields","t3","optionValue","includes","filter","item","handleToggle","t4","t5","t6","className","children","t7","t8","option","type","checked","map","t9"],"sources":["../../../../../src/puck-editor/internal/fields/checkbox-group/checkbox-group-field.tsx"],"sourcesContent":["'use client';\n\nimport { usePuckDictionary } from '../../i18n';\nimport { RequiredFieldLabel } from '../required-field-label';\n\ntype CheckboxOption = {\n label: string;\n value: string;\n};\n\ntype CheckboxGroupFieldProps = {\n label?: string;\n options: CheckboxOption[];\n value?: string[];\n onChange: (value: string[]) => void;\n helperText?: string;\n};\n\nexport function CheckboxGroupField({\n label,\n options,\n value = [],\n onChange,\n helperText,\n}: CheckboxGroupFieldProps) {\n const t = usePuckDictionary().fields;\n const handleToggle = (optionValue: string) => {\n if (value.includes(optionValue)) {\n onChange(value.filter((item) => item !== optionValue));\n } else {\n onChange([...value, optionValue]);\n }\n };\n\n return (\n <div className=\"nh:flex nh:flex-col nh:gap-2\">\n <RequiredFieldLabel label={label ?? t.options} />\n {helperText ? (\n <p className=\"nh:text-xs nh:text-gray-500\">{helperText}</p>\n ) : null}\n <div className=\"nh:flex nh:flex-col nh:gap-1\">\n {options.map((option) => (\n <label\n key={option.value}\n className=\"nh:flex nh:items-center nh:gap-2 nh:rounded nh:border nh:border-transparent nh:px-2 nh:py-1 nh:text-sm nh:font-medium nh:text-gray-700 nh:hover:border-gray-200\"\n >\n <input\n type=\"checkbox\"\n className=\"nh:size-4 nh:rounded nh:border-gray-300 nh:text-(--nh-primary)\"\n checked={value.includes(option.value)}\n onChange={() => handleToggle(option.value)}\n />\n <span className=\"nh:text-gray-900\">{option.label}</span>\n </label>\n ))}\n </div>\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,iBAAiB,QAAQ,
|
|
1
|
+
{"version":3,"file":"checkbox-group-field.js","names":["c","_c","usePuckDictionary","RequiredFieldLabel","jsx","_jsx","jsxs","_jsxs","CheckboxGroupField","t0","$","label","options","value","t1","onChange","helperText","t2","undefined","t","fields","t3","optionValue","includes","filter","item","handleToggle","t4","t5","t6","className","children","t7","t8","option","type","checked","map","t9"],"sources":["../../../../../src/puck-editor/internal/fields/checkbox-group/checkbox-group-field.tsx"],"sourcesContent":["'use client';\n\nimport { usePuckDictionary } from '../../i18n.tsx';\nimport { RequiredFieldLabel } from '../required-field-label.tsx';\n\ntype CheckboxOption = {\n label: string;\n value: string;\n};\n\ntype CheckboxGroupFieldProps = {\n label?: string;\n options: CheckboxOption[];\n value?: string[];\n onChange: (value: string[]) => void;\n helperText?: string;\n};\n\nexport function CheckboxGroupField({\n label,\n options,\n value = [],\n onChange,\n helperText,\n}: CheckboxGroupFieldProps) {\n const t = usePuckDictionary().fields;\n const handleToggle = (optionValue: string) => {\n if (value.includes(optionValue)) {\n onChange(value.filter((item) => item !== optionValue));\n } else {\n onChange([...value, optionValue]);\n }\n };\n\n return (\n <div className=\"nh:flex nh:flex-col nh:gap-2\">\n <RequiredFieldLabel label={label ?? t.options} />\n {helperText ? (\n <p className=\"nh:text-xs nh:text-gray-500\">{helperText}</p>\n ) : null}\n <div className=\"nh:flex nh:flex-col nh:gap-1\">\n {options.map((option) => (\n <label\n key={option.value}\n className=\"nh:flex nh:items-center nh:gap-2 nh:rounded nh:border nh:border-transparent nh:px-2 nh:py-1 nh:text-sm nh:font-medium nh:text-gray-700 nh:hover:border-gray-200\"\n >\n <input\n type=\"checkbox\"\n className=\"nh:size-4 nh:rounded nh:border-gray-300 nh:text-(--nh-primary)\"\n checked={value.includes(option.value)}\n onChange={() => handleToggle(option.value)}\n />\n <span className=\"nh:text-gray-900\">{option.label}</span>\n </label>\n ))}\n </div>\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,iBAAiB,QAAQ,eAAgB;AAClD,SAASC,kBAAkB,QAAQ,4BAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAejE,OAAO,SAAAC,mBAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAT,EAAA;EAA4B;IAAAU,KAAA;IAAAC,OAAA;IAAAC,KAAA,EAAAC,EAAA;IAAAC,QAAA;IAAAC;EAAA,IAAAP,EAMT;EAAA,IAAAQ,EAAA;EAAA,IAAAP,CAAA,QAAAI,EAAA;IAHxBG,EAAA,GAAAH,EAAU,KAAVI,SAAU,GAAV,EAAU,GAAVJ,EAAU;IAAAJ,CAAA,MAAAI,EAAA;IAAAJ,CAAA,MAAAO,EAAA;EAAA;IAAAA,EAAA,GAAAP,CAAA;EAAA;EAAV,MAAAG,KAAA,GAAAI,EAAU;EAIV,MAAAE,CAAA,GAAUjB,iBAAiB,CAAC,CAAC,CAAAkB,MAAO;EAAC,IAAAC,EAAA;EAAA,IAAAX,CAAA,QAAAK,QAAA,IAAAL,CAAA,QAAAG,KAAA;IAChBQ,EAAA,GAAAC,WAAA;MACnB,IAAIT,KAAK,CAAAU,QAAS,CAACD,WAAW,CAAC;QAC7BP,QAAQ,CAACF,KAAK,CAAAW,M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AA;IAAAA,EAAA,GAAA5B,CAAA;EAAA;EAAA,OArBN4B,EAqBM;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-checkbox-group-field.js","names":["CheckboxGroupField","jsx","_jsx","createCheckboxGroupField","label","options","helperText","type","render","field","value","onChange"],"sources":["../../../../../src/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.tsx"],"sourcesContent":["import type { CustomFieldRender } from '@puckeditor/core';\n\nimport { CheckboxGroupField } from './checkbox-group-field';\n\nexport interface CheckboxGroupFieldOptions {\n label?: string;\n options: Array<{ label: string; value: string }>;\n helperText?: string;\n}\n\nexport const createCheckboxGroupField = ({\n label,\n options,\n helperText,\n}: CheckboxGroupFieldOptions) => {\n return {\n type: 'custom' as const,\n label,\n render: (({ field, value, onChange }) => (\n <CheckboxGroupField\n label={field.label ?? label}\n options={options}\n value={value}\n onChange={onChange}\n helperText={helperText}\n />\n )) satisfies CustomFieldRender<string[]>,\n };\n};\n"],"mappings":"AAEA,SAASA,kBAAkB,QAAQ,
|
|
1
|
+
{"version":3,"file":"create-checkbox-group-field.js","names":["CheckboxGroupField","jsx","_jsx","createCheckboxGroupField","label","options","helperText","type","render","field","value","onChange"],"sources":["../../../../../src/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.tsx"],"sourcesContent":["import type { CustomFieldRender } from '@puckeditor/core';\n\nimport { CheckboxGroupField } from './checkbox-group-field.tsx';\n\nexport interface CheckboxGroupFieldOptions {\n label?: string;\n options: Array<{ label: string; value: string }>;\n helperText?: string;\n}\n\nexport const createCheckboxGroupField = ({\n label,\n options,\n helperText,\n}: CheckboxGroupFieldOptions) => {\n return {\n type: 'custom' as const,\n label,\n render: (({ field, value, onChange }) => (\n <CheckboxGroupField\n label={field.label ?? label}\n options={options}\n value={value}\n onChange={onChange}\n helperText={helperText}\n />\n )) satisfies CustomFieldRender<string[]>,\n };\n};\n"],"mappings":"AAEA,SAASA,kBAAkB,QAAQ,2BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQhE,OAAO,MAAMC,wBAAwB,GAAGA,CAAC;EACvCC,KAAK;EACLC,OAAO;EACPC;AACyB,CAAC,KAAK;EAC/B,OAAO;IACLC,IAAI,EAAE,QAAiB;IACvBH,KAAK;IACLI,MAAM,EAAGA,CAAC;MAAEC,KAAK;MAAEC,KAAK;MAAEC;IAAS,CAAC,kBAClCT,IAAA,CAACF,kBAAkB;MACjBI,KAAK,EAAEK,KAAK,CAACL,KAAK,IAAIA,KAAM;MAC5BC,OAAO,EAAEA,OAAQ;MACjBK,KAAK,EAAEA,KAAM;MACbC,QAAQ,EAAEA,QAAS;MACnBL,UAAU,EAAEA;IAAW,CACxB;EAEL,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-date-picker-field.js","names":["DatePicker","jsx","_jsx","createDatePickerField","label","type","render","field","value","onChange","date"],"sources":["../../../../../src/puck-editor/internal/fields/date-picker/create-date-picker-field.tsx"],"sourcesContent":["import type { CustomFieldRender } from '@puckeditor/core';\n\nimport { DatePicker } from './date-picker';\n\nexport interface DatePickerFieldOptions {\n label?: string;\n}\n\nexport const createDatePickerField = ({\n label,\n}: DatePickerFieldOptions = {}) => {\n return {\n type: 'custom' as const,\n label,\n render: (({ field, value, onChange }) => (\n <DatePicker\n date={value}\n onChange={onChange}\n label={field.label ?? label}\n />\n )) satisfies CustomFieldRender<string>,\n };\n};\n"],"mappings":"AAEA,SAASA,UAAU,QAAQ,
|
|
1
|
+
{"version":3,"file":"create-date-picker-field.js","names":["DatePicker","jsx","_jsx","createDatePickerField","label","type","render","field","value","onChange","date"],"sources":["../../../../../src/puck-editor/internal/fields/date-picker/create-date-picker-field.tsx"],"sourcesContent":["import type { CustomFieldRender } from '@puckeditor/core';\n\nimport { DatePicker } from './date-picker.tsx';\n\nexport interface DatePickerFieldOptions {\n label?: string;\n}\n\nexport const createDatePickerField = ({\n label,\n}: DatePickerFieldOptions = {}) => {\n return {\n type: 'custom' as const,\n label,\n render: (({ field, value, onChange }) => (\n <DatePicker\n date={value}\n onChange={onChange}\n label={field.label ?? label}\n />\n )) satisfies CustomFieldRender<string>,\n };\n};\n"],"mappings":"AAEA,SAASA,UAAU,QAAQ,kBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAM/C,OAAO,MAAMC,qBAAqB,GAAGA,CAAC;EACpCC;AACsB,CAAC,GAAG,CAAC,CAAC,KAAK;EACjC,OAAO;IACLC,IAAI,EAAE,QAAiB;IACvBD,KAAK;IACLE,MAAM,EAAGA,CAAC;MAAEC,KAAK;MAAEC,KAAK;MAAEC;IAAS,CAAC,kBAClCP,IAAA,CAACF,UAAU;MACTU,IAAI,EAAEF,KAAM;MACZC,QAAQ,EAAEA,QAAS;MACnBL,KAAK,EAAEG,KAAK,CAACH,KAAK,IAAIA;IAAM,CAC7B;EAEL,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -2,22 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
import { format } from 'date-fns';
|
|
5
|
-
import { de } from 'date-fns/locale';
|
|
5
|
+
import { de, enUS, fr } from 'date-fns/locale';
|
|
6
6
|
import { CalendarIcon } from 'lucide-react';
|
|
7
|
-
import { cn } from
|
|
8
|
-
import { usePuckDictionary } from
|
|
9
|
-
import { Calendar } from
|
|
10
|
-
import { Popover, PopoverContent, PopoverTrigger } from
|
|
11
|
-
import { RequiredFieldLabel } from
|
|
7
|
+
import { cn } from "../../../../shared/cn.js";
|
|
8
|
+
import { usePuckDictionary, usePuckLocale } from "../../i18n.js";
|
|
9
|
+
import { Calendar } from "../../ui/calendar.js";
|
|
10
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../../ui/popover.js";
|
|
11
|
+
import { RequiredFieldLabel } from "../required-field-label.js";
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
const DATE_FNS_LOCALES = {
|
|
14
|
+
de,
|
|
15
|
+
en: enUS,
|
|
16
|
+
fr
|
|
17
|
+
};
|
|
18
|
+
function dateFnsLocale(editorLocale) {
|
|
19
|
+
return DATE_FNS_LOCALES[editorLocale.split('-')[0]] ?? enUS;
|
|
20
|
+
}
|
|
13
21
|
export function DatePicker(t0) {
|
|
14
|
-
const $ = _c(
|
|
22
|
+
const $ = _c(28);
|
|
15
23
|
const {
|
|
16
24
|
date,
|
|
17
25
|
onChange,
|
|
18
26
|
label
|
|
19
27
|
} = t0;
|
|
20
28
|
const t = usePuckDictionary().fields;
|
|
29
|
+
const locale = dateFnsLocale(usePuckLocale());
|
|
21
30
|
let t1;
|
|
22
31
|
if ($[0] !== onChange) {
|
|
23
32
|
t1 = day => {
|
|
@@ -52,100 +61,108 @@ export function DatePicker(t0) {
|
|
|
52
61
|
} else {
|
|
53
62
|
t4 = $[4];
|
|
54
63
|
}
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
const T0 = Popover;
|
|
65
|
+
const T1 = PopoverTrigger;
|
|
66
|
+
const t5 = true;
|
|
67
|
+
const t6 = "button";
|
|
68
|
+
const t7 = !date && "nh:text-gray-500";
|
|
69
|
+
let t8;
|
|
70
|
+
if ($[5] !== t7) {
|
|
71
|
+
t8 = cn("nh:flex nh:w-full nh:cursor-pointer nh:items-center nh:justify-start nh:gap-2 nh:rounded-sm nh:border nh:border-gray-300 nh:p-3 nh:text-left nh:text-sm nh:font-normal", t7);
|
|
72
|
+
$[5] = t7;
|
|
73
|
+
$[6] = t8;
|
|
61
74
|
} else {
|
|
62
|
-
|
|
75
|
+
t8 = $[6];
|
|
63
76
|
}
|
|
64
|
-
let
|
|
77
|
+
let t9;
|
|
65
78
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
66
|
-
|
|
79
|
+
t9 = /*#__PURE__*/_jsx(CalendarIcon, {
|
|
67
80
|
className: "nh:size-5"
|
|
68
81
|
});
|
|
69
|
-
$[7] =
|
|
82
|
+
$[7] = t9;
|
|
70
83
|
} else {
|
|
71
|
-
|
|
84
|
+
t9 = $[7];
|
|
72
85
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
86
|
+
const t10 = date ? format(new Date(date), "PPP", {
|
|
87
|
+
locale
|
|
88
|
+
}) : /*#__PURE__*/_jsx("span", {
|
|
89
|
+
children: t.selectDate
|
|
90
|
+
});
|
|
91
|
+
let t11;
|
|
92
|
+
if ($[8] !== t10 || $[9] !== t8 || $[10] !== t9) {
|
|
93
|
+
t11 = /*#__PURE__*/_jsxs("button", {
|
|
94
|
+
type: t6,
|
|
95
|
+
className: t8,
|
|
96
|
+
children: [t9, t10]
|
|
79
97
|
});
|
|
80
|
-
$[8] =
|
|
81
|
-
$[9] =
|
|
82
|
-
$[10] =
|
|
98
|
+
$[8] = t10;
|
|
99
|
+
$[9] = t8;
|
|
100
|
+
$[10] = t9;
|
|
101
|
+
$[11] = t11;
|
|
83
102
|
} else {
|
|
84
|
-
|
|
103
|
+
t11 = $[11];
|
|
85
104
|
}
|
|
86
|
-
let
|
|
87
|
-
if ($[
|
|
88
|
-
|
|
89
|
-
asChild:
|
|
90
|
-
children:
|
|
91
|
-
type: "button",
|
|
92
|
-
className: t6,
|
|
93
|
-
children: [t7, t8]
|
|
94
|
-
})
|
|
105
|
+
let t12;
|
|
106
|
+
if ($[12] !== T1 || $[13] !== t11) {
|
|
107
|
+
t12 = /*#__PURE__*/_jsx(T1, {
|
|
108
|
+
asChild: t5,
|
|
109
|
+
children: t11
|
|
95
110
|
});
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
111
|
+
$[12] = T1;
|
|
112
|
+
$[13] = t11;
|
|
113
|
+
$[14] = t12;
|
|
99
114
|
} else {
|
|
100
|
-
|
|
115
|
+
t12 = $[14];
|
|
101
116
|
}
|
|
102
|
-
let
|
|
103
|
-
if ($[
|
|
104
|
-
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
117
|
+
let t13;
|
|
118
|
+
if ($[15] !== date) {
|
|
119
|
+
t13 = new Date(date);
|
|
120
|
+
$[15] = date;
|
|
121
|
+
$[16] = t13;
|
|
107
122
|
} else {
|
|
108
|
-
|
|
123
|
+
t13 = $[16];
|
|
109
124
|
}
|
|
110
|
-
let
|
|
111
|
-
if ($[
|
|
112
|
-
|
|
125
|
+
let t14;
|
|
126
|
+
if ($[17] !== handleDateChange || $[18] !== locale || $[19] !== t13) {
|
|
127
|
+
t14 = /*#__PURE__*/_jsx(PopoverContent, {
|
|
113
128
|
className: "nh:w-auto nh:p-0",
|
|
114
129
|
children: /*#__PURE__*/_jsx(Calendar, {
|
|
115
130
|
mode: "single",
|
|
116
|
-
selected:
|
|
131
|
+
selected: t13,
|
|
117
132
|
onSelect: handleDateChange,
|
|
118
|
-
locale:
|
|
133
|
+
locale: locale
|
|
119
134
|
})
|
|
120
135
|
});
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
$[
|
|
136
|
+
$[17] = handleDateChange;
|
|
137
|
+
$[18] = locale;
|
|
138
|
+
$[19] = t13;
|
|
139
|
+
$[20] = t14;
|
|
124
140
|
} else {
|
|
125
|
-
|
|
141
|
+
t14 = $[20];
|
|
126
142
|
}
|
|
127
|
-
let
|
|
128
|
-
if ($[
|
|
129
|
-
|
|
130
|
-
children: [
|
|
143
|
+
let t15;
|
|
144
|
+
if ($[21] !== T0 || $[22] !== t12 || $[23] !== t14) {
|
|
145
|
+
t15 = /*#__PURE__*/_jsxs(T0, {
|
|
146
|
+
children: [t12, t14]
|
|
131
147
|
});
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
148
|
+
$[21] = T0;
|
|
149
|
+
$[22] = t12;
|
|
150
|
+
$[23] = t14;
|
|
151
|
+
$[24] = t15;
|
|
135
152
|
} else {
|
|
136
|
-
|
|
153
|
+
t15 = $[24];
|
|
137
154
|
}
|
|
138
|
-
let
|
|
139
|
-
if ($[
|
|
140
|
-
|
|
141
|
-
children: [t4,
|
|
155
|
+
let t16;
|
|
156
|
+
if ($[25] !== t15 || $[26] !== t4) {
|
|
157
|
+
t16 = /*#__PURE__*/_jsxs("div", {
|
|
158
|
+
children: [t4, t15]
|
|
142
159
|
});
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
145
|
-
$[
|
|
160
|
+
$[25] = t15;
|
|
161
|
+
$[26] = t4;
|
|
162
|
+
$[27] = t16;
|
|
146
163
|
} else {
|
|
147
|
-
|
|
164
|
+
t16 = $[27];
|
|
148
165
|
}
|
|
149
|
-
return
|
|
166
|
+
return t16;
|
|
150
167
|
}
|
|
151
168
|
//# sourceMappingURL=date-picker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.js","names":["c","_c","format","de","CalendarIcon","cn","usePuckDictionary","Calendar","Popover","PopoverContent","PopoverTrigger","RequiredFieldLabel","jsx","_jsx","jsxs","_jsxs","DatePicker","t0","$","date","onChange","label","t","fields","t1","day","toUTCString","handleDateChange","t2","Symbol","for","className","t3","t4","icon","t5","t6","t7","t8","
|
|
1
|
+
{"version":3,"file":"date-picker.js","names":["c","_c","format","de","enUS","fr","CalendarIcon","cn","usePuckDictionary","usePuckLocale","Calendar","Popover","PopoverContent","PopoverTrigger","RequiredFieldLabel","jsx","_jsx","jsxs","_jsxs","DATE_FNS_LOCALES","en","dateFnsLocale","editorLocale","split","DatePicker","t0","$","date","onChange","label","t","fields","locale","t1","day","toUTCString","handleDateChange","t2","Symbol","for","className","t3","t4","icon","T0","T1","t5","t6","t7","t8","t9","t10","Date","children","selectDate","t11","type","t12","asChild","t13","t14","mode","selected","t15","t16"],"sources":["../../../../../src/puck-editor/internal/fields/date-picker/date-picker.tsx"],"sourcesContent":["'use client';\n\nimport { format } from 'date-fns';\nimport { de, enUS, fr, type Locale } from 'date-fns/locale';\nimport { CalendarIcon } from 'lucide-react';\n\nimport { cn } from '../../../../shared/cn.ts';\nimport { usePuckDictionary, usePuckLocale } from '../../i18n.tsx';\nimport { Calendar } from '../../ui/calendar.tsx';\nimport { Popover, PopoverContent, PopoverTrigger } from '../../ui/popover.tsx';\nimport { RequiredFieldLabel } from '../required-field-label.tsx';\n\ntype DatePickerProps = {\n date: string;\n onChange: (date: string) => void;\n label?: string;\n};\n\nconst DATE_FNS_LOCALES: Record<string, Locale> = { de, en: enUS, fr };\n\nfunction dateFnsLocale(editorLocale: string): Locale {\n return DATE_FNS_LOCALES[editorLocale.split('-')[0]] ?? enUS;\n}\n\nexport function DatePicker({ date, onChange, label }: DatePickerProps) {\n const t = usePuckDictionary().fields;\n const locale = dateFnsLocale(usePuckLocale());\n const handleDateChange = (day: Date | undefined) => {\n if (day) {\n onChange(day.toUTCString());\n }\n };\n return (\n <div>\n <RequiredFieldLabel\n icon={<CalendarIcon className=\"nh:size-4\" />}\n label={label ?? t.date}\n />\n <Popover>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className={cn(\n 'nh:flex nh:w-full nh:cursor-pointer nh:items-center nh:justify-start nh:gap-2 nh:rounded-sm nh:border nh:border-gray-300 nh:p-3 nh:text-left nh:text-sm nh:font-normal',\n !date && 'nh:text-gray-500'\n )}\n >\n <CalendarIcon className=\"nh:size-5\" />\n {date ? (\n format(new Date(date), 'PPP', { locale })\n ) : (\n <span>{t.selectDate}</span>\n )}\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"nh:w-auto nh:p-0\">\n <Calendar\n mode=\"single\"\n selected={new Date(date)}\n onSelect={handleDateChange}\n locale={locale}\n />\n </PopoverContent>\n </Popover>\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,EAAE,EAAEC,IAAI,EAAEC,EAAE,QAAqB,iBAAiB;AAC3D,SAASC,YA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AAN,CAAA,OAAAU,gBAAA;IAAAV,CAAA,OAAAM,MAAA;IAAAN,CAAA,OAAAiC,GAAA;IAAAjC,CAAA,OAAAkC,GAAA;EAAA;IAAAA,GAAA,GAAAlC,CAAA;EAAA;EAAA,IAAAqC,GAAA;EAAA,IAAArC,CAAA,SAAAkB,EAAA,IAAAlB,CAAA,SAAA+B,GAAA,IAAA/B,CAAA,SAAAkC,GAAA;IAxBnBG,GAAA,gBAAA7C,KAAA,CAAC0B,EAAO;MAAAS,QAAA,GACNI,GAeiB,EACjBG,GAOiB;IAAA,CACV,CAAC;IAAAlC,CAAA,OAAAkB,EAAA;IAAAlB,CAAA,OAAA+B,GAAA;IAAA/B,CAAA,OAAAkC,GAAA;IAAAlC,CAAA,OAAAqC,GAAA;EAAA;IAAAA,GAAA,GAAArC,CAAA;EAAA;EAAA,IAAAsC,GAAA;EAAA,IAAAtC,CAAA,SAAAqC,GAAA,IAAArC,CAAA,SAAAgB,EAAA;IA9BZsB,GAAA,gBAAA9C,KAAA;MAAAmC,QAAA,GACEX,EAGE,EACFqB,GAyBU;IAAA,CACP,CAAC;IAAArC,CAAA,OAAAqC,GAAA;IAAArC,CAAA,OAAAgB,EAAA;IAAAhB,CAAA,OAAAsC,GAAA;EAAA;IAAAA,GAAA,GAAAtC,CAAA;EAAA;EAAA,OA/BNsC,GA+BM;AAAA","ignoreList":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { createCheckboxGroupField, type CheckboxGroupFieldOptions, } from './checkbox-group/create-checkbox-group-field';
|
|
2
|
-
export { createDatePickerField, type DatePickerFieldOptions, } from './date-picker/create-date-picker-field';
|
|
3
|
-
export { createLinkField } from './link-picker/create-link-field';
|
|
4
|
-
export { createMediaArrayField, type MediaArrayFieldOptions, } from './media-array/create-media-array-field';
|
|
5
|
-
export { createMediaSelectorField, type MediaSelectorFieldOptions, } from './media-selector/create-media-selector-field';
|
|
6
|
-
export { createNodeSelectorField, type NodeSelectorFieldOptions, type NodeSelectorItem, } from './node-selector/create-node-selector-field';
|
|
7
|
-
export { createRichTextField } from './rich-text/create-rich-text-field';
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
|
|
1
|
+
export { createCheckboxGroupField, type CheckboxGroupFieldOptions, } from './checkbox-group/create-checkbox-group-field.js';
|
|
2
|
+
export { createDatePickerField, type DatePickerFieldOptions, } from './date-picker/create-date-picker-field.js';
|
|
3
|
+
export { createLinkField } from './link-picker/create-link-field.js';
|
|
4
|
+
export { createMediaArrayField, type MediaArrayFieldOptions, } from './media-array/create-media-array-field.js';
|
|
5
|
+
export { createMediaSelectorField, type MediaSelectorFieldOptions, } from './media-selector/create-media-selector-field.js';
|
|
6
|
+
export { createNodeSelectorField, type NodeSelectorFieldOptions, type NodeSelectorItem, } from './node-selector/create-node-selector-field.js';
|
|
7
|
+
export { createRichTextField } from './rich-text/create-rich-text-field.js';
|
|
8
|
+
export { PreventLinkNavigation, RICHTEXT_LINK_OPTIONS, } from './link-picker/richtext-extensions.js';
|
|
9
|
+
export { required } from './required.js';
|
|
10
|
+
export { RequiredFieldLabel } from './required-field-label.js';
|