@nodehive/nextjs 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/auth/index.d.ts +2 -3
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/internal/config.d.ts +15 -5
- package/dist/auth/internal/config.js.map +1 -1
- package/dist/auth/internal/draft-mode.d.ts +2 -3
- package/dist/auth/internal/draft-mode.js +3 -20
- package/dist/auth/internal/draft-mode.js.map +1 -1
- package/dist/auth/internal/editor-locale.d.ts +0 -1
- package/dist/auth/internal/handoff.d.ts +0 -1
- package/dist/auth/internal/has-session.d.ts +0 -1
- package/dist/auth/internal/has-session.js +1 -1
- package/dist/auth/internal/has-session.js.map +1 -1
- package/dist/auth/internal/i18n.d.ts +10 -0
- package/dist/auth/internal/i18n.js +25 -0
- package/dist/auth/internal/i18n.js.map +1 -0
- package/dist/auth/internal/logout.d.ts +1 -2
- package/dist/auth/internal/logout.js +3 -3
- package/dist/auth/internal/logout.js.map +1 -1
- package/dist/auth/internal/next-cookie-storage.d.ts +5 -2
- package/dist/auth/internal/next-cookie-storage.js +8 -1
- package/dist/auth/internal/next-cookie-storage.js.map +1 -1
- package/dist/auth/internal/nodehive-client.d.ts +6 -4
- package/dist/auth/internal/nodehive-client.js +6 -4
- package/dist/auth/internal/nodehive-client.js.map +1 -1
- package/dist/auth/internal/oauth-config.d.ts +0 -1
- package/dist/auth/internal/proxy-helpers.d.ts +0 -1
- package/dist/auth/internal/proxy-helpers.js +4 -4
- package/dist/auth/internal/proxy-helpers.js.map +1 -1
- package/dist/auth/internal/refresh.d.ts +1 -2
- package/dist/auth/internal/refresh.js +4 -4
- package/dist/auth/internal/refresh.js.map +1 -1
- package/dist/auth/internal/require-auth.d.ts +0 -1
- package/dist/auth/internal/require-auth.js +1 -1
- package/dist/auth/internal/require-auth.js.map +1 -1
- package/dist/auth/internal/return-to.d.ts +0 -1
- package/dist/auth/internal/roles.d.ts +17 -0
- package/dist/auth/internal/roles.js +39 -0
- package/dist/auth/internal/roles.js.map +1 -0
- package/dist/auth/internal/routes/callback.d.ts +1 -2
- package/dist/auth/internal/routes/callback.js +6 -6
- package/dist/auth/internal/routes/callback.js.map +1 -1
- package/dist/auth/internal/routes/chips-exchange.d.ts +1 -2
- package/dist/auth/internal/routes/chips-exchange.js +5 -5
- package/dist/auth/internal/routes/chips-exchange.js.map +1 -1
- package/dist/auth/internal/routes/draft.d.ts +1 -2
- package/dist/auth/internal/routes/draft.js +3 -3
- package/dist/auth/internal/routes/draft.js.map +1 -1
- package/dist/auth/internal/routes/index.d.ts +4 -2
- package/dist/auth/internal/routes/index.js +7 -7
- package/dist/auth/internal/routes/index.js.map +1 -1
- package/dist/auth/internal/routes/login.d.ts +0 -1
- package/dist/auth/internal/routes/login.js +3 -3
- package/dist/auth/internal/routes/login.js.map +1 -1
- package/dist/auth/internal/routes/popup-done.d.ts +2 -2
- package/dist/auth/internal/routes/popup-done.js +9 -7
- package/dist/auth/internal/routes/popup-done.js.map +1 -1
- package/dist/auth/internal/routes/refresh.d.ts +2 -5
- package/dist/auth/internal/routes/refresh.js +8 -2
- package/dist/auth/internal/routes/refresh.js.map +1 -1
- package/dist/auth/internal/same-origin.d.ts +0 -1
- package/dist/auth/internal/session-gates.d.ts +27 -3
- package/dist/auth/internal/session-gates.js +35 -3
- package/dist/auth/internal/session-gates.js.map +1 -1
- package/dist/auth/internal/update-session.d.ts +1 -2
- package/dist/auth/internal/update-session.js +1 -1
- package/dist/auth/internal/update-session.js.map +1 -1
- package/dist/auth/internal/use-editor-login.d.ts +0 -1
- package/dist/auth/internal/use-editor-login.js +2 -3
- package/dist/auth/internal/use-editor-login.js.map +1 -1
- package/dist/auth/proxy.d.ts +7 -8
- package/dist/auth/proxy.js +6 -6
- package/dist/auth/proxy.js.map +1 -1
- package/dist/auth/react.d.ts +1 -2
- package/dist/auth/react.js +1 -1
- package/dist/auth/react.js.map +1 -1
- package/dist/auth/routes.d.ts +3 -3
- package/dist/auth/routes.js +1 -1
- package/dist/auth/routes.js.map +1 -1
- package/dist/auth/server.d.ts +14 -12
- package/dist/auth/server.js +14 -9
- package/dist/auth/server.js.map +1 -1
- package/dist/bridge-protocol/index.d.ts +50 -0
- package/dist/bridge-protocol/index.js +25 -0
- package/dist/bridge-protocol/index.js.map +1 -0
- package/dist/puck-editor/editor.d.ts +8 -0
- package/dist/puck-editor/editor.js +9 -0
- package/dist/puck-editor/editor.js.map +1 -0
- package/dist/puck-editor/fields.d.ts +6 -7
- package/dist/puck-editor/fields.js +3 -3
- package/dist/puck-editor/fields.js.map +1 -1
- package/dist/puck-editor/index.d.ts +17 -14
- package/dist/puck-editor/index.js +13 -11
- package/dist/puck-editor/index.js.map +1 -1
- package/dist/puck-editor/internal/api/client.d.ts +19 -4
- package/dist/puck-editor/internal/api/client.js +56 -19
- package/dist/puck-editor/internal/api/client.js.map +1 -1
- package/dist/puck-editor/internal/api/config.d.ts +36 -3
- package/dist/puck-editor/internal/api/config.js.map +1 -1
- package/dist/puck-editor/internal/api/create-puck-api.d.ts +1 -2
- package/dist/puck-editor/internal/api/create-puck-api.js +10 -13
- package/dist/puck-editor/internal/api/create-puck-api.js.map +1 -1
- package/dist/puck-editor/internal/api/handlers/create-page.d.ts +1 -2
- package/dist/puck-editor/internal/api/handlers/create-page.js +6 -4
- package/dist/puck-editor/internal/api/handlers/create-page.js.map +1 -1
- package/dist/puck-editor/internal/api/handlers/entities.d.ts +6 -5
- package/dist/puck-editor/internal/api/handlers/entities.js +60 -15
- package/dist/puck-editor/internal/api/handlers/entities.js.map +1 -1
- package/dist/puck-editor/internal/api/handlers/publish.d.ts +3 -6
- package/dist/puck-editor/internal/api/handlers/publish.js +57 -14
- package/dist/puck-editor/internal/api/handlers/publish.js.map +1 -1
- package/dist/puck-editor/internal/api/handlers/template.d.ts +5 -2
- package/dist/puck-editor/internal/api/handlers/template.js +28 -60
- package/dist/puck-editor/internal/api/handlers/template.js.map +1 -1
- package/dist/puck-editor/internal/api/handlers/upload.d.ts +10 -2
- package/dist/puck-editor/internal/api/handlers/upload.js +93 -28
- package/dist/puck-editor/internal/api/handlers/upload.js.map +1 -1
- package/dist/puck-editor/internal/api/localize-message.d.ts +15 -0
- package/dist/puck-editor/internal/api/localize-message.js +15 -0
- package/dist/puck-editor/internal/api/localize-message.js.map +1 -0
- package/dist/puck-editor/internal/api/media-params.d.ts +3 -3
- package/dist/puck-editor/internal/api/media-params.js +23 -19
- package/dist/puck-editor/internal/api/media-params.js.map +1 -1
- package/dist/puck-editor/internal/api/media-upload.d.ts +5 -3
- package/dist/puck-editor/internal/api/media-upload.js +33 -22
- package/dist/puck-editor/internal/api/media-upload.js.map +1 -1
- package/dist/puck-editor/internal/api/message-codes.d.ts +2 -0
- package/dist/puck-editor/internal/api/message-codes.js +2 -0
- package/dist/puck-editor/internal/api/message-codes.js.map +1 -0
- package/dist/puck-editor/internal/api/space.d.ts +0 -1
- package/dist/puck-editor/internal/api/type-segment.d.ts +2 -0
- package/dist/puck-editor/internal/api/type-segment.js +9 -0
- package/dist/puck-editor/internal/api/type-segment.js.map +1 -0
- package/dist/puck-editor/internal/content-model.d.ts +31 -3
- package/dist/puck-editor/internal/content-model.js +76 -6
- package/dist/puck-editor/internal/content-model.js.map +1 -1
- package/dist/puck-editor/internal/dictionaries.d.ts +225 -0
- package/dist/puck-editor/internal/dictionaries.js +673 -0
- package/dist/puck-editor/internal/dictionaries.js.map +1 -0
- package/dist/puck-editor/internal/editor/allowed-types.d.ts +1 -2
- package/dist/puck-editor/internal/editor/allowed-types.js +2 -2
- package/dist/puck-editor/internal/editor/allowed-types.js.map +1 -1
- package/dist/puck-editor/internal/editor/canvas-add-picker.d.ts +0 -1
- package/dist/puck-editor/internal/editor/canvas-add-picker.js +5 -5
- package/dist/puck-editor/internal/editor/canvas-add-picker.js.map +1 -1
- package/dist/puck-editor/internal/editor/canvas-empty-state.d.ts +0 -1
- package/dist/puck-editor/internal/editor/canvas-empty-state.js +4 -4
- package/dist/puck-editor/internal/editor/canvas-empty-state.js.map +1 -1
- package/dist/puck-editor/internal/editor/canvas-quick-add.d.ts +0 -1
- package/dist/puck-editor/internal/editor/canvas-quick-add.js +8 -8
- package/dist/puck-editor/internal/editor/canvas-quick-add.js.map +1 -1
- package/dist/puck-editor/internal/editor/canvas-scroll.d.ts +0 -1
- package/dist/puck-editor/internal/editor/component-icons.d.ts +1 -2
- package/dist/puck-editor/internal/editor/component-icons.js.map +1 -1
- package/dist/puck-editor/internal/editor/component-item.d.ts +0 -1
- package/dist/puck-editor/internal/editor/component-item.js +2 -2
- package/dist/puck-editor/internal/editor/component-item.js.map +1 -1
- package/dist/puck-editor/internal/editor/compose-save-issues.d.ts +15 -0
- package/dist/puck-editor/internal/editor/compose-save-issues.js +16 -0
- package/dist/puck-editor/internal/editor/compose-save-issues.js.map +1 -0
- package/dist/puck-editor/internal/editor/dirty-state.d.ts +3 -0
- package/dist/puck-editor/internal/editor/dirty-state.js +7 -0
- package/dist/puck-editor/internal/editor/dirty-state.js.map +1 -0
- package/dist/puck-editor/internal/editor/draft-restore-banner.d.ts +9 -0
- package/dist/puck-editor/internal/editor/draft-restore-banner.js +289 -0
- package/dist/puck-editor/internal/editor/draft-restore-banner.js.map +1 -0
- package/dist/puck-editor/internal/editor/draft-storage.d.ts +41 -0
- package/dist/puck-editor/internal/editor/draft-storage.js +129 -0
- package/dist/puck-editor/internal/editor/draft-storage.js.map +1 -0
- package/dist/puck-editor/internal/editor/editor-action-bar.d.ts +0 -1
- package/dist/puck-editor/internal/editor/editor-action-bar.js +4 -4
- package/dist/puck-editor/internal/editor/editor-action-bar.js.map +1 -1
- package/dist/puck-editor/internal/editor/editor-header-actions.d.ts +6 -4
- package/dist/puck-editor/internal/editor/editor-header-actions.js +119 -60
- package/dist/puck-editor/internal/editor/editor-header-actions.js.map +1 -1
- package/dist/puck-editor/internal/editor/find-missing-required-fields.d.ts +0 -1
- package/dist/puck-editor/internal/editor/grouped-drawer-panel.d.ts +1 -2
- package/dist/puck-editor/internal/editor/grouped-drawer-panel.js +6 -6
- package/dist/puck-editor/internal/editor/grouped-drawer-panel.js.map +1 -1
- package/dist/puck-editor/internal/editor/grouped-entry-list.d.ts +1 -2
- package/dist/puck-editor/internal/editor/grouped-entry-list.js +3 -3
- package/dist/puck-editor/internal/editor/grouped-entry-list.js.map +1 -1
- package/dist/puck-editor/internal/editor/header-save-button.d.ts +4 -4
- package/dist/puck-editor/internal/editor/header-save-button.js +66 -27
- package/dist/puck-editor/internal/editor/header-save-button.js.map +1 -1
- package/dist/puck-editor/internal/editor/leave-confirm-dialog.d.ts +5 -0
- package/dist/puck-editor/internal/editor/leave-confirm-dialog.js +140 -0
- package/dist/puck-editor/internal/editor/leave-confirm-dialog.js.map +1 -0
- package/dist/puck-editor/internal/editor/page-template-picker.d.ts +0 -1
- package/dist/puck-editor/internal/editor/page-template-picker.js +5 -5
- package/dist/puck-editor/internal/editor/page-template-picker.js.map +1 -1
- package/dist/puck-editor/internal/editor/picker-entry-item.d.ts +1 -2
- package/dist/puck-editor/internal/editor/picker-entry-item.js +4 -4
- package/dist/puck-editor/internal/editor/picker-entry-item.js.map +1 -1
- package/dist/puck-editor/internal/editor/picker-model.d.ts +14 -5
- package/dist/puck-editor/internal/editor/picker-model.js +157 -132
- package/dist/puck-editor/internal/editor/picker-model.js.map +1 -1
- package/dist/puck-editor/internal/editor/publish-puck-data.d.ts +18 -4
- package/dist/puck-editor/internal/editor/publish-puck-data.js +25 -4
- package/dist/puck-editor/internal/editor/publish-puck-data.js.map +1 -1
- package/dist/puck-editor/internal/editor/puck-editor.d.ts +6 -4
- package/dist/puck-editor/internal/editor/puck-editor.js +270 -209
- package/dist/puck-editor/internal/editor/puck-editor.js.map +1 -1
- package/dist/puck-editor/internal/editor/save-guard.d.ts +15 -0
- package/dist/puck-editor/internal/editor/save-guard.js +30 -0
- package/dist/puck-editor/internal/editor/save-guard.js.map +1 -0
- package/dist/puck-editor/internal/editor/save-page-context.d.ts +8 -0
- package/dist/puck-editor/internal/editor/save-page-context.js +34 -0
- package/dist/puck-editor/internal/editor/save-page-context.js.map +1 -0
- package/dist/puck-editor/internal/editor/section-template-modal.d.ts +0 -1
- package/dist/puck-editor/internal/editor/section-template-modal.js +2 -2
- package/dist/puck-editor/internal/editor/section-template-modal.js.map +1 -1
- package/dist/puck-editor/internal/editor/unsaved-changes-guard.d.ts +3 -0
- package/dist/puck-editor/internal/editor/unsaved-changes-guard.js +38 -0
- package/dist/puck-editor/internal/editor/unsaved-changes-guard.js.map +1 -0
- package/dist/puck-editor/internal/editor/use-dirty-baseline.d.ts +5 -0
- package/dist/puck-editor/internal/editor/use-dirty-baseline.js +72 -0
- package/dist/puck-editor/internal/editor/use-dirty-baseline.js.map +1 -0
- package/dist/puck-editor/internal/editor/use-draft-recovery.d.ts +16 -0
- package/dist/puck-editor/internal/editor/use-draft-recovery.js +194 -0
- package/dist/puck-editor/internal/editor/use-draft-recovery.js.map +1 -0
- package/dist/puck-editor/internal/editor/use-frame-zoom.d.ts +0 -1
- package/dist/puck-editor/internal/editor/use-is-dirty.d.ts +1 -0
- package/dist/puck-editor/internal/editor/use-is-dirty.js +32 -0
- package/dist/puck-editor/internal/editor/use-is-dirty.js.map +1 -0
- package/dist/puck-editor/internal/editor/use-scroll-lock-outside.d.ts +0 -1
- package/dist/puck-editor/internal/editor-config.d.ts +16 -3
- package/dist/puck-editor/internal/editor-config.js +8 -1
- package/dist/puck-editor/internal/editor-config.js.map +1 -1
- package/dist/puck-editor/internal/editor-query-client.d.ts +0 -1
- package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.d.ts +0 -1
- package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.js +2 -2
- package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.d.ts +0 -1
- package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.js +1 -1
- package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.d.ts +0 -1
- package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.js +1 -1
- package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/date-picker/date-picker.d.ts +0 -1
- package/dist/puck-editor/internal/fields/date-picker/date-picker.js +90 -73
- package/dist/puck-editor/internal/fields/date-picker/date-picker.js.map +1 -1
- package/dist/puck-editor/internal/fields/index.d.ts +10 -10
- package/dist/puck-editor/internal/fields/index.js +10 -9
- package/dist/puck-editor/internal/fields/index.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/anchor.d.ts +0 -1
- package/dist/puck-editor/internal/fields/link-picker/anchor.js +1 -1
- package/dist/puck-editor/internal/fields/link-picker/anchor.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/create-link-field.d.ts +1 -2
- package/dist/puck-editor/internal/fields/link-picker/create-link-field.js +1 -1
- package/dist/puck-editor/internal/fields/link-picker/create-link-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/humanize.d.ts +0 -1
- package/dist/puck-editor/internal/fields/link-picker/link-picker-control.d.ts +0 -1
- package/dist/puck-editor/internal/fields/link-picker/link-picker-control.js +208 -140
- package/dist/puck-editor/internal/fields/link-picker/link-picker-control.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/link-picker-field.d.ts +1 -2
- package/dist/puck-editor/internal/fields/link-picker/link-picker-field.js +6 -6
- package/dist/puck-editor/internal/fields/link-picker/link-picker-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/link-value.d.ts +25 -5
- package/dist/puck-editor/internal/fields/link-picker/link-value.js +56 -6
- package/dist/puck-editor/internal/fields/link-picker/link-value.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.d.ts +0 -1
- package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.js +4 -4
- package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/richtext-extensions.d.ts +0 -1
- package/dist/puck-editor/internal/fields/link-picker/segmented-control.d.ts +0 -1
- package/dist/puck-editor/internal/fields/link-picker/segmented-control.js +3 -3
- package/dist/puck-editor/internal/fields/link-picker/segmented-control.js.map +1 -1
- package/dist/puck-editor/internal/fields/link-picker/types.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-array/create-media-array-field.d.ts +2 -3
- package/dist/puck-editor/internal/fields/media-array/create-media-array-field.js +1 -1
- package/dist/puck-editor/internal/fields/media-array/create-media-array-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-array/media-array-field.d.ts +2 -3
- package/dist/puck-editor/internal/fields/media-array/media-array-field.js +100 -88
- package/dist/puck-editor/internal/fields/media-array/media-array-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-array/reorder.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.d.ts +2 -3
- package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.js +1 -1
- package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.d.ts +1 -2
- package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.js +4 -4
- package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-selector/crop-types.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-selector/extract-fields.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-selector/image-upload-form.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-selector/image-upload-form.js +19 -10
- package/dist/puck-editor/internal/fields/media-selector/image-upload-form.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.d.ts +7 -3
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.js +29 -22
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.d.ts +1 -2
- package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.js +281 -255
- package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-selector/use-debounced-value.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-selector/use-media-library.d.ts +15 -2
- package/dist/puck-editor/internal/fields/media-selector/use-media-library.js +23 -18
- package/dist/puck-editor/internal/fields/media-selector/use-media-library.js.map +1 -1
- package/dist/puck-editor/internal/fields/media-selector/video-upload-form.d.ts +0 -1
- package/dist/puck-editor/internal/fields/media-selector/video-upload-form.js +12 -6
- package/dist/puck-editor/internal/fields/media-selector/video-upload-form.js.map +1 -1
- package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.d.ts +0 -1
- package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.js +2 -2
- package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.js.map +1 -1
- package/dist/puck-editor/internal/fields/required-field-label.d.ts +0 -1
- package/dist/puck-editor/internal/fields/required-field-label.js +1 -1
- package/dist/puck-editor/internal/fields/required-field-label.js.map +1 -1
- package/dist/puck-editor/internal/fields/required.d.ts +0 -1
- package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.d.ts +13 -3
- package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.js +32 -22
- package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.js.map +1 -1
- package/dist/puck-editor/internal/i18n.d.ts +2 -181
- package/dist/puck-editor/internal/i18n.js +2 -358
- package/dist/puck-editor/internal/i18n.js.map +1 -1
- package/dist/puck-editor/internal/locale.d.ts +0 -1
- package/dist/puck-editor/internal/localize.d.ts +1 -2
- package/dist/puck-editor/internal/localize.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.d.ts +3 -3
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.js +41 -32
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.js +2 -2
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.d.ts +3 -3
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.js +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/catalog.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/constants.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/create-page.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/find-component-location.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/help.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/index.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/agent-plugin/index.js +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/index.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/list-media.d.ts +2 -2
- package/dist/puck-editor/internal/plugins/agent-plugin/list-media.js +4 -3
- package/dist/puck-editor/internal/plugins/agent-plugin/list-media.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/templates.d.ts +5 -6
- package/dist/puck-editor/internal/plugins/agent-plugin/templates.js +2 -2
- package/dist/puck-editor/internal/plugins/agent-plugin/templates.js.map +1 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/upload-media.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.js +2 -2
- package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.js.map +1 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.js +3 -3
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.js.map +1 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.js +1 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.js.map +1 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/index.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/blocks-plugin/index.js +1 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/index.js.map +1 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/index.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/outline-plugin/index.js +1 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/index.js.map +1 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.js +8 -8
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.js.map +1 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.js +1 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.js.map +1 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-tree.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/index.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/sections-plugin/index.js +1 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/index.js.map +1 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.js +5 -5
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.js.map +1 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.js +1 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.js +2 -2
- package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.js +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.js +3 -3
- package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.js +224 -219
- package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/index.d.ts +5 -6
- package/dist/puck-editor/internal/plugins/templates-plugin/index.js +5 -5
- package/dist/puck-editor/internal/plugins/templates-plugin/index.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.js +3 -3
- package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/template-form.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/templates-plugin/template-form.js +17 -16
- package/dist/puck-editor/internal/plugins/templates-plugin/template-form.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.d.ts +1 -2
- package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.js +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.js +171 -161
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.js +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates.d.ts +2 -3
- package/dist/puck-editor/internal/plugins/templates-plugin/templates.js +9 -2
- package/dist/puck-editor/internal/plugins/templates-plugin/templates.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.d.ts +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.js +22 -20
- package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.js.map +1 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.d.ts +14 -5
- package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.js +23 -15
- package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.js.map +1 -1
- package/dist/puck-editor/internal/puck-augmentation.d.ts +0 -1
- package/dist/puck-editor/internal/puck-editor-provider.d.ts +0 -1
- package/dist/puck-editor/internal/puck-node.d.ts +0 -1
- package/dist/puck-editor/internal/puck-props.d.ts +13 -0
- package/dist/puck-editor/internal/puck-props.js +2 -0
- package/dist/puck-editor/internal/puck-props.js.map +1 -0
- package/dist/puck-editor/internal/puck-wrapper.d.ts +25 -6
- package/dist/puck-editor/internal/puck-wrapper.js +124 -115
- package/dist/puck-editor/internal/puck-wrapper.js.map +1 -1
- package/dist/puck-editor/internal/render/cropped-image.d.ts +1 -2
- package/dist/puck-editor/internal/render/cropped-image.js.map +1 -1
- package/dist/puck-editor/internal/smart-actions/action-selection.d.ts +8 -0
- package/dist/puck-editor/internal/smart-actions/action-selection.js +10 -0
- package/dist/puck-editor/internal/smart-actions/action-selection.js.map +1 -0
- package/dist/puck-editor/internal/smart-actions/index.d.ts +10 -4
- package/dist/puck-editor/internal/smart-actions/index.js +27 -12
- package/dist/puck-editor/internal/smart-actions/index.js.map +1 -1
- package/dist/puck-editor/internal/smart-actions/new-page.d.ts +3 -2
- package/dist/puck-editor/internal/smart-actions/new-page.js +6 -6
- package/dist/puck-editor/internal/smart-actions/new-page.js.map +1 -1
- package/dist/puck-editor/internal/smart-actions/open-puck-editor.d.ts +3 -2
- package/dist/puck-editor/internal/smart-actions/open-puck-editor.js +49 -37
- package/dist/puck-editor/internal/smart-actions/open-puck-editor.js.map +1 -1
- package/dist/puck-editor/internal/ui/calendar.d.ts +0 -1
- package/dist/puck-editor/internal/ui/calendar.js +1 -1
- package/dist/puck-editor/internal/ui/calendar.js.map +1 -1
- package/dist/puck-editor/internal/ui/component-list-accordion.d.ts +0 -1
- package/dist/puck-editor/internal/ui/dialog.d.ts +0 -1
- package/dist/puck-editor/internal/ui/dialog.js +33 -20
- package/dist/puck-editor/internal/ui/dialog.js.map +1 -1
- package/dist/puck-editor/internal/ui/drawer-item-content.d.ts +0 -1
- package/dist/puck-editor/internal/ui/icon-button.d.ts +0 -1
- package/dist/puck-editor/internal/ui/icon-button.js +1 -1
- package/dist/puck-editor/internal/ui/icon-button.js.map +1 -1
- package/dist/puck-editor/internal/ui/load-error-notice.d.ts +6 -0
- package/dist/puck-editor/internal/ui/load-error-notice.js +81 -0
- package/dist/puck-editor/internal/ui/load-error-notice.js.map +1 -0
- package/dist/puck-editor/internal/ui/popover.d.ts +0 -1
- package/dist/puck-editor/internal/ui/popover.js +1 -1
- package/dist/puck-editor/internal/ui/popover.js.map +1 -1
- package/dist/puck-editor/internal/ui/required-mark.d.ts +0 -1
- package/dist/puck-editor/internal/ui/search-control.d.ts +0 -1
- package/dist/puck-editor/internal/ui/search-control.js +3 -3
- package/dist/puck-editor/internal/ui/search-control.js.map +1 -1
- package/dist/puck-editor/internal/ui/use-panel-search-focus.d.ts +0 -1
- package/dist/puck-editor/internal/use-puck-overlay.d.ts +1 -2
- package/dist/puck-editor/internal/use-puck-overlay.js +6 -5
- package/dist/puck-editor/internal/use-puck-overlay.js.map +1 -1
- package/dist/puck-editor/internal/utils.d.ts +0 -1
- package/dist/puck-editor/render.d.ts +2 -3
- package/dist/puck-editor/render.js +1 -1
- package/dist/puck-editor/render.js.map +1 -1
- package/dist/puck-editor/server.d.ts +3 -4
- package/dist/puck-editor/server.js +1 -1
- package/dist/puck-editor/server.js.map +1 -1
- package/dist/puck-editor/smart-actions.d.ts +1 -2
- package/dist/puck-editor/smart-actions.js +1 -1
- package/dist/puck-editor/smart-actions.js.map +1 -1
- package/dist/shared/cn.d.ts +0 -1
- package/dist/shared/i18n.d.ts +0 -1
- package/dist/shared/revalidate-path.d.ts +1 -0
- package/dist/shared/revalidate-path.js +2 -0
- package/dist/shared/revalidate-path.js.map +1 -0
- package/dist/shared/toolbar-action.d.ts +0 -1
- package/dist/shared/use-is-hydrated.d.ts +0 -1
- package/dist/shared/use-is-in-iframe.d.ts +0 -1
- package/dist/shared/use-is-in-iframe.js +1 -1
- package/dist/shared/use-is-in-iframe.js.map +1 -1
- package/dist/smart-actions/internal/assemble-smart-actions.d.ts +14 -0
- package/dist/smart-actions/internal/assemble-smart-actions.js +11 -0
- package/dist/smart-actions/internal/assemble-smart-actions.js.map +1 -0
- package/dist/smart-actions/internal/backend-edit-link.d.ts +6 -0
- package/dist/smart-actions/internal/backend-edit-link.js +60 -0
- package/dist/smart-actions/internal/backend-edit-link.js.map +1 -0
- package/dist/smart-actions/internal/get-smart-actions-context.d.ts +1 -2
- package/dist/smart-actions/internal/get-smart-actions-context.js +2 -2
- package/dist/smart-actions/internal/get-smart-actions-context.js.map +1 -1
- package/dist/smart-actions/internal/i18n.d.ts +1 -2
- package/dist/smart-actions/internal/i18n.js +16 -2
- package/dist/smart-actions/internal/i18n.js.map +1 -1
- package/dist/smart-actions/internal/logout-form.d.ts +2 -2
- package/dist/smart-actions/internal/logout-form.js +47 -40
- package/dist/smart-actions/internal/logout-form.js.map +1 -1
- package/dist/smart-actions/internal/refresh-page.d.ts +3 -2
- package/dist/smart-actions/internal/refresh-page.js +60 -53
- package/dist/smart-actions/internal/refresh-page.js.map +1 -1
- package/dist/smart-actions/internal/smart-actions-button.d.ts +22 -4
- package/dist/smart-actions/internal/smart-actions-button.js +36 -13
- package/dist/smart-actions/internal/smart-actions-button.js.map +1 -1
- package/dist/smart-actions/internal/smart-actions-config.d.ts +12 -4
- package/dist/smart-actions/internal/smart-actions-config.js +36 -80
- package/dist/smart-actions/internal/smart-actions-config.js.map +1 -1
- package/dist/smart-actions/internal/smart-actions-toolbar-client.d.ts +5 -11
- package/dist/smart-actions/internal/smart-actions-toolbar-client.js +13 -53
- package/dist/smart-actions/internal/smart-actions-toolbar-client.js.map +1 -1
- package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.d.ts +1 -2
- package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.js +4 -4
- package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.js.map +1 -1
- package/dist/smart-actions/internal/toolbar/storage.d.ts +1 -2
- package/dist/smart-actions/internal/toolbar/storage.js.map +1 -1
- package/dist/smart-actions/internal/toolbar/types.d.ts +1 -2
- package/dist/smart-actions/internal/toolbar/types.js.map +1 -1
- package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.d.ts +1 -2
- package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.js +1 -1
- package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.js.map +1 -1
- package/dist/smart-actions/internal/ui/tooltip.d.ts +0 -1
- package/dist/smart-actions/internal/ui/tooltip.js +1 -1
- package/dist/smart-actions/internal/ui/tooltip.js.map +1 -1
- package/dist/smart-actions/internal/user-profile.d.ts +0 -1
- package/dist/smart-actions/internal/user-profile.js +71 -24
- package/dist/smart-actions/internal/user-profile.js.map +1 -1
- package/dist/smart-actions/server.d.ts +5 -4
- package/dist/smart-actions/server.js +2 -2
- package/dist/smart-actions/server.js.map +1 -1
- package/dist/theme.css +1 -1
- package/dist/visual-editor/index.d.ts +3 -4
- package/dist/visual-editor/index.js +3 -3
- package/dist/visual-editor/index.js.map +1 -1
- package/dist/visual-editor/internal/bridge/connector.d.ts +4 -3
- package/dist/visual-editor/internal/bridge/connector.js +22 -21
- package/dist/visual-editor/internal/bridge/connector.js.map +1 -1
- package/dist/visual-editor/internal/bridge/draft-mode-self-heal.d.ts +0 -1
- package/dist/visual-editor/internal/bridge/editor-auth-gate-server.d.ts +5 -3
- package/dist/visual-editor/internal/bridge/editor-auth-gate-server.js +7 -8
- package/dist/visual-editor/internal/bridge/editor-auth-gate-server.js.map +1 -1
- package/dist/visual-editor/internal/bridge/editor-auth-gate.d.ts +3 -3
- package/dist/visual-editor/internal/bridge/editor-auth-gate.js +4 -2
- package/dist/visual-editor/internal/bridge/editor-auth-gate.js.map +1 -1
- package/dist/visual-editor/internal/i18n.d.ts +3 -2
- package/dist/visual-editor/internal/i18n.js +32 -4
- package/dist/visual-editor/internal/i18n.js.map +1 -1
- package/dist/visual-editor/internal/overlays/drupal-origin.d.ts +1 -7
- package/dist/visual-editor/internal/overlays/drupal-origin.js +16 -3
- package/dist/visual-editor/internal/overlays/drupal-origin.js.map +1 -1
- package/dist/visual-editor/internal/overlays/edit-button.d.ts +5 -4
- package/dist/visual-editor/internal/overlays/edit-button.js +46 -44
- package/dist/visual-editor/internal/overlays/edit-button.js.map +1 -1
- package/dist/visual-editor/internal/overlays/edit-icon.d.ts +0 -1
- package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.d.ts +11 -2
- package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.js +18 -7
- package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.js.map +1 -1
- package/dist/visual-editor/internal/overlays/iframe-wrapper.d.ts +0 -1
- package/dist/visual-editor/internal/overlays/iframe-wrapper.js +1 -1
- package/dist/visual-editor/internal/overlays/iframe-wrapper.js.map +1 -1
- package/dist/visual-editor/internal/overlays/menu/menu-wrapper.d.ts +12 -3
- package/dist/visual-editor/internal/overlays/menu/menu-wrapper.js +14 -5
- package/dist/visual-editor/internal/overlays/menu/menu-wrapper.js.map +1 -1
- package/dist/visual-editor/internal/overlays/node/node-metadata.d.ts +4 -2
- package/dist/visual-editor/internal/overlays/node/node-metadata.js +10 -4
- package/dist/visual-editor/internal/overlays/node/node-metadata.js.map +1 -1
- package/dist/visual-editor/internal/overlays/node/node-wrapper.d.ts +5 -3
- package/dist/visual-editor/internal/overlays/node/node-wrapper.js +4 -2
- package/dist/visual-editor/internal/overlays/node/node-wrapper.js.map +1 -1
- package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.d.ts +11 -2
- package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.js +18 -7
- package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.js.map +1 -1
- package/dist/visual-editor/internal/revalidate-route.d.ts +0 -1
- package/dist/visual-editor/internal/revalidate-route.js +1 -1
- package/dist/visual-editor/internal/revalidate-route.js.map +1 -1
- package/dist/visual-editor/server.d.ts +6 -7
- package/dist/visual-editor/server.js +6 -6
- package/dist/visual-editor/server.js.map +1 -1
- package/package.json +19 -3
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/internal/config.d.ts.map +0 -1
- package/dist/auth/internal/draft-mode.d.ts.map +0 -1
- package/dist/auth/internal/editor-locale.d.ts.map +0 -1
- package/dist/auth/internal/handoff.d.ts.map +0 -1
- package/dist/auth/internal/has-session.d.ts.map +0 -1
- package/dist/auth/internal/logout.d.ts.map +0 -1
- package/dist/auth/internal/next-cookie-storage.d.ts.map +0 -1
- package/dist/auth/internal/nodehive-client.d.ts.map +0 -1
- package/dist/auth/internal/oauth-config.d.ts.map +0 -1
- package/dist/auth/internal/proxy-helpers.d.ts.map +0 -1
- package/dist/auth/internal/refresh.d.ts.map +0 -1
- package/dist/auth/internal/require-auth.d.ts.map +0 -1
- package/dist/auth/internal/return-to.d.ts.map +0 -1
- package/dist/auth/internal/routes/callback.d.ts.map +0 -1
- package/dist/auth/internal/routes/chips-exchange.d.ts.map +0 -1
- package/dist/auth/internal/routes/draft.d.ts.map +0 -1
- package/dist/auth/internal/routes/index.d.ts.map +0 -1
- package/dist/auth/internal/routes/login.d.ts.map +0 -1
- package/dist/auth/internal/routes/popup-done.d.ts.map +0 -1
- package/dist/auth/internal/routes/refresh.d.ts.map +0 -1
- package/dist/auth/internal/same-origin.d.ts.map +0 -1
- package/dist/auth/internal/session-gates.d.ts.map +0 -1
- package/dist/auth/internal/update-session.d.ts.map +0 -1
- package/dist/auth/internal/use-editor-login.d.ts.map +0 -1
- package/dist/auth/proxy.d.ts.map +0 -1
- package/dist/auth/react.d.ts.map +0 -1
- package/dist/auth/routes.d.ts.map +0 -1
- package/dist/auth/server.d.ts.map +0 -1
- package/dist/puck-editor/fields.d.ts.map +0 -1
- package/dist/puck-editor/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/client.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/config.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/create-puck-api.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/handlers/create-page.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/handlers/entities.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/handlers/publish.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/handlers/template.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/handlers/upload.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/media-params.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/media-upload.d.ts.map +0 -1
- package/dist/puck-editor/internal/api/space.d.ts.map +0 -1
- package/dist/puck-editor/internal/content-model.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/allowed-types.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/canvas-add-picker.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/canvas-empty-state.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/canvas-quick-add.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/canvas-scroll.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/component-icons.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/component-item.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/editor-action-bar.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/editor-header-actions.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/find-missing-required-fields.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/grouped-drawer-panel.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/grouped-entry-list.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/header-save-button.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/page-template-picker.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/picker-entry-item.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/picker-model.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/publish-puck-data.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/puck-editor.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/section-template-modal.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/use-frame-zoom.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor/use-scroll-lock-outside.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor-config.d.ts.map +0 -1
- package/dist/puck-editor/internal/editor-query-client.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/date-picker/date-picker.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/anchor.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/create-link-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/humanize.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/link-picker-control.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/link-picker-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/link-value.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/richtext-extensions.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/segmented-control.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/link-picker/types.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-array/create-media-array-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-array/media-array-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-array/reorder.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/crop-types.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/extract-fields.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/image-upload-form.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/media-selector-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/use-debounced-value.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/use-media-library.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/media-selector/video-upload-form.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/required-field-label.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/required.d.ts.map +0 -1
- package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.d.ts.map +0 -1
- package/dist/puck-editor/internal/i18n.d.ts.map +0 -1
- package/dist/puck-editor/internal/locale.d.ts.map +0 -1
- package/dist/puck-editor/internal/localize.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/catalog.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/constants.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/create-page.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/find-component-location.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/help.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/list-media.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/templates.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/upload-media.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/blocks-plugin/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/outline-plugin/outline-tree.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/template-form.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/templates.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.d.ts.map +0 -1
- package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.d.ts.map +0 -1
- package/dist/puck-editor/internal/puck-augmentation.d.ts.map +0 -1
- package/dist/puck-editor/internal/puck-editor-provider.d.ts.map +0 -1
- package/dist/puck-editor/internal/puck-node.d.ts.map +0 -1
- package/dist/puck-editor/internal/puck-wrapper.d.ts.map +0 -1
- package/dist/puck-editor/internal/render/cropped-image.d.ts.map +0 -1
- package/dist/puck-editor/internal/smart-actions/index.d.ts.map +0 -1
- package/dist/puck-editor/internal/smart-actions/new-page.d.ts.map +0 -1
- package/dist/puck-editor/internal/smart-actions/open-puck-editor.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/calendar.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/component-list-accordion.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/dialog.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/drawer-item-content.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/icon-button.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/popover.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/required-mark.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/search-control.d.ts.map +0 -1
- package/dist/puck-editor/internal/ui/use-panel-search-focus.d.ts.map +0 -1
- package/dist/puck-editor/internal/use-puck-overlay.d.ts.map +0 -1
- package/dist/puck-editor/internal/utils.d.ts.map +0 -1
- package/dist/puck-editor/render.d.ts.map +0 -1
- package/dist/puck-editor/server.d.ts.map +0 -1
- package/dist/puck-editor/smart-actions.d.ts.map +0 -1
- package/dist/shared/cn.d.ts.map +0 -1
- package/dist/shared/i18n.d.ts.map +0 -1
- package/dist/shared/toolbar-action.d.ts.map +0 -1
- package/dist/shared/use-is-hydrated.d.ts.map +0 -1
- package/dist/shared/use-is-in-iframe.d.ts.map +0 -1
- package/dist/smart-actions/internal/get-smart-actions-context.d.ts.map +0 -1
- package/dist/smart-actions/internal/i18n.d.ts.map +0 -1
- package/dist/smart-actions/internal/logout-form.d.ts.map +0 -1
- package/dist/smart-actions/internal/refresh-page.d.ts.map +0 -1
- package/dist/smart-actions/internal/smart-actions-button.d.ts.map +0 -1
- package/dist/smart-actions/internal/smart-actions-config.d.ts.map +0 -1
- package/dist/smart-actions/internal/smart-actions-toolbar-client.d.ts.map +0 -1
- package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.d.ts.map +0 -1
- package/dist/smart-actions/internal/toolbar/storage.d.ts.map +0 -1
- package/dist/smart-actions/internal/toolbar/types.d.ts.map +0 -1
- package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.d.ts.map +0 -1
- package/dist/smart-actions/internal/ui/tooltip.d.ts.map +0 -1
- package/dist/smart-actions/internal/user-profile.d.ts.map +0 -1
- package/dist/smart-actions/server.d.ts.map +0 -1
- package/dist/visual-editor/index.d.ts.map +0 -1
- package/dist/visual-editor/internal/bridge/connector.d.ts.map +0 -1
- package/dist/visual-editor/internal/bridge/draft-mode-self-heal.d.ts.map +0 -1
- package/dist/visual-editor/internal/bridge/editor-auth-gate-server.d.ts.map +0 -1
- package/dist/visual-editor/internal/bridge/editor-auth-gate.d.ts.map +0 -1
- package/dist/visual-editor/internal/i18n.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/drupal-origin.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/edit-button.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/edit-icon.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/iframe-wrapper.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/menu/menu-wrapper.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/node/node-metadata.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/node/node-wrapper.d.ts.map +0 -1
- package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.d.ts.map +0 -1
- package/dist/visual-editor/internal/revalidate-route.d.ts.map +0 -1
- package/dist/visual-editor/server.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outline-plugin.js","names":["ListTreeIcon","OutlinePanel","jsx","_jsx","createOutlinePlugin","options","name","label","icon","className","render"],"sources":["../../../../../src/puck-editor/internal/plugins/outline-plugin/outline-plugin.tsx"],"sourcesContent":["'use client';\n\nimport { Plugin } from '@puckeditor/core';\nimport { ListTreeIcon } from 'lucide-react';\n\nimport { OutlinePanel } from './outline-panel';\n\nexport function createOutlinePlugin(options?: { label?: string }): Plugin {\n return {\n name: 'outline',\n label: options?.label ?? 'Outline',\n icon: <ListTreeIcon className=\"nh:size-6\" />,\n render: () => <OutlinePanel />,\n };\n}\n"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,YAAY,QAAQ,cAAc;AAE3C,SAASC,YAAY,QAAQ,
|
|
1
|
+
{"version":3,"file":"outline-plugin.js","names":["ListTreeIcon","OutlinePanel","jsx","_jsx","createOutlinePlugin","options","name","label","icon","className","render"],"sources":["../../../../../src/puck-editor/internal/plugins/outline-plugin/outline-plugin.tsx"],"sourcesContent":["'use client';\n\nimport { Plugin } from '@puckeditor/core';\nimport { ListTreeIcon } from 'lucide-react';\n\nimport { OutlinePanel } from './outline-panel.tsx';\n\nexport function createOutlinePlugin(options?: { label?: string }): Plugin {\n return {\n name: 'outline',\n label: options?.label ?? 'Outline',\n icon: <ListTreeIcon className=\"nh:size-6\" />,\n render: () => <OutlinePanel />,\n };\n}\n"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,YAAY,QAAQ,cAAc;AAE3C,SAASC,YAAY,QAAQ,oBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnD,OAAO,SAASC,mBAAmBA,CAACC,OAA4B,EAAU;EACxE,OAAO;IACLC,IAAI,EAAE,SAAS;IACfC,KAAK,EAAEF,OAAO,EAAEE,KAAK,IAAI,SAAS;IAClCC,IAAI,eAAEL,IAAA,CAACH,YAAY;MAACS,SAAS,EAAC;IAAW,CAAE,CAAC;IAC5CC,MAAM,EAAEA,CAAA,kBAAMP,IAAA,CAACF,YAAY,IAAE;EAC/B,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { createSectionsPlugin } from './sections-plugin';
|
|
2
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { createSectionsPlugin } from './sections-plugin.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createSectionsPlugin } from
|
|
1
|
+
export { createSectionsPlugin } from "./sections-plugin.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["createSectionsPlugin"],"sources":["../../../../../src/puck-editor/internal/plugins/sections-plugin/index.ts"],"sourcesContent":["export { createSectionsPlugin } from './sections-plugin';\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","names":["createSectionsPlugin"],"sources":["../../../../../src/puck-editor/internal/plugins/sections-plugin/index.ts"],"sourcesContent":["export { createSectionsPlugin } from './sections-plugin.tsx';\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,sBAAuB","ignoreList":[]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
|
-
import { GroupedDrawerPanel } from
|
|
5
|
-
import { usePickerModel } from
|
|
6
|
-
import { usePuckDictionary, usePuckLocale } from
|
|
7
|
-
import { CustomTemplateList } from
|
|
8
|
-
import { templateMatchesQuery } from
|
|
4
|
+
import { GroupedDrawerPanel } from "../../editor/grouped-drawer-panel.js";
|
|
5
|
+
import { usePickerModel } from "../../editor/picker-model.js";
|
|
6
|
+
import { usePuckDictionary, usePuckLocale } from "../../i18n.js";
|
|
7
|
+
import { CustomTemplateList } from "../templates-plugin/custom-template-list.js";
|
|
8
|
+
import { templateMatchesQuery } from "../templates-plugin/templates.js";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
export function SectionsPanel() {
|
|
11
11
|
const $ = _c(14);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sections-panel.js","names":["c","_c","GroupedDrawerPanel","usePickerModel","usePuckDictionary","usePuckLocale","CustomTemplateList","templateMatchesQuery","jsx","_jsx","SectionsPanel","$","t","sections","locale","pinnedSectionEntries","sectionGroups","customSectionTemplates","insertSectionEntry","insertRootTemplate","t0","query","some","template","t1","customSections","searchQuery","title","category","t2","noSectionsFound","searchPlaceholder","focusKey","noResultsLabel","footerMatchesQuery","footer"],"sources":["../../../../../src/puck-editor/internal/plugins/sections-plugin/sections-panel.tsx"],"sourcesContent":["'use client';\n\nimport { GroupedDrawerPanel } from '../../editor/grouped-drawer-panel';\nimport { usePickerModel } from '../../editor/picker-model';\nimport { usePuckDictionary, usePuckLocale } from '../../i18n';\nimport { CustomTemplateList } from '../templates-plugin/custom-template-list';\nimport { templateMatchesQuery } from '../templates-plugin/templates';\n\nexport function SectionsPanel() {\n const t = usePuckDictionary().sections;\n const locale = usePuckLocale();\n const {\n pinnedSectionEntries,\n sectionGroups,\n customSectionTemplates,\n insertSectionEntry,\n insertRootTemplate,\n } = usePickerModel();\n\n return (\n <GroupedDrawerPanel\n focusKey=\"sections\"\n searchPlaceholder={t.searchPlaceholder}\n noResultsLabel={t.noSectionsFound}\n pinned={pinnedSectionEntries}\n groups={sectionGroups}\n onInsert={insertSectionEntry}\n footerMatchesQuery={(query) =>\n customSectionTemplates.some((template) =>\n templateMatchesQuery(template, locale, query)\n )\n }\n footer={(searchQuery) => (\n <CustomTemplateList\n title={t.customSections}\n category=\"section\"\n query={searchQuery}\n onInsert={insertRootTemplate}\n />\n )}\n />\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,kBAAkB,QAAQ,
|
|
1
|
+
{"version":3,"file":"sections-panel.js","names":["c","_c","GroupedDrawerPanel","usePickerModel","usePuckDictionary","usePuckLocale","CustomTemplateList","templateMatchesQuery","jsx","_jsx","SectionsPanel","$","t","sections","locale","pinnedSectionEntries","sectionGroups","customSectionTemplates","insertSectionEntry","insertRootTemplate","t0","query","some","template","t1","customSections","searchQuery","title","category","t2","noSectionsFound","searchPlaceholder","focusKey","noResultsLabel","footerMatchesQuery","footer"],"sources":["../../../../../src/puck-editor/internal/plugins/sections-plugin/sections-panel.tsx"],"sourcesContent":["'use client';\n\nimport { GroupedDrawerPanel } from '../../editor/grouped-drawer-panel.tsx';\nimport { usePickerModel } from '../../editor/picker-model.ts';\nimport { usePuckDictionary, usePuckLocale } from '../../i18n.tsx';\nimport { CustomTemplateList } from '../templates-plugin/custom-template-list.tsx';\nimport { templateMatchesQuery } from '../templates-plugin/templates.ts';\n\nexport function SectionsPanel() {\n const t = usePuckDictionary().sections;\n const locale = usePuckLocale();\n const {\n pinnedSectionEntries,\n sectionGroups,\n customSectionTemplates,\n insertSectionEntry,\n insertRootTemplate,\n } = usePickerModel();\n\n return (\n <GroupedDrawerPanel\n focusKey=\"sections\"\n searchPlaceholder={t.searchPlaceholder}\n noResultsLabel={t.noSectionsFound}\n pinned={pinnedSectionEntries}\n groups={sectionGroups}\n onInsert={insertSectionEntry}\n footerMatchesQuery={(query) =>\n customSectionTemplates.some((template) =>\n templateMatchesQuery(template, locale, query)\n )\n }\n footer={(searchQuery) => (\n <CustomTemplateList\n title={t.customSections}\n category=\"section\"\n query={searchQuery}\n onInsert={insertRootTemplate}\n />\n )}\n />\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,kBAAkB,QAAQ,sCAAuC;AAC1E,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,iBAAiB,EAAEC,aAAa,QAAQ,eAAgB;AACjE,SAASC,kBAAkB,QAAQ,6CAA8C;AACjF,SAASC,oBAAoB,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAExE,OAAO,SAAAC,cAAA;EAAA,MAAAC,CAAA,GAAAV,EAAA;EACL,MAAAW,CAAA,GAAUR,iBAAiB,CAAC,CAAC,CAAAS,QAAS;EACtC,MAAAC,MAAA,GAAeT,aAAa,CAAC,CAAC;EAC9B;IAA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B,CAAC,CAAAkB,eAAgB;MACzBf,MAAoB,EAApBA,oBAAoB;MACpBC,MAAa,EAAbA,aAAa;MACXE,QAAkB,EAAlBA,kBAAkB;MACRgB,kBAGjB,EAHiBd,EAGjB;MAEKe,MAOP,EAPOX;IAOP,CACF,CAAC;IAAAb,CAAA,MAAAO,kBAAA;IAAAP,CAAA,MAAAI,oBAAA;IAAAJ,CAAA,MAAAK,aAAA;IAAAL,CAAA,MAAAC,CAAA,CAAAkB,eAAA;IAAAnB,CAAA,OAAAC,CAAA,CAAAmB,iBAAA;IAAApB,CAAA,OAAAS,EAAA;IAAAT,CAAA,OAAAa,EAAA;IAAAb,CAAA,OAAAkB,EAAA;EAAA;IAAAA,EAAA,GAAAlB,CAAA;EAAA;EAAA,OApBFkB,EAoBE;AAAA","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { PanelsTopLeftIcon } from 'lucide-react';
|
|
4
|
-
import { SectionsPanel } from
|
|
4
|
+
import { SectionsPanel } from "./sections-panel.js";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
export function createSectionsPlugin({
|
|
7
7
|
label = 'Sections'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sections-plugin.js","names":["PanelsTopLeftIcon","SectionsPanel","jsx","_jsx","createSectionsPlugin","label","name","icon","className","render"],"sources":["../../../../../src/puck-editor/internal/plugins/sections-plugin/sections-plugin.tsx"],"sourcesContent":["'use client';\n\nimport { Plugin } from '@puckeditor/core';\nimport { PanelsTopLeftIcon } from 'lucide-react';\n\nimport { SectionsPanel } from './sections-panel';\n\ntype CreateSectionsPluginOptions = {\n label?: string;\n};\n\nexport function createSectionsPlugin({\n label = 'Sections',\n}: CreateSectionsPluginOptions = {}): Plugin {\n return {\n name: 'sections',\n label,\n icon: <PanelsTopLeftIcon className=\"nh:size-6\" />,\n render: () => <SectionsPanel />,\n };\n}\n"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,iBAAiB,QAAQ,cAAc;AAEhD,SAASC,aAAa,QAAQ,
|
|
1
|
+
{"version":3,"file":"sections-plugin.js","names":["PanelsTopLeftIcon","SectionsPanel","jsx","_jsx","createSectionsPlugin","label","name","icon","className","render"],"sources":["../../../../../src/puck-editor/internal/plugins/sections-plugin/sections-plugin.tsx"],"sourcesContent":["'use client';\n\nimport { Plugin } from '@puckeditor/core';\nimport { PanelsTopLeftIcon } from 'lucide-react';\n\nimport { SectionsPanel } from './sections-panel.tsx';\n\ntype CreateSectionsPluginOptions = {\n label?: string;\n};\n\nexport function createSectionsPlugin({\n label = 'Sections',\n}: CreateSectionsPluginOptions = {}): Plugin {\n return {\n name: 'sections',\n label,\n icon: <PanelsTopLeftIcon className=\"nh:size-6\" />,\n render: () => <SectionsPanel />,\n };\n}\n"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,iBAAiB,QAAQ,cAAc;AAEhD,SAASC,aAAa,QAAQ,qBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAMrD,OAAO,SAASC,oBAAoBA,CAAC;EACnCC,KAAK,GAAG;AACmB,CAAC,GAAG,CAAC,CAAC,EAAU;EAC3C,OAAO;IACLC,IAAI,EAAE,UAAU;IAChBD,KAAK;IACLE,IAAI,eAAEJ,IAAA,CAACH,iBAAiB;MAACQ,SAAS,EAAC;IAAW,CAAE,CAAC;IACjDC,MAAM,EAAEA,CAAA,kBAAMN,IAAA,CAACF,aAAa,IAAE;EAChC,CAAC;AACH","ignoreList":[]}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import { ChevronRightIcon } from 'lucide-react';
|
|
6
|
-
import { cn } from
|
|
7
|
-
import { usePuckDictionary } from
|
|
6
|
+
import { cn } from "../../../../shared/cn.js";
|
|
7
|
+
import { usePuckDictionary } from "../../i18n.js";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
export function AiOptionsFields(t0) {
|
|
10
10
|
const $ = _c(32);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-options-fields.js","names":["c","_c","useState","ChevronRightIcon","cn","usePuckDictionary","jsx","_jsx","jsxs","_jsxs","AiOptionsFields","t0","$","defaultExpanded","t1","defaultDescription","t2","defaultInstructions","t3","undefined","t","templates","expanded","setExpanded","t4","Symbol","for","_temp","t5","t6","className","t7","aiOptions","type","onClick","children","t8","t9","t10","aiDescription","htmlFor","t11","id","name","rows","t12","t13","aiInstructions","t14","t15","t16","t17","value"],"sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/ai-options-fields.tsx"],"sourcesContent":["'use client';\n\nimport { useState } from 'react';\nimport { ChevronRightIcon } from 'lucide-react';\n\nimport { cn } from '../../../../shared/cn';\nimport { usePuckDictionary } from '../../i18n';\n\nexport function AiOptionsFields({\n defaultExpanded = false,\n defaultDescription = '',\n defaultInstructions = '',\n}: {\n defaultExpanded?: boolean;\n defaultDescription?: string;\n defaultInstructions?: string;\n}) {\n const t = usePuckDictionary().templates;\n const [expanded, setExpanded] = useState(defaultExpanded);\n\n return (\n <div>\n <button\n type=\"button\"\n onClick={() => setExpanded((value) => !value)}\n aria-expanded={expanded}\n className=\"nh:flex nh:items-center nh:gap-1 nh:text-sm nh:font-medium nh:text-gray-700 nh:hover:text-gray-900\"\n >\n <ChevronRightIcon\n className={cn('nh:size-4 nh:transition-transform', {\n 'nh:rotate-90': expanded,\n })}\n />\n {t.aiOptions}\n </button>\n <div className={cn('nh:mt-3 nh:space-y-4', { 'nh:hidden': !expanded })}>\n <div>\n <label\n htmlFor=\"aiDescription\"\n className=\"nh:block nh:text-sm nh:font-medium nh:text-gray-700\"\n >\n {t.aiDescription}\n </label>\n <textarea\n id=\"aiDescription\"\n name=\"aiDescription\"\n rows={2}\n defaultValue={defaultDescription}\n className=\"nh:mt-1 nh:block nh:w-full nh:rounded-md nh:border-gray-300 nh:shadow-sm\"\n />\n </div>\n\n <div>\n <label\n htmlFor=\"aiInstructions\"\n className=\"nh:block nh:text-sm nh:font-medium nh:text-gray-700\"\n >\n {t.aiInstructions}\n </label>\n <textarea\n id=\"aiInstructions\"\n name=\"aiInstructions\"\n rows={3}\n defaultValue={defaultInstructions}\n className=\"nh:mt-1 nh:block nh:w-full nh:rounded-md nh:border-gray-300 nh:shadow-sm\"\n />\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,QAAQ,QAAQ,OAAO;AAChC,SAASC,gBAAgB,QAAQ,cAAc;AAE/C,SAASC,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"ai-options-fields.js","names":["c","_c","useState","ChevronRightIcon","cn","usePuckDictionary","jsx","_jsx","jsxs","_jsxs","AiOptionsFields","t0","$","defaultExpanded","t1","defaultDescription","t2","defaultInstructions","t3","undefined","t","templates","expanded","setExpanded","t4","Symbol","for","_temp","t5","t6","className","t7","aiOptions","type","onClick","children","t8","t9","t10","aiDescription","htmlFor","t11","id","name","rows","t12","t13","aiInstructions","t14","t15","t16","t17","value"],"sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/ai-options-fields.tsx"],"sourcesContent":["'use client';\n\nimport { useState } from 'react';\nimport { ChevronRightIcon } from 'lucide-react';\n\nimport { cn } from '../../../../shared/cn.ts';\nimport { usePuckDictionary } from '../../i18n.tsx';\n\nexport function AiOptionsFields({\n defaultExpanded = false,\n defaultDescription = '',\n defaultInstructions = '',\n}: {\n defaultExpanded?: boolean;\n defaultDescription?: string;\n defaultInstructions?: string;\n}) {\n const t = usePuckDictionary().templates;\n const [expanded, setExpanded] = useState(defaultExpanded);\n\n return (\n <div>\n <button\n type=\"button\"\n onClick={() => setExpanded((value) => !value)}\n aria-expanded={expanded}\n className=\"nh:flex nh:items-center nh:gap-1 nh:text-sm nh:font-medium nh:text-gray-700 nh:hover:text-gray-900\"\n >\n <ChevronRightIcon\n className={cn('nh:size-4 nh:transition-transform', {\n 'nh:rotate-90': expanded,\n })}\n />\n {t.aiOptions}\n </button>\n <div className={cn('nh:mt-3 nh:space-y-4', { 'nh:hidden': !expanded })}>\n <div>\n <label\n htmlFor=\"aiDescription\"\n className=\"nh:block nh:text-sm nh:font-medium nh:text-gray-700\"\n >\n {t.aiDescription}\n </label>\n <textarea\n id=\"aiDescription\"\n name=\"aiDescription\"\n rows={2}\n defaultValue={defaultDescription}\n className=\"nh:mt-1 nh:block nh:w-full nh:rounded-md nh:border-gray-300 nh:shadow-sm\"\n />\n </div>\n\n <div>\n <label\n htmlFor=\"aiInstructions\"\n className=\"nh:block nh:text-sm nh:font-medium nh:text-gray-700\"\n >\n {t.aiInstructions}\n </label>\n <textarea\n id=\"aiInstructions\"\n name=\"aiInstructions\"\n rows={3}\n defaultValue={defaultInstructions}\n className=\"nh:mt-1 nh:block nh:w-full nh:rounded-md nh:border-gray-300 nh:shadow-sm\"\n />\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,QAAQ,QAAQ,OAAO;AAChC,SAASC,gBAAgB,QAAQ,cAAc;AAE/C,SAASC,EAAE,QAAQ,0BAA0B;AAC7C,SAASC,iBAAiB,QAAQ,eAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEnD,OAAO,SAAAC,gBAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAX,EAAA;EAAyB;IAAAY,eAAA,EAAAC,EAAA;IAAAC,kBAAA,EAAAC,EAAA;IAAAC,mBAAA,EAAAC;EAAA,IAAAP,EAQ/B;EAPC,MAAAE,eAAA,GAAAC,EAAuB,KAAvBK,SAAuB,GAAvB,KAAuB,GAAvBL,EAAuB;EACvB,MAAAC,kBAAA,GAAAC,EAAuB,KAAvBG,SAAuB,GAAvB,EA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tDO,EAAsD;MAAAF,QAAA,GACpEU,GAcM,EAENI,GAcM;IAAA,CACH,CAAC;IAAArC,CAAA,OAAAiC,GAAA;IAAAjC,CAAA,OAAAqC,GAAA;IAAArC,CAAA,OAAAyB,EAAA;IAAAzB,CAAA,OAAAsC,GAAA;EAAA;IAAAA,GAAA,GAAAtC,CAAA;EAAA;EAAA,IAAAuC,GAAA;EAAA,IAAAvC,CAAA,SAAAsC,GAAA,IAAAtC,CAAA,SAAAmB,EAAA;IA9CRoB,GAAA,gBAAA1C,KAAA;MAAA0B,QAAA,GACEJ,EAYS,EACTmB,GAgCM;IAAA,CACH,CAAC;IAAAtC,CAAA,OAAAsC,GAAA;IAAAtC,CAAA,OAAAmB,EAAA;IAAAnB,CAAA,OAAAuC,GAAA;EAAA;IAAAA,GAAA,GAAAvC,CAAA;EAAA;EAAA,OA/CNuC,GA+CM;AAAA;AA5DH,SAAAxB,MAAAyB,KAAA;EAAA,OAgBuC,CAACA,KAAK;AAAA","ignoreList":[]}
|
package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sectionComponentTypes } from
|
|
1
|
+
import { sectionComponentTypes } from "../outline-plugin/outline-tree.js";
|
|
2
2
|
const referencesSection = (list, sectionTypes) => !!list && list.some(type => sectionTypes.includes(type));
|
|
3
3
|
const constrainSlot = (field, sectionTypes, vehicleTypes) => {
|
|
4
4
|
let next = field;
|
package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-vehicle-slot-constraints.js","names":["sectionComponentTypes","referencesSection","list","sectionTypes","some","type","includes","constrainSlot","field","vehicleTypes","next","disallow","allow","constrainField","objectFields","constrainFields","arrayFields","fields","Object","fromEntries","entries","map","name","applyVehicleSlotConstraints","config","length","components","componentConfig"],"sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.ts"],"sourcesContent":["import type { Config, Field } from '@puckeditor/core';\n\nimport { sectionComponentTypes } from '../outline-plugin/outline-tree';\n\ntype Fields = Record<string, Field>;\ntype SlotField = Extract<Field, { type: 'slot' }>;\n\nconst referencesSection = (\n list: string[] | undefined,\n sectionTypes: string[]\n): boolean => !!list && list.some((type) => sectionTypes.includes(type));\n\nconst constrainSlot = (\n field: SlotField,\n sectionTypes: string[],\n vehicleTypes: string[]\n): Field => {\n let next = field;\n if (referencesSection(field.disallow, sectionTypes)) {\n next = { ...next, disallow: [...(field.disallow ?? []), ...vehicleTypes] };\n }\n if (referencesSection(field.allow, sectionTypes)) {\n next = { ...next, allow: [...(field.allow ?? []), ...vehicleTypes] };\n }\n return next;\n};\n\nconst constrainField = (\n field: Field,\n sectionTypes: string[],\n vehicleTypes: string[]\n): Field => {\n if (field.type === 'slot') {\n return constrainSlot(field, sectionTypes, vehicleTypes);\n }\n if (field.type === 'object' && field.objectFields) {\n return {\n ...field,\n objectFields: constrainFields(\n field.objectFields as Fields,\n sectionTypes,\n vehicleTypes\n ),\n };\n }\n if (field.type === 'array' && field.arrayFields) {\n return {\n ...field,\n arrayFields: constrainFields(\n field.arrayFields as Fields,\n sectionTypes,\n vehicleTypes\n ),\n };\n }\n return field;\n};\n\nconst constrainFields = (\n fields: Fields,\n sectionTypes: string[],\n vehicleTypes: string[]\n): Fields =>\n Object.fromEntries(\n Object.entries(fields).map(([name, field]) => [\n name,\n constrainField(field, sectionTypes, vehicleTypes),\n ])\n );\n\nexport const applyVehicleSlotConstraints = (\n config: Config,\n vehicleTypes: string[]\n): Config => {\n if (vehicleTypes.length === 0) return config;\n const sectionTypes = sectionComponentTypes(config);\n if (sectionTypes.length === 0) return config;\n\n const components = Object.fromEntries(\n Object.entries(config.components).map(([type, componentConfig]) => {\n const fields = componentConfig.fields as Fields | undefined;\n if (!fields) return [type, componentConfig];\n return [\n type,\n {\n ...componentConfig,\n fields: constrainFields(fields, sectionTypes, vehicleTypes),\n },\n ];\n })\n );\n\n return { ...config, components } as Config;\n};\n"],"mappings":"AAEA,SAASA,qBAAqB,QAAQ,
|
|
1
|
+
{"version":3,"file":"apply-vehicle-slot-constraints.js","names":["sectionComponentTypes","referencesSection","list","sectionTypes","some","type","includes","constrainSlot","field","vehicleTypes","next","disallow","allow","constrainField","objectFields","constrainFields","arrayFields","fields","Object","fromEntries","entries","map","name","applyVehicleSlotConstraints","config","length","components","componentConfig"],"sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.ts"],"sourcesContent":["import type { Config, Field } from '@puckeditor/core';\n\nimport { sectionComponentTypes } from '../outline-plugin/outline-tree.ts';\n\ntype Fields = Record<string, Field>;\ntype SlotField = Extract<Field, { type: 'slot' }>;\n\nconst referencesSection = (\n list: string[] | undefined,\n sectionTypes: string[]\n): boolean => !!list && list.some((type) => sectionTypes.includes(type));\n\nconst constrainSlot = (\n field: SlotField,\n sectionTypes: string[],\n vehicleTypes: string[]\n): Field => {\n let next = field;\n if (referencesSection(field.disallow, sectionTypes)) {\n next = { ...next, disallow: [...(field.disallow ?? []), ...vehicleTypes] };\n }\n if (referencesSection(field.allow, sectionTypes)) {\n next = { ...next, allow: [...(field.allow ?? []), ...vehicleTypes] };\n }\n return next;\n};\n\nconst constrainField = (\n field: Field,\n sectionTypes: string[],\n vehicleTypes: string[]\n): Field => {\n if (field.type === 'slot') {\n return constrainSlot(field, sectionTypes, vehicleTypes);\n }\n if (field.type === 'object' && field.objectFields) {\n return {\n ...field,\n objectFields: constrainFields(\n field.objectFields as Fields,\n sectionTypes,\n vehicleTypes\n ),\n };\n }\n if (field.type === 'array' && field.arrayFields) {\n return {\n ...field,\n arrayFields: constrainFields(\n field.arrayFields as Fields,\n sectionTypes,\n vehicleTypes\n ),\n };\n }\n return field;\n};\n\nconst constrainFields = (\n fields: Fields,\n sectionTypes: string[],\n vehicleTypes: string[]\n): Fields =>\n Object.fromEntries(\n Object.entries(fields).map(([name, field]) => [\n name,\n constrainField(field, sectionTypes, vehicleTypes),\n ])\n );\n\nexport const applyVehicleSlotConstraints = (\n config: Config,\n vehicleTypes: string[]\n): Config => {\n if (vehicleTypes.length === 0) return config;\n const sectionTypes = sectionComponentTypes(config);\n if (sectionTypes.length === 0) return config;\n\n const components = Object.fromEntries(\n Object.entries(config.components).map(([type, componentConfig]) => {\n const fields = componentConfig.fields as Fields | undefined;\n if (!fields) return [type, componentConfig];\n return [\n type,\n {\n ...componentConfig,\n fields: constrainFields(fields, sectionTypes, vehicleTypes),\n },\n ];\n })\n );\n\n return { ...config, components } as Config;\n};\n"],"mappings":"AAEA,SAASA,qBAAqB,QAAQ,mCAAmC;AAKzE,MAAMC,iBAAiB,GAAGA,CACxBC,IAA0B,EAC1BC,YAAsB,KACV,CAAC,CAACD,IAAI,IAAIA,IAAI,CAACE,IAAI,CAAEC,IAAI,IAAKF,YAAY,CAACG,QAAQ,CAACD,IAAI,CAAC,CAAC;AAExE,MAAME,aAAa,GAAGA,CACpBC,KAAgB,EAChBL,YAAsB,EACtBM,YAAsB,KACZ;EACV,IAAIC,IAAI,GAAGF,KAAK;EAChB,IAAIP,iBAAiB,CAACO,KAAK,CAACG,QAAQ,EAAER,YAAY,CAAC,EAAE;IACnDO,IAAI,GAAG;MAAE,GAAGA,IAAI;MAAEC,QAAQ,EAAE,CAAC,IAAIH,KAAK,CAACG,QAAQ,IAAI,EAAE,CAAC,EAAE,GAAGF,YAAY;IAAE,CAAC;EAC5E;EACA,IAAIR,iBAAiB,CAACO,KAAK,CAACI,KAAK,EAAET,YAAY,CAAC,EAAE;IAChDO,IAAI,GAAG;MAAE,GAAGA,IAAI;MAAEE,KAAK,EAAE,CAAC,IAAIJ,KAAK,CAACI,KAAK,IAAI,EAAE,CAAC,EAAE,GAAGH,YAAY;IAAE,CAAC;EACtE;EACA,OAAOC,IAAI;AACb,CAAC;AAED,MAAMG,cAAc,GAAGA,CACrBL,KAAY,EACZL,YAAsB,EACtBM,YAA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Ae,CAAC,KAAK;IACjE,MAAMV,MAAM,GAAGU,eAAe,CAACV,MAA4B;IAC3D,IAAI,CAACA,MAAM,EAAE,OAAO,CAACZ,IAAI,EAAEsB,eAAe,CAAC;IAC3C,OAAO,CACLtB,IAAI,EACJ;MACE,GAAGsB,eAAe;MAClBV,MAAM,EAAEF,eAAe,CAACE,MAAM,EAAEd,YAAY,EAAEM,YAAY;IAC5D,CAAC,CACF;EACH,CAAC,CACH,CAAC;EAED,OAAO;IAAE,GAAGe,MAAM;IAAEE;EAAW,CAAC;AAClC,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Content } from '@puckeditor/core';
|
|
2
|
-
import type { TemplateCategory } from './templates';
|
|
2
|
+
import type { TemplateCategory } from './templates.js';
|
|
3
3
|
type ContentTemplateModalProps = {
|
|
4
4
|
content: Content | null;
|
|
5
5
|
isOpen: boolean;
|
|
@@ -9,4 +9,3 @@ type ContentTemplateModalProps = {
|
|
|
9
9
|
};
|
|
10
10
|
export default function ComponentTemplateModal({ content, isOpen, setIsOpen, category, onTemplateSaved, }: ContentTemplateModalProps): import("react").JSX.Element | null;
|
|
11
11
|
export {};
|
|
12
|
-
//# sourceMappingURL=component-template-modal.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
|
-
import { usePuckDictionary } from
|
|
5
|
-
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from
|
|
6
|
-
import { TemplateForm } from
|
|
4
|
+
import { usePuckDictionary } from "../../i18n.js";
|
|
5
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "../../ui/dialog.js";
|
|
6
|
+
import { TemplateForm } from "./template-form.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
export default function ComponentTemplateModal(t0) {
|
|
9
9
|
const $ = _c(26);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-template-modal.js","names":["c","_c","usePuckDictionary","Dialog","DialogContent","DialogDescription","DialogHeader","DialogTitle","TemplateForm","jsx","_jsx","jsxs","_jsxs","ComponentTemplateModal","t0","$","content","isOpen","setIsOpen","category","onTemplateSaved","t","templates","t1","handleTemplateSaved","t2","open","t3","saveAsComponentTemplate","children","t4","saveComponentDialogDescription","t5","t6","t7","onCancel","t8","className","t9","onOpenChange"],"sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/component-template-modal.tsx"],"sourcesContent":["'use client';\n\nimport { Content } from '@puckeditor/core';\n\nimport { usePuckDictionary } from '../../i18n';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from '../../ui/dialog';\nimport { TemplateForm } from './template-form';\nimport type { TemplateCategory } from './templates';\n\ntype ContentTemplateModalProps = {\n content: Content | null;\n isOpen: boolean;\n setIsOpen: (arg: boolean) => void;\n category: TemplateCategory;\n onTemplateSaved?: () => void;\n};\n\nexport default function ComponentTemplateModal({\n content,\n isOpen,\n setIsOpen,\n category,\n onTemplateSaved,\n}: ContentTemplateModalProps) {\n const t = usePuckDictionary().templates;\n\n if (!content) return null;\n\n const handleTemplateSaved = () => {\n setIsOpen(false);\n onTemplateSaved?.();\n };\n\n return (\n <Dialog open={isOpen} onOpenChange={(open) => !open && setIsOpen(false)}>\n <DialogContent className=\"nh:max-h-dvh nh:max-w-lg nh:overflow-y-auto\">\n <DialogHeader>\n <DialogTitle>{t.saveAsComponentTemplate}</DialogTitle>\n <DialogDescription>\n {t.saveComponentDialogDescription}\n </DialogDescription>\n </DialogHeader>\n <TemplateForm\n content={content}\n onCancel={() => setIsOpen(false)}\n onTemplateSaved={handleTemplateSaved}\n category={category}\n />\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAIb,SAASC,iBAAiB,QAAQ,
|
|
1
|
+
{"version":3,"file":"component-template-modal.js","names":["c","_c","usePuckDictionary","Dialog","DialogContent","DialogDescription","DialogHeader","DialogTitle","TemplateForm","jsx","_jsx","jsxs","_jsxs","ComponentTemplateModal","t0","$","content","isOpen","setIsOpen","category","onTemplateSaved","t","templates","t1","handleTemplateSaved","t2","open","t3","saveAsComponentTemplate","children","t4","saveComponentDialogDescription","t5","t6","t7","onCancel","t8","className","t9","onOpenChange"],"sources":["../../../../../src/puck-editor/internal/plugins/templates-plugin/component-template-modal.tsx"],"sourcesContent":["'use client';\n\nimport { Content } from '@puckeditor/core';\n\nimport { usePuckDictionary } from '../../i18n.tsx';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from '../../ui/dialog.tsx';\nimport { TemplateForm } from './template-form.tsx';\nimport type { TemplateCategory } from './templates.ts';\n\ntype ContentTemplateModalProps = {\n content: Content | null;\n isOpen: boolean;\n setIsOpen: (arg: boolean) => void;\n category: TemplateCategory;\n onTemplateSaved?: () => void;\n};\n\nexport default function ComponentTemplateModal({\n content,\n isOpen,\n setIsOpen,\n category,\n onTemplateSaved,\n}: ContentTemplateModalProps) {\n const t = usePuckDictionary().templates;\n\n if (!content) return null;\n\n const handleTemplateSaved = () => {\n setIsOpen(false);\n onTemplateSaved?.();\n };\n\n return (\n <Dialog open={isOpen} onOpenChange={(open) => !open && setIsOpen(false)}>\n <DialogContent className=\"nh:max-h-dvh nh:max-w-lg nh:overflow-y-auto\">\n <DialogHeader>\n <DialogTitle>{t.saveAsComponentTemplate}</DialogTitle>\n <DialogDescription>\n {t.saveComponentDialogDescription}\n </DialogDescription>\n </DialogHeader>\n <TemplateForm\n content={content}\n onCancel={() => setIsOpen(false)}\n onTemplateSaved={handleTemplateSaved}\n category={category}\n />\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAIb,SAASC,iBAAiB,QAAQ,eAAgB;A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AlB,CAAA,OAAAmB,EAAA;EAAA;IAAAA,EAAA,GAAAnB,CAAA;EAAA;EAAA,IAAAqB,EAAA;EAAA,IAAArB,CAAA,SAAAiB,EAAA,IAAAjB,CAAA,SAAAmB,EAAA;IAZJE,EAAA,gBAAAxB,KAAA,CAACR,aAAa;MAAWiC,SAA6C,EAA7C,6CAA6C;MAAAR,QAAA,GACpEG,EAKe,EACfE,EAKE;IAAA,CACW,CAAC;IAAAnB,CAAA,OAAAiB,EAAA;IAAAjB,CAAA,OAAAmB,EAAA;IAAAnB,CAAA,OAAAqB,EAAA;EAAA;IAAAA,EAAA,GAAArB,CAAA;EAAA;EAAA,IAAAuB,EAAA;EAAA,IAAAvB,CAAA,SAAAE,MAAA,IAAAF,CAAA,SAAAU,EAAA,IAAAV,CAAA,SAAAqB,EAAA;IAdlBE,EAAA,gBAAA5B,IAAA,CAACP,MAAM;MAAOc,IAAM,EAANA,MAAM;MAAgBsB,YAAmC,EAAnCd,EAAmC;MAAAI,QAAA,EACrEO;IAagB,CACV,CAAC;IAAArB,CAAA,OAAAE,MAAA;IAAAF,CAAA,OAAAU,EAAA;IAAAV,CAAA,OAAAqB,EAAA;IAAArB,CAAA,OAAAuB,EAAA;EAAA;IAAAA,EAAA,GAAAvB,CAAA;EAAA;EAAA,OAfTuB,EAeS;AAAA","ignoreList":[]}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Template, TemplateCategory } from './templates';
|
|
1
|
+
import { Template, TemplateCategory } from './templates.js';
|
|
2
2
|
export declare function CustomTemplateList({ title, category, query, onInsert, }: {
|
|
3
3
|
title: string;
|
|
4
4
|
category: TemplateCategory;
|
|
5
5
|
query?: string;
|
|
6
6
|
onInsert?: (template: Template) => void;
|
|
7
7
|
}): import("react").JSX.Element | null;
|
|
8
|
-
//# sourceMappingURL=custom-template-list.d.ts.map
|