@wordpress/block-editor 13.1.0 → 13.3.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 +21 -17
- package/README.md +1 -2
- package/build/components/block-breadcrumb/index.js +12 -1
- package/build/components/block-breadcrumb/index.js.map +1 -1
- package/build/components/block-lock/modal.js +67 -67
- package/build/components/block-lock/modal.js.map +1 -1
- package/build/components/block-lock/toolbar.js +0 -1
- package/build/components/block-lock/toolbar.js.map +1 -1
- package/build/components/block-mover/button.js +1 -1
- package/build/components/block-mover/button.js.map +1 -1
- package/build/components/block-mover/index.js +12 -6
- package/build/components/block-mover/index.js.map +1 -1
- package/build/components/block-pattern-setup/setup-toolbar.js +2 -2
- package/build/components/block-pattern-setup/setup-toolbar.js.map +1 -1
- package/build/components/block-patterns-paging/index.js +5 -7
- package/build/components/block-patterns-paging/index.js.map +1 -1
- package/build/components/block-quick-navigation/index.js +20 -17
- package/build/components/block-quick-navigation/index.js.map +1 -1
- package/build/components/block-rename/modal.js +4 -12
- package/build/components/block-rename/modal.js.map +1 -1
- package/build/components/block-toolbar/shuffle.js +4 -1
- package/build/components/block-toolbar/shuffle.js.map +1 -1
- package/build/components/block-tools/block-selection-button.js +7 -58
- package/build/components/block-tools/block-selection-button.js.map +1 -1
- package/build/components/block-tools/block-toolbar-breadcrumb.js +9 -2
- package/build/components/block-tools/block-toolbar-breadcrumb.js.map +1 -1
- package/build/components/block-tools/index.js +14 -1
- package/build/components/block-tools/index.js.map +1 -1
- package/build/components/block-tools/use-show-block-tools.js +4 -2
- package/build/components/block-tools/use-show-block-tools.js.map +1 -1
- package/build/components/block-tools/zoom-out-mode-inserters.js +5 -4
- package/build/components/block-tools/zoom-out-mode-inserters.js.map +1 -1
- package/build/components/block-tools/zoom-out-popover.js +57 -0
- package/build/components/block-tools/zoom-out-popover.js.map +1 -0
- package/build/components/block-tools/zoom-out-toolbar.js +138 -0
- package/build/components/block-tools/zoom-out-toolbar.js.map +1 -0
- package/build/components/button-block-appender/index.js +3 -1
- package/build/components/button-block-appender/index.js.map +1 -1
- package/build/components/child-layout-control/index.js +193 -127
- package/build/components/child-layout-control/index.js.map +1 -1
- package/build/components/date-format-picker/index.js +10 -1
- package/build/components/date-format-picker/index.js.map +1 -1
- package/build/components/dimensions-tool/index.js +6 -4
- package/build/components/dimensions-tool/index.js.map +1 -1
- package/build/components/font-appearance-control/index.js +26 -61
- package/build/components/font-appearance-control/index.js.map +1 -1
- package/build/components/global-styles/background-panel.js +178 -116
- package/build/components/global-styles/background-panel.js.map +1 -1
- package/build/components/global-styles/border-panel.js +2 -1
- package/build/components/global-styles/border-panel.js.map +1 -1
- package/build/components/global-styles/color-panel.js +2 -1
- package/build/components/global-styles/color-panel.js.map +1 -1
- package/build/components/global-styles/dimensions-panel.js +2 -1
- package/build/components/global-styles/dimensions-panel.js.map +1 -1
- package/build/components/global-styles/filters-panel.js +2 -1
- package/build/components/global-styles/filters-panel.js.map +1 -1
- package/build/components/global-styles/hooks.js +8 -0
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/image-settings-panel.js +2 -1
- package/build/components/global-styles/image-settings-panel.js.map +1 -1
- package/build/components/global-styles/typography-panel.js +50 -12
- package/build/components/global-styles/typography-panel.js.map +1 -1
- package/build/components/global-styles/typography-utils.js +50 -0
- package/build/components/global-styles/typography-utils.js.map +1 -1
- package/build/components/global-styles/use-global-styles-output.js +25 -9
- package/build/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build/components/global-styles/utils.js +17 -7
- package/build/components/global-styles/utils.js.map +1 -1
- package/build/components/grid/grid-item-movers.js +94 -0
- package/build/components/grid/grid-item-movers.js.map +1 -0
- package/build/components/{grid-visualizer → grid}/grid-item-resizer.js +18 -56
- package/build/components/grid/grid-item-resizer.js.map +1 -0
- package/build/components/grid/grid-visualizer.js +305 -0
- package/build/components/grid/grid-visualizer.js.map +1 -0
- package/build/components/{grid-visualizer → grid}/index.js +14 -0
- package/build/components/grid/index.js.map +1 -0
- package/build/components/grid/use-get-number-of-blocks-before-cell.js +40 -0
- package/build/components/grid/use-get-number-of-blocks-before-cell.js.map +1 -0
- package/build/components/grid/use-grid-layout-sync.js +169 -0
- package/build/components/grid/use-grid-layout-sync.js.map +1 -0
- package/build/components/grid/utils.js +145 -0
- package/build/components/grid/utils.js.map +1 -0
- package/build/components/image-editor/aspect-ratio-dropdown.js +0 -1
- package/build/components/image-editor/aspect-ratio-dropdown.js.map +1 -1
- package/build/components/inner-blocks/index.js +1 -1
- package/build/components/inner-blocks/index.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/pattern-category-preview-panel.js +1 -19
- package/build/components/inserter/block-patterns-tab/pattern-category-preview-panel.js.map +1 -1
- package/build/components/inserter/menu.js +26 -4
- package/build/components/inserter/menu.js.map +1 -1
- package/build/components/inserter/quick-inserter.js +2 -1
- package/build/components/inserter/quick-inserter.js.map +1 -1
- package/build/components/inspector-controls/block-support-tools-panel.js +2 -1
- package/build/components/inspector-controls/block-support-tools-panel.js.map +1 -1
- package/build/components/link-control/link-preview.js +1 -1
- package/build/components/link-control/link-preview.js.map +1 -1
- package/build/components/media-placeholder/index.js +19 -23
- package/build/components/media-placeholder/index.js.map +1 -1
- package/build/components/navigable-toolbar/index.js +3 -1
- package/build/components/navigable-toolbar/index.js.map +1 -1
- package/build/components/rich-text/event-listeners/input-rules.js +1 -0
- package/build/components/rich-text/event-listeners/input-rules.js.map +1 -1
- package/build/components/rich-text/index.native.js +10 -4
- package/build/components/rich-text/index.native.js.map +1 -1
- package/build/components/rich-text/native/index.native.js +14 -0
- package/build/components/rich-text/native/index.native.js.map +1 -1
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js +5 -1
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build/components/tabbed-sidebar/index.js +66 -0
- package/build/components/tabbed-sidebar/index.js.map +1 -0
- package/build/components/url-popover/index.js +3 -0
- package/build/components/url-popover/index.js.map +1 -1
- package/build/hooks/background.js +26 -4
- package/build/hooks/background.js.map +1 -1
- package/build/hooks/block-hooks.js +11 -17
- package/build/hooks/block-hooks.js.map +1 -1
- package/build/hooks/block-style-variation.js +195 -11
- package/build/hooks/block-style-variation.js.map +1 -1
- package/build/hooks/duotone.js +16 -11
- package/build/hooks/duotone.js.map +1 -1
- package/build/hooks/grid-visualizer.js +65 -0
- package/build/hooks/grid-visualizer.js.map +1 -0
- package/build/hooks/index.js +15 -2
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/layout-child.js +65 -40
- package/build/hooks/layout-child.js.map +1 -1
- package/build/hooks/position.js +2 -9
- package/build/hooks/position.js.map +1 -1
- package/build/hooks/use-bindings-attributes.js +16 -6
- package/build/hooks/use-bindings-attributes.js.map +1 -1
- package/build/hooks/utils.js +5 -2
- package/build/hooks/utils.js.map +1 -1
- package/build/layouts/constrained.js +44 -2
- package/build/layouts/constrained.js.map +1 -1
- package/build/layouts/grid.js +92 -76
- package/build/layouts/grid.js.map +1 -1
- package/build/lock-unlock.js +1 -1
- package/build/lock-unlock.js.map +1 -1
- package/build/private-apis.js +6 -1
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +17 -1
- package/build/store/actions.js.map +1 -1
- package/build/store/defaults.js +0 -2
- package/build/store/defaults.js.map +1 -1
- package/build/store/defaults.native.js +0 -3
- package/build/store/defaults.native.js.map +1 -1
- package/build/store/private-keys.js +2 -1
- package/build/store/private-keys.js.map +1 -1
- package/build/utils/format-font-style.js +45 -0
- package/build/utils/format-font-style.js.map +1 -0
- package/build/utils/format-font-weight.js +68 -0
- package/build/utils/format-font-weight.js.map +1 -0
- package/build/utils/get-editor-region.js +34 -0
- package/build/utils/get-editor-region.js.map +1 -0
- package/build/utils/get-font-styles-and-weights.js +167 -0
- package/build/utils/get-font-styles-and-weights.js.map +1 -0
- package/build/utils/pasting.js +5 -13
- package/build/utils/pasting.js.map +1 -1
- package/build-module/components/block-breadcrumb/index.js +12 -1
- package/build-module/components/block-breadcrumb/index.js.map +1 -1
- package/build-module/components/block-lock/modal.js +67 -67
- package/build-module/components/block-lock/modal.js.map +1 -1
- package/build-module/components/block-lock/toolbar.js +0 -1
- package/build-module/components/block-lock/toolbar.js.map +1 -1
- package/build-module/components/block-mover/button.js +1 -1
- package/build-module/components/block-mover/button.js.map +1 -1
- package/build-module/components/block-mover/index.js +12 -6
- package/build-module/components/block-mover/index.js.map +1 -1
- package/build-module/components/block-pattern-setup/setup-toolbar.js +2 -2
- package/build-module/components/block-pattern-setup/setup-toolbar.js.map +1 -1
- package/build-module/components/block-patterns-paging/index.js +5 -7
- package/build-module/components/block-patterns-paging/index.js.map +1 -1
- package/build-module/components/block-quick-navigation/index.js +20 -17
- package/build-module/components/block-quick-navigation/index.js.map +1 -1
- package/build-module/components/block-rename/modal.js +5 -13
- package/build-module/components/block-rename/modal.js.map +1 -1
- package/build-module/components/block-toolbar/shuffle.js +4 -1
- package/build-module/components/block-toolbar/shuffle.js.map +1 -1
- package/build-module/components/block-tools/block-selection-button.js +10 -61
- package/build-module/components/block-tools/block-selection-button.js.map +1 -1
- package/build-module/components/block-tools/block-toolbar-breadcrumb.js +9 -2
- package/build-module/components/block-tools/block-toolbar-breadcrumb.js.map +1 -1
- package/build-module/components/block-tools/index.js +14 -1
- package/build-module/components/block-tools/index.js.map +1 -1
- package/build-module/components/block-tools/use-show-block-tools.js +4 -2
- package/build-module/components/block-tools/use-show-block-tools.js.map +1 -1
- package/build-module/components/block-tools/zoom-out-mode-inserters.js +5 -4
- package/build-module/components/block-tools/zoom-out-mode-inserters.js.map +1 -1
- package/build-module/components/block-tools/zoom-out-popover.js +48 -0
- package/build-module/components/block-tools/zoom-out-popover.js.map +1 -0
- package/build-module/components/block-tools/zoom-out-toolbar.js +131 -0
- package/build-module/components/block-tools/zoom-out-toolbar.js.map +1 -0
- package/build-module/components/button-block-appender/index.js +3 -1
- package/build-module/components/button-block-appender/index.js.map +1 -1
- package/build-module/components/child-layout-control/index.js +194 -128
- package/build-module/components/child-layout-control/index.js.map +1 -1
- package/build-module/components/date-format-picker/index.js +11 -3
- package/build-module/components/date-format-picker/index.js.map +1 -1
- package/build-module/components/dimensions-tool/index.js +6 -4
- package/build-module/components/dimensions-tool/index.js.map +1 -1
- package/build-module/components/font-appearance-control/index.js +28 -63
- package/build-module/components/font-appearance-control/index.js.map +1 -1
- package/build-module/components/global-styles/background-panel.js +181 -119
- package/build-module/components/global-styles/background-panel.js.map +1 -1
- package/build-module/components/global-styles/border-panel.js +3 -2
- package/build-module/components/global-styles/border-panel.js.map +1 -1
- package/build-module/components/global-styles/color-panel.js +3 -2
- package/build-module/components/global-styles/color-panel.js.map +1 -1
- package/build-module/components/global-styles/dimensions-panel.js +3 -2
- package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
- package/build-module/components/global-styles/filters-panel.js +3 -2
- package/build-module/components/global-styles/filters-panel.js.map +1 -1
- package/build-module/components/global-styles/hooks.js +8 -0
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/image-settings-panel.js +3 -2
- package/build-module/components/global-styles/image-settings-panel.js.map +1 -1
- package/build-module/components/global-styles/typography-panel.js +52 -14
- package/build-module/components/global-styles/typography-panel.js.map +1 -1
- package/build-module/components/global-styles/typography-utils.js +48 -0
- package/build-module/components/global-styles/typography-utils.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js +25 -9
- package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build-module/components/global-styles/utils.js +15 -6
- package/build-module/components/global-styles/utils.js.map +1 -1
- package/build-module/components/grid/grid-item-movers.js +87 -0
- package/build-module/components/grid/grid-item-movers.js.map +1 -0
- package/build-module/components/{grid-visualizer → grid}/grid-item-resizer.js +13 -51
- package/build-module/components/grid/grid-item-resizer.js.map +1 -0
- package/build-module/components/grid/grid-visualizer.js +297 -0
- package/build-module/components/grid/grid-visualizer.js.map +1 -0
- package/build-module/components/grid/index.js +5 -0
- package/build-module/components/grid/index.js.map +1 -0
- package/build-module/components/grid/use-get-number-of-blocks-before-cell.js +33 -0
- package/build-module/components/grid/use-get-number-of-blocks-before-cell.js.map +1 -0
- package/build-module/components/grid/use-grid-layout-sync.js +162 -0
- package/build-module/components/grid/use-grid-layout-sync.js.map +1 -0
- package/build-module/components/grid/utils.js +131 -0
- package/build-module/components/grid/utils.js.map +1 -0
- package/build-module/components/image-editor/aspect-ratio-dropdown.js +0 -1
- package/build-module/components/image-editor/aspect-ratio-dropdown.js.map +1 -1
- package/build-module/components/inner-blocks/index.js +1 -1
- package/build-module/components/inner-blocks/index.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/pattern-category-preview-panel.js +1 -19
- package/build-module/components/inserter/block-patterns-tab/pattern-category-preview-panel.js.map +1 -1
- package/build-module/components/inserter/menu.js +26 -4
- package/build-module/components/inserter/menu.js.map +1 -1
- package/build-module/components/inserter/quick-inserter.js +2 -1
- package/build-module/components/inserter/quick-inserter.js.map +1 -1
- package/build-module/components/inspector-controls/block-support-tools-panel.js +3 -2
- package/build-module/components/inspector-controls/block-support-tools-panel.js.map +1 -1
- package/build-module/components/link-control/link-preview.js +1 -1
- package/build-module/components/link-control/link-preview.js.map +1 -1
- package/build-module/components/media-placeholder/index.js +19 -23
- package/build-module/components/media-placeholder/index.js.map +1 -1
- package/build-module/components/navigable-toolbar/index.js +3 -1
- package/build-module/components/navigable-toolbar/index.js.map +1 -1
- package/build-module/components/rich-text/event-listeners/input-rules.js +1 -1
- package/build-module/components/rich-text/event-listeners/input-rules.js.map +1 -1
- package/build-module/components/rich-text/index.native.js +11 -5
- package/build-module/components/rich-text/index.native.js.map +1 -1
- package/build-module/components/rich-text/native/index.native.js +14 -0
- package/build-module/components/rich-text/native/index.native.js.map +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js +5 -1
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build-module/components/tabbed-sidebar/index.js +60 -0
- package/build-module/components/tabbed-sidebar/index.js.map +1 -0
- package/build-module/components/url-popover/index.js +3 -0
- package/build-module/components/url-popover/index.js.map +1 -1
- package/build-module/hooks/background.js +26 -4
- package/build-module/hooks/background.js.map +1 -1
- package/build-module/hooks/block-hooks.js +11 -17
- package/build-module/hooks/block-hooks.js.map +1 -1
- package/build-module/hooks/block-style-variation.js +193 -11
- package/build-module/hooks/block-style-variation.js.map +1 -1
- package/build-module/hooks/duotone.js +16 -11
- package/build-module/hooks/duotone.js.map +1 -1
- package/build-module/hooks/grid-visualizer.js +64 -0
- package/build-module/hooks/grid-visualizer.js.map +1 -0
- package/build-module/hooks/index.js +3 -0
- package/build-module/hooks/index.js.map +1 -1
- package/build-module/hooks/layout-child.js +63 -38
- package/build-module/hooks/layout-child.js.map +1 -1
- package/build-module/hooks/position.js +2 -9
- package/build-module/hooks/position.js.map +1 -1
- package/build-module/hooks/use-bindings-attributes.js +16 -6
- package/build-module/hooks/use-bindings-attributes.js.map +1 -1
- package/build-module/hooks/utils.js +5 -2
- package/build-module/hooks/utils.js.map +1 -1
- package/build-module/layouts/constrained.js +44 -2
- package/build-module/layouts/constrained.js.map +1 -1
- package/build-module/layouts/grid.js +92 -76
- package/build-module/layouts/grid.js.map +1 -1
- package/build-module/lock-unlock.js +1 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/private-apis.js +8 -3
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +17 -1
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/defaults.js +0 -2
- package/build-module/store/defaults.js.map +1 -1
- package/build-module/store/defaults.native.js +0 -3
- package/build-module/store/defaults.native.js.map +1 -1
- package/build-module/store/private-keys.js +1 -0
- package/build-module/store/private-keys.js.map +1 -1
- package/build-module/utils/format-font-style.js +39 -0
- package/build-module/utils/format-font-style.js.map +1 -0
- package/build-module/utils/format-font-weight.js +62 -0
- package/build-module/utils/format-font-weight.js.map +1 -0
- package/build-module/utils/get-editor-region.js +28 -0
- package/build-module/utils/get-editor-region.js.map +1 -0
- package/build-module/utils/get-font-styles-and-weights.js +160 -0
- package/build-module/utils/get-font-styles-and-weights.js.map +1 -0
- package/build-module/utils/pasting.js +5 -13
- package/build-module/utils/pasting.js.map +1 -1
- package/build-style/content-rtl.css +1 -0
- package/build-style/content.css +1 -0
- package/build-style/style-rtl.css +238 -106
- package/build-style/style.css +238 -106
- package/package.json +32 -32
- package/src/components/block-breadcrumb/index.js +16 -1
- package/src/components/block-lock/modal.js +95 -82
- package/src/components/block-lock/style.scss +11 -1
- package/src/components/block-lock/toolbar.js +0 -1
- package/src/components/block-mover/button.js +1 -1
- package/src/components/block-mover/index.js +37 -24
- package/src/components/block-pattern-setup/setup-toolbar.js +2 -2
- package/src/components/block-patterns-paging/index.js +8 -11
- package/src/components/block-patterns-paging/style.scss +18 -0
- package/src/components/block-quick-navigation/index.js +21 -28
- package/src/components/block-rename/modal.js +2 -8
- package/src/components/block-switcher/test/index.js +6 -6
- package/src/components/block-toolbar/shuffle.js +4 -1
- package/src/components/block-toolbar/style.scss +1 -11
- package/src/components/block-tools/block-selection-button.js +11 -83
- package/src/components/block-tools/block-toolbar-breadcrumb.js +9 -4
- package/src/components/block-tools/index.js +21 -1
- package/src/components/block-tools/style.scss +15 -0
- package/src/components/block-tools/use-show-block-tools.js +14 -6
- package/src/components/block-tools/zoom-out-mode-inserters.js +5 -4
- package/src/components/block-tools/zoom-out-popover.js +49 -0
- package/src/components/block-tools/zoom-out-toolbar.js +140 -0
- package/src/components/button-block-appender/index.js +2 -1
- package/src/components/child-layout-control/index.js +243 -160
- package/src/components/date-format-picker/index.js +10 -1
- package/src/components/date-format-picker/style.scss +0 -9
- package/src/components/dimensions-tool/index.js +97 -89
- package/src/components/font-appearance-control/index.js +29 -83
- package/src/components/font-appearance-control/style.scss +3 -5
- package/src/components/global-styles/background-panel.js +249 -170
- package/src/components/global-styles/border-panel.js +3 -2
- package/src/components/global-styles/color-panel.js +3 -2
- package/src/components/global-styles/dimensions-panel.js +3 -2
- package/src/components/global-styles/filters-panel.js +3 -2
- package/src/components/global-styles/hooks.js +9 -0
- package/src/components/global-styles/image-settings-panel.js +3 -2
- package/src/components/global-styles/style.scss +105 -20
- package/src/components/global-styles/test/typography-utils.js +269 -0
- package/src/components/global-styles/test/use-global-styles-output.js +38 -3
- package/src/components/global-styles/typography-panel.js +49 -12
- package/src/components/global-styles/typography-utils.js +63 -0
- package/src/components/global-styles/use-global-styles-output.js +25 -9
- package/src/components/global-styles/utils.js +17 -6
- package/src/components/grid/grid-item-movers.js +112 -0
- package/src/components/{grid-visualizer → grid}/grid-item-resizer.js +15 -52
- package/src/components/grid/grid-visualizer.js +384 -0
- package/src/components/grid/index.js +4 -0
- package/src/components/grid/style.scss +98 -0
- package/src/components/grid/use-get-number-of-blocks-before-cell.js +30 -0
- package/src/components/grid/use-grid-layout-sync.js +170 -0
- package/src/components/grid/utils.js +178 -0
- package/src/components/iframe/content.scss +1 -0
- package/src/components/image-editor/aspect-ratio-dropdown.js +0 -1
- package/src/components/inner-blocks/index.js +4 -1
- package/src/components/inserter/block-patterns-tab/pattern-category-preview-panel.js +1 -16
- package/src/components/inserter/menu.js +47 -13
- package/src/components/inserter/quick-inserter.js +6 -1
- package/src/components/inserter/style.scss +1 -49
- package/src/components/inspector-controls/block-support-tools-panel.js +3 -3
- package/src/components/link-control/link-preview.js +1 -1
- package/src/components/media-placeholder/index.js +22 -32
- package/src/components/navigable-toolbar/index.js +3 -1
- package/src/components/rich-text/event-listeners/input-rules.js +1 -1
- package/src/components/rich-text/index.native.js +10 -8
- package/src/components/rich-text/native/index.native.js +17 -0
- package/src/components/spacing-sizes-control/input-controls/spacing-input-control.js +6 -1
- package/src/components/tabbed-sidebar/README.md +76 -0
- package/src/components/tabbed-sidebar/index.js +70 -0
- package/src/components/tabbed-sidebar/style.scss +53 -0
- package/src/components/url-popover/index.js +3 -0
- package/src/hooks/background.js +25 -10
- package/src/hooks/block-hooks.js +9 -16
- package/src/hooks/block-style-variation.js +226 -9
- package/src/hooks/duotone.js +16 -12
- package/src/hooks/grid-visualizer.js +64 -0
- package/src/hooks/index.js +3 -0
- package/src/hooks/layout-child.js +75 -39
- package/src/hooks/position.js +3 -10
- package/src/hooks/test/get-variation-styles-with-ref-values.js +91 -0
- package/src/hooks/use-bindings-attributes.js +18 -4
- package/src/hooks/utils.js +5 -1
- package/src/layouts/constrained.js +43 -2
- package/src/layouts/grid.js +175 -88
- package/src/lock-unlock.js +1 -1
- package/src/private-apis.js +12 -1
- package/src/store/actions.js +21 -1
- package/src/store/defaults.js +0 -2
- package/src/store/defaults.native.js +0 -3
- package/src/store/private-keys.js +1 -0
- package/src/style.scss +2 -2
- package/src/utils/format-font-style.js +40 -0
- package/src/utils/format-font-weight.js +63 -0
- package/src/utils/get-editor-region.js +31 -0
- package/src/utils/get-font-styles-and-weights.js +191 -0
- package/src/utils/pasting.js +5 -12
- package/src/utils/test/format-font-style.js +34 -0
- package/src/utils/test/format-font-weight.js +66 -0
- package/src/utils/test/get-font-styles-and-weights.js +513 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/build/components/grid-visualizer/grid-item-resizer.js.map +0 -1
- package/build/components/grid-visualizer/grid-visualizer.js +0 -92
- package/build/components/grid-visualizer/grid-visualizer.js.map +0 -1
- package/build/components/grid-visualizer/index.js.map +0 -1
- package/build/components/grid-visualizer/utils.js +0 -10
- package/build/components/grid-visualizer/utils.js.map +0 -1
- package/build-module/components/grid-visualizer/grid-item-resizer.js.map +0 -1
- package/build-module/components/grid-visualizer/grid-visualizer.js +0 -84
- package/build-module/components/grid-visualizer/grid-visualizer.js.map +0 -1
- package/build-module/components/grid-visualizer/index.js +0 -3
- package/build-module/components/grid-visualizer/index.js.map +0 -1
- package/build-module/components/grid-visualizer/utils.js +0 -4
- package/build-module/components/grid-visualizer/utils.js.map +0 -1
- package/src/components/grid-visualizer/grid-visualizer.js +0 -101
- package/src/components/grid-visualizer/index.js +0 -2
- package/src/components/grid-visualizer/style.scss +0 -34
- package/src/components/grid-visualizer/utils.js +0 -5
- package/src/hooks/position.scss +0 -18
- /package/src/components/font-sizes/{README.MD → README.md} +0 -0
package/build-style/style.css
CHANGED
|
@@ -407,6 +407,17 @@ iframe[name=editor-canvas] {
|
|
|
407
407
|
left: 50%;
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
+
.zoom-out-toolbar .block-editor-block-mover-button.block-editor-block-mover-button:focus-visible::before,
|
|
411
|
+
.zoom-out-toolbar .zoom-out-toolbar-button:focus::before,
|
|
412
|
+
.zoom-out-toolbar .block-editor-block-toolbar-shuffle:focus::before,
|
|
413
|
+
.zoom-out-toolbar .block-selection-button_drag-handle:focus::before {
|
|
414
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
415
|
+
}
|
|
416
|
+
.zoom-out-toolbar .block-editor-block-mover {
|
|
417
|
+
background: none;
|
|
418
|
+
border: none;
|
|
419
|
+
}
|
|
420
|
+
|
|
410
421
|
.block-editor-block-lock-modal {
|
|
411
422
|
z-index: 1000001;
|
|
412
423
|
}
|
|
@@ -416,14 +427,22 @@ iframe[name=editor-canvas] {
|
|
|
416
427
|
}
|
|
417
428
|
}
|
|
418
429
|
|
|
430
|
+
.block-editor-block-lock-modal__options {
|
|
431
|
+
margin-top: 16px;
|
|
432
|
+
}
|
|
433
|
+
.block-editor-block-lock-modal__options legend {
|
|
434
|
+
margin-bottom: 16px;
|
|
435
|
+
padding: 0;
|
|
436
|
+
}
|
|
437
|
+
|
|
419
438
|
.block-editor-block-lock-modal__checklist {
|
|
420
439
|
margin: 0;
|
|
421
440
|
}
|
|
422
441
|
|
|
423
|
-
.block-editor-block-lock-modal__options-
|
|
442
|
+
.block-editor-block-lock-modal__options-all {
|
|
424
443
|
padding: 12px 0;
|
|
425
444
|
}
|
|
426
|
-
.block-editor-block-lock-modal__options-
|
|
445
|
+
.block-editor-block-lock-modal__options-all .components-checkbox-control__label {
|
|
427
446
|
font-weight: 600;
|
|
428
447
|
}
|
|
429
448
|
|
|
@@ -885,6 +904,23 @@ iframe[name=editor-canvas] {
|
|
|
885
904
|
.show-icon-labels .block-editor-patterns__grid-pagination .components-button::before {
|
|
886
905
|
content: attr(aria-label);
|
|
887
906
|
}
|
|
907
|
+
@media screen and (min-width: 960px) {
|
|
908
|
+
.show-icon-labels .block-editor-patterns__grid-pagination {
|
|
909
|
+
flex-direction: row;
|
|
910
|
+
}
|
|
911
|
+
.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous,
|
|
912
|
+
.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next {
|
|
913
|
+
flex-direction: row;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.block-editor-block-patterns-list .block-editor-patterns__grid-pagination {
|
|
918
|
+
flex-direction: column;
|
|
919
|
+
}
|
|
920
|
+
.block-editor-block-patterns-list .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous,
|
|
921
|
+
.block-editor-block-patterns-list .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next {
|
|
922
|
+
flex-direction: column;
|
|
923
|
+
}
|
|
888
924
|
|
|
889
925
|
.components-popover.block-editor-block-popover {
|
|
890
926
|
z-index: 31;
|
|
@@ -1510,13 +1546,6 @@ iframe[name=editor-canvas] {
|
|
|
1510
1546
|
.block-editor-date-format-picker__custom-format-select-control__custom-option {
|
|
1511
1547
|
border-top: 1px solid #ddd;
|
|
1512
1548
|
}
|
|
1513
|
-
.block-editor-date-format-picker__custom-format-select-control__custom-option.has-hint {
|
|
1514
|
-
grid-template-columns: auto 30px;
|
|
1515
|
-
}
|
|
1516
|
-
.block-editor-date-format-picker__custom-format-select-control__custom-option .components-custom-select-control__item-hint {
|
|
1517
|
-
grid-row: 2;
|
|
1518
|
-
text-align: left;
|
|
1519
|
-
}
|
|
1520
1549
|
|
|
1521
1550
|
.block-editor-duotone-control__popover > .components-popover__content {
|
|
1522
1551
|
padding: 16px;
|
|
@@ -1536,7 +1565,7 @@ iframe[name=editor-canvas] {
|
|
|
1536
1565
|
background: linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
1537
1566
|
}
|
|
1538
1567
|
|
|
1539
|
-
.components-font-appearance-control
|
|
1568
|
+
.components-font-appearance-control [role=option] {
|
|
1540
1569
|
color: #1e1e1e;
|
|
1541
1570
|
text-transform: capitalize;
|
|
1542
1571
|
}
|
|
@@ -1605,40 +1634,76 @@ iframe[name=editor-canvas] {
|
|
|
1605
1634
|
}
|
|
1606
1635
|
|
|
1607
1636
|
.block-editor-global-styles-background-panel__inspector-media-replace-container {
|
|
1608
|
-
|
|
1637
|
+
border: 1px solid #ddd;
|
|
1638
|
+
border-radius: 2px;
|
|
1639
|
+
grid-column: 1/-1;
|
|
1609
1640
|
}
|
|
1610
|
-
.block-editor-global-styles-background-panel__inspector-media-replace-container
|
|
1641
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-container.is-open {
|
|
1642
|
+
background-color: #f0f0f0;
|
|
1643
|
+
}
|
|
1644
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item {
|
|
1645
|
+
flex-grow: 1;
|
|
1646
|
+
border: 0;
|
|
1647
|
+
}
|
|
1648
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown {
|
|
1649
|
+
display: block;
|
|
1650
|
+
}
|
|
1651
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-preview-inner {
|
|
1652
|
+
height: 100%;
|
|
1653
|
+
}
|
|
1654
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown {
|
|
1655
|
+
display: block;
|
|
1656
|
+
height: 36px;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item {
|
|
1660
|
+
border: 1px solid #ddd;
|
|
1661
|
+
border-radius: 2px;
|
|
1662
|
+
grid-column: 1/-1;
|
|
1663
|
+
}
|
|
1664
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item .components-drop-zone__content-icon {
|
|
1611
1665
|
display: none;
|
|
1612
1666
|
}
|
|
1613
|
-
.block-editor-global-styles-background-
|
|
1667
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown {
|
|
1668
|
+
display: block;
|
|
1669
|
+
height: 36px;
|
|
1670
|
+
}
|
|
1671
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button {
|
|
1614
1672
|
color: #1e1e1e;
|
|
1615
|
-
box-shadow: inset 0 0 0 1px #ccc;
|
|
1616
1673
|
width: 100%;
|
|
1617
1674
|
display: block;
|
|
1618
|
-
height: 40px;
|
|
1619
1675
|
}
|
|
1620
|
-
.block-editor-global-styles-background-
|
|
1676
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:hover {
|
|
1621
1677
|
color: var(--wp-admin-theme-color);
|
|
1622
1678
|
}
|
|
1623
|
-
.block-editor-global-styles-background-
|
|
1679
|
+
.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:focus {
|
|
1624
1680
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1625
1681
|
}
|
|
1626
|
-
|
|
1682
|
+
|
|
1683
|
+
.block-editor-global-styles-background-panel__image-preview-content,
|
|
1684
|
+
.block-editor-global-styles-background-panel__dropdown-toggle {
|
|
1685
|
+
height: 100%;
|
|
1686
|
+
width: 100%;
|
|
1687
|
+
padding-left: 12px;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
.block-editor-global-styles-background-panel__dropdown-toggle {
|
|
1691
|
+
cursor: pointer;
|
|
1692
|
+
background: transparent;
|
|
1693
|
+
border: none;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
.block-editor-global-styles-background-panel__inspector-media-replace-title {
|
|
1627
1697
|
word-break: break-all;
|
|
1628
1698
|
white-space: normal;
|
|
1629
1699
|
text-align: start;
|
|
1630
1700
|
text-align-last: center;
|
|
1631
1701
|
}
|
|
1632
|
-
.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown {
|
|
1633
|
-
display: block;
|
|
1634
|
-
}
|
|
1635
1702
|
|
|
1636
|
-
.block-editor-global-styles-background-panel__inspector-image-indicator-wrapper {
|
|
1637
|
-
display: block;
|
|
1703
|
+
.block-editor-global-styles-background-panel__inspector-preview-inner .block-editor-global-styles-background-panel__inspector-image-indicator-wrapper {
|
|
1638
1704
|
width: 20px;
|
|
1639
1705
|
height: 20px;
|
|
1640
|
-
|
|
1641
|
-
background: #fff;
|
|
1706
|
+
min-width: auto;
|
|
1642
1707
|
}
|
|
1643
1708
|
|
|
1644
1709
|
.block-editor-global-styles-background-panel__inspector-image-indicator {
|
|
@@ -1663,36 +1728,116 @@ iframe[name=editor-canvas] {
|
|
|
1663
1728
|
box-sizing: inherit;
|
|
1664
1729
|
}
|
|
1665
1730
|
|
|
1666
|
-
.block-editor-
|
|
1667
|
-
|
|
1731
|
+
.block-editor-global-styles-background-panel__dropdown-content-wrapper {
|
|
1732
|
+
min-width: 260px;
|
|
1733
|
+
overflow-x: hidden;
|
|
1734
|
+
}
|
|
1735
|
+
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-base-control__help,
|
|
1736
|
+
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-toggle-control {
|
|
1737
|
+
margin-bottom: 0;
|
|
1738
|
+
}
|
|
1739
|
+
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker-wrapper {
|
|
1740
|
+
background-color: #f0f0f0;
|
|
1741
|
+
width: 100%;
|
|
1742
|
+
border-radius: 2px;
|
|
1743
|
+
border: 1px solid #ddd;
|
|
1744
|
+
}
|
|
1745
|
+
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker__media--image {
|
|
1746
|
+
max-height: 180px;
|
|
1668
1747
|
}
|
|
1669
1748
|
|
|
1670
|
-
.block-editor-
|
|
1671
|
-
|
|
1749
|
+
.block-editor-global-styles-background-panel__hidden-tools-panel-item {
|
|
1750
|
+
height: 0;
|
|
1751
|
+
width: 0;
|
|
1752
|
+
position: absolute;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
.modal-open .block-editor-global-styles-background-panel__popover {
|
|
1756
|
+
z-index: 159890;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
.block-editor-global-styles-background-panel__media-replace-popover .components-popover__content {
|
|
1760
|
+
width: 226px;
|
|
1761
|
+
}
|
|
1762
|
+
.block-editor-global-styles-background-panel__media-replace-popover .components-button {
|
|
1763
|
+
padding: 0 8px;
|
|
1764
|
+
}
|
|
1765
|
+
.block-editor-global-styles-background-panel__media-replace-popover .components-button .components-menu-items__item-icon.has-icon-right {
|
|
1766
|
+
margin-left: 16px;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer {
|
|
1770
|
+
z-index: 30;
|
|
1771
|
+
}
|
|
1772
|
+
.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .components-popover__content * {
|
|
1773
|
+
pointer-events: none;
|
|
1774
|
+
}
|
|
1775
|
+
.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer.is-dropping-allowed .block-editor-grid-visualizer__drop-zone {
|
|
1776
|
+
pointer-events: all;
|
|
1777
|
+
}
|
|
1778
|
+
.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .block-editor-inserter * {
|
|
1779
|
+
pointer-events: auto;
|
|
1672
1780
|
}
|
|
1673
1781
|
|
|
1674
1782
|
.block-editor-grid-visualizer__grid {
|
|
1675
1783
|
display: grid;
|
|
1676
1784
|
}
|
|
1677
1785
|
|
|
1678
|
-
.block-editor-grid-
|
|
1679
|
-
|
|
1680
|
-
|
|
1786
|
+
.block-editor-grid-visualizer__cell {
|
|
1787
|
+
display: grid;
|
|
1788
|
+
position: relative;
|
|
1789
|
+
}
|
|
1790
|
+
.block-editor-grid-visualizer__cell .block-editor-inserter {
|
|
1791
|
+
color: inherit;
|
|
1792
|
+
z-index: 32;
|
|
1793
|
+
position: absolute;
|
|
1794
|
+
top: 0;
|
|
1795
|
+
bottom: 0;
|
|
1796
|
+
left: 0;
|
|
1797
|
+
right: 0;
|
|
1798
|
+
overflow: hidden;
|
|
1799
|
+
}
|
|
1800
|
+
.block-editor-grid-visualizer__cell .block-editor-inserter .block-editor-grid-visualizer__appender {
|
|
1801
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 20%, #0000);
|
|
1802
|
+
color: inherit;
|
|
1803
|
+
overflow: hidden;
|
|
1804
|
+
height: 100%;
|
|
1805
|
+
width: 100%;
|
|
1806
|
+
padding: 0 !important;
|
|
1807
|
+
opacity: 0;
|
|
1808
|
+
}
|
|
1809
|
+
.block-editor-grid-visualizer__cell.is-highlighted .block-editor-inserter,
|
|
1810
|
+
.block-editor-grid-visualizer__cell.is-highlighted .block-editor-grid-visualizer__drop-zone {
|
|
1811
|
+
background: var(--wp-admin-theme-color);
|
|
1812
|
+
}
|
|
1813
|
+
.block-editor-grid-visualizer__cell:hover .block-editor-grid-visualizer__appender,
|
|
1814
|
+
.block-editor-grid-visualizer__cell .block-editor-grid-visualizer__appender:focus {
|
|
1815
|
+
opacity: 1;
|
|
1816
|
+
background-color: color-mix(in srgb, currentColor 20%, #0000);
|
|
1681
1817
|
}
|
|
1682
1818
|
|
|
1683
|
-
.block-editor-grid-
|
|
1684
|
-
|
|
1819
|
+
.block-editor-grid-visualizer__drop-zone {
|
|
1820
|
+
background: rgba(204, 204, 204, 0.1);
|
|
1821
|
+
width: 100%;
|
|
1822
|
+
height: 100%;
|
|
1823
|
+
grid-column: 1;
|
|
1824
|
+
grid-row: 1;
|
|
1825
|
+
min-width: 8px;
|
|
1826
|
+
min-height: 8px;
|
|
1685
1827
|
}
|
|
1686
1828
|
|
|
1687
|
-
.block-editor-grid-item-resizer
|
|
1688
|
-
|
|
1829
|
+
.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer {
|
|
1830
|
+
z-index: 30;
|
|
1831
|
+
}
|
|
1832
|
+
.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer .components-popover__content * {
|
|
1833
|
+
pointer-events: none;
|
|
1689
1834
|
}
|
|
1690
1835
|
|
|
1691
1836
|
.block-editor-grid-item-resizer__box {
|
|
1692
1837
|
border: 1px solid var(--wp-admin-theme-color);
|
|
1693
1838
|
}
|
|
1694
|
-
.block-editor-grid-item-resizer__box .components-resizable-box__handle {
|
|
1695
|
-
pointer-events: all
|
|
1839
|
+
.block-editor-grid-item-resizer__box .components-resizable-box__handle.components-resizable-box__handle.components-resizable-box__handle {
|
|
1840
|
+
pointer-events: all;
|
|
1696
1841
|
}
|
|
1697
1842
|
|
|
1698
1843
|
.block-editor-height-control {
|
|
@@ -2888,8 +3033,7 @@ iframe[name=editor-canvas] {
|
|
|
2888
3033
|
.block-editor-responsive-block-control .components-base-control__help {
|
|
2889
3034
|
border: 0;
|
|
2890
3035
|
clip: rect(1px, 1px, 1px, 1px);
|
|
2891
|
-
|
|
2892
|
-
clip-path: inset(50%);
|
|
3036
|
+
clip-path: inset(50%);
|
|
2893
3037
|
height: 1px;
|
|
2894
3038
|
margin: -1px;
|
|
2895
3039
|
overflow: hidden;
|
|
@@ -2967,6 +3111,58 @@ iframe[name=editor-canvas] {
|
|
|
2967
3111
|
z-index: 100000;
|
|
2968
3112
|
}
|
|
2969
3113
|
|
|
3114
|
+
.block-editor-tabbed-sidebar {
|
|
3115
|
+
height: 100%;
|
|
3116
|
+
display: flex;
|
|
3117
|
+
flex-direction: column;
|
|
3118
|
+
flex-grow: 1;
|
|
3119
|
+
overflow: hidden;
|
|
3120
|
+
}
|
|
3121
|
+
@media (min-width: 782px) {
|
|
3122
|
+
.block-editor-tabbed-sidebar {
|
|
3123
|
+
width: 350px;
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
|
|
3127
|
+
.block-editor-tabbed-sidebar__tablist-and-close-button {
|
|
3128
|
+
border-bottom: 1px solid #ddd;
|
|
3129
|
+
display: flex;
|
|
3130
|
+
justify-content: space-between;
|
|
3131
|
+
padding-right: 12px;
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
.block-editor-tabbed-sidebar__close-button {
|
|
3135
|
+
background: #fff;
|
|
3136
|
+
/* stylelint-disable-next-line property-disallowed-list -- This should be removed when https://github.com/WordPress/gutenberg/issues/59013 is fixed. */
|
|
3137
|
+
order: 1;
|
|
3138
|
+
align-self: center;
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
.block-editor-tabbed-sidebar__tablist {
|
|
3142
|
+
box-sizing: border-box;
|
|
3143
|
+
flex-grow: 1;
|
|
3144
|
+
margin-bottom: -1px;
|
|
3145
|
+
width: 100%;
|
|
3146
|
+
}
|
|
3147
|
+
|
|
3148
|
+
.block-editor-tabbed-sidebar__tab {
|
|
3149
|
+
flex-grow: 1;
|
|
3150
|
+
margin-bottom: -1px;
|
|
3151
|
+
}
|
|
3152
|
+
.block-editor-tabbed-sidebar__tab[id$=reusable] {
|
|
3153
|
+
flex-grow: inherit;
|
|
3154
|
+
padding-left: 16px;
|
|
3155
|
+
padding-right: 16px;
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3158
|
+
.block-editor-tabbed-sidebar__tabpanel {
|
|
3159
|
+
display: flex;
|
|
3160
|
+
flex-grow: 1;
|
|
3161
|
+
flex-direction: column;
|
|
3162
|
+
overflow-y: auto;
|
|
3163
|
+
scrollbar-gutter: auto;
|
|
3164
|
+
}
|
|
3165
|
+
|
|
2970
3166
|
.block-editor-tool-selector__help {
|
|
2971
3167
|
margin-top: 8px;
|
|
2972
3168
|
margin-left: -8px;
|
|
@@ -3349,20 +3545,6 @@ iframe[name=editor-canvas] {
|
|
|
3349
3545
|
margin-bottom: 16px;
|
|
3350
3546
|
}
|
|
3351
3547
|
|
|
3352
|
-
.block-editor-hooks__position-selection__select-control .components-custom-select-control__hint {
|
|
3353
|
-
display: none;
|
|
3354
|
-
}
|
|
3355
|
-
|
|
3356
|
-
.block-editor-hooks__position-selection__select-control__option.has-hint {
|
|
3357
|
-
grid-template-columns: auto 30px;
|
|
3358
|
-
line-height: 1.4;
|
|
3359
|
-
margin-bottom: 0;
|
|
3360
|
-
}
|
|
3361
|
-
.block-editor-hooks__position-selection__select-control__option .components-custom-select-control__item-hint {
|
|
3362
|
-
grid-row: 2;
|
|
3363
|
-
text-align: left;
|
|
3364
|
-
}
|
|
3365
|
-
|
|
3366
3548
|
.block-editor__spacing-visualizer {
|
|
3367
3549
|
position: absolute;
|
|
3368
3550
|
top: 0;
|
|
@@ -3406,7 +3588,6 @@ iframe[name=editor-canvas] {
|
|
|
3406
3588
|
.block-editor-block-toolbar .components-toolbar-group,
|
|
3407
3589
|
.block-editor-block-toolbar .components-toolbar {
|
|
3408
3590
|
background: none;
|
|
3409
|
-
line-height: 0;
|
|
3410
3591
|
margin-top: -1px;
|
|
3411
3592
|
margin-bottom: -1px;
|
|
3412
3593
|
border: 0;
|
|
@@ -3516,13 +3697,7 @@ iframe[name=editor-canvas] {
|
|
|
3516
3697
|
}
|
|
3517
3698
|
|
|
3518
3699
|
.block-editor-block-toolbar__slot {
|
|
3519
|
-
display: inline-
|
|
3520
|
-
line-height: 0;
|
|
3521
|
-
}
|
|
3522
|
-
@supports (position: sticky) {
|
|
3523
|
-
.block-editor-block-toolbar__slot {
|
|
3524
|
-
display: inline-flex;
|
|
3525
|
-
}
|
|
3700
|
+
display: inline-flex;
|
|
3526
3701
|
}
|
|
3527
3702
|
|
|
3528
3703
|
.show-icon-labels .block-editor-block-toolbar .components-button.has-icon {
|
|
@@ -3623,20 +3798,13 @@ iframe[name=editor-canvas] {
|
|
|
3623
3798
|
}
|
|
3624
3799
|
|
|
3625
3800
|
.block-editor-inserter__main-area {
|
|
3626
|
-
position: relative;
|
|
3627
|
-
display: flex;
|
|
3628
|
-
flex-direction: column;
|
|
3629
3801
|
height: 100%;
|
|
3630
3802
|
gap: 16px;
|
|
3803
|
+
position: relative;
|
|
3631
3804
|
}
|
|
3632
3805
|
.block-editor-inserter__main-area.show-as-tabs {
|
|
3633
3806
|
gap: 0;
|
|
3634
3807
|
}
|
|
3635
|
-
@media (min-width: 782px) {
|
|
3636
|
-
.block-editor-inserter__main-area {
|
|
3637
|
-
width: 350px;
|
|
3638
|
-
}
|
|
3639
|
-
}
|
|
3640
3808
|
|
|
3641
3809
|
.block-editor-inserter__popover.is-quick .components-popover__content {
|
|
3642
3810
|
border: none;
|
|
@@ -3711,42 +3879,6 @@ iframe[name=editor-canvas] {
|
|
|
3711
3879
|
padding: 16px 16px 0 16px;
|
|
3712
3880
|
}
|
|
3713
3881
|
|
|
3714
|
-
.block-editor-inserter__tabs {
|
|
3715
|
-
flex-grow: 1;
|
|
3716
|
-
display: flex;
|
|
3717
|
-
flex-direction: column;
|
|
3718
|
-
overflow: hidden;
|
|
3719
|
-
}
|
|
3720
|
-
.block-editor-inserter__tabs .block-editor-inserter__tablist-and-close-button {
|
|
3721
|
-
border-bottom: 1px solid #ddd;
|
|
3722
|
-
padding-right: 12px;
|
|
3723
|
-
display: flex;
|
|
3724
|
-
justify-content: space-between;
|
|
3725
|
-
}
|
|
3726
|
-
.block-editor-inserter__tabs .block-editor-inserter__close-button {
|
|
3727
|
-
/* stylelint-disable-next-line property-disallowed-list -- This should be refactored to avoid order if possible */
|
|
3728
|
-
order: 1;
|
|
3729
|
-
align-self: center;
|
|
3730
|
-
}
|
|
3731
|
-
.block-editor-inserter__tabs .block-editor-inserter__tablist {
|
|
3732
|
-
width: 100%;
|
|
3733
|
-
margin-bottom: -1px;
|
|
3734
|
-
}
|
|
3735
|
-
.block-editor-inserter__tabs .block-editor-inserter__tablist button[role=tab] {
|
|
3736
|
-
flex-grow: 1;
|
|
3737
|
-
}
|
|
3738
|
-
.block-editor-inserter__tabs .block-editor-inserter__tablist button[role=tab][id$=reusable] {
|
|
3739
|
-
flex-grow: inherit;
|
|
3740
|
-
padding-left: 16px;
|
|
3741
|
-
padding-right: 16px;
|
|
3742
|
-
}
|
|
3743
|
-
.block-editor-inserter__tabs .block-editor-inserter__tabpanel {
|
|
3744
|
-
display: flex;
|
|
3745
|
-
flex-grow: 1;
|
|
3746
|
-
flex-direction: column;
|
|
3747
|
-
overflow-y: auto;
|
|
3748
|
-
}
|
|
3749
|
-
|
|
3750
3882
|
.block-editor-inserter__no-tab-container {
|
|
3751
3883
|
overflow-y: auto;
|
|
3752
3884
|
flex-grow: 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.3.0",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -36,35 +36,35 @@
|
|
|
36
36
|
"@emotion/react": "^11.7.1",
|
|
37
37
|
"@emotion/styled": "^11.6.0",
|
|
38
38
|
"@react-spring/web": "^9.4.5",
|
|
39
|
-
"@wordpress/a11y": "^4.
|
|
40
|
-
"@wordpress/api-fetch": "^7.
|
|
41
|
-
"@wordpress/blob": "^4.
|
|
42
|
-
"@wordpress/blocks": "^13.
|
|
43
|
-
"@wordpress/commands": "^1.
|
|
44
|
-
"@wordpress/components": "^28.
|
|
45
|
-
"@wordpress/compose": "^7.
|
|
46
|
-
"@wordpress/data": "^10.
|
|
47
|
-
"@wordpress/date": "^5.
|
|
48
|
-
"@wordpress/deprecated": "^4.
|
|
49
|
-
"@wordpress/dom": "^4.
|
|
50
|
-
"@wordpress/element": "^6.
|
|
51
|
-
"@wordpress/escape-html": "^3.
|
|
52
|
-
"@wordpress/hooks": "^4.
|
|
53
|
-
"@wordpress/html-entities": "^4.
|
|
54
|
-
"@wordpress/i18n": "^5.
|
|
55
|
-
"@wordpress/icons": "^10.
|
|
56
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
57
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
58
|
-
"@wordpress/keycodes": "^4.
|
|
59
|
-
"@wordpress/notices": "^5.
|
|
60
|
-
"@wordpress/preferences": "^4.
|
|
61
|
-
"@wordpress/private-apis": "^1.
|
|
62
|
-
"@wordpress/rich-text": "^7.
|
|
63
|
-
"@wordpress/style-engine": "^2.
|
|
64
|
-
"@wordpress/token-list": "^3.
|
|
65
|
-
"@wordpress/url": "^4.
|
|
66
|
-
"@wordpress/warning": "^3.
|
|
67
|
-
"@wordpress/wordcount": "^4.
|
|
39
|
+
"@wordpress/a11y": "^4.3.0",
|
|
40
|
+
"@wordpress/api-fetch": "^7.3.0",
|
|
41
|
+
"@wordpress/blob": "^4.3.0",
|
|
42
|
+
"@wordpress/blocks": "^13.3.0",
|
|
43
|
+
"@wordpress/commands": "^1.3.0",
|
|
44
|
+
"@wordpress/components": "^28.3.0",
|
|
45
|
+
"@wordpress/compose": "^7.3.0",
|
|
46
|
+
"@wordpress/data": "^10.3.0",
|
|
47
|
+
"@wordpress/date": "^5.3.0",
|
|
48
|
+
"@wordpress/deprecated": "^4.3.0",
|
|
49
|
+
"@wordpress/dom": "^4.3.0",
|
|
50
|
+
"@wordpress/element": "^6.3.0",
|
|
51
|
+
"@wordpress/escape-html": "^3.3.0",
|
|
52
|
+
"@wordpress/hooks": "^4.3.0",
|
|
53
|
+
"@wordpress/html-entities": "^4.3.0",
|
|
54
|
+
"@wordpress/i18n": "^5.3.0",
|
|
55
|
+
"@wordpress/icons": "^10.3.0",
|
|
56
|
+
"@wordpress/is-shallow-equal": "^5.3.0",
|
|
57
|
+
"@wordpress/keyboard-shortcuts": "^5.3.0",
|
|
58
|
+
"@wordpress/keycodes": "^4.3.0",
|
|
59
|
+
"@wordpress/notices": "^5.3.0",
|
|
60
|
+
"@wordpress/preferences": "^4.3.0",
|
|
61
|
+
"@wordpress/private-apis": "^1.3.0",
|
|
62
|
+
"@wordpress/rich-text": "^7.3.0",
|
|
63
|
+
"@wordpress/style-engine": "^2.3.0",
|
|
64
|
+
"@wordpress/token-list": "^3.3.0",
|
|
65
|
+
"@wordpress/url": "^4.3.0",
|
|
66
|
+
"@wordpress/warning": "^3.3.0",
|
|
67
|
+
"@wordpress/wordcount": "^4.3.0",
|
|
68
68
|
"change-case": "^4.1.2",
|
|
69
69
|
"clsx": "^2.1.1",
|
|
70
70
|
"colord": "^2.7.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"memize": "^2.1.0",
|
|
75
75
|
"postcss": "^8.4.21",
|
|
76
76
|
"postcss-prefixwrap": "^1.41.0",
|
|
77
|
-
"postcss-urlrebase": "^1.
|
|
77
|
+
"postcss-urlrebase": "^1.4.0",
|
|
78
78
|
"react-autosize-textarea": "^7.1.0",
|
|
79
79
|
"react-easy-crop": "^5.0.6",
|
|
80
80
|
"remove-accents": "^0.5.0"
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "122867d355ca4edc63d3a3bbd9411d3a2e1458df"
|
|
90
90
|
}
|
|
@@ -12,6 +12,8 @@ import { chevronRightSmall, Icon } from '@wordpress/icons';
|
|
|
12
12
|
import BlockTitle from '../block-title';
|
|
13
13
|
import { store as blockEditorStore } from '../../store';
|
|
14
14
|
import { unlock } from '../../lock-unlock';
|
|
15
|
+
import { __unstableUseBlockRef as useBlockRef } from '../block-list/use-block-props/use-block-refs';
|
|
16
|
+
import getEditorRegion from '../../utils/get-editor-region';
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
19
|
* Block breadcrumb component, displaying the hierarchy of the current block selection as a breadcrumb.
|
|
@@ -37,6 +39,10 @@ function BlockBreadcrumb( { rootLabelText } ) {
|
|
|
37
39
|
}, [] );
|
|
38
40
|
const rootLabel = rootLabelText || __( 'Document' );
|
|
39
41
|
|
|
42
|
+
// We don't care about this specific ref, but this is a way
|
|
43
|
+
// to get a ref within the editor canvas so we can focus it later.
|
|
44
|
+
const blockRef = useBlockRef( clientId );
|
|
45
|
+
|
|
40
46
|
/*
|
|
41
47
|
* Disable reason: The `list` ARIA role is redundant but
|
|
42
48
|
* Safari+VoiceOver won't announce the list otherwise.
|
|
@@ -60,7 +66,16 @@ function BlockBreadcrumb( { rootLabelText } ) {
|
|
|
60
66
|
<Button
|
|
61
67
|
className="block-editor-block-breadcrumb__button"
|
|
62
68
|
variant="tertiary"
|
|
63
|
-
onClick={
|
|
69
|
+
onClick={ () => {
|
|
70
|
+
// Find the block editor wrapper for the selected block
|
|
71
|
+
const blockEditor = blockRef.current?.closest(
|
|
72
|
+
'.editor-styles-wrapper'
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
clearSelectedBlock();
|
|
76
|
+
|
|
77
|
+
getEditorRegion( blockEditor )?.focus();
|
|
78
|
+
} }
|
|
64
79
|
>
|
|
65
80
|
{ rootLabel }
|
|
66
81
|
</Button>
|