@wordpress/block-editor 15.9.1-next.8fd3f8831.0 → 15.10.1-next.79a2f3cdd.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/LICENSE.md +1 -1
- package/build/autocompleters/block.cjs +2 -2
- package/build/autocompleters/link.cjs +1 -1
- package/build/components/alignment-control/index.cjs +1 -1
- package/build/components/autocomplete/index.cjs +2 -2
- package/build/components/background-image-control/index.cjs +2 -2
- package/build/components/block-actions/index.cjs +1 -1
- package/build/components/block-alignment-control/index.cjs +1 -1
- package/build/components/block-alignment-control/ui.cjs +2 -2
- package/build/components/block-allowed-blocks/allowed-blocks-control.cjs +1 -1
- package/build/components/block-allowed-blocks/index.cjs +2 -2
- package/build/components/block-allowed-blocks/modal.cjs +1 -1
- package/build/components/block-bindings/attribute-control.cjs +4 -4
- package/build/components/block-bindings/index.cjs +3 -3
- package/build/components/block-bindings/source-fields-list.cjs +3 -3
- package/build/components/block-breadcrumb/index.cjs +2 -2
- package/build/components/block-canvas/index.cjs +5 -5
- package/build/components/block-card/index.cjs +3 -3
- package/build/components/block-compare/index.cjs +2 -2
- package/build/components/block-controls/fill.cjs +1 -1
- package/build/components/block-controls/hook.cjs +1 -1
- package/build/components/block-controls/index.cjs +2 -2
- package/build/components/block-controls/slot.cjs +2 -2
- package/build/components/block-draggable/draggable-chip.cjs +1 -1
- package/build/components/block-draggable/index.cjs +2 -2
- package/build/components/block-edit/edit.cjs +3 -3
- package/build/components/block-edit/index.cjs +1 -1
- package/build/components/block-edit/multiple-usage-warning.cjs +1 -1
- package/build/components/block-heading-level-dropdown/index.cjs +1 -1
- package/build/components/block-icon/index.cjs +1 -1
- package/build/components/block-inspector/edit-contents.cjs +1 -1
- package/build/components/block-inspector/index.cjs +19 -25
- package/build/components/block-inspector/index.cjs.map +3 -3
- package/build/components/block-list/block-crash-warning.cjs +1 -1
- package/build/components/block-list/block-html.cjs +1 -1
- package/build/components/block-list/block-invalid-warning.cjs +2 -2
- package/build/components/block-list/block.cjs +25 -19
- package/build/components/block-list/block.cjs.map +3 -3
- package/build/components/block-list/index.cjs +3 -3
- package/build/components/block-list/use-block-props/index.cjs +3 -3
- package/build/components/block-list/zoom-out-separator.cjs +1 -1
- package/build/components/block-list-appender/index.cjs +3 -3
- package/build/components/block-lock/index.cjs +4 -4
- package/build/components/block-lock/menu-item.cjs +2 -2
- package/build/components/block-lock/modal.cjs +2 -2
- package/build/components/block-lock/toolbar.cjs +2 -2
- package/build/components/block-manager/category.cjs +1 -1
- package/build/components/block-manager/checklist.cjs +1 -1
- package/build/components/block-manager/index.cjs +1 -1
- package/build/components/block-mover/button.cjs +1 -1
- package/build/components/block-mover/index.cjs +2 -2
- package/build/components/block-navigation/dropdown.cjs +2 -2
- package/build/components/block-parent-selector/index.cjs +2 -2
- package/build/components/block-pattern-setup/index.cjs +3 -3
- package/build/components/block-patterns-list/index.cjs +4 -4
- package/build/components/block-popover/drop-zone.cjs +1 -1
- package/build/components/block-popover/inbetween.cjs +2 -2
- package/build/components/block-popover/index.cjs +2 -2
- package/build/components/block-preview/auto.cjs +3 -3
- package/build/components/block-preview/index.cjs +4 -4
- package/build/components/block-quick-navigation/index.cjs +3 -3
- package/build/components/block-rename/index.cjs +3 -3
- package/build/components/block-rename/modal.cjs +1 -1
- package/build/components/block-rename/rename-control.cjs +1 -1
- package/build/components/block-settings-menu/block-parent-selector-menu-item.cjs +1 -1
- package/build/components/block-settings-menu/block-settings-dropdown.cjs +6 -6
- package/build/components/block-settings-menu/index.cjs +2 -2
- package/build/components/block-settings-menu-controls/edit-section-menu-item.cjs +1 -1
- package/build/components/block-settings-menu-controls/index.cjs +1 -1
- package/build/components/block-styles/index.cjs +88 -57
- package/build/components/block-styles/index.cjs.map +3 -3
- package/build/components/block-styles/menu-items.cjs +1 -1
- package/build/components/block-styles/preview-panel.cjs +1 -1
- package/build/components/block-styles/utils.cjs +1 -1
- package/build/components/block-switcher/block-styles-menu.cjs +1 -1
- package/build/components/block-switcher/block-transformations-menu.cjs +3 -3
- package/build/components/block-switcher/block-variation-transformations.cjs +2 -2
- package/build/components/block-switcher/index.cjs +3 -3
- package/build/components/block-switcher/pattern-transformations-menu.cjs +2 -2
- package/build/components/block-switcher/preview-block-popover.cjs +1 -1
- package/build/components/block-title/index.cjs +1 -1
- package/build/components/block-toolbar/block-toolbar-icon.cjs +4 -4
- package/build/components/block-toolbar/change-design.cjs +1 -1
- package/build/components/block-toolbar/index.cjs +11 -11
- package/build/components/block-toolbar/switch-section-style.cjs +1 -1
- package/build/components/block-tools/block-toolbar-popover.cjs +3 -3
- package/build/components/block-tools/empty-block-inserter.cjs +5 -5
- package/build/components/block-tools/index.cjs +7 -7
- package/build/components/block-tools/insertion-point.cjs +4 -4
- package/build/components/block-tools/zoom-out-mode-inserter-button.cjs +1 -1
- package/build/components/block-tools/zoom-out-mode-inserters.cjs +2 -2
- package/build/components/block-types-list/index.cjs +1 -1
- package/build/components/block-variation-picker/index.cjs +1 -1
- package/build/components/block-variation-transforms/index.cjs +2 -2
- package/build/components/block-variation-transforms/index.cjs.map +1 -1
- package/build/components/block-vertical-alignment-control/index.cjs +1 -1
- package/build/components/block-visibility/block-visibility-info.cjs +122 -0
- package/build/components/block-visibility/block-visibility-info.cjs.map +7 -0
- package/build/components/block-visibility/index.cjs +2 -2
- package/build/components/border-radius-control/index.cjs +2 -2
- package/build/components/button-block-appender/index.cjs +3 -3
- package/build/components/color-palette/control.cjs +1 -1
- package/build/components/color-palette/index.cjs +1 -1
- package/build/components/color-style-selector/index.cjs +1 -1
- package/build/components/colors/index.cjs +1 -1
- package/build/components/colors/utils.cjs +2 -2
- package/build/components/colors-gradients/control.cjs +1 -1
- package/build/components/colors-gradients/dropdown.cjs +2 -2
- package/build/components/colors-gradients/panel-color-gradient-settings.cjs +3 -3
- package/build/components/contrast-checker/index.cjs +2 -2
- package/build/components/convert-to-group-buttons/index.cjs +2 -2
- package/build/components/copy-handler/index.cjs +2 -2
- package/build/components/default-block-appender/index.cjs +2 -2
- package/build/components/dimension-control/index.cjs +1 -1
- package/build/components/dimensions-tool/index.cjs +3 -3
- package/build/components/editable-text/index.cjs +1 -1
- package/build/components/editor-styles/index.cjs +3 -3
- package/build/components/font-appearance-control/index.cjs +1 -1
- package/build/components/font-family/index.cjs +2 -2
- package/build/components/font-sizes/index.cjs +2 -2
- package/build/components/global-styles/advanced-panel.cjs +1 -1
- package/build/components/global-styles/background-panel.cjs +1 -1
- package/build/components/global-styles/border-panel.cjs +1 -1
- package/build/components/global-styles/color-panel.cjs +2 -2
- package/build/components/global-styles/dimensions-panel.cjs +5 -5
- package/build/components/global-styles/filters-panel.cjs +1 -1
- package/build/components/global-styles/hooks.cjs +0 -7
- package/build/components/global-styles/hooks.cjs.map +2 -2
- package/build/components/global-styles/index.cjs +8 -8
- package/build/components/global-styles/shadow-panel-components.cjs +1 -1
- package/build/components/global-styles/typography-panel.cjs +11 -53
- package/build/components/global-styles/typography-panel.cjs.map +3 -3
- package/build/components/grid/grid-item-movers.cjs +2 -2
- package/build/components/grid/grid-item-resizer.cjs +1 -1
- package/build/components/grid/grid-visualizer.cjs +3 -3
- package/build/components/height-control/index.cjs +1 -1
- package/build/components/iframe/index.cjs +1 -1
- package/build/components/image-editor/context.cjs +2 -2
- package/build/components/image-editor/cropper.cjs +1 -1
- package/build/components/image-editor/index.cjs +7 -7
- package/build/components/image-size-control/index.cjs +1 -1
- package/build/components/index.cjs +91 -94
- package/build/components/index.cjs.map +2 -2
- package/build/components/inner-blocks/button-block-appender.cjs +2 -2
- package/build/components/inner-blocks/default-block-appender.cjs +1 -1
- package/build/components/inner-blocks/index.cjs +8 -8
- package/build/components/inner-blocks/use-inner-block-template-sync.cjs +1 -1
- package/build/components/inner-blocks/use-nested-settings-update.cjs +1 -1
- package/build/components/inserter/block-patterns-explorer/index.cjs +2 -2
- package/build/components/inserter/block-patterns-explorer/pattern-list.cjs +6 -6
- package/build/components/inserter/block-patterns-tab/index.cjs +4 -4
- package/build/components/inserter/block-patterns-tab/pattern-category-previews.cjs +3 -3
- package/build/components/inserter/block-patterns-tab/use-pattern-categories.cjs +1 -1
- package/build/components/inserter/block-types-tab.cjs +5 -5
- package/build/components/inserter/index.cjs +3 -3
- package/build/components/inserter/media-tab/index.cjs +1 -1
- package/build/components/inserter/media-tab/media-panel.cjs +2 -2
- package/build/components/inserter/media-tab/media-preview.cjs +2 -2
- package/build/components/inserter/media-tab/media-tab.cjs +5 -5
- package/build/components/inserter/menu.cjs +8 -8
- package/build/components/inserter/preview-panel.cjs +2 -2
- package/build/components/inserter/quick-inserter.cjs +4 -4
- package/build/components/inserter/search-items.cjs +1 -1
- package/build/components/inserter/search-results.cjs +9 -9
- package/build/components/inserter-draggable-blocks/index.cjs +1 -1
- package/build/components/inserter-list-item/index.cjs +3 -3
- package/build/components/inserter-listbox/index.cjs +3 -3
- package/build/components/inspector-controls/fill.cjs +28 -6
- package/build/components/inspector-controls/fill.cjs.map +2 -2
- package/build/components/inspector-controls/groups.cjs +2 -0
- package/build/components/inspector-controls/groups.cjs.map +2 -2
- package/build/components/inspector-controls/index.cjs +2 -2
- package/build/components/inspector-controls/slot.cjs +5 -5
- package/build/components/inspector-controls-tabs/advanced-controls-panel.cjs +1 -1
- package/build/components/inspector-controls-tabs/content-tab.cjs +4 -8
- package/build/components/inspector-controls-tabs/content-tab.cjs.map +3 -3
- package/build/components/inspector-controls-tabs/index.cjs +8 -11
- package/build/components/inspector-controls-tabs/index.cjs.map +3 -3
- package/build/components/inspector-controls-tabs/position-controls-panel.cjs +2 -2
- package/build/components/inspector-controls-tabs/settings-tab.cjs +3 -3
- package/build/components/inspector-controls-tabs/styles-tab.cjs +3 -4
- package/build/components/inspector-controls-tabs/styles-tab.cjs.map +2 -2
- package/build/components/inspector-controls-tabs/use-inspector-controls-tabs.cjs +9 -4
- package/build/components/inspector-controls-tabs/use-inspector-controls-tabs.cjs.map +2 -2
- package/build/components/justify-content-control/index.cjs +1 -1
- package/build/components/keyboard-shortcuts/index.cjs +1 -0
- package/build/components/keyboard-shortcuts/index.cjs.map +2 -2
- package/build/components/letter-spacing-control/index.cjs +1 -1
- package/build/components/line-height-control/index.cjs +1 -1
- package/build/components/link-control/index.cjs +8 -8
- package/build/components/link-control/link-preview.cjs +2 -2
- package/build/components/link-control/search-input.cjs +3 -3
- package/build/components/link-control/search-item.cjs +1 -1
- package/build/components/link-control/search-results.cjs +4 -4
- package/build/components/link-control/use-internal-value.cjs +1 -1
- package/build/components/link-control/use-search-handler.cjs +1 -1
- package/build/components/link-picker/link-picker.cjs +1 -1
- package/build/components/list-view/appender.cjs +3 -3
- package/build/components/list-view/block-contents.cjs +2 -2
- package/build/components/list-view/block-select-button.cjs +6 -6
- package/build/components/list-view/block.cjs +7 -7
- package/build/components/list-view/branch.cjs +2 -2
- package/build/components/list-view/drop-indicator.cjs +5 -5
- package/build/components/list-view/index.cjs +11 -11
- package/build/components/list-view/leaf.cjs +2 -2
- package/build/components/list-view/use-list-view-drop-zone.cjs +1 -1
- package/build/components/media-placeholder/index.cjs +5 -5
- package/build/components/media-replace-flow/index.cjs +14 -5
- package/build/components/media-replace-flow/index.cjs.map +3 -3
- package/build/components/multi-selection-inspector/index.cjs +1 -1
- package/build/components/navigable-toolbar/index.cjs +1 -1
- package/build/components/panel-color-settings/index.cjs +1 -1
- package/build/components/plain-text/index.cjs +3 -3
- package/build/components/preset-input-control/index.cjs +1 -1
- package/build/components/preview-options/index.cjs +1 -1
- package/build/components/provider/index.cjs +4 -4
- package/build/components/publish-date-time-picker/index.cjs +1 -1
- package/build/components/recursion-provider/index.cjs +1 -1
- package/build/components/resizable-box-popover/index.cjs +1 -1
- package/build/components/responsive-block-control/index.cjs +2 -2
- package/build/components/rich-text/content.cjs +2 -2
- package/build/components/rich-text/event-listeners/index.cjs +11 -11
- package/build/components/rich-text/format-edit.cjs +1 -1
- package/build/components/rich-text/format-toolbar/index.cjs +1 -1
- package/build/components/rich-text/format-toolbar-container.cjs +3 -3
- package/build/components/rich-text/get-rich-text-values.cjs +1 -1
- package/build/components/rich-text/index.cjs +6 -6
- package/build/components/rich-text/multiline.cjs +1 -1
- package/build/components/rich-text/with-deprecations.cjs +2 -2
- package/build/components/selection-scroll-into-view/index.cjs +1 -1
- package/build/components/spacing-sizes-control/index.cjs +5 -5
- package/build/components/spacing-sizes-control/input-controls/axial.cjs +1 -1
- package/build/components/spacing-sizes-control/input-controls/separated.cjs +1 -1
- package/build/components/spacing-sizes-control/input-controls/single.cjs +1 -1
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.cjs +1 -1
- package/build/components/text-alignment-control/index.cjs +1 -1
- package/build/components/text-decoration-control/index.cjs +1 -1
- package/build/components/text-transform-control/index.cjs +1 -1
- package/build/components/tool-selector/index.cjs +1 -1
- package/build/components/url-input/button.cjs +1 -1
- package/build/components/url-input/index.cjs +1 -1
- package/build/components/url-popover/image-url-input-ui.cjs +1 -1
- package/build/components/url-popover/index.cjs +3 -3
- package/build/components/url-popover/link-editor.cjs +2 -2
- package/build/components/url-popover/link-viewer-url.cjs +1 -1
- package/build/components/url-popover/link-viewer.cjs +2 -2
- package/build/components/use-block-commands/index.cjs +1 -1
- package/build/components/use-block-drop-zone/index.cjs +1 -1
- package/build/components/use-resize-canvas/index.cjs +2 -2
- package/build/components/use-resize-canvas/index.cjs.map +2 -2
- package/build/components/use-settings/index.cjs +1 -1
- package/build/components/warning/index.cjs +1 -1
- package/build/components/writing-flow/index.cjs +10 -10
- package/build/components/writing-mode-control/index.cjs +1 -1
- package/build/hooks/align.cjs +2 -2
- package/build/hooks/allowed-blocks.cjs +1 -1
- package/build/hooks/auto-inspector-controls.cjs +92 -0
- package/build/hooks/auto-inspector-controls.cjs.map +7 -0
- package/build/hooks/background.cjs +2 -2
- package/build/hooks/block-bindings.cjs +2 -2
- package/build/hooks/block-fields/fields-dropdown-menu.cjs +67 -0
- package/build/hooks/block-fields/fields-dropdown-menu.cjs.map +7 -0
- package/build/hooks/block-fields/index.cjs +308 -0
- package/build/hooks/block-fields/index.cjs.map +7 -0
- package/build/hooks/block-fields/link/index.cjs +193 -0
- package/build/hooks/block-fields/link/index.cjs.map +7 -0
- package/build/hooks/block-fields/media/index.cjs +254 -0
- package/build/hooks/block-fields/media/index.cjs.map +7 -0
- package/build/hooks/block-fields/rich-text/index.cjs +189 -0
- package/build/hooks/block-fields/rich-text/index.cjs.map +7 -0
- package/build/hooks/block-fields/use-inspector-popover-placement.cjs +41 -0
- package/build/hooks/block-fields/use-inspector-popover-placement.cjs.map +7 -0
- package/build/hooks/border.cjs +3 -3
- package/build/hooks/color.cjs +4 -4
- package/build/hooks/contrast-checker.cjs +1 -1
- package/build/hooks/custom-class-name.cjs +1 -1
- package/build/hooks/dimensions.cjs +3 -3
- package/build/hooks/duotone.cjs +2 -2
- package/build/hooks/fit-text.cjs +22 -26
- package/build/hooks/fit-text.cjs.map +2 -2
- package/build/hooks/font-family.cjs +1 -1
- package/build/hooks/font-size.cjs +1 -1
- package/build/hooks/generate-fields-from-attributes.cjs +68 -0
- package/build/hooks/generate-fields-from-attributes.cjs.map +7 -0
- package/build/hooks/index.cjs +27 -24
- package/build/hooks/index.cjs.map +3 -3
- package/build/hooks/layout.cjs +1 -1
- package/build/hooks/line-height.cjs +1 -1
- package/build/hooks/list-view.cjs +3 -5
- package/build/hooks/list-view.cjs.map +2 -2
- package/build/hooks/position.cjs +3 -3
- package/build/hooks/spacing-visualizer.cjs +1 -1
- package/build/hooks/text-align.cjs +1 -1
- package/build/hooks/typography.cjs +2 -4
- package/build/hooks/typography.cjs.map +2 -2
- package/build/hooks/use-border-props.cjs +1 -1
- package/build/hooks/use-color-props.cjs +1 -1
- package/build/hooks/use-typography-props.cjs +1 -1
- package/build/hooks/utils.cjs +1 -5
- package/build/hooks/utils.cjs.map +2 -2
- package/build/layouts/index.cjs +4 -4
- package/build/private-apis.cjs +16 -15
- package/build/private-apis.cjs.map +2 -2
- package/build/store/actions.cjs +1 -1
- package/build/store/index.cjs +5 -5
- package/build/store/private-actions.cjs +1 -1
- package/build/store/private-keys.cjs +3 -0
- package/build/store/private-keys.cjs.map +2 -2
- package/build/store/private-selectors.cjs +14 -1
- package/build/store/private-selectors.cjs.map +2 -2
- package/build/store/reducer.cjs +2 -2
- package/build/store/selectors.cjs +1 -1
- package/build/utils/index.cjs +2 -2
- package/build/utils/transform-styles/index.cjs +5 -5
- package/build-module/autocompleters/block.mjs +123 -0
- package/build-module/autocompleters/link.mjs +50 -0
- package/build-module/components/alignment-control/index.mjs +14 -0
- package/build-module/components/alignment-control/ui.mjs +77 -0
- package/build-module/components/autocomplete/index.mjs +50 -0
- package/build-module/components/background-image-control/index.mjs +632 -0
- package/build-module/components/block-actions/index.mjs +112 -0
- package/build-module/components/block-alignment-control/constants.mjs +42 -0
- package/build-module/components/block-alignment-control/index.mjs +14 -0
- package/build-module/components/block-alignment-control/ui.mjs +86 -0
- package/build-module/components/block-alignment-control/use-available-alignments.mjs +66 -0
- package/build-module/components/block-alignment-matrix-control/index.mjs +53 -0
- package/build-module/components/block-allowed-blocks/allowed-blocks-control.mjs +69 -0
- package/build-module/components/block-allowed-blocks/index.mjs +8 -0
- package/build-module/components/block-allowed-blocks/modal.mjs +102 -0
- package/build-module/components/block-bindings/attribute-control.mjs +150 -0
- package/build-module/components/block-bindings/index.mjs +10 -0
- package/build-module/components/block-bindings/source-fields-list.mjs +104 -0
- package/build-module/components/block-bindings/use-block-bindings-utils.mjs +45 -0
- package/build-module/components/block-breadcrumb/index.mjs +110 -0
- package/build-module/components/block-canvas/index.mjs +107 -0
- package/build-module/components/block-card/index.mjs +140 -0
- package/build-module/components/block-compare/block-view.mjs +35 -0
- package/build-module/components/block-compare/index.mjs +63 -0
- package/build-module/components/block-content-overlay/index.mjs +16 -0
- package/build-module/components/block-context/index.mjs +19 -0
- package/build-module/components/block-controls/fill.mjs +36 -0
- package/build-module/components/block-controls/groups.mjs +19 -0
- package/build-module/components/block-controls/hook.mjs +21 -0
- package/build-module/components/block-controls/index.mjs +18 -0
- package/build-module/components/block-controls/slot.mjs +45 -0
- package/build-module/components/block-draggable/draggable-chip.mjs +41 -0
- package/build-module/components/block-draggable/index.mjs +190 -0
- package/build-module/components/block-draggable/use-scroll-when-dragging.mjs +80 -0
- package/build-module/components/block-edit/context.mjs +28 -0
- package/build-module/components/block-edit/edit.mjs +240 -0
- package/build-module/components/block-edit/index.mjs +87 -0
- package/build-module/components/block-edit/multiple-usage-warning.mjs +54 -0
- package/build-module/components/block-edit-visually-button/index.mjs +30 -0
- package/build-module/components/block-editing-mode/index.mjs +35 -0
- package/build-module/components/block-full-height-alignment-control/index.mjs +27 -0
- package/build-module/components/block-heading-level-dropdown/heading-level-icon.mjs +31 -0
- package/build-module/components/block-heading-level-dropdown/index.mjs +46 -0
- package/build-module/components/block-icon/index.mjs +33 -0
- package/build-module/components/block-inspector/edit-contents.mjs +116 -0
- package/build-module/components/block-inspector/index.mjs +325 -0
- package/build-module/components/block-inspector/index.mjs.map +7 -0
- package/build-module/components/block-inspector/useBlockInspectorAnimationSettings.mjs +30 -0
- package/build-module/components/block-list/block-crash-boundary.mjs +26 -0
- package/build-module/components/block-list/block-crash-warning.mjs +10 -0
- package/build-module/components/block-list/block-html.mjs +63 -0
- package/build-module/components/block-list/block-invalid-warning.mjs +129 -0
- package/build-module/components/block-list/block.mjs +619 -0
- package/build-module/components/block-list/block.mjs.map +7 -0
- package/build-module/components/block-list/index.mjs +251 -0
- package/build-module/components/block-list/layout.mjs +38 -0
- package/build-module/components/block-list/private-block-context.mjs +8 -0
- package/build-module/components/block-list/subdirectory-icon.mjs +26 -0
- package/build-module/components/block-list/use-block-props/index.mjs +134 -0
- package/build-module/components/block-list/use-block-props/use-block-refs.mjs +46 -0
- package/build-module/components/block-list/use-block-props/use-firefox-draggable-compatibility.mjs +62 -0
- package/build-module/components/block-list/use-block-props/use-focus-first-element.mjs +53 -0
- package/build-module/components/block-list/use-block-props/use-focus-handler.mjs +37 -0
- package/build-module/components/block-list/use-block-props/use-intersection-observer.mjs +22 -0
- package/build-module/components/block-list/use-block-props/use-is-hovered.mjs +33 -0
- package/build-module/components/block-list/use-block-props/use-scroll-into-view.mjs +35 -0
- package/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.mjs +219 -0
- package/build-module/components/block-list/use-in-between-inserter.mjs +122 -0
- package/build-module/components/block-list/zoom-out-separator.mjs +117 -0
- package/build-module/components/block-list-appender/index.mjs +61 -0
- package/build-module/components/block-lock/index.mjs +12 -0
- package/build-module/components/block-lock/menu-item.mjs +36 -0
- package/build-module/components/block-lock/modal.mjs +225 -0
- package/build-module/components/block-lock/toolbar.mjs +46 -0
- package/build-module/components/block-lock/use-block-lock.mjs +30 -0
- package/build-module/components/block-manager/category.mjs +95 -0
- package/build-module/components/block-manager/checklist.mjs +29 -0
- package/build-module/components/block-manager/index.mjs +113 -0
- package/build-module/components/block-mover/button.mjs +145 -0
- package/build-module/components/block-mover/index.mjs +101 -0
- package/build-module/components/block-mover/mover-description.mjs +267 -0
- package/build-module/components/block-navigation/dropdown.mjs +70 -0
- package/build-module/components/block-parent-selector/index.mjs +61 -0
- package/build-module/components/block-pattern-setup/constants.mjs +9 -0
- package/build-module/components/block-pattern-setup/index.mjs +179 -0
- package/build-module/components/block-pattern-setup/setup-toolbar.mjs +100 -0
- package/build-module/components/block-pattern-setup/use-patterns-setup.mjs +27 -0
- package/build-module/components/block-patterns-list/index.mjs +213 -0
- package/build-module/components/block-patterns-paging/index.mjs +116 -0
- package/build-module/components/block-popover/cover.mjs +64 -0
- package/build-module/components/block-popover/drop-zone.mjs +53 -0
- package/build-module/components/block-popover/inbetween.mjs +169 -0
- package/build-module/components/block-popover/index.mjs +116 -0
- package/build-module/components/block-popover/use-popover-scroll.mjs +35 -0
- package/build-module/components/block-preview/async.mjs +26 -0
- package/build-module/components/block-preview/auto.mjs +113 -0
- package/build-module/components/block-preview/index.mjs +131 -0
- package/build-module/components/block-quick-navigation/index.mjs +71 -0
- package/build-module/components/block-removal-warning-modal/index.mjs +75 -0
- package/build-module/components/block-rename/index.mjs +10 -0
- package/build-module/components/block-rename/is-empty-string.mjs +8 -0
- package/build-module/components/block-rename/modal.mjs +125 -0
- package/build-module/components/block-rename/rename-control.mjs +33 -0
- package/build-module/components/block-rename/use-block-rename.mjs +11 -0
- package/build-module/components/block-selection-clearer/index.mjs +39 -0
- package/build-module/components/block-settings-menu/block-html-convert-button.mjs +32 -0
- package/build-module/components/block-settings-menu/block-mode-toggle.mjs +42 -0
- package/build-module/components/block-settings-menu/block-parent-selector-menu-item.mjs +43 -0
- package/build-module/components/block-settings-menu/block-settings-dropdown.mjs +310 -0
- package/build-module/components/block-settings-menu/block-settings-menu-first-item.mjs +11 -0
- package/build-module/components/block-settings-menu/index.mjs +24 -0
- package/build-module/components/block-settings-menu-controls/edit-section-menu-item.mjs +59 -0
- package/build-module/components/block-settings-menu-controls/index.mjs +131 -0
- package/build-module/components/block-styles/index.mjs +142 -0
- package/build-module/components/block-styles/index.mjs.map +7 -0
- package/build-module/components/block-styles/menu-items.mjs +41 -0
- package/build-module/components/block-styles/preview-panel.mjs +30 -0
- package/build-module/components/block-styles/use-styles-for-block.mjs +72 -0
- package/build-module/components/block-styles/utils.mjs +49 -0
- package/build-module/components/block-switcher/block-styles-menu.mjs +20 -0
- package/build-module/components/block-switcher/block-transformations-menu.mjs +144 -0
- package/build-module/components/block-switcher/block-variation-transformations.mjs +102 -0
- package/build-module/components/block-switcher/index.mjs +194 -0
- package/build-module/components/block-switcher/pattern-transformations-menu.mjs +122 -0
- package/build-module/components/block-switcher/preview-block-popover.mjs +29 -0
- package/build-module/components/block-switcher/use-transformed-patterns.mjs +66 -0
- package/build-module/components/block-switcher/utils.mjs +38 -0
- package/build-module/components/block-title/index.mjs +9 -0
- package/build-module/components/block-title/use-block-display-title.mjs +47 -0
- package/build-module/components/block-toolbar/block-toolbar-icon.mjs +144 -0
- package/build-module/components/block-toolbar/block-toolbar-last-item.mjs +11 -0
- package/build-module/components/block-toolbar/change-design.mjs +107 -0
- package/build-module/components/block-toolbar/index.mjs +237 -0
- package/build-module/components/block-toolbar/pattern-overrides-dropdown.mjs +76 -0
- package/build-module/components/block-toolbar/switch-section-style.mjs +102 -0
- package/build-module/components/block-toolbar/use-has-block-toolbar.mjs +17 -0
- package/build-module/components/block-toolbar/utils.mjs +127 -0
- package/build-module/components/block-tools/block-toolbar-popover.mjs +64 -0
- package/build-module/components/block-tools/empty-block-inserter.mjs +50 -0
- package/build-module/components/block-tools/index.mjs +269 -0
- package/build-module/components/block-tools/insertion-point.mjs +243 -0
- package/build-module/components/block-tools/use-block-toolbar-popover-props.mjs +121 -0
- package/build-module/components/block-tools/use-selected-block-tool-props.mjs +44 -0
- package/build-module/components/block-tools/use-show-block-tools.mjs +32 -0
- package/build-module/components/block-tools/zoom-out-mode-inserter-button.mjs +30 -0
- package/build-module/components/block-tools/zoom-out-mode-inserters.mjs +89 -0
- package/build-module/components/block-types-list/index.mjs +48 -0
- package/build-module/components/block-variation-picker/index.mjs +66 -0
- package/build-module/components/block-variation-transforms/index.mjs +181 -0
- package/build-module/components/block-variation-transforms/index.mjs.map +7 -0
- package/build-module/components/block-vertical-alignment-control/index.mjs +14 -0
- package/build-module/components/block-vertical-alignment-control/ui.mjs +74 -0
- package/build-module/components/block-visibility/block-visibility-info.mjs +106 -0
- package/build-module/components/block-visibility/block-visibility-info.mjs.map +7 -0
- package/build-module/components/block-visibility/index.mjs +8 -0
- package/build-module/components/block-visibility/menu-item.mjs +88 -0
- package/build-module/components/block-visibility/toolbar.mjs +71 -0
- package/build-module/components/border-radius-control/constants.mjs +47 -0
- package/build-module/components/border-radius-control/index.mjs +184 -0
- package/build-module/components/border-radius-control/linked-button.mjs +23 -0
- package/build-module/components/border-radius-control/utils.mjs +147 -0
- package/build-module/components/button-block-appender/index.mjs +78 -0
- package/build-module/components/child-layout-control/index.mjs +364 -0
- package/build-module/components/collab/block-comment-icon-slot.mjs +8 -0
- package/build-module/components/collab/block-comment-icon-toolbar-slot.mjs +10 -0
- package/build-module/components/color-palette/control.mjs +23 -0
- package/build-module/components/color-palette/index.mjs +8 -0
- package/build-module/components/color-palette/with-color-context.mjs +43 -0
- package/build-module/components/color-style-selector/index.mjs +63 -0
- package/build-module/components/colors/index.mjs +15 -0
- package/build-module/components/colors/utils.mjs +43 -0
- package/build-module/components/colors/with-colors.mjs +154 -0
- package/build-module/components/colors-gradients/control.mjs +149 -0
- package/build-module/components/colors-gradients/dropdown.mjs +185 -0
- package/build-module/components/colors-gradients/panel-color-gradient-settings.mjs +112 -0
- package/build-module/components/colors-gradients/use-multiple-origin-colors-and-gradients.mjs +117 -0
- package/build-module/components/content-lock/index.mjs +6 -0
- package/build-module/components/content-lock/modify-content-lock-menu-item.mjs +45 -0
- package/build-module/components/contrast-checker/index.mjs +107 -0
- package/build-module/components/convert-to-group-buttons/index.mjs +81 -0
- package/build-module/components/convert-to-group-buttons/toolbar.mjs +100 -0
- package/build-module/components/convert-to-group-buttons/use-convert-to-group-button-props.mjs +34 -0
- package/build-module/components/copy-handler/index.mjs +25 -0
- package/build-module/components/date-format-picker/index.mjs +140 -0
- package/build-module/components/default-block-appender/index.mjs +86 -0
- package/build-module/components/dimension-control/index.mjs +119 -0
- package/build-module/components/dimensions-tool/aspect-ratio-tool.mjs +74 -0
- package/build-module/components/dimensions-tool/index.mjs +128 -0
- package/build-module/components/dimensions-tool/scale-tool.mjs +88 -0
- package/build-module/components/dimensions-tool/width-height-tool.mjs +81 -0
- package/build-module/components/duotone/utils.mjs +59 -0
- package/build-module/components/duotone-control/index.mjs +87 -0
- package/build-module/components/editable-text/index.mjs +15 -0
- package/build-module/components/editor-styles/index.mjs +98 -0
- package/build-module/components/fit-text-size-warning/index.mjs +27 -0
- package/build-module/components/floating-toolbar/nav-up-icon.mjs +31 -0
- package/build-module/components/font-appearance-control/index.mjs +131 -0
- package/build-module/components/font-family/index.mjs +63 -0
- package/build-module/components/font-sizes/fluid-utils.mjs +145 -0
- package/build-module/components/font-sizes/font-size-picker.mjs +23 -0
- package/build-module/components/font-sizes/index.mjs +18 -0
- package/build-module/components/font-sizes/utils.mjs +38 -0
- package/build-module/components/font-sizes/with-font-sizes.mjs +133 -0
- package/build-module/components/global-styles/advanced-panel.mjs +64 -0
- package/build-module/components/global-styles/background-panel.mjs +106 -0
- package/build-module/components/global-styles/border-panel.mjs +287 -0
- package/build-module/components/global-styles/color-panel.mjs +657 -0
- package/build-module/components/global-styles/dimensions-panel.mjs +669 -0
- package/build-module/components/global-styles/filters-panel.mjs +211 -0
- package/build-module/components/global-styles/hooks.mjs +220 -0
- package/build-module/components/global-styles/hooks.mjs.map +7 -0
- package/build-module/components/global-styles/image-settings-panel.mjs +64 -0
- package/build-module/components/global-styles/index.mjs +46 -0
- package/build-module/components/global-styles/shadow-panel-components.mjs +200 -0
- package/build-module/components/global-styles/typography-panel.mjs +580 -0
- package/build-module/components/global-styles/typography-panel.mjs.map +7 -0
- package/build-module/components/global-styles/typography-utils.mjs +81 -0
- package/build-module/components/global-styles/utils.mjs +31 -0
- package/build-module/components/gradients/index.mjs +3 -0
- package/build-module/components/gradients/use-gradient.mjs +98 -0
- package/build-module/components/gradients/with-gradient.mjs +11 -0
- package/build-module/components/grid/grid-item-movers.mjs +176 -0
- package/build-module/components/grid/grid-item-resizer.mjs +163 -0
- package/build-module/components/grid/grid-visualizer.mjs +362 -0
- package/build-module/components/grid/index.mjs +12 -0
- package/build-module/components/grid/use-get-number-of-blocks-before-cell.mjs +23 -0
- package/build-module/components/grid/use-grid-layout-sync.mjs +200 -0
- package/build-module/components/grid/utils.mjs +149 -0
- package/build-module/components/height-control/index.mjs +148 -0
- package/build-module/components/html-element-control/index.mjs +76 -0
- package/build-module/components/html-element-control/messages.mjs +38 -0
- package/build-module/components/iframe/get-compatibility-styles.mjs +78 -0
- package/build-module/components/iframe/index.mjs +290 -0
- package/build-module/components/iframe/use-scale-canvas.mjs +267 -0
- package/build-module/components/image-editor/aspect-ratio-dropdown.mjs +126 -0
- package/build-module/components/image-editor/constants.mjs +12 -0
- package/build-module/components/image-editor/context.mjs +43 -0
- package/build-module/components/image-editor/cropper.mjs +51 -0
- package/build-module/components/image-editor/form-controls.mjs +16 -0
- package/build-module/components/image-editor/index.mjs +64 -0
- package/build-module/components/image-editor/rotation-button.mjs +22 -0
- package/build-module/components/image-editor/use-save-image.mjs +141 -0
- package/build-module/components/image-editor/use-transform-image.mjs +137 -0
- package/build-module/components/image-editor/zoom-dropdown.mjs +47 -0
- package/build-module/components/image-size-control/index.mjs +123 -0
- package/build-module/components/image-size-control/use-dimension-handler.mjs +52 -0
- package/build-module/components/index.mjs +305 -0
- package/build-module/components/index.mjs.map +7 -0
- package/build-module/components/inner-blocks/button-block-appender.mjs +29 -0
- package/build-module/components/inner-blocks/default-block-appender.mjs +12 -0
- package/build-module/components/inner-blocks/index.mjs +214 -0
- package/build-module/components/inner-blocks/use-block-context.mjs +34 -0
- package/build-module/components/inner-blocks/use-inner-block-template-sync.mjs +64 -0
- package/build-module/components/inner-blocks/use-nested-settings-update.mjs +102 -0
- package/build-module/components/inserter/block-patterns-explorer/index.mjs +53 -0
- package/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.mjs +70 -0
- package/build-module/components/inserter/block-patterns-explorer/pattern-list.mjs +154 -0
- package/build-module/components/inserter/block-patterns-tab/index.mjs +72 -0
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.mjs +181 -0
- package/build-module/components/inserter/block-patterns-tab/patterns-filter.mjs +160 -0
- package/build-module/components/inserter/block-patterns-tab/use-pattern-categories.mjs +82 -0
- package/build-module/components/inserter/block-patterns-tab/utils.mjs +52 -0
- package/build-module/components/inserter/block-types-tab.mjs +190 -0
- package/build-module/components/inserter/category-tabs/index.mjs +94 -0
- package/build-module/components/inserter/hooks/use-block-types-state.mjs +86 -0
- package/build-module/components/inserter/hooks/use-insertion-point.mjs +180 -0
- package/build-module/components/inserter/hooks/use-patterns-paging.mjs +49 -0
- package/build-module/components/inserter/hooks/use-patterns-state.mjs +104 -0
- package/build-module/components/inserter/index.mjs +319 -0
- package/build-module/components/inserter/library.mjs +70 -0
- package/build-module/components/inserter/media-tab/hooks.mjs +103 -0
- package/build-module/components/inserter/media-tab/index.mjs +10 -0
- package/build-module/components/inserter/media-tab/media-list.mjs +34 -0
- package/build-module/components/inserter/media-tab/media-panel.mjs +45 -0
- package/build-module/components/inserter/media-tab/media-preview.mjs +265 -0
- package/build-module/components/inserter/media-tab/media-tab.mjs +95 -0
- package/build-module/components/inserter/media-tab/utils.mjs +38 -0
- package/build-module/components/inserter/menu.mjs +344 -0
- package/build-module/components/inserter/mobile-tab-navigation.mjs +77 -0
- package/build-module/components/inserter/no-results.mjs +11 -0
- package/build-module/components/inserter/panel.mjs +17 -0
- package/build-module/components/inserter/preview-panel.mjs +71 -0
- package/build-module/components/inserter/quick-inserter.mjs +117 -0
- package/build-module/components/inserter/search-items.mjs +126 -0
- package/build-module/components/inserter/search-results.mjs +197 -0
- package/build-module/components/inserter/tips.mjs +38 -0
- package/build-module/components/inserter-button/sparkles.mjs +15 -0
- package/build-module/components/inserter-draggable-blocks/index.mjs +80 -0
- package/build-module/components/inserter-list-item/index.mjs +128 -0
- package/build-module/components/inserter-listbox/context.mjs +9 -0
- package/build-module/components/inserter-listbox/group.mjs +40 -0
- package/build-module/components/inserter-listbox/index.mjs +29 -0
- package/build-module/components/inserter-listbox/item.mjs +33 -0
- package/build-module/components/inserter-listbox/row.mjs +12 -0
- package/build-module/components/inserter-menu-extension/index.mjs +11 -0
- package/build-module/components/inspector-controls/block-support-slot-container.mjs +26 -0
- package/build-module/components/inspector-controls/block-support-tools-panel.mjs +68 -0
- package/build-module/components/inspector-controls/fill.mjs +93 -0
- package/build-module/components/inspector-controls/fill.mjs.map +7 -0
- package/build-module/components/inspector-controls/groups.mjs +49 -0
- package/build-module/components/inspector-controls/groups.mjs.map +7 -0
- package/build-module/components/inspector-controls/index.mjs +19 -0
- package/build-module/components/inspector-controls/slot.mjs +52 -0
- package/build-module/components/inspector-controls-tabs/advanced-controls-panel.mjs +40 -0
- package/build-module/components/inspector-controls-tabs/content-tab.mjs +17 -0
- package/build-module/components/inspector-controls-tabs/content-tab.mjs.map +7 -0
- package/build-module/components/inspector-controls-tabs/index.mjs +87 -0
- package/build-module/components/inspector-controls-tabs/index.mjs.map +7 -0
- package/build-module/components/inspector-controls-tabs/position-controls-panel.mjs +88 -0
- package/build-module/components/inspector-controls-tabs/settings-tab.mjs +16 -0
- package/build-module/components/inspector-controls-tabs/styles-tab.mjs +116 -0
- package/build-module/components/inspector-controls-tabs/styles-tab.mjs.map +7 -0
- package/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.mjs +79 -0
- package/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.mjs.map +7 -0
- package/build-module/components/inspector-controls-tabs/utils.mjs +34 -0
- package/build-module/components/inspector-popover-header/index.mjs +61 -0
- package/build-module/components/justify-content-control/index.mjs +14 -0
- package/build-module/components/justify-content-control/ui.mjs +91 -0
- package/build-module/components/keyboard-shortcuts/index.mjs +204 -0
- package/build-module/components/keyboard-shortcuts/index.mjs.map +7 -0
- package/build-module/components/letter-spacing-control/index.mjs +49 -0
- package/build-module/components/line-height-control/index.mjs +91 -0
- package/build-module/components/line-height-control/utils.mjs +16 -0
- package/build-module/components/link-control/constants.mjs +29 -0
- package/build-module/components/link-control/index.mjs +417 -0
- package/build-module/components/link-control/is-url-like.mjs +25 -0
- package/build-module/components/link-control/link-preview.mjs +163 -0
- package/build-module/components/link-control/search-create-button.mjs +46 -0
- package/build-module/components/link-control/search-input.mjs +130 -0
- package/build-module/components/link-control/search-item.mjs +152 -0
- package/build-module/components/link-control/search-results.mjs +101 -0
- package/build-module/components/link-control/settings-drawer.mjs +56 -0
- package/build-module/components/link-control/settings.mjs +57 -0
- package/build-module/components/link-control/use-create-page.mjs +63 -0
- package/build-module/components/link-control/use-internal-value.mjs +49 -0
- package/build-module/components/link-control/use-rich-url-data.mjs +71 -0
- package/build-module/components/link-control/use-search-handler.mjs +102 -0
- package/build-module/components/link-control/viewer-slot.mjs +12 -0
- package/build-module/components/link-picker/index.mjs +6 -0
- package/build-module/components/link-picker/link-picker.mjs +114 -0
- package/build-module/components/link-picker/link-preview.mjs +71 -0
- package/build-module/components/list-view/appender.mjs +90 -0
- package/build-module/components/list-view/aria-referenced-text.mjs +16 -0
- package/build-module/components/list-view/block-contents.mjs +66 -0
- package/build-module/components/list-view/block-select-button.mjs +155 -0
- package/build-module/components/list-view/block.mjs +546 -0
- package/build-module/components/list-view/branch.mjs +196 -0
- package/build-module/components/list-view/context.mjs +10 -0
- package/build-module/components/list-view/drop-indicator.mjs +230 -0
- package/build-module/components/list-view/expander.mjs +29 -0
- package/build-module/components/list-view/index.mjs +324 -0
- package/build-module/components/list-view/leaf.mjs +47 -0
- package/build-module/components/list-view/use-block-selection.mjs +115 -0
- package/build-module/components/list-view/use-clipboard-handler.mjs +134 -0
- package/build-module/components/list-view/use-list-view-block-indexes.mjs +24 -0
- package/build-module/components/list-view/use-list-view-client-ids.mjs +25 -0
- package/build-module/components/list-view/use-list-view-collapse-items.mjs +27 -0
- package/build-module/components/list-view/use-list-view-drop-zone.mjs +306 -0
- package/build-module/components/list-view/use-list-view-expand-selected-item.mjs +45 -0
- package/build-module/components/list-view/use-list-view-images.mjs +78 -0
- package/build-module/components/list-view/use-list-view-scroll-into-view.mjs +30 -0
- package/build-module/components/list-view/utils.mjs +111 -0
- package/build-module/components/media-placeholder/index.mjs +489 -0
- package/build-module/components/media-placeholder/utils.mjs +35 -0
- package/build-module/components/media-replace-flow/index.mjs +263 -0
- package/build-module/components/media-replace-flow/index.mjs.map +7 -0
- package/build-module/components/media-upload/check.mjs +16 -0
- package/build-module/components/media-upload/index.mjs +8 -0
- package/build-module/components/media-upload-progress/constants.mjs +16 -0
- package/build-module/components/multi-selection-inspector/index.mjs +34 -0
- package/build-module/components/navigable-toolbar/index.mjs +190 -0
- package/build-module/components/observe-typing/index.mjs +151 -0
- package/build-module/components/panel-color-settings/index.mjs +30 -0
- package/build-module/components/plain-text/index.mjs +26 -0
- package/build-module/components/preset-input-control/constants.mjs +39 -0
- package/build-module/components/preset-input-control/custom-value-controls.mjs +92 -0
- package/build-module/components/preset-input-control/index.mjs +244 -0
- package/build-module/components/preset-input-control/utils.mjs +57 -0
- package/build-module/components/preview-options/index.mjs +12 -0
- package/build-module/components/provider/block-refs-provider.mjs +15 -0
- package/build-module/components/provider/index.mjs +102 -0
- package/build-module/components/provider/use-block-sync.mjs +157 -0
- package/build-module/components/provider/use-media-upload-settings.mjs +18 -0
- package/build-module/components/provider/with-registry-provider.mjs +40 -0
- package/build-module/components/publish-date-time-picker/index.mjs +60 -0
- package/build-module/components/recursion-provider/index.mjs +52 -0
- package/build-module/components/resizable-box-popover/index.mjs +23 -0
- package/build-module/components/resolution-tool/index.mjs +62 -0
- package/build-module/components/responsive-block-control/index.mjs +104 -0
- package/build-module/components/responsive-block-control/label.mjs +29 -0
- package/build-module/components/rich-text/content.mjs +41 -0
- package/build-module/components/rich-text/event-listeners/before-input-rules.mjs +58 -0
- package/build-module/components/rich-text/event-listeners/delete.mjs +34 -0
- package/build-module/components/rich-text/event-listeners/enter.mjs +67 -0
- package/build-module/components/rich-text/event-listeners/firefox-compat.mjs +24 -0
- package/build-module/components/rich-text/event-listeners/index.mjs +53 -0
- package/build-module/components/rich-text/event-listeners/input-events.mjs +17 -0
- package/build-module/components/rich-text/event-listeners/input-rules.mjs +110 -0
- package/build-module/components/rich-text/event-listeners/insert-replacement-text.mjs +19 -0
- package/build-module/components/rich-text/event-listeners/paste-handler.mjs +94 -0
- package/build-module/components/rich-text/event-listeners/remove-browser-shortcuts.mjs +17 -0
- package/build-module/components/rich-text/event-listeners/shortcuts.mjs +17 -0
- package/build-module/components/rich-text/event-listeners/undo-automatic-change.mjs +33 -0
- package/build-module/components/rich-text/format-edit.mjs +61 -0
- package/build-module/components/rich-text/format-toolbar/index.mjs +57 -0
- package/build-module/components/rich-text/format-toolbar-container.mjs +38 -0
- package/build-module/components/rich-text/get-rich-text-values.mjs +83 -0
- package/build-module/components/rich-text/index.mjs +479 -0
- package/build-module/components/rich-text/input-event.mjs +25 -0
- package/build-module/components/rich-text/multiline.mjs +126 -0
- package/build-module/components/rich-text/native/format-edit.mjs +39 -0
- package/build-module/components/rich-text/native/index.mjs +7 -0
- package/build-module/components/rich-text/native/use-format-types.mjs +114 -0
- package/build-module/components/rich-text/prevent-event-discovery.mjs +19 -0
- package/build-module/components/rich-text/shortcut.mjs +26 -0
- package/build-module/components/rich-text/toolbar-button.mjs +24 -0
- package/build-module/components/rich-text/use-format-types.mjs +157 -0
- package/build-module/components/rich-text/use-mark-persistent.mjs +29 -0
- package/build-module/components/rich-text/utils.mjs +41 -0
- package/build-module/components/rich-text/with-deprecations.mjs +41 -0
- package/build-module/components/selection-scroll-into-view/index.mjs +13 -0
- package/build-module/components/skip-to-selected-block/index.mjs +33 -0
- package/build-module/components/spacing-sizes-control/hooks/use-spacing-sizes.mjs +46 -0
- package/build-module/components/spacing-sizes-control/index.mjs +106 -0
- package/build-module/components/spacing-sizes-control/input-controls/axial.mjs +69 -0
- package/build-module/components/spacing-sizes-control/input-controls/separated.mjs +57 -0
- package/build-module/components/spacing-sizes-control/input-controls/single.mjs +49 -0
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.mjs +105 -0
- package/build-module/components/spacing-sizes-control/linked-button.mjs +22 -0
- package/build-module/components/spacing-sizes-control/utils.mjs +166 -0
- package/build-module/components/tabbed-sidebar/index.mjs +67 -0
- package/build-module/components/text-alignment-control/index.mjs +85 -0
- package/build-module/components/text-decoration-control/index.mjs +63 -0
- package/build-module/components/text-transform-control/index.mjs +69 -0
- package/build-module/components/tool-selector/index.mjs +15 -0
- package/build-module/components/typewriter/index.mjs +166 -0
- package/build-module/components/unit-control/index.mjs +19 -0
- package/build-module/components/url-input/button.mjs +73 -0
- package/build-module/components/url-input/index.mjs +437 -0
- package/build-module/components/url-popover/image-url-input-ui.mjs +348 -0
- package/build-module/components/url-popover/index.mjs +91 -0
- package/build-module/components/url-popover/link-editor.mjs +48 -0
- package/build-module/components/url-popover/link-viewer-url.mjs +19 -0
- package/build-module/components/url-popover/link-viewer.mjs +49 -0
- package/build-module/components/use-block-commands/index.mjs +281 -0
- package/build-module/components/use-block-display-information/index.mjs +90 -0
- package/build-module/components/use-block-drop-zone/index.mjs +369 -0
- package/build-module/components/use-flash-editable-blocks/index.mjs +51 -0
- package/build-module/components/use-moving-animation/index.mjs +107 -0
- package/build-module/components/use-on-block-drop/index.mjs +269 -0
- package/build-module/components/use-on-block-drop/types.mjs +1 -0
- package/build-module/components/use-paste-styles/index.mjs +163 -0
- package/build-module/components/use-resize-canvas/index.mjs +59 -0
- package/build-module/components/use-resize-canvas/index.mjs.map +7 -0
- package/build-module/components/use-settings/index.mjs +30 -0
- package/build-module/components/warning/index.mjs +49 -0
- package/build-module/components/writing-flow/index.mjs +84 -0
- package/build-module/components/writing-flow/use-arrow-nav.mjs +200 -0
- package/build-module/components/writing-flow/use-click-selection.mjs +42 -0
- package/build-module/components/writing-flow/use-clipboard-handler.mjs +195 -0
- package/build-module/components/writing-flow/use-drag-selection.mjs +99 -0
- package/build-module/components/writing-flow/use-input.mjs +151 -0
- package/build-module/components/writing-flow/use-multi-selection.mjs +66 -0
- package/build-module/components/writing-flow/use-select-all.mjs +45 -0
- package/build-module/components/writing-flow/use-selection-observer.mjs +167 -0
- package/build-module/components/writing-flow/use-tab-nav.mjs +151 -0
- package/build-module/components/writing-flow/utils.mjs +73 -0
- package/build-module/components/writing-mode-control/index.mjs +51 -0
- package/build-module/elements/index.mjs +12 -0
- package/build-module/hooks/align.mjs +130 -0
- package/build-module/hooks/allowed-blocks.mjs +94 -0
- package/build-module/hooks/anchor.mjs +87 -0
- package/build-module/hooks/aria-label.mjs +41 -0
- package/build-module/hooks/auto-inspector-controls.mjs +61 -0
- package/build-module/hooks/auto-inspector-controls.mjs.map +7 -0
- package/build-module/hooks/background.mjs +148 -0
- package/build-module/hooks/block-bindings.mjs +101 -0
- package/build-module/hooks/block-fields/fields-dropdown-menu.mjs +46 -0
- package/build-module/hooks/block-fields/fields-dropdown-menu.mjs.map +7 -0
- package/build-module/hooks/block-fields/index.mjs +287 -0
- package/build-module/hooks/block-fields/index.mjs.map +7 -0
- package/build-module/hooks/block-fields/link/index.mjs +160 -0
- package/build-module/hooks/block-fields/link/index.mjs.map +7 -0
- package/build-module/hooks/block-fields/media/index.mjs +232 -0
- package/build-module/hooks/block-fields/media/index.mjs.map +7 -0
- package/build-module/hooks/block-fields/rich-text/index.mjs +164 -0
- package/build-module/hooks/block-fields/rich-text/index.mjs.map +7 -0
- package/build-module/hooks/block-fields/use-inspector-popover-placement.mjs +16 -0
- package/build-module/hooks/block-fields/use-inspector-popover-placement.mjs.map +7 -0
- package/build-module/hooks/block-hooks.mjs +180 -0
- package/build-module/hooks/block-renaming.mjs +32 -0
- package/build-module/hooks/block-style-variation.mjs +261 -0
- package/build-module/hooks/border.mjs +295 -0
- package/build-module/hooks/color.mjs +334 -0
- package/build-module/hooks/compat.mjs +16 -0
- package/build-module/hooks/content-lock-ui.mjs +47 -0
- package/build-module/hooks/contrast-checker.mjs +67 -0
- package/build-module/hooks/custom-class-name.mjs +99 -0
- package/build-module/hooks/dimensions.mjs +171 -0
- package/build-module/hooks/duotone.mjs +273 -0
- package/build-module/hooks/fit-text.mjs +295 -0
- package/build-module/hooks/fit-text.mjs.map +7 -0
- package/build-module/hooks/font-family.mjs +68 -0
- package/build-module/hooks/font-size.mjs +178 -0
- package/build-module/hooks/gap.mjs +26 -0
- package/build-module/hooks/generate-fields-from-attributes.mjs +43 -0
- package/build-module/hooks/generate-fields-from-attributes.mjs.map +7 -0
- package/build-module/hooks/generated-class-name.mjs +27 -0
- package/build-module/hooks/grid-visualizer.mjs +55 -0
- package/build-module/hooks/index.mjs +119 -0
- package/build-module/hooks/index.mjs.map +7 -0
- package/build-module/hooks/layout-child.mjs +231 -0
- package/build-module/hooks/layout.mjs +342 -0
- package/build-module/hooks/line-height.mjs +42 -0
- package/build-module/hooks/list-view.mjs +50 -0
- package/build-module/hooks/list-view.mjs.map +7 -0
- package/build-module/hooks/lock.mjs +19 -0
- package/build-module/hooks/metadata.mjs +69 -0
- package/build-module/hooks/position.mjs +223 -0
- package/build-module/hooks/settings.mjs +24 -0
- package/build-module/hooks/spacing-visualizer.mjs +113 -0
- package/build-module/hooks/style.mjs +271 -0
- package/build-module/hooks/supports.mjs +121 -0
- package/build-module/hooks/text-align.mjs +135 -0
- package/build-module/hooks/typography.mjs +158 -0
- package/build-module/hooks/typography.mjs.map +7 -0
- package/build-module/hooks/use-border-props.mjs +30 -0
- package/build-module/hooks/use-cached-truthy.mjs +15 -0
- package/build-module/hooks/use-color-props.mjs +97 -0
- package/build-module/hooks/use-content-only-section-edit.mjs +46 -0
- package/build-module/hooks/use-shadow-props.mjs +12 -0
- package/build-module/hooks/use-spacing-props.mjs +14 -0
- package/build-module/hooks/use-typography-props.mjs +34 -0
- package/build-module/hooks/use-zoom-out.mjs +44 -0
- package/build-module/hooks/utils.mjs +604 -0
- package/build-module/hooks/utils.mjs.map +7 -0
- package/build-module/index.mjs +39 -0
- package/build-module/layouts/constrained.mjs +291 -0
- package/build-module/layouts/definitions.mjs +176 -0
- package/build-module/layouts/flex.mjs +346 -0
- package/build-module/layouts/flow.mjs +81 -0
- package/build-module/layouts/grid.mjs +364 -0
- package/build-module/layouts/index.mjs +17 -0
- package/build-module/layouts/utils.mjs +42 -0
- package/build-module/lock-unlock.mjs +11 -0
- package/build-module/private-apis.mjs +121 -0
- package/build-module/private-apis.mjs.map +7 -0
- package/build-module/store/actions.mjs +1188 -0
- package/build-module/store/array.mjs +22 -0
- package/build-module/store/constants.mjs +6 -0
- package/build-module/store/defaults.mjs +218 -0
- package/build-module/store/get-block-settings.mjs +135 -0
- package/build-module/store/index.mjs +31 -0
- package/build-module/store/private-actions.mjs +246 -0
- package/build-module/store/private-keys.mjs +24 -0
- package/build-module/store/private-keys.mjs.map +7 -0
- package/build-module/store/private-selectors.mjs +453 -0
- package/build-module/store/private-selectors.mjs.map +7 -0
- package/build-module/store/reducer.mjs +1900 -0
- package/build-module/store/selectors.mjs +1694 -0
- package/build-module/store/utils.mjs +130 -0
- package/build-module/utils/block-bindings.mjs +22 -0
- package/build-module/utils/dom.mjs +108 -0
- package/build-module/utils/fit-text-frontend.mjs +32 -0
- package/build-module/utils/fit-text-utils.mjs +41 -0
- package/build-module/utils/format-font-style.mjs +30 -0
- package/build-module/utils/format-font-weight.mjs +53 -0
- package/build-module/utils/get-editor-region.mjs +17 -0
- package/build-module/utils/get-font-styles-and-weights.mjs +150 -0
- package/build-module/utils/get-px-from-css-unit.mjs +6 -0
- package/build-module/utils/index.mjs +8 -0
- package/build-module/utils/math.mjs +46 -0
- package/build-module/utils/object.mjs +34 -0
- package/build-module/utils/order-inserter-block-items.mjs +22 -0
- package/build-module/utils/pasting.mjs +59 -0
- package/build-module/utils/selection.mjs +27 -0
- package/build-module/utils/sorting.mjs +33 -0
- package/build-module/utils/transform-styles/index.mjs +109 -0
- package/build-module/utils/use-notify-copy.mjs +64 -0
- package/build-style/content-rtl.css +2 -0
- package/build-style/content.css +2 -0
- package/build-style/style-rtl.css +148 -146
- package/build-style/style.css +148 -146
- package/package.json +48 -45
- package/src/components/block-allowed-blocks/style.scss +3 -3
- package/src/components/block-inspector/index.js +6 -14
- package/src/components/block-list/block.js +16 -10
- package/src/components/block-list/content.scss +2 -0
- package/src/components/block-patterns-list/stories/index.story.jsx +2 -2
- package/src/components/block-styles/index.js +92 -52
- package/src/components/block-styles/style.scss +4 -0
- package/src/components/block-variation-transforms/index.js +2 -2
- package/src/components/block-variation-transforms/style.scss +1 -1
- package/src/components/block-visibility/block-visibility-info.js +63 -0
- package/src/components/block-visibility/styles.scss +10 -0
- package/src/components/global-styles/hooks.js +0 -9
- package/src/components/global-styles/typography-panel.js +1 -48
- package/src/components/index.js +0 -1
- package/src/components/inspector-controls/fill.js +20 -2
- package/src/components/inspector-controls/groups.js +2 -0
- package/src/components/inspector-controls-tabs/content-tab.js +3 -7
- package/src/components/inspector-controls-tabs/index.js +2 -4
- package/src/components/inspector-controls-tabs/styles-tab.js +1 -8
- package/src/components/inspector-controls-tabs/use-inspector-controls-tabs.js +17 -5
- package/src/components/keyboard-shortcuts/index.js +1 -0
- package/src/components/link-control/test/is-url-like.js +4 -4
- package/src/components/media-replace-flow/index.js +16 -2
- package/src/components/media-replace-flow/style.scss +8 -1
- package/src/components/use-resize-canvas/index.js +7 -2
- package/src/hooks/auto-inspector-controls.js +95 -0
- package/src/hooks/block-fields/fields-dropdown-menu.js +54 -0
- package/src/hooks/block-fields/index.js +392 -0
- package/src/hooks/block-fields/link/index.js +200 -0
- package/src/hooks/block-fields/media/index.js +303 -0
- package/src/hooks/block-fields/media/styles.scss +54 -0
- package/src/hooks/block-fields/rich-text/index.js +183 -0
- package/src/hooks/block-fields/styles.scss +33 -0
- package/src/hooks/fit-text.js +38 -37
- package/src/hooks/generate-fields-from-attributes.js +65 -0
- package/src/hooks/index.js +3 -0
- package/src/hooks/list-view.js +1 -4
- package/src/hooks/test/auto-inspector-controls.js +115 -0
- package/src/hooks/test/generate-fields-from-attributes.js +216 -0
- package/src/hooks/typography.js +0 -2
- package/src/hooks/utils.js +5 -8
- package/src/private-apis.js +2 -0
- package/src/store/private-keys.js +1 -0
- package/src/store/private-selectors.js +25 -1
- package/src/store/test/private-selectors.js +95 -0
- package/src/style.scss +1 -1
- package/build/components/content-only-controls/fields-dropdown-menu.cjs +0 -66
- package/build/components/content-only-controls/fields-dropdown-menu.cjs.map +0 -7
- package/build/components/content-only-controls/index.cjs +0 -421
- package/build/components/content-only-controls/index.cjs.map +0 -7
- package/build/components/content-only-controls/link/index.cjs +0 -193
- package/build/components/content-only-controls/link/index.cjs.map +0 -7
- package/build/components/content-only-controls/media/index.cjs +0 -264
- package/build/components/content-only-controls/media/index.cjs.map +0 -7
- package/build/components/content-only-controls/rich-text/index.cjs +0 -189
- package/build/components/content-only-controls/rich-text/index.cjs.map +0 -7
- package/build/components/content-only-controls/use-inspector-popover-placement.cjs +0 -41
- package/build/components/content-only-controls/use-inspector-popover-placement.cjs.map +0 -7
- package/build/components/text-indent-control/index.cjs +0 -121
- package/build/components/text-indent-control/index.cjs.map +0 -7
- package/build-module/autocompleters/block.js +0 -123
- package/build-module/autocompleters/link.js +0 -50
- package/build-module/components/alignment-control/index.js +0 -14
- package/build-module/components/alignment-control/ui.js +0 -77
- package/build-module/components/autocomplete/index.js +0 -50
- package/build-module/components/background-image-control/index.js +0 -632
- package/build-module/components/block-actions/index.js +0 -112
- package/build-module/components/block-alignment-control/constants.js +0 -42
- package/build-module/components/block-alignment-control/index.js +0 -14
- package/build-module/components/block-alignment-control/ui.js +0 -86
- package/build-module/components/block-alignment-control/use-available-alignments.js +0 -66
- package/build-module/components/block-alignment-matrix-control/index.js +0 -53
- package/build-module/components/block-allowed-blocks/allowed-blocks-control.js +0 -69
- package/build-module/components/block-allowed-blocks/index.js +0 -8
- package/build-module/components/block-allowed-blocks/modal.js +0 -102
- package/build-module/components/block-bindings/attribute-control.js +0 -150
- package/build-module/components/block-bindings/index.js +0 -10
- package/build-module/components/block-bindings/source-fields-list.js +0 -104
- package/build-module/components/block-bindings/use-block-bindings-utils.js +0 -45
- package/build-module/components/block-breadcrumb/index.js +0 -110
- package/build-module/components/block-canvas/index.js +0 -107
- package/build-module/components/block-card/index.js +0 -140
- package/build-module/components/block-compare/block-view.js +0 -35
- package/build-module/components/block-compare/index.js +0 -63
- package/build-module/components/block-content-overlay/index.js +0 -16
- package/build-module/components/block-context/index.js +0 -19
- package/build-module/components/block-controls/fill.js +0 -36
- package/build-module/components/block-controls/groups.js +0 -19
- package/build-module/components/block-controls/hook.js +0 -21
- package/build-module/components/block-controls/index.js +0 -18
- package/build-module/components/block-controls/slot.js +0 -45
- package/build-module/components/block-draggable/draggable-chip.js +0 -41
- package/build-module/components/block-draggable/index.js +0 -190
- package/build-module/components/block-draggable/use-scroll-when-dragging.js +0 -80
- package/build-module/components/block-edit/context.js +0 -28
- package/build-module/components/block-edit/edit.js +0 -240
- package/build-module/components/block-edit/index.js +0 -87
- package/build-module/components/block-edit/multiple-usage-warning.js +0 -54
- package/build-module/components/block-edit-visually-button/index.js +0 -30
- package/build-module/components/block-editing-mode/index.js +0 -35
- package/build-module/components/block-full-height-alignment-control/index.js +0 -27
- package/build-module/components/block-heading-level-dropdown/heading-level-icon.js +0 -31
- package/build-module/components/block-heading-level-dropdown/index.js +0 -46
- package/build-module/components/block-icon/index.js +0 -33
- package/build-module/components/block-inspector/edit-contents.js +0 -116
- package/build-module/components/block-inspector/index.js +0 -331
- package/build-module/components/block-inspector/index.js.map +0 -7
- package/build-module/components/block-inspector/useBlockInspectorAnimationSettings.js +0 -30
- package/build-module/components/block-list/block-crash-boundary.js +0 -26
- package/build-module/components/block-list/block-crash-warning.js +0 -10
- package/build-module/components/block-list/block-html.js +0 -63
- package/build-module/components/block-list/block-invalid-warning.js +0 -129
- package/build-module/components/block-list/block.js +0 -613
- package/build-module/components/block-list/block.js.map +0 -7
- package/build-module/components/block-list/index.js +0 -251
- package/build-module/components/block-list/layout.js +0 -38
- package/build-module/components/block-list/private-block-context.js +0 -8
- package/build-module/components/block-list/subdirectory-icon.js +0 -26
- package/build-module/components/block-list/use-block-props/index.js +0 -134
- package/build-module/components/block-list/use-block-props/use-block-refs.js +0 -46
- package/build-module/components/block-list/use-block-props/use-firefox-draggable-compatibility.js +0 -62
- package/build-module/components/block-list/use-block-props/use-focus-first-element.js +0 -53
- package/build-module/components/block-list/use-block-props/use-focus-handler.js +0 -37
- package/build-module/components/block-list/use-block-props/use-intersection-observer.js +0 -22
- package/build-module/components/block-list/use-block-props/use-is-hovered.js +0 -33
- package/build-module/components/block-list/use-block-props/use-scroll-into-view.js +0 -35
- package/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js +0 -219
- package/build-module/components/block-list/use-in-between-inserter.js +0 -122
- package/build-module/components/block-list/zoom-out-separator.js +0 -117
- package/build-module/components/block-list-appender/index.js +0 -61
- package/build-module/components/block-lock/index.js +0 -12
- package/build-module/components/block-lock/menu-item.js +0 -36
- package/build-module/components/block-lock/modal.js +0 -225
- package/build-module/components/block-lock/toolbar.js +0 -46
- package/build-module/components/block-lock/use-block-lock.js +0 -30
- package/build-module/components/block-manager/category.js +0 -95
- package/build-module/components/block-manager/checklist.js +0 -29
- package/build-module/components/block-manager/index.js +0 -113
- package/build-module/components/block-mover/button.js +0 -145
- package/build-module/components/block-mover/index.js +0 -101
- package/build-module/components/block-mover/mover-description.js +0 -267
- package/build-module/components/block-navigation/dropdown.js +0 -70
- package/build-module/components/block-parent-selector/index.js +0 -61
- package/build-module/components/block-pattern-setup/constants.js +0 -9
- package/build-module/components/block-pattern-setup/index.js +0 -179
- package/build-module/components/block-pattern-setup/setup-toolbar.js +0 -100
- package/build-module/components/block-pattern-setup/use-patterns-setup.js +0 -27
- package/build-module/components/block-patterns-list/index.js +0 -213
- package/build-module/components/block-patterns-paging/index.js +0 -116
- package/build-module/components/block-popover/cover.js +0 -64
- package/build-module/components/block-popover/drop-zone.js +0 -53
- package/build-module/components/block-popover/inbetween.js +0 -169
- package/build-module/components/block-popover/index.js +0 -116
- package/build-module/components/block-popover/use-popover-scroll.js +0 -35
- package/build-module/components/block-preview/async.js +0 -26
- package/build-module/components/block-preview/auto.js +0 -113
- package/build-module/components/block-preview/index.js +0 -131
- package/build-module/components/block-quick-navigation/index.js +0 -71
- package/build-module/components/block-removal-warning-modal/index.js +0 -75
- package/build-module/components/block-rename/index.js +0 -10
- package/build-module/components/block-rename/is-empty-string.js +0 -8
- package/build-module/components/block-rename/modal.js +0 -125
- package/build-module/components/block-rename/rename-control.js +0 -33
- package/build-module/components/block-rename/use-block-rename.js +0 -11
- package/build-module/components/block-selection-clearer/index.js +0 -39
- package/build-module/components/block-settings-menu/block-html-convert-button.js +0 -32
- package/build-module/components/block-settings-menu/block-mode-toggle.js +0 -42
- package/build-module/components/block-settings-menu/block-parent-selector-menu-item.js +0 -43
- package/build-module/components/block-settings-menu/block-settings-dropdown.js +0 -310
- package/build-module/components/block-settings-menu/block-settings-menu-first-item.js +0 -11
- package/build-module/components/block-settings-menu/index.js +0 -24
- package/build-module/components/block-settings-menu-controls/edit-section-menu-item.js +0 -59
- package/build-module/components/block-settings-menu-controls/index.js +0 -131
- package/build-module/components/block-styles/index.js +0 -109
- package/build-module/components/block-styles/index.js.map +0 -7
- package/build-module/components/block-styles/menu-items.js +0 -41
- package/build-module/components/block-styles/preview-panel.js +0 -30
- package/build-module/components/block-styles/use-styles-for-block.js +0 -72
- package/build-module/components/block-styles/utils.js +0 -49
- package/build-module/components/block-switcher/block-styles-menu.js +0 -20
- package/build-module/components/block-switcher/block-transformations-menu.js +0 -144
- package/build-module/components/block-switcher/block-variation-transformations.js +0 -102
- package/build-module/components/block-switcher/index.js +0 -194
- package/build-module/components/block-switcher/pattern-transformations-menu.js +0 -122
- package/build-module/components/block-switcher/preview-block-popover.js +0 -29
- package/build-module/components/block-switcher/use-transformed-patterns.js +0 -66
- package/build-module/components/block-switcher/utils.js +0 -38
- package/build-module/components/block-title/index.js +0 -9
- package/build-module/components/block-title/use-block-display-title.js +0 -47
- package/build-module/components/block-toolbar/block-toolbar-icon.js +0 -144
- package/build-module/components/block-toolbar/block-toolbar-last-item.js +0 -11
- package/build-module/components/block-toolbar/change-design.js +0 -107
- package/build-module/components/block-toolbar/index.js +0 -237
- package/build-module/components/block-toolbar/pattern-overrides-dropdown.js +0 -76
- package/build-module/components/block-toolbar/switch-section-style.js +0 -102
- package/build-module/components/block-toolbar/use-has-block-toolbar.js +0 -17
- package/build-module/components/block-toolbar/utils.js +0 -127
- package/build-module/components/block-tools/block-toolbar-popover.js +0 -64
- package/build-module/components/block-tools/empty-block-inserter.js +0 -50
- package/build-module/components/block-tools/index.js +0 -269
- package/build-module/components/block-tools/insertion-point.js +0 -243
- package/build-module/components/block-tools/use-block-toolbar-popover-props.js +0 -121
- package/build-module/components/block-tools/use-selected-block-tool-props.js +0 -44
- package/build-module/components/block-tools/use-show-block-tools.js +0 -32
- package/build-module/components/block-tools/zoom-out-mode-inserter-button.js +0 -30
- package/build-module/components/block-tools/zoom-out-mode-inserters.js +0 -89
- package/build-module/components/block-types-list/index.js +0 -48
- package/build-module/components/block-variation-picker/index.js +0 -66
- package/build-module/components/block-variation-transforms/index.js +0 -181
- package/build-module/components/block-variation-transforms/index.js.map +0 -7
- package/build-module/components/block-vertical-alignment-control/index.js +0 -14
- package/build-module/components/block-vertical-alignment-control/ui.js +0 -74
- package/build-module/components/block-visibility/index.js +0 -8
- package/build-module/components/block-visibility/menu-item.js +0 -88
- package/build-module/components/block-visibility/toolbar.js +0 -71
- package/build-module/components/border-radius-control/constants.js +0 -47
- package/build-module/components/border-radius-control/index.js +0 -184
- package/build-module/components/border-radius-control/linked-button.js +0 -23
- package/build-module/components/border-radius-control/utils.js +0 -147
- package/build-module/components/button-block-appender/index.js +0 -78
- package/build-module/components/child-layout-control/index.js +0 -364
- package/build-module/components/collab/block-comment-icon-slot.js +0 -8
- package/build-module/components/collab/block-comment-icon-toolbar-slot.js +0 -10
- package/build-module/components/color-palette/control.js +0 -23
- package/build-module/components/color-palette/index.js +0 -8
- package/build-module/components/color-palette/with-color-context.js +0 -43
- package/build-module/components/color-style-selector/index.js +0 -63
- package/build-module/components/colors/index.js +0 -15
- package/build-module/components/colors/utils.js +0 -43
- package/build-module/components/colors/with-colors.js +0 -154
- package/build-module/components/colors-gradients/control.js +0 -149
- package/build-module/components/colors-gradients/dropdown.js +0 -185
- package/build-module/components/colors-gradients/panel-color-gradient-settings.js +0 -112
- package/build-module/components/colors-gradients/use-multiple-origin-colors-and-gradients.js +0 -117
- package/build-module/components/content-lock/index.js +0 -6
- package/build-module/components/content-lock/modify-content-lock-menu-item.js +0 -45
- package/build-module/components/content-only-controls/fields-dropdown-menu.js +0 -45
- package/build-module/components/content-only-controls/fields-dropdown-menu.js.map +0 -7
- package/build-module/components/content-only-controls/index.js +0 -397
- package/build-module/components/content-only-controls/index.js.map +0 -7
- package/build-module/components/content-only-controls/link/index.js +0 -160
- package/build-module/components/content-only-controls/link/index.js.map +0 -7
- package/build-module/components/content-only-controls/media/index.js +0 -242
- package/build-module/components/content-only-controls/media/index.js.map +0 -7
- package/build-module/components/content-only-controls/rich-text/index.js +0 -161
- package/build-module/components/content-only-controls/rich-text/index.js.map +0 -7
- package/build-module/components/content-only-controls/use-inspector-popover-placement.js +0 -16
- package/build-module/components/content-only-controls/use-inspector-popover-placement.js.map +0 -7
- package/build-module/components/contrast-checker/index.js +0 -107
- package/build-module/components/convert-to-group-buttons/index.js +0 -81
- package/build-module/components/convert-to-group-buttons/toolbar.js +0 -100
- package/build-module/components/convert-to-group-buttons/use-convert-to-group-button-props.js +0 -34
- package/build-module/components/copy-handler/index.js +0 -25
- package/build-module/components/date-format-picker/index.js +0 -140
- package/build-module/components/default-block-appender/index.js +0 -86
- package/build-module/components/dimension-control/index.js +0 -119
- package/build-module/components/dimensions-tool/aspect-ratio-tool.js +0 -74
- package/build-module/components/dimensions-tool/index.js +0 -128
- package/build-module/components/dimensions-tool/scale-tool.js +0 -88
- package/build-module/components/dimensions-tool/width-height-tool.js +0 -81
- package/build-module/components/duotone/utils.js +0 -59
- package/build-module/components/duotone-control/index.js +0 -87
- package/build-module/components/editable-text/index.js +0 -15
- package/build-module/components/editor-styles/index.js +0 -98
- package/build-module/components/fit-text-size-warning/index.js +0 -27
- package/build-module/components/floating-toolbar/nav-up-icon.js +0 -31
- package/build-module/components/font-appearance-control/index.js +0 -131
- package/build-module/components/font-family/index.js +0 -63
- package/build-module/components/font-sizes/fluid-utils.js +0 -145
- package/build-module/components/font-sizes/font-size-picker.js +0 -23
- package/build-module/components/font-sizes/index.js +0 -18
- package/build-module/components/font-sizes/utils.js +0 -38
- package/build-module/components/font-sizes/with-font-sizes.js +0 -133
- package/build-module/components/global-styles/advanced-panel.js +0 -64
- package/build-module/components/global-styles/background-panel.js +0 -106
- package/build-module/components/global-styles/border-panel.js +0 -287
- package/build-module/components/global-styles/color-panel.js +0 -657
- package/build-module/components/global-styles/dimensions-panel.js +0 -669
- package/build-module/components/global-styles/filters-panel.js +0 -211
- package/build-module/components/global-styles/hooks.js +0 -227
- package/build-module/components/global-styles/hooks.js.map +0 -7
- package/build-module/components/global-styles/image-settings-panel.js +0 -64
- package/build-module/components/global-styles/index.js +0 -46
- package/build-module/components/global-styles/shadow-panel-components.js +0 -200
- package/build-module/components/global-styles/typography-panel.js +0 -622
- package/build-module/components/global-styles/typography-panel.js.map +0 -7
- package/build-module/components/global-styles/typography-utils.js +0 -81
- package/build-module/components/global-styles/utils.js +0 -31
- package/build-module/components/gradients/index.js +0 -3
- package/build-module/components/gradients/use-gradient.js +0 -98
- package/build-module/components/gradients/with-gradient.js +0 -11
- package/build-module/components/grid/grid-item-movers.js +0 -176
- package/build-module/components/grid/grid-item-resizer.js +0 -163
- package/build-module/components/grid/grid-visualizer.js +0 -362
- package/build-module/components/grid/index.js +0 -12
- package/build-module/components/grid/use-get-number-of-blocks-before-cell.js +0 -23
- package/build-module/components/grid/use-grid-layout-sync.js +0 -200
- package/build-module/components/grid/utils.js +0 -149
- package/build-module/components/height-control/index.js +0 -148
- package/build-module/components/html-element-control/index.js +0 -76
- package/build-module/components/html-element-control/messages.js +0 -38
- package/build-module/components/iframe/get-compatibility-styles.js +0 -78
- package/build-module/components/iframe/index.js +0 -290
- package/build-module/components/iframe/use-scale-canvas.js +0 -267
- package/build-module/components/image-editor/aspect-ratio-dropdown.js +0 -126
- package/build-module/components/image-editor/constants.js +0 -12
- package/build-module/components/image-editor/context.js +0 -43
- package/build-module/components/image-editor/cropper.js +0 -51
- package/build-module/components/image-editor/form-controls.js +0 -16
- package/build-module/components/image-editor/index.js +0 -64
- package/build-module/components/image-editor/rotation-button.js +0 -22
- package/build-module/components/image-editor/use-save-image.js +0 -141
- package/build-module/components/image-editor/use-transform-image.js +0 -137
- package/build-module/components/image-editor/zoom-dropdown.js +0 -47
- package/build-module/components/image-size-control/index.js +0 -123
- package/build-module/components/image-size-control/use-dimension-handler.js +0 -52
- package/build-module/components/index.js +0 -307
- package/build-module/components/index.js.map +0 -7
- package/build-module/components/inner-blocks/button-block-appender.js +0 -29
- package/build-module/components/inner-blocks/default-block-appender.js +0 -12
- package/build-module/components/inner-blocks/index.js +0 -214
- package/build-module/components/inner-blocks/use-block-context.js +0 -34
- package/build-module/components/inner-blocks/use-inner-block-template-sync.js +0 -64
- package/build-module/components/inner-blocks/use-nested-settings-update.js +0 -102
- package/build-module/components/inserter/block-patterns-explorer/index.js +0 -53
- package/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js +0 -70
- package/build-module/components/inserter/block-patterns-explorer/pattern-list.js +0 -154
- package/build-module/components/inserter/block-patterns-tab/index.js +0 -72
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.js +0 -181
- package/build-module/components/inserter/block-patterns-tab/patterns-filter.js +0 -160
- package/build-module/components/inserter/block-patterns-tab/use-pattern-categories.js +0 -82
- package/build-module/components/inserter/block-patterns-tab/utils.js +0 -52
- package/build-module/components/inserter/block-types-tab.js +0 -190
- package/build-module/components/inserter/category-tabs/index.js +0 -94
- package/build-module/components/inserter/hooks/use-block-types-state.js +0 -86
- package/build-module/components/inserter/hooks/use-insertion-point.js +0 -180
- package/build-module/components/inserter/hooks/use-patterns-paging.js +0 -49
- package/build-module/components/inserter/hooks/use-patterns-state.js +0 -104
- package/build-module/components/inserter/index.js +0 -319
- package/build-module/components/inserter/library.js +0 -70
- package/build-module/components/inserter/media-tab/hooks.js +0 -103
- package/build-module/components/inserter/media-tab/index.js +0 -10
- package/build-module/components/inserter/media-tab/media-list.js +0 -34
- package/build-module/components/inserter/media-tab/media-panel.js +0 -45
- package/build-module/components/inserter/media-tab/media-preview.js +0 -265
- package/build-module/components/inserter/media-tab/media-tab.js +0 -95
- package/build-module/components/inserter/media-tab/utils.js +0 -38
- package/build-module/components/inserter/menu.js +0 -344
- package/build-module/components/inserter/mobile-tab-navigation.js +0 -77
- package/build-module/components/inserter/no-results.js +0 -11
- package/build-module/components/inserter/panel.js +0 -17
- package/build-module/components/inserter/preview-panel.js +0 -71
- package/build-module/components/inserter/quick-inserter.js +0 -117
- package/build-module/components/inserter/search-items.js +0 -126
- package/build-module/components/inserter/search-results.js +0 -197
- package/build-module/components/inserter/tips.js +0 -38
- package/build-module/components/inserter-button/sparkles.js +0 -15
- package/build-module/components/inserter-draggable-blocks/index.js +0 -80
- package/build-module/components/inserter-list-item/index.js +0 -128
- package/build-module/components/inserter-listbox/context.js +0 -9
- package/build-module/components/inserter-listbox/group.js +0 -40
- package/build-module/components/inserter-listbox/index.js +0 -29
- package/build-module/components/inserter-listbox/item.js +0 -33
- package/build-module/components/inserter-listbox/row.js +0 -12
- package/build-module/components/inserter-menu-extension/index.js +0 -11
- package/build-module/components/inspector-controls/block-support-slot-container.js +0 -26
- package/build-module/components/inspector-controls/block-support-tools-panel.js +0 -68
- package/build-module/components/inspector-controls/fill.js +0 -75
- package/build-module/components/inspector-controls/fill.js.map +0 -7
- package/build-module/components/inspector-controls/groups.js +0 -47
- package/build-module/components/inspector-controls/groups.js.map +0 -7
- package/build-module/components/inspector-controls/index.js +0 -19
- package/build-module/components/inspector-controls/slot.js +0 -52
- package/build-module/components/inspector-controls-tabs/advanced-controls-panel.js +0 -40
- package/build-module/components/inspector-controls-tabs/content-tab.js +0 -21
- package/build-module/components/inspector-controls-tabs/content-tab.js.map +0 -7
- package/build-module/components/inspector-controls-tabs/index.js +0 -90
- package/build-module/components/inspector-controls-tabs/index.js.map +0 -7
- package/build-module/components/inspector-controls-tabs/position-controls-panel.js +0 -88
- package/build-module/components/inspector-controls-tabs/settings-tab.js +0 -16
- package/build-module/components/inspector-controls-tabs/styles-tab.js +0 -117
- package/build-module/components/inspector-controls-tabs/styles-tab.js.map +0 -7
- package/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.js +0 -74
- package/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.js.map +0 -7
- package/build-module/components/inspector-controls-tabs/utils.js +0 -34
- package/build-module/components/inspector-popover-header/index.js +0 -61
- package/build-module/components/justify-content-control/index.js +0 -14
- package/build-module/components/justify-content-control/ui.js +0 -91
- package/build-module/components/keyboard-shortcuts/index.js +0 -203
- package/build-module/components/keyboard-shortcuts/index.js.map +0 -7
- package/build-module/components/letter-spacing-control/index.js +0 -49
- package/build-module/components/line-height-control/index.js +0 -91
- package/build-module/components/line-height-control/utils.js +0 -16
- package/build-module/components/link-control/constants.js +0 -29
- package/build-module/components/link-control/index.js +0 -417
- package/build-module/components/link-control/is-url-like.js +0 -25
- package/build-module/components/link-control/link-preview.js +0 -163
- package/build-module/components/link-control/search-create-button.js +0 -46
- package/build-module/components/link-control/search-input.js +0 -130
- package/build-module/components/link-control/search-item.js +0 -152
- package/build-module/components/link-control/search-results.js +0 -101
- package/build-module/components/link-control/settings-drawer.js +0 -56
- package/build-module/components/link-control/settings.js +0 -57
- package/build-module/components/link-control/use-create-page.js +0 -63
- package/build-module/components/link-control/use-internal-value.js +0 -49
- package/build-module/components/link-control/use-rich-url-data.js +0 -71
- package/build-module/components/link-control/use-search-handler.js +0 -102
- package/build-module/components/link-control/viewer-slot.js +0 -12
- package/build-module/components/link-picker/index.js +0 -6
- package/build-module/components/link-picker/link-picker.js +0 -114
- package/build-module/components/link-picker/link-preview.js +0 -71
- package/build-module/components/list-view/appender.js +0 -90
- package/build-module/components/list-view/aria-referenced-text.js +0 -16
- package/build-module/components/list-view/block-contents.js +0 -66
- package/build-module/components/list-view/block-select-button.js +0 -155
- package/build-module/components/list-view/block.js +0 -546
- package/build-module/components/list-view/branch.js +0 -196
- package/build-module/components/list-view/context.js +0 -10
- package/build-module/components/list-view/drop-indicator.js +0 -230
- package/build-module/components/list-view/expander.js +0 -29
- package/build-module/components/list-view/index.js +0 -324
- package/build-module/components/list-view/leaf.js +0 -47
- package/build-module/components/list-view/use-block-selection.js +0 -115
- package/build-module/components/list-view/use-clipboard-handler.js +0 -134
- package/build-module/components/list-view/use-list-view-block-indexes.js +0 -24
- package/build-module/components/list-view/use-list-view-client-ids.js +0 -25
- package/build-module/components/list-view/use-list-view-collapse-items.js +0 -27
- package/build-module/components/list-view/use-list-view-drop-zone.js +0 -306
- package/build-module/components/list-view/use-list-view-expand-selected-item.js +0 -45
- package/build-module/components/list-view/use-list-view-images.js +0 -78
- package/build-module/components/list-view/use-list-view-scroll-into-view.js +0 -30
- package/build-module/components/list-view/utils.js +0 -111
- package/build-module/components/media-placeholder/index.js +0 -489
- package/build-module/components/media-placeholder/utils.js +0 -35
- package/build-module/components/media-replace-flow/index.js +0 -254
- package/build-module/components/media-replace-flow/index.js.map +0 -7
- package/build-module/components/media-upload/check.js +0 -16
- package/build-module/components/media-upload/index.js +0 -8
- package/build-module/components/media-upload-progress/constants.js +0 -16
- package/build-module/components/multi-selection-inspector/index.js +0 -34
- package/build-module/components/navigable-toolbar/index.js +0 -190
- package/build-module/components/observe-typing/index.js +0 -151
- package/build-module/components/panel-color-settings/index.js +0 -30
- package/build-module/components/plain-text/index.js +0 -26
- package/build-module/components/preset-input-control/constants.js +0 -39
- package/build-module/components/preset-input-control/custom-value-controls.js +0 -92
- package/build-module/components/preset-input-control/index.js +0 -244
- package/build-module/components/preset-input-control/utils.js +0 -57
- package/build-module/components/preview-options/index.js +0 -12
- package/build-module/components/provider/block-refs-provider.js +0 -15
- package/build-module/components/provider/index.js +0 -102
- package/build-module/components/provider/use-block-sync.js +0 -157
- package/build-module/components/provider/use-media-upload-settings.js +0 -18
- package/build-module/components/provider/with-registry-provider.js +0 -40
- package/build-module/components/publish-date-time-picker/index.js +0 -60
- package/build-module/components/recursion-provider/index.js +0 -52
- package/build-module/components/resizable-box-popover/index.js +0 -23
- package/build-module/components/resolution-tool/index.js +0 -62
- package/build-module/components/responsive-block-control/index.js +0 -104
- package/build-module/components/responsive-block-control/label.js +0 -29
- package/build-module/components/rich-text/content.js +0 -41
- package/build-module/components/rich-text/event-listeners/before-input-rules.js +0 -58
- package/build-module/components/rich-text/event-listeners/delete.js +0 -34
- package/build-module/components/rich-text/event-listeners/enter.js +0 -67
- package/build-module/components/rich-text/event-listeners/firefox-compat.js +0 -24
- package/build-module/components/rich-text/event-listeners/index.js +0 -53
- package/build-module/components/rich-text/event-listeners/input-events.js +0 -17
- package/build-module/components/rich-text/event-listeners/input-rules.js +0 -110
- package/build-module/components/rich-text/event-listeners/insert-replacement-text.js +0 -19
- package/build-module/components/rich-text/event-listeners/paste-handler.js +0 -94
- package/build-module/components/rich-text/event-listeners/remove-browser-shortcuts.js +0 -17
- package/build-module/components/rich-text/event-listeners/shortcuts.js +0 -17
- package/build-module/components/rich-text/event-listeners/undo-automatic-change.js +0 -33
- package/build-module/components/rich-text/format-edit.js +0 -61
- package/build-module/components/rich-text/format-toolbar/index.js +0 -57
- package/build-module/components/rich-text/format-toolbar-container.js +0 -38
- package/build-module/components/rich-text/get-rich-text-values.js +0 -83
- package/build-module/components/rich-text/index.js +0 -479
- package/build-module/components/rich-text/input-event.js +0 -25
- package/build-module/components/rich-text/multiline.js +0 -126
- package/build-module/components/rich-text/native/format-edit.js +0 -39
- package/build-module/components/rich-text/native/index.js +0 -7
- package/build-module/components/rich-text/native/use-format-types.js +0 -114
- package/build-module/components/rich-text/prevent-event-discovery.js +0 -19
- package/build-module/components/rich-text/shortcut.js +0 -26
- package/build-module/components/rich-text/toolbar-button.js +0 -24
- package/build-module/components/rich-text/use-format-types.js +0 -157
- package/build-module/components/rich-text/use-mark-persistent.js +0 -29
- package/build-module/components/rich-text/utils.js +0 -41
- package/build-module/components/rich-text/with-deprecations.js +0 -41
- package/build-module/components/selection-scroll-into-view/index.js +0 -13
- package/build-module/components/skip-to-selected-block/index.js +0 -33
- package/build-module/components/spacing-sizes-control/hooks/use-spacing-sizes.js +0 -46
- package/build-module/components/spacing-sizes-control/index.js +0 -106
- package/build-module/components/spacing-sizes-control/input-controls/axial.js +0 -69
- package/build-module/components/spacing-sizes-control/input-controls/separated.js +0 -57
- package/build-module/components/spacing-sizes-control/input-controls/single.js +0 -49
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js +0 -105
- package/build-module/components/spacing-sizes-control/linked-button.js +0 -22
- package/build-module/components/spacing-sizes-control/utils.js +0 -166
- package/build-module/components/tabbed-sidebar/index.js +0 -67
- package/build-module/components/text-alignment-control/index.js +0 -85
- package/build-module/components/text-decoration-control/index.js +0 -63
- package/build-module/components/text-indent-control/index.js +0 -109
- package/build-module/components/text-indent-control/index.js.map +0 -7
- package/build-module/components/text-transform-control/index.js +0 -69
- package/build-module/components/tool-selector/index.js +0 -15
- package/build-module/components/typewriter/index.js +0 -166
- package/build-module/components/unit-control/index.js +0 -19
- package/build-module/components/url-input/button.js +0 -73
- package/build-module/components/url-input/index.js +0 -437
- package/build-module/components/url-popover/image-url-input-ui.js +0 -348
- package/build-module/components/url-popover/index.js +0 -91
- package/build-module/components/url-popover/link-editor.js +0 -48
- package/build-module/components/url-popover/link-viewer-url.js +0 -19
- package/build-module/components/url-popover/link-viewer.js +0 -49
- package/build-module/components/use-block-commands/index.js +0 -281
- package/build-module/components/use-block-display-information/index.js +0 -90
- package/build-module/components/use-block-drop-zone/index.js +0 -369
- package/build-module/components/use-flash-editable-blocks/index.js +0 -51
- package/build-module/components/use-moving-animation/index.js +0 -107
- package/build-module/components/use-on-block-drop/index.js +0 -269
- package/build-module/components/use-on-block-drop/types.js +0 -1
- package/build-module/components/use-paste-styles/index.js +0 -163
- package/build-module/components/use-resize-canvas/index.js +0 -59
- package/build-module/components/use-resize-canvas/index.js.map +0 -7
- package/build-module/components/use-settings/index.js +0 -30
- package/build-module/components/warning/index.js +0 -49
- package/build-module/components/writing-flow/index.js +0 -84
- package/build-module/components/writing-flow/use-arrow-nav.js +0 -200
- package/build-module/components/writing-flow/use-click-selection.js +0 -42
- package/build-module/components/writing-flow/use-clipboard-handler.js +0 -195
- package/build-module/components/writing-flow/use-drag-selection.js +0 -99
- package/build-module/components/writing-flow/use-input.js +0 -151
- package/build-module/components/writing-flow/use-multi-selection.js +0 -66
- package/build-module/components/writing-flow/use-select-all.js +0 -45
- package/build-module/components/writing-flow/use-selection-observer.js +0 -167
- package/build-module/components/writing-flow/use-tab-nav.js +0 -151
- package/build-module/components/writing-flow/utils.js +0 -73
- package/build-module/components/writing-mode-control/index.js +0 -51
- package/build-module/elements/index.js +0 -12
- package/build-module/hooks/align.js +0 -130
- package/build-module/hooks/allowed-blocks.js +0 -94
- package/build-module/hooks/anchor.js +0 -87
- package/build-module/hooks/aria-label.js +0 -41
- package/build-module/hooks/background.js +0 -148
- package/build-module/hooks/block-bindings.js +0 -101
- package/build-module/hooks/block-hooks.js +0 -180
- package/build-module/hooks/block-renaming.js +0 -32
- package/build-module/hooks/block-style-variation.js +0 -261
- package/build-module/hooks/border.js +0 -295
- package/build-module/hooks/color.js +0 -334
- package/build-module/hooks/compat.js +0 -16
- package/build-module/hooks/content-lock-ui.js +0 -47
- package/build-module/hooks/contrast-checker.js +0 -67
- package/build-module/hooks/custom-class-name.js +0 -99
- package/build-module/hooks/dimensions.js +0 -171
- package/build-module/hooks/duotone.js +0 -273
- package/build-module/hooks/fit-text.js +0 -299
- package/build-module/hooks/fit-text.js.map +0 -7
- package/build-module/hooks/font-family.js +0 -68
- package/build-module/hooks/font-size.js +0 -178
- package/build-module/hooks/gap.js +0 -26
- package/build-module/hooks/generated-class-name.js +0 -27
- package/build-module/hooks/grid-visualizer.js +0 -55
- package/build-module/hooks/index.js +0 -116
- package/build-module/hooks/index.js.map +0 -7
- package/build-module/hooks/layout-child.js +0 -231
- package/build-module/hooks/layout.js +0 -342
- package/build-module/hooks/line-height.js +0 -42
- package/build-module/hooks/list-view.js +0 -52
- package/build-module/hooks/list-view.js.map +0 -7
- package/build-module/hooks/lock.js +0 -19
- package/build-module/hooks/metadata.js +0 -69
- package/build-module/hooks/position.js +0 -223
- package/build-module/hooks/settings.js +0 -24
- package/build-module/hooks/spacing-visualizer.js +0 -113
- package/build-module/hooks/style.js +0 -271
- package/build-module/hooks/supports.js +0 -121
- package/build-module/hooks/text-align.js +0 -135
- package/build-module/hooks/typography.js +0 -160
- package/build-module/hooks/typography.js.map +0 -7
- package/build-module/hooks/use-border-props.js +0 -30
- package/build-module/hooks/use-cached-truthy.js +0 -15
- package/build-module/hooks/use-color-props.js +0 -97
- package/build-module/hooks/use-content-only-section-edit.js +0 -46
- package/build-module/hooks/use-shadow-props.js +0 -12
- package/build-module/hooks/use-spacing-props.js +0 -14
- package/build-module/hooks/use-typography-props.js +0 -34
- package/build-module/hooks/use-zoom-out.js +0 -44
- package/build-module/hooks/utils.js +0 -608
- package/build-module/hooks/utils.js.map +0 -7
- package/build-module/index.js +0 -39
- package/build-module/layouts/constrained.js +0 -291
- package/build-module/layouts/definitions.js +0 -176
- package/build-module/layouts/flex.js +0 -346
- package/build-module/layouts/flow.js +0 -81
- package/build-module/layouts/grid.js +0 -364
- package/build-module/layouts/index.js +0 -17
- package/build-module/layouts/utils.js +0 -42
- package/build-module/lock-unlock.js +0 -11
- package/build-module/private-apis.js +0 -119
- package/build-module/private-apis.js.map +0 -7
- package/build-module/store/actions.js +0 -1188
- package/build-module/store/array.js +0 -22
- package/build-module/store/constants.js +0 -6
- package/build-module/store/defaults.js +0 -218
- package/build-module/store/get-block-settings.js +0 -135
- package/build-module/store/index.js +0 -31
- package/build-module/store/private-actions.js +0 -246
- package/build-module/store/private-keys.js +0 -22
- package/build-module/store/private-keys.js.map +0 -7
- package/build-module/store/private-selectors.js +0 -439
- package/build-module/store/private-selectors.js.map +0 -7
- package/build-module/store/reducer.js +0 -1900
- package/build-module/store/selectors.js +0 -1694
- package/build-module/store/utils.js +0 -130
- package/build-module/utils/block-bindings.js +0 -22
- package/build-module/utils/dom.js +0 -108
- package/build-module/utils/fit-text-frontend.js +0 -32
- package/build-module/utils/fit-text-utils.js +0 -41
- package/build-module/utils/format-font-style.js +0 -30
- package/build-module/utils/format-font-weight.js +0 -53
- package/build-module/utils/get-editor-region.js +0 -17
- package/build-module/utils/get-font-styles-and-weights.js +0 -150
- package/build-module/utils/get-px-from-css-unit.js +0 -6
- package/build-module/utils/index.js +0 -8
- package/build-module/utils/math.js +0 -46
- package/build-module/utils/object.js +0 -34
- package/build-module/utils/order-inserter-block-items.js +0 -22
- package/build-module/utils/pasting.js +0 -59
- package/build-module/utils/selection.js +0 -27
- package/build-module/utils/sorting.js +0 -33
- package/build-module/utils/transform-styles/index.js +0 -109
- package/build-module/utils/use-notify-copy.js +0 -64
- package/src/components/content-only-controls/fields-dropdown-menu.js +0 -53
- package/src/components/content-only-controls/index.js +0 -535
- package/src/components/content-only-controls/link/index.js +0 -200
- package/src/components/content-only-controls/media/index.js +0 -306
- package/src/components/content-only-controls/media/styles.scss +0 -47
- package/src/components/content-only-controls/rich-text/index.js +0 -180
- package/src/components/content-only-controls/styles.scss +0 -44
- package/src/components/text-indent-control/index.js +0 -135
- /package/build-module/autocompleters/{block.js.map → block.mjs.map} +0 -0
- /package/build-module/autocompleters/{link.js.map → link.mjs.map} +0 -0
- /package/build-module/components/alignment-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/alignment-control/{ui.js.map → ui.mjs.map} +0 -0
- /package/build-module/components/autocomplete/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/background-image-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-actions/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-alignment-control/{constants.js.map → constants.mjs.map} +0 -0
- /package/build-module/components/block-alignment-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-alignment-control/{ui.js.map → ui.mjs.map} +0 -0
- /package/build-module/components/block-alignment-control/{use-available-alignments.js.map → use-available-alignments.mjs.map} +0 -0
- /package/build-module/components/block-alignment-matrix-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-allowed-blocks/{allowed-blocks-control.js.map → allowed-blocks-control.mjs.map} +0 -0
- /package/build-module/components/block-allowed-blocks/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-allowed-blocks/{modal.js.map → modal.mjs.map} +0 -0
- /package/build-module/components/block-bindings/{attribute-control.js.map → attribute-control.mjs.map} +0 -0
- /package/build-module/components/block-bindings/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-bindings/{source-fields-list.js.map → source-fields-list.mjs.map} +0 -0
- /package/build-module/components/block-bindings/{use-block-bindings-utils.js.map → use-block-bindings-utils.mjs.map} +0 -0
- /package/build-module/components/block-breadcrumb/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-canvas/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-card/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-compare/{block-view.js.map → block-view.mjs.map} +0 -0
- /package/build-module/components/block-compare/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-content-overlay/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-context/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-controls/{fill.js.map → fill.mjs.map} +0 -0
- /package/build-module/components/block-controls/{groups.js.map → groups.mjs.map} +0 -0
- /package/build-module/components/block-controls/{hook.js.map → hook.mjs.map} +0 -0
- /package/build-module/components/block-controls/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-controls/{slot.js.map → slot.mjs.map} +0 -0
- /package/build-module/components/block-draggable/{draggable-chip.js.map → draggable-chip.mjs.map} +0 -0
- /package/build-module/components/block-draggable/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-draggable/{use-scroll-when-dragging.js.map → use-scroll-when-dragging.mjs.map} +0 -0
- /package/build-module/components/block-edit/{context.js.map → context.mjs.map} +0 -0
- /package/build-module/components/block-edit/{edit.js.map → edit.mjs.map} +0 -0
- /package/build-module/components/block-edit/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-edit/{multiple-usage-warning.js.map → multiple-usage-warning.mjs.map} +0 -0
- /package/build-module/components/block-edit-visually-button/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-editing-mode/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-full-height-alignment-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-heading-level-dropdown/{heading-level-icon.js.map → heading-level-icon.mjs.map} +0 -0
- /package/build-module/components/block-heading-level-dropdown/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-icon/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-inspector/{edit-contents.js.map → edit-contents.mjs.map} +0 -0
- /package/build-module/components/block-inspector/{useBlockInspectorAnimationSettings.js.map → useBlockInspectorAnimationSettings.mjs.map} +0 -0
- /package/build-module/components/block-list/{block-crash-boundary.js.map → block-crash-boundary.mjs.map} +0 -0
- /package/build-module/components/block-list/{block-crash-warning.js.map → block-crash-warning.mjs.map} +0 -0
- /package/build-module/components/block-list/{block-html.js.map → block-html.mjs.map} +0 -0
- /package/build-module/components/block-list/{block-invalid-warning.js.map → block-invalid-warning.mjs.map} +0 -0
- /package/build-module/components/block-list/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-list/{layout.js.map → layout.mjs.map} +0 -0
- /package/build-module/components/block-list/{private-block-context.js.map → private-block-context.mjs.map} +0 -0
- /package/build-module/components/block-list/{subdirectory-icon.js.map → subdirectory-icon.mjs.map} +0 -0
- /package/build-module/components/block-list/use-block-props/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-list/use-block-props/{use-block-refs.js.map → use-block-refs.mjs.map} +0 -0
- /package/build-module/components/block-list/use-block-props/{use-firefox-draggable-compatibility.js.map → use-firefox-draggable-compatibility.mjs.map} +0 -0
- /package/build-module/components/block-list/use-block-props/{use-focus-first-element.js.map → use-focus-first-element.mjs.map} +0 -0
- /package/build-module/components/block-list/use-block-props/{use-focus-handler.js.map → use-focus-handler.mjs.map} +0 -0
- /package/build-module/components/block-list/use-block-props/{use-intersection-observer.js.map → use-intersection-observer.mjs.map} +0 -0
- /package/build-module/components/block-list/use-block-props/{use-is-hovered.js.map → use-is-hovered.mjs.map} +0 -0
- /package/build-module/components/block-list/use-block-props/{use-scroll-into-view.js.map → use-scroll-into-view.mjs.map} +0 -0
- /package/build-module/components/block-list/use-block-props/{use-selected-block-event-handlers.js.map → use-selected-block-event-handlers.mjs.map} +0 -0
- /package/build-module/components/block-list/{use-in-between-inserter.js.map → use-in-between-inserter.mjs.map} +0 -0
- /package/build-module/components/block-list/{zoom-out-separator.js.map → zoom-out-separator.mjs.map} +0 -0
- /package/build-module/components/block-list-appender/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-lock/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-lock/{menu-item.js.map → menu-item.mjs.map} +0 -0
- /package/build-module/components/block-lock/{modal.js.map → modal.mjs.map} +0 -0
- /package/build-module/components/block-lock/{toolbar.js.map → toolbar.mjs.map} +0 -0
- /package/build-module/components/block-lock/{use-block-lock.js.map → use-block-lock.mjs.map} +0 -0
- /package/build-module/components/block-manager/{category.js.map → category.mjs.map} +0 -0
- /package/build-module/components/block-manager/{checklist.js.map → checklist.mjs.map} +0 -0
- /package/build-module/components/block-manager/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-mover/{button.js.map → button.mjs.map} +0 -0
- /package/build-module/components/block-mover/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-mover/{mover-description.js.map → mover-description.mjs.map} +0 -0
- /package/build-module/components/block-navigation/{dropdown.js.map → dropdown.mjs.map} +0 -0
- /package/build-module/components/block-parent-selector/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-pattern-setup/{constants.js.map → constants.mjs.map} +0 -0
- /package/build-module/components/block-pattern-setup/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-pattern-setup/{setup-toolbar.js.map → setup-toolbar.mjs.map} +0 -0
- /package/build-module/components/block-pattern-setup/{use-patterns-setup.js.map → use-patterns-setup.mjs.map} +0 -0
- /package/build-module/components/block-patterns-list/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-patterns-paging/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-popover/{cover.js.map → cover.mjs.map} +0 -0
- /package/build-module/components/block-popover/{drop-zone.js.map → drop-zone.mjs.map} +0 -0
- /package/build-module/components/block-popover/{inbetween.js.map → inbetween.mjs.map} +0 -0
- /package/build-module/components/block-popover/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-popover/{use-popover-scroll.js.map → use-popover-scroll.mjs.map} +0 -0
- /package/build-module/components/block-preview/{async.js.map → async.mjs.map} +0 -0
- /package/build-module/components/block-preview/{auto.js.map → auto.mjs.map} +0 -0
- /package/build-module/components/block-preview/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-quick-navigation/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-removal-warning-modal/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-rename/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-rename/{is-empty-string.js.map → is-empty-string.mjs.map} +0 -0
- /package/build-module/components/block-rename/{modal.js.map → modal.mjs.map} +0 -0
- /package/build-module/components/block-rename/{rename-control.js.map → rename-control.mjs.map} +0 -0
- /package/build-module/components/block-rename/{use-block-rename.js.map → use-block-rename.mjs.map} +0 -0
- /package/build-module/components/block-selection-clearer/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-settings-menu/{block-html-convert-button.js.map → block-html-convert-button.mjs.map} +0 -0
- /package/build-module/components/block-settings-menu/{block-mode-toggle.js.map → block-mode-toggle.mjs.map} +0 -0
- /package/build-module/components/block-settings-menu/{block-parent-selector-menu-item.js.map → block-parent-selector-menu-item.mjs.map} +0 -0
- /package/build-module/components/block-settings-menu/{block-settings-dropdown.js.map → block-settings-dropdown.mjs.map} +0 -0
- /package/build-module/components/block-settings-menu/{block-settings-menu-first-item.js.map → block-settings-menu-first-item.mjs.map} +0 -0
- /package/build-module/components/block-settings-menu/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-settings-menu-controls/{edit-section-menu-item.js.map → edit-section-menu-item.mjs.map} +0 -0
- /package/build-module/components/block-settings-menu-controls/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-styles/{menu-items.js.map → menu-items.mjs.map} +0 -0
- /package/build-module/components/block-styles/{preview-panel.js.map → preview-panel.mjs.map} +0 -0
- /package/build-module/components/block-styles/{use-styles-for-block.js.map → use-styles-for-block.mjs.map} +0 -0
- /package/build-module/components/block-styles/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/block-switcher/{block-styles-menu.js.map → block-styles-menu.mjs.map} +0 -0
- /package/build-module/components/block-switcher/{block-transformations-menu.js.map → block-transformations-menu.mjs.map} +0 -0
- /package/build-module/components/block-switcher/{block-variation-transformations.js.map → block-variation-transformations.mjs.map} +0 -0
- /package/build-module/components/block-switcher/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-switcher/{pattern-transformations-menu.js.map → pattern-transformations-menu.mjs.map} +0 -0
- /package/build-module/components/block-switcher/{preview-block-popover.js.map → preview-block-popover.mjs.map} +0 -0
- /package/build-module/components/block-switcher/{use-transformed-patterns.js.map → use-transformed-patterns.mjs.map} +0 -0
- /package/build-module/components/block-switcher/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/block-title/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-title/{use-block-display-title.js.map → use-block-display-title.mjs.map} +0 -0
- /package/build-module/components/block-toolbar/{block-toolbar-icon.js.map → block-toolbar-icon.mjs.map} +0 -0
- /package/build-module/components/block-toolbar/{block-toolbar-last-item.js.map → block-toolbar-last-item.mjs.map} +0 -0
- /package/build-module/components/block-toolbar/{change-design.js.map → change-design.mjs.map} +0 -0
- /package/build-module/components/block-toolbar/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-toolbar/{pattern-overrides-dropdown.js.map → pattern-overrides-dropdown.mjs.map} +0 -0
- /package/build-module/components/block-toolbar/{switch-section-style.js.map → switch-section-style.mjs.map} +0 -0
- /package/build-module/components/block-toolbar/{use-has-block-toolbar.js.map → use-has-block-toolbar.mjs.map} +0 -0
- /package/build-module/components/block-toolbar/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/block-tools/{block-toolbar-popover.js.map → block-toolbar-popover.mjs.map} +0 -0
- /package/build-module/components/block-tools/{empty-block-inserter.js.map → empty-block-inserter.mjs.map} +0 -0
- /package/build-module/components/block-tools/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-tools/{insertion-point.js.map → insertion-point.mjs.map} +0 -0
- /package/build-module/components/block-tools/{use-block-toolbar-popover-props.js.map → use-block-toolbar-popover-props.mjs.map} +0 -0
- /package/build-module/components/block-tools/{use-selected-block-tool-props.js.map → use-selected-block-tool-props.mjs.map} +0 -0
- /package/build-module/components/block-tools/{use-show-block-tools.js.map → use-show-block-tools.mjs.map} +0 -0
- /package/build-module/components/block-tools/{zoom-out-mode-inserter-button.js.map → zoom-out-mode-inserter-button.mjs.map} +0 -0
- /package/build-module/components/block-tools/{zoom-out-mode-inserters.js.map → zoom-out-mode-inserters.mjs.map} +0 -0
- /package/build-module/components/block-types-list/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-variation-picker/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-vertical-alignment-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-vertical-alignment-control/{ui.js.map → ui.mjs.map} +0 -0
- /package/build-module/components/block-visibility/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/block-visibility/{menu-item.js.map → menu-item.mjs.map} +0 -0
- /package/build-module/components/block-visibility/{toolbar.js.map → toolbar.mjs.map} +0 -0
- /package/build-module/components/border-radius-control/{constants.js.map → constants.mjs.map} +0 -0
- /package/build-module/components/border-radius-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/border-radius-control/{linked-button.js.map → linked-button.mjs.map} +0 -0
- /package/build-module/components/border-radius-control/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/button-block-appender/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/child-layout-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/collab/{block-comment-icon-slot.js.map → block-comment-icon-slot.mjs.map} +0 -0
- /package/build-module/components/collab/{block-comment-icon-toolbar-slot.js.map → block-comment-icon-toolbar-slot.mjs.map} +0 -0
- /package/build-module/components/color-palette/{control.js.map → control.mjs.map} +0 -0
- /package/build-module/components/color-palette/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/color-palette/{with-color-context.js.map → with-color-context.mjs.map} +0 -0
- /package/build-module/components/color-style-selector/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/colors/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/colors/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/colors/{with-colors.js.map → with-colors.mjs.map} +0 -0
- /package/build-module/components/colors-gradients/{control.js.map → control.mjs.map} +0 -0
- /package/build-module/components/colors-gradients/{dropdown.js.map → dropdown.mjs.map} +0 -0
- /package/build-module/components/colors-gradients/{panel-color-gradient-settings.js.map → panel-color-gradient-settings.mjs.map} +0 -0
- /package/build-module/components/colors-gradients/{use-multiple-origin-colors-and-gradients.js.map → use-multiple-origin-colors-and-gradients.mjs.map} +0 -0
- /package/build-module/components/content-lock/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/content-lock/{modify-content-lock-menu-item.js.map → modify-content-lock-menu-item.mjs.map} +0 -0
- /package/build-module/components/contrast-checker/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/convert-to-group-buttons/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/convert-to-group-buttons/{toolbar.js.map → toolbar.mjs.map} +0 -0
- /package/build-module/components/convert-to-group-buttons/{use-convert-to-group-button-props.js.map → use-convert-to-group-button-props.mjs.map} +0 -0
- /package/build-module/components/copy-handler/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/date-format-picker/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/default-block-appender/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/dimension-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/dimensions-tool/{aspect-ratio-tool.js.map → aspect-ratio-tool.mjs.map} +0 -0
- /package/build-module/components/dimensions-tool/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/dimensions-tool/{scale-tool.js.map → scale-tool.mjs.map} +0 -0
- /package/build-module/components/dimensions-tool/{width-height-tool.js.map → width-height-tool.mjs.map} +0 -0
- /package/build-module/components/duotone/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/duotone-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/editable-text/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/editor-styles/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/fit-text-size-warning/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/floating-toolbar/{nav-up-icon.js.map → nav-up-icon.mjs.map} +0 -0
- /package/build-module/components/font-appearance-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/font-family/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/font-sizes/{fluid-utils.js.map → fluid-utils.mjs.map} +0 -0
- /package/build-module/components/font-sizes/{font-size-picker.js.map → font-size-picker.mjs.map} +0 -0
- /package/build-module/components/font-sizes/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/font-sizes/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/font-sizes/{with-font-sizes.js.map → with-font-sizes.mjs.map} +0 -0
- /package/build-module/components/global-styles/{advanced-panel.js.map → advanced-panel.mjs.map} +0 -0
- /package/build-module/components/global-styles/{background-panel.js.map → background-panel.mjs.map} +0 -0
- /package/build-module/components/global-styles/{border-panel.js.map → border-panel.mjs.map} +0 -0
- /package/build-module/components/global-styles/{color-panel.js.map → color-panel.mjs.map} +0 -0
- /package/build-module/components/global-styles/{dimensions-panel.js.map → dimensions-panel.mjs.map} +0 -0
- /package/build-module/components/global-styles/{filters-panel.js.map → filters-panel.mjs.map} +0 -0
- /package/build-module/components/global-styles/{image-settings-panel.js.map → image-settings-panel.mjs.map} +0 -0
- /package/build-module/components/global-styles/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/global-styles/{shadow-panel-components.js.map → shadow-panel-components.mjs.map} +0 -0
- /package/build-module/components/global-styles/{typography-utils.js.map → typography-utils.mjs.map} +0 -0
- /package/build-module/components/global-styles/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/gradients/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/gradients/{use-gradient.js.map → use-gradient.mjs.map} +0 -0
- /package/build-module/components/gradients/{with-gradient.js.map → with-gradient.mjs.map} +0 -0
- /package/build-module/components/grid/{grid-item-movers.js.map → grid-item-movers.mjs.map} +0 -0
- /package/build-module/components/grid/{grid-item-resizer.js.map → grid-item-resizer.mjs.map} +0 -0
- /package/build-module/components/grid/{grid-visualizer.js.map → grid-visualizer.mjs.map} +0 -0
- /package/build-module/components/grid/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/grid/{use-get-number-of-blocks-before-cell.js.map → use-get-number-of-blocks-before-cell.mjs.map} +0 -0
- /package/build-module/components/grid/{use-grid-layout-sync.js.map → use-grid-layout-sync.mjs.map} +0 -0
- /package/build-module/components/grid/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/height-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/html-element-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/html-element-control/{messages.js.map → messages.mjs.map} +0 -0
- /package/build-module/components/iframe/{get-compatibility-styles.js.map → get-compatibility-styles.mjs.map} +0 -0
- /package/build-module/components/iframe/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/iframe/{use-scale-canvas.js.map → use-scale-canvas.mjs.map} +0 -0
- /package/build-module/components/image-editor/{aspect-ratio-dropdown.js.map → aspect-ratio-dropdown.mjs.map} +0 -0
- /package/build-module/components/image-editor/{constants.js.map → constants.mjs.map} +0 -0
- /package/build-module/components/image-editor/{context.js.map → context.mjs.map} +0 -0
- /package/build-module/components/image-editor/{cropper.js.map → cropper.mjs.map} +0 -0
- /package/build-module/components/image-editor/{form-controls.js.map → form-controls.mjs.map} +0 -0
- /package/build-module/components/image-editor/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/image-editor/{rotation-button.js.map → rotation-button.mjs.map} +0 -0
- /package/build-module/components/image-editor/{use-save-image.js.map → use-save-image.mjs.map} +0 -0
- /package/build-module/components/image-editor/{use-transform-image.js.map → use-transform-image.mjs.map} +0 -0
- /package/build-module/components/image-editor/{zoom-dropdown.js.map → zoom-dropdown.mjs.map} +0 -0
- /package/build-module/components/image-size-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/image-size-control/{use-dimension-handler.js.map → use-dimension-handler.mjs.map} +0 -0
- /package/build-module/components/inner-blocks/{button-block-appender.js.map → button-block-appender.mjs.map} +0 -0
- /package/build-module/components/inner-blocks/{default-block-appender.js.map → default-block-appender.mjs.map} +0 -0
- /package/build-module/components/inner-blocks/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/inner-blocks/{use-block-context.js.map → use-block-context.mjs.map} +0 -0
- /package/build-module/components/inner-blocks/{use-inner-block-template-sync.js.map → use-inner-block-template-sync.mjs.map} +0 -0
- /package/build-module/components/inner-blocks/{use-nested-settings-update.js.map → use-nested-settings-update.mjs.map} +0 -0
- /package/build-module/components/inserter/block-patterns-explorer/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/inserter/block-patterns-explorer/{pattern-explorer-sidebar.js.map → pattern-explorer-sidebar.mjs.map} +0 -0
- /package/build-module/components/inserter/block-patterns-explorer/{pattern-list.js.map → pattern-list.mjs.map} +0 -0
- /package/build-module/components/inserter/block-patterns-tab/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/inserter/block-patterns-tab/{pattern-category-previews.js.map → pattern-category-previews.mjs.map} +0 -0
- /package/build-module/components/inserter/block-patterns-tab/{patterns-filter.js.map → patterns-filter.mjs.map} +0 -0
- /package/build-module/components/inserter/block-patterns-tab/{use-pattern-categories.js.map → use-pattern-categories.mjs.map} +0 -0
- /package/build-module/components/inserter/block-patterns-tab/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/inserter/{block-types-tab.js.map → block-types-tab.mjs.map} +0 -0
- /package/build-module/components/inserter/category-tabs/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/inserter/hooks/{use-block-types-state.js.map → use-block-types-state.mjs.map} +0 -0
- /package/build-module/components/inserter/hooks/{use-insertion-point.js.map → use-insertion-point.mjs.map} +0 -0
- /package/build-module/components/inserter/hooks/{use-patterns-paging.js.map → use-patterns-paging.mjs.map} +0 -0
- /package/build-module/components/inserter/hooks/{use-patterns-state.js.map → use-patterns-state.mjs.map} +0 -0
- /package/build-module/components/inserter/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/inserter/{library.js.map → library.mjs.map} +0 -0
- /package/build-module/components/inserter/media-tab/{hooks.js.map → hooks.mjs.map} +0 -0
- /package/build-module/components/inserter/media-tab/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/inserter/media-tab/{media-list.js.map → media-list.mjs.map} +0 -0
- /package/build-module/components/inserter/media-tab/{media-panel.js.map → media-panel.mjs.map} +0 -0
- /package/build-module/components/inserter/media-tab/{media-preview.js.map → media-preview.mjs.map} +0 -0
- /package/build-module/components/inserter/media-tab/{media-tab.js.map → media-tab.mjs.map} +0 -0
- /package/build-module/components/inserter/media-tab/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/inserter/{menu.js.map → menu.mjs.map} +0 -0
- /package/build-module/components/inserter/{mobile-tab-navigation.js.map → mobile-tab-navigation.mjs.map} +0 -0
- /package/build-module/components/inserter/{no-results.js.map → no-results.mjs.map} +0 -0
- /package/build-module/components/inserter/{panel.js.map → panel.mjs.map} +0 -0
- /package/build-module/components/inserter/{preview-panel.js.map → preview-panel.mjs.map} +0 -0
- /package/build-module/components/inserter/{quick-inserter.js.map → quick-inserter.mjs.map} +0 -0
- /package/build-module/components/inserter/{search-items.js.map → search-items.mjs.map} +0 -0
- /package/build-module/components/inserter/{search-results.js.map → search-results.mjs.map} +0 -0
- /package/build-module/components/inserter/{tips.js.map → tips.mjs.map} +0 -0
- /package/build-module/components/inserter-button/{sparkles.js.map → sparkles.mjs.map} +0 -0
- /package/build-module/components/inserter-draggable-blocks/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/inserter-list-item/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/inserter-listbox/{context.js.map → context.mjs.map} +0 -0
- /package/build-module/components/inserter-listbox/{group.js.map → group.mjs.map} +0 -0
- /package/build-module/components/inserter-listbox/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/inserter-listbox/{item.js.map → item.mjs.map} +0 -0
- /package/build-module/components/inserter-listbox/{row.js.map → row.mjs.map} +0 -0
- /package/build-module/components/inserter-menu-extension/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/inspector-controls/{block-support-slot-container.js.map → block-support-slot-container.mjs.map} +0 -0
- /package/build-module/components/inspector-controls/{block-support-tools-panel.js.map → block-support-tools-panel.mjs.map} +0 -0
- /package/build-module/components/inspector-controls/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/inspector-controls/{slot.js.map → slot.mjs.map} +0 -0
- /package/build-module/components/inspector-controls-tabs/{advanced-controls-panel.js.map → advanced-controls-panel.mjs.map} +0 -0
- /package/build-module/components/inspector-controls-tabs/{position-controls-panel.js.map → position-controls-panel.mjs.map} +0 -0
- /package/build-module/components/inspector-controls-tabs/{settings-tab.js.map → settings-tab.mjs.map} +0 -0
- /package/build-module/components/inspector-controls-tabs/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/inspector-popover-header/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/justify-content-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/justify-content-control/{ui.js.map → ui.mjs.map} +0 -0
- /package/build-module/components/letter-spacing-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/line-height-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/line-height-control/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/link-control/{constants.js.map → constants.mjs.map} +0 -0
- /package/build-module/components/link-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/link-control/{is-url-like.js.map → is-url-like.mjs.map} +0 -0
- /package/build-module/components/link-control/{link-preview.js.map → link-preview.mjs.map} +0 -0
- /package/build-module/components/link-control/{search-create-button.js.map → search-create-button.mjs.map} +0 -0
- /package/build-module/components/link-control/{search-input.js.map → search-input.mjs.map} +0 -0
- /package/build-module/components/link-control/{search-item.js.map → search-item.mjs.map} +0 -0
- /package/build-module/components/link-control/{search-results.js.map → search-results.mjs.map} +0 -0
- /package/build-module/components/link-control/{settings-drawer.js.map → settings-drawer.mjs.map} +0 -0
- /package/build-module/components/link-control/{settings.js.map → settings.mjs.map} +0 -0
- /package/build-module/components/link-control/{use-create-page.js.map → use-create-page.mjs.map} +0 -0
- /package/build-module/components/link-control/{use-internal-value.js.map → use-internal-value.mjs.map} +0 -0
- /package/build-module/components/link-control/{use-rich-url-data.js.map → use-rich-url-data.mjs.map} +0 -0
- /package/build-module/components/link-control/{use-search-handler.js.map → use-search-handler.mjs.map} +0 -0
- /package/build-module/components/link-control/{viewer-slot.js.map → viewer-slot.mjs.map} +0 -0
- /package/build-module/components/link-picker/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/link-picker/{link-picker.js.map → link-picker.mjs.map} +0 -0
- /package/build-module/components/link-picker/{link-preview.js.map → link-preview.mjs.map} +0 -0
- /package/build-module/components/list-view/{appender.js.map → appender.mjs.map} +0 -0
- /package/build-module/components/list-view/{aria-referenced-text.js.map → aria-referenced-text.mjs.map} +0 -0
- /package/build-module/components/list-view/{block-contents.js.map → block-contents.mjs.map} +0 -0
- /package/build-module/components/list-view/{block-select-button.js.map → block-select-button.mjs.map} +0 -0
- /package/build-module/components/list-view/{block.js.map → block.mjs.map} +0 -0
- /package/build-module/components/list-view/{branch.js.map → branch.mjs.map} +0 -0
- /package/build-module/components/list-view/{context.js.map → context.mjs.map} +0 -0
- /package/build-module/components/list-view/{drop-indicator.js.map → drop-indicator.mjs.map} +0 -0
- /package/build-module/components/list-view/{expander.js.map → expander.mjs.map} +0 -0
- /package/build-module/components/list-view/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/list-view/{leaf.js.map → leaf.mjs.map} +0 -0
- /package/build-module/components/list-view/{use-block-selection.js.map → use-block-selection.mjs.map} +0 -0
- /package/build-module/components/list-view/{use-clipboard-handler.js.map → use-clipboard-handler.mjs.map} +0 -0
- /package/build-module/components/list-view/{use-list-view-block-indexes.js.map → use-list-view-block-indexes.mjs.map} +0 -0
- /package/build-module/components/list-view/{use-list-view-client-ids.js.map → use-list-view-client-ids.mjs.map} +0 -0
- /package/build-module/components/list-view/{use-list-view-collapse-items.js.map → use-list-view-collapse-items.mjs.map} +0 -0
- /package/build-module/components/list-view/{use-list-view-drop-zone.js.map → use-list-view-drop-zone.mjs.map} +0 -0
- /package/build-module/components/list-view/{use-list-view-expand-selected-item.js.map → use-list-view-expand-selected-item.mjs.map} +0 -0
- /package/build-module/components/list-view/{use-list-view-images.js.map → use-list-view-images.mjs.map} +0 -0
- /package/build-module/components/list-view/{use-list-view-scroll-into-view.js.map → use-list-view-scroll-into-view.mjs.map} +0 -0
- /package/build-module/components/list-view/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/media-placeholder/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/media-placeholder/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/media-upload/{check.js.map → check.mjs.map} +0 -0
- /package/build-module/components/media-upload/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/media-upload-progress/{constants.js.map → constants.mjs.map} +0 -0
- /package/build-module/components/multi-selection-inspector/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/navigable-toolbar/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/observe-typing/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/panel-color-settings/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/plain-text/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/preset-input-control/{constants.js.map → constants.mjs.map} +0 -0
- /package/build-module/components/preset-input-control/{custom-value-controls.js.map → custom-value-controls.mjs.map} +0 -0
- /package/build-module/components/preset-input-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/preset-input-control/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/preview-options/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/provider/{block-refs-provider.js.map → block-refs-provider.mjs.map} +0 -0
- /package/build-module/components/provider/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/provider/{use-block-sync.js.map → use-block-sync.mjs.map} +0 -0
- /package/build-module/components/provider/{use-media-upload-settings.js.map → use-media-upload-settings.mjs.map} +0 -0
- /package/build-module/components/provider/{with-registry-provider.js.map → with-registry-provider.mjs.map} +0 -0
- /package/build-module/components/publish-date-time-picker/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/recursion-provider/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/resizable-box-popover/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/resolution-tool/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/responsive-block-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/responsive-block-control/{label.js.map → label.mjs.map} +0 -0
- /package/build-module/components/rich-text/{content.js.map → content.mjs.map} +0 -0
- /package/build-module/components/rich-text/event-listeners/{before-input-rules.js.map → before-input-rules.mjs.map} +0 -0
- /package/build-module/components/rich-text/event-listeners/{delete.js.map → delete.mjs.map} +0 -0
- /package/build-module/components/rich-text/event-listeners/{enter.js.map → enter.mjs.map} +0 -0
- /package/build-module/components/rich-text/event-listeners/{firefox-compat.js.map → firefox-compat.mjs.map} +0 -0
- /package/build-module/components/rich-text/event-listeners/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/rich-text/event-listeners/{input-events.js.map → input-events.mjs.map} +0 -0
- /package/build-module/components/rich-text/event-listeners/{input-rules.js.map → input-rules.mjs.map} +0 -0
- /package/build-module/components/rich-text/event-listeners/{insert-replacement-text.js.map → insert-replacement-text.mjs.map} +0 -0
- /package/build-module/components/rich-text/event-listeners/{paste-handler.js.map → paste-handler.mjs.map} +0 -0
- /package/build-module/components/rich-text/event-listeners/{remove-browser-shortcuts.js.map → remove-browser-shortcuts.mjs.map} +0 -0
- /package/build-module/components/rich-text/event-listeners/{shortcuts.js.map → shortcuts.mjs.map} +0 -0
- /package/build-module/components/rich-text/event-listeners/{undo-automatic-change.js.map → undo-automatic-change.mjs.map} +0 -0
- /package/build-module/components/rich-text/{format-edit.js.map → format-edit.mjs.map} +0 -0
- /package/build-module/components/rich-text/format-toolbar/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/rich-text/{format-toolbar-container.js.map → format-toolbar-container.mjs.map} +0 -0
- /package/build-module/components/rich-text/{get-rich-text-values.js.map → get-rich-text-values.mjs.map} +0 -0
- /package/build-module/components/rich-text/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/rich-text/{input-event.js.map → input-event.mjs.map} +0 -0
- /package/build-module/components/rich-text/{multiline.js.map → multiline.mjs.map} +0 -0
- /package/build-module/components/rich-text/native/{format-edit.js.map → format-edit.mjs.map} +0 -0
- /package/build-module/components/rich-text/native/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/rich-text/native/{use-format-types.js.map → use-format-types.mjs.map} +0 -0
- /package/build-module/components/rich-text/{prevent-event-discovery.js.map → prevent-event-discovery.mjs.map} +0 -0
- /package/build-module/components/rich-text/{shortcut.js.map → shortcut.mjs.map} +0 -0
- /package/build-module/components/rich-text/{toolbar-button.js.map → toolbar-button.mjs.map} +0 -0
- /package/build-module/components/rich-text/{use-format-types.js.map → use-format-types.mjs.map} +0 -0
- /package/build-module/components/rich-text/{use-mark-persistent.js.map → use-mark-persistent.mjs.map} +0 -0
- /package/build-module/components/rich-text/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/rich-text/{with-deprecations.js.map → with-deprecations.mjs.map} +0 -0
- /package/build-module/components/selection-scroll-into-view/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/skip-to-selected-block/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/spacing-sizes-control/hooks/{use-spacing-sizes.js.map → use-spacing-sizes.mjs.map} +0 -0
- /package/build-module/components/spacing-sizes-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/spacing-sizes-control/input-controls/{axial.js.map → axial.mjs.map} +0 -0
- /package/build-module/components/spacing-sizes-control/input-controls/{separated.js.map → separated.mjs.map} +0 -0
- /package/build-module/components/spacing-sizes-control/input-controls/{single.js.map → single.mjs.map} +0 -0
- /package/build-module/components/spacing-sizes-control/input-controls/{spacing-input-control.js.map → spacing-input-control.mjs.map} +0 -0
- /package/build-module/components/spacing-sizes-control/{linked-button.js.map → linked-button.mjs.map} +0 -0
- /package/build-module/components/spacing-sizes-control/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/tabbed-sidebar/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/text-alignment-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/text-decoration-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/text-transform-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/tool-selector/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/typewriter/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/unit-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/url-input/{button.js.map → button.mjs.map} +0 -0
- /package/build-module/components/url-input/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/url-popover/{image-url-input-ui.js.map → image-url-input-ui.mjs.map} +0 -0
- /package/build-module/components/url-popover/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/url-popover/{link-editor.js.map → link-editor.mjs.map} +0 -0
- /package/build-module/components/url-popover/{link-viewer-url.js.map → link-viewer-url.mjs.map} +0 -0
- /package/build-module/components/url-popover/{link-viewer.js.map → link-viewer.mjs.map} +0 -0
- /package/build-module/components/use-block-commands/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/use-block-display-information/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/use-block-drop-zone/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/use-flash-editable-blocks/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/use-moving-animation/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/use-on-block-drop/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/use-on-block-drop/{types.js.map → types.mjs.map} +0 -0
- /package/build-module/components/use-paste-styles/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/use-settings/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/warning/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/writing-flow/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/writing-flow/{use-arrow-nav.js.map → use-arrow-nav.mjs.map} +0 -0
- /package/build-module/components/writing-flow/{use-click-selection.js.map → use-click-selection.mjs.map} +0 -0
- /package/build-module/components/writing-flow/{use-clipboard-handler.js.map → use-clipboard-handler.mjs.map} +0 -0
- /package/build-module/components/writing-flow/{use-drag-selection.js.map → use-drag-selection.mjs.map} +0 -0
- /package/build-module/components/writing-flow/{use-input.js.map → use-input.mjs.map} +0 -0
- /package/build-module/components/writing-flow/{use-multi-selection.js.map → use-multi-selection.mjs.map} +0 -0
- /package/build-module/components/writing-flow/{use-select-all.js.map → use-select-all.mjs.map} +0 -0
- /package/build-module/components/writing-flow/{use-selection-observer.js.map → use-selection-observer.mjs.map} +0 -0
- /package/build-module/components/writing-flow/{use-tab-nav.js.map → use-tab-nav.mjs.map} +0 -0
- /package/build-module/components/writing-flow/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/components/writing-mode-control/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/elements/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/hooks/{align.js.map → align.mjs.map} +0 -0
- /package/build-module/hooks/{allowed-blocks.js.map → allowed-blocks.mjs.map} +0 -0
- /package/build-module/hooks/{anchor.js.map → anchor.mjs.map} +0 -0
- /package/build-module/hooks/{aria-label.js.map → aria-label.mjs.map} +0 -0
- /package/build-module/hooks/{background.js.map → background.mjs.map} +0 -0
- /package/build-module/hooks/{block-bindings.js.map → block-bindings.mjs.map} +0 -0
- /package/build-module/hooks/{block-hooks.js.map → block-hooks.mjs.map} +0 -0
- /package/build-module/hooks/{block-renaming.js.map → block-renaming.mjs.map} +0 -0
- /package/build-module/hooks/{block-style-variation.js.map → block-style-variation.mjs.map} +0 -0
- /package/build-module/hooks/{border.js.map → border.mjs.map} +0 -0
- /package/build-module/hooks/{color.js.map → color.mjs.map} +0 -0
- /package/build-module/hooks/{compat.js.map → compat.mjs.map} +0 -0
- /package/build-module/hooks/{content-lock-ui.js.map → content-lock-ui.mjs.map} +0 -0
- /package/build-module/hooks/{contrast-checker.js.map → contrast-checker.mjs.map} +0 -0
- /package/build-module/hooks/{custom-class-name.js.map → custom-class-name.mjs.map} +0 -0
- /package/build-module/hooks/{dimensions.js.map → dimensions.mjs.map} +0 -0
- /package/build-module/hooks/{duotone.js.map → duotone.mjs.map} +0 -0
- /package/build-module/hooks/{font-family.js.map → font-family.mjs.map} +0 -0
- /package/build-module/hooks/{font-size.js.map → font-size.mjs.map} +0 -0
- /package/build-module/hooks/{gap.js.map → gap.mjs.map} +0 -0
- /package/build-module/hooks/{generated-class-name.js.map → generated-class-name.mjs.map} +0 -0
- /package/build-module/hooks/{grid-visualizer.js.map → grid-visualizer.mjs.map} +0 -0
- /package/build-module/hooks/{layout-child.js.map → layout-child.mjs.map} +0 -0
- /package/build-module/hooks/{layout.js.map → layout.mjs.map} +0 -0
- /package/build-module/hooks/{line-height.js.map → line-height.mjs.map} +0 -0
- /package/build-module/hooks/{lock.js.map → lock.mjs.map} +0 -0
- /package/build-module/hooks/{metadata.js.map → metadata.mjs.map} +0 -0
- /package/build-module/hooks/{position.js.map → position.mjs.map} +0 -0
- /package/build-module/hooks/{settings.js.map → settings.mjs.map} +0 -0
- /package/build-module/hooks/{spacing-visualizer.js.map → spacing-visualizer.mjs.map} +0 -0
- /package/build-module/hooks/{style.js.map → style.mjs.map} +0 -0
- /package/build-module/hooks/{supports.js.map → supports.mjs.map} +0 -0
- /package/build-module/hooks/{text-align.js.map → text-align.mjs.map} +0 -0
- /package/build-module/hooks/{use-border-props.js.map → use-border-props.mjs.map} +0 -0
- /package/build-module/hooks/{use-cached-truthy.js.map → use-cached-truthy.mjs.map} +0 -0
- /package/build-module/hooks/{use-color-props.js.map → use-color-props.mjs.map} +0 -0
- /package/build-module/hooks/{use-content-only-section-edit.js.map → use-content-only-section-edit.mjs.map} +0 -0
- /package/build-module/hooks/{use-shadow-props.js.map → use-shadow-props.mjs.map} +0 -0
- /package/build-module/hooks/{use-spacing-props.js.map → use-spacing-props.mjs.map} +0 -0
- /package/build-module/hooks/{use-typography-props.js.map → use-typography-props.mjs.map} +0 -0
- /package/build-module/hooks/{use-zoom-out.js.map → use-zoom-out.mjs.map} +0 -0
- /package/build-module/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/layouts/{constrained.js.map → constrained.mjs.map} +0 -0
- /package/build-module/layouts/{definitions.js.map → definitions.mjs.map} +0 -0
- /package/build-module/layouts/{flex.js.map → flex.mjs.map} +0 -0
- /package/build-module/layouts/{flow.js.map → flow.mjs.map} +0 -0
- /package/build-module/layouts/{grid.js.map → grid.mjs.map} +0 -0
- /package/build-module/layouts/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/layouts/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/{lock-unlock.js.map → lock-unlock.mjs.map} +0 -0
- /package/build-module/store/{actions.js.map → actions.mjs.map} +0 -0
- /package/build-module/store/{array.js.map → array.mjs.map} +0 -0
- /package/build-module/store/{constants.js.map → constants.mjs.map} +0 -0
- /package/build-module/store/{defaults.js.map → defaults.mjs.map} +0 -0
- /package/build-module/store/{get-block-settings.js.map → get-block-settings.mjs.map} +0 -0
- /package/build-module/store/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/store/{private-actions.js.map → private-actions.mjs.map} +0 -0
- /package/build-module/store/{reducer.js.map → reducer.mjs.map} +0 -0
- /package/build-module/store/{selectors.js.map → selectors.mjs.map} +0 -0
- /package/build-module/store/{utils.js.map → utils.mjs.map} +0 -0
- /package/build-module/utils/{block-bindings.js.map → block-bindings.mjs.map} +0 -0
- /package/build-module/utils/{dom.js.map → dom.mjs.map} +0 -0
- /package/build-module/utils/{fit-text-frontend.js.map → fit-text-frontend.mjs.map} +0 -0
- /package/build-module/utils/{fit-text-utils.js.map → fit-text-utils.mjs.map} +0 -0
- /package/build-module/utils/{format-font-style.js.map → format-font-style.mjs.map} +0 -0
- /package/build-module/utils/{format-font-weight.js.map → format-font-weight.mjs.map} +0 -0
- /package/build-module/utils/{get-editor-region.js.map → get-editor-region.mjs.map} +0 -0
- /package/build-module/utils/{get-font-styles-and-weights.js.map → get-font-styles-and-weights.mjs.map} +0 -0
- /package/build-module/utils/{get-px-from-css-unit.js.map → get-px-from-css-unit.mjs.map} +0 -0
- /package/build-module/utils/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/utils/{math.js.map → math.mjs.map} +0 -0
- /package/build-module/utils/{object.js.map → object.mjs.map} +0 -0
- /package/build-module/utils/{order-inserter-block-items.js.map → order-inserter-block-items.mjs.map} +0 -0
- /package/build-module/utils/{pasting.js.map → pasting.mjs.map} +0 -0
- /package/build-module/utils/{selection.js.map → selection.mjs.map} +0 -0
- /package/build-module/utils/{sorting.js.map → sorting.mjs.map} +0 -0
- /package/build-module/utils/transform-styles/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/utils/{use-notify-copy.js.map → use-notify-copy.mjs.map} +0 -0
- /package/src/{components/content-only-controls → hooks/block-fields}/link/styles.scss +0 -0
- /package/src/{components/content-only-controls → hooks/block-fields}/rich-text/styles.scss +0 -0
- /package/src/{components/content-only-controls → hooks/block-fields}/use-inspector-popover-placement.js +0 -0
|
@@ -1,1900 +0,0 @@
|
|
|
1
|
-
// packages/block-editor/src/store/reducer.js
|
|
2
|
-
import fastDeepEqual from "fast-deep-equal/es6";
|
|
3
|
-
import { pipe } from "@wordpress/compose";
|
|
4
|
-
import { combineReducers, select } from "@wordpress/data";
|
|
5
|
-
import deprecated from "@wordpress/deprecated";
|
|
6
|
-
import {
|
|
7
|
-
store as blocksStore,
|
|
8
|
-
privateApis as blocksPrivateApis
|
|
9
|
-
} from "@wordpress/blocks";
|
|
10
|
-
import { PREFERENCES_DEFAULTS, SETTINGS_DEFAULTS } from "./defaults.js";
|
|
11
|
-
import { insertAt, moveTo } from "./array.js";
|
|
12
|
-
import { sectionRootClientIdKey, isIsolatedEditorKey } from "./private-keys.js";
|
|
13
|
-
import { unlock } from "../lock-unlock.js";
|
|
14
|
-
var { isContentBlock } = unlock(blocksPrivateApis);
|
|
15
|
-
var identity = (x) => x;
|
|
16
|
-
function mapBlockOrder(blocks2, rootClientId = "") {
|
|
17
|
-
const result = /* @__PURE__ */ new Map();
|
|
18
|
-
const current = [];
|
|
19
|
-
result.set(rootClientId, current);
|
|
20
|
-
blocks2.forEach((block) => {
|
|
21
|
-
const { clientId, innerBlocks } = block;
|
|
22
|
-
current.push(clientId);
|
|
23
|
-
mapBlockOrder(innerBlocks, clientId).forEach(
|
|
24
|
-
(order, subClientId) => {
|
|
25
|
-
result.set(subClientId, order);
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
});
|
|
29
|
-
return result;
|
|
30
|
-
}
|
|
31
|
-
function mapBlockParents(blocks2, rootClientId = "") {
|
|
32
|
-
const result = [];
|
|
33
|
-
const stack = [[rootClientId, blocks2]];
|
|
34
|
-
while (stack.length) {
|
|
35
|
-
const [parent, currentBlocks] = stack.shift();
|
|
36
|
-
currentBlocks.forEach(({ innerBlocks, ...block }) => {
|
|
37
|
-
result.push([block.clientId, parent]);
|
|
38
|
-
if (innerBlocks?.length) {
|
|
39
|
-
stack.push([block.clientId, innerBlocks]);
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
return result;
|
|
44
|
-
}
|
|
45
|
-
function flattenBlocks(blocks2, transform = identity) {
|
|
46
|
-
const result = [];
|
|
47
|
-
const stack = [...blocks2];
|
|
48
|
-
while (stack.length) {
|
|
49
|
-
const { innerBlocks, ...block } = stack.shift();
|
|
50
|
-
stack.push(...innerBlocks);
|
|
51
|
-
result.push([block.clientId, transform(block)]);
|
|
52
|
-
}
|
|
53
|
-
return result;
|
|
54
|
-
}
|
|
55
|
-
function getFlattenedClientIds(blocks2) {
|
|
56
|
-
const result = {};
|
|
57
|
-
const stack = [...blocks2];
|
|
58
|
-
while (stack.length) {
|
|
59
|
-
const { innerBlocks, ...block } = stack.shift();
|
|
60
|
-
stack.push(...innerBlocks);
|
|
61
|
-
result[block.clientId] = true;
|
|
62
|
-
}
|
|
63
|
-
return result;
|
|
64
|
-
}
|
|
65
|
-
function getFlattenedBlocksWithoutAttributes(blocks2) {
|
|
66
|
-
return flattenBlocks(blocks2, (block) => {
|
|
67
|
-
const { attributes, ...restBlock } = block;
|
|
68
|
-
return restBlock;
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
function getFlattenedBlockAttributes(blocks2) {
|
|
72
|
-
return flattenBlocks(blocks2, (block) => block.attributes);
|
|
73
|
-
}
|
|
74
|
-
function hasSameKeys(a, b) {
|
|
75
|
-
return fastDeepEqual(Object.keys(a), Object.keys(b));
|
|
76
|
-
}
|
|
77
|
-
function isUpdatingSameBlockAttribute(action, lastAction) {
|
|
78
|
-
return action.type === "UPDATE_BLOCK_ATTRIBUTES" && lastAction !== void 0 && lastAction.type === "UPDATE_BLOCK_ATTRIBUTES" && fastDeepEqual(action.clientIds, lastAction.clientIds) && hasSameKeys(action.attributes, lastAction.attributes);
|
|
79
|
-
}
|
|
80
|
-
function updateBlockTreeForBlocks(state, blocks2) {
|
|
81
|
-
const treeToUpdate = state.tree;
|
|
82
|
-
const stack = [...blocks2];
|
|
83
|
-
const flattenedBlocks = [...blocks2];
|
|
84
|
-
while (stack.length) {
|
|
85
|
-
const block = stack.shift();
|
|
86
|
-
stack.push(...block.innerBlocks);
|
|
87
|
-
flattenedBlocks.push(...block.innerBlocks);
|
|
88
|
-
}
|
|
89
|
-
for (const block of flattenedBlocks) {
|
|
90
|
-
treeToUpdate.set(block.clientId, {});
|
|
91
|
-
}
|
|
92
|
-
for (const block of flattenedBlocks) {
|
|
93
|
-
treeToUpdate.set(
|
|
94
|
-
block.clientId,
|
|
95
|
-
Object.assign(treeToUpdate.get(block.clientId), {
|
|
96
|
-
...state.byClientId.get(block.clientId),
|
|
97
|
-
attributes: state.attributes.get(block.clientId),
|
|
98
|
-
innerBlocks: block.innerBlocks.map(
|
|
99
|
-
(subBlock) => treeToUpdate.get(subBlock.clientId)
|
|
100
|
-
)
|
|
101
|
-
})
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
function updateParentInnerBlocksInTree(state, updatedClientIds, updateChildrenOfUpdatedClientIds = false) {
|
|
106
|
-
const treeToUpdate = state.tree;
|
|
107
|
-
const uncontrolledParents = /* @__PURE__ */ new Set([]);
|
|
108
|
-
const controlledParents = /* @__PURE__ */ new Set();
|
|
109
|
-
for (const clientId of updatedClientIds) {
|
|
110
|
-
let current = updateChildrenOfUpdatedClientIds ? clientId : state.parents.get(clientId);
|
|
111
|
-
do {
|
|
112
|
-
if (state.controlledInnerBlocks[current]) {
|
|
113
|
-
controlledParents.add(current);
|
|
114
|
-
break;
|
|
115
|
-
} else {
|
|
116
|
-
uncontrolledParents.add(current);
|
|
117
|
-
current = state.parents.get(current);
|
|
118
|
-
}
|
|
119
|
-
} while (current !== void 0);
|
|
120
|
-
}
|
|
121
|
-
for (const clientId of uncontrolledParents) {
|
|
122
|
-
treeToUpdate.set(clientId, { ...treeToUpdate.get(clientId) });
|
|
123
|
-
}
|
|
124
|
-
for (const clientId of uncontrolledParents) {
|
|
125
|
-
treeToUpdate.get(clientId).innerBlocks = (state.order.get(clientId) || []).map((subClientId) => treeToUpdate.get(subClientId));
|
|
126
|
-
}
|
|
127
|
-
for (const clientId of controlledParents) {
|
|
128
|
-
treeToUpdate.set("controlled||" + clientId, {
|
|
129
|
-
innerBlocks: (state.order.get(clientId) || []).map(
|
|
130
|
-
(subClientId) => treeToUpdate.get(subClientId)
|
|
131
|
-
)
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
var withBlockTree = (reducer) => (state = {}, action) => {
|
|
136
|
-
const newState = reducer(state, action);
|
|
137
|
-
if (newState === state) {
|
|
138
|
-
return state;
|
|
139
|
-
}
|
|
140
|
-
newState.tree = state.tree ? state.tree : /* @__PURE__ */ new Map();
|
|
141
|
-
switch (action.type) {
|
|
142
|
-
case "RECEIVE_BLOCKS":
|
|
143
|
-
case "INSERT_BLOCKS": {
|
|
144
|
-
newState.tree = new Map(newState.tree);
|
|
145
|
-
updateBlockTreeForBlocks(newState, action.blocks);
|
|
146
|
-
updateParentInnerBlocksInTree(
|
|
147
|
-
newState,
|
|
148
|
-
action.rootClientId ? [action.rootClientId] : [""],
|
|
149
|
-
true
|
|
150
|
-
);
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
case "UPDATE_BLOCK":
|
|
154
|
-
newState.tree = new Map(newState.tree);
|
|
155
|
-
newState.tree.set(action.clientId, {
|
|
156
|
-
...newState.tree.get(action.clientId),
|
|
157
|
-
...newState.byClientId.get(action.clientId),
|
|
158
|
-
attributes: newState.attributes.get(action.clientId)
|
|
159
|
-
});
|
|
160
|
-
updateParentInnerBlocksInTree(
|
|
161
|
-
newState,
|
|
162
|
-
[action.clientId],
|
|
163
|
-
false
|
|
164
|
-
);
|
|
165
|
-
break;
|
|
166
|
-
case "SYNC_DERIVED_BLOCK_ATTRIBUTES":
|
|
167
|
-
case "UPDATE_BLOCK_ATTRIBUTES": {
|
|
168
|
-
newState.tree = new Map(newState.tree);
|
|
169
|
-
action.clientIds.forEach((clientId) => {
|
|
170
|
-
newState.tree.set(clientId, {
|
|
171
|
-
...newState.tree.get(clientId),
|
|
172
|
-
attributes: newState.attributes.get(clientId)
|
|
173
|
-
});
|
|
174
|
-
});
|
|
175
|
-
updateParentInnerBlocksInTree(
|
|
176
|
-
newState,
|
|
177
|
-
action.clientIds,
|
|
178
|
-
false
|
|
179
|
-
);
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
case "REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
183
|
-
const inserterClientIds = getFlattenedClientIds(
|
|
184
|
-
action.blocks
|
|
185
|
-
);
|
|
186
|
-
newState.tree = new Map(newState.tree);
|
|
187
|
-
action.replacedClientIds.forEach((clientId) => {
|
|
188
|
-
newState.tree.delete(clientId);
|
|
189
|
-
if (!inserterClientIds[clientId]) {
|
|
190
|
-
newState.tree.delete("controlled||" + clientId);
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
updateBlockTreeForBlocks(newState, action.blocks);
|
|
194
|
-
updateParentInnerBlocksInTree(
|
|
195
|
-
newState,
|
|
196
|
-
action.blocks.map((b) => b.clientId),
|
|
197
|
-
false
|
|
198
|
-
);
|
|
199
|
-
const parentsOfRemovedBlocks2 = [];
|
|
200
|
-
for (const clientId of action.clientIds) {
|
|
201
|
-
const parentId = state.parents.get(clientId);
|
|
202
|
-
if (parentId !== void 0 && (parentId === "" || newState.byClientId.get(parentId))) {
|
|
203
|
-
parentsOfRemovedBlocks2.push(parentId);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
updateParentInnerBlocksInTree(
|
|
207
|
-
newState,
|
|
208
|
-
parentsOfRemovedBlocks2,
|
|
209
|
-
true
|
|
210
|
-
);
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
case "REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":
|
|
214
|
-
const parentsOfRemovedBlocks = [];
|
|
215
|
-
for (const clientId of action.clientIds) {
|
|
216
|
-
const parentId = state.parents.get(clientId);
|
|
217
|
-
if (parentId !== void 0 && (parentId === "" || newState.byClientId.get(parentId))) {
|
|
218
|
-
parentsOfRemovedBlocks.push(parentId);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
newState.tree = new Map(newState.tree);
|
|
222
|
-
action.removedClientIds.forEach((clientId) => {
|
|
223
|
-
newState.tree.delete(clientId);
|
|
224
|
-
newState.tree.delete("controlled||" + clientId);
|
|
225
|
-
});
|
|
226
|
-
updateParentInnerBlocksInTree(
|
|
227
|
-
newState,
|
|
228
|
-
parentsOfRemovedBlocks,
|
|
229
|
-
true
|
|
230
|
-
);
|
|
231
|
-
break;
|
|
232
|
-
case "MOVE_BLOCKS_TO_POSITION": {
|
|
233
|
-
const updatedBlockUids = [];
|
|
234
|
-
if (action.fromRootClientId) {
|
|
235
|
-
updatedBlockUids.push(action.fromRootClientId);
|
|
236
|
-
} else {
|
|
237
|
-
updatedBlockUids.push("");
|
|
238
|
-
}
|
|
239
|
-
if (action.toRootClientId) {
|
|
240
|
-
updatedBlockUids.push(action.toRootClientId);
|
|
241
|
-
}
|
|
242
|
-
newState.tree = new Map(newState.tree);
|
|
243
|
-
updateParentInnerBlocksInTree(
|
|
244
|
-
newState,
|
|
245
|
-
updatedBlockUids,
|
|
246
|
-
true
|
|
247
|
-
);
|
|
248
|
-
break;
|
|
249
|
-
}
|
|
250
|
-
case "MOVE_BLOCKS_UP":
|
|
251
|
-
case "MOVE_BLOCKS_DOWN": {
|
|
252
|
-
const updatedBlockUids = [
|
|
253
|
-
action.rootClientId ? action.rootClientId : ""
|
|
254
|
-
];
|
|
255
|
-
newState.tree = new Map(newState.tree);
|
|
256
|
-
updateParentInnerBlocksInTree(
|
|
257
|
-
newState,
|
|
258
|
-
updatedBlockUids,
|
|
259
|
-
true
|
|
260
|
-
);
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
case "SAVE_REUSABLE_BLOCK_SUCCESS": {
|
|
264
|
-
const updatedBlockUids = [];
|
|
265
|
-
newState.attributes.forEach((attributes, clientId) => {
|
|
266
|
-
if (newState.byClientId.get(clientId).name === "core/block" && attributes.ref === action.updatedId) {
|
|
267
|
-
updatedBlockUids.push(clientId);
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
newState.tree = new Map(newState.tree);
|
|
271
|
-
updatedBlockUids.forEach((clientId) => {
|
|
272
|
-
newState.tree.set(clientId, {
|
|
273
|
-
...newState.byClientId.get(clientId),
|
|
274
|
-
attributes: newState.attributes.get(clientId),
|
|
275
|
-
innerBlocks: newState.tree.get(clientId).innerBlocks
|
|
276
|
-
});
|
|
277
|
-
});
|
|
278
|
-
updateParentInnerBlocksInTree(
|
|
279
|
-
newState,
|
|
280
|
-
updatedBlockUids,
|
|
281
|
-
false
|
|
282
|
-
);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
return newState;
|
|
286
|
-
};
|
|
287
|
-
function withPersistentBlockChange(reducer) {
|
|
288
|
-
let lastAction;
|
|
289
|
-
let markNextChangeAsNotPersistent = false;
|
|
290
|
-
let explicitPersistent;
|
|
291
|
-
return (state, action) => {
|
|
292
|
-
let nextState = reducer(state, action);
|
|
293
|
-
let nextIsPersistentChange;
|
|
294
|
-
if (action.type === "SET_EXPLICIT_PERSISTENT") {
|
|
295
|
-
explicitPersistent = action.isPersistentChange;
|
|
296
|
-
nextIsPersistentChange = state.isPersistentChange ?? true;
|
|
297
|
-
}
|
|
298
|
-
if (explicitPersistent !== void 0) {
|
|
299
|
-
nextIsPersistentChange = explicitPersistent;
|
|
300
|
-
return nextIsPersistentChange === nextState.isPersistentChange ? nextState : {
|
|
301
|
-
...nextState,
|
|
302
|
-
isPersistentChange: nextIsPersistentChange
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
const isExplicitPersistentChange = action.type === "MARK_LAST_CHANGE_AS_PERSISTENT" || markNextChangeAsNotPersistent;
|
|
306
|
-
if (state === nextState && !isExplicitPersistentChange) {
|
|
307
|
-
markNextChangeAsNotPersistent = action.type === "MARK_NEXT_CHANGE_AS_NOT_PERSISTENT";
|
|
308
|
-
nextIsPersistentChange = state?.isPersistentChange ?? true;
|
|
309
|
-
if (state.isPersistentChange === nextIsPersistentChange) {
|
|
310
|
-
return state;
|
|
311
|
-
}
|
|
312
|
-
return {
|
|
313
|
-
...nextState,
|
|
314
|
-
isPersistentChange: nextIsPersistentChange
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
nextState = {
|
|
318
|
-
...nextState,
|
|
319
|
-
isPersistentChange: isExplicitPersistentChange ? !markNextChangeAsNotPersistent : !isUpdatingSameBlockAttribute(action, lastAction)
|
|
320
|
-
};
|
|
321
|
-
lastAction = action;
|
|
322
|
-
markNextChangeAsNotPersistent = action.type === "MARK_NEXT_CHANGE_AS_NOT_PERSISTENT";
|
|
323
|
-
return nextState;
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
function withIgnoredBlockChange(reducer) {
|
|
327
|
-
const IGNORED_ACTION_TYPES = /* @__PURE__ */ new Set(["RECEIVE_BLOCKS"]);
|
|
328
|
-
return (state, action) => {
|
|
329
|
-
const nextState = reducer(state, action);
|
|
330
|
-
if (nextState !== state) {
|
|
331
|
-
nextState.isIgnoredChange = IGNORED_ACTION_TYPES.has(action.type);
|
|
332
|
-
}
|
|
333
|
-
return nextState;
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
var withInnerBlocksRemoveCascade = (reducer) => (state, action) => {
|
|
337
|
-
const getAllChildren = (clientIds) => {
|
|
338
|
-
let result = clientIds;
|
|
339
|
-
for (let i = 0; i < result.length; i++) {
|
|
340
|
-
if (!state.order.get(result[i]) || action.keepControlledInnerBlocks && action.keepControlledInnerBlocks[result[i]]) {
|
|
341
|
-
continue;
|
|
342
|
-
}
|
|
343
|
-
if (result === clientIds) {
|
|
344
|
-
result = [...result];
|
|
345
|
-
}
|
|
346
|
-
result.push(...state.order.get(result[i]));
|
|
347
|
-
}
|
|
348
|
-
return result;
|
|
349
|
-
};
|
|
350
|
-
if (state) {
|
|
351
|
-
switch (action.type) {
|
|
352
|
-
case "REMOVE_BLOCKS":
|
|
353
|
-
action = {
|
|
354
|
-
...action,
|
|
355
|
-
type: "REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",
|
|
356
|
-
removedClientIds: getAllChildren(action.clientIds)
|
|
357
|
-
};
|
|
358
|
-
break;
|
|
359
|
-
case "REPLACE_BLOCKS":
|
|
360
|
-
action = {
|
|
361
|
-
...action,
|
|
362
|
-
type: "REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",
|
|
363
|
-
replacedClientIds: getAllChildren(action.clientIds)
|
|
364
|
-
};
|
|
365
|
-
break;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
return reducer(state, action);
|
|
369
|
-
};
|
|
370
|
-
var withBlockReset = (reducer) => (state, action) => {
|
|
371
|
-
if (action.type === "RESET_BLOCKS") {
|
|
372
|
-
const newState = {
|
|
373
|
-
...state,
|
|
374
|
-
byClientId: new Map(
|
|
375
|
-
getFlattenedBlocksWithoutAttributes(action.blocks)
|
|
376
|
-
),
|
|
377
|
-
attributes: new Map(getFlattenedBlockAttributes(action.blocks)),
|
|
378
|
-
order: mapBlockOrder(action.blocks),
|
|
379
|
-
parents: new Map(mapBlockParents(action.blocks)),
|
|
380
|
-
controlledInnerBlocks: {}
|
|
381
|
-
};
|
|
382
|
-
newState.tree = new Map(state?.tree);
|
|
383
|
-
updateBlockTreeForBlocks(newState, action.blocks);
|
|
384
|
-
newState.tree.set("", {
|
|
385
|
-
innerBlocks: action.blocks.map(
|
|
386
|
-
(subBlock) => newState.tree.get(subBlock.clientId)
|
|
387
|
-
)
|
|
388
|
-
});
|
|
389
|
-
return newState;
|
|
390
|
-
}
|
|
391
|
-
return reducer(state, action);
|
|
392
|
-
};
|
|
393
|
-
var withReplaceInnerBlocks = (reducer) => (state, action) => {
|
|
394
|
-
if (action.type !== "REPLACE_INNER_BLOCKS") {
|
|
395
|
-
return reducer(state, action);
|
|
396
|
-
}
|
|
397
|
-
const nestedControllers = {};
|
|
398
|
-
if (Object.keys(state.controlledInnerBlocks).length) {
|
|
399
|
-
const stack = [...action.blocks];
|
|
400
|
-
while (stack.length) {
|
|
401
|
-
const { innerBlocks, ...block } = stack.shift();
|
|
402
|
-
stack.push(...innerBlocks);
|
|
403
|
-
if (!!state.controlledInnerBlocks[block.clientId]) {
|
|
404
|
-
nestedControllers[block.clientId] = true;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
let stateAfterBlocksRemoval = state;
|
|
409
|
-
if (state.order.get(action.rootClientId)) {
|
|
410
|
-
stateAfterBlocksRemoval = reducer(stateAfterBlocksRemoval, {
|
|
411
|
-
type: "REMOVE_BLOCKS",
|
|
412
|
-
keepControlledInnerBlocks: nestedControllers,
|
|
413
|
-
clientIds: state.order.get(action.rootClientId)
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
let stateAfterInsert = stateAfterBlocksRemoval;
|
|
417
|
-
if (action.blocks.length) {
|
|
418
|
-
stateAfterInsert = reducer(stateAfterInsert, {
|
|
419
|
-
...action,
|
|
420
|
-
type: "INSERT_BLOCKS",
|
|
421
|
-
index: 0
|
|
422
|
-
});
|
|
423
|
-
const stateAfterInsertOrder = new Map(stateAfterInsert.order);
|
|
424
|
-
Object.keys(nestedControllers).forEach((key) => {
|
|
425
|
-
if (state.order.get(key)) {
|
|
426
|
-
stateAfterInsertOrder.set(key, state.order.get(key));
|
|
427
|
-
}
|
|
428
|
-
});
|
|
429
|
-
stateAfterInsert.order = stateAfterInsertOrder;
|
|
430
|
-
stateAfterInsert.tree = new Map(stateAfterInsert.tree);
|
|
431
|
-
Object.keys(nestedControllers).forEach((_key) => {
|
|
432
|
-
const key = `controlled||${_key}`;
|
|
433
|
-
if (state.tree.has(key)) {
|
|
434
|
-
stateAfterInsert.tree.set(key, state.tree.get(key));
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
return stateAfterInsert;
|
|
439
|
-
};
|
|
440
|
-
var withSaveReusableBlock = (reducer) => (state, action) => {
|
|
441
|
-
if (state && action.type === "SAVE_REUSABLE_BLOCK_SUCCESS") {
|
|
442
|
-
const { id, updatedId } = action;
|
|
443
|
-
if (id === updatedId) {
|
|
444
|
-
return state;
|
|
445
|
-
}
|
|
446
|
-
state = { ...state };
|
|
447
|
-
state.attributes = new Map(state.attributes);
|
|
448
|
-
state.attributes.forEach((attributes, clientId) => {
|
|
449
|
-
const { name } = state.byClientId.get(clientId);
|
|
450
|
-
if (name === "core/block" && attributes.ref === id) {
|
|
451
|
-
state.attributes.set(clientId, {
|
|
452
|
-
...attributes,
|
|
453
|
-
ref: updatedId
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
return reducer(state, action);
|
|
459
|
-
};
|
|
460
|
-
var withResetControlledBlocks = (reducer) => (state, action) => {
|
|
461
|
-
if (action.type === "SET_HAS_CONTROLLED_INNER_BLOCKS") {
|
|
462
|
-
const tempState = reducer(state, {
|
|
463
|
-
type: "REPLACE_INNER_BLOCKS",
|
|
464
|
-
rootClientId: action.clientId,
|
|
465
|
-
blocks: []
|
|
466
|
-
});
|
|
467
|
-
return reducer(tempState, action);
|
|
468
|
-
}
|
|
469
|
-
return reducer(state, action);
|
|
470
|
-
};
|
|
471
|
-
var blocks = pipe(
|
|
472
|
-
combineReducers,
|
|
473
|
-
withSaveReusableBlock,
|
|
474
|
-
// Needs to be before withBlockCache.
|
|
475
|
-
withBlockTree,
|
|
476
|
-
// Needs to be before withInnerBlocksRemoveCascade.
|
|
477
|
-
withInnerBlocksRemoveCascade,
|
|
478
|
-
withReplaceInnerBlocks,
|
|
479
|
-
// Needs to be after withInnerBlocksRemoveCascade.
|
|
480
|
-
withBlockReset,
|
|
481
|
-
withPersistentBlockChange,
|
|
482
|
-
withIgnoredBlockChange,
|
|
483
|
-
withResetControlledBlocks
|
|
484
|
-
)({
|
|
485
|
-
// The state is using a Map instead of a plain object for performance reasons.
|
|
486
|
-
// You can run the "./test/performance.js" unit test to check the impact
|
|
487
|
-
// code changes can have on this reducer.
|
|
488
|
-
byClientId(state = /* @__PURE__ */ new Map(), action) {
|
|
489
|
-
switch (action.type) {
|
|
490
|
-
case "RECEIVE_BLOCKS":
|
|
491
|
-
case "INSERT_BLOCKS": {
|
|
492
|
-
const newState = new Map(state);
|
|
493
|
-
getFlattenedBlocksWithoutAttributes(action.blocks).forEach(
|
|
494
|
-
([key, value]) => {
|
|
495
|
-
newState.set(key, value);
|
|
496
|
-
}
|
|
497
|
-
);
|
|
498
|
-
return newState;
|
|
499
|
-
}
|
|
500
|
-
case "UPDATE_BLOCK": {
|
|
501
|
-
if (!state.has(action.clientId)) {
|
|
502
|
-
return state;
|
|
503
|
-
}
|
|
504
|
-
const { attributes, ...changes } = action.updates;
|
|
505
|
-
if (Object.values(changes).length === 0) {
|
|
506
|
-
return state;
|
|
507
|
-
}
|
|
508
|
-
const newState = new Map(state);
|
|
509
|
-
newState.set(action.clientId, {
|
|
510
|
-
...state.get(action.clientId),
|
|
511
|
-
...changes
|
|
512
|
-
});
|
|
513
|
-
return newState;
|
|
514
|
-
}
|
|
515
|
-
case "REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
516
|
-
if (!action.blocks) {
|
|
517
|
-
return state;
|
|
518
|
-
}
|
|
519
|
-
const newState = new Map(state);
|
|
520
|
-
action.replacedClientIds.forEach((clientId) => {
|
|
521
|
-
newState.delete(clientId);
|
|
522
|
-
});
|
|
523
|
-
getFlattenedBlocksWithoutAttributes(action.blocks).forEach(
|
|
524
|
-
([key, value]) => {
|
|
525
|
-
newState.set(key, value);
|
|
526
|
-
}
|
|
527
|
-
);
|
|
528
|
-
return newState;
|
|
529
|
-
}
|
|
530
|
-
case "REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
531
|
-
const newState = new Map(state);
|
|
532
|
-
action.removedClientIds.forEach((clientId) => {
|
|
533
|
-
newState.delete(clientId);
|
|
534
|
-
});
|
|
535
|
-
return newState;
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
return state;
|
|
539
|
-
},
|
|
540
|
-
// The state is using a Map instead of a plain object for performance reasons.
|
|
541
|
-
// You can run the "./test/performance.js" unit test to check the impact
|
|
542
|
-
// code changes can have on this reducer.
|
|
543
|
-
attributes(state = /* @__PURE__ */ new Map(), action) {
|
|
544
|
-
switch (action.type) {
|
|
545
|
-
case "RECEIVE_BLOCKS":
|
|
546
|
-
case "INSERT_BLOCKS": {
|
|
547
|
-
const newState = new Map(state);
|
|
548
|
-
getFlattenedBlockAttributes(action.blocks).forEach(
|
|
549
|
-
([key, value]) => {
|
|
550
|
-
newState.set(key, value);
|
|
551
|
-
}
|
|
552
|
-
);
|
|
553
|
-
return newState;
|
|
554
|
-
}
|
|
555
|
-
case "UPDATE_BLOCK": {
|
|
556
|
-
if (!state.get(action.clientId) || !action.updates.attributes) {
|
|
557
|
-
return state;
|
|
558
|
-
}
|
|
559
|
-
const newState = new Map(state);
|
|
560
|
-
newState.set(action.clientId, {
|
|
561
|
-
...state.get(action.clientId),
|
|
562
|
-
...action.updates.attributes
|
|
563
|
-
});
|
|
564
|
-
return newState;
|
|
565
|
-
}
|
|
566
|
-
case "SYNC_DERIVED_BLOCK_ATTRIBUTES":
|
|
567
|
-
case "UPDATE_BLOCK_ATTRIBUTES": {
|
|
568
|
-
if (action.clientIds.every((id) => !state.get(id))) {
|
|
569
|
-
return state;
|
|
570
|
-
}
|
|
571
|
-
let hasChange = false;
|
|
572
|
-
const newState = new Map(state);
|
|
573
|
-
for (const clientId of action.clientIds) {
|
|
574
|
-
const updatedAttributeEntries = Object.entries(
|
|
575
|
-
!!action.options?.uniqueByBlock ? action.attributes[clientId] : action.attributes ?? {}
|
|
576
|
-
);
|
|
577
|
-
if (updatedAttributeEntries.length === 0) {
|
|
578
|
-
continue;
|
|
579
|
-
}
|
|
580
|
-
let hasUpdatedAttributes = false;
|
|
581
|
-
const existingAttributes = state.get(clientId);
|
|
582
|
-
const newAttributes = {};
|
|
583
|
-
updatedAttributeEntries.forEach(([key, value]) => {
|
|
584
|
-
if (existingAttributes[key] !== value) {
|
|
585
|
-
hasUpdatedAttributes = true;
|
|
586
|
-
newAttributes[key] = value;
|
|
587
|
-
}
|
|
588
|
-
});
|
|
589
|
-
hasChange = hasChange || hasUpdatedAttributes;
|
|
590
|
-
if (hasUpdatedAttributes) {
|
|
591
|
-
newState.set(clientId, {
|
|
592
|
-
...existingAttributes,
|
|
593
|
-
...newAttributes
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
return hasChange ? newState : state;
|
|
598
|
-
}
|
|
599
|
-
case "REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
600
|
-
if (!action.blocks) {
|
|
601
|
-
return state;
|
|
602
|
-
}
|
|
603
|
-
const newState = new Map(state);
|
|
604
|
-
action.replacedClientIds.forEach((clientId) => {
|
|
605
|
-
newState.delete(clientId);
|
|
606
|
-
});
|
|
607
|
-
getFlattenedBlockAttributes(action.blocks).forEach(
|
|
608
|
-
([key, value]) => {
|
|
609
|
-
newState.set(key, value);
|
|
610
|
-
}
|
|
611
|
-
);
|
|
612
|
-
return newState;
|
|
613
|
-
}
|
|
614
|
-
case "REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
615
|
-
const newState = new Map(state);
|
|
616
|
-
action.removedClientIds.forEach((clientId) => {
|
|
617
|
-
newState.delete(clientId);
|
|
618
|
-
});
|
|
619
|
-
return newState;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
return state;
|
|
623
|
-
},
|
|
624
|
-
// The state is using a Map instead of a plain object for performance reasons.
|
|
625
|
-
// You can run the "./test/performance.js" unit test to check the impact
|
|
626
|
-
// code changes can have on this reducer.
|
|
627
|
-
order(state = /* @__PURE__ */ new Map(), action) {
|
|
628
|
-
switch (action.type) {
|
|
629
|
-
case "RECEIVE_BLOCKS": {
|
|
630
|
-
const blockOrder = mapBlockOrder(action.blocks);
|
|
631
|
-
const newState = new Map(state);
|
|
632
|
-
blockOrder.forEach((order, clientId) => {
|
|
633
|
-
if (clientId !== "") {
|
|
634
|
-
newState.set(clientId, order);
|
|
635
|
-
}
|
|
636
|
-
});
|
|
637
|
-
newState.set(
|
|
638
|
-
"",
|
|
639
|
-
(state.get("") ?? []).concat(blockOrder[""])
|
|
640
|
-
);
|
|
641
|
-
return newState;
|
|
642
|
-
}
|
|
643
|
-
case "INSERT_BLOCKS": {
|
|
644
|
-
const { rootClientId = "" } = action;
|
|
645
|
-
const subState = state.get(rootClientId) || [];
|
|
646
|
-
const mappedBlocks = mapBlockOrder(
|
|
647
|
-
action.blocks,
|
|
648
|
-
rootClientId
|
|
649
|
-
);
|
|
650
|
-
const { index = subState.length } = action;
|
|
651
|
-
const newState = new Map(state);
|
|
652
|
-
mappedBlocks.forEach((order, clientId) => {
|
|
653
|
-
newState.set(clientId, order);
|
|
654
|
-
});
|
|
655
|
-
newState.set(
|
|
656
|
-
rootClientId,
|
|
657
|
-
insertAt(
|
|
658
|
-
subState,
|
|
659
|
-
mappedBlocks.get(rootClientId),
|
|
660
|
-
index
|
|
661
|
-
)
|
|
662
|
-
);
|
|
663
|
-
return newState;
|
|
664
|
-
}
|
|
665
|
-
case "MOVE_BLOCKS_TO_POSITION": {
|
|
666
|
-
const {
|
|
667
|
-
fromRootClientId = "",
|
|
668
|
-
toRootClientId = "",
|
|
669
|
-
clientIds
|
|
670
|
-
} = action;
|
|
671
|
-
const { index = state.get(toRootClientId).length } = action;
|
|
672
|
-
if (fromRootClientId === toRootClientId) {
|
|
673
|
-
const subState = state.get(toRootClientId);
|
|
674
|
-
const fromIndex = subState.indexOf(clientIds[0]);
|
|
675
|
-
const newState2 = new Map(state);
|
|
676
|
-
newState2.set(
|
|
677
|
-
toRootClientId,
|
|
678
|
-
moveTo(
|
|
679
|
-
state.get(toRootClientId),
|
|
680
|
-
fromIndex,
|
|
681
|
-
index,
|
|
682
|
-
clientIds.length
|
|
683
|
-
)
|
|
684
|
-
);
|
|
685
|
-
return newState2;
|
|
686
|
-
}
|
|
687
|
-
const newState = new Map(state);
|
|
688
|
-
newState.set(
|
|
689
|
-
fromRootClientId,
|
|
690
|
-
state.get(fromRootClientId)?.filter((id) => !clientIds.includes(id)) ?? []
|
|
691
|
-
);
|
|
692
|
-
newState.set(
|
|
693
|
-
toRootClientId,
|
|
694
|
-
insertAt(state.get(toRootClientId), clientIds, index)
|
|
695
|
-
);
|
|
696
|
-
return newState;
|
|
697
|
-
}
|
|
698
|
-
case "MOVE_BLOCKS_UP": {
|
|
699
|
-
const { clientIds, rootClientId = "" } = action;
|
|
700
|
-
const firstClientId = clientIds[0];
|
|
701
|
-
const subState = state.get(rootClientId);
|
|
702
|
-
if (!subState.length || firstClientId === subState[0]) {
|
|
703
|
-
return state;
|
|
704
|
-
}
|
|
705
|
-
const firstIndex = subState.indexOf(firstClientId);
|
|
706
|
-
const newState = new Map(state);
|
|
707
|
-
newState.set(
|
|
708
|
-
rootClientId,
|
|
709
|
-
moveTo(
|
|
710
|
-
subState,
|
|
711
|
-
firstIndex,
|
|
712
|
-
firstIndex - 1,
|
|
713
|
-
clientIds.length
|
|
714
|
-
)
|
|
715
|
-
);
|
|
716
|
-
return newState;
|
|
717
|
-
}
|
|
718
|
-
case "MOVE_BLOCKS_DOWN": {
|
|
719
|
-
const { clientIds, rootClientId = "" } = action;
|
|
720
|
-
const firstClientId = clientIds[0];
|
|
721
|
-
const lastClientId = clientIds[clientIds.length - 1];
|
|
722
|
-
const subState = state.get(rootClientId);
|
|
723
|
-
if (!subState.length || lastClientId === subState[subState.length - 1]) {
|
|
724
|
-
return state;
|
|
725
|
-
}
|
|
726
|
-
const firstIndex = subState.indexOf(firstClientId);
|
|
727
|
-
const newState = new Map(state);
|
|
728
|
-
newState.set(
|
|
729
|
-
rootClientId,
|
|
730
|
-
moveTo(
|
|
731
|
-
subState,
|
|
732
|
-
firstIndex,
|
|
733
|
-
firstIndex + 1,
|
|
734
|
-
clientIds.length
|
|
735
|
-
)
|
|
736
|
-
);
|
|
737
|
-
return newState;
|
|
738
|
-
}
|
|
739
|
-
case "REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
740
|
-
const { clientIds } = action;
|
|
741
|
-
if (!action.blocks) {
|
|
742
|
-
return state;
|
|
743
|
-
}
|
|
744
|
-
const mappedBlocks = mapBlockOrder(action.blocks);
|
|
745
|
-
const newState = new Map(state);
|
|
746
|
-
action.replacedClientIds.forEach((clientId) => {
|
|
747
|
-
newState.delete(clientId);
|
|
748
|
-
});
|
|
749
|
-
mappedBlocks.forEach((order, clientId) => {
|
|
750
|
-
if (clientId !== "") {
|
|
751
|
-
newState.set(clientId, order);
|
|
752
|
-
}
|
|
753
|
-
});
|
|
754
|
-
newState.forEach((order, clientId) => {
|
|
755
|
-
const newSubOrder = Object.values(order).reduce(
|
|
756
|
-
(result, subClientId) => {
|
|
757
|
-
if (subClientId === clientIds[0]) {
|
|
758
|
-
return [...result, ...mappedBlocks.get("")];
|
|
759
|
-
}
|
|
760
|
-
if (clientIds.indexOf(subClientId) === -1) {
|
|
761
|
-
result.push(subClientId);
|
|
762
|
-
}
|
|
763
|
-
return result;
|
|
764
|
-
},
|
|
765
|
-
[]
|
|
766
|
-
);
|
|
767
|
-
newState.set(clientId, newSubOrder);
|
|
768
|
-
});
|
|
769
|
-
return newState;
|
|
770
|
-
}
|
|
771
|
-
case "REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
772
|
-
const newState = new Map(state);
|
|
773
|
-
action.removedClientIds.forEach((clientId) => {
|
|
774
|
-
newState.delete(clientId);
|
|
775
|
-
});
|
|
776
|
-
newState.forEach((order, clientId) => {
|
|
777
|
-
const newSubOrder = order?.filter(
|
|
778
|
-
(id) => !action.removedClientIds.includes(id)
|
|
779
|
-
) ?? [];
|
|
780
|
-
if (newSubOrder.length !== order.length) {
|
|
781
|
-
newState.set(clientId, newSubOrder);
|
|
782
|
-
}
|
|
783
|
-
});
|
|
784
|
-
return newState;
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
return state;
|
|
788
|
-
},
|
|
789
|
-
// While technically redundant data as the inverse of `order`, it serves as
|
|
790
|
-
// an optimization for the selectors which derive the ancestry of a block.
|
|
791
|
-
parents(state = /* @__PURE__ */ new Map(), action) {
|
|
792
|
-
switch (action.type) {
|
|
793
|
-
case "RECEIVE_BLOCKS": {
|
|
794
|
-
const newState = new Map(state);
|
|
795
|
-
mapBlockParents(action.blocks).forEach(
|
|
796
|
-
([key, value]) => {
|
|
797
|
-
newState.set(key, value);
|
|
798
|
-
}
|
|
799
|
-
);
|
|
800
|
-
return newState;
|
|
801
|
-
}
|
|
802
|
-
case "INSERT_BLOCKS": {
|
|
803
|
-
const newState = new Map(state);
|
|
804
|
-
mapBlockParents(
|
|
805
|
-
action.blocks,
|
|
806
|
-
action.rootClientId || ""
|
|
807
|
-
).forEach(([key, value]) => {
|
|
808
|
-
newState.set(key, value);
|
|
809
|
-
});
|
|
810
|
-
return newState;
|
|
811
|
-
}
|
|
812
|
-
case "MOVE_BLOCKS_TO_POSITION": {
|
|
813
|
-
const newState = new Map(state);
|
|
814
|
-
action.clientIds.forEach((id) => {
|
|
815
|
-
newState.set(id, action.toRootClientId || "");
|
|
816
|
-
});
|
|
817
|
-
return newState;
|
|
818
|
-
}
|
|
819
|
-
case "REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
820
|
-
const newState = new Map(state);
|
|
821
|
-
action.replacedClientIds.forEach((clientId) => {
|
|
822
|
-
newState.delete(clientId);
|
|
823
|
-
});
|
|
824
|
-
mapBlockParents(
|
|
825
|
-
action.blocks,
|
|
826
|
-
state.get(action.clientIds[0])
|
|
827
|
-
).forEach(([key, value]) => {
|
|
828
|
-
newState.set(key, value);
|
|
829
|
-
});
|
|
830
|
-
return newState;
|
|
831
|
-
}
|
|
832
|
-
case "REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN": {
|
|
833
|
-
const newState = new Map(state);
|
|
834
|
-
action.removedClientIds.forEach((clientId) => {
|
|
835
|
-
newState.delete(clientId);
|
|
836
|
-
});
|
|
837
|
-
return newState;
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
return state;
|
|
841
|
-
},
|
|
842
|
-
controlledInnerBlocks(state = {}, { type, clientId, hasControlledInnerBlocks }) {
|
|
843
|
-
if (type === "SET_HAS_CONTROLLED_INNER_BLOCKS") {
|
|
844
|
-
return {
|
|
845
|
-
...state,
|
|
846
|
-
[clientId]: hasControlledInnerBlocks
|
|
847
|
-
};
|
|
848
|
-
}
|
|
849
|
-
return state;
|
|
850
|
-
}
|
|
851
|
-
});
|
|
852
|
-
function isBlockInterfaceHidden(state = false, action) {
|
|
853
|
-
switch (action.type) {
|
|
854
|
-
case "HIDE_BLOCK_INTERFACE":
|
|
855
|
-
return true;
|
|
856
|
-
case "SHOW_BLOCK_INTERFACE":
|
|
857
|
-
return false;
|
|
858
|
-
}
|
|
859
|
-
return state;
|
|
860
|
-
}
|
|
861
|
-
function isTyping(state = false, action) {
|
|
862
|
-
switch (action.type) {
|
|
863
|
-
case "START_TYPING":
|
|
864
|
-
return true;
|
|
865
|
-
case "STOP_TYPING":
|
|
866
|
-
return false;
|
|
867
|
-
}
|
|
868
|
-
return state;
|
|
869
|
-
}
|
|
870
|
-
function isDragging(state = false, action) {
|
|
871
|
-
switch (action.type) {
|
|
872
|
-
case "START_DRAGGING":
|
|
873
|
-
return true;
|
|
874
|
-
case "STOP_DRAGGING":
|
|
875
|
-
return false;
|
|
876
|
-
}
|
|
877
|
-
return state;
|
|
878
|
-
}
|
|
879
|
-
function draggedBlocks(state = [], action) {
|
|
880
|
-
switch (action.type) {
|
|
881
|
-
case "START_DRAGGING_BLOCKS":
|
|
882
|
-
return action.clientIds;
|
|
883
|
-
case "STOP_DRAGGING_BLOCKS":
|
|
884
|
-
return [];
|
|
885
|
-
}
|
|
886
|
-
return state;
|
|
887
|
-
}
|
|
888
|
-
function blockVisibility(state = {}, action) {
|
|
889
|
-
if (action.type === "SET_BLOCK_VISIBILITY") {
|
|
890
|
-
return {
|
|
891
|
-
...state,
|
|
892
|
-
...action.updates
|
|
893
|
-
};
|
|
894
|
-
}
|
|
895
|
-
return state;
|
|
896
|
-
}
|
|
897
|
-
function selectionHelper(state = {}, action) {
|
|
898
|
-
switch (action.type) {
|
|
899
|
-
case "CLEAR_SELECTED_BLOCK": {
|
|
900
|
-
if (state.clientId) {
|
|
901
|
-
return {};
|
|
902
|
-
}
|
|
903
|
-
return state;
|
|
904
|
-
}
|
|
905
|
-
case "SELECT_BLOCK":
|
|
906
|
-
if (action.clientId === state.clientId) {
|
|
907
|
-
return state;
|
|
908
|
-
}
|
|
909
|
-
return { clientId: action.clientId };
|
|
910
|
-
case "REPLACE_INNER_BLOCKS":
|
|
911
|
-
case "INSERT_BLOCKS": {
|
|
912
|
-
if (!action.updateSelection || !action.blocks.length) {
|
|
913
|
-
return state;
|
|
914
|
-
}
|
|
915
|
-
return { clientId: action.blocks[0].clientId };
|
|
916
|
-
}
|
|
917
|
-
case "REMOVE_BLOCKS":
|
|
918
|
-
if (!action.clientIds || !action.clientIds.length || action.clientIds.indexOf(state.clientId) === -1) {
|
|
919
|
-
return state;
|
|
920
|
-
}
|
|
921
|
-
return {};
|
|
922
|
-
case "REPLACE_BLOCKS": {
|
|
923
|
-
if (action.clientIds.indexOf(state.clientId) === -1) {
|
|
924
|
-
return state;
|
|
925
|
-
}
|
|
926
|
-
const blockToSelect = action.blocks[action.indexToSelect] || action.blocks[action.blocks.length - 1];
|
|
927
|
-
if (!blockToSelect) {
|
|
928
|
-
return {};
|
|
929
|
-
}
|
|
930
|
-
if (blockToSelect.clientId === state.clientId) {
|
|
931
|
-
return state;
|
|
932
|
-
}
|
|
933
|
-
return { clientId: blockToSelect.clientId };
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
return state;
|
|
937
|
-
}
|
|
938
|
-
function selection(state = {}, action) {
|
|
939
|
-
switch (action.type) {
|
|
940
|
-
case "SELECTION_CHANGE":
|
|
941
|
-
if (action.clientId) {
|
|
942
|
-
return {
|
|
943
|
-
selectionStart: {
|
|
944
|
-
clientId: action.clientId,
|
|
945
|
-
attributeKey: action.attributeKey,
|
|
946
|
-
offset: action.startOffset
|
|
947
|
-
},
|
|
948
|
-
selectionEnd: {
|
|
949
|
-
clientId: action.clientId,
|
|
950
|
-
attributeKey: action.attributeKey,
|
|
951
|
-
offset: action.endOffset
|
|
952
|
-
}
|
|
953
|
-
};
|
|
954
|
-
}
|
|
955
|
-
return {
|
|
956
|
-
selectionStart: action.start || state.selectionStart,
|
|
957
|
-
selectionEnd: action.end || state.selectionEnd
|
|
958
|
-
};
|
|
959
|
-
case "RESET_SELECTION":
|
|
960
|
-
const { selectionStart: selectionStart2, selectionEnd: selectionEnd2 } = action;
|
|
961
|
-
return {
|
|
962
|
-
selectionStart: selectionStart2,
|
|
963
|
-
selectionEnd: selectionEnd2
|
|
964
|
-
};
|
|
965
|
-
case "MULTI_SELECT":
|
|
966
|
-
const { start, end } = action;
|
|
967
|
-
if (start === state.selectionStart?.clientId && end === state.selectionEnd?.clientId) {
|
|
968
|
-
return state;
|
|
969
|
-
}
|
|
970
|
-
return {
|
|
971
|
-
selectionStart: { clientId: start },
|
|
972
|
-
selectionEnd: { clientId: end }
|
|
973
|
-
};
|
|
974
|
-
case "RESET_BLOCKS":
|
|
975
|
-
const startClientId = state?.selectionStart?.clientId;
|
|
976
|
-
const endClientId = state?.selectionEnd?.clientId;
|
|
977
|
-
if (!startClientId && !endClientId) {
|
|
978
|
-
return state;
|
|
979
|
-
}
|
|
980
|
-
if (!action.blocks.some(
|
|
981
|
-
(block) => block.clientId === startClientId
|
|
982
|
-
)) {
|
|
983
|
-
return {
|
|
984
|
-
selectionStart: {},
|
|
985
|
-
selectionEnd: {}
|
|
986
|
-
};
|
|
987
|
-
}
|
|
988
|
-
if (!action.blocks.some(
|
|
989
|
-
(block) => block.clientId === endClientId
|
|
990
|
-
)) {
|
|
991
|
-
return {
|
|
992
|
-
...state,
|
|
993
|
-
selectionEnd: state.selectionStart
|
|
994
|
-
};
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
const selectionStart = selectionHelper(state.selectionStart, action);
|
|
998
|
-
const selectionEnd = selectionHelper(state.selectionEnd, action);
|
|
999
|
-
if (selectionStart === state.selectionStart && selectionEnd === state.selectionEnd) {
|
|
1000
|
-
return state;
|
|
1001
|
-
}
|
|
1002
|
-
return {
|
|
1003
|
-
selectionStart,
|
|
1004
|
-
selectionEnd
|
|
1005
|
-
};
|
|
1006
|
-
}
|
|
1007
|
-
function isMultiSelecting(state = false, action) {
|
|
1008
|
-
switch (action.type) {
|
|
1009
|
-
case "START_MULTI_SELECT":
|
|
1010
|
-
return true;
|
|
1011
|
-
case "STOP_MULTI_SELECT":
|
|
1012
|
-
return false;
|
|
1013
|
-
}
|
|
1014
|
-
return state;
|
|
1015
|
-
}
|
|
1016
|
-
function isSelectionEnabled(state = true, action) {
|
|
1017
|
-
switch (action.type) {
|
|
1018
|
-
case "TOGGLE_SELECTION":
|
|
1019
|
-
return action.isSelectionEnabled;
|
|
1020
|
-
}
|
|
1021
|
-
return state;
|
|
1022
|
-
}
|
|
1023
|
-
function removalPromptData(state = false, action) {
|
|
1024
|
-
switch (action.type) {
|
|
1025
|
-
case "DISPLAY_BLOCK_REMOVAL_PROMPT":
|
|
1026
|
-
const { clientIds, selectPrevious, message } = action;
|
|
1027
|
-
return {
|
|
1028
|
-
clientIds,
|
|
1029
|
-
selectPrevious,
|
|
1030
|
-
message
|
|
1031
|
-
};
|
|
1032
|
-
case "CLEAR_BLOCK_REMOVAL_PROMPT":
|
|
1033
|
-
return false;
|
|
1034
|
-
}
|
|
1035
|
-
return state;
|
|
1036
|
-
}
|
|
1037
|
-
function blockRemovalRules(state = false, action) {
|
|
1038
|
-
switch (action.type) {
|
|
1039
|
-
case "SET_BLOCK_REMOVAL_RULES":
|
|
1040
|
-
return action.rules;
|
|
1041
|
-
}
|
|
1042
|
-
return state;
|
|
1043
|
-
}
|
|
1044
|
-
function initialPosition(state = null, action) {
|
|
1045
|
-
if (action.type === "REPLACE_BLOCKS" && action.initialPosition !== void 0) {
|
|
1046
|
-
return action.initialPosition;
|
|
1047
|
-
} else if ([
|
|
1048
|
-
"MULTI_SELECT",
|
|
1049
|
-
"SELECT_BLOCK",
|
|
1050
|
-
"RESET_SELECTION",
|
|
1051
|
-
"INSERT_BLOCKS",
|
|
1052
|
-
"REPLACE_INNER_BLOCKS"
|
|
1053
|
-
].includes(action.type)) {
|
|
1054
|
-
return action.initialPosition;
|
|
1055
|
-
}
|
|
1056
|
-
return state;
|
|
1057
|
-
}
|
|
1058
|
-
function blocksMode(state = {}, action) {
|
|
1059
|
-
if (action.type === "TOGGLE_BLOCK_MODE") {
|
|
1060
|
-
const { clientId } = action;
|
|
1061
|
-
return {
|
|
1062
|
-
...state,
|
|
1063
|
-
[clientId]: state[clientId] && state[clientId] === "html" ? "visual" : "html"
|
|
1064
|
-
};
|
|
1065
|
-
}
|
|
1066
|
-
return state;
|
|
1067
|
-
}
|
|
1068
|
-
function insertionCue(state = null, action) {
|
|
1069
|
-
switch (action.type) {
|
|
1070
|
-
case "SHOW_INSERTION_POINT": {
|
|
1071
|
-
const {
|
|
1072
|
-
rootClientId,
|
|
1073
|
-
index,
|
|
1074
|
-
__unstableWithInserter,
|
|
1075
|
-
operation,
|
|
1076
|
-
nearestSide
|
|
1077
|
-
} = action;
|
|
1078
|
-
const nextState = {
|
|
1079
|
-
rootClientId,
|
|
1080
|
-
index,
|
|
1081
|
-
__unstableWithInserter,
|
|
1082
|
-
operation,
|
|
1083
|
-
nearestSide
|
|
1084
|
-
};
|
|
1085
|
-
return fastDeepEqual(state, nextState) ? state : nextState;
|
|
1086
|
-
}
|
|
1087
|
-
case "HIDE_INSERTION_POINT":
|
|
1088
|
-
return null;
|
|
1089
|
-
}
|
|
1090
|
-
return state;
|
|
1091
|
-
}
|
|
1092
|
-
function template(state = { isValid: true }, action) {
|
|
1093
|
-
switch (action.type) {
|
|
1094
|
-
case "SET_TEMPLATE_VALIDITY":
|
|
1095
|
-
return {
|
|
1096
|
-
...state,
|
|
1097
|
-
isValid: action.isValid
|
|
1098
|
-
};
|
|
1099
|
-
}
|
|
1100
|
-
return state;
|
|
1101
|
-
}
|
|
1102
|
-
function settings(state = SETTINGS_DEFAULTS, action) {
|
|
1103
|
-
switch (action.type) {
|
|
1104
|
-
case "UPDATE_SETTINGS": {
|
|
1105
|
-
const updatedSettings = action.reset ? {
|
|
1106
|
-
...SETTINGS_DEFAULTS,
|
|
1107
|
-
...action.settings
|
|
1108
|
-
} : {
|
|
1109
|
-
...state,
|
|
1110
|
-
...action.settings
|
|
1111
|
-
};
|
|
1112
|
-
Object.defineProperty(updatedSettings, "__unstableIsPreviewMode", {
|
|
1113
|
-
get() {
|
|
1114
|
-
deprecated("__unstableIsPreviewMode", {
|
|
1115
|
-
since: "6.8",
|
|
1116
|
-
alternative: "isPreviewMode"
|
|
1117
|
-
});
|
|
1118
|
-
return this.isPreviewMode;
|
|
1119
|
-
}
|
|
1120
|
-
});
|
|
1121
|
-
return updatedSettings;
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
return state;
|
|
1125
|
-
}
|
|
1126
|
-
function preferences(state = PREFERENCES_DEFAULTS, action) {
|
|
1127
|
-
switch (action.type) {
|
|
1128
|
-
case "INSERT_BLOCKS":
|
|
1129
|
-
case "REPLACE_BLOCKS": {
|
|
1130
|
-
const nextInsertUsage = action.blocks.reduce(
|
|
1131
|
-
(prevUsage, block) => {
|
|
1132
|
-
const { attributes, name: blockName } = block;
|
|
1133
|
-
let id = blockName;
|
|
1134
|
-
const match = select(blocksStore).getActiveBlockVariation(
|
|
1135
|
-
blockName,
|
|
1136
|
-
attributes
|
|
1137
|
-
);
|
|
1138
|
-
if (match?.name) {
|
|
1139
|
-
id += "/" + match.name;
|
|
1140
|
-
}
|
|
1141
|
-
if (blockName === "core/block") {
|
|
1142
|
-
id += "/" + attributes.ref;
|
|
1143
|
-
}
|
|
1144
|
-
return {
|
|
1145
|
-
...prevUsage,
|
|
1146
|
-
[id]: {
|
|
1147
|
-
time: action.time,
|
|
1148
|
-
count: prevUsage[id] ? prevUsage[id].count + 1 : 1
|
|
1149
|
-
}
|
|
1150
|
-
};
|
|
1151
|
-
},
|
|
1152
|
-
state.insertUsage
|
|
1153
|
-
);
|
|
1154
|
-
return {
|
|
1155
|
-
...state,
|
|
1156
|
-
insertUsage: nextInsertUsage
|
|
1157
|
-
};
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
return state;
|
|
1161
|
-
}
|
|
1162
|
-
var blockListSettings = (state = {}, action) => {
|
|
1163
|
-
switch (action.type) {
|
|
1164
|
-
// Even if the replaced blocks have the same client ID, our logic
|
|
1165
|
-
// should correct the state.
|
|
1166
|
-
case "REPLACE_BLOCKS":
|
|
1167
|
-
case "REMOVE_BLOCKS": {
|
|
1168
|
-
return Object.fromEntries(
|
|
1169
|
-
Object.entries(state).filter(
|
|
1170
|
-
([id]) => !action.clientIds.includes(id)
|
|
1171
|
-
)
|
|
1172
|
-
);
|
|
1173
|
-
}
|
|
1174
|
-
case "UPDATE_BLOCK_LIST_SETTINGS": {
|
|
1175
|
-
const updates = typeof action.clientId === "string" ? { [action.clientId]: action.settings } : action.clientId;
|
|
1176
|
-
for (const clientId in updates) {
|
|
1177
|
-
if (!updates[clientId]) {
|
|
1178
|
-
if (!state[clientId]) {
|
|
1179
|
-
delete updates[clientId];
|
|
1180
|
-
}
|
|
1181
|
-
} else if (fastDeepEqual(state[clientId], updates[clientId])) {
|
|
1182
|
-
delete updates[clientId];
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
if (Object.keys(updates).length === 0) {
|
|
1186
|
-
return state;
|
|
1187
|
-
}
|
|
1188
|
-
const merged = { ...state, ...updates };
|
|
1189
|
-
for (const clientId in updates) {
|
|
1190
|
-
if (!updates[clientId]) {
|
|
1191
|
-
delete merged[clientId];
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
return merged;
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
return state;
|
|
1198
|
-
};
|
|
1199
|
-
function lastBlockAttributesChange(state = null, action) {
|
|
1200
|
-
switch (action.type) {
|
|
1201
|
-
case "UPDATE_BLOCK":
|
|
1202
|
-
if (!action.updates.attributes) {
|
|
1203
|
-
break;
|
|
1204
|
-
}
|
|
1205
|
-
return { [action.clientId]: action.updates.attributes };
|
|
1206
|
-
case "UPDATE_BLOCK_ATTRIBUTES":
|
|
1207
|
-
return action.clientIds.reduce(
|
|
1208
|
-
(accumulator, id) => ({
|
|
1209
|
-
...accumulator,
|
|
1210
|
-
[id]: !!action.options?.uniqueByBlock ? action.attributes[id] : action.attributes
|
|
1211
|
-
}),
|
|
1212
|
-
{}
|
|
1213
|
-
);
|
|
1214
|
-
}
|
|
1215
|
-
return state;
|
|
1216
|
-
}
|
|
1217
|
-
function highlightedBlock(state, action) {
|
|
1218
|
-
switch (action.type) {
|
|
1219
|
-
case "TOGGLE_BLOCK_HIGHLIGHT":
|
|
1220
|
-
const { clientId, isHighlighted } = action;
|
|
1221
|
-
if (isHighlighted) {
|
|
1222
|
-
return clientId;
|
|
1223
|
-
} else if (state === clientId) {
|
|
1224
|
-
return null;
|
|
1225
|
-
}
|
|
1226
|
-
return state;
|
|
1227
|
-
case "SELECT_BLOCK":
|
|
1228
|
-
if (action.clientId !== state) {
|
|
1229
|
-
return null;
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
return state;
|
|
1233
|
-
}
|
|
1234
|
-
function hasBlockSpotlight(state, action) {
|
|
1235
|
-
switch (action.type) {
|
|
1236
|
-
case "TOGGLE_BLOCK_SPOTLIGHT":
|
|
1237
|
-
const { clientId, hasBlockSpotlight: _hasBlockSpotlight } = action;
|
|
1238
|
-
if (_hasBlockSpotlight) {
|
|
1239
|
-
return clientId;
|
|
1240
|
-
} else if (state === clientId) {
|
|
1241
|
-
return null;
|
|
1242
|
-
}
|
|
1243
|
-
return state;
|
|
1244
|
-
case "SELECT_BLOCK":
|
|
1245
|
-
if (action.clientId !== state) {
|
|
1246
|
-
return null;
|
|
1247
|
-
}
|
|
1248
|
-
return state;
|
|
1249
|
-
case "SELECTION_CHANGE":
|
|
1250
|
-
if (action.start?.clientId !== state || action.end?.clientId !== state) {
|
|
1251
|
-
return null;
|
|
1252
|
-
}
|
|
1253
|
-
return state;
|
|
1254
|
-
case "CLEAR_SELECTED_BLOCK":
|
|
1255
|
-
return null;
|
|
1256
|
-
}
|
|
1257
|
-
return state;
|
|
1258
|
-
}
|
|
1259
|
-
function expandedBlock(state = null, action) {
|
|
1260
|
-
switch (action.type) {
|
|
1261
|
-
case "SET_BLOCK_EXPANDED_IN_LIST_VIEW":
|
|
1262
|
-
return action.clientId;
|
|
1263
|
-
case "SELECT_BLOCK":
|
|
1264
|
-
if (action.clientId !== state) {
|
|
1265
|
-
return null;
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
return state;
|
|
1269
|
-
}
|
|
1270
|
-
function lastBlockInserted(state = {}, action) {
|
|
1271
|
-
switch (action.type) {
|
|
1272
|
-
case "INSERT_BLOCKS":
|
|
1273
|
-
case "REPLACE_BLOCKS":
|
|
1274
|
-
if (!action.blocks.length) {
|
|
1275
|
-
return state;
|
|
1276
|
-
}
|
|
1277
|
-
const clientIds = action.blocks.map((block) => {
|
|
1278
|
-
return block.clientId;
|
|
1279
|
-
});
|
|
1280
|
-
const source = action.meta?.source;
|
|
1281
|
-
return { clientIds, source };
|
|
1282
|
-
case "RESET_BLOCKS":
|
|
1283
|
-
return {};
|
|
1284
|
-
}
|
|
1285
|
-
return state;
|
|
1286
|
-
}
|
|
1287
|
-
function editedContentOnlySection(state, action) {
|
|
1288
|
-
if (action.type === "EDIT_CONTENT_ONLY_SECTION") {
|
|
1289
|
-
return action.clientId;
|
|
1290
|
-
}
|
|
1291
|
-
return state;
|
|
1292
|
-
}
|
|
1293
|
-
function blockEditingModes(state = /* @__PURE__ */ new Map(), action) {
|
|
1294
|
-
switch (action.type) {
|
|
1295
|
-
case "SET_BLOCK_EDITING_MODE":
|
|
1296
|
-
if (state.get(action.clientId) === action.mode) {
|
|
1297
|
-
return state;
|
|
1298
|
-
}
|
|
1299
|
-
return new Map(state).set(action.clientId, action.mode);
|
|
1300
|
-
case "UNSET_BLOCK_EDITING_MODE": {
|
|
1301
|
-
if (!state.has(action.clientId)) {
|
|
1302
|
-
return state;
|
|
1303
|
-
}
|
|
1304
|
-
const newState = new Map(state);
|
|
1305
|
-
newState.delete(action.clientId);
|
|
1306
|
-
return newState;
|
|
1307
|
-
}
|
|
1308
|
-
case "RESET_BLOCKS": {
|
|
1309
|
-
return state.has("") ? (/* @__PURE__ */ new Map()).set("", state.get("")) : state;
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
return state;
|
|
1313
|
-
}
|
|
1314
|
-
function styleOverrides(state = /* @__PURE__ */ new Map(), action) {
|
|
1315
|
-
switch (action.type) {
|
|
1316
|
-
case "SET_STYLE_OVERRIDE":
|
|
1317
|
-
return new Map(state).set(action.id, action.style);
|
|
1318
|
-
case "DELETE_STYLE_OVERRIDE": {
|
|
1319
|
-
const newState = new Map(state);
|
|
1320
|
-
newState.delete(action.id);
|
|
1321
|
-
return newState;
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
return state;
|
|
1325
|
-
}
|
|
1326
|
-
function registeredInserterMediaCategories(state = [], action) {
|
|
1327
|
-
switch (action.type) {
|
|
1328
|
-
case "REGISTER_INSERTER_MEDIA_CATEGORY":
|
|
1329
|
-
return [...state, action.category];
|
|
1330
|
-
}
|
|
1331
|
-
return state;
|
|
1332
|
-
}
|
|
1333
|
-
function lastFocus(state = false, action) {
|
|
1334
|
-
switch (action.type) {
|
|
1335
|
-
case "LAST_FOCUS":
|
|
1336
|
-
return action.lastFocus;
|
|
1337
|
-
}
|
|
1338
|
-
return state;
|
|
1339
|
-
}
|
|
1340
|
-
function zoomLevel(state = 100, action) {
|
|
1341
|
-
switch (action.type) {
|
|
1342
|
-
case "SET_ZOOM_LEVEL":
|
|
1343
|
-
return action.zoom;
|
|
1344
|
-
case "RESET_ZOOM_LEVEL":
|
|
1345
|
-
return 100;
|
|
1346
|
-
}
|
|
1347
|
-
return state;
|
|
1348
|
-
}
|
|
1349
|
-
function insertionPoint(state = null, action) {
|
|
1350
|
-
switch (action.type) {
|
|
1351
|
-
case "SET_INSERTION_POINT":
|
|
1352
|
-
return action.value;
|
|
1353
|
-
case "SELECT_BLOCK":
|
|
1354
|
-
return null;
|
|
1355
|
-
}
|
|
1356
|
-
return state;
|
|
1357
|
-
}
|
|
1358
|
-
var combinedReducers = combineReducers({
|
|
1359
|
-
blocks,
|
|
1360
|
-
isDragging,
|
|
1361
|
-
isTyping,
|
|
1362
|
-
isBlockInterfaceHidden,
|
|
1363
|
-
draggedBlocks,
|
|
1364
|
-
selection,
|
|
1365
|
-
isMultiSelecting,
|
|
1366
|
-
isSelectionEnabled,
|
|
1367
|
-
initialPosition,
|
|
1368
|
-
blocksMode,
|
|
1369
|
-
blockListSettings,
|
|
1370
|
-
insertionPoint,
|
|
1371
|
-
insertionCue,
|
|
1372
|
-
template,
|
|
1373
|
-
settings,
|
|
1374
|
-
preferences,
|
|
1375
|
-
lastBlockAttributesChange,
|
|
1376
|
-
lastFocus,
|
|
1377
|
-
expandedBlock,
|
|
1378
|
-
highlightedBlock,
|
|
1379
|
-
lastBlockInserted,
|
|
1380
|
-
editedContentOnlySection,
|
|
1381
|
-
blockVisibility,
|
|
1382
|
-
blockEditingModes,
|
|
1383
|
-
styleOverrides,
|
|
1384
|
-
removalPromptData,
|
|
1385
|
-
blockRemovalRules,
|
|
1386
|
-
registeredInserterMediaCategories,
|
|
1387
|
-
zoomLevel,
|
|
1388
|
-
hasBlockSpotlight
|
|
1389
|
-
});
|
|
1390
|
-
function getBlockTreeBlock(state, clientId) {
|
|
1391
|
-
if (clientId === "") {
|
|
1392
|
-
const rootBlock = state.blocks.tree.get(clientId);
|
|
1393
|
-
if (!rootBlock) {
|
|
1394
|
-
return;
|
|
1395
|
-
}
|
|
1396
|
-
return {
|
|
1397
|
-
clientId: "",
|
|
1398
|
-
...rootBlock
|
|
1399
|
-
};
|
|
1400
|
-
}
|
|
1401
|
-
if (!state.blocks.controlledInnerBlocks[clientId]) {
|
|
1402
|
-
return state.blocks.tree.get(clientId);
|
|
1403
|
-
}
|
|
1404
|
-
const controlledTree = state.blocks.tree.get(`controlled||${clientId}`);
|
|
1405
|
-
const regularTree = state.blocks.tree.get(clientId);
|
|
1406
|
-
return {
|
|
1407
|
-
...regularTree,
|
|
1408
|
-
innerBlocks: controlledTree?.innerBlocks
|
|
1409
|
-
};
|
|
1410
|
-
}
|
|
1411
|
-
function traverseBlockTree(state, clientId, callback) {
|
|
1412
|
-
const tree = getBlockTreeBlock(state, clientId);
|
|
1413
|
-
if (!tree) {
|
|
1414
|
-
return;
|
|
1415
|
-
}
|
|
1416
|
-
callback(tree);
|
|
1417
|
-
if (!tree?.innerBlocks?.length) {
|
|
1418
|
-
return;
|
|
1419
|
-
}
|
|
1420
|
-
for (const innerBlock of tree?.innerBlocks) {
|
|
1421
|
-
traverseBlockTree(state, innerBlock.clientId, callback);
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
function findParentInClientIdsList(state, clientId, clientIds) {
|
|
1425
|
-
if (!clientIds.length) {
|
|
1426
|
-
return;
|
|
1427
|
-
}
|
|
1428
|
-
let parent = state.blocks.parents.get(clientId);
|
|
1429
|
-
while (parent !== void 0) {
|
|
1430
|
-
if (clientIds.includes(parent)) {
|
|
1431
|
-
return parent;
|
|
1432
|
-
}
|
|
1433
|
-
parent = state.blocks.parents.get(parent);
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
function hasBindings(block) {
|
|
1437
|
-
return block?.attributes?.metadata?.bindings && Object.keys(block?.attributes?.metadata?.bindings).length;
|
|
1438
|
-
}
|
|
1439
|
-
function getDerivedBlockEditingModesForTree(state, treeClientId = "") {
|
|
1440
|
-
const isZoomedOut = state?.zoomLevel < 100 || state?.zoomLevel === "auto-scaled";
|
|
1441
|
-
const derivedBlockEditingModes = /* @__PURE__ */ new Map();
|
|
1442
|
-
const sectionRootClientId = state.settings?.[sectionRootClientIdKey];
|
|
1443
|
-
const sectionClientIds = state.blocks.order.get(sectionRootClientId);
|
|
1444
|
-
const hasDisabledBlocks = Array.from(state.blockEditingModes).some(
|
|
1445
|
-
([, mode]) => mode === "disabled"
|
|
1446
|
-
);
|
|
1447
|
-
const templatePartClientIds = [];
|
|
1448
|
-
const syncedPatternClientIds = [];
|
|
1449
|
-
Object.keys(state.blocks.controlledInnerBlocks).forEach((clientId) => {
|
|
1450
|
-
const block = state.blocks.byClientId?.get(clientId);
|
|
1451
|
-
if (block?.name === "core/template-part") {
|
|
1452
|
-
templatePartClientIds.push(clientId);
|
|
1453
|
-
}
|
|
1454
|
-
if (block?.name === "core/block") {
|
|
1455
|
-
syncedPatternClientIds.push(clientId);
|
|
1456
|
-
}
|
|
1457
|
-
});
|
|
1458
|
-
const contentOnlyTemplateLockedClientIds = Object.keys(
|
|
1459
|
-
state.blockListSettings
|
|
1460
|
-
).filter(
|
|
1461
|
-
(clientId) => state.blockListSettings[clientId]?.templateLock === "contentOnly"
|
|
1462
|
-
);
|
|
1463
|
-
const isIsolatedEditor = state.settings?.[isIsolatedEditorKey];
|
|
1464
|
-
const unsyncedPatternClientIds = !!window?.__experimentalContentOnlyPatternInsertion && !isIsolatedEditor ? Array.from(state.blocks.attributes.keys()).filter(
|
|
1465
|
-
(clientId) => state.blocks.attributes.get(clientId)?.metadata?.patternName
|
|
1466
|
-
) : [];
|
|
1467
|
-
const contentOnlyParents = [
|
|
1468
|
-
...contentOnlyTemplateLockedClientIds,
|
|
1469
|
-
...unsyncedPatternClientIds,
|
|
1470
|
-
...window?.__experimentalContentOnlyPatternInsertion && !isIsolatedEditor ? templatePartClientIds : []
|
|
1471
|
-
];
|
|
1472
|
-
traverseBlockTree(state, treeClientId, (block) => {
|
|
1473
|
-
const { clientId, name: blockName } = block;
|
|
1474
|
-
if (state.editedContentOnlySection) {
|
|
1475
|
-
if (state.editedContentOnlySection === clientId) {
|
|
1476
|
-
derivedBlockEditingModes.set(clientId, "default");
|
|
1477
|
-
return;
|
|
1478
|
-
}
|
|
1479
|
-
const parentTempEditedClientId = findParentInClientIdsList(
|
|
1480
|
-
state,
|
|
1481
|
-
clientId,
|
|
1482
|
-
[state.editedContentOnlySection]
|
|
1483
|
-
);
|
|
1484
|
-
if (parentTempEditedClientId) {
|
|
1485
|
-
derivedBlockEditingModes.set(clientId, "default");
|
|
1486
|
-
return;
|
|
1487
|
-
}
|
|
1488
|
-
if (window?.__experimentalContentOnlyPatternInsertion) {
|
|
1489
|
-
derivedBlockEditingModes.set(clientId, "disabled");
|
|
1490
|
-
return;
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
|
-
if (state.blockEditingModes.has(clientId)) {
|
|
1494
|
-
return;
|
|
1495
|
-
}
|
|
1496
|
-
if (hasDisabledBlocks) {
|
|
1497
|
-
let ancestorBlockEditingMode;
|
|
1498
|
-
let parent = state.blocks.parents.get(clientId);
|
|
1499
|
-
while (parent !== void 0) {
|
|
1500
|
-
if (state.blockEditingModes.has(parent)) {
|
|
1501
|
-
ancestorBlockEditingMode = state.blockEditingModes.get(parent);
|
|
1502
|
-
}
|
|
1503
|
-
if (ancestorBlockEditingMode) {
|
|
1504
|
-
break;
|
|
1505
|
-
}
|
|
1506
|
-
parent = state.blocks.parents.get(parent);
|
|
1507
|
-
}
|
|
1508
|
-
if (ancestorBlockEditingMode === "disabled") {
|
|
1509
|
-
derivedBlockEditingModes.set(clientId, "disabled");
|
|
1510
|
-
return;
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
if (isZoomedOut) {
|
|
1514
|
-
if (clientId === sectionRootClientId) {
|
|
1515
|
-
derivedBlockEditingModes.set(clientId, "contentOnly");
|
|
1516
|
-
return;
|
|
1517
|
-
}
|
|
1518
|
-
if (!sectionClientIds?.length) {
|
|
1519
|
-
derivedBlockEditingModes.set(clientId, "disabled");
|
|
1520
|
-
return;
|
|
1521
|
-
}
|
|
1522
|
-
if (sectionClientIds.includes(clientId)) {
|
|
1523
|
-
derivedBlockEditingModes.set(clientId, "contentOnly");
|
|
1524
|
-
return;
|
|
1525
|
-
}
|
|
1526
|
-
derivedBlockEditingModes.set(clientId, "disabled");
|
|
1527
|
-
return;
|
|
1528
|
-
}
|
|
1529
|
-
if (syncedPatternClientIds.length) {
|
|
1530
|
-
if (syncedPatternClientIds.includes(clientId)) {
|
|
1531
|
-
if (findParentInClientIdsList(
|
|
1532
|
-
state,
|
|
1533
|
-
clientId,
|
|
1534
|
-
syncedPatternClientIds
|
|
1535
|
-
)) {
|
|
1536
|
-
derivedBlockEditingModes.set(clientId, "disabled");
|
|
1537
|
-
return;
|
|
1538
|
-
}
|
|
1539
|
-
return;
|
|
1540
|
-
}
|
|
1541
|
-
const parentPatternClientId = findParentInClientIdsList(
|
|
1542
|
-
state,
|
|
1543
|
-
clientId,
|
|
1544
|
-
syncedPatternClientIds
|
|
1545
|
-
);
|
|
1546
|
-
if (parentPatternClientId) {
|
|
1547
|
-
if (findParentInClientIdsList(
|
|
1548
|
-
state,
|
|
1549
|
-
parentPatternClientId,
|
|
1550
|
-
syncedPatternClientIds
|
|
1551
|
-
)) {
|
|
1552
|
-
derivedBlockEditingModes.set(clientId, "disabled");
|
|
1553
|
-
return;
|
|
1554
|
-
}
|
|
1555
|
-
if (hasBindings(block)) {
|
|
1556
|
-
derivedBlockEditingModes.set(clientId, "contentOnly");
|
|
1557
|
-
return;
|
|
1558
|
-
}
|
|
1559
|
-
derivedBlockEditingModes.set(clientId, "disabled");
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
if (contentOnlyParents.length) {
|
|
1563
|
-
const hasContentOnlyParent = !!findParentInClientIdsList(
|
|
1564
|
-
state,
|
|
1565
|
-
clientId,
|
|
1566
|
-
contentOnlyParents
|
|
1567
|
-
);
|
|
1568
|
-
if (hasContentOnlyParent) {
|
|
1569
|
-
if (isContentBlock(blockName)) {
|
|
1570
|
-
derivedBlockEditingModes.set(clientId, "contentOnly");
|
|
1571
|
-
} else {
|
|
1572
|
-
derivedBlockEditingModes.set(clientId, "disabled");
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
});
|
|
1577
|
-
return derivedBlockEditingModes;
|
|
1578
|
-
}
|
|
1579
|
-
function getDerivedBlockEditingModesUpdates({
|
|
1580
|
-
prevState,
|
|
1581
|
-
nextState,
|
|
1582
|
-
addedBlocks,
|
|
1583
|
-
removedClientIds
|
|
1584
|
-
}) {
|
|
1585
|
-
const prevDerivedBlockEditingModes = prevState.derivedBlockEditingModes;
|
|
1586
|
-
let nextDerivedBlockEditingModes;
|
|
1587
|
-
removedClientIds?.forEach((clientId) => {
|
|
1588
|
-
traverseBlockTree(prevState, clientId, (block) => {
|
|
1589
|
-
if (prevDerivedBlockEditingModes.has(block.clientId)) {
|
|
1590
|
-
if (!nextDerivedBlockEditingModes) {
|
|
1591
|
-
nextDerivedBlockEditingModes = new Map(
|
|
1592
|
-
prevDerivedBlockEditingModes
|
|
1593
|
-
);
|
|
1594
|
-
}
|
|
1595
|
-
nextDerivedBlockEditingModes.delete(block.clientId);
|
|
1596
|
-
}
|
|
1597
|
-
});
|
|
1598
|
-
});
|
|
1599
|
-
addedBlocks?.forEach((addedBlock) => {
|
|
1600
|
-
const updates = getDerivedBlockEditingModesForTree(
|
|
1601
|
-
nextState,
|
|
1602
|
-
addedBlock.clientId
|
|
1603
|
-
);
|
|
1604
|
-
if (updates.size) {
|
|
1605
|
-
if (!nextDerivedBlockEditingModes) {
|
|
1606
|
-
nextDerivedBlockEditingModes = new Map([
|
|
1607
|
-
...prevDerivedBlockEditingModes?.size ? prevDerivedBlockEditingModes : [],
|
|
1608
|
-
...updates
|
|
1609
|
-
]);
|
|
1610
|
-
} else {
|
|
1611
|
-
nextDerivedBlockEditingModes = new Map([
|
|
1612
|
-
...nextDerivedBlockEditingModes?.size ? nextDerivedBlockEditingModes : [],
|
|
1613
|
-
...updates
|
|
1614
|
-
]);
|
|
1615
|
-
}
|
|
1616
|
-
}
|
|
1617
|
-
});
|
|
1618
|
-
return nextDerivedBlockEditingModes;
|
|
1619
|
-
}
|
|
1620
|
-
function withDerivedBlockEditingModes(reducer) {
|
|
1621
|
-
return (state, action) => {
|
|
1622
|
-
const nextState = reducer(state, action);
|
|
1623
|
-
if (action.type !== "SET_EDITOR_MODE" && nextState === state) {
|
|
1624
|
-
return state;
|
|
1625
|
-
}
|
|
1626
|
-
switch (action.type) {
|
|
1627
|
-
case "REMOVE_BLOCKS": {
|
|
1628
|
-
const nextDerivedBlockEditingModes = getDerivedBlockEditingModesUpdates({
|
|
1629
|
-
prevState: state,
|
|
1630
|
-
nextState,
|
|
1631
|
-
removedClientIds: action.clientIds
|
|
1632
|
-
});
|
|
1633
|
-
if (nextDerivedBlockEditingModes) {
|
|
1634
|
-
return {
|
|
1635
|
-
...nextState,
|
|
1636
|
-
derivedBlockEditingModes: nextDerivedBlockEditingModes ?? state.derivedBlockEditingModes
|
|
1637
|
-
};
|
|
1638
|
-
}
|
|
1639
|
-
break;
|
|
1640
|
-
}
|
|
1641
|
-
case "RECEIVE_BLOCKS":
|
|
1642
|
-
case "INSERT_BLOCKS": {
|
|
1643
|
-
const nextDerivedBlockEditingModes = getDerivedBlockEditingModesUpdates({
|
|
1644
|
-
prevState: state,
|
|
1645
|
-
nextState,
|
|
1646
|
-
addedBlocks: action.blocks
|
|
1647
|
-
});
|
|
1648
|
-
if (nextDerivedBlockEditingModes) {
|
|
1649
|
-
return {
|
|
1650
|
-
...nextState,
|
|
1651
|
-
derivedBlockEditingModes: nextDerivedBlockEditingModes ?? state.derivedBlockEditingModes
|
|
1652
|
-
};
|
|
1653
|
-
}
|
|
1654
|
-
break;
|
|
1655
|
-
}
|
|
1656
|
-
case "UPDATE_BLOCK_ATTRIBUTES": {
|
|
1657
|
-
const addedBlocks = [];
|
|
1658
|
-
const removedClientIds = [];
|
|
1659
|
-
for (const clientId of action?.clientIds) {
|
|
1660
|
-
const attributes = action.options?.uniqueByBlock ? action.attributes[clientId] : action.attributes;
|
|
1661
|
-
if (!attributes) {
|
|
1662
|
-
break;
|
|
1663
|
-
}
|
|
1664
|
-
if (
|
|
1665
|
-
// patternName is switching from falsy to truthy, indicating
|
|
1666
|
-
// this block is becoming an unsynced pattern.
|
|
1667
|
-
attributes.metadata?.patternName && !state.blocks.attributes.get(clientId)?.metadata?.patternName
|
|
1668
|
-
) {
|
|
1669
|
-
addedBlocks.push(
|
|
1670
|
-
nextState.blocks.tree.get(clientId)
|
|
1671
|
-
);
|
|
1672
|
-
} else if (
|
|
1673
|
-
// patternName is switching from truthy to falsy, this block is becoming
|
|
1674
|
-
// a regular block but was an unsynced pattern.
|
|
1675
|
-
// Check that `metadata` is part of the included attributes, as
|
|
1676
|
-
// `updateBlockAttributes` merges attributes, if it isn't present
|
|
1677
|
-
// the previous `metadata` would be retained.
|
|
1678
|
-
attributes.metadata && !attributes.metadata?.patternName && state.blocks.attributes.get(clientId)?.metadata?.patternName
|
|
1679
|
-
) {
|
|
1680
|
-
removedClientIds.push(clientId);
|
|
1681
|
-
}
|
|
1682
|
-
}
|
|
1683
|
-
if (!addedBlocks?.length && !removedClientIds?.length) {
|
|
1684
|
-
break;
|
|
1685
|
-
}
|
|
1686
|
-
const nextDerivedBlockEditingModes = getDerivedBlockEditingModesUpdates({
|
|
1687
|
-
prevState: state,
|
|
1688
|
-
nextState,
|
|
1689
|
-
addedBlocks,
|
|
1690
|
-
removedClientIds
|
|
1691
|
-
});
|
|
1692
|
-
if (nextDerivedBlockEditingModes) {
|
|
1693
|
-
return {
|
|
1694
|
-
...nextState,
|
|
1695
|
-
derivedBlockEditingModes: nextDerivedBlockEditingModes ?? state.derivedBlockEditingModes
|
|
1696
|
-
};
|
|
1697
|
-
}
|
|
1698
|
-
break;
|
|
1699
|
-
}
|
|
1700
|
-
case "UPDATE_BLOCK_LIST_SETTINGS": {
|
|
1701
|
-
const addedBlocks = [];
|
|
1702
|
-
const removedClientIds = [];
|
|
1703
|
-
const updates = typeof action.clientId === "string" ? { [action.clientId]: action.settings } : action.clientId;
|
|
1704
|
-
for (const clientId in updates) {
|
|
1705
|
-
const isNewContentOnlyBlock = state.blockListSettings[clientId]?.templateLock !== "contentOnly" && nextState.blockListSettings[clientId]?.templateLock === "contentOnly";
|
|
1706
|
-
const wasContentOnlyBlock = state.blockListSettings[clientId]?.templateLock === "contentOnly" && nextState.blockListSettings[clientId]?.templateLock !== "contentOnly";
|
|
1707
|
-
if (isNewContentOnlyBlock) {
|
|
1708
|
-
addedBlocks.push(
|
|
1709
|
-
nextState.blocks.tree.get(clientId)
|
|
1710
|
-
);
|
|
1711
|
-
} else if (wasContentOnlyBlock) {
|
|
1712
|
-
removedClientIds.push(clientId);
|
|
1713
|
-
}
|
|
1714
|
-
}
|
|
1715
|
-
if (!addedBlocks.length && !removedClientIds.length) {
|
|
1716
|
-
break;
|
|
1717
|
-
}
|
|
1718
|
-
const nextDerivedBlockEditingModes = getDerivedBlockEditingModesUpdates({
|
|
1719
|
-
prevState: state,
|
|
1720
|
-
nextState,
|
|
1721
|
-
addedBlocks,
|
|
1722
|
-
removedClientIds
|
|
1723
|
-
});
|
|
1724
|
-
if (nextDerivedBlockEditingModes) {
|
|
1725
|
-
return {
|
|
1726
|
-
...nextState,
|
|
1727
|
-
derivedBlockEditingModes: nextDerivedBlockEditingModes ?? state.derivedBlockEditingModes
|
|
1728
|
-
};
|
|
1729
|
-
}
|
|
1730
|
-
break;
|
|
1731
|
-
}
|
|
1732
|
-
case "SET_BLOCK_EDITING_MODE":
|
|
1733
|
-
case "UNSET_BLOCK_EDITING_MODE":
|
|
1734
|
-
case "SET_HAS_CONTROLLED_INNER_BLOCKS": {
|
|
1735
|
-
const updatedBlock = getBlockTreeBlock(
|
|
1736
|
-
nextState,
|
|
1737
|
-
action.clientId
|
|
1738
|
-
);
|
|
1739
|
-
if (!updatedBlock) {
|
|
1740
|
-
break;
|
|
1741
|
-
}
|
|
1742
|
-
const nextDerivedBlockEditingModes = getDerivedBlockEditingModesUpdates({
|
|
1743
|
-
prevState: state,
|
|
1744
|
-
nextState,
|
|
1745
|
-
removedClientIds: [action.clientId],
|
|
1746
|
-
addedBlocks: [updatedBlock]
|
|
1747
|
-
});
|
|
1748
|
-
if (nextDerivedBlockEditingModes) {
|
|
1749
|
-
return {
|
|
1750
|
-
...nextState,
|
|
1751
|
-
derivedBlockEditingModes: nextDerivedBlockEditingModes ?? state.derivedBlockEditingModes
|
|
1752
|
-
};
|
|
1753
|
-
}
|
|
1754
|
-
break;
|
|
1755
|
-
}
|
|
1756
|
-
case "REPLACE_BLOCKS": {
|
|
1757
|
-
const nextDerivedBlockEditingModes = getDerivedBlockEditingModesUpdates({
|
|
1758
|
-
prevState: state,
|
|
1759
|
-
nextState,
|
|
1760
|
-
addedBlocks: action.blocks,
|
|
1761
|
-
removedClientIds: action.clientIds
|
|
1762
|
-
});
|
|
1763
|
-
if (nextDerivedBlockEditingModes) {
|
|
1764
|
-
return {
|
|
1765
|
-
...nextState,
|
|
1766
|
-
derivedBlockEditingModes: nextDerivedBlockEditingModes ?? state.derivedBlockEditingModes
|
|
1767
|
-
};
|
|
1768
|
-
}
|
|
1769
|
-
break;
|
|
1770
|
-
}
|
|
1771
|
-
case "REPLACE_INNER_BLOCKS": {
|
|
1772
|
-
const removedClientIds = state.blocks.order.get(
|
|
1773
|
-
action.rootClientId
|
|
1774
|
-
);
|
|
1775
|
-
const nextDerivedBlockEditingModes = getDerivedBlockEditingModesUpdates({
|
|
1776
|
-
prevState: state,
|
|
1777
|
-
nextState,
|
|
1778
|
-
addedBlocks: action.blocks,
|
|
1779
|
-
removedClientIds
|
|
1780
|
-
});
|
|
1781
|
-
if (nextDerivedBlockEditingModes) {
|
|
1782
|
-
return {
|
|
1783
|
-
...nextState,
|
|
1784
|
-
derivedBlockEditingModes: nextDerivedBlockEditingModes ?? state.derivedBlockEditingModes
|
|
1785
|
-
};
|
|
1786
|
-
}
|
|
1787
|
-
break;
|
|
1788
|
-
}
|
|
1789
|
-
case "MOVE_BLOCKS_TO_POSITION": {
|
|
1790
|
-
const addedBlocks = action.clientIds.map((clientId) => {
|
|
1791
|
-
return nextState.blocks.byClientId.get(clientId);
|
|
1792
|
-
});
|
|
1793
|
-
const nextDerivedBlockEditingModes = getDerivedBlockEditingModesUpdates({
|
|
1794
|
-
prevState: state,
|
|
1795
|
-
nextState,
|
|
1796
|
-
addedBlocks,
|
|
1797
|
-
removedClientIds: action.clientIds
|
|
1798
|
-
});
|
|
1799
|
-
if (nextDerivedBlockEditingModes) {
|
|
1800
|
-
return {
|
|
1801
|
-
...nextState,
|
|
1802
|
-
derivedBlockEditingModes: nextDerivedBlockEditingModes ?? state.derivedBlockEditingModes
|
|
1803
|
-
};
|
|
1804
|
-
}
|
|
1805
|
-
break;
|
|
1806
|
-
}
|
|
1807
|
-
case "UPDATE_SETTINGS": {
|
|
1808
|
-
if (state?.settings?.[sectionRootClientIdKey] !== nextState?.settings?.[sectionRootClientIdKey]) {
|
|
1809
|
-
return {
|
|
1810
|
-
...nextState,
|
|
1811
|
-
derivedBlockEditingModes: getDerivedBlockEditingModesForTree(nextState)
|
|
1812
|
-
};
|
|
1813
|
-
}
|
|
1814
|
-
break;
|
|
1815
|
-
}
|
|
1816
|
-
case "RESET_BLOCKS":
|
|
1817
|
-
case "EDIT_CONTENT_ONLY_SECTION":
|
|
1818
|
-
case "SET_EDITOR_MODE":
|
|
1819
|
-
case "RESET_ZOOM_LEVEL":
|
|
1820
|
-
case "SET_ZOOM_LEVEL": {
|
|
1821
|
-
return {
|
|
1822
|
-
...nextState,
|
|
1823
|
-
derivedBlockEditingModes: getDerivedBlockEditingModesForTree(nextState)
|
|
1824
|
-
};
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
nextState.derivedBlockEditingModes = state?.derivedBlockEditingModes ?? /* @__PURE__ */ new Map();
|
|
1828
|
-
return nextState;
|
|
1829
|
-
};
|
|
1830
|
-
}
|
|
1831
|
-
function withAutomaticChangeReset(reducer) {
|
|
1832
|
-
return (state, action) => {
|
|
1833
|
-
const nextState = reducer(state, action);
|
|
1834
|
-
if (!state) {
|
|
1835
|
-
return nextState;
|
|
1836
|
-
}
|
|
1837
|
-
nextState.automaticChangeStatus = state.automaticChangeStatus;
|
|
1838
|
-
if (action.type === "MARK_AUTOMATIC_CHANGE") {
|
|
1839
|
-
return {
|
|
1840
|
-
...nextState,
|
|
1841
|
-
automaticChangeStatus: "pending"
|
|
1842
|
-
};
|
|
1843
|
-
}
|
|
1844
|
-
if (action.type === "MARK_AUTOMATIC_CHANGE_FINAL" && state.automaticChangeStatus === "pending") {
|
|
1845
|
-
return {
|
|
1846
|
-
...nextState,
|
|
1847
|
-
automaticChangeStatus: "final"
|
|
1848
|
-
};
|
|
1849
|
-
}
|
|
1850
|
-
if (nextState.blocks === state.blocks && nextState.selection === state.selection) {
|
|
1851
|
-
return nextState;
|
|
1852
|
-
}
|
|
1853
|
-
if (nextState.automaticChangeStatus !== "final" && nextState.selection !== state.selection) {
|
|
1854
|
-
return nextState;
|
|
1855
|
-
}
|
|
1856
|
-
return {
|
|
1857
|
-
...nextState,
|
|
1858
|
-
automaticChangeStatus: void 0
|
|
1859
|
-
};
|
|
1860
|
-
};
|
|
1861
|
-
}
|
|
1862
|
-
var reducer_default = pipe(
|
|
1863
|
-
withDerivedBlockEditingModes,
|
|
1864
|
-
withAutomaticChangeReset
|
|
1865
|
-
)(combinedReducers);
|
|
1866
|
-
export {
|
|
1867
|
-
blockEditingModes,
|
|
1868
|
-
blockListSettings,
|
|
1869
|
-
blockVisibility,
|
|
1870
|
-
blocks,
|
|
1871
|
-
blocksMode,
|
|
1872
|
-
reducer_default as default,
|
|
1873
|
-
draggedBlocks,
|
|
1874
|
-
editedContentOnlySection,
|
|
1875
|
-
expandedBlock,
|
|
1876
|
-
hasBlockSpotlight,
|
|
1877
|
-
hasSameKeys,
|
|
1878
|
-
highlightedBlock,
|
|
1879
|
-
initialPosition,
|
|
1880
|
-
insertionCue,
|
|
1881
|
-
insertionPoint,
|
|
1882
|
-
isBlockInterfaceHidden,
|
|
1883
|
-
isDragging,
|
|
1884
|
-
isMultiSelecting,
|
|
1885
|
-
isSelectionEnabled,
|
|
1886
|
-
isTyping,
|
|
1887
|
-
isUpdatingSameBlockAttribute,
|
|
1888
|
-
lastBlockAttributesChange,
|
|
1889
|
-
lastBlockInserted,
|
|
1890
|
-
lastFocus,
|
|
1891
|
-
preferences,
|
|
1892
|
-
registeredInserterMediaCategories,
|
|
1893
|
-
selection,
|
|
1894
|
-
settings,
|
|
1895
|
-
styleOverrides,
|
|
1896
|
-
template,
|
|
1897
|
-
withDerivedBlockEditingModes,
|
|
1898
|
-
zoomLevel
|
|
1899
|
-
};
|
|
1900
|
-
//# sourceMappingURL=reducer.js.map
|