@wordpress/block-editor 17.0.0 → 17.0.2-next.v.202608281122.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/CHANGELOG.md +17 -0
- package/build/autocompleters/block.cjs +1 -1
- package/build/autocompleters/block.cjs.map +1 -1
- package/build/components/alignment-control/index.cjs +1 -1
- package/build/components/alignment-control/index.cjs.map +1 -1
- package/build/components/alignment-control/ui.cjs +1 -1
- package/build/components/alignment-control/ui.cjs.map +1 -1
- package/build/components/autocomplete/index.cjs +1 -1
- package/build/components/autocomplete/index.cjs.map +1 -1
- package/build/components/background-image-control/index.cjs +1 -1
- package/build/components/background-image-control/index.cjs.map +1 -1
- package/build/components/block-alignment-control/index.cjs +1 -1
- package/build/components/block-alignment-control/index.cjs.map +1 -1
- package/build/components/block-alignment-control/ui.cjs +1 -1
- package/build/components/block-alignment-control/ui.cjs.map +1 -1
- package/build/components/block-alignment-matrix-control/index.cjs +1 -1
- package/build/components/block-alignment-matrix-control/index.cjs.map +1 -1
- package/build/components/block-allowed-blocks/allowed-blocks-control.cjs +1 -1
- package/build/components/block-allowed-blocks/allowed-blocks-control.cjs.map +1 -1
- package/build/components/block-allowed-blocks/modal.cjs +1 -1
- package/build/components/block-allowed-blocks/modal.cjs.map +1 -1
- package/build/components/block-bindings/attribute-control.cjs +1 -1
- package/build/components/block-bindings/attribute-control.cjs.map +1 -1
- package/build/components/block-bindings/source-fields-list.cjs +1 -1
- package/build/components/block-bindings/source-fields-list.cjs.map +1 -1
- package/build/components/block-breadcrumb/index.cjs +1 -1
- package/build/components/block-breadcrumb/index.cjs.map +1 -1
- package/build/components/block-canvas/index.cjs +1 -1
- package/build/components/block-canvas/index.cjs.map +1 -1
- package/build/components/block-card/index.cjs +1 -1
- package/build/components/block-card/index.cjs.map +1 -1
- package/build/components/block-compare/block-view.cjs +1 -1
- package/build/components/block-compare/block-view.cjs.map +1 -1
- package/build/components/block-compare/index.cjs +1 -1
- package/build/components/block-compare/index.cjs.map +1 -1
- package/build/components/block-context/index.cjs +1 -1
- package/build/components/block-context/index.cjs.map +1 -1
- package/build/components/block-controls/fill.cjs +1 -1
- package/build/components/block-controls/fill.cjs.map +1 -1
- package/build/components/block-controls/index.cjs +1 -1
- package/build/components/block-controls/index.cjs.map +1 -1
- package/build/components/block-controls/slot.cjs +1 -1
- package/build/components/block-controls/slot.cjs.map +1 -1
- package/build/components/block-draggable/draggable-chip.cjs +1 -1
- package/build/components/block-draggable/draggable-chip.cjs.map +1 -1
- package/build/components/block-draggable/index.cjs +1 -1
- package/build/components/block-draggable/index.cjs.map +1 -1
- package/build/components/block-edit/edit.cjs +1 -1
- package/build/components/block-edit/edit.cjs.map +1 -1
- package/build/components/block-edit/index.cjs +1 -1
- package/build/components/block-edit/index.cjs.map +1 -1
- package/build/components/block-edit/multiple-usage-warning.cjs +1 -1
- package/build/components/block-edit/multiple-usage-warning.cjs.map +1 -1
- package/build/components/block-edit-visually-button/index.cjs +1 -1
- package/build/components/block-edit-visually-button/index.cjs.map +1 -1
- package/build/components/block-full-height-alignment-control/index.cjs +1 -1
- package/build/components/block-full-height-alignment-control/index.cjs.map +1 -1
- package/build/components/block-heading-level-dropdown/heading-level-icon.cjs +1 -1
- package/build/components/block-heading-level-dropdown/heading-level-icon.cjs.map +1 -1
- package/build/components/block-heading-level-dropdown/index.cjs +1 -1
- package/build/components/block-heading-level-dropdown/index.cjs.map +1 -1
- package/build/components/block-icon/index.cjs +1 -1
- package/build/components/block-icon/index.cjs.map +1 -1
- package/build/components/block-inspector/edit-contents.cjs +1 -1
- package/build/components/block-inspector/edit-contents.cjs.map +1 -1
- package/build/components/block-inspector/index.cjs +5 -4
- package/build/components/block-inspector/index.cjs.map +3 -3
- package/build/components/block-keyboard-shortcuts/index.cjs +1 -1
- package/build/components/block-keyboard-shortcuts/index.cjs.map +1 -1
- package/build/components/block-list/block-crash-warning.cjs +1 -1
- package/build/components/block-list/block-crash-warning.cjs.map +1 -1
- package/build/components/block-list/block-html.cjs +1 -1
- package/build/components/block-list/block-html.cjs.map +1 -1
- package/build/components/block-list/block-invalid-warning.cjs +1 -1
- package/build/components/block-list/block-invalid-warning.cjs.map +1 -1
- package/build/components/block-list/block.cjs +1 -1
- package/build/components/block-list/block.cjs.map +1 -1
- package/build/components/block-list/index.cjs +1 -1
- package/build/components/block-list/index.cjs.map +1 -1
- package/build/components/block-list/layout.cjs +1 -1
- package/build/components/block-list/layout.cjs.map +1 -1
- package/build/components/block-list/subdirectory-icon.cjs +1 -1
- package/build/components/block-list/subdirectory-icon.cjs.map +1 -1
- package/build/components/block-list/zoom-out-separator.cjs +1 -1
- package/build/components/block-list/zoom-out-separator.cjs.map +1 -1
- package/build/components/block-list-appender/index.cjs +1 -1
- package/build/components/block-list-appender/index.cjs.map +1 -1
- package/build/components/block-lock/menu-item.cjs +1 -1
- package/build/components/block-lock/menu-item.cjs.map +1 -1
- package/build/components/block-lock/modal.cjs +1 -1
- package/build/components/block-lock/modal.cjs.map +1 -1
- package/build/components/block-lock/toolbar.cjs +1 -1
- package/build/components/block-lock/toolbar.cjs.map +1 -1
- package/build/components/block-manager/category.cjs +1 -1
- package/build/components/block-manager/category.cjs.map +1 -1
- package/build/components/block-manager/checklist.cjs +1 -1
- package/build/components/block-manager/checklist.cjs.map +1 -1
- package/build/components/block-manager/index.cjs +1 -1
- package/build/components/block-manager/index.cjs.map +1 -1
- package/build/components/block-mover/button.cjs +1 -1
- package/build/components/block-mover/button.cjs.map +1 -1
- package/build/components/block-mover/index.cjs +1 -1
- package/build/components/block-mover/index.cjs.map +1 -1
- package/build/components/block-navigation/dropdown.cjs +1 -1
- package/build/components/block-navigation/dropdown.cjs.map +1 -1
- package/build/components/block-parent-selector/index.cjs +1 -1
- package/build/components/block-parent-selector/index.cjs.map +1 -1
- package/build/components/block-pattern-setup/index.cjs +1 -1
- package/build/components/block-pattern-setup/index.cjs.map +1 -1
- package/build/components/block-pattern-setup/setup-toolbar.cjs +1 -1
- package/build/components/block-pattern-setup/setup-toolbar.cjs.map +1 -1
- package/build/components/block-patterns-list/index.cjs +1 -1
- package/build/components/block-patterns-list/index.cjs.map +1 -1
- package/build/components/block-patterns-paging/index.cjs +1 -1
- package/build/components/block-patterns-paging/index.cjs.map +1 -1
- package/build/components/block-popover/cover.cjs +1 -1
- package/build/components/block-popover/cover.cjs.map +1 -1
- package/build/components/block-popover/drop-zone.cjs +1 -1
- package/build/components/block-popover/drop-zone.cjs.map +1 -1
- package/build/components/block-popover/inbetween.cjs +1 -1
- package/build/components/block-popover/inbetween.cjs.map +1 -1
- package/build/components/block-popover/index.cjs +1 -1
- package/build/components/block-popover/index.cjs.map +1 -1
- package/build/components/block-preview/auto.cjs +1 -1
- package/build/components/block-preview/auto.cjs.map +1 -1
- package/build/components/block-preview/index.cjs +1 -1
- package/build/components/block-preview/index.cjs.map +1 -1
- package/build/components/block-quick-navigation/index.cjs +1 -1
- package/build/components/block-quick-navigation/index.cjs.map +1 -1
- package/build/components/block-removal-warning-modal/index.cjs +1 -1
- package/build/components/block-removal-warning-modal/index.cjs.map +1 -1
- package/build/components/block-rename/modal.cjs +1 -1
- package/build/components/block-rename/modal.cjs.map +1 -1
- package/build/components/block-rename/rename-control.cjs +1 -1
- package/build/components/block-rename/rename-control.cjs.map +1 -1
- package/build/components/block-selection-clearer/index.cjs +1 -1
- package/build/components/block-selection-clearer/index.cjs.map +1 -1
- package/build/components/block-settings-menu/block-html-convert-button.cjs +1 -1
- package/build/components/block-settings-menu/block-html-convert-button.cjs.map +1 -1
- package/build/components/block-settings-menu/block-mode-toggle.cjs +1 -1
- package/build/components/block-settings-menu/block-mode-toggle.cjs.map +1 -1
- package/build/components/block-settings-menu/block-parent-selector-menu-item.cjs +1 -1
- package/build/components/block-settings-menu/block-parent-selector-menu-item.cjs.map +1 -1
- package/build/components/block-settings-menu/block-settings-dropdown.cjs +1 -1
- package/build/components/block-settings-menu/block-settings-dropdown.cjs.map +1 -1
- package/build/components/block-settings-menu/index.cjs +1 -1
- package/build/components/block-settings-menu/index.cjs.map +1 -1
- package/build/components/block-settings-menu-controls/index.cjs +1 -1
- package/build/components/block-settings-menu-controls/index.cjs.map +1 -1
- package/build/components/block-styles/index.cjs +1 -1
- package/build/components/block-styles/index.cjs.map +1 -1
- package/build/components/block-styles/menu-items.cjs +1 -1
- package/build/components/block-styles/menu-items.cjs.map +1 -1
- package/build/components/block-switcher/block-styles-menu.cjs +1 -1
- package/build/components/block-switcher/block-styles-menu.cjs.map +1 -1
- package/build/components/block-switcher/block-transformations-menu.cjs +1 -1
- package/build/components/block-switcher/block-transformations-menu.cjs.map +1 -1
- package/build/components/block-switcher/block-variation-transformations.cjs +1 -1
- package/build/components/block-switcher/block-variation-transformations.cjs.map +1 -1
- package/build/components/block-switcher/index.cjs +1 -1
- package/build/components/block-switcher/index.cjs.map +1 -1
- package/build/components/block-switcher/pattern-transformations-menu.cjs +1 -1
- package/build/components/block-switcher/pattern-transformations-menu.cjs.map +1 -1
- package/build/components/block-switcher/preview-block-popover.cjs +1 -1
- package/build/components/block-switcher/preview-block-popover.cjs.map +1 -1
- package/build/components/block-toolbar/block-styles-dropdown.cjs +1 -1
- package/build/components/block-toolbar/block-styles-dropdown.cjs.map +1 -1
- package/build/components/block-toolbar/block-toolbar-icon.cjs +1 -1
- package/build/components/block-toolbar/block-toolbar-icon.cjs.map +1 -1
- package/build/components/block-toolbar/change-design.cjs +1 -1
- package/build/components/block-toolbar/change-design.cjs.map +1 -1
- package/build/components/block-toolbar/edit-section-button.cjs +1 -1
- package/build/components/block-toolbar/edit-section-button.cjs.map +1 -1
- package/build/components/block-toolbar/index.cjs +1 -1
- package/build/components/block-toolbar/index.cjs.map +1 -1
- package/build/components/block-toolbar/pattern-overrides-dropdown.cjs +1 -1
- package/build/components/block-toolbar/pattern-overrides-dropdown.cjs.map +1 -1
- package/build/components/block-toolbar/switch-section-style.cjs +1 -1
- package/build/components/block-toolbar/switch-section-style.cjs.map +1 -1
- package/build/components/block-tools/block-toolbar-popover.cjs +1 -1
- package/build/components/block-tools/block-toolbar-popover.cjs.map +1 -1
- package/build/components/block-tools/empty-block-inserter.cjs +1 -1
- package/build/components/block-tools/empty-block-inserter.cjs.map +1 -1
- package/build/components/block-tools/index.cjs +1 -1
- package/build/components/block-tools/index.cjs.map +1 -1
- package/build/components/block-tools/insertion-point.cjs +1 -1
- package/build/components/block-tools/insertion-point.cjs.map +1 -1
- package/build/components/block-tools/zoom-out-mode-inserter-button.cjs +1 -1
- package/build/components/block-tools/zoom-out-mode-inserter-button.cjs.map +1 -1
- package/build/components/block-tools/zoom-out-mode-inserters.cjs +1 -1
- package/build/components/block-tools/zoom-out-mode-inserters.cjs.map +1 -1
- package/build/components/block-types-list/index.cjs +1 -1
- package/build/components/block-types-list/index.cjs.map +1 -1
- package/build/components/block-variation-picker/index.cjs +1 -1
- package/build/components/block-variation-picker/index.cjs.map +1 -1
- package/build/components/block-variation-transforms/index.cjs +1 -1
- 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-vertical-alignment-control/index.cjs.map +1 -1
- package/build/components/block-vertical-alignment-control/ui.cjs +1 -1
- package/build/components/block-vertical-alignment-control/ui.cjs.map +1 -1
- package/build/components/block-visibility/constants.cjs.map +1 -1
- package/build/components/block-visibility/modal.cjs +1 -1
- package/build/components/block-visibility/modal.cjs.map +1 -1
- package/build/components/block-visibility/viewport-menu-item.cjs +1 -1
- package/build/components/block-visibility/viewport-menu-item.cjs.map +1 -1
- package/build/components/block-visibility/viewport-toolbar.cjs +1 -1
- package/build/components/block-visibility/viewport-toolbar.cjs.map +1 -1
- package/build/components/block-visibility/viewport-visibility-info.cjs +1 -1
- package/build/components/block-visibility/viewport-visibility-info.cjs.map +1 -1
- package/build/components/border-radius-control/index.cjs +1 -1
- package/build/components/border-radius-control/index.cjs.map +1 -1
- package/build/components/border-radius-control/linked-button.cjs +1 -1
- package/build/components/border-radius-control/linked-button.cjs.map +1 -1
- package/build/components/button-block-appender/index.cjs +1 -1
- package/build/components/button-block-appender/index.cjs.map +1 -1
- package/build/components/child-layout-control/index.cjs +1 -1
- package/build/components/child-layout-control/index.cjs.map +1 -1
- package/build/components/color-palette/control.cjs +1 -1
- package/build/components/color-palette/control.cjs.map +1 -1
- package/build/components/color-palette/with-color-context.cjs +1 -1
- package/build/components/color-palette/with-color-context.cjs.map +1 -1
- package/build/components/color-style-selector/index.cjs +1 -1
- package/build/components/color-style-selector/index.cjs.map +1 -1
- package/build/components/colors/with-colors.cjs +1 -1
- package/build/components/colors/with-colors.cjs.map +1 -1
- package/build/components/colors-gradients/control.cjs +1 -1
- package/build/components/colors-gradients/control.cjs.map +1 -1
- package/build/components/colors-gradients/dropdown.cjs +1 -1
- package/build/components/colors-gradients/dropdown.cjs.map +1 -1
- package/build/components/colors-gradients/panel-color-gradient-settings.cjs +1 -1
- package/build/components/colors-gradients/panel-color-gradient-settings.cjs.map +1 -1
- package/build/components/contrast-checker/index.cjs +1 -1
- package/build/components/contrast-checker/index.cjs.map +1 -1
- package/build/components/convert-to-group-buttons/index.cjs +1 -1
- package/build/components/convert-to-group-buttons/index.cjs.map +1 -1
- package/build/components/convert-to-group-buttons/toolbar.cjs +1 -1
- package/build/components/convert-to-group-buttons/toolbar.cjs.map +1 -1
- package/build/components/copy-handler/index.cjs +1 -1
- package/build/components/copy-handler/index.cjs.map +1 -1
- package/build/components/date-format-picker/index.cjs +1 -1
- package/build/components/date-format-picker/index.cjs.map +1 -1
- package/build/components/default-block-appender/index.cjs +1 -1
- package/build/components/default-block-appender/index.cjs.map +1 -1
- package/build/components/dimension-control/index.cjs +1 -1
- package/build/components/dimension-control/index.cjs.map +1 -1
- package/build/components/dimensions-tool/aspect-ratio-tool.cjs +1 -1
- package/build/components/dimensions-tool/aspect-ratio-tool.cjs.map +1 -1
- package/build/components/dimensions-tool/index.cjs +1 -1
- package/build/components/dimensions-tool/index.cjs.map +1 -1
- package/build/components/dimensions-tool/scale-tool.cjs +1 -1
- package/build/components/dimensions-tool/scale-tool.cjs.map +1 -1
- package/build/components/dimensions-tool/width-height-tool.cjs +1 -1
- package/build/components/dimensions-tool/width-height-tool.cjs.map +1 -1
- package/build/components/duotone-control/index.cjs +1 -1
- package/build/components/duotone-control/index.cjs.map +1 -1
- package/build/components/editable-text/index.cjs +1 -1
- package/build/components/editable-text/index.cjs.map +1 -1
- package/build/components/editor-styles/index.cjs +1 -1
- package/build/components/editor-styles/index.cjs.map +1 -1
- package/build/components/fit-text-size-warning/index.cjs +1 -1
- package/build/components/fit-text-size-warning/index.cjs.map +1 -1
- package/build/components/font-appearance-control/index.cjs +1 -1
- package/build/components/font-appearance-control/index.cjs.map +1 -1
- package/build/components/font-family/index.cjs +1 -1
- package/build/components/font-family/index.cjs.map +1 -1
- package/build/components/font-sizes/font-size-picker.cjs +1 -1
- package/build/components/font-sizes/font-size-picker.cjs.map +1 -1
- package/build/components/font-sizes/with-font-sizes.cjs +1 -1
- package/build/components/font-sizes/with-font-sizes.cjs.map +1 -1
- package/build/components/global-styles/advanced-panel.cjs +1 -1
- package/build/components/global-styles/advanced-panel.cjs.map +1 -1
- package/build/components/global-styles/background-panel.cjs +1 -1
- package/build/components/global-styles/background-panel.cjs.map +2 -2
- package/build/components/global-styles/border-panel.cjs +1 -1
- package/build/components/global-styles/border-panel.cjs.map +1 -1
- package/build/components/global-styles/color-gradient-dropdown-item.cjs +1 -1
- package/build/components/global-styles/color-gradient-dropdown-item.cjs.map +1 -1
- package/build/components/global-styles/color-panel.cjs +1 -1
- package/build/components/global-styles/color-panel.cjs.map +1 -1
- package/build/components/global-styles/dimensions-panel.cjs +1 -1
- package/build/components/global-styles/dimensions-panel.cjs.map +1 -1
- package/build/components/global-styles/filters-panel.cjs +1 -1
- package/build/components/global-styles/filters-panel.cjs.map +1 -1
- package/build/components/global-styles/image-settings-panel.cjs +1 -1
- package/build/components/global-styles/image-settings-panel.cjs.map +1 -1
- package/build/components/global-styles/inheritance/index.cjs +1 -1
- package/build/components/global-styles/inheritance/index.cjs.map +1 -1
- package/build/components/global-styles/shadow-panel-components.cjs +1 -1
- package/build/components/global-styles/shadow-panel-components.cjs.map +1 -1
- package/build/components/global-styles/state-control-badges.cjs +1 -1
- package/build/components/global-styles/state-control-badges.cjs.map +1 -1
- package/build/components/global-styles/state-control.cjs +1 -1
- package/build/components/global-styles/state-control.cjs.map +1 -1
- package/build/components/global-styles/typography-panel.cjs +1 -1
- package/build/components/global-styles/typography-panel.cjs.map +1 -1
- package/build/components/grid/grid-item-movers.cjs +1 -1
- package/build/components/grid/grid-item-movers.cjs.map +1 -1
- package/build/components/grid/grid-item-resizer.cjs +1 -1
- package/build/components/grid/grid-item-resizer.cjs.map +1 -1
- package/build/components/grid/grid-visualizer.cjs +1 -1
- package/build/components/grid/grid-visualizer.cjs.map +1 -1
- package/build/components/height-control/index.cjs +1 -1
- package/build/components/height-control/index.cjs.map +1 -1
- package/build/components/html-element-control/index.cjs +1 -1
- package/build/components/html-element-control/index.cjs.map +1 -1
- package/build/components/iframe/index.cjs +1 -1
- package/build/components/iframe/index.cjs.map +1 -1
- package/build/components/image-editor/aspect-ratio-dropdown.cjs +1 -1
- package/build/components/image-editor/aspect-ratio-dropdown.cjs.map +1 -1
- package/build/components/image-editor/context.cjs +1 -1
- package/build/components/image-editor/context.cjs.map +1 -1
- package/build/components/image-editor/cropper.cjs +1 -1
- package/build/components/image-editor/cropper.cjs.map +1 -1
- package/build/components/image-editor/form-controls.cjs +1 -1
- package/build/components/image-editor/form-controls.cjs.map +1 -1
- package/build/components/image-editor/index.cjs +1 -1
- package/build/components/image-editor/index.cjs.map +1 -1
- package/build/components/image-editor/rotation-button.cjs +1 -1
- package/build/components/image-editor/rotation-button.cjs.map +1 -1
- package/build/components/image-editor/zoom-dropdown.cjs +1 -1
- package/build/components/image-editor/zoom-dropdown.cjs.map +1 -1
- package/build/components/image-size-control/index.cjs +1 -1
- package/build/components/image-size-control/index.cjs.map +1 -1
- package/build/components/inner-blocks/button-block-appender.cjs +1 -1
- package/build/components/inner-blocks/button-block-appender.cjs.map +1 -1
- package/build/components/inner-blocks/default-block-appender.cjs +1 -1
- package/build/components/inner-blocks/default-block-appender.cjs.map +1 -1
- package/build/components/inner-blocks/index.cjs +1 -1
- package/build/components/inner-blocks/index.cjs.map +1 -1
- package/build/components/inner-content/index.cjs +1 -1
- package/build/components/inner-content/index.cjs.map +1 -1
- package/build/components/inserter/block-patterns-explorer/index.cjs +1 -1
- package/build/components/inserter/block-patterns-explorer/index.cjs.map +1 -1
- package/build/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.cjs +1 -1
- package/build/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.cjs.map +1 -1
- package/build/components/inserter/block-patterns-explorer/pattern-list.cjs +1 -1
- package/build/components/inserter/block-patterns-explorer/pattern-list.cjs.map +1 -1
- package/build/components/inserter/block-patterns-tab/index.cjs +1 -1
- package/build/components/inserter/block-patterns-tab/index.cjs.map +1 -1
- package/build/components/inserter/block-patterns-tab/pattern-category-previews.cjs +1 -1
- package/build/components/inserter/block-patterns-tab/pattern-category-previews.cjs.map +1 -1
- package/build/components/inserter/block-patterns-tab/patterns-filter.cjs +1 -1
- package/build/components/inserter/block-patterns-tab/patterns-filter.cjs.map +1 -1
- package/build/components/inserter/block-types-tab.cjs +1 -1
- package/build/components/inserter/block-types-tab.cjs.map +1 -1
- package/build/components/inserter/category-tabs/index.cjs +1 -1
- package/build/components/inserter/category-tabs/index.cjs.map +1 -1
- package/build/components/inserter/index.cjs +1 -1
- package/build/components/inserter/index.cjs.map +1 -1
- package/build/components/inserter/library.cjs +1 -1
- package/build/components/inserter/library.cjs.map +1 -1
- package/build/components/inserter/media-tab/media-list.cjs +1 -1
- package/build/components/inserter/media-tab/media-list.cjs.map +1 -1
- package/build/components/inserter/media-tab/media-panel.cjs +1 -1
- package/build/components/inserter/media-tab/media-panel.cjs.map +1 -1
- package/build/components/inserter/media-tab/media-preview.cjs +1 -1
- package/build/components/inserter/media-tab/media-preview.cjs.map +1 -1
- package/build/components/inserter/media-tab/media-tab.cjs +1 -1
- package/build/components/inserter/media-tab/media-tab.cjs.map +1 -1
- package/build/components/inserter/media-tab/utils.cjs +1 -1
- package/build/components/inserter/media-tab/utils.cjs.map +1 -1
- package/build/components/inserter/menu.cjs +2 -2
- package/build/components/inserter/menu.cjs.map +3 -3
- package/build/components/inserter/mobile-tab-navigation.cjs +1 -1
- package/build/components/inserter/mobile-tab-navigation.cjs.map +1 -1
- package/build/components/inserter/no-results.cjs +1 -1
- package/build/components/inserter/no-results.cjs.map +1 -1
- package/build/components/inserter/panel.cjs +1 -1
- package/build/components/inserter/panel.cjs.map +1 -1
- package/build/components/inserter/preview-panel.cjs +1 -1
- package/build/components/inserter/preview-panel.cjs.map +1 -1
- package/build/components/inserter/quick-inserter.cjs +1 -1
- package/build/components/inserter/quick-inserter.cjs.map +1 -1
- package/build/components/inserter/search-results.cjs +1 -1
- package/build/components/inserter/search-results.cjs.map +1 -1
- package/build/components/inserter/tips.cjs +1 -1
- package/build/components/inserter/tips.cjs.map +1 -1
- package/build/components/inserter-draggable-blocks/index.cjs +1 -1
- package/build/components/inserter-draggable-blocks/index.cjs.map +1 -1
- package/build/components/inserter-list-item/index.cjs +1 -1
- package/build/components/inserter-list-item/index.cjs.map +1 -1
- package/build/components/inserter-listbox/group.cjs +1 -1
- package/build/components/inserter-listbox/group.cjs.map +1 -1
- package/build/components/inserter-listbox/index.cjs +1 -1
- package/build/components/inserter-listbox/index.cjs.map +1 -1
- package/build/components/inserter-listbox/item.cjs +1 -1
- package/build/components/inserter-listbox/item.cjs.map +1 -1
- package/build/components/inserter-listbox/row.cjs +1 -1
- package/build/components/inserter-listbox/row.cjs.map +1 -1
- package/build/components/inspector-controls/block-support-slot-container.cjs +1 -1
- package/build/components/inspector-controls/block-support-slot-container.cjs.map +1 -1
- package/build/components/inspector-controls/block-support-tools-panel.cjs +1 -1
- package/build/components/inspector-controls/block-support-tools-panel.cjs.map +1 -1
- package/build/components/inspector-controls/fill.cjs +1 -1
- package/build/components/inspector-controls/fill.cjs.map +1 -1
- package/build/components/inspector-controls/groups.cjs +3 -1
- package/build/components/inspector-controls/groups.cjs.map +2 -2
- package/build/components/inspector-controls/index.cjs +1 -1
- package/build/components/inspector-controls/index.cjs.map +1 -1
- package/build/components/inspector-controls/last-item.cjs +1 -1
- package/build/components/inspector-controls/last-item.cjs.map +1 -1
- package/build/components/inspector-controls/list-view-content-popover.cjs +1 -1
- package/build/components/inspector-controls/list-view-content-popover.cjs.map +1 -1
- package/build/components/inspector-controls/slot.cjs +1 -1
- package/build/components/inspector-controls/slot.cjs.map +1 -1
- package/build/components/inspector-controls-tabs/advanced-controls-panel.cjs +1 -1
- package/build/components/inspector-controls-tabs/advanced-controls-panel.cjs.map +1 -1
- package/build/components/inspector-controls-tabs/content-tab.cjs +1 -1
- package/build/components/inspector-controls-tabs/content-tab.cjs.map +1 -1
- package/build/components/inspector-controls-tabs/index.cjs +1 -1
- package/build/components/inspector-controls-tabs/index.cjs.map +1 -1
- package/build/components/inspector-controls-tabs/position-controls-panel.cjs +1 -1
- package/build/components/inspector-controls-tabs/position-controls-panel.cjs.map +1 -1
- package/build/components/inspector-controls-tabs/settings-tab.cjs +1 -1
- package/build/components/inspector-controls-tabs/settings-tab.cjs.map +1 -1
- package/build/components/inspector-controls-tabs/styles-tab.cjs +1 -1
- package/build/components/inspector-controls-tabs/styles-tab.cjs.map +1 -1
- package/build/components/inspector-popover-header/index.cjs +1 -1
- package/build/components/inspector-popover-header/index.cjs.map +1 -1
- package/build/components/justify-content-control/index.cjs +1 -1
- package/build/components/justify-content-control/index.cjs.map +1 -1
- package/build/components/justify-content-control/ui.cjs +1 -1
- package/build/components/justify-content-control/ui.cjs.map +1 -1
- package/build/components/letter-spacing-control/index.cjs +1 -1
- package/build/components/letter-spacing-control/index.cjs.map +1 -1
- package/build/components/line-height-control/index.cjs +1 -1
- package/build/components/line-height-control/index.cjs.map +1 -1
- package/build/components/link-control/index.cjs +1 -1
- package/build/components/link-control/index.cjs.map +1 -1
- package/build/components/link-control/link-preview.cjs +1 -1
- package/build/components/link-control/link-preview.cjs.map +1 -1
- package/build/components/link-control/search-create-button.cjs +1 -1
- package/build/components/link-control/search-create-button.cjs.map +1 -1
- package/build/components/link-control/search-input.cjs +1 -1
- package/build/components/link-control/search-input.cjs.map +1 -1
- package/build/components/link-control/search-item.cjs +1 -1
- package/build/components/link-control/search-item.cjs.map +1 -1
- package/build/components/link-control/search-results.cjs +1 -1
- package/build/components/link-control/search-results.cjs.map +1 -1
- package/build/components/link-control/settings-drawer.cjs +1 -1
- package/build/components/link-control/settings-drawer.cjs.map +1 -1
- package/build/components/link-control/settings.cjs +1 -1
- package/build/components/link-control/settings.cjs.map +1 -1
- package/build/components/link-picker/link-picker.cjs +1 -1
- package/build/components/link-picker/link-picker.cjs.map +1 -1
- package/build/components/link-picker/link-preview.cjs +1 -1
- package/build/components/link-picker/link-preview.cjs.map +1 -1
- package/build/components/list-view/appender.cjs +1 -1
- package/build/components/list-view/appender.cjs.map +1 -1
- package/build/components/list-view/aria-referenced-text.cjs +1 -1
- package/build/components/list-view/aria-referenced-text.cjs.map +1 -1
- package/build/components/list-view/block-contents.cjs +1 -1
- package/build/components/list-view/block-contents.cjs.map +1 -1
- package/build/components/list-view/block-select-button.cjs +1 -1
- package/build/components/list-view/block-select-button.cjs.map +1 -1
- package/build/components/list-view/block.cjs +1 -1
- package/build/components/list-view/block.cjs.map +1 -1
- package/build/components/list-view/branch.cjs +1 -1
- package/build/components/list-view/branch.cjs.map +1 -1
- package/build/components/list-view/drop-indicator.cjs +1 -1
- package/build/components/list-view/drop-indicator.cjs.map +1 -1
- package/build/components/list-view/expander.cjs +1 -1
- package/build/components/list-view/expander.cjs.map +1 -1
- package/build/components/list-view/index.cjs +1 -1
- package/build/components/list-view/index.cjs.map +1 -1
- package/build/components/list-view/leaf.cjs +1 -1
- package/build/components/list-view/leaf.cjs.map +1 -1
- package/build/components/media-placeholder/index.cjs +1 -1
- package/build/components/media-placeholder/index.cjs.map +1 -1
- package/build/components/media-replace-flow/index.cjs +1 -1
- package/build/components/media-replace-flow/index.cjs.map +1 -1
- package/build/components/multi-selection-inspector/index.cjs +1 -1
- package/build/components/multi-selection-inspector/index.cjs.map +1 -1
- package/build/components/navigable-toolbar/index.cjs +1 -1
- package/build/components/navigable-toolbar/index.cjs.map +1 -1
- package/build/components/observe-typing/index.cjs +1 -1
- package/build/components/observe-typing/index.cjs.map +1 -1
- package/build/components/panel-color-settings/index.cjs +1 -1
- package/build/components/panel-color-settings/index.cjs.map +1 -1
- package/build/components/plain-text/index.cjs +1 -1
- package/build/components/plain-text/index.cjs.map +1 -1
- package/build/components/preset-input-control/custom-value-controls.cjs +1 -1
- package/build/components/preset-input-control/custom-value-controls.cjs.map +1 -1
- package/build/components/preset-input-control/index.cjs +1 -1
- package/build/components/preset-input-control/index.cjs.map +1 -1
- package/build/components/provider/block-refs-provider.cjs +1 -1
- package/build/components/provider/block-refs-provider.cjs.map +1 -1
- package/build/components/provider/index.cjs +21 -4
- package/build/components/provider/index.cjs.map +3 -3
- package/build/components/provider/with-registry-provider.cjs +1 -1
- package/build/components/provider/with-registry-provider.cjs.map +1 -1
- package/build/components/publish-date-time-picker/index.cjs +1 -1
- package/build/components/publish-date-time-picker/index.cjs.map +1 -1
- package/build/components/recursion-provider/index.cjs +1 -1
- package/build/components/recursion-provider/index.cjs.map +1 -1
- package/build/components/resizable-box-popover/index.cjs +1 -1
- package/build/components/resizable-box-popover/index.cjs.map +1 -1
- package/build/components/resolution-tool/index.cjs +1 -1
- package/build/components/resolution-tool/index.cjs.map +1 -1
- package/build/components/responsive-block-control/index.cjs +1 -1
- package/build/components/responsive-block-control/index.cjs.map +1 -1
- package/build/components/responsive-block-control/label.cjs +1 -1
- package/build/components/responsive-block-control/label.cjs.map +1 -1
- package/build/components/rich-text/content.cjs +1 -1
- package/build/components/rich-text/content.cjs.map +1 -1
- package/build/components/rich-text/format-edit.cjs +1 -1
- package/build/components/rich-text/format-edit.cjs.map +1 -1
- package/build/components/rich-text/format-toolbar/index.cjs +1 -1
- package/build/components/rich-text/format-toolbar/index.cjs.map +1 -1
- package/build/components/rich-text/format-toolbar-container.cjs +1 -1
- package/build/components/rich-text/format-toolbar-container.cjs.map +1 -1
- package/build/components/rich-text/get-rich-text-values.cjs +1 -1
- package/build/components/rich-text/get-rich-text-values.cjs.map +1 -1
- package/build/components/rich-text/index.cjs +1 -1
- package/build/components/rich-text/index.cjs.map +1 -1
- package/build/components/rich-text/multiline.cjs +1 -1
- package/build/components/rich-text/multiline.cjs.map +1 -1
- package/build/components/rich-text/toolbar-button.cjs +1 -1
- package/build/components/rich-text/toolbar-button.cjs.map +1 -1
- package/build/components/rich-text/utils.cjs +1 -1
- package/build/components/rich-text/utils.cjs.map +1 -1
- package/build/components/rich-text/with-deprecations.cjs +1 -1
- package/build/components/rich-text/with-deprecations.cjs.map +1 -1
- package/build/components/skip-to-selected-block/index.cjs +1 -1
- package/build/components/skip-to-selected-block/index.cjs.map +1 -1
- package/build/components/spacing-sizes-control/index.cjs +1 -1
- package/build/components/spacing-sizes-control/index.cjs.map +1 -1
- package/build/components/spacing-sizes-control/input-controls/axial.cjs +1 -1
- package/build/components/spacing-sizes-control/input-controls/axial.cjs.map +1 -1
- package/build/components/spacing-sizes-control/input-controls/separated.cjs +1 -1
- package/build/components/spacing-sizes-control/input-controls/separated.cjs.map +1 -1
- package/build/components/spacing-sizes-control/input-controls/single.cjs +1 -1
- package/build/components/spacing-sizes-control/input-controls/single.cjs.map +1 -1
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.cjs +1 -1
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.cjs.map +1 -1
- package/build/components/spacing-sizes-control/linked-button.cjs +1 -1
- package/build/components/spacing-sizes-control/linked-button.cjs.map +1 -1
- package/build/components/tabbed-sidebar/index.cjs +1 -1
- package/build/components/tabbed-sidebar/index.cjs.map +1 -1
- package/build/components/text-alignment-control/index.cjs +1 -1
- package/build/components/text-alignment-control/index.cjs.map +1 -1
- package/build/components/text-decoration-control/index.cjs +1 -1
- package/build/components/text-decoration-control/index.cjs.map +1 -1
- package/build/components/text-indent-control/index.cjs +1 -1
- package/build/components/text-indent-control/index.cjs.map +1 -1
- package/build/components/text-transform-control/index.cjs +1 -1
- package/build/components/text-transform-control/index.cjs.map +1 -1
- package/build/components/typewriter/index.cjs +1 -1
- package/build/components/typewriter/index.cjs.map +1 -1
- package/build/components/unit-control/index.cjs +1 -1
- package/build/components/unit-control/index.cjs.map +1 -1
- package/build/components/url-input/button.cjs +1 -1
- package/build/components/url-input/button.cjs.map +1 -1
- package/build/components/url-input/index.cjs +1 -1
- package/build/components/url-input/index.cjs.map +1 -1
- package/build/components/url-popover/image-url-input-ui.cjs +1 -1
- package/build/components/url-popover/image-url-input-ui.cjs.map +1 -1
- package/build/components/url-popover/index.cjs +1 -1
- package/build/components/url-popover/index.cjs.map +1 -1
- package/build/components/url-popover/link-editor.cjs +1 -1
- package/build/components/url-popover/link-editor.cjs.map +1 -1
- package/build/components/url-popover/link-viewer-url.cjs +1 -1
- package/build/components/url-popover/link-viewer-url.cjs.map +1 -1
- package/build/components/url-popover/link-viewer.cjs +1 -1
- package/build/components/url-popover/link-viewer.cjs.map +1 -1
- package/build/components/warning/index.cjs +1 -1
- package/build/components/warning/index.cjs.map +1 -1
- package/build/components/writing-flow/index.cjs +1 -1
- package/build/components/writing-flow/index.cjs.map +1 -1
- package/build/components/writing-flow/use-tab-nav.cjs +1 -1
- package/build/components/writing-flow/use-tab-nav.cjs.map +1 -1
- package/build/components/writing-mode-control/index.cjs +1 -1
- package/build/components/writing-mode-control/index.cjs.map +1 -1
- package/build/hooks/align.cjs +1 -1
- package/build/hooks/align.cjs.map +1 -1
- package/build/hooks/allowed-blocks.cjs +1 -1
- package/build/hooks/allowed-blocks.cjs.map +1 -1
- package/build/hooks/anchor.cjs +1 -1
- package/build/hooks/anchor.cjs.map +1 -1
- package/build/hooks/auto-inspector-controls.cjs +1 -1
- package/build/hooks/auto-inspector-controls.cjs.map +1 -1
- package/build/hooks/background.cjs +1 -1
- package/build/hooks/background.cjs.map +1 -1
- package/build/hooks/block-bindings.cjs +1 -1
- package/build/hooks/block-bindings.cjs.map +1 -1
- package/build/hooks/block-fields/fields-dropdown-menu.cjs +1 -1
- package/build/hooks/block-fields/fields-dropdown-menu.cjs.map +1 -1
- package/build/hooks/block-fields/index.cjs +1 -1
- package/build/hooks/block-fields/index.cjs.map +1 -1
- package/build/hooks/block-fields/link/index.cjs +1 -1
- package/build/hooks/block-fields/link/index.cjs.map +1 -1
- package/build/hooks/block-fields/media/index.cjs +1 -1
- package/build/hooks/block-fields/media/index.cjs.map +1 -1
- package/build/hooks/block-fields/rich-text/index.cjs +1 -1
- package/build/hooks/block-fields/rich-text/index.cjs.map +1 -1
- package/build/hooks/block-hooks.cjs +1 -1
- package/build/hooks/block-hooks.cjs.map +1 -1
- package/build/hooks/block-style-variation.cjs +1 -1
- package/build/hooks/block-style-variation.cjs.map +1 -1
- package/build/hooks/border.cjs +1 -1
- package/build/hooks/border.cjs.map +1 -1
- package/build/hooks/custom-class-name.cjs +1 -1
- package/build/hooks/custom-class-name.cjs.map +1 -1
- package/build/hooks/custom-css.cjs +1 -1
- package/build/hooks/custom-css.cjs.map +1 -1
- package/build/hooks/dimensions.cjs +1 -1
- package/build/hooks/dimensions.cjs.map +1 -1
- package/build/hooks/duotone.cjs +1 -1
- package/build/hooks/duotone.cjs.map +1 -1
- package/build/hooks/elements.cjs +1 -1
- package/build/hooks/elements.cjs.map +1 -1
- package/build/hooks/fit-text.cjs +1 -1
- package/build/hooks/fit-text.cjs.map +1 -1
- package/build/hooks/font-size.cjs +1 -1
- package/build/hooks/font-size.cjs.map +1 -1
- package/build/hooks/grid-visualizer.cjs +1 -1
- package/build/hooks/grid-visualizer.cjs.map +2 -2
- package/build/hooks/layout-child.cjs +1 -1
- package/build/hooks/layout-child.cjs.map +1 -1
- package/build/hooks/layout.cjs +1 -1
- package/build/hooks/layout.cjs.map +1 -1
- package/build/hooks/line-height.cjs +1 -1
- package/build/hooks/line-height.cjs.map +1 -1
- package/build/hooks/list-view.cjs +1 -1
- package/build/hooks/list-view.cjs.map +1 -1
- package/build/hooks/position.cjs +2 -2
- package/build/hooks/position.cjs.map +3 -3
- package/build/hooks/spacing-visualizer.cjs +1 -1
- package/build/hooks/spacing-visualizer.cjs.map +1 -1
- package/build/hooks/states.cjs +1 -1
- package/build/hooks/states.cjs.map +1 -1
- package/build/hooks/style.cjs +1 -1
- package/build/hooks/style.cjs.map +1 -1
- package/build/hooks/text-align.cjs +1 -1
- package/build/hooks/text-align.cjs.map +1 -1
- package/build/hooks/typography.cjs +1 -1
- package/build/hooks/typography.cjs.map +1 -1
- package/build/hooks/utils.cjs +1 -1
- package/build/hooks/utils.cjs.map +1 -1
- package/build/layouts/constrained.cjs +1 -1
- package/build/layouts/constrained.cjs.map +1 -1
- package/build/layouts/flex.cjs +1 -1
- package/build/layouts/flex.cjs.map +1 -1
- package/build/layouts/grid.cjs +1 -1
- package/build/layouts/grid.cjs.map +1 -1
- package/build-module/autocompleters/block.mjs +1 -1
- package/build-module/autocompleters/block.mjs.map +1 -1
- package/build-module/components/alignment-control/index.mjs +1 -1
- package/build-module/components/alignment-control/index.mjs.map +1 -1
- package/build-module/components/alignment-control/ui.mjs +1 -1
- package/build-module/components/alignment-control/ui.mjs.map +1 -1
- package/build-module/components/autocomplete/index.mjs +1 -1
- package/build-module/components/autocomplete/index.mjs.map +1 -1
- package/build-module/components/background-image-control/index.mjs +1 -1
- package/build-module/components/background-image-control/index.mjs.map +1 -1
- package/build-module/components/block-alignment-control/index.mjs +1 -1
- package/build-module/components/block-alignment-control/index.mjs.map +1 -1
- package/build-module/components/block-alignment-control/ui.mjs +1 -1
- package/build-module/components/block-alignment-control/ui.mjs.map +1 -1
- package/build-module/components/block-alignment-matrix-control/index.mjs +1 -1
- package/build-module/components/block-alignment-matrix-control/index.mjs.map +1 -1
- package/build-module/components/block-allowed-blocks/allowed-blocks-control.mjs +1 -1
- package/build-module/components/block-allowed-blocks/allowed-blocks-control.mjs.map +1 -1
- package/build-module/components/block-allowed-blocks/modal.mjs +1 -1
- package/build-module/components/block-allowed-blocks/modal.mjs.map +1 -1
- package/build-module/components/block-bindings/attribute-control.mjs +1 -1
- package/build-module/components/block-bindings/attribute-control.mjs.map +1 -1
- package/build-module/components/block-bindings/source-fields-list.mjs +1 -1
- package/build-module/components/block-bindings/source-fields-list.mjs.map +1 -1
- package/build-module/components/block-breadcrumb/index.mjs +1 -1
- package/build-module/components/block-breadcrumb/index.mjs.map +1 -1
- package/build-module/components/block-canvas/index.mjs +1 -1
- package/build-module/components/block-canvas/index.mjs.map +1 -1
- package/build-module/components/block-card/index.mjs +1 -1
- package/build-module/components/block-card/index.mjs.map +1 -1
- package/build-module/components/block-compare/block-view.mjs +1 -1
- package/build-module/components/block-compare/block-view.mjs.map +1 -1
- package/build-module/components/block-compare/index.mjs +1 -1
- package/build-module/components/block-compare/index.mjs.map +1 -1
- package/build-module/components/block-context/index.mjs +1 -1
- package/build-module/components/block-context/index.mjs.map +1 -1
- package/build-module/components/block-controls/fill.mjs +1 -1
- package/build-module/components/block-controls/fill.mjs.map +1 -1
- package/build-module/components/block-controls/index.mjs +1 -1
- package/build-module/components/block-controls/index.mjs.map +1 -1
- package/build-module/components/block-controls/slot.mjs +1 -1
- package/build-module/components/block-controls/slot.mjs.map +1 -1
- package/build-module/components/block-draggable/draggable-chip.mjs +1 -1
- package/build-module/components/block-draggable/draggable-chip.mjs.map +1 -1
- package/build-module/components/block-draggable/index.mjs +1 -1
- package/build-module/components/block-draggable/index.mjs.map +1 -1
- package/build-module/components/block-edit/edit.mjs +1 -1
- package/build-module/components/block-edit/edit.mjs.map +1 -1
- package/build-module/components/block-edit/index.mjs +1 -1
- package/build-module/components/block-edit/index.mjs.map +1 -1
- package/build-module/components/block-edit/multiple-usage-warning.mjs +1 -1
- package/build-module/components/block-edit/multiple-usage-warning.mjs.map +1 -1
- package/build-module/components/block-edit-visually-button/index.mjs +1 -1
- package/build-module/components/block-edit-visually-button/index.mjs.map +1 -1
- package/build-module/components/block-full-height-alignment-control/index.mjs +1 -1
- package/build-module/components/block-full-height-alignment-control/index.mjs.map +1 -1
- package/build-module/components/block-heading-level-dropdown/heading-level-icon.mjs +1 -1
- package/build-module/components/block-heading-level-dropdown/heading-level-icon.mjs.map +1 -1
- package/build-module/components/block-heading-level-dropdown/index.mjs +1 -1
- package/build-module/components/block-heading-level-dropdown/index.mjs.map +1 -1
- package/build-module/components/block-icon/index.mjs +1 -1
- package/build-module/components/block-icon/index.mjs.map +1 -1
- package/build-module/components/block-inspector/edit-contents.mjs +1 -1
- package/build-module/components/block-inspector/edit-contents.mjs.map +1 -1
- package/build-module/components/block-inspector/index.mjs +5 -4
- package/build-module/components/block-inspector/index.mjs.map +3 -3
- package/build-module/components/block-keyboard-shortcuts/index.mjs +1 -1
- package/build-module/components/block-keyboard-shortcuts/index.mjs.map +1 -1
- package/build-module/components/block-list/block-crash-warning.mjs +1 -1
- package/build-module/components/block-list/block-crash-warning.mjs.map +1 -1
- package/build-module/components/block-list/block-html.mjs +1 -1
- package/build-module/components/block-list/block-html.mjs.map +1 -1
- package/build-module/components/block-list/block-invalid-warning.mjs +1 -1
- package/build-module/components/block-list/block-invalid-warning.mjs.map +1 -1
- package/build-module/components/block-list/block.mjs +1 -1
- package/build-module/components/block-list/block.mjs.map +1 -1
- package/build-module/components/block-list/index.mjs +1 -1
- package/build-module/components/block-list/index.mjs.map +1 -1
- package/build-module/components/block-list/layout.mjs +1 -1
- package/build-module/components/block-list/layout.mjs.map +1 -1
- package/build-module/components/block-list/subdirectory-icon.mjs +1 -1
- package/build-module/components/block-list/subdirectory-icon.mjs.map +1 -1
- package/build-module/components/block-list/zoom-out-separator.mjs +1 -1
- package/build-module/components/block-list/zoom-out-separator.mjs.map +1 -1
- package/build-module/components/block-list-appender/index.mjs +1 -1
- package/build-module/components/block-list-appender/index.mjs.map +1 -1
- package/build-module/components/block-lock/menu-item.mjs +1 -1
- package/build-module/components/block-lock/menu-item.mjs.map +1 -1
- package/build-module/components/block-lock/modal.mjs +1 -1
- package/build-module/components/block-lock/modal.mjs.map +1 -1
- package/build-module/components/block-lock/toolbar.mjs +1 -1
- package/build-module/components/block-lock/toolbar.mjs.map +1 -1
- package/build-module/components/block-manager/category.mjs +1 -1
- package/build-module/components/block-manager/category.mjs.map +1 -1
- package/build-module/components/block-manager/checklist.mjs +1 -1
- package/build-module/components/block-manager/checklist.mjs.map +1 -1
- package/build-module/components/block-manager/index.mjs +1 -1
- package/build-module/components/block-manager/index.mjs.map +1 -1
- package/build-module/components/block-mover/button.mjs +1 -1
- package/build-module/components/block-mover/button.mjs.map +1 -1
- package/build-module/components/block-mover/index.mjs +1 -1
- package/build-module/components/block-mover/index.mjs.map +1 -1
- package/build-module/components/block-navigation/dropdown.mjs +1 -1
- package/build-module/components/block-navigation/dropdown.mjs.map +1 -1
- package/build-module/components/block-parent-selector/index.mjs +1 -1
- package/build-module/components/block-parent-selector/index.mjs.map +1 -1
- package/build-module/components/block-pattern-setup/index.mjs +1 -1
- package/build-module/components/block-pattern-setup/index.mjs.map +1 -1
- package/build-module/components/block-pattern-setup/setup-toolbar.mjs +1 -1
- package/build-module/components/block-pattern-setup/setup-toolbar.mjs.map +1 -1
- package/build-module/components/block-patterns-list/index.mjs +1 -1
- package/build-module/components/block-patterns-list/index.mjs.map +1 -1
- package/build-module/components/block-patterns-paging/index.mjs +1 -1
- package/build-module/components/block-patterns-paging/index.mjs.map +1 -1
- package/build-module/components/block-popover/cover.mjs +1 -1
- package/build-module/components/block-popover/cover.mjs.map +1 -1
- package/build-module/components/block-popover/drop-zone.mjs +1 -1
- package/build-module/components/block-popover/drop-zone.mjs.map +1 -1
- package/build-module/components/block-popover/inbetween.mjs +1 -1
- package/build-module/components/block-popover/inbetween.mjs.map +1 -1
- package/build-module/components/block-popover/index.mjs +1 -1
- package/build-module/components/block-popover/index.mjs.map +1 -1
- package/build-module/components/block-preview/auto.mjs +1 -1
- package/build-module/components/block-preview/auto.mjs.map +1 -1
- package/build-module/components/block-preview/index.mjs +1 -1
- package/build-module/components/block-preview/index.mjs.map +1 -1
- package/build-module/components/block-quick-navigation/index.mjs +1 -1
- package/build-module/components/block-quick-navigation/index.mjs.map +1 -1
- package/build-module/components/block-removal-warning-modal/index.mjs +1 -1
- package/build-module/components/block-removal-warning-modal/index.mjs.map +1 -1
- package/build-module/components/block-rename/modal.mjs +1 -1
- package/build-module/components/block-rename/modal.mjs.map +1 -1
- package/build-module/components/block-rename/rename-control.mjs +1 -1
- package/build-module/components/block-rename/rename-control.mjs.map +1 -1
- package/build-module/components/block-selection-clearer/index.mjs +1 -1
- package/build-module/components/block-selection-clearer/index.mjs.map +1 -1
- package/build-module/components/block-settings-menu/block-html-convert-button.mjs +1 -1
- package/build-module/components/block-settings-menu/block-html-convert-button.mjs.map +1 -1
- package/build-module/components/block-settings-menu/block-mode-toggle.mjs +1 -1
- package/build-module/components/block-settings-menu/block-mode-toggle.mjs.map +1 -1
- package/build-module/components/block-settings-menu/block-parent-selector-menu-item.mjs +1 -1
- package/build-module/components/block-settings-menu/block-parent-selector-menu-item.mjs.map +1 -1
- package/build-module/components/block-settings-menu/block-settings-dropdown.mjs +1 -1
- package/build-module/components/block-settings-menu/block-settings-dropdown.mjs.map +1 -1
- package/build-module/components/block-settings-menu/index.mjs +1 -1
- package/build-module/components/block-settings-menu/index.mjs.map +1 -1
- package/build-module/components/block-settings-menu-controls/index.mjs +1 -1
- package/build-module/components/block-settings-menu-controls/index.mjs.map +1 -1
- package/build-module/components/block-styles/index.mjs +1 -1
- package/build-module/components/block-styles/index.mjs.map +1 -1
- package/build-module/components/block-styles/menu-items.mjs +1 -1
- package/build-module/components/block-styles/menu-items.mjs.map +1 -1
- package/build-module/components/block-switcher/block-styles-menu.mjs +1 -1
- package/build-module/components/block-switcher/block-styles-menu.mjs.map +1 -1
- package/build-module/components/block-switcher/block-transformations-menu.mjs +1 -1
- package/build-module/components/block-switcher/block-transformations-menu.mjs.map +1 -1
- package/build-module/components/block-switcher/block-variation-transformations.mjs +1 -1
- package/build-module/components/block-switcher/block-variation-transformations.mjs.map +1 -1
- package/build-module/components/block-switcher/index.mjs +1 -1
- package/build-module/components/block-switcher/index.mjs.map +1 -1
- package/build-module/components/block-switcher/pattern-transformations-menu.mjs +1 -1
- package/build-module/components/block-switcher/pattern-transformations-menu.mjs.map +1 -1
- package/build-module/components/block-switcher/preview-block-popover.mjs +1 -1
- package/build-module/components/block-switcher/preview-block-popover.mjs.map +1 -1
- package/build-module/components/block-toolbar/block-styles-dropdown.mjs +1 -1
- package/build-module/components/block-toolbar/block-styles-dropdown.mjs.map +1 -1
- package/build-module/components/block-toolbar/block-toolbar-icon.mjs +1 -1
- package/build-module/components/block-toolbar/block-toolbar-icon.mjs.map +1 -1
- package/build-module/components/block-toolbar/change-design.mjs +1 -1
- package/build-module/components/block-toolbar/change-design.mjs.map +1 -1
- package/build-module/components/block-toolbar/edit-section-button.mjs +1 -1
- package/build-module/components/block-toolbar/edit-section-button.mjs.map +1 -1
- package/build-module/components/block-toolbar/index.mjs +1 -1
- package/build-module/components/block-toolbar/index.mjs.map +1 -1
- package/build-module/components/block-toolbar/pattern-overrides-dropdown.mjs +1 -1
- package/build-module/components/block-toolbar/pattern-overrides-dropdown.mjs.map +1 -1
- package/build-module/components/block-toolbar/switch-section-style.mjs +1 -1
- package/build-module/components/block-toolbar/switch-section-style.mjs.map +1 -1
- package/build-module/components/block-tools/block-toolbar-popover.mjs +1 -1
- package/build-module/components/block-tools/block-toolbar-popover.mjs.map +1 -1
- package/build-module/components/block-tools/empty-block-inserter.mjs +1 -1
- package/build-module/components/block-tools/empty-block-inserter.mjs.map +1 -1
- package/build-module/components/block-tools/index.mjs +1 -1
- package/build-module/components/block-tools/index.mjs.map +1 -1
- package/build-module/components/block-tools/insertion-point.mjs +1 -1
- package/build-module/components/block-tools/insertion-point.mjs.map +1 -1
- package/build-module/components/block-tools/zoom-out-mode-inserter-button.mjs +1 -1
- package/build-module/components/block-tools/zoom-out-mode-inserter-button.mjs.map +1 -1
- package/build-module/components/block-tools/zoom-out-mode-inserters.mjs +1 -1
- package/build-module/components/block-tools/zoom-out-mode-inserters.mjs.map +1 -1
- package/build-module/components/block-types-list/index.mjs +1 -1
- package/build-module/components/block-types-list/index.mjs.map +1 -1
- package/build-module/components/block-variation-picker/index.mjs +1 -1
- package/build-module/components/block-variation-picker/index.mjs.map +1 -1
- package/build-module/components/block-variation-transforms/index.mjs +1 -1
- package/build-module/components/block-variation-transforms/index.mjs.map +1 -1
- package/build-module/components/block-vertical-alignment-control/index.mjs +1 -1
- package/build-module/components/block-vertical-alignment-control/index.mjs.map +1 -1
- package/build-module/components/block-vertical-alignment-control/ui.mjs +1 -1
- package/build-module/components/block-vertical-alignment-control/ui.mjs.map +1 -1
- package/build-module/components/block-visibility/constants.mjs.map +1 -1
- package/build-module/components/block-visibility/modal.mjs +1 -1
- package/build-module/components/block-visibility/modal.mjs.map +1 -1
- package/build-module/components/block-visibility/viewport-menu-item.mjs +1 -1
- package/build-module/components/block-visibility/viewport-menu-item.mjs.map +1 -1
- package/build-module/components/block-visibility/viewport-toolbar.mjs +1 -1
- package/build-module/components/block-visibility/viewport-toolbar.mjs.map +1 -1
- package/build-module/components/block-visibility/viewport-visibility-info.mjs +1 -1
- package/build-module/components/block-visibility/viewport-visibility-info.mjs.map +1 -1
- package/build-module/components/border-radius-control/index.mjs +1 -1
- package/build-module/components/border-radius-control/index.mjs.map +1 -1
- package/build-module/components/border-radius-control/linked-button.mjs +1 -1
- package/build-module/components/border-radius-control/linked-button.mjs.map +1 -1
- package/build-module/components/button-block-appender/index.mjs +1 -1
- package/build-module/components/button-block-appender/index.mjs.map +1 -1
- package/build-module/components/child-layout-control/index.mjs +1 -1
- package/build-module/components/child-layout-control/index.mjs.map +1 -1
- package/build-module/components/color-palette/control.mjs +1 -1
- package/build-module/components/color-palette/control.mjs.map +1 -1
- package/build-module/components/color-palette/with-color-context.mjs +1 -1
- package/build-module/components/color-palette/with-color-context.mjs.map +1 -1
- package/build-module/components/color-style-selector/index.mjs +1 -1
- package/build-module/components/color-style-selector/index.mjs.map +1 -1
- package/build-module/components/colors/with-colors.mjs +1 -1
- package/build-module/components/colors/with-colors.mjs.map +1 -1
- package/build-module/components/colors-gradients/control.mjs +1 -1
- package/build-module/components/colors-gradients/control.mjs.map +1 -1
- package/build-module/components/colors-gradients/dropdown.mjs +1 -1
- package/build-module/components/colors-gradients/dropdown.mjs.map +1 -1
- package/build-module/components/colors-gradients/panel-color-gradient-settings.mjs +1 -1
- package/build-module/components/colors-gradients/panel-color-gradient-settings.mjs.map +1 -1
- package/build-module/components/contrast-checker/index.mjs +1 -1
- package/build-module/components/contrast-checker/index.mjs.map +1 -1
- package/build-module/components/convert-to-group-buttons/index.mjs +1 -1
- package/build-module/components/convert-to-group-buttons/index.mjs.map +1 -1
- package/build-module/components/convert-to-group-buttons/toolbar.mjs +1 -1
- package/build-module/components/convert-to-group-buttons/toolbar.mjs.map +1 -1
- package/build-module/components/copy-handler/index.mjs +1 -1
- package/build-module/components/copy-handler/index.mjs.map +1 -1
- package/build-module/components/date-format-picker/index.mjs +1 -1
- package/build-module/components/date-format-picker/index.mjs.map +1 -1
- package/build-module/components/default-block-appender/index.mjs +1 -1
- package/build-module/components/default-block-appender/index.mjs.map +1 -1
- package/build-module/components/dimension-control/index.mjs +1 -1
- package/build-module/components/dimension-control/index.mjs.map +1 -1
- package/build-module/components/dimensions-tool/aspect-ratio-tool.mjs +1 -1
- package/build-module/components/dimensions-tool/aspect-ratio-tool.mjs.map +1 -1
- package/build-module/components/dimensions-tool/index.mjs +1 -1
- package/build-module/components/dimensions-tool/index.mjs.map +1 -1
- package/build-module/components/dimensions-tool/scale-tool.mjs +1 -1
- package/build-module/components/dimensions-tool/scale-tool.mjs.map +1 -1
- package/build-module/components/dimensions-tool/width-height-tool.mjs +1 -1
- package/build-module/components/dimensions-tool/width-height-tool.mjs.map +1 -1
- package/build-module/components/duotone-control/index.mjs +1 -1
- package/build-module/components/duotone-control/index.mjs.map +1 -1
- package/build-module/components/editable-text/index.mjs +1 -1
- package/build-module/components/editable-text/index.mjs.map +1 -1
- package/build-module/components/editor-styles/index.mjs +1 -1
- package/build-module/components/editor-styles/index.mjs.map +1 -1
- package/build-module/components/fit-text-size-warning/index.mjs +1 -1
- package/build-module/components/fit-text-size-warning/index.mjs.map +1 -1
- package/build-module/components/font-appearance-control/index.mjs +1 -1
- package/build-module/components/font-appearance-control/index.mjs.map +1 -1
- package/build-module/components/font-family/index.mjs +1 -1
- package/build-module/components/font-family/index.mjs.map +1 -1
- package/build-module/components/font-sizes/font-size-picker.mjs +1 -1
- package/build-module/components/font-sizes/font-size-picker.mjs.map +1 -1
- package/build-module/components/font-sizes/with-font-sizes.mjs +1 -1
- package/build-module/components/font-sizes/with-font-sizes.mjs.map +1 -1
- package/build-module/components/global-styles/advanced-panel.mjs +1 -1
- package/build-module/components/global-styles/advanced-panel.mjs.map +1 -1
- package/build-module/components/global-styles/background-panel.mjs +1 -1
- package/build-module/components/global-styles/background-panel.mjs.map +2 -2
- package/build-module/components/global-styles/border-panel.mjs +1 -1
- package/build-module/components/global-styles/border-panel.mjs.map +1 -1
- package/build-module/components/global-styles/color-gradient-dropdown-item.mjs +1 -1
- package/build-module/components/global-styles/color-gradient-dropdown-item.mjs.map +1 -1
- package/build-module/components/global-styles/color-panel.mjs +1 -1
- package/build-module/components/global-styles/color-panel.mjs.map +1 -1
- package/build-module/components/global-styles/dimensions-panel.mjs +1 -1
- package/build-module/components/global-styles/dimensions-panel.mjs.map +1 -1
- package/build-module/components/global-styles/filters-panel.mjs +1 -1
- package/build-module/components/global-styles/filters-panel.mjs.map +1 -1
- package/build-module/components/global-styles/image-settings-panel.mjs +1 -1
- package/build-module/components/global-styles/image-settings-panel.mjs.map +1 -1
- package/build-module/components/global-styles/inheritance/index.mjs +1 -1
- package/build-module/components/global-styles/inheritance/index.mjs.map +1 -1
- package/build-module/components/global-styles/shadow-panel-components.mjs +1 -1
- package/build-module/components/global-styles/shadow-panel-components.mjs.map +1 -1
- package/build-module/components/global-styles/state-control-badges.mjs +1 -1
- package/build-module/components/global-styles/state-control-badges.mjs.map +1 -1
- package/build-module/components/global-styles/state-control.mjs +1 -1
- package/build-module/components/global-styles/state-control.mjs.map +1 -1
- package/build-module/components/global-styles/typography-panel.mjs +1 -1
- package/build-module/components/global-styles/typography-panel.mjs.map +1 -1
- package/build-module/components/grid/grid-item-movers.mjs +1 -1
- package/build-module/components/grid/grid-item-movers.mjs.map +1 -1
- package/build-module/components/grid/grid-item-resizer.mjs +1 -1
- package/build-module/components/grid/grid-item-resizer.mjs.map +1 -1
- package/build-module/components/grid/grid-visualizer.mjs +1 -1
- package/build-module/components/grid/grid-visualizer.mjs.map +1 -1
- package/build-module/components/height-control/index.mjs +1 -1
- package/build-module/components/height-control/index.mjs.map +1 -1
- package/build-module/components/html-element-control/index.mjs +1 -1
- package/build-module/components/html-element-control/index.mjs.map +1 -1
- package/build-module/components/iframe/index.mjs +1 -1
- package/build-module/components/iframe/index.mjs.map +1 -1
- package/build-module/components/image-editor/aspect-ratio-dropdown.mjs +1 -1
- package/build-module/components/image-editor/aspect-ratio-dropdown.mjs.map +1 -1
- package/build-module/components/image-editor/context.mjs +1 -1
- package/build-module/components/image-editor/context.mjs.map +1 -1
- package/build-module/components/image-editor/cropper.mjs +1 -1
- package/build-module/components/image-editor/cropper.mjs.map +1 -1
- package/build-module/components/image-editor/form-controls.mjs +1 -1
- package/build-module/components/image-editor/form-controls.mjs.map +1 -1
- package/build-module/components/image-editor/index.mjs +1 -1
- package/build-module/components/image-editor/index.mjs.map +1 -1
- package/build-module/components/image-editor/rotation-button.mjs +1 -1
- package/build-module/components/image-editor/rotation-button.mjs.map +1 -1
- package/build-module/components/image-editor/zoom-dropdown.mjs +1 -1
- package/build-module/components/image-editor/zoom-dropdown.mjs.map +1 -1
- package/build-module/components/image-size-control/index.mjs +1 -1
- package/build-module/components/image-size-control/index.mjs.map +1 -1
- package/build-module/components/inner-blocks/button-block-appender.mjs +1 -1
- package/build-module/components/inner-blocks/button-block-appender.mjs.map +1 -1
- package/build-module/components/inner-blocks/default-block-appender.mjs +1 -1
- package/build-module/components/inner-blocks/default-block-appender.mjs.map +1 -1
- package/build-module/components/inner-blocks/index.mjs +1 -1
- package/build-module/components/inner-blocks/index.mjs.map +1 -1
- package/build-module/components/inner-content/index.mjs +1 -1
- package/build-module/components/inner-content/index.mjs.map +1 -1
- package/build-module/components/inserter/block-patterns-explorer/index.mjs +1 -1
- package/build-module/components/inserter/block-patterns-explorer/index.mjs.map +1 -1
- package/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.mjs +1 -1
- package/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.mjs.map +1 -1
- package/build-module/components/inserter/block-patterns-explorer/pattern-list.mjs +1 -1
- package/build-module/components/inserter/block-patterns-explorer/pattern-list.mjs.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/index.mjs +1 -1
- package/build-module/components/inserter/block-patterns-tab/index.mjs.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.mjs +1 -1
- package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.mjs.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/patterns-filter.mjs +1 -1
- package/build-module/components/inserter/block-patterns-tab/patterns-filter.mjs.map +1 -1
- package/build-module/components/inserter/block-types-tab.mjs +1 -1
- package/build-module/components/inserter/block-types-tab.mjs.map +1 -1
- package/build-module/components/inserter/category-tabs/index.mjs +1 -1
- package/build-module/components/inserter/category-tabs/index.mjs.map +1 -1
- package/build-module/components/inserter/index.mjs +1 -1
- package/build-module/components/inserter/index.mjs.map +1 -1
- package/build-module/components/inserter/library.mjs +1 -1
- package/build-module/components/inserter/library.mjs.map +1 -1
- package/build-module/components/inserter/media-tab/media-list.mjs +1 -1
- package/build-module/components/inserter/media-tab/media-list.mjs.map +1 -1
- package/build-module/components/inserter/media-tab/media-panel.mjs +1 -1
- package/build-module/components/inserter/media-tab/media-panel.mjs.map +1 -1
- package/build-module/components/inserter/media-tab/media-preview.mjs +1 -1
- package/build-module/components/inserter/media-tab/media-preview.mjs.map +1 -1
- package/build-module/components/inserter/media-tab/media-tab.mjs +1 -1
- package/build-module/components/inserter/media-tab/media-tab.mjs.map +1 -1
- package/build-module/components/inserter/media-tab/utils.mjs +1 -1
- package/build-module/components/inserter/media-tab/utils.mjs.map +1 -1
- package/build-module/components/inserter/menu.mjs +2 -2
- package/build-module/components/inserter/menu.mjs.map +3 -3
- package/build-module/components/inserter/mobile-tab-navigation.mjs +1 -1
- package/build-module/components/inserter/mobile-tab-navigation.mjs.map +1 -1
- package/build-module/components/inserter/no-results.mjs +1 -1
- package/build-module/components/inserter/no-results.mjs.map +1 -1
- package/build-module/components/inserter/panel.mjs +1 -1
- package/build-module/components/inserter/panel.mjs.map +1 -1
- package/build-module/components/inserter/preview-panel.mjs +1 -1
- package/build-module/components/inserter/preview-panel.mjs.map +1 -1
- package/build-module/components/inserter/quick-inserter.mjs +1 -1
- package/build-module/components/inserter/quick-inserter.mjs.map +1 -1
- package/build-module/components/inserter/search-results.mjs +1 -1
- package/build-module/components/inserter/search-results.mjs.map +1 -1
- package/build-module/components/inserter/tips.mjs +1 -1
- package/build-module/components/inserter/tips.mjs.map +1 -1
- package/build-module/components/inserter-draggable-blocks/index.mjs +1 -1
- package/build-module/components/inserter-draggable-blocks/index.mjs.map +1 -1
- package/build-module/components/inserter-list-item/index.mjs +1 -1
- package/build-module/components/inserter-list-item/index.mjs.map +1 -1
- package/build-module/components/inserter-listbox/group.mjs +1 -1
- package/build-module/components/inserter-listbox/group.mjs.map +1 -1
- package/build-module/components/inserter-listbox/index.mjs +1 -1
- package/build-module/components/inserter-listbox/index.mjs.map +1 -1
- package/build-module/components/inserter-listbox/item.mjs +1 -1
- package/build-module/components/inserter-listbox/item.mjs.map +1 -1
- package/build-module/components/inserter-listbox/row.mjs +1 -1
- package/build-module/components/inserter-listbox/row.mjs.map +1 -1
- package/build-module/components/inspector-controls/block-support-slot-container.mjs +1 -1
- package/build-module/components/inspector-controls/block-support-slot-container.mjs.map +1 -1
- package/build-module/components/inspector-controls/block-support-tools-panel.mjs +1 -1
- package/build-module/components/inspector-controls/block-support-tools-panel.mjs.map +1 -1
- package/build-module/components/inspector-controls/fill.mjs +1 -1
- package/build-module/components/inspector-controls/fill.mjs.map +1 -1
- package/build-module/components/inspector-controls/groups.mjs +3 -1
- package/build-module/components/inspector-controls/groups.mjs.map +2 -2
- package/build-module/components/inspector-controls/index.mjs +1 -1
- package/build-module/components/inspector-controls/index.mjs.map +1 -1
- package/build-module/components/inspector-controls/last-item.mjs +1 -1
- package/build-module/components/inspector-controls/last-item.mjs.map +1 -1
- package/build-module/components/inspector-controls/list-view-content-popover.mjs +1 -1
- package/build-module/components/inspector-controls/list-view-content-popover.mjs.map +1 -1
- package/build-module/components/inspector-controls/slot.mjs +1 -1
- package/build-module/components/inspector-controls/slot.mjs.map +1 -1
- package/build-module/components/inspector-controls-tabs/advanced-controls-panel.mjs +1 -1
- package/build-module/components/inspector-controls-tabs/advanced-controls-panel.mjs.map +1 -1
- package/build-module/components/inspector-controls-tabs/content-tab.mjs +1 -1
- package/build-module/components/inspector-controls-tabs/content-tab.mjs.map +1 -1
- package/build-module/components/inspector-controls-tabs/index.mjs +1 -1
- package/build-module/components/inspector-controls-tabs/index.mjs.map +1 -1
- package/build-module/components/inspector-controls-tabs/position-controls-panel.mjs +1 -1
- package/build-module/components/inspector-controls-tabs/position-controls-panel.mjs.map +1 -1
- package/build-module/components/inspector-controls-tabs/settings-tab.mjs +1 -1
- package/build-module/components/inspector-controls-tabs/settings-tab.mjs.map +1 -1
- package/build-module/components/inspector-controls-tabs/styles-tab.mjs +1 -1
- package/build-module/components/inspector-controls-tabs/styles-tab.mjs.map +1 -1
- package/build-module/components/inspector-popover-header/index.mjs +1 -1
- package/build-module/components/inspector-popover-header/index.mjs.map +1 -1
- package/build-module/components/justify-content-control/index.mjs +1 -1
- package/build-module/components/justify-content-control/index.mjs.map +1 -1
- package/build-module/components/justify-content-control/ui.mjs +1 -1
- package/build-module/components/justify-content-control/ui.mjs.map +1 -1
- package/build-module/components/letter-spacing-control/index.mjs +1 -1
- package/build-module/components/letter-spacing-control/index.mjs.map +1 -1
- package/build-module/components/line-height-control/index.mjs +1 -1
- package/build-module/components/line-height-control/index.mjs.map +1 -1
- package/build-module/components/link-control/index.mjs +1 -1
- package/build-module/components/link-control/index.mjs.map +1 -1
- package/build-module/components/link-control/link-preview.mjs +1 -1
- package/build-module/components/link-control/link-preview.mjs.map +1 -1
- package/build-module/components/link-control/search-create-button.mjs +1 -1
- package/build-module/components/link-control/search-create-button.mjs.map +1 -1
- package/build-module/components/link-control/search-input.mjs +1 -1
- package/build-module/components/link-control/search-input.mjs.map +1 -1
- package/build-module/components/link-control/search-item.mjs +1 -1
- package/build-module/components/link-control/search-item.mjs.map +1 -1
- package/build-module/components/link-control/search-results.mjs +1 -1
- package/build-module/components/link-control/search-results.mjs.map +1 -1
- package/build-module/components/link-control/settings-drawer.mjs +1 -1
- package/build-module/components/link-control/settings-drawer.mjs.map +1 -1
- package/build-module/components/link-control/settings.mjs +1 -1
- package/build-module/components/link-control/settings.mjs.map +1 -1
- package/build-module/components/link-picker/link-picker.mjs +1 -1
- package/build-module/components/link-picker/link-picker.mjs.map +1 -1
- package/build-module/components/link-picker/link-preview.mjs +1 -1
- package/build-module/components/link-picker/link-preview.mjs.map +1 -1
- package/build-module/components/list-view/appender.mjs +1 -1
- package/build-module/components/list-view/appender.mjs.map +1 -1
- package/build-module/components/list-view/aria-referenced-text.mjs +1 -1
- package/build-module/components/list-view/aria-referenced-text.mjs.map +1 -1
- package/build-module/components/list-view/block-contents.mjs +1 -1
- package/build-module/components/list-view/block-contents.mjs.map +1 -1
- package/build-module/components/list-view/block-select-button.mjs +1 -1
- package/build-module/components/list-view/block-select-button.mjs.map +1 -1
- package/build-module/components/list-view/block.mjs +1 -1
- package/build-module/components/list-view/block.mjs.map +1 -1
- package/build-module/components/list-view/branch.mjs +1 -1
- package/build-module/components/list-view/branch.mjs.map +1 -1
- package/build-module/components/list-view/drop-indicator.mjs +1 -1
- package/build-module/components/list-view/drop-indicator.mjs.map +1 -1
- package/build-module/components/list-view/expander.mjs +1 -1
- package/build-module/components/list-view/expander.mjs.map +1 -1
- package/build-module/components/list-view/index.mjs +1 -1
- package/build-module/components/list-view/index.mjs.map +1 -1
- package/build-module/components/list-view/leaf.mjs +1 -1
- package/build-module/components/list-view/leaf.mjs.map +1 -1
- package/build-module/components/media-placeholder/index.mjs +1 -1
- package/build-module/components/media-placeholder/index.mjs.map +1 -1
- package/build-module/components/media-replace-flow/index.mjs +1 -1
- package/build-module/components/media-replace-flow/index.mjs.map +1 -1
- package/build-module/components/multi-selection-inspector/index.mjs +1 -1
- package/build-module/components/multi-selection-inspector/index.mjs.map +1 -1
- package/build-module/components/navigable-toolbar/index.mjs +1 -1
- package/build-module/components/navigable-toolbar/index.mjs.map +1 -1
- package/build-module/components/observe-typing/index.mjs +1 -1
- package/build-module/components/observe-typing/index.mjs.map +1 -1
- package/build-module/components/panel-color-settings/index.mjs +1 -1
- package/build-module/components/panel-color-settings/index.mjs.map +1 -1
- package/build-module/components/plain-text/index.mjs +1 -1
- package/build-module/components/plain-text/index.mjs.map +1 -1
- package/build-module/components/preset-input-control/custom-value-controls.mjs +1 -1
- package/build-module/components/preset-input-control/custom-value-controls.mjs.map +1 -1
- package/build-module/components/preset-input-control/index.mjs +1 -1
- package/build-module/components/preset-input-control/index.mjs.map +1 -1
- package/build-module/components/provider/block-refs-provider.mjs +1 -1
- package/build-module/components/provider/block-refs-provider.mjs.map +1 -1
- package/build-module/components/provider/index.mjs +21 -4
- package/build-module/components/provider/index.mjs.map +3 -3
- package/build-module/components/provider/with-registry-provider.mjs +1 -1
- package/build-module/components/provider/with-registry-provider.mjs.map +1 -1
- package/build-module/components/publish-date-time-picker/index.mjs +1 -1
- package/build-module/components/publish-date-time-picker/index.mjs.map +1 -1
- package/build-module/components/recursion-provider/index.mjs +1 -1
- package/build-module/components/recursion-provider/index.mjs.map +1 -1
- package/build-module/components/resizable-box-popover/index.mjs +1 -1
- package/build-module/components/resizable-box-popover/index.mjs.map +1 -1
- package/build-module/components/resolution-tool/index.mjs +1 -1
- package/build-module/components/resolution-tool/index.mjs.map +1 -1
- package/build-module/components/responsive-block-control/index.mjs +1 -1
- package/build-module/components/responsive-block-control/index.mjs.map +1 -1
- package/build-module/components/responsive-block-control/label.mjs +1 -1
- package/build-module/components/responsive-block-control/label.mjs.map +1 -1
- package/build-module/components/rich-text/content.mjs +1 -1
- package/build-module/components/rich-text/content.mjs.map +1 -1
- package/build-module/components/rich-text/format-edit.mjs +1 -1
- package/build-module/components/rich-text/format-edit.mjs.map +1 -1
- package/build-module/components/rich-text/format-toolbar/index.mjs +1 -1
- package/build-module/components/rich-text/format-toolbar/index.mjs.map +1 -1
- package/build-module/components/rich-text/format-toolbar-container.mjs +1 -1
- package/build-module/components/rich-text/format-toolbar-container.mjs.map +1 -1
- package/build-module/components/rich-text/get-rich-text-values.mjs +1 -1
- package/build-module/components/rich-text/get-rich-text-values.mjs.map +1 -1
- package/build-module/components/rich-text/index.mjs +1 -1
- package/build-module/components/rich-text/index.mjs.map +1 -1
- package/build-module/components/rich-text/multiline.mjs +1 -1
- package/build-module/components/rich-text/multiline.mjs.map +1 -1
- package/build-module/components/rich-text/toolbar-button.mjs +1 -1
- package/build-module/components/rich-text/toolbar-button.mjs.map +1 -1
- package/build-module/components/rich-text/utils.mjs +1 -1
- package/build-module/components/rich-text/utils.mjs.map +1 -1
- package/build-module/components/rich-text/with-deprecations.mjs +1 -1
- package/build-module/components/rich-text/with-deprecations.mjs.map +1 -1
- package/build-module/components/skip-to-selected-block/index.mjs +1 -1
- package/build-module/components/skip-to-selected-block/index.mjs.map +1 -1
- package/build-module/components/spacing-sizes-control/index.mjs +1 -1
- package/build-module/components/spacing-sizes-control/index.mjs.map +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/axial.mjs +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/axial.mjs.map +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/separated.mjs +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/separated.mjs.map +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/single.mjs +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/single.mjs.map +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.mjs +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.mjs.map +1 -1
- package/build-module/components/spacing-sizes-control/linked-button.mjs +1 -1
- package/build-module/components/spacing-sizes-control/linked-button.mjs.map +1 -1
- package/build-module/components/tabbed-sidebar/index.mjs +1 -1
- package/build-module/components/tabbed-sidebar/index.mjs.map +1 -1
- package/build-module/components/text-alignment-control/index.mjs +1 -1
- package/build-module/components/text-alignment-control/index.mjs.map +1 -1
- package/build-module/components/text-decoration-control/index.mjs +1 -1
- package/build-module/components/text-decoration-control/index.mjs.map +1 -1
- package/build-module/components/text-indent-control/index.mjs +1 -1
- package/build-module/components/text-indent-control/index.mjs.map +1 -1
- package/build-module/components/text-transform-control/index.mjs +1 -1
- package/build-module/components/text-transform-control/index.mjs.map +1 -1
- package/build-module/components/typewriter/index.mjs +1 -1
- package/build-module/components/typewriter/index.mjs.map +1 -1
- package/build-module/components/unit-control/index.mjs +1 -1
- package/build-module/components/unit-control/index.mjs.map +1 -1
- package/build-module/components/url-input/button.mjs +1 -1
- package/build-module/components/url-input/button.mjs.map +1 -1
- package/build-module/components/url-input/index.mjs +1 -1
- package/build-module/components/url-input/index.mjs.map +1 -1
- package/build-module/components/url-popover/image-url-input-ui.mjs +1 -1
- package/build-module/components/url-popover/image-url-input-ui.mjs.map +1 -1
- package/build-module/components/url-popover/index.mjs +1 -1
- package/build-module/components/url-popover/index.mjs.map +1 -1
- package/build-module/components/url-popover/link-editor.mjs +1 -1
- package/build-module/components/url-popover/link-editor.mjs.map +1 -1
- package/build-module/components/url-popover/link-viewer-url.mjs +1 -1
- package/build-module/components/url-popover/link-viewer-url.mjs.map +1 -1
- package/build-module/components/url-popover/link-viewer.mjs +1 -1
- package/build-module/components/url-popover/link-viewer.mjs.map +1 -1
- package/build-module/components/warning/index.mjs +1 -1
- package/build-module/components/warning/index.mjs.map +1 -1
- package/build-module/components/writing-flow/index.mjs +1 -1
- package/build-module/components/writing-flow/index.mjs.map +1 -1
- package/build-module/components/writing-flow/use-tab-nav.mjs +1 -1
- package/build-module/components/writing-flow/use-tab-nav.mjs.map +1 -1
- package/build-module/components/writing-mode-control/index.mjs +1 -1
- package/build-module/components/writing-mode-control/index.mjs.map +1 -1
- package/build-module/hooks/align.mjs +1 -1
- package/build-module/hooks/align.mjs.map +1 -1
- package/build-module/hooks/allowed-blocks.mjs +1 -1
- package/build-module/hooks/allowed-blocks.mjs.map +1 -1
- package/build-module/hooks/anchor.mjs +1 -1
- package/build-module/hooks/anchor.mjs.map +1 -1
- package/build-module/hooks/auto-inspector-controls.mjs +1 -1
- package/build-module/hooks/auto-inspector-controls.mjs.map +1 -1
- package/build-module/hooks/background.mjs +1 -1
- package/build-module/hooks/background.mjs.map +1 -1
- package/build-module/hooks/block-bindings.mjs +1 -1
- package/build-module/hooks/block-bindings.mjs.map +1 -1
- package/build-module/hooks/block-fields/fields-dropdown-menu.mjs +1 -1
- package/build-module/hooks/block-fields/fields-dropdown-menu.mjs.map +1 -1
- package/build-module/hooks/block-fields/index.mjs +1 -1
- package/build-module/hooks/block-fields/index.mjs.map +1 -1
- package/build-module/hooks/block-fields/link/index.mjs +1 -1
- package/build-module/hooks/block-fields/link/index.mjs.map +1 -1
- package/build-module/hooks/block-fields/media/index.mjs +1 -1
- package/build-module/hooks/block-fields/media/index.mjs.map +1 -1
- package/build-module/hooks/block-fields/rich-text/index.mjs +1 -1
- package/build-module/hooks/block-fields/rich-text/index.mjs.map +1 -1
- package/build-module/hooks/block-hooks.mjs +1 -1
- package/build-module/hooks/block-hooks.mjs.map +1 -1
- package/build-module/hooks/block-style-variation.mjs +1 -1
- package/build-module/hooks/block-style-variation.mjs.map +1 -1
- package/build-module/hooks/border.mjs +1 -1
- package/build-module/hooks/border.mjs.map +1 -1
- package/build-module/hooks/custom-class-name.mjs +1 -1
- package/build-module/hooks/custom-class-name.mjs.map +1 -1
- package/build-module/hooks/custom-css.mjs +1 -1
- package/build-module/hooks/custom-css.mjs.map +1 -1
- package/build-module/hooks/dimensions.mjs +1 -1
- package/build-module/hooks/dimensions.mjs.map +1 -1
- package/build-module/hooks/duotone.mjs +1 -1
- package/build-module/hooks/duotone.mjs.map +1 -1
- package/build-module/hooks/elements.mjs +1 -1
- package/build-module/hooks/elements.mjs.map +1 -1
- package/build-module/hooks/fit-text.mjs +1 -1
- package/build-module/hooks/fit-text.mjs.map +1 -1
- package/build-module/hooks/font-size.mjs +1 -1
- package/build-module/hooks/font-size.mjs.map +1 -1
- package/build-module/hooks/grid-visualizer.mjs +1 -1
- package/build-module/hooks/grid-visualizer.mjs.map +2 -2
- package/build-module/hooks/layout-child.mjs +1 -1
- package/build-module/hooks/layout-child.mjs.map +1 -1
- package/build-module/hooks/layout.mjs +1 -1
- package/build-module/hooks/layout.mjs.map +1 -1
- package/build-module/hooks/line-height.mjs +1 -1
- package/build-module/hooks/line-height.mjs.map +1 -1
- package/build-module/hooks/list-view.mjs +1 -1
- package/build-module/hooks/list-view.mjs.map +1 -1
- package/build-module/hooks/position.mjs +2 -2
- package/build-module/hooks/position.mjs.map +3 -3
- package/build-module/hooks/spacing-visualizer.mjs +1 -1
- package/build-module/hooks/spacing-visualizer.mjs.map +1 -1
- package/build-module/hooks/states.mjs +1 -1
- package/build-module/hooks/states.mjs.map +1 -1
- package/build-module/hooks/style.mjs +1 -1
- package/build-module/hooks/style.mjs.map +1 -1
- package/build-module/hooks/text-align.mjs +1 -1
- package/build-module/hooks/text-align.mjs.map +1 -1
- package/build-module/hooks/typography.mjs +1 -1
- package/build-module/hooks/typography.mjs.map +1 -1
- package/build-module/hooks/utils.mjs +1 -1
- package/build-module/hooks/utils.mjs.map +1 -1
- package/build-module/layouts/constrained.mjs +1 -1
- package/build-module/layouts/constrained.mjs.map +1 -1
- package/build-module/layouts/flex.mjs +1 -1
- package/build-module/layouts/flex.mjs.map +1 -1
- package/build-module/layouts/grid.mjs +1 -1
- package/build-module/layouts/grid.mjs.map +1 -1
- package/build-style/content-rtl.css +6 -0
- package/build-style/content.css +6 -0
- package/build-style/style-rtl.css +0 -12
- package/build-style/style.css +0 -12
- package/build-types/components/block-context/index.d.ts.map +1 -1
- package/build-types/components/block-visibility/constants.d.ts +1 -1
- package/package.json +39 -42
- package/src/components/background-image-control/README.md +1 -1
- package/src/components/block-inspector/{index.js → index.jsx} +5 -2
- package/src/components/block-visibility/constants.ts +1 -1
- package/src/components/global-styles/{background-panel.js → background-panel.jsx} +2 -2
- package/src/components/global-styles/test/{background-panel.js → background-panel.jsx} +1 -1
- package/src/components/global-styles/test/inherited-value-context-core.js +1 -1
- package/src/components/global-styles/test/{inherited-value-context.js → inherited-value-context.jsx} +1 -1
- package/src/components/global-styles/test/{typography-panel.js → typography-panel.jsx} +1 -1
- package/src/components/inserter/{menu.js → menu.jsx} +1 -1
- package/src/components/inserter/style.scss +0 -4
- package/src/components/inspector-controls/groups.js +2 -0
- package/src/components/provider/{index.js → index.jsx} +38 -0
- package/src/components/rich-text/content.scss +6 -0
- package/src/hooks/block-hooks.scss +0 -9
- package/src/hooks/{grid-visualizer.js → grid-visualizer.jsx} +1 -1
- package/src/hooks/{position.js → position.jsx} +1 -1
- /package/src/autocompleters/{block.js → block.jsx} +0 -0
- /package/src/components/alignment-control/{index.js → index.jsx} +0 -0
- /package/src/components/alignment-control/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
- /package/src/components/alignment-control/test/{index.js → index.jsx} +0 -0
- /package/src/components/alignment-control/{ui.js → ui.jsx} +0 -0
- /package/src/components/autocomplete/{index.js → index.jsx} +0 -0
- /package/src/components/background-image-control/{index.js → index.jsx} +0 -0
- /package/src/components/block-alignment-control/{index.js → index.jsx} +0 -0
- /package/src/components/block-alignment-control/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
- /package/src/components/block-alignment-control/test/{index.js → index.jsx} +0 -0
- /package/src/components/block-alignment-control/{ui.js → ui.jsx} +0 -0
- /package/src/components/block-alignment-matrix-control/{index.js → index.jsx} +0 -0
- /package/src/components/block-allowed-blocks/{allowed-blocks-control.js → allowed-blocks-control.jsx} +0 -0
- /package/src/components/block-allowed-blocks/{modal.js → modal.jsx} +0 -0
- /package/src/components/block-bindings/{attribute-control.js → attribute-control.jsx} +0 -0
- /package/src/components/block-bindings/{source-fields-list.js → source-fields-list.jsx} +0 -0
- /package/src/components/block-breadcrumb/{index.js → index.jsx} +0 -0
- /package/src/components/block-breadcrumb/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
- /package/src/components/block-breadcrumb/test/{index.js → index.jsx} +0 -0
- /package/src/components/block-canvas/{index.js → index.jsx} +0 -0
- /package/src/components/block-card/{index.js → index.jsx} +0 -0
- /package/src/components/block-compare/{block-view.js → block-view.jsx} +0 -0
- /package/src/components/block-compare/{index.js → index.jsx} +0 -0
- /package/src/components/block-compare/test/__snapshots__/{block-view.js.snap → block-view.jsx.snap} +0 -0
- /package/src/components/block-compare/test/{block-view.js → block-view.jsx} +0 -0
- /package/src/components/block-context/{index.js → index.jsx} +0 -0
- /package/src/components/block-controls/{fill.js → fill.jsx} +0 -0
- /package/src/components/block-controls/{index.js → index.jsx} +0 -0
- /package/src/components/block-controls/{slot.js → slot.jsx} +0 -0
- /package/src/components/block-controls/test/{index.js → index.jsx} +0 -0
- /package/src/components/block-draggable/{draggable-chip.js → draggable-chip.jsx} +0 -0
- /package/src/components/block-draggable/{index.js → index.jsx} +0 -0
- /package/src/components/block-edit/{edit.js → edit.jsx} +0 -0
- /package/src/components/block-edit/{index.js → index.jsx} +0 -0
- /package/src/components/block-edit/{multiple-usage-warning.js → multiple-usage-warning.jsx} +0 -0
- /package/src/components/block-edit/test/{edit.js → edit.jsx} +0 -0
- /package/src/components/block-edit-visually-button/{index.js → index.jsx} +0 -0
- /package/src/components/block-full-height-alignment-control/{index.js → index.jsx} +0 -0
- /package/src/components/block-heading-level-dropdown/{heading-level-icon.js → heading-level-icon.jsx} +0 -0
- /package/src/components/block-heading-level-dropdown/{index.js → index.jsx} +0 -0
- /package/src/components/block-icon/{index.js → index.jsx} +0 -0
- /package/src/components/block-icon/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
- /package/src/components/block-icon/test/{index.js → index.jsx} +0 -0
- /package/src/components/block-inspector/{edit-contents.js → edit-contents.jsx} +0 -0
- /package/src/components/block-keyboard-shortcuts/{index.js → index.jsx} +0 -0
- /package/src/components/block-list/{block-crash-warning.js → block-crash-warning.jsx} +0 -0
- /package/src/components/block-list/{block-html.js → block-html.jsx} +0 -0
- /package/src/components/block-list/{block-invalid-warning.js → block-invalid-warning.jsx} +0 -0
- /package/src/components/block-list/{block.js → block.jsx} +0 -0
- /package/src/components/block-list/{index.js → index.jsx} +0 -0
- /package/src/components/block-list/{layout.js → layout.jsx} +0 -0
- /package/src/components/block-list/{subdirectory-icon.js → subdirectory-icon.jsx} +0 -0
- /package/src/components/block-list/{zoom-out-separator.js → zoom-out-separator.jsx} +0 -0
- /package/src/components/block-list-appender/{index.js → index.jsx} +0 -0
- /package/src/components/block-lock/{menu-item.js → menu-item.jsx} +0 -0
- /package/src/components/block-lock/{modal.js → modal.jsx} +0 -0
- /package/src/components/block-lock/{toolbar.js → toolbar.jsx} +0 -0
- /package/src/components/block-manager/{category.js → category.jsx} +0 -0
- /package/src/components/block-manager/{checklist.js → checklist.jsx} +0 -0
- /package/src/components/block-manager/{index.js → index.jsx} +0 -0
- /package/src/components/block-mover/{button.js → button.jsx} +0 -0
- /package/src/components/block-mover/{index.js → index.jsx} +0 -0
- /package/src/components/block-navigation/{dropdown.js → dropdown.jsx} +0 -0
- /package/src/components/block-parent-selector/{index.js → index.jsx} +0 -0
- /package/src/components/block-pattern-setup/{index.js → index.jsx} +0 -0
- /package/src/components/block-pattern-setup/{setup-toolbar.js → setup-toolbar.jsx} +0 -0
- /package/src/components/block-patterns-list/{index.js → index.jsx} +0 -0
- /package/src/components/block-patterns-paging/{index.js → index.jsx} +0 -0
- /package/src/components/block-popover/{cover.js → cover.jsx} +0 -0
- /package/src/components/block-popover/{drop-zone.js → drop-zone.jsx} +0 -0
- /package/src/components/block-popover/{inbetween.js → inbetween.jsx} +0 -0
- /package/src/components/block-popover/{index.js → index.jsx} +0 -0
- /package/src/components/block-preview/{auto.js → auto.jsx} +0 -0
- /package/src/components/block-preview/{index.js → index.jsx} +0 -0
- /package/src/components/block-preview/test/{index.js → index.jsx} +0 -0
- /package/src/components/block-quick-navigation/{index.js → index.jsx} +0 -0
- /package/src/components/block-removal-warning-modal/{index.js → index.jsx} +0 -0
- /package/src/components/block-rename/{modal.js → modal.jsx} +0 -0
- /package/src/components/block-rename/{rename-control.js → rename-control.jsx} +0 -0
- /package/src/components/block-selection-clearer/{index.js → index.jsx} +0 -0
- /package/src/components/block-selection-clearer/test/{index.js → index.jsx} +0 -0
- /package/src/components/block-settings-menu/{block-html-convert-button.js → block-html-convert-button.jsx} +0 -0
- /package/src/components/block-settings-menu/{block-mode-toggle.js → block-mode-toggle.jsx} +0 -0
- /package/src/components/block-settings-menu/{block-parent-selector-menu-item.js → block-parent-selector-menu-item.jsx} +0 -0
- /package/src/components/block-settings-menu/{block-settings-dropdown.js → block-settings-dropdown.jsx} +0 -0
- /package/src/components/block-settings-menu/{index.js → index.jsx} +0 -0
- /package/src/components/block-settings-menu/test/{block-mode-toggle.js → block-mode-toggle.jsx} +0 -0
- /package/src/components/block-settings-menu-controls/{index.js → index.jsx} +0 -0
- /package/src/components/block-styles/{index.js → index.jsx} +0 -0
- /package/src/components/block-styles/{menu-items.js → menu-items.jsx} +0 -0
- /package/src/components/block-switcher/{block-styles-menu.js → block-styles-menu.jsx} +0 -0
- /package/src/components/block-switcher/{block-transformations-menu.js → block-transformations-menu.jsx} +0 -0
- /package/src/components/block-switcher/{block-variation-transformations.js → block-variation-transformations.jsx} +0 -0
- /package/src/components/block-switcher/{index.js → index.jsx} +0 -0
- /package/src/components/block-switcher/{pattern-transformations-menu.js → pattern-transformations-menu.jsx} +0 -0
- /package/src/components/block-switcher/{preview-block-popover.js → preview-block-popover.jsx} +0 -0
- /package/src/components/block-switcher/test/{index.js → index.jsx} +0 -0
- /package/src/components/block-title/test/{index.js → index.jsx} +0 -0
- /package/src/components/block-toolbar/{block-styles-dropdown.js → block-styles-dropdown.jsx} +0 -0
- /package/src/components/block-toolbar/{block-toolbar-icon.js → block-toolbar-icon.jsx} +0 -0
- /package/src/components/block-toolbar/{change-design.js → change-design.jsx} +0 -0
- /package/src/components/block-toolbar/{edit-section-button.js → edit-section-button.jsx} +0 -0
- /package/src/components/block-toolbar/{index.js → index.jsx} +0 -0
- /package/src/components/block-toolbar/{pattern-overrides-dropdown.js → pattern-overrides-dropdown.jsx} +0 -0
- /package/src/components/block-toolbar/{switch-section-style.js → switch-section-style.jsx} +0 -0
- /package/src/components/block-toolbar/test/{block-toolbar-icon.js → block-toolbar-icon.jsx} +0 -0
- /package/src/components/block-tools/{block-toolbar-popover.js → block-toolbar-popover.jsx} +0 -0
- /package/src/components/block-tools/{empty-block-inserter.js → empty-block-inserter.jsx} +0 -0
- /package/src/components/block-tools/{index.js → index.jsx} +0 -0
- /package/src/components/block-tools/{insertion-point.js → insertion-point.jsx} +0 -0
- /package/src/components/block-tools/{zoom-out-mode-inserter-button.js → zoom-out-mode-inserter-button.jsx} +0 -0
- /package/src/components/block-tools/{zoom-out-mode-inserters.js → zoom-out-mode-inserters.jsx} +0 -0
- /package/src/components/block-types-list/{index.js → index.jsx} +0 -0
- /package/src/components/block-variation-picker/{index.js → index.jsx} +0 -0
- /package/src/components/block-variation-transforms/{index.js → index.jsx} +0 -0
- /package/src/components/block-vertical-alignment-control/{index.js → index.jsx} +0 -0
- /package/src/components/block-vertical-alignment-control/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
- /package/src/components/block-vertical-alignment-control/test/{index.js → index.jsx} +0 -0
- /package/src/components/block-vertical-alignment-control/{ui.js → ui.jsx} +0 -0
- /package/src/components/block-visibility/{modal.js → modal.jsx} +0 -0
- /package/src/components/block-visibility/{viewport-menu-item.js → viewport-menu-item.jsx} +0 -0
- /package/src/components/block-visibility/{viewport-toolbar.js → viewport-toolbar.jsx} +0 -0
- /package/src/components/block-visibility/{viewport-visibility-info.js → viewport-visibility-info.jsx} +0 -0
- /package/src/components/border-radius-control/{index.js → index.jsx} +0 -0
- /package/src/components/border-radius-control/{linked-button.js → linked-button.jsx} +0 -0
- /package/src/components/border-radius-control/test/{index.js → index.jsx} +0 -0
- /package/src/components/button-block-appender/{index.js → index.jsx} +0 -0
- /package/src/components/child-layout-control/{index.js → index.jsx} +0 -0
- /package/src/components/child-layout-control/test/{index.js → index.jsx} +0 -0
- /package/src/components/color-palette/{control.js → control.jsx} +0 -0
- /package/src/components/color-palette/test/__snapshots__/{control.js.snap → control.jsx.snap} +0 -0
- /package/src/components/color-palette/test/{control.js → control.jsx} +0 -0
- /package/src/components/color-palette/{with-color-context.js → with-color-context.jsx} +0 -0
- /package/src/components/color-style-selector/{index.js → index.jsx} +0 -0
- /package/src/components/colors/test/{with-colors.js → with-colors.jsx} +0 -0
- /package/src/components/colors/{with-colors.js → with-colors.jsx} +0 -0
- /package/src/components/colors-gradients/{control.js → control.jsx} +0 -0
- /package/src/components/colors-gradients/{dropdown.js → dropdown.jsx} +0 -0
- /package/src/components/colors-gradients/{panel-color-gradient-settings.js → panel-color-gradient-settings.jsx} +0 -0
- /package/src/components/colors-gradients/test/{control.js → control.jsx} +0 -0
- /package/src/components/contrast-checker/{index.js → index.jsx} +0 -0
- /package/src/components/contrast-checker/test/{index.js → index.jsx} +0 -0
- /package/src/components/convert-to-group-buttons/{index.js → index.jsx} +0 -0
- /package/src/components/convert-to-group-buttons/{toolbar.js → toolbar.jsx} +0 -0
- /package/src/components/copy-handler/{index.js → index.jsx} +0 -0
- /package/src/components/date-format-picker/{index.js → index.jsx} +0 -0
- /package/src/components/default-block-appender/{index.js → index.jsx} +0 -0
- /package/src/components/default-block-appender/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
- /package/src/components/default-block-appender/test/{index.js → index.jsx} +0 -0
- /package/src/components/dimension-control/{index.js → index.jsx} +0 -0
- /package/src/components/dimensions-tool/{aspect-ratio-tool.js → aspect-ratio-tool.jsx} +0 -0
- /package/src/components/dimensions-tool/{index.js → index.jsx} +0 -0
- /package/src/components/dimensions-tool/{scale-tool.js → scale-tool.jsx} +0 -0
- /package/src/components/dimensions-tool/test/{index.js → index.jsx} +0 -0
- /package/src/components/dimensions-tool/{width-height-tool.js → width-height-tool.jsx} +0 -0
- /package/src/components/duotone-control/{index.js → index.jsx} +0 -0
- /package/src/components/duotone-control/test/{index.js → index.jsx} +0 -0
- /package/src/components/editable-text/{index.js → index.jsx} +0 -0
- /package/src/components/editor-styles/{index.js → index.jsx} +0 -0
- /package/src/components/fit-text-size-warning/{index.js → index.jsx} +0 -0
- /package/src/components/font-appearance-control/{index.js → index.jsx} +0 -0
- /package/src/components/font-family/{index.js → index.jsx} +0 -0
- /package/src/components/font-sizes/{font-size-picker.js → font-size-picker.jsx} +0 -0
- /package/src/components/font-sizes/{with-font-sizes.js → with-font-sizes.jsx} +0 -0
- /package/src/components/global-styles/{advanced-panel.js → advanced-panel.jsx} +0 -0
- /package/src/components/global-styles/{border-panel.js → border-panel.jsx} +0 -0
- /package/src/components/global-styles/{color-gradient-dropdown-item.js → color-gradient-dropdown-item.jsx} +0 -0
- /package/src/components/global-styles/{color-panel.js → color-panel.jsx} +0 -0
- /package/src/components/global-styles/{dimensions-panel.js → dimensions-panel.jsx} +0 -0
- /package/src/components/global-styles/{filters-panel.js → filters-panel.jsx} +0 -0
- /package/src/components/global-styles/{image-settings-panel.js → image-settings-panel.jsx} +0 -0
- /package/src/components/global-styles/inheritance/{index.js → index.jsx} +0 -0
- /package/src/components/global-styles/inheritance/test/{index.js → index.jsx} +0 -0
- /package/src/components/global-styles/{shadow-panel-components.js → shadow-panel-components.jsx} +0 -0
- /package/src/components/global-styles/{state-control-badges.js → state-control-badges.jsx} +0 -0
- /package/src/components/global-styles/{state-control.js → state-control.jsx} +0 -0
- /package/src/components/global-styles/test/{border-panel.js → border-panel.jsx} +0 -0
- /package/src/components/global-styles/test/{color-panel.js → color-panel.jsx} +0 -0
- /package/src/components/global-styles/test/{dimensions-panel.js → dimensions-panel.jsx} +0 -0
- /package/src/components/global-styles/test/{filters-panel.js → filters-panel.jsx} +0 -0
- /package/src/components/global-styles/test/{state-control-badges.js → state-control-badges.jsx} +0 -0
- /package/src/components/global-styles/test/{typography-panel-core.js → typography-panel-core.jsx} +0 -0
- /package/src/components/global-styles/{typography-panel.js → typography-panel.jsx} +0 -0
- /package/src/components/grid/{grid-item-movers.js → grid-item-movers.jsx} +0 -0
- /package/src/components/grid/{grid-item-resizer.js → grid-item-resizer.jsx} +0 -0
- /package/src/components/grid/{grid-visualizer.js → grid-visualizer.jsx} +0 -0
- /package/src/components/height-control/{index.js → index.jsx} +0 -0
- /package/src/components/html-element-control/{index.js → index.jsx} +0 -0
- /package/src/components/iframe/{index.js → index.jsx} +0 -0
- /package/src/components/image-editor/{aspect-ratio-dropdown.js → aspect-ratio-dropdown.jsx} +0 -0
- /package/src/components/image-editor/{context.js → context.jsx} +0 -0
- /package/src/components/image-editor/{cropper.js → cropper.jsx} +0 -0
- /package/src/components/image-editor/{form-controls.js → form-controls.jsx} +0 -0
- /package/src/components/image-editor/{index.js → index.jsx} +0 -0
- /package/src/components/image-editor/{rotation-button.js → rotation-button.jsx} +0 -0
- /package/src/components/image-editor/{zoom-dropdown.js → zoom-dropdown.jsx} +0 -0
- /package/src/components/image-size-control/{index.js → index.jsx} +0 -0
- /package/src/components/image-size-control/test/{index.js → index.jsx} +0 -0
- /package/src/components/inner-blocks/{button-block-appender.js → button-block-appender.jsx} +0 -0
- /package/src/components/inner-blocks/{default-block-appender.js → default-block-appender.jsx} +0 -0
- /package/src/components/inner-blocks/{index.js → index.jsx} +0 -0
- /package/src/components/inner-blocks/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
- /package/src/components/inner-blocks/test/{index.js → index.jsx} +0 -0
- /package/src/components/inner-content/{index.js → index.jsx} +0 -0
- /package/src/components/inner-content/test/{index.js → index.jsx} +0 -0
- /package/src/components/inserter/block-patterns-explorer/{index.js → index.jsx} +0 -0
- /package/src/components/inserter/block-patterns-explorer/{pattern-explorer-sidebar.js → pattern-explorer-sidebar.jsx} +0 -0
- /package/src/components/inserter/block-patterns-explorer/{pattern-list.js → pattern-list.jsx} +0 -0
- /package/src/components/inserter/block-patterns-tab/{index.js → index.jsx} +0 -0
- /package/src/components/inserter/block-patterns-tab/{pattern-category-previews.js → pattern-category-previews.jsx} +0 -0
- /package/src/components/inserter/block-patterns-tab/{patterns-filter.js → patterns-filter.jsx} +0 -0
- /package/src/components/inserter/{block-types-tab.js → block-types-tab.jsx} +0 -0
- /package/src/components/inserter/category-tabs/{index.js → index.jsx} +0 -0
- /package/src/components/inserter/{index.js → index.jsx} +0 -0
- /package/src/components/inserter/{library.js → library.jsx} +0 -0
- /package/src/components/inserter/media-tab/{media-list.js → media-list.jsx} +0 -0
- /package/src/components/inserter/media-tab/{media-panel.js → media-panel.jsx} +0 -0
- /package/src/components/inserter/media-tab/{media-preview.js → media-preview.jsx} +0 -0
- /package/src/components/inserter/media-tab/{media-tab.js → media-tab.jsx} +0 -0
- /package/src/components/inserter/media-tab/test/{media-panel.js → media-panel.jsx} +0 -0
- /package/src/components/inserter/media-tab/{utils.js → utils.jsx} +0 -0
- /package/src/components/inserter/{mobile-tab-navigation.js → mobile-tab-navigation.jsx} +0 -0
- /package/src/components/inserter/{no-results.js → no-results.jsx} +0 -0
- /package/src/components/inserter/{panel.js → panel.jsx} +0 -0
- /package/src/components/inserter/{preview-panel.js → preview-panel.jsx} +0 -0
- /package/src/components/inserter/{quick-inserter.js → quick-inserter.jsx} +0 -0
- /package/src/components/inserter/{search-results.js → search-results.jsx} +0 -0
- /package/src/components/inserter/{tips.js → tips.jsx} +0 -0
- /package/src/components/inserter-draggable-blocks/{index.js → index.jsx} +0 -0
- /package/src/components/inserter-list-item/{index.js → index.jsx} +0 -0
- /package/src/components/inserter-listbox/{group.js → group.jsx} +0 -0
- /package/src/components/inserter-listbox/{index.js → index.jsx} +0 -0
- /package/src/components/inserter-listbox/{item.js → item.jsx} +0 -0
- /package/src/components/inserter-listbox/{row.js → row.jsx} +0 -0
- /package/src/components/inspector-controls/{block-support-slot-container.js → block-support-slot-container.jsx} +0 -0
- /package/src/components/inspector-controls/{block-support-tools-panel.js → block-support-tools-panel.jsx} +0 -0
- /package/src/components/inspector-controls/{fill.js → fill.jsx} +0 -0
- /package/src/components/inspector-controls/{index.js → index.jsx} +0 -0
- /package/src/components/inspector-controls/{last-item.js → last-item.jsx} +0 -0
- /package/src/components/inspector-controls/{list-view-content-popover.js → list-view-content-popover.jsx} +0 -0
- /package/src/components/inspector-controls/{slot.js → slot.jsx} +0 -0
- /package/src/components/inspector-controls-tabs/{advanced-controls-panel.js → advanced-controls-panel.jsx} +0 -0
- /package/src/components/inspector-controls-tabs/{content-tab.js → content-tab.jsx} +0 -0
- /package/src/components/inspector-controls-tabs/{index.js → index.jsx} +0 -0
- /package/src/components/inspector-controls-tabs/{position-controls-panel.js → position-controls-panel.jsx} +0 -0
- /package/src/components/inspector-controls-tabs/{settings-tab.js → settings-tab.jsx} +0 -0
- /package/src/components/inspector-controls-tabs/{styles-tab.js → styles-tab.jsx} +0 -0
- /package/src/components/inspector-popover-header/{index.js → index.jsx} +0 -0
- /package/src/components/justify-content-control/{index.js → index.jsx} +0 -0
- /package/src/components/justify-content-control/{ui.js → ui.jsx} +0 -0
- /package/src/components/letter-spacing-control/{index.js → index.jsx} +0 -0
- /package/src/components/line-height-control/{index.js → index.jsx} +0 -0
- /package/src/components/line-height-control/test/{index.js → index.jsx} +0 -0
- /package/src/components/link-control/{index.js → index.jsx} +0 -0
- /package/src/components/link-control/{link-preview.js → link-preview.jsx} +0 -0
- /package/src/components/link-control/{search-create-button.js → search-create-button.jsx} +0 -0
- /package/src/components/link-control/{search-input.js → search-input.jsx} +0 -0
- /package/src/components/link-control/{search-item.js → search-item.jsx} +0 -0
- /package/src/components/link-control/{search-results.js → search-results.jsx} +0 -0
- /package/src/components/link-control/{settings-drawer.js → settings-drawer.jsx} +0 -0
- /package/src/components/link-control/{settings.js → settings.jsx} +0 -0
- /package/src/components/link-control/test/{index.js → index.jsx} +0 -0
- /package/src/components/link-control/test/{url-normalization.test.js → url-normalization.test.jsx} +0 -0
- /package/src/components/link-picker/{link-picker.js → link-picker.jsx} +0 -0
- /package/src/components/link-picker/{link-preview.js → link-preview.jsx} +0 -0
- /package/src/components/link-picker/test/{index.js → index.jsx} +0 -0
- /package/src/components/list-view/{appender.js → appender.jsx} +0 -0
- /package/src/components/list-view/{aria-referenced-text.js → aria-referenced-text.jsx} +0 -0
- /package/src/components/list-view/{block-contents.js → block-contents.jsx} +0 -0
- /package/src/components/list-view/{block-select-button.js → block-select-button.jsx} +0 -0
- /package/src/components/list-view/{block.js → block.jsx} +0 -0
- /package/src/components/list-view/{branch.js → branch.jsx} +0 -0
- /package/src/components/list-view/{drop-indicator.js → drop-indicator.jsx} +0 -0
- /package/src/components/list-view/{expander.js → expander.jsx} +0 -0
- /package/src/components/list-view/{index.js → index.jsx} +0 -0
- /package/src/components/list-view/{leaf.js → leaf.jsx} +0 -0
- /package/src/components/media-placeholder/{index.js → index.jsx} +0 -0
- /package/src/components/media-placeholder/test/{index.js → index.jsx} +0 -0
- /package/src/components/media-replace-flow/{index.js → index.jsx} +0 -0
- /package/src/components/media-replace-flow/test/{index.js → index.jsx} +0 -0
- /package/src/components/multi-selection-inspector/{index.js → index.jsx} +0 -0
- /package/src/components/navigable-toolbar/{index.js → index.jsx} +0 -0
- /package/src/components/observe-typing/{index.js → index.jsx} +0 -0
- /package/src/components/panel-color-settings/{index.js → index.jsx} +0 -0
- /package/src/components/panel-color-settings/test/{index.js → index.jsx} +0 -0
- /package/src/components/plain-text/{index.js → index.jsx} +0 -0
- /package/src/components/preset-input-control/{custom-value-controls.js → custom-value-controls.jsx} +0 -0
- /package/src/components/preset-input-control/{index.js → index.jsx} +0 -0
- /package/src/components/preset-input-control/test/{index.js → index.jsx} +0 -0
- /package/src/components/provider/{block-refs-provider.js → block-refs-provider.jsx} +0 -0
- /package/src/components/provider/test/{experimental-provider.js → experimental-provider.jsx} +0 -0
- /package/src/components/provider/test/{use-block-sync.js → use-block-sync.jsx} +0 -0
- /package/src/components/provider/{with-registry-provider.js → with-registry-provider.jsx} +0 -0
- /package/src/components/publish-date-time-picker/{index.js → index.jsx} +0 -0
- /package/src/components/recursion-provider/{index.js → index.jsx} +0 -0
- /package/src/components/recursion-provider/test/{index.js → index.jsx} +0 -0
- /package/src/components/resizable-box-popover/{index.js → index.jsx} +0 -0
- /package/src/components/resolution-tool/{index.js → index.jsx} +0 -0
- /package/src/components/responsive-block-control/{index.js → index.jsx} +0 -0
- /package/src/components/responsive-block-control/{label.js → label.jsx} +0 -0
- /package/src/components/responsive-block-control/test/{index.js → index.jsx} +0 -0
- /package/src/components/rich-text/{content.js → content.jsx} +0 -0
- /package/src/components/rich-text/{format-edit.js → format-edit.jsx} +0 -0
- /package/src/components/rich-text/format-toolbar/{index.js → index.jsx} +0 -0
- /package/src/components/rich-text/{format-toolbar-container.js → format-toolbar-container.jsx} +0 -0
- /package/src/components/rich-text/{get-rich-text-values.js → get-rich-text-values.jsx} +0 -0
- /package/src/components/rich-text/{index.js → index.jsx} +0 -0
- /package/src/components/rich-text/{multiline.js → multiline.jsx} +0 -0
- /package/src/components/rich-text/{toolbar-button.js → toolbar-button.jsx} +0 -0
- /package/src/components/rich-text/{utils.js → utils.jsx} +0 -0
- /package/src/components/rich-text/{with-deprecations.js → with-deprecations.jsx} +0 -0
- /package/src/components/skip-to-selected-block/{index.js → index.jsx} +0 -0
- /package/src/components/spacing-sizes-control/{index.js → index.jsx} +0 -0
- /package/src/components/spacing-sizes-control/input-controls/{axial.js → axial.jsx} +0 -0
- /package/src/components/spacing-sizes-control/input-controls/{separated.js → separated.jsx} +0 -0
- /package/src/components/spacing-sizes-control/input-controls/{single.js → single.jsx} +0 -0
- /package/src/components/spacing-sizes-control/input-controls/{spacing-input-control.js → spacing-input-control.jsx} +0 -0
- /package/src/components/spacing-sizes-control/{linked-button.js → linked-button.jsx} +0 -0
- /package/src/components/spacing-sizes-control/test/{index.js → index.jsx} +0 -0
- /package/src/components/tabbed-sidebar/{index.js → index.jsx} +0 -0
- /package/src/components/text-alignment-control/{index.js → index.jsx} +0 -0
- /package/src/components/text-decoration-control/{index.js → index.jsx} +0 -0
- /package/src/components/text-indent-control/{index.js → index.jsx} +0 -0
- /package/src/components/text-transform-control/{index.js → index.jsx} +0 -0
- /package/src/components/typewriter/{index.js → index.jsx} +0 -0
- /package/src/components/unit-control/{index.js → index.jsx} +0 -0
- /package/src/components/url-input/{button.js → button.jsx} +0 -0
- /package/src/components/url-input/{index.js → index.jsx} +0 -0
- /package/src/components/url-input/test/{button.js → button.jsx} +0 -0
- /package/src/components/url-input/test/{index.js → index.jsx} +0 -0
- /package/src/components/url-popover/{image-url-input-ui.js → image-url-input-ui.jsx} +0 -0
- /package/src/components/url-popover/{index.js → index.jsx} +0 -0
- /package/src/components/url-popover/{link-editor.js → link-editor.jsx} +0 -0
- /package/src/components/url-popover/{link-viewer-url.js → link-viewer-url.jsx} +0 -0
- /package/src/components/url-popover/{link-viewer.js → link-viewer.jsx} +0 -0
- /package/src/components/use-block-display-information/test/{index.js → index.jsx} +0 -0
- /package/src/components/warning/{index.js → index.jsx} +0 -0
- /package/src/components/warning/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
- /package/src/components/warning/test/{index.js → index.jsx} +0 -0
- /package/src/components/writing-flow/{index.js → index.jsx} +0 -0
- /package/src/components/writing-flow/{use-tab-nav.js → use-tab-nav.jsx} +0 -0
- /package/src/components/writing-mode-control/{index.js → index.jsx} +0 -0
- /package/src/hooks/{align.js → align.jsx} +0 -0
- /package/src/hooks/{allowed-blocks.js → allowed-blocks.jsx} +0 -0
- /package/src/hooks/{anchor.js → anchor.jsx} +0 -0
- /package/src/hooks/{auto-inspector-controls.js → auto-inspector-controls.jsx} +0 -0
- /package/src/hooks/{background.js → background.jsx} +0 -0
- /package/src/hooks/{block-bindings.js → block-bindings.jsx} +0 -0
- /package/src/hooks/block-fields/{fields-dropdown-menu.js → fields-dropdown-menu.jsx} +0 -0
- /package/src/hooks/block-fields/{index.js → index.jsx} +0 -0
- /package/src/hooks/block-fields/link/{index.js → index.jsx} +0 -0
- /package/src/hooks/block-fields/media/{index.js → index.jsx} +0 -0
- /package/src/hooks/block-fields/rich-text/{index.js → index.jsx} +0 -0
- /package/src/hooks/{block-hooks.js → block-hooks.jsx} +0 -0
- /package/src/hooks/{block-style-variation.js → block-style-variation.jsx} +0 -0
- /package/src/hooks/{border.js → border.jsx} +0 -0
- /package/src/hooks/{custom-class-name.js → custom-class-name.jsx} +0 -0
- /package/src/hooks/{custom-css.js → custom-css.jsx} +0 -0
- /package/src/hooks/{dimensions.js → dimensions.jsx} +0 -0
- /package/src/hooks/{duotone.js → duotone.jsx} +0 -0
- /package/src/hooks/{elements.js → elements.jsx} +0 -0
- /package/src/hooks/{fit-text.js → fit-text.jsx} +0 -0
- /package/src/hooks/{font-size.js → font-size.jsx} +0 -0
- /package/src/hooks/{layout-child.js → layout-child.jsx} +0 -0
- /package/src/hooks/{layout.js → layout.jsx} +0 -0
- /package/src/hooks/{line-height.js → line-height.jsx} +0 -0
- /package/src/hooks/{list-view.js → list-view.jsx} +0 -0
- /package/src/hooks/{spacing-visualizer.js → spacing-visualizer.jsx} +0 -0
- /package/src/hooks/{states.js → states.jsx} +0 -0
- /package/src/hooks/{style.js → style.jsx} +0 -0
- /package/src/hooks/test/{align.js → align.jsx} +0 -0
- /package/src/hooks/test/{background.js → background.jsx} +0 -0
- /package/src/hooks/test/{custom-class-name.js → custom-class-name.jsx} +0 -0
- /package/src/hooks/test/{inherited-value-wiring.js → inherited-value-wiring.jsx} +0 -0
- /package/src/hooks/test/{settings.js → settings.jsx} +0 -0
- /package/src/hooks/test/{style.js → style.jsx} +0 -0
- /package/src/hooks/test/{text-align.js → text-align.jsx} +0 -0
- /package/src/hooks/{text-align.js → text-align.jsx} +0 -0
- /package/src/hooks/{typography.js → typography.jsx} +0 -0
- /package/src/hooks/{utils.js → utils.jsx} +0 -0
- /package/src/layouts/{constrained.js → constrained.jsx} +0 -0
- /package/src/layouts/{flex.js → flex.jsx} +0 -0
- /package/src/layouts/{grid.js → grid.jsx} +0 -0
- /package/src/layouts/test/{constrained.js → constrained.jsx} +0 -0
- /package/src/layouts/test/{flex.js → flex.jsx} +0 -0
- /package/src/layouts/test/{grid.js → grid.jsx} +0 -0
- /package/src/store/test/{selectors.js → selectors.jsx} +0 -0
- /package/src/utils/test/{dom.js → dom.jsx} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/provider/index.
|
|
4
|
-
"sourcesContent": ["import { useDispatch } from '@wordpress/data';\nimport { useEffect, useMemo, useRef } from '@wordpress/element';\nimport { SlotFillProvider } from '@wordpress/components';\nimport {\n\tMediaUploadProvider,\n\tstore as uploadStore,\n\tdetectClientSideMediaSupport,\n\tisHeicCanvasSupported,\n} from '@wordpress/upload-media';\nimport withRegistryProvider from './with-registry-provider';\nimport useBlockSync from './use-block-sync';\nimport { store as blockEditorStore } from '../../store';\nimport { BlockRefsProvider } from './block-refs-provider';\nimport { unlock } from '../../lock-unlock';\nimport KeyboardShortcuts from '../keyboard-shortcuts';\nimport BlockKeyboardShortcuts from '../block-keyboard-shortcuts';\nimport useMediaUploadSettings from './use-media-upload-settings';\nimport { mediaUploadOnSuccessKey } from '../../store/private-keys';\nimport { SelectionContext } from './selection-context';\n\n/** @typedef {import('@wordpress/data').WPDataRegistry} WPDataRegistry */\n\nconst noop = () => {};\n\n/**\n * Flag to track if we've already logged the fallback message.\n */\nlet hasLoggedFallback = false;\n\n/**\n * Cached result of whether client-side media processing should be enabled.\n * This is computed once per session for efficiency and stability.\n */\nlet isClientSideMediaEnabledCache = null;\n\n/**\n * Cached result of whether HEIC-only canvas processing should be enabled.\n */\nlet isHeicCanvasEnabledCache = null;\n\n/**\n * HEIC MIME types that should be routed through the upload-media pipeline\n * when in HEIC-only mode.\n */\nconst HEIC_MIME_TYPES = [ 'image/heic', 'image/heif' ];\n\n/**\n * Checks if client-side media processing should be enabled.\n *\n * Returns true only if:\n * 1. The client-side media processing flag is enabled\n * 2. The browser supports WebAssembly, SharedArrayBuffer, cross-origin isolation, and CSP allows blob workers\n *\n * The result is cached for the session to ensure stability during React renders.\n *\n * @return {boolean} Whether client-side media processing should be enabled.\n */\nfunction shouldEnableClientSideMediaProcessing() {\n\t// Return cached result if available.\n\tif ( isClientSideMediaEnabledCache !== null ) {\n\t\treturn isClientSideMediaEnabledCache;\n\t}\n\n\t// Check if the client-side media processing flag is enabled first.\n\tif ( ! window.__clientSideMediaProcessing ) {\n\t\tisClientSideMediaEnabledCache = false;\n\t\treturn false;\n\t}\n\n\t// Safety check in case the import is unavailable.\n\tif ( typeof detectClientSideMediaSupport !== 'function' ) {\n\t\tisClientSideMediaEnabledCache = false;\n\t\treturn false;\n\t}\n\n\tconst detection = detectClientSideMediaSupport();\n\tif ( ! detection || ! detection.supported ) {\n\t\t// Only log once per session to avoid console spam.\n\t\tif ( ! hasLoggedFallback ) {\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.info(\n\t\t\t\t`Client-side media processing unavailable: ${ detection.reason }. Using server-side processing.`\n\t\t\t);\n\t\t\thasLoggedFallback = true;\n\t\t}\n\t\tisClientSideMediaEnabledCache = false;\n\t\treturn false;\n\t}\n\n\tisClientSideMediaEnabledCache = true;\n\treturn true;\n}\n\n/**\n * Checks if HEIC-only canvas processing should be enabled.\n *\n * Returns true when:\n * 1. Full client-side processing is NOT available (otherwise it handles HEIC already)\n * 2. The server has set the __clientSideMediaProcessing flag\n * 3. The browser supports createImageBitmap + OffscreenCanvas (e.g. Safari)\n *\n * @return {boolean} Whether HEIC-only canvas processing should be enabled.\n */\nfunction shouldEnableHeicCanvasProcessing() {\n\tif ( isHeicCanvasEnabledCache !== null ) {\n\t\treturn isHeicCanvasEnabledCache;\n\t}\n\n\t// If full client-side processing is enabled, it already handles HEIC.\n\tif ( shouldEnableClientSideMediaProcessing() ) {\n\t\tisHeicCanvasEnabledCache = false;\n\t\treturn false;\n\t}\n\n\tif ( ! window.__clientSideMediaProcessing ) {\n\t\tisHeicCanvasEnabledCache = false;\n\t\treturn false;\n\t}\n\n\tif (\n\t\ttypeof isHeicCanvasSupported !== 'function' ||\n\t\t! isHeicCanvasSupported()\n\t) {\n\t\tisHeicCanvasEnabledCache = false;\n\t\treturn false;\n\t}\n\n\tisHeicCanvasEnabledCache = true;\n\treturn true;\n}\n\n/**\n * Upload a media file when the file upload button is activated\n * or when adding a file to the editor via drag & drop.\n *\n * @param {WPDataRegistry} registry\n * @param {Object} settings Block editor settings.\n * @param {Object} $3 Parameters object passed to the function.\n * @param {Array} $3.allowedTypes Array with the types of media that can be uploaded, if unset all types are allowed.\n * @param {Object} $3.additionalData Additional data to include in the request.\n * @param {Array<File>} $3.filesList List of files.\n * @param {Function} $3.onError Function called when an error happens.\n * @param {Function} $3.onFileChange Function called each time a file or a temporary representation of the file is available.\n * @param {Function} $3.onSuccess Function called once a file has completely finished uploading, including thumbnails.\n * @param {Function} $3.onBatchSuccess Function called once all files in a group have completely finished uploading, including thumbnails.\n */\nfunction mediaUpload(\n\tregistry,\n\tsettings,\n\t{\n\t\tallowedTypes,\n\t\tadditionalData = {},\n\t\tfilesList,\n\t\tonError = noop,\n\t\tonFileChange,\n\t\tonSuccess,\n\t\tonBatchSuccess,\n\t}\n) {\n\tvoid registry.dispatch( uploadStore ).addItems( {\n\t\tfiles: Array.from( filesList ),\n\t\tonChange: onFileChange,\n\t\tonSuccess: ( attachments ) => {\n\t\t\tsettings?.[ mediaUploadOnSuccessKey ]?.( attachments );\n\t\t\tonSuccess?.( attachments );\n\t\t},\n\t\tonBatchSuccess,\n\t\tonError: ( error ) =>\n\t\t\tonError( typeof error === 'string' ? error : error?.message ?? '' ),\n\t\tadditionalData,\n\t\tallowedTypes,\n\t} );\n}\n\n/**\n * Upload interceptor for HEIC-only mode.\n *\n * Routes HEIC files through the upload-media pipeline for canvas-based\n * conversion, while passing non-HEIC files to the original mediaUpload\n * function for standard server-side processing.\n *\n * @param {WPDataRegistry} registry\n * @param {Object} settings Block editor settings.\n * @param {Object} $3 Parameters object passed to the function.\n * @param {Array} $3.allowedTypes Array with the types of media that can be uploaded, if unset all types are allowed.\n * @param {Object} $3.additionalData Additional data to include in the request.\n * @param {Array<File>} $3.filesList List of files.\n * @param {Function} $3.onError Function called when an error happens.\n * @param {Function} $3.onFileChange Function called each time a file or a temporary representation of the file is available.\n * @param {Function} $3.onSuccess Function called once a file has completely finished uploading, including thumbnails.\n * @param {Function} $3.onBatchSuccess Function called once all files in a group have completely finished uploading, including thumbnails.\n */\nfunction heicMediaUpload(\n\tregistry,\n\tsettings,\n\t{\n\t\tallowedTypes,\n\t\tadditionalData = {},\n\t\tfilesList,\n\t\tonError = noop,\n\t\tonFileChange,\n\t\tonSuccess,\n\t\tonBatchSuccess,\n\t}\n) {\n\tconst files = Array.from( filesList );\n\tconst heicFiles = files.filter( ( file ) =>\n\t\tHEIC_MIME_TYPES.includes( file.type )\n\t);\n\tconst otherFiles = files.filter(\n\t\t( file ) => ! HEIC_MIME_TYPES.includes( file.type )\n\t);\n\n\t// When the batch contains both HEIC and non-HEIC files, coordinate\n\t// onBatchSuccess so it fires only after *both* paths have completed.\n\tconst hasBothPaths =\n\t\theicFiles.length > 0 && otherFiles.length > 0 && settings?.mediaUpload;\n\tlet pathsRemaining = hasBothPaths ? 2 : 1;\n\tconst coordinatedBatchSuccess = hasBothPaths\n\t\t? () => {\n\t\t\t\tpathsRemaining--;\n\t\t\t\tif ( pathsRemaining <= 0 ) {\n\t\t\t\t\tonBatchSuccess?.();\n\t\t\t\t}\n\t\t }\n\t\t: onBatchSuccess;\n\n\t// Route HEIC files through the upload-media pipeline.\n\tif ( heicFiles.length > 0 ) {\n\t\tvoid registry.dispatch( uploadStore ).addItems( {\n\t\t\tfiles: heicFiles,\n\t\t\tonChange: onFileChange,\n\t\t\tonSuccess: ( attachments ) => {\n\t\t\t\tsettings?.[ mediaUploadOnSuccessKey ]?.( attachments );\n\t\t\t\tonSuccess?.( attachments );\n\t\t\t},\n\t\t\tonBatchSuccess: coordinatedBatchSuccess,\n\t\t\tonError: ( error ) =>\n\t\t\t\tonError(\n\t\t\t\t\ttypeof error === 'string' ? error : error?.message ?? ''\n\t\t\t\t),\n\t\t\tadditionalData,\n\t\t\tallowedTypes,\n\t\t} );\n\t}\n\n\t// Pass non-HEIC files to the original server-side upload function.\n\tif ( otherFiles.length > 0 && settings?.mediaUpload ) {\n\t\tsettings.mediaUpload( {\n\t\t\tallowedTypes,\n\t\t\tadditionalData,\n\t\t\tfilesList: otherFiles,\n\t\t\tonError,\n\t\t\tonFileChange,\n\t\t\tonSuccess,\n\t\t\tonBatchSuccess: coordinatedBatchSuccess,\n\t\t} );\n\t}\n}\n\n/**\n * Calls useBlockSync as a child of SelectionContext.Provider so that the\n * hook can read selection state from the context provided by this tree\n * rather than from a parent provider (which may not exist for the root).\n *\n * @param {Object} props Props forwarded to useBlockSync.\n */\nfunction BlockSyncEffect( props ) {\n\tuseBlockSync( props );\n\treturn null;\n}\n\nexport const ExperimentalBlockEditorProvider = withRegistryProvider(\n\t( props ) => {\n\t\tconst {\n\t\t\tsettings: _settings,\n\t\t\tregistry,\n\t\t\tstripExperimentalSettings = false,\n\t\t} = props;\n\n\t\tconst mediaUploadSettings = useMediaUploadSettings( _settings );\n\n\t\tconst isClientSideMediaEnabled =\n\t\t\tshouldEnableClientSideMediaProcessing();\n\t\tconst isHeicCanvasEnabled = shouldEnableHeicCanvasProcessing();\n\t\tconst useUploadMediaPipeline =\n\t\t\tisClientSideMediaEnabled || isHeicCanvasEnabled;\n\n\t\t// Nested providers (e.g. from useBlockPreview) inherit settings\n\t\t// where mediaUpload has already been replaced with the\n\t\t// interceptor. Detect this so we skip the replacement and\n\t\t// MediaUploadProvider for them — see the longer comment below.\n\t\tconst isMediaUploadIntercepted =\n\t\t\t!! _settings?.mediaUpload?.__isMediaUploadInterceptor;\n\n\t\tconst settings = useMemo( () => {\n\t\t\tif (\n\t\t\t\tuseUploadMediaPipeline &&\n\t\t\t\t_settings?.mediaUpload &&\n\t\t\t\t! isMediaUploadIntercepted\n\t\t\t) {\n\t\t\t\t// Choose the right interceptor:\n\t\t\t\t// - Full mode: all uploads go through upload-media pipeline.\n\t\t\t\t// - HEIC-only mode: only HEIC files go through, rest use legacy path.\n\t\t\t\tconst uploadFn = isClientSideMediaEnabled\n\t\t\t\t\t? mediaUpload\n\t\t\t\t\t: heicMediaUpload;\n\t\t\t\tconst interceptor = uploadFn.bind( null, registry, _settings );\n\t\t\t\tinterceptor.__isMediaUploadInterceptor = true;\n\t\t\t\treturn {\n\t\t\t\t\t..._settings,\n\t\t\t\t\tmediaUpload: interceptor,\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn _settings;\n\t\t}, [\n\t\t\t_settings,\n\t\t\tregistry,\n\t\t\tuseUploadMediaPipeline,\n\t\t\tisClientSideMediaEnabled,\n\t\t\tisMediaUploadIntercepted,\n\t\t] );\n\n\t\tconst { __experimentalUpdateSettings } = unlock(\n\t\t\tuseDispatch( blockEditorStore )\n\t\t);\n\t\tuseEffect( () => {\n\t\t\t__experimentalUpdateSettings(\n\t\t\t\t{\n\t\t\t\t\t...settings,\n\t\t\t\t\t__internalIsInitialized: true,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tstripExperimentalSettings,\n\t\t\t\t\treset: true,\n\t\t\t\t}\n\t\t\t);\n\t\t}, [\n\t\t\tsettings,\n\t\t\tstripExperimentalSettings,\n\t\t\t__experimentalUpdateSettings,\n\t\t] );\n\n\t\t// Store selection and onChangeSelection in refs and expose\n\t\t// stable getters/callers so that the context value is a\n\t\t// complete constant. This prevents re-rendering the entire\n\t\t// block tree (including async-rendered off-screen blocks)\n\t\t// when either value changes.\n\t\tconst selectionRef = useRef( props.selection );\n\t\tselectionRef.current = props.selection;\n\t\tconst onChangeSelectionRef = useRef( props.onChangeSelection ?? noop );\n\t\tonChangeSelectionRef.current = props.onChangeSelection ?? noop;\n\n\t\tconst selectionContextValue = useMemo(\n\t\t\t() => ( {\n\t\t\t\tgetSelection: () => selectionRef.current,\n\t\t\t\tonChangeSelection: ( ...args ) =>\n\t\t\t\t\tonChangeSelectionRef.current( ...args ),\n\t\t\t} ),\n\t\t\t[]\n\t\t);\n\n\t\tconst children = (\n\t\t\t<SlotFillProvider passthrough>\n\t\t\t\t{ ! settings?.isPreviewMode && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<KeyboardShortcuts.Register />\n\t\t\t\t\t\t<BlockKeyboardShortcuts />\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t\t<BlockRefsProvider>{ props.children }</BlockRefsProvider>\n\t\t\t</SlotFillProvider>\n\t\t);\n\n\t\tconst content = (\n\t\t\t<SelectionContext.Provider value={ selectionContextValue }>\n\t\t\t\t<BlockSyncEffect\n\t\t\t\t\tclientId={ props.clientId }\n\t\t\t\t\tvalue={ props.value }\n\t\t\t\t\tonChange={ props.onChange }\n\t\t\t\t\tonInput={ props.onInput }\n\t\t\t\t/>\n\t\t\t\t{ children }\n\t\t\t</SelectionContext.Provider>\n\t\t);\n\n\t\t// MediaUploadProvider writes the mediaUpload function from\n\t\t// _settings into the shared upload-media store so the store can\n\t\t// hand files off to the server. useMediaUploadSettings extracts\n\t\t// mediaUpload from the original _settings prop — *before* the\n\t\t// interceptor replacement above — so the store receives the\n\t\t// real server-side upload function.\n\t\t//\n\t\t// Only the first (outermost) provider should do this.\n\t\t// Nested providers (e.g. from useBlockPreview in\n\t\t// core/post-template) inherit settings that already contain\n\t\t// the interceptor, so their MediaUploadProvider would\n\t\t// overwrite the store's server-side function with the\n\t\t// interceptor, causing uploads to loop instead of reaching\n\t\t// the server.\n\t\tif ( useUploadMediaPipeline && ! isMediaUploadIntercepted ) {\n\t\t\treturn (\n\t\t\t\t<MediaUploadProvider\n\t\t\t\t\tsettings={ mediaUploadSettings }\n\t\t\t\t\tuseSubRegistry={ false }\n\t\t\t\t>\n\t\t\t\t\t{ content }\n\t\t\t\t</MediaUploadProvider>\n\t\t\t);\n\t\t}\n\n\t\treturn content;\n\t}\n);\n\nexport const BlockEditorProvider = ( props ) => {\n\treturn (\n\t\t<ExperimentalBlockEditorProvider { ...props } stripExperimentalSettings>\n\t\t\t{ props.children }\n\t\t</ExperimentalBlockEditorProvider>\n\t);\n};\n\nexport default BlockEditorProvider;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA4B;AAC5B,qBAA2C;AAC3C,wBAAiC;AACjC,0BAKO;AACP,oCAAiC;AACjC,4BAAyB;AACzB,mBAA0C;AAC1C,iCAAkC;AAClC,yBAAuB;AACvB,gCAA8B;AAC9B,sCAAmC;AACnC,uCAAmC;AACnC,0BAAwC;AACxC,+BAAiC;
|
|
3
|
+
"sources": ["../../../src/components/provider/index.jsx"],
|
|
4
|
+
"sourcesContent": ["import { useDispatch } from '@wordpress/data';\nimport { useEffect, useMemo, useRef } from '@wordpress/element';\nimport { SlotFillProvider } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tMediaUploadProvider,\n\tstore as uploadStore,\n\tdetectClientSideMediaSupport,\n\tisHeicCanvasSupported,\n} from '@wordpress/upload-media';\nimport withRegistryProvider from './with-registry-provider';\nimport useBlockSync from './use-block-sync';\nimport { store as blockEditorStore } from '../../store';\nimport { BlockRefsProvider } from './block-refs-provider';\nimport { unlock } from '../../lock-unlock';\nimport KeyboardShortcuts from '../keyboard-shortcuts';\nimport BlockKeyboardShortcuts from '../block-keyboard-shortcuts';\nimport useMediaUploadSettings from './use-media-upload-settings';\nimport { mediaUploadOnSuccessKey } from '../../store/private-keys';\nimport { SelectionContext } from './selection-context';\n\n/** @typedef {import('@wordpress/data').WPDataRegistry} WPDataRegistry */\n\nconst noop = () => {};\n\n/**\n * Flag to track if we've already logged the fallback message.\n */\nlet hasLoggedFallback = false;\n\n/**\n * Cached result of whether client-side media processing should be enabled.\n * This is computed once per session for efficiency and stability.\n */\nlet isClientSideMediaEnabledCache = null;\n\n/**\n * Cached result of whether HEIC-only canvas processing should be enabled.\n */\nlet isHeicCanvasEnabledCache = null;\n\n/**\n * HEIC MIME types that should be routed through the upload-media pipeline\n * when in HEIC-only mode.\n */\nconst HEIC_MIME_TYPES = [ 'image/heic', 'image/heif' ];\n\n/**\n * Refuses a batch of more than one file on behalf of a caller that only takes\n * one - a Cover block's placeholder, say.\n *\n * `uploadMedia()` in `@wordpress/media-utils` refuses such a batch with the\n * same wording, but the `@wordpress/upload-media` pipeline below is a separate\n * transport that never reaches that function. Without this check every dropped\n * file uploads and the caller keeps whichever one lands last (gutenberg#82041).\n *\n * @param {Array<File>} filesList List of files.\n * @param {boolean} multiple Whether the caller accepts more than one file.\n * @param {Function} onError Function called when an error happens.\n *\n * @return {boolean} Whether the batch was refused.\n */\nfunction refuseExtraFiles( filesList, multiple, onError ) {\n\tif ( ! multiple && filesList.length > 1 ) {\n\t\tonError( __( 'Only one file can be used here.' ) );\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n\n/**\n * Checks if client-side media processing should be enabled.\n *\n * Returns true only if:\n * 1. The client-side media processing flag is enabled\n * 2. The browser supports WebAssembly, SharedArrayBuffer, cross-origin isolation, and CSP allows blob workers\n *\n * The result is cached for the session to ensure stability during React renders.\n *\n * @return {boolean} Whether client-side media processing should be enabled.\n */\nfunction shouldEnableClientSideMediaProcessing() {\n\t// Return cached result if available.\n\tif ( isClientSideMediaEnabledCache !== null ) {\n\t\treturn isClientSideMediaEnabledCache;\n\t}\n\n\t// Check if the client-side media processing flag is enabled first.\n\tif ( ! window.__clientSideMediaProcessing ) {\n\t\tisClientSideMediaEnabledCache = false;\n\t\treturn false;\n\t}\n\n\t// Safety check in case the import is unavailable.\n\tif ( typeof detectClientSideMediaSupport !== 'function' ) {\n\t\tisClientSideMediaEnabledCache = false;\n\t\treturn false;\n\t}\n\n\tconst detection = detectClientSideMediaSupport();\n\tif ( ! detection || ! detection.supported ) {\n\t\t// Only log once per session to avoid console spam.\n\t\tif ( ! hasLoggedFallback ) {\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.info(\n\t\t\t\t`Client-side media processing unavailable: ${ detection.reason }. Using server-side processing.`\n\t\t\t);\n\t\t\thasLoggedFallback = true;\n\t\t}\n\t\tisClientSideMediaEnabledCache = false;\n\t\treturn false;\n\t}\n\n\tisClientSideMediaEnabledCache = true;\n\treturn true;\n}\n\n/**\n * Checks if HEIC-only canvas processing should be enabled.\n *\n * Returns true when:\n * 1. Full client-side processing is NOT available (otherwise it handles HEIC already)\n * 2. The server has set the __clientSideMediaProcessing flag\n * 3. The browser supports createImageBitmap + OffscreenCanvas (e.g. Safari)\n *\n * @return {boolean} Whether HEIC-only canvas processing should be enabled.\n */\nfunction shouldEnableHeicCanvasProcessing() {\n\tif ( isHeicCanvasEnabledCache !== null ) {\n\t\treturn isHeicCanvasEnabledCache;\n\t}\n\n\t// If full client-side processing is enabled, it already handles HEIC.\n\tif ( shouldEnableClientSideMediaProcessing() ) {\n\t\tisHeicCanvasEnabledCache = false;\n\t\treturn false;\n\t}\n\n\tif ( ! window.__clientSideMediaProcessing ) {\n\t\tisHeicCanvasEnabledCache = false;\n\t\treturn false;\n\t}\n\n\tif (\n\t\ttypeof isHeicCanvasSupported !== 'function' ||\n\t\t! isHeicCanvasSupported()\n\t) {\n\t\tisHeicCanvasEnabledCache = false;\n\t\treturn false;\n\t}\n\n\tisHeicCanvasEnabledCache = true;\n\treturn true;\n}\n\n/**\n * Upload a media file when the file upload button is activated\n * or when adding a file to the editor via drag & drop.\n *\n * @param {WPDataRegistry} registry\n * @param {Object} settings Block editor settings.\n * @param {Object} $3 Parameters object passed to the function.\n * @param {Array} $3.allowedTypes Array with the types of media that can be uploaded, if unset all types are allowed.\n * @param {Object} $3.additionalData Additional data to include in the request.\n * @param {Array<File>} $3.filesList List of files.\n * @param {Function} $3.onError Function called when an error happens.\n * @param {Function} $3.onFileChange Function called each time a file or a temporary representation of the file is available.\n * @param {Function} $3.onSuccess Function called once a file has completely finished uploading, including thumbnails.\n * @param {Function} $3.onBatchSuccess Function called once all files in a group have completely finished uploading, including thumbnails.\n * @param {boolean} $3.multiple Whether the caller accepts more than one file.\n */\nfunction mediaUpload(\n\tregistry,\n\tsettings,\n\t{\n\t\tallowedTypes,\n\t\tadditionalData = {},\n\t\tfilesList,\n\t\tonError = noop,\n\t\tonFileChange,\n\t\tonSuccess,\n\t\tonBatchSuccess,\n\t\tmultiple = true,\n\t}\n) {\n\tif ( refuseExtraFiles( filesList, multiple, onError ) ) {\n\t\treturn;\n\t}\n\n\tvoid registry.dispatch( uploadStore ).addItems( {\n\t\tfiles: Array.from( filesList ),\n\t\tonChange: onFileChange,\n\t\tonSuccess: ( attachments ) => {\n\t\t\tsettings?.[ mediaUploadOnSuccessKey ]?.( attachments );\n\t\t\tonSuccess?.( attachments );\n\t\t},\n\t\tonBatchSuccess,\n\t\tonError: ( error ) =>\n\t\t\tonError( typeof error === 'string' ? error : error?.message ?? '' ),\n\t\tadditionalData,\n\t\tallowedTypes,\n\t} );\n}\n\n/**\n * Upload interceptor for HEIC-only mode.\n *\n * Routes HEIC files through the upload-media pipeline for canvas-based\n * conversion, while passing non-HEIC files to the original mediaUpload\n * function for standard server-side processing.\n *\n * @param {WPDataRegistry} registry\n * @param {Object} settings Block editor settings.\n * @param {Object} $3 Parameters object passed to the function.\n * @param {Array} $3.allowedTypes Array with the types of media that can be uploaded, if unset all types are allowed.\n * @param {Object} $3.additionalData Additional data to include in the request.\n * @param {Array<File>} $3.filesList List of files.\n * @param {Function} $3.onError Function called when an error happens.\n * @param {Function} $3.onFileChange Function called each time a file or a temporary representation of the file is available.\n * @param {Function} $3.onSuccess Function called once a file has completely finished uploading, including thumbnails.\n * @param {Function} $3.onBatchSuccess Function called once all files in a group have completely finished uploading, including thumbnails.\n * @param {boolean} $3.multiple Whether the caller accepts more than one file.\n */\nfunction heicMediaUpload(\n\tregistry,\n\tsettings,\n\t{\n\t\tallowedTypes,\n\t\tadditionalData = {},\n\t\tfilesList,\n\t\tonError = noop,\n\t\tonFileChange,\n\t\tonSuccess,\n\t\tonBatchSuccess,\n\t\tmultiple = true,\n\t}\n) {\n\tif ( refuseExtraFiles( filesList, multiple, onError ) ) {\n\t\treturn;\n\t}\n\n\tconst files = Array.from( filesList );\n\tconst heicFiles = files.filter( ( file ) =>\n\t\tHEIC_MIME_TYPES.includes( file.type )\n\t);\n\tconst otherFiles = files.filter(\n\t\t( file ) => ! HEIC_MIME_TYPES.includes( file.type )\n\t);\n\n\t// When the batch contains both HEIC and non-HEIC files, coordinate\n\t// onBatchSuccess so it fires only after *both* paths have completed.\n\tconst hasBothPaths =\n\t\theicFiles.length > 0 && otherFiles.length > 0 && settings?.mediaUpload;\n\tlet pathsRemaining = hasBothPaths ? 2 : 1;\n\tconst coordinatedBatchSuccess = hasBothPaths\n\t\t? () => {\n\t\t\t\tpathsRemaining--;\n\t\t\t\tif ( pathsRemaining <= 0 ) {\n\t\t\t\t\tonBatchSuccess?.();\n\t\t\t\t}\n\t\t }\n\t\t: onBatchSuccess;\n\n\t// Route HEIC files through the upload-media pipeline.\n\tif ( heicFiles.length > 0 ) {\n\t\tvoid registry.dispatch( uploadStore ).addItems( {\n\t\t\tfiles: heicFiles,\n\t\t\tonChange: onFileChange,\n\t\t\tonSuccess: ( attachments ) => {\n\t\t\t\tsettings?.[ mediaUploadOnSuccessKey ]?.( attachments );\n\t\t\t\tonSuccess?.( attachments );\n\t\t\t},\n\t\t\tonBatchSuccess: coordinatedBatchSuccess,\n\t\t\tonError: ( error ) =>\n\t\t\t\tonError(\n\t\t\t\t\ttypeof error === 'string' ? error : error?.message ?? ''\n\t\t\t\t),\n\t\t\tadditionalData,\n\t\t\tallowedTypes,\n\t\t} );\n\t}\n\n\t// Pass non-HEIC files to the original server-side upload function.\n\tif ( otherFiles.length > 0 && settings?.mediaUpload ) {\n\t\tsettings.mediaUpload( {\n\t\t\tallowedTypes,\n\t\t\tadditionalData,\n\t\t\tfilesList: otherFiles,\n\t\t\tonError,\n\t\t\tonFileChange,\n\t\t\tonSuccess,\n\t\t\tonBatchSuccess: coordinatedBatchSuccess,\n\t\t\tmultiple,\n\t\t} );\n\t}\n}\n\n/**\n * Calls useBlockSync as a child of SelectionContext.Provider so that the\n * hook can read selection state from the context provided by this tree\n * rather than from a parent provider (which may not exist for the root).\n *\n * @param {Object} props Props forwarded to useBlockSync.\n */\nfunction BlockSyncEffect( props ) {\n\tuseBlockSync( props );\n\treturn null;\n}\n\nexport const ExperimentalBlockEditorProvider = withRegistryProvider(\n\t( props ) => {\n\t\tconst {\n\t\t\tsettings: _settings,\n\t\t\tregistry,\n\t\t\tstripExperimentalSettings = false,\n\t\t} = props;\n\n\t\tconst mediaUploadSettings = useMediaUploadSettings( _settings );\n\n\t\tconst isClientSideMediaEnabled =\n\t\t\tshouldEnableClientSideMediaProcessing();\n\t\tconst isHeicCanvasEnabled = shouldEnableHeicCanvasProcessing();\n\t\tconst useUploadMediaPipeline =\n\t\t\tisClientSideMediaEnabled || isHeicCanvasEnabled;\n\n\t\t// Nested providers (e.g. from useBlockPreview) inherit settings\n\t\t// where mediaUpload has already been replaced with the\n\t\t// interceptor. Detect this so we skip the replacement and\n\t\t// MediaUploadProvider for them — see the longer comment below.\n\t\tconst isMediaUploadIntercepted =\n\t\t\t!! _settings?.mediaUpload?.__isMediaUploadInterceptor;\n\n\t\tconst settings = useMemo( () => {\n\t\t\tif (\n\t\t\t\tuseUploadMediaPipeline &&\n\t\t\t\t_settings?.mediaUpload &&\n\t\t\t\t! isMediaUploadIntercepted\n\t\t\t) {\n\t\t\t\t// Choose the right interceptor:\n\t\t\t\t// - Full mode: all uploads go through upload-media pipeline.\n\t\t\t\t// - HEIC-only mode: only HEIC files go through, rest use legacy path.\n\t\t\t\tconst uploadFn = isClientSideMediaEnabled\n\t\t\t\t\t? mediaUpload\n\t\t\t\t\t: heicMediaUpload;\n\t\t\t\tconst interceptor = uploadFn.bind( null, registry, _settings );\n\t\t\t\tinterceptor.__isMediaUploadInterceptor = true;\n\t\t\t\treturn {\n\t\t\t\t\t..._settings,\n\t\t\t\t\tmediaUpload: interceptor,\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn _settings;\n\t\t}, [\n\t\t\t_settings,\n\t\t\tregistry,\n\t\t\tuseUploadMediaPipeline,\n\t\t\tisClientSideMediaEnabled,\n\t\t\tisMediaUploadIntercepted,\n\t\t] );\n\n\t\tconst { __experimentalUpdateSettings } = unlock(\n\t\t\tuseDispatch( blockEditorStore )\n\t\t);\n\t\tuseEffect( () => {\n\t\t\t__experimentalUpdateSettings(\n\t\t\t\t{\n\t\t\t\t\t...settings,\n\t\t\t\t\t__internalIsInitialized: true,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tstripExperimentalSettings,\n\t\t\t\t\treset: true,\n\t\t\t\t}\n\t\t\t);\n\t\t}, [\n\t\t\tsettings,\n\t\t\tstripExperimentalSettings,\n\t\t\t__experimentalUpdateSettings,\n\t\t] );\n\n\t\t// Store selection and onChangeSelection in refs and expose\n\t\t// stable getters/callers so that the context value is a\n\t\t// complete constant. This prevents re-rendering the entire\n\t\t// block tree (including async-rendered off-screen blocks)\n\t\t// when either value changes.\n\t\tconst selectionRef = useRef( props.selection );\n\t\tselectionRef.current = props.selection;\n\t\tconst onChangeSelectionRef = useRef( props.onChangeSelection ?? noop );\n\t\tonChangeSelectionRef.current = props.onChangeSelection ?? noop;\n\n\t\tconst selectionContextValue = useMemo(\n\t\t\t() => ( {\n\t\t\t\tgetSelection: () => selectionRef.current,\n\t\t\t\tonChangeSelection: ( ...args ) =>\n\t\t\t\t\tonChangeSelectionRef.current( ...args ),\n\t\t\t} ),\n\t\t\t[]\n\t\t);\n\n\t\tconst children = (\n\t\t\t<SlotFillProvider passthrough>\n\t\t\t\t{ ! settings?.isPreviewMode && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<KeyboardShortcuts.Register />\n\t\t\t\t\t\t<BlockKeyboardShortcuts />\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t\t<BlockRefsProvider>{ props.children }</BlockRefsProvider>\n\t\t\t</SlotFillProvider>\n\t\t);\n\n\t\tconst content = (\n\t\t\t<SelectionContext.Provider value={ selectionContextValue }>\n\t\t\t\t<BlockSyncEffect\n\t\t\t\t\tclientId={ props.clientId }\n\t\t\t\t\tvalue={ props.value }\n\t\t\t\t\tonChange={ props.onChange }\n\t\t\t\t\tonInput={ props.onInput }\n\t\t\t\t/>\n\t\t\t\t{ children }\n\t\t\t</SelectionContext.Provider>\n\t\t);\n\n\t\t// MediaUploadProvider writes the mediaUpload function from\n\t\t// _settings into the shared upload-media store so the store can\n\t\t// hand files off to the server. useMediaUploadSettings extracts\n\t\t// mediaUpload from the original _settings prop — *before* the\n\t\t// interceptor replacement above — so the store receives the\n\t\t// real server-side upload function.\n\t\t//\n\t\t// Only the first (outermost) provider should do this.\n\t\t// Nested providers (e.g. from useBlockPreview in\n\t\t// core/post-template) inherit settings that already contain\n\t\t// the interceptor, so their MediaUploadProvider would\n\t\t// overwrite the store's server-side function with the\n\t\t// interceptor, causing uploads to loop instead of reaching\n\t\t// the server.\n\t\tif ( useUploadMediaPipeline && ! isMediaUploadIntercepted ) {\n\t\t\treturn (\n\t\t\t\t<MediaUploadProvider\n\t\t\t\t\tsettings={ mediaUploadSettings }\n\t\t\t\t\tuseSubRegistry={ false }\n\t\t\t\t>\n\t\t\t\t\t{ content }\n\t\t\t\t</MediaUploadProvider>\n\t\t\t);\n\t\t}\n\n\t\treturn content;\n\t}\n);\n\nexport const BlockEditorProvider = ( props ) => {\n\treturn (\n\t\t<ExperimentalBlockEditorProvider { ...props } stripExperimentalSettings>\n\t\t\t{ props.children }\n\t\t</ExperimentalBlockEditorProvider>\n\t);\n};\n\nexport default BlockEditorProvider;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA4B;AAC5B,qBAA2C;AAC3C,wBAAiC;AACjC,kBAAmB;AACnB,0BAKO;AACP,oCAAiC;AACjC,4BAAyB;AACzB,mBAA0C;AAC1C,iCAAkC;AAClC,yBAAuB;AACvB,gCAA8B;AAC9B,sCAAmC;AACnC,uCAAmC;AACnC,0BAAwC;AACxC,+BAAiC;AAgY5B;AA5XL,IAAM,OAAO,MAAM;AAAC;AAKpB,IAAI,oBAAoB;AAMxB,IAAI,gCAAgC;AAKpC,IAAI,2BAA2B;AAM/B,IAAM,kBAAkB,CAAE,cAAc,YAAa;AAiBrD,SAAS,iBAAkB,WAAW,UAAU,SAAU;AACzD,MAAK,CAAE,YAAY,UAAU,SAAS,GAAI;AACzC,gBAAS,gBAAI,iCAAkC,CAAE;AACjD,WAAO;AAAA,EACR;AAEA,SAAO;AACR;AAaA,SAAS,wCAAwC;AAEhD,MAAK,kCAAkC,MAAO;AAC7C,WAAO;AAAA,EACR;AAGA,MAAK,CAA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AAmB,IAAK,SACvB,qBAAqB,QAAS,GAAG,IAAK;AAAA,MACxC;AAAA,MACA,CAAC;AAAA,IACF;AAEA,UAAM,WACL,6CAAC,sCAAiB,aAAW,MAC1B;AAAA,OAAE,UAAU,iBACb,4EACC;AAAA,oDAAC,0BAAAC,QAAkB,UAAlB,EAA2B;AAAA,QAC5B,4CAAC,gCAAAC,SAAA,EAAuB;AAAA,SACzB;AAAA,MAED,4CAAC,gDAAoB,gBAAM,UAAU;AAAA,OACtC;AAGD,UAAM,UACL,6CAAC,0CAAiB,UAAjB,EAA0B,OAAQ,uBAClC;AAAA;AAAA,QAAC;AAAA;AAAA,UACA,UAAW,MAAM;AAAA,UACjB,OAAQ,MAAM;AAAA,UACd,UAAW,MAAM;AAAA,UACjB,SAAU,MAAM;AAAA;AAAA,MACjB;AAAA,MACE;AAAA,OACH;AAiBD,QAAK,0BAA0B,CAAE,0BAA2B;AAC3D,aACC;AAAA,QAAC;AAAA;AAAA,UACA,UAAW;AAAA,UACX,gBAAiB;AAAA,UAEf;AAAA;AAAA,MACH;AAAA,IAEF;AAEA,WAAO;AAAA,EACR;AACD;AAEO,IAAM,sBAAsB,CAAE,UAAW;AAC/C,SACC,4CAAC,mCAAkC,GAAG,OAAQ,2BAAyB,MACpE,gBAAM,UACT;AAEF;AAEA,IAAO,mBAAQ;",
|
|
6
6
|
"names": ["uploadStore", "useBlockSync", "withRegistryProvider", "useMediaUploadSettings", "blockEditorStore", "KeyboardShortcuts", "BlockKeyboardShortcuts"]
|
|
7
7
|
}
|
|
@@ -17,7 +17,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
|
-
// packages/block-editor/src/components/provider/with-registry-provider.
|
|
20
|
+
// packages/block-editor/src/components/provider/with-registry-provider.jsx
|
|
21
21
|
var with_registry_provider_exports = {};
|
|
22
22
|
__export(with_registry_provider_exports, {
|
|
23
23
|
default: () => with_registry_provider_default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/provider/with-registry-provider.
|
|
3
|
+
"sources": ["../../../src/components/provider/with-registry-provider.jsx"],
|
|
4
4
|
"sourcesContent": ["import { useState } from '@wordpress/element';\nimport { useRegistry, createRegistry, RegistryProvider } from '@wordpress/data';\nimport { createHigherOrderComponent } from '@wordpress/compose';\nimport { storeConfig } from '../../store';\nimport { STORE_NAME as blockEditorStoreName } from '../../store/constants';\n\nfunction getSubRegistry( subRegistries, registry, useSubRegistry ) {\n\tif ( ! useSubRegistry ) {\n\t\treturn registry;\n\t}\n\tlet subRegistry = subRegistries.get( registry );\n\tif ( ! subRegistry ) {\n\t\tsubRegistry = createRegistry( {}, registry );\n\t\tsubRegistry.registerStore( blockEditorStoreName, storeConfig );\n\t\tsubRegistries.set( registry, subRegistry );\n\t}\n\treturn subRegistry;\n}\n\nconst withRegistryProvider = createHigherOrderComponent(\n\t( WrappedComponent ) =>\n\t\tfunction WithRegistryProvider( { useSubRegistry = true, ...props } ) {\n\t\t\tconst registry = useRegistry();\n\t\t\tconst [ subRegistries ] = useState( () => new WeakMap() );\n\t\t\tconst subRegistry = getSubRegistry(\n\t\t\t\tsubRegistries,\n\t\t\t\tregistry,\n\t\t\t\tuseSubRegistry\n\t\t\t);\n\n\t\t\tif ( subRegistry === registry ) {\n\t\t\t\treturn <WrappedComponent registry={ registry } { ...props } />;\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<RegistryProvider value={ subRegistry }>\n\t\t\t\t\t<WrappedComponent registry={ subRegistry } { ...props } />\n\t\t\t\t</RegistryProvider>\n\t\t\t);\n\t\t},\n\t'withRegistryProvider'\n);\n\nexport default withRegistryProvider;\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAyB;AACzB,kBAA8D;AAC9D,qBAA2C;AAC3C,mBAA4B;AAC5B,uBAAmD;AA2BxC;AAzBX,SAAS,eAAgB,eAAe,UAAU,gBAAiB;AAClE,MAAK,CAAE,gBAAiB;AACvB,WAAO;AAAA,EACR;AACA,MAAI,cAAc,cAAc,IAAK,QAAS;AAC9C,MAAK,CAAE,aAAc;AACpB,sBAAc,4BAAgB,CAAC,GAAG,QAAS;AAC3C,gBAAY,cAAe,iBAAAA,YAAsB,wBAAY;AAC7D,kBAAc,IAAK,UAAU,WAAY;AAAA,EAC1C;AACA,SAAO;AACR;AAEA,IAAM,2BAAuB;AAAA,EAC5B,CAAE,qBACD,SAAS,qBAAsB,EAAE,iBAAiB,MAAM,GAAG,MAAM,GAAI;AACpE,UAAM,eAAW,yBAAY;AAC7B,UAAM,CAAE,aAAc,QAAI,yBAAU,MAAM,oBAAI,QAAQ,CAAE;AACxD,UAAM,cAAc;AAAA,MACnB;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAEA,QAAK,gBAAgB,UAAW;AAC/B,aAAO,4CAAC,oBAAiB,UAAwB,GAAG,OAAQ;AAAA,IAC7D;AAEA,WACC,4CAAC,gCAAiB,OAAQ,aACzB,sDAAC,oBAAiB,UAAW,aAAgB,GAAG,OAAQ,GACzD;AAAA,EAEF;AAAA,EACD;AACD;AAEA,IAAO,iCAAQ;",
|
|
6
6
|
"names": ["blockEditorStoreName"]
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// packages/block-editor/src/components/publish-date-time-picker/index.
|
|
30
|
+
// packages/block-editor/src/components/publish-date-time-picker/index.jsx
|
|
31
31
|
var publish_date_time_picker_exports = {};
|
|
32
32
|
__export(publish_date_time_picker_exports, {
|
|
33
33
|
PrivatePublishDateTimePicker: () => PrivatePublishDateTimePicker,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/publish-date-time-picker/index.
|
|
3
|
+
"sources": ["../../../src/components/publish-date-time-picker/index.jsx"],
|
|
4
4
|
"sourcesContent": ["import { DateTimePicker, TimePicker } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { forwardRef } from '@wordpress/element';\nimport { getSettings } from '@wordpress/date';\nimport InspectorPopoverHeader from '../inspector-popover-header';\n\nexport function PublishDateTimePicker(\n\t{\n\t\tonClose,\n\t\tonChange,\n\t\tshowPopoverHeader = true,\n\t\tshowPopoverHeaderActions,\n\t\tisCompact,\n\t\tcurrentDate,\n\t\ttitle,\n\t\t...additionalProps\n\t},\n\tref\n) {\n\tconst datePickerProps = {\n\t\tstartOfWeek: getSettings().l10n.startOfWeek,\n\t\tonChange,\n\t\tcurrentDate: isCompact ? undefined : currentDate,\n\t\tcurrentTime: isCompact ? currentDate : undefined,\n\t\t...additionalProps,\n\t};\n\tconst DatePickerComponent = isCompact ? TimePicker : DateTimePicker;\n\treturn (\n\t\t<div ref={ ref } className=\"block-editor-publish-date-time-picker\">\n\t\t\t{ showPopoverHeader && (\n\t\t\t\t<InspectorPopoverHeader\n\t\t\t\t\ttitle={ title || __( 'Publish' ) }\n\t\t\t\t\tactions={\n\t\t\t\t\t\tshowPopoverHeaderActions\n\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\t\tlabel: __( 'Reset' ),\n\t\t\t\t\t\t\t\t\t\tonClick: () => onChange?.( null ),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t ]\n\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t}\n\t\t\t\t\tonClose={ onClose }\n\t\t\t\t/>\n\t\t\t) }\n\t\t\t<DatePickerComponent { ...datePickerProps } />\n\t\t</div>\n\t);\n}\n\nexport const PrivatePublishDateTimePicker = forwardRef( PublishDateTimePicker );\n\nfunction PublicPublishDateTimePicker( props, ref ) {\n\treturn (\n\t\t<PrivatePublishDateTimePicker\n\t\t\t{ ...props }\n\t\t\tshowPopoverHeaderActions\n\t\t\tisCompact={ false }\n\t\t\tref={ ref }\n\t\t/>\n\t);\n}\n\nexport default forwardRef( PublicPublishDateTimePicker );\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA2C;AAC3C,kBAAmB;AACnB,qBAA2B;AAC3B,kBAA4B;AAC5B,sCAAmC;AAwBjC;AAtBK,SAAS,sBACf;AAAA,EACC;AAAA,EACA;AAAA,EACA,oBAAoB;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACJ,GACA,KACC;AACD,QAAM,kBAAkB;AAAA,IACvB,iBAAa,yBAAY,EAAE,KAAK;AAAA,IAChC;AAAA,IACA,aAAa,YAAY,SAAY;AAAA,IACrC,aAAa,YAAY,cAAc;AAAA,IACvC,GAAG;AAAA,EACJ;AACA,QAAM,sBAAsB,YAAY,+BAAa;AACrD,SACC,6CAAC,SAAI,KAAY,WAAU,yCACxB;AAAA,yBACD;AAAA,MAAC,gCAAAA;AAAA,MAAA;AAAA,QACA,OAAQ,aAAS,gBAAI,SAAU;AAAA,QAC/B,SACC,2BACG;AAAA,UACA;AAAA,YACC,WAAO,gBAAI,OAAQ;AAAA,YACnB,SAAS,MAAM,WAAY,IAAK;AAAA,UACjC;AAAA,QACA,IACA;AAAA,QAEJ;AAAA;AAAA,IACD;AAAA,IAED,4CAAC,uBAAsB,GAAG,iBAAkB;AAAA,KAC7C;AAEF;AAEO,IAAM,mCAA+B,2BAAY,qBAAsB;AAE9E,SAAS,4BAA6B,OAAO,KAAM;AAClD,SACC;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACL,0BAAwB;AAAA,MACxB,WAAY;AAAA,MACZ;AAAA;AAAA,EACD;AAEF;AAEA,IAAO,uCAAQ,2BAAY,2BAA4B;",
|
|
6
6
|
"names": ["InspectorPopoverHeader"]
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// packages/block-editor/src/components/recursion-provider/index.
|
|
30
|
+
// packages/block-editor/src/components/recursion-provider/index.jsx
|
|
31
31
|
var recursion_provider_exports = {};
|
|
32
32
|
__export(recursion_provider_exports, {
|
|
33
33
|
DeprecatedExperimentalRecursionProvider: () => DeprecatedExperimentalRecursionProvider,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/recursion-provider/index.
|
|
3
|
+
"sources": ["../../../src/components/recursion-provider/index.jsx"],
|
|
4
4
|
"sourcesContent": ["import { createContext, useContext, useMemo } from '@wordpress/element';\nimport deprecated from '@wordpress/deprecated';\nimport { useBlockEditContext } from '../block-edit/context';\n\nconst RenderedRefsContext = createContext( {} );\nRenderedRefsContext.displayName = 'RenderedRefsContext';\n\n/**\n * Immutably adds an unique identifier to a set scoped for a given block type.\n *\n * @param {Object} renderedBlocks Rendered blocks grouped by block name\n * @param {string} blockName Name of the block.\n * @param {*} uniqueId Any value that acts as a unique identifier for a block instance.\n *\n * @return {Object} The list of rendered blocks grouped by block name.\n */\nfunction addToBlockType( renderedBlocks, blockName, uniqueId ) {\n\tconst result = {\n\t\t...renderedBlocks,\n\t\t[ blockName ]: renderedBlocks[ blockName ]\n\t\t\t? new Set( renderedBlocks[ blockName ] )\n\t\t\t: new Set(),\n\t};\n\tresult[ blockName ].add( uniqueId );\n\n\treturn result;\n}\n\n/**\n * A React context provider for use with the `useHasRecursion` hook to prevent recursive\n * renders.\n *\n * Wrap block content with this provider and provide the same `uniqueId` prop as used\n * with `useHasRecursion`.\n *\n * @param {Object} props\n * @param {*} props.uniqueId Any value that acts as a unique identifier for a block instance.\n * @param {string} props.blockName Optional block name.\n * @param {React.JSX.Element} props.children React children.\n *\n * @return {React.JSX.Element} A React element.\n */\nexport function RecursionProvider( { children, uniqueId, blockName = '' } ) {\n\tconst previouslyRenderedBlocks = useContext( RenderedRefsContext );\n\tconst { name } = useBlockEditContext();\n\n\tblockName = blockName || name;\n\n\tconst newRenderedBlocks = useMemo(\n\t\t() => addToBlockType( previouslyRenderedBlocks, blockName, uniqueId ),\n\t\t[ previouslyRenderedBlocks, blockName, uniqueId ]\n\t);\n\n\treturn (\n\t\t<RenderedRefsContext.Provider value={ newRenderedBlocks }>\n\t\t\t{ children }\n\t\t</RenderedRefsContext.Provider>\n\t);\n}\n\n/**\n * A React hook for keeping track of blocks previously rendered up in the block\n * tree. Blocks susceptible to recursion can use this hook in their `Edit`\n * function to prevent said recursion.\n *\n * Use this with the `RecursionProvider` component, using the same `uniqueId` value\n * for both the hook and the provider.\n *\n * @param {*} uniqueId Any value that acts as a unique identifier for a block instance.\n * @param {string} blockName Optional block name.\n *\n * @return {boolean} A boolean describing whether the provided id has already been rendered.\n */\nexport function useHasRecursion( uniqueId, blockName = '' ) {\n\tconst previouslyRenderedBlocks = useContext( RenderedRefsContext );\n\tconst { name } = useBlockEditContext();\n\tblockName = blockName || name;\n\treturn Boolean( previouslyRenderedBlocks[ blockName ]?.has( uniqueId ) );\n}\n\nexport const DeprecatedExperimentalRecursionProvider = ( props ) => {\n\tdeprecated( 'wp.blockEditor.__experimentalRecursionProvider', {\n\t\tsince: '6.5',\n\t\talternative: 'wp.blockEditor.RecursionProvider',\n\t} );\n\treturn <RecursionProvider { ...props } />;\n};\n\nexport const DeprecatedExperimentalUseHasRecursion = ( ...args ) => {\n\tdeprecated( 'wp.blockEditor.__experimentalUseHasRecursion', {\n\t\tsince: '6.5',\n\t\talternative: 'wp.blockEditor.useHasRecursion',\n\t} );\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DAAgD;AAAA,IAC3D,OAAO;AAAA,IACP,aAAa;AAAA,EACd,CAAE;AACF,SAAO,gBAAiB,GAAG,IAAK;AACjC;",
|
|
6
6
|
"names": ["deprecated"]
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// packages/block-editor/src/components/resizable-box-popover/index.
|
|
30
|
+
// packages/block-editor/src/components/resizable-box-popover/index.jsx
|
|
31
31
|
var resizable_box_popover_exports = {};
|
|
32
32
|
__export(resizable_box_popover_exports, {
|
|
33
33
|
default: () => ResizableBoxPopover
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/resizable-box-popover/index.
|
|
3
|
+
"sources": ["../../../src/components/resizable-box-popover/index.jsx"],
|
|
4
4
|
"sourcesContent": ["import { ResizableBox } from '@wordpress/components';\nimport BlockPopoverCover from '../block-popover/cover';\n\nexport default function ResizableBoxPopover( {\n\tclientId,\n\tresizableBoxProps,\n\t...props\n} ) {\n\treturn (\n\t\t<BlockPopoverCover\n\t\t\tclientId={ clientId }\n\t\t\t__unstablePopoverSlot=\"block-toolbar\"\n\t\t\t{ ...props }\n\t\t>\n\t\t\t<ResizableBox { ...resizableBoxProps } />\n\t\t</BlockPopoverCover>\n\t);\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA6B;AAC7B,mBAA8B;AAa3B;AAXY,SAAR,oBAAsC;AAAA,EAC5C;AAAA,EACA;AAAA,EACA,GAAG;AACJ,GAAI;AACH,SACC;AAAA,IAAC,aAAAA;AAAA,IAAA;AAAA,MACA;AAAA,MACA,uBAAsB;AAAA,MACpB,GAAG;AAAA,MAEL,sDAAC,kCAAe,GAAG,mBAAoB;AAAA;AAAA,EACxC;AAEF;",
|
|
6
6
|
"names": ["BlockPopoverCover"]
|
|
@@ -17,7 +17,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
|
-
// packages/block-editor/src/components/resolution-tool/index.
|
|
20
|
+
// packages/block-editor/src/components/resolution-tool/index.jsx
|
|
21
21
|
var resolution_tool_exports = {};
|
|
22
22
|
__export(resolution_tool_exports, {
|
|
23
23
|
default: () => ResolutionTool
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/resolution-tool/index.
|
|
3
|
+
"sources": ["../../../src/components/resolution-tool/index.jsx"],
|
|
4
4
|
"sourcesContent": ["import {\n\tSelectControl,\n\t__experimentalToolsPanelItem as ToolsPanelItem,\n} from '@wordpress/components';\nimport { __, _x } from '@wordpress/i18n';\n\nconst DEFAULT_SIZE_OPTIONS = [\n\t{\n\t\tlabel: _x( 'Thumbnail', 'Image size option for resolution control' ),\n\t\tvalue: 'thumbnail',\n\t},\n\t{\n\t\tlabel: _x( 'Medium', 'Image size option for resolution control' ),\n\t\tvalue: 'medium',\n\t},\n\t{\n\t\tlabel: _x( 'Large', 'Image size option for resolution control' ),\n\t\tvalue: 'large',\n\t},\n\t{\n\t\tlabel: _x( 'Full Size', 'Image size option for resolution control' ),\n\t\tvalue: 'full',\n\t},\n];\n\nexport default function ResolutionTool( {\n\tpanelId,\n\tvalue,\n\tonChange,\n\toptions = DEFAULT_SIZE_OPTIONS,\n\tdefaultValue = DEFAULT_SIZE_OPTIONS[ 0 ].value,\n\tisShownByDefault = true,\n\tresetAllFilter,\n} ) {\n\tconst displayValue = value ?? defaultValue;\n\treturn (\n\t\t<ToolsPanelItem\n\t\t\thasValue={ () => displayValue !== defaultValue }\n\t\t\tlabel={ __( 'Resolution' ) }\n\t\t\tonDeselect={ () => onChange( defaultValue ) }\n\t\t\tisShownByDefault={ isShownByDefault }\n\t\t\tpanelId={ panelId }\n\t\t\tresetAllFilter={ resetAllFilter }\n\t\t>\n\t\t\t<SelectControl\n\t\t\t\tlabel={ __( 'Resolution' ) }\n\t\t\t\tvalue={ displayValue }\n\t\t\t\toptions={ options }\n\t\t\t\tonChange={ onChange }\n\t\t\t\thelp={ __( 'Select the size of the source image.' ) }\n\t\t\t/>\n\t\t</ToolsPanelItem>\n\t);\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAGO;AACP,kBAAuB;AAwCpB;AAtCH,IAAM,uBAAuB;AAAA,EAC5B;AAAA,IACC,WAAO,gBAAI,aAAa,0CAA2C;AAAA,IACnE,OAAO;AAAA,EACR;AAAA,EACA;AAAA,IACC,WAAO,gBAAI,UAAU,0CAA2C;AAAA,IAChE,OAAO;AAAA,EACR;AAAA,EACA;AAAA,IACC,WAAO,gBAAI,SAAS,0CAA2C;AAAA,IAC/D,OAAO;AAAA,EACR;AAAA,EACA;AAAA,IACC,WAAO,gBAAI,aAAa,0CAA2C;AAAA,IACnE,OAAO;AAAA,EACR;AACD;AAEe,SAAR,eAAiC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,eAAe,qBAAsB,CAAE,EAAE;AAAA,EACzC,mBAAmB;AAAA,EACnB;AACD,GAAI;AACH,QAAM,eAAe,SAAS;AAC9B,SACC;AAAA,IAAC,kBAAAA;AAAA,IAAA;AAAA,MACA,UAAW,MAAM,iBAAiB;AAAA,MAClC,WAAQ,gBAAI,YAAa;AAAA,MACzB,YAAa,MAAM,SAAU,YAAa;AAAA,MAC1C;AAAA,MACA;AAAA,MACA;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACA,WAAQ,gBAAI,YAAa;AAAA,UACzB,OAAQ;AAAA,UACR;AAAA,UACA;AAAA,UACA,UAAO,gBAAI,sCAAuC;AAAA;AAAA,MACnD;AAAA;AAAA,EACD;AAEF;",
|
|
6
6
|
"names": ["ToolsPanelItem"]
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// packages/block-editor/src/components/responsive-block-control/index.
|
|
30
|
+
// packages/block-editor/src/components/responsive-block-control/index.jsx
|
|
31
31
|
var responsive_block_control_exports = {};
|
|
32
32
|
__export(responsive_block_control_exports, {
|
|
33
33
|
default: () => responsive_block_control_default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/responsive-block-control/index.
|
|
3
|
+
"sources": ["../../../src/components/responsive-block-control/index.jsx"],
|
|
4
4
|
"sourcesContent": ["import clsx from 'clsx';\nimport { __, _x, sprintf } from '@wordpress/i18n';\nimport { Fragment } from '@wordpress/element';\nimport { ToggleControl } from '@wordpress/components';\nimport ResponsiveBlockControlLabel from './label';\n\nfunction ResponsiveBlockControl( props ) {\n\tconst {\n\t\ttitle,\n\t\tproperty,\n\t\ttoggleLabel,\n\t\tonIsResponsiveChange,\n\t\trenderDefaultControl,\n\t\trenderResponsiveControls,\n\t\tisResponsive = false,\n\t\tdefaultLabel = {\n\t\t\tid: 'all',\n\t\t\tlabel: _x( 'All', 'screen sizes' ),\n\t\t},\n\t\tviewports = [\n\t\t\t{\n\t\t\t\tid: 'small',\n\t\t\t\tlabel: __( 'Small screens' ),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: 'medium',\n\t\t\t\tlabel: __( 'Medium screens' ),\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: 'large',\n\t\t\t\tlabel: __( 'Large screens' ),\n\t\t\t},\n\t\t],\n\t} = props;\n\n\tif ( ! title || ! property || ! renderDefaultControl ) {\n\t\treturn null;\n\t}\n\n\tconst toggleControlLabel =\n\t\ttoggleLabel ||\n\t\tsprintf(\n\t\t\t/* translators: %s: Property value for the control (eg: margin, padding, etc.). */\n\t\t\t__( 'Use the same %s on all screen sizes.' ),\n\t\t\tproperty\n\t\t);\n\n\tconst toggleHelpText = __(\n\t\t'Choose whether to use the same value for all screen sizes or a unique value for each screen size.'\n\t);\n\n\tconst defaultControl = renderDefaultControl(\n\t\t<ResponsiveBlockControlLabel\n\t\t\tproperty={ property }\n\t\t\tviewport={ defaultLabel }\n\t\t/>,\n\t\tdefaultLabel\n\t);\n\n\tconst defaultResponsiveControls = () => {\n\t\treturn viewports.map( ( viewport ) => (\n\t\t\t<Fragment key={ viewport.id }>\n\t\t\t\t{ renderDefaultControl(\n\t\t\t\t\t<ResponsiveBlockControlLabel\n\t\t\t\t\t\tproperty={ property }\n\t\t\t\t\t\tviewport={ viewport }\n\t\t\t\t\t/>,\n\t\t\t\t\tviewport\n\t\t\t\t) }\n\t\t\t</Fragment>\n\t\t) );\n\t};\n\n\treturn (\n\t\t<fieldset className=\"block-editor-responsive-block-control\">\n\t\t\t<legend className=\"block-editor-responsive-block-control__title\">\n\t\t\t\t{ title }\n\t\t\t</legend>\n\n\t\t\t<div className=\"block-editor-responsive-block-control__inner\">\n\t\t\t\t<ToggleControl\n\t\t\t\t\tclassName=\"block-editor-responsive-block-control__toggle\"\n\t\t\t\t\tlabel={ toggleControlLabel }\n\t\t\t\t\tchecked={ ! isResponsive }\n\t\t\t\t\tonChange={ onIsResponsiveChange }\n\t\t\t\t\thelp={ toggleHelpText }\n\t\t\t\t/>\n\t\t\t\t<div\n\t\t\t\t\tclassName={ clsx(\n\t\t\t\t\t\t'block-editor-responsive-block-control__group',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'is-responsive': isResponsive,\n\t\t\t\t\t\t}\n\t\t\t\t\t) }\n\t\t\t\t>\n\t\t\t\t\t{ ! isResponsive && defaultControl }\n\t\t\t\t\t{ isResponsive &&\n\t\t\t\t\t\t( renderResponsiveControls\n\t\t\t\t\t\t\t? renderResponsiveControls( viewports )\n\t\t\t\t\t\t\t: defaultResponsiveControls() ) }\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</fieldset>\n\t);\n}\n\nexport default ResponsiveBlockControl;\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,kBAAgC;AAChC,qBAAyB;AACzB,wBAA8B;AAC9B,mBAAwC;AAgDtC;AA9CF,SAAS,uBAAwB,OAAQ;AACxC,QAAM;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf,eAAe;AAAA,MACd,IAAI;AAAA,MACJ,WAAO,gBAAI,OAAO,cAAe;AAAA,IAClC;AAAA,IACA,YAAY;AAAA,MACX;AAAA,QACC,IAAI;AAAA,QACJ,WAAO,gBAAI,eAAgB;AAAA,MAC5B;AAAA,MACA;AAAA,QACC,IAAI;AAAA,QACJ,WAAO,gBAAI,gBAAiB;AAAA,MAC7B;AAAA,MACA;AAAA,QACC,IAAI;AAAA,QACJ,WAAO,gBAAI,eAAgB;AAAA,MAC5B;AAAA,IACD;AAAA,EACD,IAAI;AAEJ,MAAK,CAAE,SAAS,CAAE,YAAY,CAAE,sBAAuB;AACtD,WAAO;AAAA,EACR;AAEA,QAAM,qBACL,mBACA;AAAA;AAAA,QAEC,gBAAI,sCAAuC;AAAA,IAC3C;AAAA,EACD;AAED,QAAM,qBAAiB;AAAA,IACtB;AAAA,EACD;AAEA,QAAM,iBAAiB;AAAA,IACtB;AAAA,MAAC,aAAAA;AAAA,MAAA;AAAA,QACA;AAAA,QACA,UAAW;AAAA;AAAA,IACZ;AAAA,IACA;AAAA,EACD;AAEA,QAAM,4BAA4B,MAAM;AACvC,WAAO,UAAU,IAAK,CAAE,aACvB,4CAAC,2BACE;AAAA,MACD;AAAA,QAAC,aAAAA;AAAA,QAAA;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACD;AAAA,MACA;AAAA,IACD,KAPe,SAAS,EAQzB,CACC;AAAA,EACH;AAEA,SACC,6CAAC,cAAS,WAAU,yCACnB;AAAA,gDAAC,YAAO,WAAU,gDACf,iBACH;AAAA,IAEA,6CAAC,SAAI,WAAU,gDACd;AAAA;AAAA,QAAC;AAAA;AAAA,UACA,WAAU;AAAA,UACV,OAAQ;AAAA,UACR,SAAU,CAAE;AAAA,UACZ,UAAW;AAAA,UACX,MAAO;AAAA;AAAA,MACR;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACA,eAAY,YAAAC;AAAA,YACX;AAAA,YACA;AAAA,cACC,iBAAiB;AAAA,YAClB;AAAA,UACD;AAAA,UAEE;AAAA,aAAE,gBAAgB;AAAA,YAClB,iBACC,2BACC,yBAA0B,SAAU,IACpC,0BAA0B;AAAA;AAAA;AAAA,MAC/B;AAAA,OACD;AAAA,KACD;AAEF;AAEA,IAAO,mCAAQ;",
|
|
6
6
|
"names": ["ResponsiveBlockControlLabel", "clsx"]
|
|
@@ -17,7 +17,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
|
-
// packages/block-editor/src/components/responsive-block-control/label.
|
|
20
|
+
// packages/block-editor/src/components/responsive-block-control/label.jsx
|
|
21
21
|
var label_exports = {};
|
|
22
22
|
__export(label_exports, {
|
|
23
23
|
default: () => ResponsiveBlockControlLabel
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/responsive-block-control/label.
|
|
3
|
+
"sources": ["../../../src/components/responsive-block-control/label.jsx"],
|
|
4
4
|
"sourcesContent": ["import { useInstanceId } from '@wordpress/compose';\nimport { VisuallyHidden } from '@wordpress/ui';\nimport { _x, sprintf } from '@wordpress/i18n';\n\nexport default function ResponsiveBlockControlLabel( {\n\tproperty,\n\tviewport,\n\tdesc,\n} ) {\n\tconst instanceId = useInstanceId( ResponsiveBlockControlLabel );\n\tconst accessibleLabel =\n\t\tdesc ||\n\t\tsprintf(\n\t\t\t/* translators: 1: property name. 2: viewport name. */\n\t\t\t_x(\n\t\t\t\t'Controls the %1$s property for %2$s viewports.',\n\t\t\t\t'Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size.'\n\t\t\t),\n\t\t\tproperty,\n\t\t\tviewport.label\n\t\t);\n\treturn (\n\t\t<>\n\t\t\t<span aria-describedby={ `rbc-desc-${ instanceId }` }>\n\t\t\t\t{ viewport.label }\n\t\t\t</span>\n\t\t\t<VisuallyHidden\n\t\t\t\tid={ `rbc-desc-${ instanceId }` }\n\t\t\t\trender={ <span /> }\n\t\t\t>\n\t\t\t\t{ accessibleLabel }\n\t\t\t</VisuallyHidden>\n\t\t</>\n\t);\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA8B;AAC9B,gBAA+B;AAC/B,kBAA4B;AAoB1B;AAlBa,SAAR,4BAA8C;AAAA,EACpD;AAAA,EACA;AAAA,EACA;AACD,GAAI;AACH,QAAM,iBAAa,8BAAe,2BAA4B;AAC9D,QAAM,kBACL,YACA;AAAA;AAAA,QAEC;AAAA,MACC;AAAA,MACA;AAAA,IACD;AAAA,IACA;AAAA,IACA,SAAS;AAAA,EACV;AACD,SACC,4EACC;AAAA,gDAAC,UAAK,oBAAmB,YAAa,UAAW,IAC9C,mBAAS,OACZ;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACA,IAAK,YAAa,UAAW;AAAA,QAC7B,QAAS,4CAAC,UAAK;AAAA,QAEb;AAAA;AAAA,IACH;AAAA,KACD;AAEF;",
|
|
6
6
|
"names": []
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// packages/block-editor/src/components/rich-text/content.
|
|
30
|
+
// packages/block-editor/src/components/rich-text/content.jsx
|
|
31
31
|
var content_exports = {};
|
|
32
32
|
__export(content_exports, {
|
|
33
33
|
Content: () => Content,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/rich-text/content.
|
|
3
|
+
"sources": ["../../../src/components/rich-text/content.jsx"],
|
|
4
4
|
"sourcesContent": ["import { RawHTML } from '@wordpress/element';\nimport { children as childrenSource } from '@wordpress/blocks';\nimport deprecated from '@wordpress/deprecated';\nimport RichText from './';\nimport { getMultilineTag } from './utils';\n\nexport function valueToHTMLString( value, multiline ) {\n\tif ( RichText.isEmpty( value ) ) {\n\t\tconst multilineTag = getMultilineTag( multiline );\n\t\treturn multilineTag ? `<${ multilineTag }></${ multilineTag }>` : '';\n\t}\n\n\tif ( Array.isArray( value ) ) {\n\t\tdeprecated( 'wp.blockEditor.RichText value prop as children type', {\n\t\t\tsince: '6.1',\n\t\t\tversion: '6.3',\n\t\t\talternative: 'value prop as string',\n\t\t\tlink: 'https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/',\n\t\t} );\n\t\treturn childrenSource.toHTML( value );\n\t}\n\n\t// To do: deprecate string type.\n\tif ( typeof value === 'string' ) {\n\t\treturn value;\n\t}\n\n\t// To do: create a toReactComponent method on RichTextData, which we\n\t// might in the future also use for the editable tree. See\n\t// https://github.com/WordPress/gutenberg/pull/41655.\n\treturn value.toHTMLString();\n}\n\nexport function Content( {\n\tvalue,\n\ttagName: Tag,\n\tmultiline,\n\tformat,\n\t...props\n} ) {\n\tvalue = <RawHTML>{ valueToHTMLString( value, multiline ) }</RawHTML>;\n\treturn Tag ? <Tag { ...props }>{ value }</Tag> : value;\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAwB;AACxB,oBAA2C;AAC3C,wBAAuB;AACvB,eAAqB;AACrB,mBAAgC;AAoCvB;AAlCF,SAAS,kBAAmB,OAAO,WAAY;AACrD,MAAK,SAAAA,QAAS,QAAS,KAAM,GAAI;AAChC,UAAM,mBAAe,8BAAiB,SAAU;AAChD,WAAO,eAAe,IAAK,YAAa,MAAO,YAAa,MAAM;AAAA,EACnE;AAEA,MAAK,MAAM,QAAS,KAAM,GAAI;AAC7B,0BAAAC,SAAY,uDAAuD;AAAA,MAClE,OAAO;AAAA,MACP,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM;AAAA,IACP,CAAE;AACF,WAAO,cAAAC,SAAe,OAAQ,KAAM;AAAA,EACrC;AAGA,MAAK,OAAO,UAAU,UAAW;AAChC,WAAO;AAAA,EACR;AAKA,SAAO,MAAM,aAAa;AAC3B;AAEO,SAAS,QAAS;AAAA,EACxB;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA;AAAA,EACA,GAAG;AACJ,GAAI;AACH,UAAQ,4CAAC,0BAAU,4BAAmB,OAAO,SAAU,GAAG;AAC1D,SAAO,MAAM,4CAAC,OAAM,GAAG,OAAU,iBAAO,IAAS;AAClD;",
|
|
6
6
|
"names": ["RichText", "deprecated", "childrenSource"]
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// packages/block-editor/src/components/rich-text/format-edit.
|
|
30
|
+
// packages/block-editor/src/components/rich-text/format-edit.jsx
|
|
31
31
|
var format_edit_exports = {};
|
|
32
32
|
__export(format_edit_exports, {
|
|
33
33
|
default: () => FormatEdit,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/rich-text/format-edit.
|
|
3
|
+
"sources": ["../../../src/components/rich-text/format-edit.jsx"],
|
|
4
4
|
"sourcesContent": ["import { getActiveFormat, getActiveObject } from '@wordpress/rich-text';\nimport { useContext, useMemo } from '@wordpress/element';\nimport BlockContext from '../block-context';\n\nconst DEFAULT_BLOCK_CONTEXT = {};\n\nexport const usesContextKey = Symbol( 'usesContext' );\n\nfunction Edit( {\n\tonChange,\n\tonFocus,\n\tvalue,\n\tforwardedRef,\n\tsettings,\n\tisVisible,\n} ) {\n\tconst {\n\t\tname,\n\t\tedit: EditFunction,\n\t\t[ usesContextKey ]: usesContext,\n\t} = settings;\n\n\tconst blockContext = useContext( BlockContext );\n\n\t// Assign context values using the block type's declared context needs.\n\tconst context = useMemo( () => {\n\t\treturn usesContext\n\t\t\t? Object.fromEntries(\n\t\t\t\t\tObject.entries( blockContext ).filter( ( [ key ] ) =>\n\t\t\t\t\t\tusesContext.includes( key )\n\t\t\t\t\t)\n\t\t\t )\n\t\t\t: DEFAULT_BLOCK_CONTEXT;\n\t}, [ usesContext, blockContext ] );\n\n\tif ( ! EditFunction ) {\n\t\treturn null;\n\t}\n\n\tconst activeFormat = getActiveFormat( value, name );\n\tconst isActive = activeFormat !== undefined;\n\tconst activeObject = getActiveObject( value );\n\tconst isObjectActive =\n\t\tactiveObject !== undefined && activeObject.type === name;\n\n\treturn (\n\t\t<EditFunction\n\t\t\tkey={ name }\n\t\t\tisActive={ isActive }\n\t\t\tisVisible={ isVisible }\n\t\t\tactiveAttributes={ isActive ? activeFormat.attributes || {} : {} }\n\t\t\tisObjectActive={ isObjectActive }\n\t\t\tactiveObjectAttributes={\n\t\t\t\tisObjectActive ? activeObject.attributes || {} : {}\n\t\t\t}\n\t\t\tvalue={ value }\n\t\t\tonChange={ onChange }\n\t\t\tonFocus={ onFocus }\n\t\t\tcontentRef={ forwardedRef }\n\t\t\tcontext={ context }\n\t\t/>\n\t);\n}\n\nexport default function FormatEdit( { formatTypes, ...props } ) {\n\treturn formatTypes.map( ( settings ) => (\n\t\t<Edit settings={ settings } { ...props } key={ settings.name } />\n\t) );\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAiD;AACjD,qBAAoC;AACpC,2BAAyB;AA4CvB;AAoBA;AA9DF,IAAM,wBAAwB,CAAC;AAExB,IAAM,iBAAiB,uBAAQ,aAAc;AAEpD,SAAS,KAAM;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAAI;AACH,QAAM;AAAA,IACL;AAAA,IACA,MAAM;AAAA,IACN,CAAE,cAAe,GAAG;AAAA,EACrB,IAAI;AAEJ,QAAM,mBAAe,2BAAY,qBAAAA,OAAa;AAG9C,QAAM,cAAU,wBAAS,MAAM;AAC9B,WAAO,cACJ,OAAO;AAAA,MACP,OAAO,QAAS,YAAa,EAAE;AAAA,QAAQ,CAAE,CAAE,GAAI,MAC9C,YAAY,SAAU,GAAI;AAAA,MAC3B;AAAA,IACA,IACA;AAAA,EACJ,GAAG,CAAE,aAAa,YAAa,CAAE;AAEjC,MAAK,CAAE,cAAe;AACrB,WAAO;AAAA,EACR;AAEA,QAAM,mBAAe,kCAAiB,OAAO,IAAK;AAClD,QAAM,WAAW,iBAAiB;AAClC,QAAM,mBAAe,kCAAiB,KAAM;AAC5C,QAAM,iBACL,iBAAiB,UAAa,aAAa,SAAS;AAErD,SACC;AAAA,IAAC;AAAA;AAAA,MAEA;AAAA,MACA;AAAA,MACA,kBAAmB,WAAW,aAAa,cAAc,CAAC,IAAI,CAAC;AAAA,MAC/D;AAAA,MACA,wBACC,iBAAiB,aAAa,cAAc,CAAC,IAAI,CAAC;AAAA,MAEnD;AAAA,MACA;AAAA,MACA;AAAA,MACA,YAAa;AAAA,MACb;AAAA;AAAA,IAZM;AAAA,EAaP;AAEF;AAEe,SAAR,WAA6B,EAAE,aAAa,GAAG,MAAM,GAAI;AAC/D,SAAO,YAAY,IAAK,CAAE,aACzB,gDAAC,QAAK,UAAwB,GAAG,OAAQ,KAAM,SAAS,MAAO,CAC9D;AACH;",
|
|
6
6
|
"names": ["BlockContext"]
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// packages/block-editor/src/components/rich-text/format-toolbar/index.
|
|
30
|
+
// packages/block-editor/src/components/rich-text/format-toolbar/index.jsx
|
|
31
31
|
var format_toolbar_exports = {};
|
|
32
32
|
__export(format_toolbar_exports, {
|
|
33
33
|
default: () => format_toolbar_default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/rich-text/format-toolbar/index.
|
|
3
|
+
"sources": ["../../../../src/components/rich-text/format-toolbar/index.jsx"],
|
|
4
4
|
"sourcesContent": ["import clsx from 'clsx';\nimport { __ } from '@wordpress/i18n';\nimport { ToolbarItem, DropdownMenu, Slot } from '@wordpress/components';\nimport { chevronDown } from '@wordpress/icons';\nimport { orderBy } from '../../../utils/sorting';\n\nconst POPOVER_PROPS = {\n\tplacement: 'bottom-start',\n};\n\nconst FormatToolbar = () => {\n\treturn (\n\t\t<>\n\t\t\t{ [ 'bold', 'italic', 'link', 'unknown' ].map( ( format ) => (\n\t\t\t\t<Slot\n\t\t\t\t\tname={ `RichText.ToolbarControls.${ format }` }\n\t\t\t\t\tkey={ format }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t\t<Slot name=\"RichText.ToolbarControls\">\n\t\t\t\t{ ( fills ) => {\n\t\t\t\t\tif ( ! fills.length ) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst allProps = fills.map( ( [ { props } ] ) => props );\n\t\t\t\t\tconst hasActive = allProps.some(\n\t\t\t\t\t\t( { isActive } ) => isActive\n\t\t\t\t\t);\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<ToolbarItem>\n\t\t\t\t\t\t\t{ ( toggleProps ) => (\n\t\t\t\t\t\t\t\t<DropdownMenu\n\t\t\t\t\t\t\t\t\ticon={ chevronDown }\n\t\t\t\t\t\t\t\t\t/* translators: button label text should, if possible, be under 16 characters. */\n\t\t\t\t\t\t\t\t\tlabel={ __( 'More' ) }\n\t\t\t\t\t\t\t\t\ttoggleProps={ {\n\t\t\t\t\t\t\t\t\t\t...toggleProps,\n\t\t\t\t\t\t\t\t\t\tclassName: clsx(\n\t\t\t\t\t\t\t\t\t\t\ttoggleProps.className,\n\t\t\t\t\t\t\t\t\t\t\t{ 'is-pressed': hasActive }\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\tdescription: __(\n\t\t\t\t\t\t\t\t\t\t\t'Displays more block tools'\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\tcontrols={ orderBy(\n\t\t\t\t\t\t\t\t\t\tfills.map( ( [ { props } ] ) => props ),\n\t\t\t\t\t\t\t\t\t\t'title'\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\tpopoverProps={ POPOVER_PROPS }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t</ToolbarItem>\n\t\t\t\t\t);\n\t\t\t\t} }\n\t\t\t</Slot>\n\t\t</>\n\t);\n};\n\nexport default FormatToolbar;\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,kBAAmB;AACnB,wBAAgD;AAChD,mBAA4B;AAC5B,qBAAwB;AAQtB;AANF,IAAM,gBAAgB;AAAA,EACrB,WAAW;AACZ;AAEA,IAAM,gBAAgB,MAAM;AAC3B,SACC,4EACG;AAAA,KAAE,QAAQ,UAAU,QAAQ,SAAU,EAAE,IAAK,CAAE,WAChD;AAAA,MAAC;AAAA;AAAA,QACA,MAAO,4BAA6B,MAAO;AAAA;AAAA,MACrC;AAAA,IACP,CACC;AAAA,IACF,4CAAC,0BAAK,MAAK,4BACR,WAAE,UAAW;AACd,UAAK,CAAE,MAAM,QAAS;AACrB,eAAO;AAAA,MACR;AAEA,YAAM,WAAW,MAAM,IAAK,CAAE,CAAE,EAAE,MAAM,CAAE,MAAO,KAAM;AACvD,YAAM,YAAY,SAAS;AAAA,QAC1B,CAAE,EAAE,SAAS,MAAO;AAAA,MACrB;AAEA,aACC,4CAAC,iCACE,WAAE,gBACH;AAAA,QAAC;AAAA;AAAA,UACA,MAAO;AAAA,UAEP,WAAQ,gBAAI,MAAO;AAAA,UACnB,aAAc;AAAA,YACb,GAAG;AAAA,YACH,eAAW,YAAAA;AAAA,cACV,YAAY;AAAA,cACZ,EAAE,cAAc,UAAU;AAAA,YAC3B;AAAA,YACA,iBAAa;AAAA,cACZ;AAAA,YACD;AAAA,UACD;AAAA,UACA,cAAW;AAAA,YACV,MAAM,IAAK,CAAE,CAAE,EAAE,MAAM,CAAE,MAAO,KAAM;AAAA,YACtC;AAAA,UACD;AAAA,UACA,cAAe;AAAA;AAAA,MAChB,GAEF;AAAA,IAEF,GACD;AAAA,KACD;AAEF;AAEA,IAAO,yBAAQ;",
|
|
6
6
|
"names": ["clsx"]
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// packages/block-editor/src/components/rich-text/format-toolbar-container.
|
|
30
|
+
// packages/block-editor/src/components/rich-text/format-toolbar-container.jsx
|
|
31
31
|
var format_toolbar_container_exports = {};
|
|
32
32
|
__export(format_toolbar_container_exports, {
|
|
33
33
|
default: () => format_toolbar_container_default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/rich-text/format-toolbar-container.
|
|
3
|
+
"sources": ["../../../src/components/rich-text/format-toolbar-container.jsx"],
|
|
4
4
|
"sourcesContent": ["import { __ } from '@wordpress/i18n';\nimport { Popover, ToolbarGroup } from '@wordpress/components';\nimport BlockControls from '../block-controls';\nimport FormatToolbar from './format-toolbar';\nimport NavigableToolbar from '../navigable-toolbar';\n\nfunction InlineToolbar( { popoverAnchor } ) {\n\treturn (\n\t\t<Popover\n\t\t\tplacement=\"top\"\n\t\t\tfocusOnMount={ false }\n\t\t\tanchor={ popoverAnchor }\n\t\t\tclassName=\"block-editor-rich-text__inline-format-toolbar\"\n\t\t\t__unstableSlotName=\"block-toolbar\"\n\t\t>\n\t\t\t<NavigableToolbar\n\t\t\t\tclassName=\"block-editor-rich-text__inline-format-toolbar-group\"\n\t\t\t\t/* translators: accessibility text for the inline format toolbar */\n\t\t\t\taria-label={ __( 'Format tools' ) }\n\t\t\t>\n\t\t\t\t<ToolbarGroup>\n\t\t\t\t\t<FormatToolbar />\n\t\t\t\t</ToolbarGroup>\n\t\t\t</NavigableToolbar>\n\t\t</Popover>\n\t);\n}\n\nconst FormatToolbarContainer = ( { inline, editableContentElement } ) => {\n\tif ( inline ) {\n\t\treturn <InlineToolbar popoverAnchor={ editableContentElement } />;\n\t}\n\n\t// Render regular toolbar.\n\treturn (\n\t\t<BlockControls group=\"inline\">\n\t\t\t<FormatToolbar />\n\t\t</BlockControls>\n\t);\n};\n\nexport default FormatToolbarContainer;\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAmB;AACnB,wBAAsC;AACtC,4BAA0B;AAC1B,4BAA0B;AAC1B,+BAA6B;AAiBxB;AAfL,SAAS,cAAe,EAAE,cAAc,GAAI;AAC3C,SACC;AAAA,IAAC;AAAA;AAAA,MACA,WAAU;AAAA,MACV,cAAe;AAAA,MACf,QAAS;AAAA,MACT,WAAU;AAAA,MACV,oBAAmB;AAAA,MAEnB;AAAA,QAAC,yBAAAA;AAAA,QAAA;AAAA,UACA,WAAU;AAAA,UAEV,kBAAa,gBAAI,cAAe;AAAA,UAEhC,sDAAC,kCACA,sDAAC,sBAAAC,SAAA,EAAc,GAChB;AAAA;AAAA,MACD;AAAA;AAAA,EACD;AAEF;AAEA,IAAM,yBAAyB,CAAE,EAAE,QAAQ,uBAAuB,MAAO;AACxE,MAAK,QAAS;AACb,WAAO,4CAAC,iBAAc,eAAgB,wBAAyB;AAAA,EAChE;AAGA,SACC,4CAAC,sBAAAC,SAAA,EAAc,OAAM,UACpB,sDAAC,sBAAAD,SAAA,EAAc,GAChB;AAEF;AAEA,IAAO,mCAAQ;",
|
|
6
6
|
"names": ["NavigableToolbar", "FormatToolbar", "BlockControls"]
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// packages/block-editor/src/components/rich-text/get-rich-text-values.
|
|
30
|
+
// packages/block-editor/src/components/rich-text/get-rich-text-values.jsx
|
|
31
31
|
var get_rich_text_values_exports = {};
|
|
32
32
|
__export(get_rich_text_values_exports, {
|
|
33
33
|
getRichTextValues: () => getRichTextValues
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/rich-text/get-rich-text-values.
|
|
3
|
+
"sources": ["../../../src/components/rich-text/get-rich-text-values.jsx"],
|
|
4
4
|
"sourcesContent": ["import { RawHTML, StrictMode, Fragment } from '@wordpress/element';\nimport {\n\tgetSaveElement,\n\t__unstableGetBlockProps as getBlockProps,\n} from '@wordpress/blocks';\nimport { RichTextData } from '@wordpress/rich-text';\nimport InnerBlocks from '../inner-blocks';\nimport { Content } from './content';\n\n/*\n * This function is similar to `@wordpress/element`'s `renderToString` function,\n * except that it does not render the elements to a string, but instead collects\n * the values of all rich text `Content` elements.\n */\nfunction addValuesForElement( element, values, innerBlocks ) {\n\tif ( null === element || undefined === element || false === element ) {\n\t\treturn;\n\t}\n\n\tif ( Array.isArray( element ) ) {\n\t\treturn addValuesForElements( element, values, innerBlocks );\n\t}\n\n\tswitch ( typeof element ) {\n\t\tcase 'string':\n\t\tcase 'number':\n\t\t\treturn;\n\t}\n\n\tconst { type, props } = element;\n\n\tswitch ( type ) {\n\t\tcase StrictMode:\n\t\tcase Fragment:\n\t\t\treturn addValuesForElements( props.children, values, innerBlocks );\n\t\tcase RawHTML:\n\t\t\treturn;\n\t\tcase InnerBlocks.Content:\n\t\t\treturn addValuesForBlocks( values, innerBlocks );\n\t\tcase Content:\n\t\t\tvalues.push( props.value );\n\t\t\treturn;\n\t}\n\n\tswitch ( typeof type ) {\n\t\tcase 'string':\n\t\t\tif ( typeof props.children !== 'undefined' ) {\n\t\t\t\treturn addValuesForElements(\n\t\t\t\t\tprops.children,\n\t\t\t\t\tvalues,\n\t\t\t\t\tinnerBlocks\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn;\n\t\tcase 'function':\n\t\t\tconst el =\n\t\t\t\ttype.prototype && typeof type.prototype.render === 'function'\n\t\t\t\t\t? new type( props ).render()\n\t\t\t\t\t: type( props );\n\t\t\treturn addValuesForElement( el, values, innerBlocks );\n\t}\n}\n\nfunction addValuesForElements( children, ...args ) {\n\tchildren = Array.isArray( children ) ? children : [ children ];\n\n\tfor ( let i = 0; i < children.length; i++ ) {\n\t\taddValuesForElement( children[ i ], ...args );\n\t}\n}\n\nfunction addValuesForBlocks( values, blocks ) {\n\tfor ( let i = 0; i < blocks.length; i++ ) {\n\t\tconst { name, attributes, innerBlocks } = blocks[ i ];\n\t\tconst saveElement = getSaveElement(\n\t\t\tname,\n\t\t\tattributes,\n\t\t\t// Instead of letting save elements use `useInnerBlocksProps.save`,\n\t\t\t// force them to use InnerBlocks.Content instead so we can intercept\n\t\t\t// a single component.\n\t\t\t<InnerBlocks.Content />\n\t\t);\n\t\taddValuesForElement( saveElement, values, innerBlocks );\n\t}\n}\n\nexport function getRichTextValues( blocks = [] ) {\n\tgetBlockProps.skipFilters = true;\n\tconst values = [];\n\taddValuesForBlocks( values, blocks );\n\tgetBlockProps.skipFilters = false;\n\treturn values.map( ( value ) =>\n\t\tvalue instanceof RichTextData\n\t\t\t? value\n\t\t\t: RichTextData.fromHTMLString( value )\n\t);\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA8C;AAC9C,oBAGO;AACP,uBAA6B;AAC7B,0BAAwB;AACxB,qBAAwB;AAyErB;AAAA;AAAA;AAAA;AAAA;AAAA;AAlEH,SAAS,oBAAqB,SAAS,QAAQ,aAAc;AAC5D,MAAK,SAAS,WAAW,WAAc,WAAW,UAAU,SAAU;AACrE;AAAA,EACD;AAEA,MAAK,MAAM,QAAS,OAAQ,GAAI;AAC/B,WAAO,qBAAsB,SAAS,QAAQ,WAAY;AAAA,EAC3D;AAEA,UAAS,OAAO,SAAU;AAAA,IACzB,KAAK;AAAA,IACL,KAAK;AACJ;AAAA,EACF;AAEA,QAAM,EAAE,MAAM,MAAM,IAAI;AAExB,UAAS,MAAO;AAAA,IACf,KAAK;AAAA,IACL,KAAK;AACJ,aAAO,qBAAsB,MAAM,UAAU,QAAQ,WAAY;AAAA,IAClE,KAAK;AACJ;AAAA,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BlockProps"]
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// packages/block-editor/src/components/rich-text/index.
|
|
30
|
+
// packages/block-editor/src/components/rich-text/index.jsx
|
|
31
31
|
var rich_text_exports = {};
|
|
32
32
|
__export(rich_text_exports, {
|
|
33
33
|
PrivateRichText: () => PrivateRichText,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/rich-text/index.
|
|
3
|
+
"sources": ["../../../src/components/rich-text/index.jsx"],
|
|
4
4
|
"sourcesContent": ["import clsx from 'clsx';\nimport fastDeepEqual from 'fast-deep-equal/es6/index.js';\nimport {\n\tuseRef,\n\tuseState,\n\tuseCallback,\n\tuseEffect,\n\tuseMemo,\n\tforwardRef,\n\tuseContext,\n} from '@wordpress/element';\nimport { useDispatch, useRegistry, useSelect } from '@wordpress/data';\nimport { useMergeRefs, useInstanceId } from '@wordpress/compose';\nimport { privateApis as richTextPrivateApis } from '@wordpress/rich-text';\nimport { Popover } from '@wordpress/components';\nimport { getBlockBindingsSource } from '@wordpress/blocks';\nimport deprecated from '@wordpress/deprecated';\nimport { __, sprintf } from '@wordpress/i18n';\nimport { useBlockEditorAutocompleteProps } from '../autocomplete';\nimport { useBlockEditContext } from '../block-edit';\nimport {\n\tblockBindingsKey,\n\tblockEditingModeKey,\n\tisPreviewModeKey,\n} from '../block-edit/context';\nimport FormatToolbarContainer from './format-toolbar-container';\nimport { store as blockEditorStore } from '../../store';\nimport { useMarkPersistent } from './use-mark-persistent';\nimport { useEventListeners } from './event-listeners';\nimport FormatEdit from './format-edit';\nimport { getAllowedFormats } from './utils';\nimport { Content, valueToHTMLString } from './content';\nimport { withDeprecations } from './with-deprecations';\nimport BlockContext from '../block-context';\nimport { unlock } from '../../lock-unlock';\nimport { PrivateBlockContext } from '../block-list/private-block-context';\n\n// `RichTextShortcut` and `RichTextInputEvent` now live in\n// `@wordpress/rich-text` so they share the shortcut and input-event contexts\n// with standalone rich text fields. Re-exported below for back-compat (e.g.\n// `@wordpress/format-library` imports them from `@wordpress/block-editor`).\nconst {\n\tuseRichText,\n\tKeyboardShortcutContext,\n\tInputEventContext,\n\tRichTextShortcut,\n\tRichTextInputEvent,\n} = unlock( richTextPrivateApis );\n\nconst instanceIdKey = Symbol( 'instanceId' );\n\nfunction RichTextWrapper(\n\t{\n\t\tchildren,\n\t\ttagName = 'div',\n\t\tvalue: adjustedValue = '',\n\t\tonChange: adjustedOnChange,\n\t\tisSelected: originalIsSelected,\n\t\tmultiline,\n\t\tinlineToolbar,\n\t\twrapperClassName,\n\t\tautocompleters,\n\t\tonReplace,\n\t\tplaceholder,\n\t\tallowedFormats,\n\t\twithoutInteractiveFormatting,\n\t\tonRemove,\n\t\tonMerge,\n\t\tonSplit,\n\t\t__unstableOnSplitAtEnd: onSplitAtEnd,\n\t\t__unstableOnSplitAtDoubleLineEnd: onSplitAtDoubleLineEnd,\n\t\tidentifier,\n\t\tpreserveWhiteSpace,\n\t\t__unstablePastePlainText: pastePlainText,\n\t\t__unstableEmbedURLOnPaste,\n\t\t__unstableDisableFormats: disableFormats,\n\t\tdisableLineBreaks,\n\t\t__unstableAllowPrefixTransformations,\n\t\treadOnly,\n\t\t...props\n\t},\n\tforwardedRef\n) {\n\tif ( onSplit ) {\n\t\tdeprecated( 'wp.blockEditor.RichText onSplit prop', {\n\t\t\tsince: '6.4',\n\t\t\talternative: 'block.json support key: \"splitting\"',\n\t\t} );\n\t}\n\n\tconst { supportsSplitting } = useContext( PrivateBlockContext );\n\tconst instanceId = useInstanceId( RichTextWrapper );\n\tconst anchorRef = useRef();\n\tconst [ anchorElement, setAnchorElement ] = useState( null );\n\tconst context = useBlockEditContext();\n\tconst { clientId, isSelected: isBlockSelected, name: blockName } = context;\n\tconst blockBindings = context[ blockBindingsKey ];\n\tconst hasDefaultEditingMode = context[ blockEditingModeKey ] === 'default';\n\tconst blockContext = useContext( BlockContext );\n\tconst registry = useRegistry();\n\tconst selector = ( select ) => {\n\t\t// Avoid subscribing to the block editor store if the block is not\n\t\t// selected.\n\t\tif ( ! isBlockSelected ) {\n\t\t\treturn { isSelected: false };\n\t\t}\n\n\t\tconst { getSelectionStart, getSelectionEnd } =\n\t\t\tselect( blockEditorStore );\n\t\tconst selectionStart = getSelectionStart();\n\t\tconst selectionEnd = getSelectionEnd();\n\n\t\tlet isSelected;\n\n\t\tif ( originalIsSelected === undefined ) {\n\t\t\tisSelected =\n\t\t\t\tselectionStart.clientId === clientId &&\n\t\t\t\tselectionEnd.clientId === clientId &&\n\t\t\t\t( identifier\n\t\t\t\t\t? selectionStart.attributeKey === identifier\n\t\t\t\t\t: selectionStart[ instanceIdKey ] === instanceId );\n\t\t} else if ( originalIsSelected ) {\n\t\t\tisSelected = selectionStart.clientId === clientId;\n\t\t}\n\n\t\treturn {\n\t\t\tselectionStart: isSelected ? selectionStart.offset : undefined,\n\t\t\tselectionEnd: isSelected ? selectionEnd.offset : undefined,\n\t\t\tisSelected,\n\t\t};\n\t};\n\tconst { selectionStart, selectionEnd, isSelected } = useSelect( selector, [\n\t\tclientId,\n\t\tidentifier,\n\t\tinstanceId,\n\t\toriginalIsSelected,\n\t\tisBlockSelected,\n\t] );\n\n\tconst { disableBoundBlock, bindingsPlaceholder, bindingsLabel } = useSelect(\n\t\t( select ) => {\n\t\t\tif ( ! blockBindings?.[ identifier ] ) {\n\t\t\t\treturn {};\n\t\t\t}\n\n\t\t\tconst { __experimentalBlockBindingsSupportedAttributes } =\n\t\t\t\tselect( blockEditorStore ).getSettings();\n\n\t\t\tconst bindableAttributes =\n\t\t\t\t__experimentalBlockBindingsSupportedAttributes?.[ blockName ];\n\n\t\t\tif ( ! bindableAttributes ) {\n\t\t\t\treturn {};\n\t\t\t}\n\n\t\t\tconst relatedBinding = blockBindings[ identifier ];\n\t\t\tconst blockBindingsSource = getBlockBindingsSource(\n\t\t\t\trelatedBinding.source\n\t\t\t);\n\t\t\tconst blockBindingsContext = {};\n\t\t\tif ( blockBindingsSource?.usesContext?.length ) {\n\t\t\t\tfor ( const key of blockBindingsSource.usesContext ) {\n\t\t\t\t\tblockBindingsContext[ key ] = blockContext[ key ];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst _disableBoundBlock =\n\t\t\t\t! blockBindingsSource?.canUserEditValue?.( {\n\t\t\t\t\tselect,\n\t\t\t\t\tcontext: blockBindingsContext,\n\t\t\t\t\targs: relatedBinding.args,\n\t\t\t\t} );\n\n\t\t\t// Don't modify placeholders if value is not empty.\n\t\t\tif ( adjustedValue.length > 0 ) {\n\t\t\t\treturn {\n\t\t\t\t\tdisableBoundBlock: _disableBoundBlock,\n\t\t\t\t\t// Null values will make them fall back to the default behavior.\n\t\t\t\t\tbindingsPlaceholder: null,\n\t\t\t\t\tbindingsLabel: null,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tconst { getBlockAttributes } = select( blockEditorStore );\n\t\t\tconst blockAttributes = getBlockAttributes( clientId );\n\t\t\tlet clientSideFieldLabel = null;\n\t\t\tif ( blockBindingsSource?.getFieldsList ) {\n\t\t\t\tconst fieldsItems = blockBindingsSource.getFieldsList( {\n\t\t\t\t\tselect,\n\t\t\t\t\tcontext: blockBindingsContext,\n\t\t\t\t} );\n\t\t\t\tclientSideFieldLabel = fieldsItems?.find( ( item ) =>\n\t\t\t\t\tfastDeepEqual( item.args, relatedBinding?.args )\n\t\t\t\t)?.label;\n\t\t\t}\n\n\t\t\tconst bindingKey =\n\t\t\t\tclientSideFieldLabel ?? blockBindingsSource?.label;\n\n\t\t\tconst _bindingsPlaceholder = _disableBoundBlock\n\t\t\t\t? bindingKey\n\t\t\t\t: sprintf(\n\t\t\t\t\t\t/* translators: %s: connected field label or source label */\n\t\t\t\t\t\t__( 'Add %s' ),\n\t\t\t\t\t\tbindingKey\n\t\t\t\t );\n\t\t\tconst _bindingsLabel = _disableBoundBlock\n\t\t\t\t? relatedBinding?.args?.key || blockBindingsSource?.label\n\t\t\t\t: sprintf(\n\t\t\t\t\t\t/* translators: %s: source label or key */\n\t\t\t\t\t\t__( 'Empty %s; start writing to edit its value' ),\n\t\t\t\t\t\trelatedBinding?.args?.key || blockBindingsSource?.label\n\t\t\t\t );\n\n\t\t\treturn {\n\t\t\t\tdisableBoundBlock: _disableBoundBlock,\n\t\t\t\tbindingsPlaceholder:\n\t\t\t\t\tblockAttributes?.placeholder || _bindingsPlaceholder,\n\t\t\t\tbindingsLabel: _bindingsLabel,\n\t\t\t};\n\t\t},\n\t\t[\n\t\t\tblockBindings,\n\t\t\tidentifier,\n\t\t\tblockName,\n\t\t\tadjustedValue,\n\t\t\tclientId,\n\t\t\tblockContext,\n\t\t]\n\t);\n\tconst isInsidePatternOverrides = !! blockContext?.[ 'pattern/overrides' ];\n\tconst hasOverrideEnabled =\n\t\tblockBindings?.__default?.source === 'core/pattern-overrides';\n\n\tconst shouldDisableForPattern =\n\t\tisInsidePatternOverrides && ! hasOverrideEnabled;\n\n\tconst shouldDisableEditing =\n\t\treadOnly || disableBoundBlock || shouldDisableForPattern;\n\n\t// Whether the wrapper is the editing host, which depends on the selected\n\t// block, not necessarily this one. Only the selected, default-mode block\n\t// can be it, so others skip the subscription entirely.\n\tconst isEditingHost = useSelect(\n\t\t( select ) => {\n\t\t\tif (\n\t\t\t\tshouldDisableEditing ||\n\t\t\t\t! hasDefaultEditingMode ||\n\t\t\t\t! isBlockSelected\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tconst { getSelectedBlockClientId, canHostEditableRoot } = unlock(\n\t\t\t\tselect( blockEditorStore )\n\t\t\t);\n\t\t\treturn canHostEditableRoot( getSelectedBlockClientId() );\n\t\t},\n\t\t[ shouldDisableEditing, hasDefaultEditingMode, isBlockSelected ]\n\t);\n\n\tconst { getSelectionStart, getSelectionEnd, getBlockRootClientId } =\n\t\tuseSelect( blockEditorStore );\n\tconst { selectionChange } = useDispatch( blockEditorStore );\n\tconst adjustedAllowedFormats = getAllowedFormats( {\n\t\tallowedFormats,\n\t\tdisableFormats,\n\t} );\n\tconst hasFormats =\n\t\t! adjustedAllowedFormats || adjustedAllowedFormats.length > 0;\n\n\tconst onSelectionChange = useCallback(\n\t\t( start, end ) => {\n\t\t\tconst selection = {};\n\t\t\tconst unset = start === undefined && end === undefined;\n\n\t\t\tconst baseSelection = {\n\t\t\t\tclientId,\n\t\t\t\t[ identifier ? 'attributeKey' : instanceIdKey ]: identifier\n\t\t\t\t\t? identifier\n\t\t\t\t\t: instanceId,\n\t\t\t};\n\n\t\t\tif ( typeof start === 'number' || unset ) {\n\t\t\t\t// If we are only setting the start (or the end below), which\n\t\t\t\t// means a partial selection, and we're not updating a selection\n\t\t\t\t// with the same client ID, abort. This means the selected block\n\t\t\t\t// is a parent block.\n\t\t\t\tif (\n\t\t\t\t\tend === undefined &&\n\t\t\t\t\tgetBlockRootClientId( clientId ) !==\n\t\t\t\t\t\tgetBlockRootClientId( getSelectionEnd().clientId )\n\t\t\t\t) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tselection.start = {\n\t\t\t\t\t...baseSelection,\n\t\t\t\t\toffset: start,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif ( typeof end === 'number' || unset ) {\n\t\t\t\tif (\n\t\t\t\t\tstart === undefined &&\n\t\t\t\t\tgetBlockRootClientId( clientId ) !==\n\t\t\t\t\t\tgetBlockRootClientId( getSelectionStart().clientId )\n\t\t\t\t) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tselection.end = {\n\t\t\t\t\t...baseSelection,\n\t\t\t\t\toffset: end,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tselectionChange( selection );\n\t\t},\n\t\t[\n\t\t\tclientId,\n\t\t\tgetBlockRootClientId,\n\t\t\tgetSelectionEnd,\n\t\t\tgetSelectionStart,\n\t\t\tidentifier,\n\t\t\tinstanceId,\n\t\t\tselectionChange,\n\t\t]\n\t);\n\n\tconst {\n\t\tvalue,\n\t\tgetValue,\n\t\tonChange,\n\t\tref: richTextRef,\n\t\tformatTypes,\n\t} = useRichText( {\n\t\tvalue: adjustedValue,\n\t\tonChange: adjustedOnChange,\n\t\tselectionStart,\n\t\tselectionEnd,\n\t\tonSelectionChange,\n\t\tplaceholder: bindingsPlaceholder || placeholder,\n\t\t__unstableIsSelected: isSelected,\n\t\t__unstableDisableFormats: disableFormats,\n\t\tpreserveWhiteSpace,\n\t\t__unstableDependencies: [ tagName ],\n\t\tallowedFormats: adjustedAllowedFormats,\n\t\twithoutInteractiveFormatting,\n\t\t__unstableFormatTypeHandlerContext: useMemo(\n\t\t\t() => ( {\n\t\t\t\trichTextIdentifier: identifier,\n\t\t\t\tblockClientId: clientId,\n\t\t\t} ),\n\t\t\t[ identifier, clientId ]\n\t\t),\n\t} );\n\tconst autocompleteProps = useBlockEditorAutocompleteProps( {\n\t\tonReplace,\n\t\tcompleters: autocompleters,\n\t\trecord: value,\n\t\tonChange,\n\t} );\n\n\t// While a focused editing host owns the selection (the block supports\n\t// `editableRoot`), ARIA attributes describing the autocomplete state must\n\t// be mirrored onto the host: assistive technology resolves them relative\n\t// to the focused element.\n\tconst {\n\t\t'aria-autocomplete': ariaAutocomplete,\n\t\t'aria-haspopup': ariaHasPopup,\n\t\t'aria-controls': ariaControls,\n\t\t'aria-owns': ariaOwns,\n\t\t'aria-activedescendant': ariaActiveDescendant,\n\t} = autocompleteProps;\n\tuseEffect( () => {\n\t\tif ( ! isSelected ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst host = anchorRef.current?.parentElement?.closest(\n\t\t\t'[contenteditable=\"true\"]'\n\t\t);\n\n\t\tif ( ! host ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst attributes = {\n\t\t\t'aria-autocomplete': ariaAutocomplete,\n\t\t\t'aria-haspopup': ariaHasPopup,\n\t\t\t'aria-controls': ariaControls,\n\t\t\t'aria-owns': ariaOwns,\n\t\t\t'aria-activedescendant': ariaActiveDescendant,\n\t\t};\n\n\t\tfor ( const [ key, value_ ] of Object.entries( attributes ) ) {\n\t\t\tif ( value_ === undefined ) {\n\t\t\t\thost.removeAttribute( key );\n\t\t\t} else {\n\t\t\t\thost.setAttribute( key, value_ );\n\t\t\t}\n\t\t}\n\n\t\treturn () => {\n\t\t\tfor ( const key of Object.keys( attributes ) ) {\n\t\t\t\thost.removeAttribute( key );\n\t\t\t}\n\t\t};\n\t}, [\n\t\tisSelected,\n\t\tariaAutocomplete,\n\t\tariaHasPopup,\n\t\tariaControls,\n\t\tariaOwns,\n\t\tariaActiveDescendant,\n\t] );\n\n\tuseMarkPersistent( { html: adjustedValue, value } );\n\n\tconst keyboardShortcuts = useRef( new Set() );\n\tconst inputEvents = useRef( new Set() );\n\n\tfunction onFocus() {\n\t\tanchorRef.current?.focus();\n\t}\n\n\t// Setting tabIndex to 0 is unnecessary, the element is already focusable\n\t// because it's contentEditable. This also fixes a Safari bug where it's\n\t// not possible to Shift+Click multi select blocks when Shift Clicking\n\t// into an element with tabIndex because Safari will focus the element.\n\t// However, Safari will correctly ignore nested contentEditable elements.\n\t// While the writing flow wrapper is contentEditable (the selected block\n\t// supports `editableRoot`), nested editable elements are no longer\n\t// focusable areas on their own, so an explicit tabIndex restores their\n\t// focusability.\n\tlet tabIndex = props.tabIndex;\n\tif ( isEditingHost ) {\n\t\ttabIndex = props.tabIndex ?? 0;\n\t} else if ( ! shouldDisableEditing && props.tabIndex === 0 ) {\n\t\ttabIndex = null;\n\t}\n\n\tconst TagName = tagName;\n\treturn (\n\t\t<>\n\t\t\t{ isSelected && (\n\t\t\t\t<KeyboardShortcutContext.Provider value={ keyboardShortcuts }>\n\t\t\t\t\t<InputEventContext.Provider value={ inputEvents }>\n\t\t\t\t\t\t<Popover.__unstableSlotNameProvider value=\"__unstable-block-tools-after\">\n\t\t\t\t\t\t\t{ children &&\n\t\t\t\t\t\t\t\tchildren( { value, onChange, onFocus } ) }\n\n\t\t\t\t\t\t\t<FormatEdit\n\t\t\t\t\t\t\t\tvalue={ value }\n\t\t\t\t\t\t\t\tonChange={ onChange }\n\t\t\t\t\t\t\t\tonFocus={ onFocus }\n\t\t\t\t\t\t\t\tformatTypes={ formatTypes }\n\t\t\t\t\t\t\t\tforwardedRef={ anchorRef }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</Popover.__unstableSlotNameProvider>\n\t\t\t\t\t</InputEventContext.Provider>\n\t\t\t\t</KeyboardShortcutContext.Provider>\n\t\t\t) }\n\t\t\t{ isSelected && hasFormats && (\n\t\t\t\t<FormatToolbarContainer\n\t\t\t\t\tinline={ inlineToolbar }\n\t\t\t\t\teditableContentElement={ anchorElement }\n\t\t\t\t/>\n\t\t\t) }\n\t\t\t<TagName\n\t\t\t\t// Overridable props.\n\t\t\t\trole=\"textbox\"\n\t\t\t\taria-multiline={ ! disableLineBreaks }\n\t\t\t\taria-readonly={ shouldDisableEditing }\n\t\t\t\t{ ...props }\n\t\t\t\t// Unset draggable (coming from block props) for contentEditable\n\t\t\t\t// elements because it will interfere with multi block selection\n\t\t\t\t// when the contentEditable and draggable elements are the same\n\t\t\t\t// element.\n\t\t\t\tdraggable={ undefined }\n\t\t\t\taria-label={\n\t\t\t\t\tbindingsLabel || props[ 'aria-label' ] || placeholder\n\t\t\t\t}\n\t\t\t\t{ ...autocompleteProps }\n\t\t\t\tref={ useMergeRefs( [\n\t\t\t\t\t// Rich text ref must be first because its focus listener\n\t\t\t\t\t// must be set up before any other ref calls .focus() on\n\t\t\t\t\t// mount.\n\t\t\t\t\trichTextRef,\n\t\t\t\t\tforwardedRef,\n\t\t\t\t\tautocompleteProps.ref,\n\t\t\t\t\tprops.ref,\n\t\t\t\t\tuseEventListeners( {\n\t\t\t\t\t\tregistry,\n\t\t\t\t\t\tgetValue,\n\t\t\t\t\t\tonChange,\n\t\t\t\t\t\t__unstableAllowPrefixTransformations,\n\t\t\t\t\t\tformatTypes,\n\t\t\t\t\t\tonReplace,\n\t\t\t\t\t\tselectionChange,\n\t\t\t\t\t\tisSelected,\n\t\t\t\t\t\tdisableFormats,\n\t\t\t\t\t\tvalue,\n\t\t\t\t\t\ttagName,\n\t\t\t\t\t\tonSplit,\n\t\t\t\t\t\t__unstableEmbedURLOnPaste,\n\t\t\t\t\t\tpastePlainText,\n\t\t\t\t\t\tonMerge,\n\t\t\t\t\t\tonRemove,\n\t\t\t\t\t\tdisableLineBreaks,\n\t\t\t\t\t\tonSplitAtEnd,\n\t\t\t\t\t\tonSplitAtDoubleLineEnd,\n\t\t\t\t\t\tkeyboardShortcuts,\n\t\t\t\t\t\tinputEvents,\n\t\t\t\t\t\tsupportsSplitting,\n\t\t\t\t\t} ),\n\t\t\t\t\tanchorRef,\n\t\t\t\t\tsetAnchorElement,\n\t\t\t\t] ) }\n\t\t\t\tcontentEditable={ ! shouldDisableEditing }\n\t\t\t\tsuppressContentEditableWarning\n\t\t\t\tclassName={ clsx(\n\t\t\t\t\t'block-editor-rich-text__editable',\n\t\t\t\t\tprops.className,\n\t\t\t\t\t'rich-text'\n\t\t\t\t) }\n\t\t\t\ttabIndex={ tabIndex }\n\t\t\t\tdata-wp-block-attribute-key={ identifier }\n\t\t\t/>\n\t\t</>\n\t);\n}\n\nconst ForwardedRichTextWrapper = forwardRef( RichTextWrapper );\n\nexport { ForwardedRichTextWrapper as RichTextWrapper };\n\n// This is the private API for the RichText component.\n// It allows access to all props, not just the public ones.\nexport const PrivateRichText = withDeprecations( ForwardedRichTextWrapper );\n\nPrivateRichText.Content = Content;\nPrivateRichText.isEmpty = ( value ) => {\n\treturn ! value || value.length === 0;\n};\n\n// This is the public API for the RichText component.\n// We wrap the PrivateRichText component to hide some props from the public API.\n/**\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/rich-text/README.md\n */\nconst PublicForwardedRichTextContainer = forwardRef( ( props, ref ) => {\n\tconst context = useBlockEditContext();\n\tconst isPreviewMode = context[ isPreviewModeKey ];\n\n\tif ( isPreviewMode ) {\n\t\t// Remove all non-content props.\n\t\tconst {\n\t\t\tchildren,\n\t\t\ttagName: Tag = 'div',\n\t\t\tvalue,\n\t\t\tonChange,\n\t\t\tisSelected,\n\t\t\tmultiline,\n\t\t\tinlineToolbar,\n\t\t\twrapperClassName,\n\t\t\tautocompleters,\n\t\t\tonReplace,\n\t\t\tplaceholder,\n\t\t\tallowedFormats,\n\t\t\twithoutInteractiveFormatting,\n\t\t\tonRemove,\n\t\t\tonMerge,\n\t\t\tonSplit,\n\t\t\t__unstableOnSplitAtEnd,\n\t\t\t__unstableOnSplitAtDoubleLineEnd,\n\t\t\tidentifier,\n\t\t\tpreserveWhiteSpace,\n\t\t\t__unstablePastePlainText,\n\t\t\t__unstableEmbedURLOnPaste,\n\t\t\t__unstableDisableFormats,\n\t\t\tdisableLineBreaks,\n\t\t\t__unstableAllowPrefixTransformations,\n\t\t\treadOnly,\n\t\t\t...contentProps\n\t\t} = props;\n\t\treturn (\n\t\t\t<Tag\n\t\t\t\tref={ ref }\n\t\t\t\t{ ...contentProps }\n\t\t\t\tdangerouslySetInnerHTML={ {\n\t\t\t\t\t__html: valueToHTMLString( value, multiline ) || '<br>',\n\t\t\t\t} }\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn <PrivateRichText ref={ ref } { ...props } readOnly={ false } />;\n} );\n\nPublicForwardedRichTextContainer.Content = Content;\nPublicForwardedRichTextContainer.isEmpty = ( value ) => {\n\treturn ! value || value.length === 0;\n};\n\nexport default PublicForwardedRichTextContainer;\nexport { RichTextShortcut };\nexport { RichTextToolbarButton } from './toolbar-button';\nexport { RichTextInputEvent as __unstableRichTextInputEvent };\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,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,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACJ,IAAI;AACJ,WACC;AAAA,MAAC;AAAA;AAAA,QACA;AAAA,QACE,GAAG;AAAA,QACL,yBAA0B;AAAA,UACzB,YAAQ,kCAAmB,OAAO,SAAU,KAAK;AAAA,QAClD;AAAA;AAAA,IACD;AAAA,EAEF;AAEA,SAAO,4CAAC,mBAAgB,KAAc,GAAG,OAAQ,UAAW,OAAQ;AACrE,CAAE;AAEF,iCAAiC,UAAU;AAC3C,iCAAiC,UAAU,CAAE,UAAW;AACvD,SAAO,CAAE,SAAS,MAAM,WAAW;AACpC;AAEA,IAAO,oBAAQ;",
|
|
6
6
|
"names": ["richTextPrivateApis", "deprecated", "BlockContext", "getSelectionStart", "getSelectionEnd", "blockEditorStore", "selectionStart", "selectionEnd", "isSelected", "fastDeepEqual", "FormatEdit", "FormatToolbarContainer", "clsx"]
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// packages/block-editor/src/components/rich-text/multiline.
|
|
30
|
+
// packages/block-editor/src/components/rich-text/multiline.jsx
|
|
31
31
|
var multiline_exports = {};
|
|
32
32
|
__export(multiline_exports, {
|
|
33
33
|
default: () => multiline_default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/rich-text/multiline.
|
|
3
|
+
"sources": ["../../../src/components/rich-text/multiline.jsx"],
|
|
4
4
|
"sourcesContent": ["import { forwardRef, useInsertionEffect, useRef } from '@wordpress/element';\nimport deprecated from '@wordpress/deprecated';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { ENTER } from '@wordpress/keycodes';\nimport {\n\tcreate,\n\tsplit,\n\ttoHTMLString,\n\tprivateApis as richTextPrivateApis,\n} from '@wordpress/rich-text';\nimport { useRefEffect } from '@wordpress/compose';\nimport { RichTextWrapper } from './';\nimport { store as blockEditorStore } from '../../store';\nimport { useBlockEditContext } from '../block-edit';\nimport { getMultilineTag } from './utils';\nimport { unlock } from '../../lock-unlock';\n\nconst { subscribeOwnedListener } = unlock( richTextPrivateApis );\n\nfunction useEnterRef( props ) {\n\tconst { getSelectionStart, getSelectionEnd } =\n\t\tuseSelect( blockEditorStore );\n\tconst { selectionChange } = useDispatch( blockEditorStore );\n\treturn useRefEffect( ( element ) => {\n\t\tfunction onKeyDown( event ) {\n\t\t\tif ( event.keyCode !== ENTER ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tevent.preventDefault();\n\n\t\t\tconst { value, values, onChange, index, identifier, clientId } =\n\t\t\t\tprops.current;\n\t\t\tconst { offset: start } = getSelectionStart();\n\t\t\tconst { offset: end } = getSelectionEnd();\n\n\t\t\t// Cannot split if there is no selection.\n\t\t\tif ( typeof start !== 'number' || typeof end !== 'number' ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst richTextValue = create( { html: value } );\n\t\t\trichTextValue.start = start;\n\t\t\trichTextValue.end = end;\n\n\t\t\tconst array = split( richTextValue ).map( ( v ) =>\n\t\t\t\ttoHTMLString( { value: v } )\n\t\t\t);\n\n\t\t\tconst newValues = values.slice();\n\t\t\tnewValues.splice( index, 1, ...array );\n\t\t\tonChange( newValues );\n\t\t\tselectionChange( clientId, `${ identifier }-${ index + 1 }`, 0, 0 );\n\t\t}\n\t\t// Capture phase so this runs before the generic rich text enter\n\t\t// listener, which skips events that already had their default\n\t\t// prevented.\n\t\treturn subscribeOwnedListener( element, 'keydown', onKeyDown, true );\n\t}, [] );\n}\n\nfunction Line( lineProps ) {\n\tconst {\n\t\tvalue,\n\t\tvalues,\n\t\tonChange,\n\t\tindex,\n\t\tidentifier,\n\t\tmultilineTagName,\n\t\t...props\n\t} = lineProps;\n\tconst { clientId } = useBlockEditContext();\n\tconst { selectionChange } = useDispatch( blockEditorStore );\n\tconst latestRef = useRef();\n\tuseInsertionEffect( () => {\n\t\tlatestRef.current = { ...lineProps, clientId };\n\t} );\n\tconst ref = useEnterRef( latestRef );\n\treturn (\n\t\t<RichTextWrapper\n\t\t\tkey={ index }\n\t\t\tidentifier={ `${ identifier }-${ index }` }\n\t\t\ttagName={ multilineTagName }\n\t\t\tvalue={ value }\n\t\t\tonChange={ ( newValue ) => {\n\t\t\t\tconst newValues = values.slice();\n\t\t\t\tnewValues[ index ] = newValue;\n\t\t\t\tonChange( newValues );\n\t\t\t} }\n\t\t\tisSelected={ undefined }\n\t\t\tref={ ref }\n\t\t\tonMerge={ ( forward ) => {\n\t\t\t\tconst newValues = values.slice();\n\t\t\t\tlet offset = 0;\n\t\t\t\tif ( forward ) {\n\t\t\t\t\tif ( ! newValues[ index + 1 ] ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tnewValues.splice(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\t2,\n\t\t\t\t\t\tnewValues[ index ] + newValues[ index + 1 ]\n\t\t\t\t\t);\n\t\t\t\t\toffset = newValues[ index ].length - 1;\n\t\t\t\t} else {\n\t\t\t\t\tif ( ! newValues[ index - 1 ] ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tnewValues.splice(\n\t\t\t\t\t\tindex - 1,\n\t\t\t\t\t\t2,\n\t\t\t\t\t\tnewValues[ index - 1 ] + newValues[ index ]\n\t\t\t\t\t);\n\t\t\t\t\toffset = newValues[ index - 1 ].length - 1;\n\t\t\t\t}\n\t\t\t\tonChange( newValues );\n\t\t\t\tselectionChange(\n\t\t\t\t\tclientId,\n\t\t\t\t\t`${ identifier }-${ index - ( forward ? 0 : 1 ) }`,\n\t\t\t\t\toffset,\n\t\t\t\t\toffset\n\t\t\t\t);\n\t\t\t} }\n\t\t\t{ ...props }\n\t\t/>\n\t);\n}\n\nfunction RichTextMultiline(\n\t{\n\t\tchildren,\n\t\tidentifier,\n\t\ttagName: TagName = 'div',\n\t\tvalue = '',\n\t\tonChange,\n\t\tmultiline,\n\t\t...props\n\t},\n\tforwardedRef\n) {\n\tdeprecated( 'wp.blockEditor.RichText multiline prop', {\n\t\tsince: '6.1',\n\t\tversion: '6.3',\n\t\talternative: 'nested blocks (InnerBlocks)',\n\t\tlink: 'https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/',\n\t} );\n\n\tconst multilineTagName = getMultilineTag( multiline );\n\tvalue = value || `<${ multilineTagName }></${ multilineTagName }>`;\n\tconst padded = `</${ multilineTagName }>${ value }<${ multilineTagName }>`;\n\tconst values = padded.split(\n\t\t`</${ multilineTagName }><${ multilineTagName }>`\n\t);\n\n\tvalues.shift();\n\tvalues.pop();\n\n\tfunction _onChange( newValues ) {\n\t\tonChange(\n\t\t\t`<${ multilineTagName }>${ newValues.join(\n\t\t\t\t`</${ multilineTagName }><${ multilineTagName }>`\n\t\t\t) }</${ multilineTagName }>`\n\t\t);\n\t}\n\n\treturn (\n\t\t<TagName ref={ forwardedRef }>\n\t\t\t{ values.map( ( _value, index ) => {\n\t\t\t\treturn (\n\t\t\t\t\t<Line\n\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\tvalues={ values }\n\t\t\t\t\t\tvalue={ _value }\n\t\t\t\t\t\tonChange={ _onChange }\n\t\t\t\t\t\tindex={ index }\n\t\t\t\t\t\tidentifier={ identifier }\n\t\t\t\t\t\tmultilineTagName={ multilineTagName }\n\t\t\t\t\t\t{ ...props }\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t} ) }\n\t\t</TagName>\n\t);\n}\n\nexport default forwardRef( RichTextMultiline );\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAAA,QACD;AAAA,MACD;AAAA,MACE,GAAG;AAAA;AAAA,IA3CC;AAAA,EA4CP;AAEF;AAEA,SAAS,kBACR;AAAA,EACC;AAAA,EACA;AAAA,EACA,SAAS,UAAU;AAAA,EACnB,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA,GAAG;AACJ,GACA,cACC;AACD,wBAAAC,SAAY,0CAA0C;AAAA,IACrD,OAAO;AAAA,IACP,SAAS;AAAA,IACT,aAAa;AAAA,IACb,MAAM;AAAA,EACP,CAAE;AAEF,QAAM,uBAAmB,8BAAiB,SAAU;AACpD,UAAQ,SAAS,IAAK,gBAAiB,MAAO,gBAAiB;AAC/D,QAAM,SAAS,KAAM,gBAAiB,IAAK,KAAM,IAAK,gBAAiB;AACvE,QAAM,SAAS,OAAO;AAAA,IACrB,KAAM,gBAAiB,KAAM,gBAAiB;AAAA,EAC/C;AAEA,SAAO,MAAM;AACb,SAAO,IAAI;AAEX,WAAS,UAAW,WAAY;AAC/B;AAAA,MACC,IAAK,gBAAiB,IAAK,UAAU;AAAA,QACpC,KAAM,gBAAiB,KAAM,gBAAiB;AAAA,MAC/C,CAAE,KAAM,gBAAiB;AAAA,IAC1B;AAAA,EACD;AAEA,SACC,4CAAC,WAAQ,KAAM,cACZ,iBAAO,IAAK,CAAE,QAAQ,UAAW;AAClC,WACC;AAAA,MAAC;AAAA;AAAA,QAEA;AAAA,QACA,OAAQ;AAAA,QACR,UAAW;AAAA,QACX;AAAA,QACA;AAAA,QACA;AAAA,QACE,GAAG;AAAA;AAAA,MAPC;AAAA,IAQP;AAAA,EAEF,CAAE,GACH;AAEF;AAEA,IAAO,wBAAQ,2BAAY,iBAAkB;",
|
|
6
6
|
"names": ["richTextPrivateApis", "blockEditorStore", "deprecated"]
|
|
@@ -17,7 +17,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
|
-
// packages/block-editor/src/components/rich-text/toolbar-button.
|
|
20
|
+
// packages/block-editor/src/components/rich-text/toolbar-button.jsx
|
|
21
21
|
var toolbar_button_exports = {};
|
|
22
22
|
__export(toolbar_button_exports, {
|
|
23
23
|
RichTextToolbarButton: () => RichTextToolbarButton
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/rich-text/toolbar-button.
|
|
3
|
+
"sources": ["../../../src/components/rich-text/toolbar-button.jsx"],
|
|
4
4
|
"sourcesContent": ["import { Fill, ToolbarButton } from '@wordpress/components';\nimport { displayShortcut } from '@wordpress/keycodes';\n\nexport function RichTextToolbarButton( {\n\tname,\n\tshortcutType,\n\tshortcutCharacter,\n\t...props\n} ) {\n\tlet shortcut;\n\tlet fillName = 'RichText.ToolbarControls';\n\n\tif ( name ) {\n\t\tfillName += `.${ name }`;\n\t}\n\n\tif ( shortcutType && shortcutCharacter ) {\n\t\tshortcut = displayShortcut[ shortcutType ]( shortcutCharacter );\n\t}\n\n\treturn (\n\t\t<Fill name={ fillName }>\n\t\t\t<ToolbarButton { ...props } shortcut={ shortcut } />\n\t\t</Fill>\n\t);\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAoC;AACpC,sBAAgC;AAqB7B;AAnBI,SAAS,sBAAuB;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACJ,GAAI;AACH,MAAI;AACJ,MAAI,WAAW;AAEf,MAAK,MAAO;AACX,gBAAY,IAAK,IAAK;AAAA,EACvB;AAEA,MAAK,gBAAgB,mBAAoB;AACxC,eAAW,gCAAiB,YAAa,EAAG,iBAAkB;AAAA,EAC/D;AAEA,SACC,4CAAC,0BAAK,MAAO,UACZ,sDAAC,mCAAgB,GAAG,OAAQ,UAAsB,GACnD;AAEF;",
|
|
6
6
|
"names": []
|
|
@@ -17,7 +17,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
|
-
// packages/block-editor/src/components/rich-text/utils.
|
|
20
|
+
// packages/block-editor/src/components/rich-text/utils.jsx
|
|
21
21
|
var utils_exports = {};
|
|
22
22
|
__export(utils_exports, {
|
|
23
23
|
addActiveFormats: () => addActiveFormats,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/rich-text/utils.
|
|
3
|
+
"sources": ["../../../src/components/rich-text/utils.jsx"],
|
|
4
4
|
"sourcesContent": ["import { renderToString } from '@wordpress/element';\nimport { createBlock } from '@wordpress/blocks';\n\nexport function addActiveFormats( value, activeFormats ) {\n\tif ( activeFormats?.length ) {\n\t\tlet index = value.formats.length;\n\n\t\twhile ( index-- ) {\n\t\t\tvalue.formats[ index ] = [\n\t\t\t\t...activeFormats,\n\t\t\t\t...( value.formats[ index ] || [] ),\n\t\t\t];\n\t\t}\n\t}\n}\n\n/**\n * Get the multiline tag based on the multiline prop.\n *\n * @param {?(string|boolean)} multiline The multiline prop.\n *\n * @return {string | undefined} The multiline tag.\n */\nexport function getMultilineTag( multiline ) {\n\tif ( multiline !== true && multiline !== 'p' && multiline !== 'li' ) {\n\t\treturn;\n\t}\n\n\treturn multiline === true ? 'p' : multiline;\n}\n\nexport function getAllowedFormats( { allowedFormats, disableFormats } ) {\n\tif ( disableFormats ) {\n\t\treturn getAllowedFormats.EMPTY_ARRAY;\n\t}\n\n\treturn allowedFormats;\n}\n\ngetAllowedFormats.EMPTY_ARRAY = [];\n\n/**\n * Creates a link from pasted URL.\n * Creates a paragraph block containing a link to the URL, and calls `onReplace`.\n *\n * @param {string} url The URL that could not be embedded.\n * @param {Function} onReplace Function to call with the created fallback block.\n */\nexport function createLinkInParagraph( url, onReplace ) {\n\tconst link = <a href={ url }>{ url }</a>;\n\tonReplace(\n\t\tcreateBlock( 'core/paragraph', { content: renderToString( link ) } )\n\t);\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA+B;AAC/B,oBAA4B;AAgDd;AA9CP,SAAS,iBAAkB,OAAO,eAAgB;AACxD,MAAK,eAAe,QAAS;AAC5B,QAAI,QAAQ,MAAM,QAAQ;AAE1B,WAAQ,SAAU;AACjB,YAAM,QAAS,KAAM,IAAI;AAAA,QACxB,GAAG;AAAA,QACH,GAAK,MAAM,QAAS,KAAM,KAAK,CAAC;AAAA,MACjC;AAAA,IACD;AAAA,EACD;AACD;AASO,SAAS,gBAAiB,WAAY;AAC5C,MAAK,cAAc,QAAQ,cAAc,OAAO,cAAc,MAAO;AACpE;AAAA,EACD;AAEA,SAAO,cAAc,OAAO,MAAM;AACnC;AAEO,SAAS,kBAAmB,EAAE,gBAAgB,eAAe,GAAI;AACvE,MAAK,gBAAiB;AACrB,WAAO,kBAAkB;AAAA,EAC1B;AAEA,SAAO;AACR;AAEA,kBAAkB,cAAc,CAAC;AAS1B,SAAS,sBAAuB,KAAK,WAAY;AACvD,QAAM,OAAO,4CAAC,OAAE,MAAO,KAAQ,eAAK;AACpC;AAAA,QACC,2BAAa,kBAAkB,EAAE,aAAS,+BAAgB,IAAK,EAAE,CAAE;AAAA,EACpE;AACD;",
|
|
6
6
|
"names": []
|