@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
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
// packages/block-editor/src/hooks/fit-text.js
|
|
2
|
+
import { addFilter } from "@wordpress/hooks";
|
|
3
|
+
import { hasBlockSupport } from "@wordpress/blocks";
|
|
4
|
+
import { useEffect, useCallback, useState } from "@wordpress/element";
|
|
5
|
+
import { useSelect } from "@wordpress/data";
|
|
6
|
+
import { __ } from "@wordpress/i18n";
|
|
7
|
+
import {
|
|
8
|
+
ToggleControl,
|
|
9
|
+
__experimentalToolsPanelItem as ToolsPanelItem
|
|
10
|
+
} from "@wordpress/components";
|
|
11
|
+
import { createHigherOrderComponent } from "@wordpress/compose";
|
|
12
|
+
import { optimizeFitText } from "../utils/fit-text-utils.mjs";
|
|
13
|
+
import { store as blockEditorStore } from "../store/index.mjs";
|
|
14
|
+
import { useBlockElement } from "../components/block-list/use-block-props/use-block-refs.mjs";
|
|
15
|
+
import InspectorControls from "../components/inspector-controls/index.mjs";
|
|
16
|
+
import FitTextSizeWarning from "../components/fit-text-size-warning/index.mjs";
|
|
17
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
var EMPTY_OBJECT = {};
|
|
19
|
+
var MIN_FONT_SIZE_FOR_WARNING = 6;
|
|
20
|
+
var FIT_TEXT_SUPPORT_KEY = "typography.fitText";
|
|
21
|
+
function addAttributes(settings) {
|
|
22
|
+
if (!hasBlockSupport(settings, FIT_TEXT_SUPPORT_KEY)) {
|
|
23
|
+
return settings;
|
|
24
|
+
}
|
|
25
|
+
if (settings.attributes?.fitText) {
|
|
26
|
+
return settings;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
...settings,
|
|
30
|
+
attributes: {
|
|
31
|
+
...settings.attributes,
|
|
32
|
+
fitText: {
|
|
33
|
+
type: "boolean"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function useFitText({ fitText, name, clientId }) {
|
|
39
|
+
const [fontSize, setFontSize] = useState(null);
|
|
40
|
+
const hasFitTextSupport2 = hasBlockSupport(name, FIT_TEXT_SUPPORT_KEY);
|
|
41
|
+
const blockElement = useBlockElement(clientId);
|
|
42
|
+
const { blockAttributes, parentId } = useSelect(
|
|
43
|
+
(select) => {
|
|
44
|
+
if (!clientId || !hasFitTextSupport2 || !fitText) {
|
|
45
|
+
return EMPTY_OBJECT;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
blockAttributes: select(blockEditorStore).getBlockAttributes(clientId),
|
|
49
|
+
parentId: select(blockEditorStore).getBlockRootClientId(clientId)
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
[clientId, hasFitTextSupport2, fitText]
|
|
53
|
+
);
|
|
54
|
+
const applyFitText = useCallback(() => {
|
|
55
|
+
if (!blockElement || !hasFitTextSupport2 || !fitText) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const styleId = `fit-text-${clientId}`;
|
|
59
|
+
let styleElement = blockElement.ownerDocument.getElementById(styleId);
|
|
60
|
+
if (!styleElement) {
|
|
61
|
+
styleElement = blockElement.ownerDocument.createElement("style");
|
|
62
|
+
styleElement.id = styleId;
|
|
63
|
+
blockElement.ownerDocument.head.appendChild(styleElement);
|
|
64
|
+
}
|
|
65
|
+
const blockSelector = `#block-${clientId}`;
|
|
66
|
+
const applyFontSizeStyle = (size) => {
|
|
67
|
+
if (size === 0) {
|
|
68
|
+
styleElement.textContent = "";
|
|
69
|
+
} else {
|
|
70
|
+
styleElement.textContent = `${blockSelector} { font-size: ${size}px !important; }`;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const optimalSize = optimizeFitText(blockElement, applyFontSizeStyle);
|
|
74
|
+
setFontSize(optimalSize);
|
|
75
|
+
}, [blockElement, clientId, hasFitTextSupport2, fitText]);
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
if (!fitText || !blockElement || !clientId || !hasFitTextSupport2) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const currentElement = blockElement;
|
|
81
|
+
const previousVisibility = currentElement.style.visibility;
|
|
82
|
+
let hideFrameId = null;
|
|
83
|
+
let calculateFrameId = null;
|
|
84
|
+
let showTimeoutId = null;
|
|
85
|
+
hideFrameId = window.requestAnimationFrame(() => {
|
|
86
|
+
currentElement.style.visibility = "hidden";
|
|
87
|
+
calculateFrameId = window.requestAnimationFrame(() => {
|
|
88
|
+
applyFitText();
|
|
89
|
+
showTimeoutId = setTimeout(() => {
|
|
90
|
+
currentElement.style.visibility = previousVisibility;
|
|
91
|
+
}, 10);
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
let resizeObserver;
|
|
95
|
+
if (window.ResizeObserver && currentElement.parentElement) {
|
|
96
|
+
resizeObserver = new window.ResizeObserver(applyFitText);
|
|
97
|
+
resizeObserver.observe(currentElement.parentElement);
|
|
98
|
+
resizeObserver.observe(currentElement);
|
|
99
|
+
}
|
|
100
|
+
return () => {
|
|
101
|
+
if (hideFrameId !== null) {
|
|
102
|
+
window.cancelAnimationFrame(hideFrameId);
|
|
103
|
+
}
|
|
104
|
+
if (calculateFrameId !== null) {
|
|
105
|
+
window.cancelAnimationFrame(calculateFrameId);
|
|
106
|
+
}
|
|
107
|
+
if (showTimeoutId !== null) {
|
|
108
|
+
clearTimeout(showTimeoutId);
|
|
109
|
+
}
|
|
110
|
+
if (resizeObserver) {
|
|
111
|
+
resizeObserver.disconnect();
|
|
112
|
+
}
|
|
113
|
+
const styleId = `fit-text-${clientId}`;
|
|
114
|
+
const styleElement = currentElement.ownerDocument.getElementById(styleId);
|
|
115
|
+
if (styleElement) {
|
|
116
|
+
styleElement.remove();
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}, [
|
|
120
|
+
fitText,
|
|
121
|
+
clientId,
|
|
122
|
+
parentId,
|
|
123
|
+
applyFitText,
|
|
124
|
+
blockElement,
|
|
125
|
+
hasFitTextSupport2
|
|
126
|
+
]);
|
|
127
|
+
useEffect(() => {
|
|
128
|
+
if (fitText && blockElement && hasFitTextSupport2) {
|
|
129
|
+
const frameId = window.requestAnimationFrame(() => {
|
|
130
|
+
if (blockElement) {
|
|
131
|
+
applyFitText();
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
return () => window.cancelAnimationFrame(frameId);
|
|
135
|
+
}
|
|
136
|
+
}, [
|
|
137
|
+
blockAttributes,
|
|
138
|
+
fitText,
|
|
139
|
+
applyFitText,
|
|
140
|
+
blockElement,
|
|
141
|
+
hasFitTextSupport2
|
|
142
|
+
]);
|
|
143
|
+
return { fontSize };
|
|
144
|
+
}
|
|
145
|
+
function FitTextControl({
|
|
146
|
+
clientId,
|
|
147
|
+
fitText = false,
|
|
148
|
+
setAttributes,
|
|
149
|
+
name,
|
|
150
|
+
fontSize,
|
|
151
|
+
style,
|
|
152
|
+
warning
|
|
153
|
+
}) {
|
|
154
|
+
if (!hasBlockSupport(name, FIT_TEXT_SUPPORT_KEY)) {
|
|
155
|
+
return null;
|
|
156
|
+
}
|
|
157
|
+
return /* @__PURE__ */ jsx(InspectorControls, { group: "typography", children: /* @__PURE__ */ jsxs(
|
|
158
|
+
ToolsPanelItem,
|
|
159
|
+
{
|
|
160
|
+
hasValue: () => fitText,
|
|
161
|
+
label: __("Fit text"),
|
|
162
|
+
onDeselect: () => setAttributes({ fitText: void 0 }),
|
|
163
|
+
resetAllFilter: () => ({ fitText: void 0 }),
|
|
164
|
+
panelId: clientId,
|
|
165
|
+
children: [
|
|
166
|
+
/* @__PURE__ */ jsx(
|
|
167
|
+
ToggleControl,
|
|
168
|
+
{
|
|
169
|
+
label: __("Fit text"),
|
|
170
|
+
checked: fitText,
|
|
171
|
+
onChange: () => {
|
|
172
|
+
const newFitText = !fitText || void 0;
|
|
173
|
+
const updates = { fitText: newFitText };
|
|
174
|
+
if (newFitText) {
|
|
175
|
+
if (fontSize) {
|
|
176
|
+
updates.fontSize = void 0;
|
|
177
|
+
}
|
|
178
|
+
if (style?.typography?.fontSize) {
|
|
179
|
+
updates.style = {
|
|
180
|
+
...style,
|
|
181
|
+
typography: {
|
|
182
|
+
...style?.typography,
|
|
183
|
+
fontSize: void 0
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
setAttributes(updates);
|
|
189
|
+
},
|
|
190
|
+
help: fitText ? __("Text will resize to fit its container.") : __(
|
|
191
|
+
"The text will resize to fit its container, resetting other font size settings."
|
|
192
|
+
)
|
|
193
|
+
}
|
|
194
|
+
),
|
|
195
|
+
warning
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
) });
|
|
199
|
+
}
|
|
200
|
+
function addSaveProps(props, blockType, attributes) {
|
|
201
|
+
if (!hasBlockSupport(blockType, FIT_TEXT_SUPPORT_KEY)) {
|
|
202
|
+
return props;
|
|
203
|
+
}
|
|
204
|
+
const { fitText } = attributes;
|
|
205
|
+
if (!fitText) {
|
|
206
|
+
return props;
|
|
207
|
+
}
|
|
208
|
+
const className = props.className ? `${props.className} has-fit-text` : "has-fit-text";
|
|
209
|
+
return {
|
|
210
|
+
...props,
|
|
211
|
+
className
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
function useBlockProps({ name, fitText }) {
|
|
215
|
+
if (fitText && hasBlockSupport(name, FIT_TEXT_SUPPORT_KEY)) {
|
|
216
|
+
return {
|
|
217
|
+
className: "has-fit-text"
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
return {};
|
|
221
|
+
}
|
|
222
|
+
addFilter(
|
|
223
|
+
"blocks.registerBlockType",
|
|
224
|
+
"core/fit-text/addAttribute",
|
|
225
|
+
addAttributes
|
|
226
|
+
);
|
|
227
|
+
var hasFitTextSupport = (blockNameOrType) => {
|
|
228
|
+
return hasBlockSupport(blockNameOrType, FIT_TEXT_SUPPORT_KEY);
|
|
229
|
+
};
|
|
230
|
+
function WithFitTextFontSize({ fitText, name, clientId, children }) {
|
|
231
|
+
const { fontSize } = useFitText({ fitText, name, clientId });
|
|
232
|
+
return children(fontSize);
|
|
233
|
+
}
|
|
234
|
+
var addFitTextControl = createHigherOrderComponent((BlockEdit) => {
|
|
235
|
+
return (props) => {
|
|
236
|
+
const { name, attributes, clientId, isSelected, setAttributes } = props;
|
|
237
|
+
const { fitText } = attributes;
|
|
238
|
+
const supportsFitText = hasBlockSupport(name, FIT_TEXT_SUPPORT_KEY);
|
|
239
|
+
if (!supportsFitText) {
|
|
240
|
+
return /* @__PURE__ */ jsx(BlockEdit, { ...props });
|
|
241
|
+
}
|
|
242
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
243
|
+
/* @__PURE__ */ jsx(BlockEdit, { ...props }),
|
|
244
|
+
fitText && /* @__PURE__ */ jsx(
|
|
245
|
+
WithFitTextFontSize,
|
|
246
|
+
{
|
|
247
|
+
fitText,
|
|
248
|
+
name,
|
|
249
|
+
clientId,
|
|
250
|
+
children: (fontSize) => isSelected && /* @__PURE__ */ jsx(
|
|
251
|
+
FitTextControl,
|
|
252
|
+
{
|
|
253
|
+
clientId,
|
|
254
|
+
fitText,
|
|
255
|
+
setAttributes,
|
|
256
|
+
name,
|
|
257
|
+
fontSize: attributes.fontSize,
|
|
258
|
+
style: attributes.style,
|
|
259
|
+
warning: fontSize < MIN_FONT_SIZE_FOR_WARNING && /* @__PURE__ */ jsx(FitTextSizeWarning, {})
|
|
260
|
+
}
|
|
261
|
+
)
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
!fitText && isSelected && /* @__PURE__ */ jsx(
|
|
265
|
+
FitTextControl,
|
|
266
|
+
{
|
|
267
|
+
clientId,
|
|
268
|
+
fitText,
|
|
269
|
+
setAttributes,
|
|
270
|
+
name,
|
|
271
|
+
fontSize: attributes.fontSize,
|
|
272
|
+
style: attributes.style
|
|
273
|
+
}
|
|
274
|
+
)
|
|
275
|
+
] });
|
|
276
|
+
};
|
|
277
|
+
}, "addFitTextControl");
|
|
278
|
+
addFilter(
|
|
279
|
+
"editor.BlockEdit",
|
|
280
|
+
"core/fit-text/add-fit-text-control",
|
|
281
|
+
addFitTextControl
|
|
282
|
+
);
|
|
283
|
+
var fit_text_default = {
|
|
284
|
+
useBlockProps,
|
|
285
|
+
addSaveProps,
|
|
286
|
+
attributeKeys: ["fitText", "fontSize", "style"],
|
|
287
|
+
hasSupport: hasFitTextSupport,
|
|
288
|
+
edit: () => null
|
|
289
|
+
};
|
|
290
|
+
export {
|
|
291
|
+
FIT_TEXT_SUPPORT_KEY,
|
|
292
|
+
FitTextControl,
|
|
293
|
+
fit_text_default as default
|
|
294
|
+
};
|
|
295
|
+
//# sourceMappingURL=fit-text.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/hooks/fit-text.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { addFilter } from '@wordpress/hooks';\nimport { hasBlockSupport } from '@wordpress/blocks';\nimport { useEffect, useCallback, useState } from '@wordpress/element';\nimport { useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tToggleControl,\n\t__experimentalToolsPanelItem as ToolsPanelItem,\n} from '@wordpress/components';\nimport { createHigherOrderComponent } from '@wordpress/compose';\n\nconst EMPTY_OBJECT = {};\nconst MIN_FONT_SIZE_FOR_WARNING = 6;\n\n/**\n * Internal dependencies\n */\nimport { optimizeFitText } from '../utils/fit-text-utils';\nimport { store as blockEditorStore } from '../store';\nimport { useBlockElement } from '../components/block-list/use-block-props/use-block-refs';\nimport InspectorControls from '../components/inspector-controls';\nimport FitTextSizeWarning from '../components/fit-text-size-warning';\n\nexport const FIT_TEXT_SUPPORT_KEY = 'typography.fitText';\n\n/**\n * Filters registered block settings, extending attributes to include\n * the `fitText` attribute.\n *\n * @param {Object} settings Original block settings.\n * @return {Object} Filtered block settings.\n */\nfunction addAttributes( settings ) {\n\tif ( ! hasBlockSupport( settings, FIT_TEXT_SUPPORT_KEY ) ) {\n\t\treturn settings;\n\t}\n\n\t// Allow blocks to specify their own attribute definition.\n\tif ( settings.attributes?.fitText ) {\n\t\treturn settings;\n\t}\n\n\t// Add fitText attribute.\n\treturn {\n\t\t...settings,\n\t\tattributes: {\n\t\t\t...settings.attributes,\n\t\t\tfitText: {\n\t\t\t\ttype: 'boolean',\n\t\t\t},\n\t\t},\n\t};\n}\n\n/**\n * Custom hook to handle fit text functionality in the editor.\n *\n * @param {Object} props Component props.\n * @param {?boolean} props.fitText Fit text attribute.\n * @param {string} props.name Block name.\n * @param {string} props.clientId Block client ID.\n */\nfunction useFitText( { fitText, name, clientId } ) {\n\tconst [ fontSize, setFontSize ] = useState( null );\n\tconst hasFitTextSupport = hasBlockSupport( name, FIT_TEXT_SUPPORT_KEY );\n\tconst blockElement = useBlockElement( clientId );\n\n\t// Monitor block attribute changes, and parent changes.\n\t// Any attribute or parent change may change the available space.\n\tconst { blockAttributes, parentId } = useSelect(\n\t\t( select ) => {\n\t\t\tif ( ! clientId || ! hasFitTextSupport || ! fitText ) {\n\t\t\t\treturn EMPTY_OBJECT;\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tblockAttributes:\n\t\t\t\t\tselect( blockEditorStore ).getBlockAttributes( clientId ),\n\t\t\t\tparentId:\n\t\t\t\t\tselect( blockEditorStore ).getBlockRootClientId( clientId ),\n\t\t\t};\n\t\t},\n\t\t[ clientId, hasFitTextSupport, fitText ]\n\t);\n\n\tconst applyFitText = useCallback( () => {\n\t\tif ( ! blockElement || ! hasFitTextSupport || ! fitText ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Get or create style element with unique ID\n\t\tconst styleId = `fit-text-${ clientId }`;\n\t\tlet styleElement = blockElement.ownerDocument.getElementById( styleId );\n\t\tif ( ! styleElement ) {\n\t\t\tstyleElement = blockElement.ownerDocument.createElement( 'style' );\n\t\t\tstyleElement.id = styleId;\n\t\t\tblockElement.ownerDocument.head.appendChild( styleElement );\n\t\t}\n\n\t\tconst blockSelector = `#block-${ clientId }`;\n\n\t\tconst applyFontSizeStyle = ( size ) => {\n\t\t\tif ( size === 0 ) {\n\t\t\t\tstyleElement.textContent = '';\n\t\t\t} else {\n\t\t\t\tstyleElement.textContent = `${ blockSelector } { font-size: ${ size }px !important; }`;\n\t\t\t}\n\t\t};\n\n\t\tconst optimalSize = optimizeFitText( blockElement, applyFontSizeStyle );\n\t\tsetFontSize( optimalSize );\n\t}, [ blockElement, clientId, hasFitTextSupport, fitText ] );\n\n\tuseEffect( () => {\n\t\tif (\n\t\t\t! fitText ||\n\t\t\t! blockElement ||\n\t\t\t! clientId ||\n\t\t\t! hasFitTextSupport\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Store current element value for cleanup\n\t\tconst currentElement = blockElement;\n\t\tconst previousVisibility = currentElement.style.visibility;\n\n\t\t// Store IDs for cleanup\n\t\tlet hideFrameId = null;\n\t\tlet calculateFrameId = null;\n\t\tlet showTimeoutId = null;\n\n\t\t// We are hiding the element doing the calculation of fit text\n\t\t// and then showing it again to avoid the user noticing a flash of potentially\n\t\t// big fitText while the binary search is happening.\n\t\thideFrameId = window.requestAnimationFrame( () => {\n\t\t\tcurrentElement.style.visibility = 'hidden';\n\t\t\t// Wait for browser to render the hidden state\n\t\t\tcalculateFrameId = window.requestAnimationFrame( () => {\n\t\t\t\tapplyFitText();\n\n\t\t\t\t// Using a timeout instead of requestAnimationFrame, because\n\t\t\t\t// with requestAnimationFrame a flash of very high size\n\t\t\t\t// can still occur although rare.\n\t\t\t\tshowTimeoutId = setTimeout( () => {\n\t\t\t\t\tcurrentElement.style.visibility = previousVisibility;\n\t\t\t\t}, 10 );\n\t\t\t} );\n\t\t} );\n\n\t\t// Watch for size changes\n\t\tlet resizeObserver;\n\t\tif ( window.ResizeObserver && currentElement.parentElement ) {\n\t\t\tresizeObserver = new window.ResizeObserver( applyFitText );\n\t\t\tresizeObserver.observe( currentElement.parentElement );\n\t\t\tresizeObserver.observe( currentElement );\n\t\t}\n\n\t\t// Cleanup function\n\t\treturn () => {\n\t\t\t// Cancel pending async operations\n\t\t\tif ( hideFrameId !== null ) {\n\t\t\t\twindow.cancelAnimationFrame( hideFrameId );\n\t\t\t}\n\t\t\tif ( calculateFrameId !== null ) {\n\t\t\t\twindow.cancelAnimationFrame( calculateFrameId );\n\t\t\t}\n\t\t\tif ( showTimeoutId !== null ) {\n\t\t\t\tclearTimeout( showTimeoutId );\n\t\t\t}\n\n\t\t\tif ( resizeObserver ) {\n\t\t\t\tresizeObserver.disconnect();\n\t\t\t}\n\n\t\t\tconst styleId = `fit-text-${ clientId }`;\n\t\t\tconst styleElement =\n\t\t\t\tcurrentElement.ownerDocument.getElementById( styleId );\n\t\t\tif ( styleElement ) {\n\t\t\t\tstyleElement.remove();\n\t\t\t}\n\t\t};\n\t}, [\n\t\tfitText,\n\t\tclientId,\n\t\tparentId,\n\t\tapplyFitText,\n\t\tblockElement,\n\t\thasFitTextSupport,\n\t] );\n\n\t// Trigger fit text recalculation when content changes\n\tuseEffect( () => {\n\t\tif ( fitText && blockElement && hasFitTextSupport ) {\n\t\t\t// Wait for next frame to ensure DOM has updated after content changes\n\t\t\tconst frameId = window.requestAnimationFrame( () => {\n\t\t\t\tif ( blockElement ) {\n\t\t\t\t\tapplyFitText();\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\treturn () => window.cancelAnimationFrame( frameId );\n\t\t}\n\t}, [\n\t\tblockAttributes,\n\t\tfitText,\n\t\tapplyFitText,\n\t\tblockElement,\n\t\thasFitTextSupport,\n\t] );\n\n\treturn { fontSize };\n}\n\n/**\n * Fit text control component for the typography panel.\n *\n * @param {Object} props Component props.\n * @param {string} props.clientId Block client ID.\n * @param {Function} props.setAttributes Function to set block attributes.\n * @param {string} props.name Block name.\n * @param {boolean} props.fitText Whether fit text is enabled.\n * @param {string} props.fontSize Font size slug.\n * @param {Object} props.style Block style object.\n * @param {JSX.Element} props.warning Warning component to display.\n */\nexport function FitTextControl( {\n\tclientId,\n\tfitText = false,\n\tsetAttributes,\n\tname,\n\tfontSize,\n\tstyle,\n\twarning,\n} ) {\n\tif ( ! hasBlockSupport( name, FIT_TEXT_SUPPORT_KEY ) ) {\n\t\treturn null;\n\t}\n\treturn (\n\t\t<InspectorControls group=\"typography\">\n\t\t\t<ToolsPanelItem\n\t\t\t\thasValue={ () => fitText }\n\t\t\t\tlabel={ __( 'Fit text' ) }\n\t\t\t\tonDeselect={ () => setAttributes( { fitText: undefined } ) }\n\t\t\t\tresetAllFilter={ () => ( { fitText: undefined } ) }\n\t\t\t\tpanelId={ clientId }\n\t\t\t>\n\t\t\t\t<ToggleControl\n\t\t\t\t\tlabel={ __( 'Fit text' ) }\n\t\t\t\t\tchecked={ fitText }\n\t\t\t\t\tonChange={ () => {\n\t\t\t\t\t\tconst newFitText = ! fitText || undefined;\n\t\t\t\t\t\tconst updates = { fitText: newFitText };\n\n\t\t\t\t\t\t// When enabling fit text, clear font size if it has a value\n\t\t\t\t\t\tif ( newFitText ) {\n\t\t\t\t\t\t\tif ( fontSize ) {\n\t\t\t\t\t\t\t\tupdates.fontSize = undefined;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ( style?.typography?.fontSize ) {\n\t\t\t\t\t\t\t\tupdates.style = {\n\t\t\t\t\t\t\t\t\t...style,\n\t\t\t\t\t\t\t\t\ttypography: {\n\t\t\t\t\t\t\t\t\t\t...style?.typography,\n\t\t\t\t\t\t\t\t\t\tfontSize: undefined,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tsetAttributes( updates );\n\t\t\t\t\t} }\n\t\t\t\t\thelp={\n\t\t\t\t\t\tfitText\n\t\t\t\t\t\t\t? __( 'Text will resize to fit its container.' )\n\t\t\t\t\t\t\t: __(\n\t\t\t\t\t\t\t\t\t'The text will resize to fit its container, resetting other font size settings.'\n\t\t\t\t\t\t\t )\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t\t{ warning }\n\t\t\t</ToolsPanelItem>\n\t\t</InspectorControls>\n\t);\n}\n\n/**\n * Override props applied to the block element on save.\n *\n * @param {Object} props Additional props applied to the block element.\n * @param {Object} blockType Block type.\n * @param {Object} attributes Block attributes.\n * @return {Object} Filtered props applied to the block element.\n */\nfunction addSaveProps( props, blockType, attributes ) {\n\tif ( ! hasBlockSupport( blockType, FIT_TEXT_SUPPORT_KEY ) ) {\n\t\treturn props;\n\t}\n\n\tconst { fitText } = attributes;\n\n\tif ( ! fitText ) {\n\t\treturn props;\n\t}\n\n\t// Add CSS class for frontend detection and styling\n\tconst className = props.className\n\t\t? `${ props.className } has-fit-text`\n\t\t: 'has-fit-text';\n\n\treturn {\n\t\t...props,\n\t\tclassName,\n\t};\n}\n\n/**\n * Override props applied to the block element in the editor.\n *\n * @param {Object} props Component props including block attributes.\n * @param {string} props.name Block name.\n * @param {boolean} props.fitText Whether fit text is enabled.\n * @return {Object} Filtered props applied to the block element.\n */\nfunction useBlockProps( { name, fitText } ) {\n\tif ( fitText && hasBlockSupport( name, FIT_TEXT_SUPPORT_KEY ) ) {\n\t\treturn {\n\t\t\tclassName: 'has-fit-text',\n\t\t};\n\t}\n\treturn {};\n}\n\naddFilter(\n\t'blocks.registerBlockType',\n\t'core/fit-text/addAttribute',\n\taddAttributes\n);\n\nconst hasFitTextSupport = ( blockNameOrType ) => {\n\treturn hasBlockSupport( blockNameOrType, FIT_TEXT_SUPPORT_KEY );\n};\n\n/*\n * Helper to encapsulate calls to the relatively expensive `useFitText` hook.\n * Used in `addFitTextControl` so that the hook is only called when a block's\n * `fitText` attribute is set.\n */\nfunction WithFitTextFontSize( { fitText, name, clientId, children } ) {\n\tconst { fontSize } = useFitText( { fitText, name, clientId } );\n\treturn children( fontSize );\n}\n\n/*\n * Fit-text requires that layout calculations be done even when a block is not\n * currently selected. Therefore, the regular hooking approach using an\n * exported `edit` method is not enough, and we must use this HoC with the\n * `editor.BlockEdit` filter.\n */\nconst addFitTextControl = createHigherOrderComponent( ( BlockEdit ) => {\n\treturn ( props ) => {\n\t\tconst { name, attributes, clientId, isSelected, setAttributes } = props;\n\t\tconst { fitText } = attributes;\n\t\tconst supportsFitText = hasBlockSupport( name, FIT_TEXT_SUPPORT_KEY );\n\t\tif ( ! supportsFitText ) {\n\t\t\treturn <BlockEdit { ...props } />;\n\t\t}\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<BlockEdit { ...props } />\n\t\t\t\t{ fitText && (\n\t\t\t\t\t<WithFitTextFontSize\n\t\t\t\t\t\tfitText={ fitText }\n\t\t\t\t\t\tname={ name }\n\t\t\t\t\t\tclientId={ clientId }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ ( fontSize ) =>\n\t\t\t\t\t\t\tisSelected && (\n\t\t\t\t\t\t\t\t<FitTextControl\n\t\t\t\t\t\t\t\t\tclientId={ clientId }\n\t\t\t\t\t\t\t\t\tfitText={ fitText }\n\t\t\t\t\t\t\t\t\tsetAttributes={ setAttributes }\n\t\t\t\t\t\t\t\t\tname={ name }\n\t\t\t\t\t\t\t\t\tfontSize={ attributes.fontSize }\n\t\t\t\t\t\t\t\t\tstyle={ attributes.style }\n\t\t\t\t\t\t\t\t\twarning={\n\t\t\t\t\t\t\t\t\t\tfontSize <\n\t\t\t\t\t\t\t\t\t\t\tMIN_FONT_SIZE_FOR_WARNING && (\n\t\t\t\t\t\t\t\t\t\t\t<FitTextSizeWarning />\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t</WithFitTextFontSize>\n\t\t\t\t) }\n\t\t\t\t{ ! fitText && isSelected && (\n\t\t\t\t\t<FitTextControl\n\t\t\t\t\t\tclientId={ clientId }\n\t\t\t\t\t\tfitText={ fitText }\n\t\t\t\t\t\tsetAttributes={ setAttributes }\n\t\t\t\t\t\tname={ name }\n\t\t\t\t\t\tfontSize={ attributes.fontSize }\n\t\t\t\t\t\tstyle={ attributes.style }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t</>\n\t\t);\n\t};\n}, 'addFitTextControl' );\n\naddFilter(\n\t'editor.BlockEdit',\n\t'core/fit-text/add-fit-text-control',\n\taddFitTextControl\n);\n\nexport default {\n\tuseBlockProps,\n\taddSaveProps,\n\tattributeKeys: [ 'fitText', 'fontSize', 'style' ],\n\thasSupport: hasFitTextSupport,\n\tedit: () => null,\n};\n"],
|
|
5
|
+
"mappings": ";AAGA,SAAS,iBAAiB;AAC1B,SAAS,uBAAuB;AAChC,SAAS,WAAW,aAAa,gBAAgB;AACjD,SAAS,iBAAiB;AAC1B,SAAS,UAAU;AACnB;AAAA,EACC;AAAA,EACA,gCAAgC;AAAA,OAC1B;AACP,SAAS,kCAAkC;AAQ3C,SAAS,uBAAuB;AAChC,SAAS,SAAS,wBAAwB;AAC1C,SAAS,uBAAuB;AAChC,OAAO,uBAAuB;AAC9B,OAAO,wBAAwB;AA0N5B,SAgIA,UAzHC,KAPD;AApOH,IAAM,eAAe,CAAC;AACtB,IAAM,4BAA4B;AAW3B,IAAM,uBAAuB;AASpC,SAAS,cAAe,UAAW;AAClC,MAAK,CAAE,gBAAiB,UAAU,oBAAqB,GAAI;AAC1D,WAAO;AAAA,EACR;AAGA,MAAK,SAAS,YAAY,SAAU;AACnC,WAAO;AAAA,EACR;AAGA,SAAO;AAAA,IACN,GAAG;AAAA,IACH,YAAY;AAAA,MACX,GAAG,SAAS;AAAA,MACZ,SAAS;AAAA,QACR,MAAM;AAAA,MACP;AAAA,IACD;AAAA,EACD;AACD;AAUA,SAAS,WAAY,EAAE,SAAS,MAAM,SAAS,GAAI;AAClD,QAAM,CAAE,UAAU,WAAY,IAAI,SAAU,IAAK;AACjD,QAAMA,qBAAoB,gBAAiB,MAAM,oBAAqB;AACtE,QAAM,eAAe,gBAAiB,QAAS;AAI/C,QAAM,EAAE,iBAAiB,SAAS,IAAI;AAAA,IACrC,CAAE,WAAY;AACb,UAAK,CAAE,YAAY,CAAEA,sBAAqB,CAAE,SAAU;AACrD,eAAO;AAAA,MACR;AACA,aAAO;AAAA,QACN,iBACC,OAAQ,gBAAiB,EAAE,mBAAoB,QAAS;AAAA,QACzD,UACC,OAAQ,gBAAiB,EAAE,qBAAsB,QAAS;AAAA,MAC5D;AAAA,IACD;AAAA,IACA,CAAE,UAAUA,oBAAmB,OAAQ;AAAA,EACxC;AAEA,QAAM,eAAe,YAAa,MAAM;AACvC,QAAK,CAAE,gBAAgB,CAAEA,sBAAqB,CAAE,SAAU;AACzD;AAAA,IACD;AAGA,UAAM,UAAU,YAAa,QAAS;AACtC,QAAI,eAAe,aAAa,cAAc,eAAgB,OAAQ;AACtE,QAAK,CAAE,cAAe;AACrB,qBAAe,aAAa,cAAc,cAAe,OAAQ;AACjE,mBAAa,KAAK;AAClB,mBAAa,cAAc,KAAK,YAAa,YAAa;AAAA,IAC3D;AAEA,UAAM,gBAAgB,UAAW,QAAS;AAE1C,UAAM,qBAAqB,CAAE,SAAU;AACtC,UAAK,SAAS,GAAI;AACjB,qBAAa,cAAc;AAAA,MAC5B,OAAO;AACN,qBAAa,cAAc,GAAI,aAAc,iBAAkB,IAAK;AAAA,MACrE;AAAA,IACD;AAEA,UAAM,cAAc,gBAAiB,cAAc,kBAAmB;AACtE,gBAAa,WAAY;AAAA,EAC1B,GAAG,CAAE,cAAc,UAAUA,oBAAmB,OAAQ,CAAE;AAE1D,YAAW,MAAM;AAChB,QACC,CAAE,WACF,CAAE,gBACF,CAAE,YACF,CAAEA,oBACD;AACD;AAAA,IACD;AAGA,UAAM,iBAAiB;AACvB,UAAM,qBAAqB,eAAe,MAAM;AAGhD,QAAI,cAAc;AAClB,QAAI,mBAAmB;AACvB,QAAI,gBAAgB;AAKpB,kBAAc,OAAO,sBAAuB,MAAM;AACjD,qBAAe,MAAM,aAAa;AAElC,yBAAmB,OAAO,sBAAuB,MAAM;AACtD,qBAAa;AAKb,wBAAgB,WAAY,MAAM;AACjC,yBAAe,MAAM,aAAa;AAAA,QACnC,GAAG,EAAG;AAAA,MACP,CAAE;AAAA,IACH,CAAE;AAGF,QAAI;AACJ,QAAK,OAAO,kBAAkB,eAAe,eAAgB;AAC5D,uBAAiB,IAAI,OAAO,eAAgB,YAAa;AACzD,qBAAe,QAAS,eAAe,aAAc;AACrD,qBAAe,QAAS,cAAe;AAAA,IACxC;AAGA,WAAO,MAAM;AAEZ,UAAK,gBAAgB,MAAO;AAC3B,eAAO,qBAAsB,WAAY;AAAA,MAC1C;AACA,UAAK,qBAAqB,MAAO;AAChC,eAAO,qBAAsB,gBAAiB;AAAA,MAC/C;AACA,UAAK,kBAAkB,MAAO;AAC7B,qBAAc,aAAc;AAAA,MAC7B;AAEA,UAAK,gBAAiB;AACrB,uBAAe,WAAW;AAAA,MAC3B;AAEA,YAAM,UAAU,YAAa,QAAS;AACtC,YAAM,eACL,eAAe,cAAc,eAAgB,OAAQ;AACtD,UAAK,cAAe;AACnB,qBAAa,OAAO;AAAA,MACrB;AAAA,IACD;AAAA,EACD,GAAG;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACAA;AAAA,EACD,CAAE;AAGF,YAAW,MAAM;AAChB,QAAK,WAAW,gBAAgBA,oBAAoB;AAEnD,YAAM,UAAU,OAAO,sBAAuB,MAAM;AACnD,YAAK,cAAe;AACnB,uBAAa;AAAA,QACd;AAAA,MACD,CAAE;AAEF,aAAO,MAAM,OAAO,qBAAsB,OAAQ;AAAA,IACnD;AAAA,EACD,GAAG;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACAA;AAAA,EACD,CAAE;AAEF,SAAO,EAAE,SAAS;AACnB;AAcO,SAAS,eAAgB;AAAA,EAC/B;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAAI;AACH,MAAK,CAAE,gBAAiB,MAAM,oBAAqB,GAAI;AACtD,WAAO;AAAA,EACR;AACA,SACC,oBAAC,qBAAkB,OAAM,cACxB;AAAA,IAAC;AAAA;AAAA,MACA,UAAW,MAAM;AAAA,MACjB,OAAQ,GAAI,UAAW;AAAA,MACvB,YAAa,MAAM,cAAe,EAAE,SAAS,OAAU,CAAE;AAAA,MACzD,gBAAiB,OAAQ,EAAE,SAAS,OAAU;AAAA,MAC9C,SAAU;AAAA,MAEV;AAAA;AAAA,UAAC;AAAA;AAAA,YACA,OAAQ,GAAI,UAAW;AAAA,YACvB,SAAU;AAAA,YACV,UAAW,MAAM;AAChB,oBAAM,aAAa,CAAE,WAAW;AAChC,oBAAM,UAAU,EAAE,SAAS,WAAW;AAGtC,kBAAK,YAAa;AACjB,oBAAK,UAAW;AACf,0BAAQ,WAAW;AAAA,gBACpB;AACA,oBAAK,OAAO,YAAY,UAAW;AAClC,0BAAQ,QAAQ;AAAA,oBACf,GAAG;AAAA,oBACH,YAAY;AAAA,sBACX,GAAG,OAAO;AAAA,sBACV,UAAU;AAAA,oBACX;AAAA,kBACD;AAAA,gBACD;AAAA,cACD;AAEA,4BAAe,OAAQ;AAAA,YACxB;AAAA,YACA,MACC,UACG,GAAI,wCAAyC,IAC7C;AAAA,cACA;AAAA,YACA;AAAA;AAAA,QAEL;AAAA,QACE;AAAA;AAAA;AAAA,EACH,GACD;AAEF;AAUA,SAAS,aAAc,OAAO,WAAW,YAAa;AACrD,MAAK,CAAE,gBAAiB,WAAW,oBAAqB,GAAI;AAC3D,WAAO;AAAA,EACR;AAEA,QAAM,EAAE,QAAQ,IAAI;AAEpB,MAAK,CAAE,SAAU;AAChB,WAAO;AAAA,EACR;AAGA,QAAM,YAAY,MAAM,YACrB,GAAI,MAAM,SAAU,kBACpB;AAEH,SAAO;AAAA,IACN,GAAG;AAAA,IACH;AAAA,EACD;AACD;AAUA,SAAS,cAAe,EAAE,MAAM,QAAQ,GAAI;AAC3C,MAAK,WAAW,gBAAiB,MAAM,oBAAqB,GAAI;AAC/D,WAAO;AAAA,MACN,WAAW;AAAA,IACZ;AAAA,EACD;AACA,SAAO,CAAC;AACT;AAEA;AAAA,EACC;AAAA,EACA;AAAA,EACA;AACD;AAEA,IAAM,oBAAoB,CAAE,oBAAqB;AAChD,SAAO,gBAAiB,iBAAiB,oBAAqB;AAC/D;AAOA,SAAS,oBAAqB,EAAE,SAAS,MAAM,UAAU,SAAS,GAAI;AACrE,QAAM,EAAE,SAAS,IAAI,WAAY,EAAE,SAAS,MAAM,SAAS,CAAE;AAC7D,SAAO,SAAU,QAAS;AAC3B;AAQA,IAAM,oBAAoB,2BAA4B,CAAE,cAAe;AACtE,SAAO,CAAE,UAAW;AACnB,UAAM,EAAE,MAAM,YAAY,UAAU,YAAY,cAAc,IAAI;AAClE,UAAM,EAAE,QAAQ,IAAI;AACpB,UAAM,kBAAkB,gBAAiB,MAAM,oBAAqB;AACpE,QAAK,CAAE,iBAAkB;AACxB,aAAO,oBAAC,aAAY,GAAG,OAAQ;AAAA,IAChC;AACA,WACC,iCACC;AAAA,0BAAC,aAAY,GAAG,OAAQ;AAAA,MACtB,WACD;AAAA,QAAC;AAAA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UAEE,WAAE,aACH,cACC;AAAA,YAAC;AAAA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA,UAAW,WAAW;AAAA,cACtB,OAAQ,WAAW;AAAA,cACnB,SACC,WACC,6BACA,oBAAC,sBAAmB;AAAA;AAAA,UAGvB;AAAA;AAAA,MAGH;AAAA,MAEC,CAAE,WAAW,cACd;AAAA,QAAC;AAAA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,UAAW,WAAW;AAAA,UACtB,OAAQ,WAAW;AAAA;AAAA,MACpB;AAAA,OAEF;AAAA,EAEF;AACD,GAAG,mBAAoB;AAEvB;AAAA,EACC;AAAA,EACA;AAAA,EACA;AACD;AAEA,IAAO,mBAAQ;AAAA,EACd;AAAA,EACA;AAAA,EACA,eAAe,CAAE,WAAW,YAAY,OAAQ;AAAA,EAChD,YAAY;AAAA,EACZ,MAAM,MAAM;AACb;",
|
|
6
|
+
"names": ["hasFitTextSupport"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// packages/block-editor/src/hooks/font-family.js
|
|
2
|
+
import { addFilter } from "@wordpress/hooks";
|
|
3
|
+
import { hasBlockSupport } from "@wordpress/blocks";
|
|
4
|
+
import TokenList from "@wordpress/token-list";
|
|
5
|
+
import { privateApis as componentsPrivateApis } from "@wordpress/components";
|
|
6
|
+
import { shouldSkipSerialization } from "./utils.mjs";
|
|
7
|
+
import { TYPOGRAPHY_SUPPORT_KEY } from "./typography.mjs";
|
|
8
|
+
import { unlock } from "../lock-unlock.mjs";
|
|
9
|
+
var FONT_FAMILY_SUPPORT_KEY = "typography.__experimentalFontFamily";
|
|
10
|
+
var { kebabCase } = unlock(componentsPrivateApis);
|
|
11
|
+
function addAttributes(settings) {
|
|
12
|
+
if (!hasBlockSupport(settings, FONT_FAMILY_SUPPORT_KEY)) {
|
|
13
|
+
return settings;
|
|
14
|
+
}
|
|
15
|
+
if (!settings.attributes.fontFamily) {
|
|
16
|
+
Object.assign(settings.attributes, {
|
|
17
|
+
fontFamily: {
|
|
18
|
+
type: "string"
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return settings;
|
|
23
|
+
}
|
|
24
|
+
function addSaveProps(props, blockType, attributes) {
|
|
25
|
+
if (!hasBlockSupport(blockType, FONT_FAMILY_SUPPORT_KEY)) {
|
|
26
|
+
return props;
|
|
27
|
+
}
|
|
28
|
+
if (shouldSkipSerialization(
|
|
29
|
+
blockType,
|
|
30
|
+
TYPOGRAPHY_SUPPORT_KEY,
|
|
31
|
+
"fontFamily"
|
|
32
|
+
)) {
|
|
33
|
+
return props;
|
|
34
|
+
}
|
|
35
|
+
if (!attributes?.fontFamily) {
|
|
36
|
+
return props;
|
|
37
|
+
}
|
|
38
|
+
const classes = new TokenList(props.className);
|
|
39
|
+
classes.add(`has-${kebabCase(attributes?.fontFamily)}-font-family`);
|
|
40
|
+
const newClassName = classes.value;
|
|
41
|
+
props.className = newClassName ? newClassName : void 0;
|
|
42
|
+
return props;
|
|
43
|
+
}
|
|
44
|
+
function useBlockProps({ name, fontFamily }) {
|
|
45
|
+
return addSaveProps({}, name, { fontFamily });
|
|
46
|
+
}
|
|
47
|
+
var font_family_default = {
|
|
48
|
+
useBlockProps,
|
|
49
|
+
addSaveProps,
|
|
50
|
+
attributeKeys: ["fontFamily"],
|
|
51
|
+
hasSupport(name) {
|
|
52
|
+
return hasBlockSupport(name, FONT_FAMILY_SUPPORT_KEY);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
function resetFontFamily({ setAttributes }) {
|
|
56
|
+
setAttributes({ fontFamily: void 0 });
|
|
57
|
+
}
|
|
58
|
+
addFilter(
|
|
59
|
+
"blocks.registerBlockType",
|
|
60
|
+
"core/fontFamily/addAttribute",
|
|
61
|
+
addAttributes
|
|
62
|
+
);
|
|
63
|
+
export {
|
|
64
|
+
FONT_FAMILY_SUPPORT_KEY,
|
|
65
|
+
font_family_default as default,
|
|
66
|
+
resetFontFamily
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=font-family.mjs.map
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// packages/block-editor/src/hooks/font-size.js
|
|
2
|
+
import { addFilter } from "@wordpress/hooks";
|
|
3
|
+
import { hasBlockSupport } from "@wordpress/blocks";
|
|
4
|
+
import TokenList from "@wordpress/token-list";
|
|
5
|
+
import { getTypographyFontSizeValue } from "@wordpress/global-styles-engine";
|
|
6
|
+
import {
|
|
7
|
+
getFontSize,
|
|
8
|
+
getFontSizeClass,
|
|
9
|
+
getFontSizeObjectByValue,
|
|
10
|
+
FontSizePicker
|
|
11
|
+
} from "../components/font-sizes/index.mjs";
|
|
12
|
+
import { TYPOGRAPHY_SUPPORT_KEY } from "./typography.mjs";
|
|
13
|
+
import {
|
|
14
|
+
cleanEmptyObject,
|
|
15
|
+
transformStyles,
|
|
16
|
+
shouldSkipSerialization
|
|
17
|
+
} from "./utils.mjs";
|
|
18
|
+
import { useSettings } from "../components/use-settings/index.mjs";
|
|
19
|
+
import { jsx } from "react/jsx-runtime";
|
|
20
|
+
var FONT_SIZE_SUPPORT_KEY = "typography.fontSize";
|
|
21
|
+
function addAttributes(settings) {
|
|
22
|
+
if (!hasBlockSupport(settings, FONT_SIZE_SUPPORT_KEY)) {
|
|
23
|
+
return settings;
|
|
24
|
+
}
|
|
25
|
+
if (!settings.attributes.fontSize) {
|
|
26
|
+
Object.assign(settings.attributes, {
|
|
27
|
+
fontSize: {
|
|
28
|
+
type: "string"
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return settings;
|
|
33
|
+
}
|
|
34
|
+
function addSaveProps(props, blockNameOrType, attributes) {
|
|
35
|
+
if (!hasBlockSupport(blockNameOrType, FONT_SIZE_SUPPORT_KEY)) {
|
|
36
|
+
return props;
|
|
37
|
+
}
|
|
38
|
+
if (shouldSkipSerialization(
|
|
39
|
+
blockNameOrType,
|
|
40
|
+
TYPOGRAPHY_SUPPORT_KEY,
|
|
41
|
+
"fontSize"
|
|
42
|
+
)) {
|
|
43
|
+
return props;
|
|
44
|
+
}
|
|
45
|
+
const classes = new TokenList(props.className);
|
|
46
|
+
classes.add(getFontSizeClass(attributes.fontSize));
|
|
47
|
+
const newClassName = classes.value;
|
|
48
|
+
props.className = newClassName ? newClassName : void 0;
|
|
49
|
+
return props;
|
|
50
|
+
}
|
|
51
|
+
function FontSizeEdit(props) {
|
|
52
|
+
const {
|
|
53
|
+
attributes: { fontSize, style },
|
|
54
|
+
setAttributes
|
|
55
|
+
} = props;
|
|
56
|
+
const [fontSizes] = useSettings("typography.fontSizes");
|
|
57
|
+
const onChange = (value, selectedItem) => {
|
|
58
|
+
const fontSizeSlug = selectedItem?.slug || getFontSizeObjectByValue(fontSizes, value).slug;
|
|
59
|
+
setAttributes({
|
|
60
|
+
style: cleanEmptyObject({
|
|
61
|
+
...style,
|
|
62
|
+
typography: {
|
|
63
|
+
...style?.typography,
|
|
64
|
+
fontSize: fontSizeSlug ? void 0 : value
|
|
65
|
+
}
|
|
66
|
+
}),
|
|
67
|
+
fontSize: fontSizeSlug
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
const fontSizeObject = getFontSize(
|
|
71
|
+
fontSizes,
|
|
72
|
+
fontSize,
|
|
73
|
+
style?.typography?.fontSize
|
|
74
|
+
);
|
|
75
|
+
const fontSizeValue = fontSizeObject?.size || style?.typography?.fontSize || fontSize;
|
|
76
|
+
return /* @__PURE__ */ jsx(
|
|
77
|
+
FontSizePicker,
|
|
78
|
+
{
|
|
79
|
+
onChange,
|
|
80
|
+
value: fontSize || fontSizeValue,
|
|
81
|
+
valueMode: fontSize ? "slug" : "literal",
|
|
82
|
+
withReset: false,
|
|
83
|
+
withSlider: true,
|
|
84
|
+
size: "__unstable-large"
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
function useIsFontSizeDisabled({ name: blockName } = {}) {
|
|
89
|
+
const [fontSizes] = useSettings("typography.fontSizes");
|
|
90
|
+
const hasFontSizes = !!fontSizes?.length;
|
|
91
|
+
return !hasBlockSupport(blockName, FONT_SIZE_SUPPORT_KEY) || !hasFontSizes;
|
|
92
|
+
}
|
|
93
|
+
function useBlockProps({ name, fontSize, style }) {
|
|
94
|
+
const [fontSizes, fluidTypographySettings, layoutSettings] = useSettings(
|
|
95
|
+
"typography.fontSizes",
|
|
96
|
+
"typography.fluid",
|
|
97
|
+
"layout"
|
|
98
|
+
);
|
|
99
|
+
if (!hasBlockSupport(name, FONT_SIZE_SUPPORT_KEY) || shouldSkipSerialization(name, TYPOGRAPHY_SUPPORT_KEY, "fontSize") || !fontSize && !style?.typography?.fontSize) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
let props;
|
|
103
|
+
if (style?.typography?.fontSize) {
|
|
104
|
+
props = {
|
|
105
|
+
style: {
|
|
106
|
+
fontSize: getTypographyFontSizeValue(
|
|
107
|
+
{ size: style.typography.fontSize },
|
|
108
|
+
{
|
|
109
|
+
typography: {
|
|
110
|
+
fluid: fluidTypographySettings
|
|
111
|
+
},
|
|
112
|
+
layout: layoutSettings
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
if (fontSize) {
|
|
119
|
+
props = {
|
|
120
|
+
style: {
|
|
121
|
+
fontSize: getFontSize(
|
|
122
|
+
fontSizes,
|
|
123
|
+
fontSize,
|
|
124
|
+
style?.typography?.fontSize
|
|
125
|
+
).size
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
if (!props) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
return addSaveProps(props, name, { fontSize });
|
|
133
|
+
}
|
|
134
|
+
var font_size_default = {
|
|
135
|
+
useBlockProps,
|
|
136
|
+
addSaveProps,
|
|
137
|
+
attributeKeys: ["fontSize", "style"],
|
|
138
|
+
hasSupport(name) {
|
|
139
|
+
return hasBlockSupport(name, FONT_SIZE_SUPPORT_KEY);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
var MIGRATION_PATHS = {
|
|
143
|
+
fontSize: [["fontSize"], ["style", "typography", "fontSize"]]
|
|
144
|
+
};
|
|
145
|
+
function addTransforms(result, source, index, results) {
|
|
146
|
+
const destinationBlockType = result.name;
|
|
147
|
+
const activeSupports = {
|
|
148
|
+
fontSize: hasBlockSupport(
|
|
149
|
+
destinationBlockType,
|
|
150
|
+
FONT_SIZE_SUPPORT_KEY
|
|
151
|
+
)
|
|
152
|
+
};
|
|
153
|
+
return transformStyles(
|
|
154
|
+
activeSupports,
|
|
155
|
+
MIGRATION_PATHS,
|
|
156
|
+
result,
|
|
157
|
+
source,
|
|
158
|
+
index,
|
|
159
|
+
results
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
addFilter(
|
|
163
|
+
"blocks.registerBlockType",
|
|
164
|
+
"core/font/addAttribute",
|
|
165
|
+
addAttributes
|
|
166
|
+
);
|
|
167
|
+
addFilter(
|
|
168
|
+
"blocks.switchToBlockType.transformedBlock",
|
|
169
|
+
"core/font-size/addTransforms",
|
|
170
|
+
addTransforms
|
|
171
|
+
);
|
|
172
|
+
export {
|
|
173
|
+
FONT_SIZE_SUPPORT_KEY,
|
|
174
|
+
FontSizeEdit,
|
|
175
|
+
font_size_default as default,
|
|
176
|
+
useIsFontSizeDisabled
|
|
177
|
+
};
|
|
178
|
+
//# sourceMappingURL=font-size.mjs.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// packages/block-editor/src/hooks/gap.js
|
|
2
|
+
import { getSpacingPresetCssVar } from "../components/spacing-sizes-control/utils.mjs";
|
|
3
|
+
function getGapBoxControlValueFromStyle(blockGapValue) {
|
|
4
|
+
if (!blockGapValue) {
|
|
5
|
+
return null;
|
|
6
|
+
}
|
|
7
|
+
const isValueString = typeof blockGapValue === "string";
|
|
8
|
+
return {
|
|
9
|
+
top: isValueString ? blockGapValue : blockGapValue?.top,
|
|
10
|
+
left: isValueString ? blockGapValue : blockGapValue?.left
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function getGapCSSValue(blockGapValue, defaultValue = "0") {
|
|
14
|
+
const blockGapBoxControlValue = getGapBoxControlValueFromStyle(blockGapValue);
|
|
15
|
+
if (!blockGapBoxControlValue) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
const row = getSpacingPresetCssVar(blockGapBoxControlValue?.top) || defaultValue;
|
|
19
|
+
const column = getSpacingPresetCssVar(blockGapBoxControlValue?.left) || defaultValue;
|
|
20
|
+
return row === column ? row : `${row} ${column}`;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
getGapBoxControlValueFromStyle,
|
|
24
|
+
getGapCSSValue
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=gap.mjs.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// packages/block-editor/src/hooks/generate-fields-from-attributes.js
|
|
2
|
+
function generateFieldsFromAttributes(attributes) {
|
|
3
|
+
const fields = [];
|
|
4
|
+
const fieldIds = [];
|
|
5
|
+
Object.entries(attributes).forEach(([name, def]) => {
|
|
6
|
+
if (!def.__experimentalAutoInspectorControl) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const field = createFieldFromAttribute(name, def);
|
|
10
|
+
if (field) {
|
|
11
|
+
fields.push(field);
|
|
12
|
+
fieldIds.push(name);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
return {
|
|
16
|
+
fields,
|
|
17
|
+
form: { fields: fieldIds }
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function createFieldFromAttribute(name, def) {
|
|
21
|
+
const type = def.type;
|
|
22
|
+
if (!["string", "number", "integer", "boolean"].includes(type)) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
const field = {
|
|
26
|
+
id: name,
|
|
27
|
+
label: def.label || name,
|
|
28
|
+
// Only 'string' needs mapping to 'text'; others are 1:1 with DataForm types.
|
|
29
|
+
// This mapping will be unnecessary once #74105 lands.
|
|
30
|
+
type: type === "string" ? "text" : type
|
|
31
|
+
};
|
|
32
|
+
if (def.enum && Array.isArray(def.enum)) {
|
|
33
|
+
field.elements = def.enum.map((value) => ({
|
|
34
|
+
value,
|
|
35
|
+
label: String(value)
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
return field;
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
generateFieldsFromAttributes
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=generate-fields-from-attributes.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/hooks/generate-fields-from-attributes.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * Generates DataForm field definitions from block attributes.\n *\n * This utility enables PHP-only blocks to have auto-generated inspector controls\n * by converting block attribute definitions into DataForm field definitions.\n *\n * @param {Object} attributes - Block type attributes from block registration\n * @return {{ fields: Array, form: Object }} fieldsKey and formKey values\n */\nexport function generateFieldsFromAttributes( attributes ) {\n\tconst fields = [];\n\tconst fieldIds = [];\n\n\tObject.entries( attributes ).forEach( ( [ name, def ] ) => {\n\t\tif ( ! def.__experimentalAutoInspectorControl ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst field = createFieldFromAttribute( name, def );\n\t\tif ( field ) {\n\t\t\tfields.push( field );\n\t\t\tfieldIds.push( name );\n\t\t}\n\t} );\n\n\treturn {\n\t\tfields,\n\t\tform: { fields: fieldIds },\n\t};\n}\n\n/**\n * Creates a DataForm field definition from a block attribute definition.\n *\n * @param {string} name - The attribute name\n * @param {Object} def - The attribute definition from block.json\n * @return {Object|null} DataForm field definition or null if type not supported\n */\nfunction createFieldFromAttribute( name, def ) {\n\tconst type = def.type;\n\n\t// Skip unsupported types (object, union types, etc.)\n\t// Supported: string\u2192text, number, integer, boolean (1:1 with DataForm)\n\tif ( ! [ 'string', 'number', 'integer', 'boolean' ].includes( type ) ) {\n\t\treturn null;\n\t}\n\n\tconst field = {\n\t\tid: name,\n\t\tlabel: def.label || name,\n\t\t// Only 'string' needs mapping to 'text'; others are 1:1 with DataForm types.\n\t\t// This mapping will be unnecessary once #74105 lands.\n\t\ttype: type === 'string' ? 'text' : type,\n\t};\n\n\t// Add elements for enums (DataForm shows select UI when elements are present)\n\tif ( def.enum && Array.isArray( def.enum ) ) {\n\t\tfield.elements = def.enum.map( ( value ) => ( {\n\t\t\tvalue,\n\t\t\tlabel: String( value ),\n\t\t} ) );\n\t}\n\n\treturn field;\n}\n"],
|
|
5
|
+
"mappings": ";AASO,SAAS,6BAA8B,YAAa;AAC1D,QAAM,SAAS,CAAC;AAChB,QAAM,WAAW,CAAC;AAElB,SAAO,QAAS,UAAW,EAAE,QAAS,CAAE,CAAE,MAAM,GAAI,MAAO;AAC1D,QAAK,CAAE,IAAI,oCAAqC;AAC/C;AAAA,IACD;AAEA,UAAM,QAAQ,yBAA0B,MAAM,GAAI;AAClD,QAAK,OAAQ;AACZ,aAAO,KAAM,KAAM;AACnB,eAAS,KAAM,IAAK;AAAA,IACrB;AAAA,EACD,CAAE;AAEF,SAAO;AAAA,IACN;AAAA,IACA,MAAM,EAAE,QAAQ,SAAS;AAAA,EAC1B;AACD;AASA,SAAS,yBAA0B,MAAM,KAAM;AAC9C,QAAM,OAAO,IAAI;AAIjB,MAAK,CAAE,CAAE,UAAU,UAAU,WAAW,SAAU,EAAE,SAAU,IAAK,GAAI;AACtE,WAAO;AAAA,EACR;AAEA,QAAM,QAAQ;AAAA,IACb,IAAI;AAAA,IACJ,OAAO,IAAI,SAAS;AAAA;AAAA;AAAA,IAGpB,MAAM,SAAS,WAAW,SAAS;AAAA,EACpC;AAGA,MAAK,IAAI,QAAQ,MAAM,QAAS,IAAI,IAAK,GAAI;AAC5C,UAAM,WAAW,IAAI,KAAK,IAAK,CAAE,WAAa;AAAA,MAC7C;AAAA,MACA,OAAO,OAAQ,KAAM;AAAA,IACtB,EAAI;AAAA,EACL;AAEA,SAAO;AACR;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|