@wordpress/block-editor 17.0.2-next.v.202608281122.0 → 17.1.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 +29 -1
- package/build/components/background-image-control/index.cjs +18 -1
- package/build/components/background-image-control/index.cjs.map +2 -2
- package/build/components/block-allowed-blocks/modal.cjs +2 -1
- package/build/components/block-allowed-blocks/modal.cjs.map +3 -3
- package/build/components/block-edit/edit.cjs.map +1 -1
- package/build/components/block-inspector/index.cjs +3 -12
- package/build/components/block-inspector/index.cjs.map +2 -2
- package/build/components/block-list/use-block-props/use-is-hovered.cjs +17 -4
- package/build/components/block-list/use-block-props/use-is-hovered.cjs.map +2 -2
- package/build/components/block-preview/index.cjs +1 -2
- package/build/components/block-preview/index.cjs.map +2 -2
- package/build/components/block-switcher/index.cjs +2 -1
- package/build/components/block-switcher/index.cjs.map +3 -3
- package/build/components/block-toolbar/pattern-overrides-dropdown.cjs +2 -1
- package/build/components/block-toolbar/pattern-overrides-dropdown.cjs.map +3 -3
- package/build/components/global-styles/border-panel.cjs +19 -42
- package/build/components/global-styles/border-panel.cjs.map +2 -2
- package/build/components/global-styles/image-settings-panel.cjs.map +1 -1
- package/build/components/iframe/index.cjs.map +1 -1
- package/build/components/inserter/hooks/use-patterns-paging.cjs.map +1 -1
- package/build/components/inserter-draggable-blocks/index.cjs.map +1 -1
- package/build/components/inspector-controls-tabs/content-tab.cjs +2 -3
- package/build/components/inspector-controls-tabs/content-tab.cjs.map +2 -2
- package/build/components/inspector-controls-tabs/styles-tab.cjs +1 -3
- package/build/components/inspector-controls-tabs/styles-tab.cjs.map +2 -2
- package/build/components/inspector-controls-tabs/use-inspector-controls-tabs.cjs +1 -2
- package/build/components/inspector-controls-tabs/use-inspector-controls-tabs.cjs.map +2 -2
- package/build/components/inspector-popover-header/index.cjs +5 -4
- package/build/components/inspector-popover-header/index.cjs.map +3 -3
- package/build/components/link-control/index.cjs.map +2 -2
- package/build/components/link-control/search-input.cjs.map +1 -1
- package/build/components/list-view/block-select-button.cjs +9 -1
- package/build/components/list-view/block-select-button.cjs.map +2 -2
- package/build/components/list-view/block.cjs +2 -1
- package/build/components/list-view/block.cjs.map +2 -2
- package/build/components/list-view/use-list-view-drop-zone.cjs.map +1 -1
- package/build/components/media-replace-flow/index.cjs +4 -1
- package/build/components/media-replace-flow/index.cjs.map +2 -2
- package/build/components/navigable-toolbar/index.cjs +3 -0
- package/build/components/navigable-toolbar/index.cjs.map +2 -2
- package/build/components/rich-text/event-listeners/enter.cjs +23 -11
- package/build/components/rich-text/event-listeners/enter.cjs.map +2 -2
- package/build/components/rich-text/event-listeners/index.cjs +0 -2
- package/build/components/rich-text/event-listeners/index.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/input-rules.cjs +4 -2
- package/build/components/rich-text/event-listeners/input-rules.cjs.map +2 -2
- package/build/components/use-block-drop-zone/index.cjs.map +1 -1
- package/build/components/writing-flow/index.cjs +5 -0
- package/build/components/writing-flow/index.cjs.map +3 -3
- package/build/components/writing-flow/use-arrow-nav.cjs.map +1 -1
- package/build/components/writing-flow/use-input.cjs +12 -2
- package/build/components/writing-flow/use-input.cjs.map +2 -2
- package/build/components/writing-flow/use-tab-nav.cjs +84 -41
- package/build/components/writing-flow/use-tab-nav.cjs.map +3 -3
- package/build/components/{rich-text/event-listeners/undo-automatic-change.cjs → writing-flow/use-undo-automatic-change.cjs} +18 -15
- package/build/components/writing-flow/use-undo-automatic-change.cjs.map +7 -0
- package/build/hooks/border.cjs +2 -46
- package/build/hooks/border.cjs.map +2 -2
- package/build/hooks/generate-fields-from-attributes.cjs.map +1 -1
- package/build/hooks/index.cjs +0 -2
- package/build/hooks/index.cjs.map +3 -3
- package/build/hooks/style.cjs +2 -2
- package/build/hooks/style.cjs.map +2 -2
- package/build/layouts/flex.cjs +3 -0
- package/build/layouts/flex.cjs.map +2 -2
- package/build/store/actions.cjs +12 -9
- package/build/store/actions.cjs.map +3 -3
- package/build-module/components/background-image-control/index.mjs +18 -1
- package/build-module/components/background-image-control/index.mjs.map +2 -2
- package/build-module/components/block-allowed-blocks/modal.mjs +2 -2
- package/build-module/components/block-allowed-blocks/modal.mjs.map +2 -2
- package/build-module/components/block-edit/edit.mjs.map +1 -1
- package/build-module/components/block-inspector/index.mjs +3 -12
- package/build-module/components/block-inspector/index.mjs.map +2 -2
- package/build-module/components/block-list/use-block-props/use-is-hovered.mjs +17 -4
- package/build-module/components/block-list/use-block-props/use-is-hovered.mjs.map +2 -2
- package/build-module/components/block-preview/index.mjs +1 -2
- package/build-module/components/block-preview/index.mjs.map +2 -2
- package/build-module/components/block-switcher/index.mjs +2 -2
- package/build-module/components/block-switcher/index.mjs.map +2 -2
- package/build-module/components/block-toolbar/pattern-overrides-dropdown.mjs +3 -6
- package/build-module/components/block-toolbar/pattern-overrides-dropdown.mjs.map +2 -2
- package/build-module/components/global-styles/border-panel.mjs +19 -42
- package/build-module/components/global-styles/border-panel.mjs.map +2 -2
- package/build-module/components/global-styles/image-settings-panel.mjs.map +1 -1
- package/build-module/components/iframe/index.mjs.map +1 -1
- package/build-module/components/inserter/hooks/use-patterns-paging.mjs.map +1 -1
- package/build-module/components/inserter-draggable-blocks/index.mjs.map +1 -1
- package/build-module/components/inspector-controls-tabs/content-tab.mjs +3 -4
- package/build-module/components/inspector-controls-tabs/content-tab.mjs.map +2 -2
- package/build-module/components/inspector-controls-tabs/styles-tab.mjs +1 -3
- package/build-module/components/inspector-controls-tabs/styles-tab.mjs.map +2 -2
- package/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.mjs +1 -2
- package/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.mjs.map +2 -2
- package/build-module/components/inspector-popover-header/index.mjs +6 -7
- package/build-module/components/inspector-popover-header/index.mjs.map +2 -2
- package/build-module/components/link-control/index.mjs.map +2 -2
- package/build-module/components/link-control/search-input.mjs.map +1 -1
- package/build-module/components/list-view/block-select-button.mjs +9 -1
- package/build-module/components/list-view/block-select-button.mjs.map +2 -2
- package/build-module/components/list-view/block.mjs +2 -1
- package/build-module/components/list-view/block.mjs.map +2 -2
- package/build-module/components/list-view/use-list-view-drop-zone.mjs.map +1 -1
- package/build-module/components/media-replace-flow/index.mjs +4 -1
- package/build-module/components/media-replace-flow/index.mjs.map +2 -2
- package/build-module/components/navigable-toolbar/index.mjs +3 -0
- package/build-module/components/navigable-toolbar/index.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/enter.mjs +23 -11
- package/build-module/components/rich-text/event-listeners/enter.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/index.mjs +0 -2
- package/build-module/components/rich-text/event-listeners/index.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/input-rules.mjs +4 -2
- package/build-module/components/rich-text/event-listeners/input-rules.mjs.map +2 -2
- package/build-module/components/use-block-drop-zone/index.mjs.map +1 -1
- package/build-module/components/writing-flow/index.mjs +5 -0
- package/build-module/components/writing-flow/index.mjs.map +2 -2
- package/build-module/components/writing-flow/use-arrow-nav.mjs.map +1 -1
- package/build-module/components/writing-flow/use-input.mjs +12 -2
- package/build-module/components/writing-flow/use-input.mjs.map +2 -2
- package/build-module/components/writing-flow/use-tab-nav.mjs +86 -43
- package/build-module/components/writing-flow/use-tab-nav.mjs.map +3 -3
- package/build-module/components/writing-flow/use-undo-automatic-change.mjs +36 -0
- package/build-module/components/writing-flow/use-undo-automatic-change.mjs.map +7 -0
- package/build-module/hooks/border.mjs +1 -45
- package/build-module/hooks/border.mjs.map +2 -2
- package/build-module/hooks/generate-fields-from-attributes.mjs.map +1 -1
- package/build-module/hooks/index.mjs +0 -2
- package/build-module/hooks/index.mjs.map +2 -2
- package/build-module/hooks/style.mjs +3 -2
- package/build-module/hooks/style.mjs.map +2 -2
- package/build-module/layouts/flex.mjs +3 -0
- package/build-module/layouts/flex.mjs.map +2 -2
- package/build-module/store/actions.mjs +12 -9
- package/build-module/store/actions.mjs.map +2 -2
- package/build-style/content-rtl.css +9 -20
- package/build-style/content.css +9 -20
- package/build-style/style-rtl.css +100 -221
- package/build-style/style.css +100 -221
- package/package.json +42 -41
- package/src/autocompleters/test/block.js +1 -0
- package/src/components/alignment-control/test/__snapshots__/{index.jsx.snap → index.jsdom.test.jsx.snap} +34 -16
- package/src/components/alignment-control/test/{index.jsx → index.jsdom.test.jsx} +2 -1
- package/src/components/background-image-control/index.jsx +32 -1
- package/src/components/background-image-control/style.scss +5 -3
- package/src/components/background-image-control/test/{index.js → index.jsdom.test.js} +1 -0
- package/src/components/block-alignment-control/test/__snapshots__/{index.jsx.snap → index.jsdom.test.jsx.snap} +68 -13
- package/src/components/block-alignment-control/test/{index.jsx → index.jsdom.test.jsx} +2 -1
- package/src/components/block-allowed-blocks/modal.jsx +3 -3
- package/src/components/block-bindings/test/{use-block-bindings-utils.js → use-block-bindings-utils.jsdom.test.js} +2 -1
- package/src/components/block-breadcrumb/test/__snapshots__/{index.jsx.snap → index.jsdom.test.jsx.snap} +2 -2
- package/src/components/block-breadcrumb/test/{index.jsx → index.jsdom.test.jsx} +1 -0
- package/src/components/block-compare/test/__snapshots__/{block-view.jsx.snap → block-view.jsdom.test.jsx.snap} +2 -2
- package/src/components/block-compare/test/{block-view.jsx → block-view.jsdom.test.jsx} +1 -0
- package/src/components/block-controls/test/{index.jsx → index.jsdom.test.jsx} +1 -0
- package/src/components/block-edit/edit.jsx +1 -1
- package/src/components/block-edit/test/{edit.jsx → edit.jsdom.test.jsx} +1 -0
- package/src/components/block-icon/content.scss +0 -6
- package/src/components/block-icon/style.scss +0 -6
- package/src/components/block-icon/test/__snapshots__/{index.jsx.snap → index.jsdom.test.jsx.snap} +6 -2
- package/src/components/block-inspector/index.jsx +3 -11
- package/src/components/block-list/content.scss +4 -1
- package/src/components/block-list/use-block-props/use-is-hovered.js +24 -5
- package/src/components/block-manager/style.scss +2 -0
- package/src/components/block-mover/test/mover-description.js +1 -0
- package/src/components/block-preview/index.jsx +1 -2
- package/src/components/block-preview/test/{index.jsx → index.jsdom.test.jsx} +10 -6
- package/src/components/block-selection-clearer/test/{index.jsx → index.jsdom.test.jsx} +24 -19
- package/src/components/block-settings-menu/test/{block-mode-toggle.jsx → block-mode-toggle.jsdom.test.jsx} +5 -1
- package/src/components/block-styles/test/utils.js +1 -0
- package/src/components/block-switcher/index.jsx +3 -3
- package/src/components/block-switcher/test/{index.jsx → index.jsdom.test.jsx} +8 -4
- package/src/components/block-switcher/test/use-transformed.patterns.js +1 -0
- package/src/components/block-switcher/test/utils.js +1 -0
- package/src/components/block-title/test/{index.jsx → index.jsdom.test.jsx} +7 -3
- package/src/components/block-toolbar/pattern-overrides-dropdown.jsx +3 -6
- package/src/components/block-toolbar/style.scss +1 -1
- package/src/components/block-toolbar/test/{block-toolbar-icon.jsx → block-toolbar-icon.jsdom.test.jsx} +25 -21
- package/src/components/block-variation-picker/content.scss +5 -3
- package/src/components/block-vertical-alignment-control/test/__snapshots__/{index.jsx.snap → index.jsdom.test.jsx.snap} +55 -11
- package/src/components/block-vertical-alignment-control/test/{index.jsx → index.jsdom.test.jsx} +2 -1
- package/src/components/block-visibility/test/{use-block-visibility.js → use-block-visibility.jsdom.test.js} +6 -5
- package/src/components/block-visibility/test/utils.js +2 -1
- package/src/components/border-radius-control/test/{index.jsx → index.jsdom.test.jsx} +8 -1
- package/src/components/border-radius-control/test/utils.js +1 -0
- package/src/components/button-block-appender/content.scss +1 -1
- package/src/components/child-layout-control/test/{index.jsx → index.jsdom.test.jsx} +18 -15
- package/src/components/color-palette/test/{control.jsx → control.jsdom.test.jsx} +15 -4
- package/src/components/colors/test/utils.js +1 -0
- package/src/components/colors/test/{with-colors.jsx → with-colors.jsdom.test.jsx} +4 -3
- package/src/components/colors-gradients/test/{control.jsx → control.jsdom.test.jsx} +8 -3
- package/src/components/contrast-checker/test/{index.jsx → index.jsdom.test.jsx} +2 -1
- package/src/components/default-block-appender/test/__snapshots__/{index.jsx.snap → index.jsdom.test.jsx.snap} +4 -4
- package/src/components/default-block-appender/test/{index.jsx → index.jsdom.test.jsx} +8 -7
- package/src/components/dimensions-tool/test/{index.jsx → index.jsdom.test.jsx} +27 -22
- package/src/components/dimensions-tool/test/utils.js +1 -0
- package/src/components/duotone-control/test/{index.jsx → index.jsdom.test.jsx} +6 -3
- package/src/components/font-sizes/test/fluid-utils.js +1 -0
- package/src/components/font-sizes/test/utils.js +1 -0
- package/src/components/global-styles/border-panel.jsx +17 -40
- package/src/components/global-styles/image-settings-panel.jsx +1 -1
- package/src/components/global-styles/inheritance/test/{index.jsx → index.jsdom.test.jsx} +5 -2
- package/src/components/global-styles/test/{background-panel.jsx → background-panel.jsdom.test.jsx} +10 -5
- package/src/components/global-styles/test/{border-panel.jsx → border-panel.jsdom.test.jsx} +113 -13
- package/src/components/global-styles/test/{color-panel.jsx → color-panel.jsdom.test.jsx} +5 -0
- package/src/components/global-styles/test/{dimensions-panel.jsx → dimensions-panel.jsdom.test.jsx} +14 -14
- package/src/components/global-styles/test/{filters-panel.jsx → filters-panel.jsdom.test.jsx} +7 -4
- package/src/components/global-styles/test/{inherited-value-context-core.js → inherited-value-context-core.jsdom.test.js} +10 -9
- package/src/components/global-styles/test/{inherited-value-context.jsx → inherited-value-context.jsdom.test.jsx} +18 -17
- package/src/components/global-styles/test/{state-control-badges.jsx → state-control-badges.jsdom.test.jsx} +3 -2
- package/src/components/global-styles/test/{typography-panel-core.jsx → typography-panel-core.jsdom.test.jsx} +5 -2
- package/src/components/global-styles/test/{typography-panel.jsx → typography-panel.jsdom.test.jsx} +17 -12
- package/src/components/global-styles/test/typography-utils.js +1 -0
- package/src/components/global-styles/test/utils.js +1 -0
- package/src/components/grid/style.scss +0 -10
- package/src/components/iframe/index.jsx +3 -3
- package/src/components/image-editor/test/index.js +1 -0
- package/src/components/image-size-control/test/{index.jsx → index.jsdom.test.jsx} +8 -3
- package/src/components/inner-blocks/test/__snapshots__/index.jsdom.test.jsx.snap +15 -0
- package/src/components/inner-blocks/test/{index.jsx → index.jsdom.test.jsx} +2 -0
- package/src/components/inner-content/test/{index.jsx → index.jsdom.test.jsx} +1 -0
- package/src/components/inserter/hooks/use-patterns-paging.js +1 -1
- package/src/components/inserter/media-tab/test/{hooks.js → hooks.jsdom.test.js} +12 -11
- package/src/components/inserter/media-tab/test/{media-panel.jsx → media-panel.jsdom.test.jsx} +15 -12
- package/src/components/inserter/style.scss +2 -2
- package/src/components/inserter/test/get-appender-label.js +12 -11
- package/src/components/inserter/test/search-items.js +1 -0
- package/src/components/inserter-draggable-blocks/index.jsx +1 -1
- package/src/components/inserter-list-item/style.scss +1 -0
- package/src/components/inspector-controls-tabs/content-tab.jsx +7 -14
- package/src/components/inspector-controls-tabs/styles-tab.jsx +1 -4
- package/src/components/inspector-controls-tabs/use-inspector-controls-tabs.js +1 -8
- package/src/components/inspector-popover-header/index.jsx +6 -7
- package/src/components/line-height-control/test/{index.jsx → index.jsdom.test.jsx} +3 -0
- package/src/components/link-control/index.jsx +3 -0
- package/src/components/link-control/search-input.jsx +1 -1
- package/src/components/link-control/style.scss +1 -1
- package/src/components/link-control/test/{index.jsx → index.jsdom.test.jsx} +52 -42
- package/src/components/link-control/test/is-url-like.js +1 -0
- package/src/components/link-control/test/{url-normalization.test.jsx → url-normalization.jsdom.test.jsx} +21 -20
- package/src/components/link-picker/test/{index.jsx → index.jsdom.test.jsx} +31 -30
- package/src/components/list-view/block-select-button.jsx +6 -1
- package/src/components/list-view/block.jsx +6 -4
- package/src/components/list-view/style.scss +55 -35
- package/src/components/list-view/test/use-list-view-drop-zone.js +1 -0
- package/src/components/list-view/test/utils.js +1 -0
- package/src/components/list-view/use-list-view-drop-zone.js +1 -1
- package/src/components/media-placeholder/test/get-computed-accept-attribute.js +1 -0
- package/src/components/media-placeholder/test/{index.jsx → index.jsdom.test.jsx} +8 -2
- package/src/components/media-replace-flow/index.jsx +6 -1
- package/src/components/media-replace-flow/test/{index.jsx → index.jsdom.test.jsx} +3 -0
- package/src/components/navigable-toolbar/index.jsx +4 -0
- package/src/components/navigable-toolbar/test/index.browser.test.js +50 -0
- package/src/components/panel-color-settings/test/{index.jsx → index.jsdom.test.jsx} +3 -0
- package/src/components/preset-input-control/test/{index.jsx → index.jsdom.test.jsx} +8 -2
- package/src/components/preset-input-control/test/utils.js +1 -0
- package/src/components/provider/test/{experimental-provider.jsx → experimental-provider.jsdom.test.jsx} +3 -2
- package/src/components/provider/test/{use-block-sync.jsx → use-block-sync.jsdom.test.jsx} +45 -44
- package/src/components/recursion-provider/test/{index.jsx → index.jsdom.test.jsx} +1 -0
- package/src/components/responsive-block-control/style.scss +1 -0
- package/src/components/responsive-block-control/test/{index.jsx → index.jsdom.test.jsx} +6 -3
- package/src/components/rich-text/event-listeners/enter.js +29 -14
- package/src/components/rich-text/event-listeners/index.js +0 -2
- package/src/components/rich-text/event-listeners/input-rules.js +7 -2
- package/src/components/spacing-sizes-control/test/{index.jsx → index.jsdom.test.jsx} +23 -20
- package/src/components/spacing-sizes-control/test/utils.js +1 -0
- package/src/components/url-input/test/{button.jsx → button.jsdom.test.jsx} +4 -1
- package/src/components/url-input/test/fixtures/validated-input-control-deprecation.js +2 -0
- package/src/components/url-input/test/{index.jsx → index.jsdom.test.jsx} +23 -13
- package/src/components/use-block-display-information/test/{index.jsx → index.jsdom.test.jsx} +14 -10
- package/src/components/use-block-drop-zone/index.js +2 -2
- package/src/components/use-block-drop-zone/test/index.js +1 -0
- package/src/components/use-on-block-drop/test/index.js +28 -31
- package/src/components/warning/test/__snapshots__/{index.jsx.snap → index.jsdom.test.jsx.snap} +2 -2
- package/src/components/warning/test/{index.jsx → index.jsdom.test.jsx} +1 -0
- package/src/components/writing-flow/index.jsx +5 -0
- package/src/components/writing-flow/style.scss +48 -0
- package/src/components/writing-flow/test/{index.js → index.jsdom.test.js} +1 -0
- package/src/components/writing-flow/use-arrow-nav.js +2 -2
- package/src/components/writing-flow/use-input.js +29 -2
- package/src/components/writing-flow/use-tab-nav.jsx +155 -70
- package/src/components/writing-flow/use-undo-automatic-change.js +40 -0
- package/src/elements/test/{index.js → index.jsdom.test.js} +1 -0
- package/src/hooks/border.jsx +0 -53
- package/src/hooks/generate-fields-from-attributes.js +1 -1
- package/src/hooks/index.js +0 -2
- package/src/hooks/style.jsx +3 -2
- package/src/hooks/test/{align.jsx → align.jsdom.test.jsx} +1 -0
- package/src/hooks/test/allowed-blocks.js +1 -0
- package/src/hooks/test/{anchor.js → anchor.jsdom.test.js} +1 -0
- package/src/hooks/test/{auto-inspector-controls.js → auto-inspector-controls.jsdom.test.js} +1 -0
- package/src/hooks/test/{background.jsx → background.jsdom.test.jsx} +5 -2
- package/src/hooks/test/{block-style-state.js → block-style-state.jsdom.test.js} +4 -3
- package/src/hooks/test/{cross-origin-isolation.js → cross-origin-isolation.jsdom.test.js} +18 -25
- package/src/hooks/test/{custom-class-name.jsx → custom-class-name.jsdom.test.jsx} +1 -0
- package/src/hooks/test/{dimensions.js → dimensions.jsdom.test.js} +1 -0
- package/src/hooks/test/{duotone.js → duotone.jsdom.test.js} +1 -0
- package/src/hooks/test/{font-size.js → font-size.jsdom.test.js} +1 -0
- package/src/hooks/test/gap.js +1 -0
- package/src/hooks/test/generate-fields-from-attributes.js +1 -0
- package/src/hooks/test/generated-class-name.js +1 -0
- package/src/hooks/test/{inherited-value-wiring.jsx → inherited-value-wiring.jsdom.test.jsx} +49 -51
- package/src/hooks/test/{layout-child.js → layout-child.jsdom.test.js} +1 -0
- package/src/hooks/test/{layout.js → layout.jsdom.test.js} +1 -0
- package/src/hooks/test/metadata.js +1 -0
- package/src/hooks/test/preset-round-trip.js +2 -0
- package/src/hooks/test/settings.jsx +1 -0
- package/src/hooks/test/state-utils.js +1 -0
- package/src/hooks/test/{style.jsx → style.jsdom.test.jsx} +1 -0
- package/src/hooks/test/{text-align.jsx → text-align.jsdom.test.jsx} +1 -0
- package/src/hooks/test/{use-typography-props.js → use-typography-props.jsdom.test.js} +1 -0
- package/src/hooks/test/{utils.js → utils.jsdom.test.js} +1 -0
- package/src/layouts/flex.jsx +7 -0
- package/src/layouts/test/{constrained.jsx → constrained.jsdom.test.jsx} +6 -3
- package/src/layouts/test/{flex.jsx → flex.jsdom.test.jsx} +52 -2
- package/src/layouts/test/{flow.js → flow.jsdom.test.js} +1 -0
- package/src/layouts/test/{grid.jsx → grid.jsdom.test.jsx} +5 -2
- package/src/layouts/test/utils.js +1 -0
- package/src/store/actions.js +14 -12
- package/src/store/test/{actions.js → actions.jsdom.test.js} +50 -49
- package/src/store/test/array.js +1 -0
- package/src/store/test/get-block-settings.js +1 -0
- package/src/store/test/performance.js +2 -1
- package/src/store/test/private-actions.js +1 -0
- package/src/store/test/private-selectors.js +13 -3
- package/src/store/test/reducer.js +37 -8
- package/src/store/test/{registry-selectors.js → registry-selectors.jsdom.test.js} +9 -0
- package/src/store/test/{selectors.jsx → selectors.jsdom.test.jsx} +13 -3
- package/src/style.scss +1 -1
- package/src/utils/test/block-bindings.js +1 -0
- package/src/utils/test/color-values.js +1 -0
- package/src/utils/test/{dom.jsx → dom.jsdom.test.jsx} +38 -43
- package/src/utils/test/format-font-style.js +1 -0
- package/src/utils/test/format-font-weight.js +1 -0
- package/src/utils/test/get-font-styles-and-weights.js +1 -0
- package/src/utils/test/math.js +1 -0
- package/src/utils/test/object.js +1 -0
- package/src/utils/test/pasting.js +1 -0
- package/src/utils/test/selection.js +1 -0
- package/src/utils/test/sorting.js +1 -0
- package/src/utils/test/transform-styles.js +2 -1
- package/build/components/rich-text/event-listeners/undo-automatic-change.cjs.map +0 -7
- package/build/hooks/block-fields/fields-dropdown-menu.cjs +0 -67
- package/build/hooks/block-fields/fields-dropdown-menu.cjs.map +0 -7
- package/build/hooks/block-fields/index.cjs +0 -238
- package/build/hooks/block-fields/index.cjs.map +0 -7
- package/build/hooks/block-fields/link/index.cjs +0 -174
- package/build/hooks/block-fields/link/index.cjs.map +0 -7
- package/build/hooks/block-fields/media/index.cjs +0 -262
- package/build/hooks/block-fields/media/index.cjs.map +0 -7
- package/build/hooks/block-fields/rich-text/index.cjs +0 -146
- package/build/hooks/block-fields/rich-text/index.cjs.map +0 -7
- package/build/hooks/block-fields/use-inspector-popover-placement.cjs +0 -41
- package/build/hooks/block-fields/use-inspector-popover-placement.cjs.map +0 -7
- package/build-module/components/rich-text/event-listeners/undo-automatic-change.mjs +0 -33
- package/build-module/components/rich-text/event-listeners/undo-automatic-change.mjs.map +0 -7
- package/build-module/hooks/block-fields/fields-dropdown-menu.mjs +0 -46
- package/build-module/hooks/block-fields/fields-dropdown-menu.mjs.map +0 -7
- package/build-module/hooks/block-fields/index.mjs +0 -210
- package/build-module/hooks/block-fields/index.mjs.map +0 -7
- package/build-module/hooks/block-fields/link/index.mjs +0 -141
- package/build-module/hooks/block-fields/link/index.mjs.map +0 -7
- package/build-module/hooks/block-fields/media/index.mjs +0 -241
- package/build-module/hooks/block-fields/media/index.mjs.map +0 -7
- package/build-module/hooks/block-fields/rich-text/index.mjs +0 -115
- package/build-module/hooks/block-fields/rich-text/index.mjs.map +0 -7
- package/build-module/hooks/block-fields/use-inspector-popover-placement.mjs +0 -16
- package/build-module/hooks/block-fields/use-inspector-popover-placement.mjs.map +0 -7
- package/src/components/color-palette/test/__snapshots__/control.jsx.snap +0 -143
- package/src/components/inner-blocks/test/__snapshots__/index.jsx.snap +0 -15
- package/src/components/rich-text/event-listeners/undo-automatic-change.js +0 -39
- package/src/hooks/block-fields/fields-dropdown-menu.jsx +0 -47
- package/src/hooks/block-fields/index.jsx +0 -302
- package/src/hooks/block-fields/link/index.jsx +0 -155
- package/src/hooks/block-fields/link/styles.scss +0 -18
- package/src/hooks/block-fields/media/index.jsx +0 -269
- package/src/hooks/block-fields/media/styles.scss +0 -77
- package/src/hooks/block-fields/rich-text/index.jsx +0 -123
- package/src/hooks/block-fields/rich-text/styles.scss +0 -24
- package/src/hooks/block-fields/styles.scss +0 -33
- package/src/hooks/block-fields/use-inspector-popover-placement.js +0 -16
- /package/src/components/block-icon/test/{index.jsx → index.jsdom.test.jsx} +0 -0
package/build-style/content.css
CHANGED
|
@@ -122,11 +122,6 @@
|
|
|
122
122
|
.block-editor-block-icon.has-colors svg {
|
|
123
123
|
fill: currentColor;
|
|
124
124
|
}
|
|
125
|
-
@media (forced-colors: active) {
|
|
126
|
-
.block-editor-block-icon.has-colors svg {
|
|
127
|
-
fill: CanvasText;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
125
|
.block-editor-block-icon svg {
|
|
131
126
|
min-width: 20px;
|
|
132
127
|
min-height: 20px;
|
|
@@ -159,9 +154,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
159
154
|
.block-editor-block-list__layout {
|
|
160
155
|
position: relative;
|
|
161
156
|
}
|
|
162
|
-
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::-moz-selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::-moz-selection {
|
|
163
|
-
background: transparent;
|
|
164
|
-
}
|
|
165
157
|
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection {
|
|
166
158
|
background: transparent;
|
|
167
159
|
}
|
|
@@ -191,11 +183,15 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
191
183
|
}
|
|
192
184
|
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,
|
|
193
185
|
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected,
|
|
186
|
+
.block-editor-block-list__layout .block-editor-block-list__block.is-hovered-draggable[draggable=true]:not(.is-multi-selected),
|
|
187
|
+
.block-editor-block-list__layout .block-editor-block-list__block.is-hovered-draggable[data-draggable=true]:not(.is-multi-selected),
|
|
194
188
|
.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus {
|
|
195
189
|
outline: none;
|
|
196
190
|
}
|
|
197
191
|
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after,
|
|
198
192
|
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected::after,
|
|
193
|
+
.block-editor-block-list__layout .block-editor-block-list__block.is-hovered-draggable[draggable=true]:not(.is-multi-selected)::after,
|
|
194
|
+
.block-editor-block-list__layout .block-editor-block-list__block.is-hovered-draggable[data-draggable=true]:not(.is-multi-selected)::after,
|
|
199
195
|
.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus::after {
|
|
200
196
|
content: "";
|
|
201
197
|
position: absolute;
|
|
@@ -231,7 +227,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
231
227
|
}
|
|
232
228
|
.block-editor-block-list__layout [class^=components-] {
|
|
233
229
|
-webkit-user-select: text;
|
|
234
|
-
-moz-user-select: text;
|
|
235
230
|
user-select: text;
|
|
236
231
|
}
|
|
237
232
|
|
|
@@ -264,7 +259,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
264
259
|
.block-editor-block-list__layout .block-editor-block-list__block.has-warning > * {
|
|
265
260
|
pointer-events: none;
|
|
266
261
|
-webkit-user-select: none;
|
|
267
|
-
-moz-user-select: none;
|
|
268
262
|
user-select: none;
|
|
269
263
|
}
|
|
270
264
|
.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning {
|
|
@@ -525,9 +519,6 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
525
519
|
.block-editor-block-list__layout .is-dragging iframe {
|
|
526
520
|
pointer-events: none;
|
|
527
521
|
}
|
|
528
|
-
.block-editor-block-list__layout .is-dragging::-moz-selection {
|
|
529
|
-
background: transparent !important;
|
|
530
|
-
}
|
|
531
522
|
.block-editor-block-list__layout .is-dragging::selection {
|
|
532
523
|
background: transparent !important;
|
|
533
524
|
}
|
|
@@ -575,7 +566,8 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
575
566
|
.block-editor-block-variation-picker__variations svg,
|
|
576
567
|
.block-editor-block-variation-picker__skip svg,
|
|
577
568
|
.wp-block-group-placeholder__variations svg {
|
|
578
|
-
fill: #949494
|
|
569
|
+
fill: #949494;
|
|
570
|
+
color: #949494 !important;
|
|
579
571
|
}
|
|
580
572
|
.block-editor-block-variation-picker__variations .components-button,
|
|
581
573
|
.block-editor-block-variation-picker__skip .components-button,
|
|
@@ -590,7 +582,8 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
590
582
|
.block-editor-block-variation-picker__variations .components-button:hover svg,
|
|
591
583
|
.block-editor-block-variation-picker__skip .components-button:hover svg,
|
|
592
584
|
.wp-block-group-placeholder__variations .components-button:hover svg {
|
|
593
|
-
fill: var(--wp-admin-theme-color)
|
|
585
|
+
fill: var(--wp-admin-theme-color);
|
|
586
|
+
color: var(--wp-admin-theme-color) !important;
|
|
594
587
|
}
|
|
595
588
|
.block-editor-block-variation-picker__variations > li,
|
|
596
589
|
.block-editor-block-variation-picker__skip > li,
|
|
@@ -645,7 +638,7 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
|
|
|
645
638
|
border: none;
|
|
646
639
|
}
|
|
647
640
|
.is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter, .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter, .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter {
|
|
648
|
-
|
|
641
|
+
opacity: 1;
|
|
649
642
|
}
|
|
650
643
|
.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block > .block-list-appender:only-child:has(.block-editor-button-block-appender)::after {
|
|
651
644
|
border: none;
|
|
@@ -904,10 +897,6 @@ figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before
|
|
|
904
897
|
padding: 0 2px;
|
|
905
898
|
}
|
|
906
899
|
|
|
907
|
-
.rich-text [contenteditable=false]::-moz-selection {
|
|
908
|
-
background-color: transparent;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
900
|
.rich-text [contenteditable=false]::selection {
|
|
912
901
|
background-color: transparent;
|
|
913
902
|
}
|
|
@@ -258,9 +258,9 @@
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
.block-editor-global-styles-background-panel__media-replace-popover .components-popover__content {
|
|
261
|
-
width:
|
|
261
|
+
width: auto;
|
|
262
262
|
}
|
|
263
|
-
.block-editor-global-styles-background-panel__media-replace-popover .components-button {
|
|
263
|
+
.block-editor-global-styles-background-panel__media-replace-popover .components-menu-item__button.components-button {
|
|
264
264
|
padding: 0 8px;
|
|
265
265
|
}
|
|
266
266
|
.block-editor-global-styles-background-panel__media-replace-popover .components-button .components-menu-items__item-icon.has-icon-right {
|
|
@@ -296,11 +296,6 @@ iframe[name=editor-canvas] {
|
|
|
296
296
|
.block-editor-block-icon.has-colors svg {
|
|
297
297
|
fill: currentColor;
|
|
298
298
|
}
|
|
299
|
-
@media (forced-colors: active) {
|
|
300
|
-
.block-editor-block-icon.has-colors svg {
|
|
301
|
-
fill: CanvasText;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
299
|
.block-editor-block-icon svg {
|
|
305
300
|
min-width: 20px;
|
|
306
301
|
min-height: 20px;
|
|
@@ -856,9 +851,7 @@ iframe[name=editor-canvas] {
|
|
|
856
851
|
padding: 0 13px;
|
|
857
852
|
position: relative;
|
|
858
853
|
-webkit-user-select: none;
|
|
859
|
-
-moz-user-select: none;
|
|
860
854
|
user-select: none;
|
|
861
|
-
width: -moz-max-content;
|
|
862
855
|
width: max-content;
|
|
863
856
|
}
|
|
864
857
|
.block-editor-block-draggable-chip svg {
|
|
@@ -960,6 +953,7 @@ iframe[name=editor-canvas] {
|
|
|
960
953
|
.block-editor-block-manager__checklist-item .block-editor-block-icon {
|
|
961
954
|
margin-left: 10px;
|
|
962
955
|
fill: #1e1e1e;
|
|
956
|
+
color: #1e1e1e;
|
|
963
957
|
}
|
|
964
958
|
|
|
965
959
|
.block-editor-block-manager__results {
|
|
@@ -1160,7 +1154,6 @@ iframe[name=editor-canvas] {
|
|
|
1160
1154
|
.components-popover.block-editor-block-popover .components-popover__content {
|
|
1161
1155
|
margin: 0 !important;
|
|
1162
1156
|
min-width: auto;
|
|
1163
|
-
width: -moz-max-content;
|
|
1164
1157
|
width: max-content;
|
|
1165
1158
|
overflow-y: visible;
|
|
1166
1159
|
}
|
|
@@ -1257,8 +1250,7 @@ iframe[name=editor-canvas] {
|
|
|
1257
1250
|
}
|
|
1258
1251
|
.block-editor-block-styles__variants .block-editor-block-styles__item-text {
|
|
1259
1252
|
text-align: start;
|
|
1260
|
-
|
|
1261
|
-
text-align-last: center;
|
|
1253
|
+
text-align-last: center;
|
|
1262
1254
|
}
|
|
1263
1255
|
|
|
1264
1256
|
.components-popover.block-editor-block-switcher__popover .components-popover__content {
|
|
@@ -1363,20 +1355,17 @@ iframe[name=editor-canvas] {
|
|
|
1363
1355
|
justify-content: center;
|
|
1364
1356
|
}
|
|
1365
1357
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container {
|
|
1366
|
-
|
|
1367
|
-
column-gap: 24px;
|
|
1358
|
+
column-gap: 24px;
|
|
1368
1359
|
display: block;
|
|
1369
1360
|
width: 100%;
|
|
1370
1361
|
padding: 32px;
|
|
1371
1362
|
padding-bottom: 0;
|
|
1372
1363
|
padding-top: 0;
|
|
1373
|
-
|
|
1374
|
-
column-count: 2;
|
|
1364
|
+
column-count: 2;
|
|
1375
1365
|
}
|
|
1376
1366
|
@media (min-width: 1440px) {
|
|
1377
1367
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container {
|
|
1378
|
-
|
|
1379
|
-
column-count: 3;
|
|
1368
|
+
column-count: 3;
|
|
1380
1369
|
}
|
|
1381
1370
|
}
|
|
1382
1371
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,
|
|
@@ -1398,8 +1387,7 @@ iframe[name=editor-canvas] {
|
|
|
1398
1387
|
color: var(--wp-admin-theme-color);
|
|
1399
1388
|
}
|
|
1400
1389
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item {
|
|
1401
|
-
|
|
1402
|
-
break-inside: avoid-column;
|
|
1390
|
+
break-inside: avoid-column;
|
|
1403
1391
|
margin-bottom: 24px;
|
|
1404
1392
|
}
|
|
1405
1393
|
.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title {
|
|
@@ -1804,9 +1792,7 @@ iframe[name=editor-canvas] {
|
|
|
1804
1792
|
}
|
|
1805
1793
|
|
|
1806
1794
|
.block-editor-global-styles__shadow-indicator {
|
|
1807
|
-
|
|
1808
|
-
-moz-appearance: none;
|
|
1809
|
-
appearance: none;
|
|
1795
|
+
appearance: none;
|
|
1810
1796
|
background: none;
|
|
1811
1797
|
color: #2f2f2f;
|
|
1812
1798
|
border: #e0e0e0 1px solid;
|
|
@@ -2088,14 +2074,6 @@ iframe[name=editor-canvas] {
|
|
|
2088
2074
|
animation-fill-mode: forwards;
|
|
2089
2075
|
}
|
|
2090
2076
|
}
|
|
2091
|
-
.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus, .block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:enabled, .block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus::before {
|
|
2092
|
-
box-shadow: none;
|
|
2093
|
-
outline: none;
|
|
2094
|
-
}
|
|
2095
|
-
.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus-visible::before {
|
|
2096
|
-
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2097
|
-
outline: 2px solid transparent;
|
|
2098
|
-
}
|
|
2099
2077
|
|
|
2100
2078
|
.block-editor-grid-item-mover__move-vertical-button-container {
|
|
2101
2079
|
display: flex;
|
|
@@ -2543,7 +2521,7 @@ iframe[name=editor-canvas] {
|
|
|
2543
2521
|
padding: 0;
|
|
2544
2522
|
margin: -1px;
|
|
2545
2523
|
overflow: hidden;
|
|
2546
|
-
clip:
|
|
2524
|
+
clip-path: inset(50%);
|
|
2547
2525
|
border: 0;
|
|
2548
2526
|
}
|
|
2549
2527
|
|
|
@@ -2699,8 +2677,7 @@ iframe[name=editor-canvas] {
|
|
|
2699
2677
|
.link-preview-button__image {
|
|
2700
2678
|
width: 100%;
|
|
2701
2679
|
height: 100%;
|
|
2702
|
-
|
|
2703
|
-
object-fit: cover;
|
|
2680
|
+
object-fit: cover;
|
|
2704
2681
|
border-radius: 2px;
|
|
2705
2682
|
}
|
|
2706
2683
|
|
|
@@ -2764,6 +2741,9 @@ iframe[name=editor-canvas] {
|
|
|
2764
2741
|
position: relative;
|
|
2765
2742
|
transform: translateY(0);
|
|
2766
2743
|
}
|
|
2744
|
+
.block-editor-list-view-leaf:focus-within, .block-editor-list-view-leaf.is-nesting {
|
|
2745
|
+
z-index: 1;
|
|
2746
|
+
}
|
|
2767
2747
|
.block-editor-list-view-leaf.is-draggable, .block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents {
|
|
2768
2748
|
cursor: grab;
|
|
2769
2749
|
}
|
|
@@ -2776,11 +2756,6 @@ iframe[name=editor-canvas] {
|
|
|
2776
2756
|
.block-editor-list-view-leaf .block-editor-list-view-block-select-button svg {
|
|
2777
2757
|
fill: currentColor;
|
|
2778
2758
|
}
|
|
2779
|
-
@media (forced-colors: active) {
|
|
2780
|
-
.block-editor-list-view-leaf .block-editor-list-view-block-select-button svg {
|
|
2781
|
-
fill: CanvasText;
|
|
2782
|
-
}
|
|
2783
|
-
}
|
|
2784
2759
|
.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover {
|
|
2785
2760
|
color: inherit;
|
|
2786
2761
|
}
|
|
@@ -2794,20 +2769,42 @@ iframe[name=editor-canvas] {
|
|
|
2794
2769
|
.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon {
|
|
2795
2770
|
color: var(--wp-block-synced-color);
|
|
2796
2771
|
}
|
|
2797
|
-
.block-editor-list-view-leaf.is-synced
|
|
2798
|
-
|
|
2772
|
+
.block-editor-list-view-leaf.is-synced .block-editor-list-view-block-contents:focus::after {
|
|
2773
|
+
--focus-color: var(--wp-block-synced-color);
|
|
2774
|
+
}
|
|
2775
|
+
.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block__menu:focus {
|
|
2776
|
+
--focus-color: var(--wp-block-synced-color);
|
|
2777
|
+
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
|
|
2778
|
+
outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
|
|
2799
2779
|
}
|
|
2800
2780
|
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents, .block-editor-list-view-leaf.is-selected .components-button.has-icon {
|
|
2801
2781
|
color: #fff;
|
|
2802
2782
|
}
|
|
2803
|
-
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus::after {
|
|
2804
|
-
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
|
|
2805
|
-
}
|
|
2806
|
-
.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus::after {
|
|
2807
|
-
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
|
|
2808
|
-
}
|
|
2809
2783
|
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus {
|
|
2810
|
-
|
|
2784
|
+
--focus-color: var(--wpds-color-foreground-interactive-brand-strong, #fff);
|
|
2785
|
+
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
|
|
2786
|
+
outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
|
|
2787
|
+
outline-offset: calc(-1 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
|
|
2788
|
+
}
|
|
2789
|
+
@media (forced-colors: active) {
|
|
2790
|
+
.block-editor-list-view-leaf.is-selected td, .block-editor-list-view-leaf.is-selected.is-synced td {
|
|
2791
|
+
background: SelectedItem;
|
|
2792
|
+
}
|
|
2793
|
+
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents, .block-editor-list-view-leaf.is-selected .components-button.has-icon {
|
|
2794
|
+
color: SelectedItemText;
|
|
2795
|
+
}
|
|
2796
|
+
.block-editor-list-view-leaf.is-selected svg, .block-editor-list-view-leaf.is-selected .block-editor-block-icon.has-colors svg {
|
|
2797
|
+
fill: SelectedItemText;
|
|
2798
|
+
}
|
|
2799
|
+
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__title {
|
|
2800
|
+
forced-color-adjust: none;
|
|
2801
|
+
}
|
|
2802
|
+
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus::after {
|
|
2803
|
+
--focus-color: CanvasText;
|
|
2804
|
+
}
|
|
2805
|
+
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus {
|
|
2806
|
+
--focus-color: SelectedItemText;
|
|
2807
|
+
}
|
|
2811
2808
|
}
|
|
2812
2809
|
.block-editor-list-view-leaf.is-first-selected td:first-child {
|
|
2813
2810
|
border-top-right-radius: 2px;
|
|
@@ -2932,27 +2929,27 @@ iframe[name=editor-canvas] {
|
|
|
2932
2929
|
.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents,
|
|
2933
2930
|
.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus {
|
|
2934
2931
|
box-shadow: none;
|
|
2932
|
+
outline: none;
|
|
2935
2933
|
}
|
|
2936
2934
|
.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents::after,
|
|
2937
2935
|
.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus::after {
|
|
2938
2936
|
content: "";
|
|
2939
2937
|
position: absolute;
|
|
2940
2938
|
top: 0;
|
|
2941
|
-
left: -
|
|
2939
|
+
left: -28px;
|
|
2942
2940
|
bottom: 0;
|
|
2943
2941
|
right: 0;
|
|
2944
2942
|
border-radius: inherit;
|
|
2945
|
-
|
|
2943
|
+
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
|
|
2944
|
+
outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
|
|
2945
|
+
outline-offset: 1px;
|
|
2946
|
+
box-shadow: 0 0 0 calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) + 2px) var(--wpds-color-background-surface-neutral-strong, #fff);
|
|
2946
2947
|
z-index: 2;
|
|
2947
2948
|
pointer-events: none;
|
|
2948
2949
|
}
|
|
2949
2950
|
.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus::after {
|
|
2950
2951
|
left: 0;
|
|
2951
2952
|
}
|
|
2952
|
-
.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu {
|
|
2953
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
|
|
2954
|
-
z-index: 1;
|
|
2955
|
-
}
|
|
2956
2953
|
.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents {
|
|
2957
2954
|
opacity: 1;
|
|
2958
2955
|
}
|
|
@@ -3681,170 +3678,6 @@ iframe[name=editor-canvas] {
|
|
|
3681
3678
|
row-gap: 0;
|
|
3682
3679
|
}
|
|
3683
3680
|
|
|
3684
|
-
.block-editor-content-only-controls__link {
|
|
3685
|
-
width: 100%;
|
|
3686
|
-
border-color: #ccc;
|
|
3687
|
-
}
|
|
3688
|
-
|
|
3689
|
-
.block-editor-content-only-controls__link-row {
|
|
3690
|
-
align-items: center;
|
|
3691
|
-
}
|
|
3692
|
-
|
|
3693
|
-
.block-editor-content-only-controls__link-title {
|
|
3694
|
-
width: 100%;
|
|
3695
|
-
white-space: nowrap;
|
|
3696
|
-
text-overflow: ellipsis;
|
|
3697
|
-
overflow: hidden;
|
|
3698
|
-
}
|
|
3699
|
-
|
|
3700
|
-
.block-editor-content-only-controls__media {
|
|
3701
|
-
width: 100%;
|
|
3702
|
-
border-color: #ccc;
|
|
3703
|
-
padding-left: 32px;
|
|
3704
|
-
}
|
|
3705
|
-
|
|
3706
|
-
.block-editor-content-only-controls__media-replace-flow {
|
|
3707
|
-
display: block;
|
|
3708
|
-
}
|
|
3709
|
-
|
|
3710
|
-
.block-editor-content-only-controls__media-row {
|
|
3711
|
-
align-items: center;
|
|
3712
|
-
}
|
|
3713
|
-
|
|
3714
|
-
.block-editor-content-only-controls__media-placeholder {
|
|
3715
|
-
width: 24px;
|
|
3716
|
-
height: 24px;
|
|
3717
|
-
border-radius: 2px;
|
|
3718
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
|
|
3719
|
-
display: inline-block;
|
|
3720
|
-
padding: 0;
|
|
3721
|
-
background: #fff linear-gradient(45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
3722
|
-
}
|
|
3723
|
-
|
|
3724
|
-
.block-editor-content-only-controls__media-title {
|
|
3725
|
-
width: 100%;
|
|
3726
|
-
white-space: nowrap;
|
|
3727
|
-
text-overflow: ellipsis;
|
|
3728
|
-
overflow: hidden;
|
|
3729
|
-
}
|
|
3730
|
-
|
|
3731
|
-
.block-editor-content-only-controls__media-thumbnail {
|
|
3732
|
-
width: 20px;
|
|
3733
|
-
height: 20px;
|
|
3734
|
-
border-radius: 2px;
|
|
3735
|
-
align-self: center;
|
|
3736
|
-
overflow: hidden;
|
|
3737
|
-
}
|
|
3738
|
-
.block-editor-content-only-controls__media-thumbnail img {
|
|
3739
|
-
width: 100% !important;
|
|
3740
|
-
height: 100% !important;
|
|
3741
|
-
-o-object-fit: cover;
|
|
3742
|
-
object-fit: cover;
|
|
3743
|
-
}
|
|
3744
|
-
|
|
3745
|
-
.block-editor-content-only-controls {
|
|
3746
|
-
position: relative;
|
|
3747
|
-
}
|
|
3748
|
-
|
|
3749
|
-
.block-editor-content-only-controls__media-reset {
|
|
3750
|
-
position: absolute;
|
|
3751
|
-
left: 0;
|
|
3752
|
-
top: 8px;
|
|
3753
|
-
margin: auto 8px auto;
|
|
3754
|
-
opacity: 0;
|
|
3755
|
-
border-radius: 2px;
|
|
3756
|
-
}
|
|
3757
|
-
@media not (prefers-reduced-motion) {
|
|
3758
|
-
.block-editor-content-only-controls__media-reset {
|
|
3759
|
-
transition: opacity 0.1s ease-in-out;
|
|
3760
|
-
}
|
|
3761
|
-
}
|
|
3762
|
-
.block-editor-content-only-controls:hover .block-editor-content-only-controls__media-reset, .block-editor-content-only-controls__media-reset:focus, .block-editor-content-only-controls__media-reset:hover {
|
|
3763
|
-
opacity: 1;
|
|
3764
|
-
}
|
|
3765
|
-
@media (hover: none) {
|
|
3766
|
-
.block-editor-content-only-controls__media-reset {
|
|
3767
|
-
opacity: 1;
|
|
3768
|
-
}
|
|
3769
|
-
}
|
|
3770
|
-
|
|
3771
|
-
.block-editor-content-only-controls__rich-text {
|
|
3772
|
-
width: 100%;
|
|
3773
|
-
margin: 0;
|
|
3774
|
-
background: #fff;
|
|
3775
|
-
color: #1e1e1e;
|
|
3776
|
-
font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
3777
|
-
padding: 6px 8px;
|
|
3778
|
-
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
|
3779
|
-
font-size: 16px;
|
|
3780
|
-
/* Override core line-height. To be reviewed. */
|
|
3781
|
-
line-height: normal;
|
|
3782
|
-
border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d);
|
|
3783
|
-
border-radius: var(--wpds-border-radius-sm, 2px);
|
|
3784
|
-
}
|
|
3785
|
-
@media (min-width: 600px) {
|
|
3786
|
-
.block-editor-content-only-controls__rich-text {
|
|
3787
|
-
font-size: 13px;
|
|
3788
|
-
/* Override core line-height. To be reviewed. */
|
|
3789
|
-
line-height: normal;
|
|
3790
|
-
}
|
|
3791
|
-
}
|
|
3792
|
-
.block-editor-content-only-controls__rich-text:hover:not(:disabled, [aria-disabled=true], [type=checkbox]) {
|
|
3793
|
-
border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e);
|
|
3794
|
-
}
|
|
3795
|
-
.block-editor-content-only-controls__rich-text:focus {
|
|
3796
|
-
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
|
|
3797
|
-
outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
|
|
3798
|
-
border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d);
|
|
3799
|
-
box-shadow: none;
|
|
3800
|
-
}
|
|
3801
|
-
.block-editor-content-only-controls__rich-text::-moz-placeholder {
|
|
3802
|
-
color: rgba(30, 30, 30, 0.62);
|
|
3803
|
-
}
|
|
3804
|
-
.block-editor-content-only-controls__rich-text::placeholder {
|
|
3805
|
-
color: rgba(30, 30, 30, 0.62);
|
|
3806
|
-
}
|
|
3807
|
-
.block-editor-content-only-controls__rich-text {
|
|
3808
|
-
border-color: #949494;
|
|
3809
|
-
}
|
|
3810
|
-
.block-editor-content-only-controls__rich-text::-moz-placeholder {
|
|
3811
|
-
color: color-mix(in srgb, #1e1e1e, transparent 38%);
|
|
3812
|
-
}
|
|
3813
|
-
.block-editor-content-only-controls__rich-text::placeholder {
|
|
3814
|
-
color: color-mix(in srgb, #1e1e1e, transparent 38%);
|
|
3815
|
-
}
|
|
3816
|
-
.block-editor-content-only-controls__rich-text {
|
|
3817
|
-
min-height: 40px;
|
|
3818
|
-
padding: 12px;
|
|
3819
|
-
}
|
|
3820
|
-
|
|
3821
|
-
.block-editor-block-fields__container {
|
|
3822
|
-
padding: 0 16px 16px;
|
|
3823
|
-
}
|
|
3824
|
-
.block-editor-block-fields__container:first-of-type {
|
|
3825
|
-
padding-block-start: 8px;
|
|
3826
|
-
/*
|
|
3827
|
-
* Add border for the entire content controls and remove the similar border
|
|
3828
|
-
* for tools panel.
|
|
3829
|
-
*/
|
|
3830
|
-
border-block-start: 1px solid #e0e0e0;
|
|
3831
|
-
}
|
|
3832
|
-
|
|
3833
|
-
.block-editor-block-fields__header {
|
|
3834
|
-
padding: 8px 0;
|
|
3835
|
-
margin-bottom: 4px;
|
|
3836
|
-
}
|
|
3837
|
-
|
|
3838
|
-
.block-editor-block-fields__header-icon {
|
|
3839
|
-
flex: 0 0 24px;
|
|
3840
|
-
}
|
|
3841
|
-
|
|
3842
|
-
.block-editor-block-fields__header-title {
|
|
3843
|
-
flex: 1;
|
|
3844
|
-
/* Override the default margin on a h2 element. */
|
|
3845
|
-
margin: 0 !important;
|
|
3846
|
-
}
|
|
3847
|
-
|
|
3848
3681
|
.block-editor-hooks__block-hooks {
|
|
3849
3682
|
/**
|
|
3850
3683
|
* Un-reverse the flex direction for the toggle's label.
|
|
@@ -4185,7 +4018,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4185
4018
|
.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list {
|
|
4186
4019
|
display: grid;
|
|
4187
4020
|
grid-template-columns: 1fr 1fr;
|
|
4188
|
-
|
|
4021
|
+
gap: 12px;
|
|
4189
4022
|
}
|
|
4190
4023
|
.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
4191
4024
|
margin-bottom: 0;
|
|
@@ -4515,7 +4348,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4515
4348
|
.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list {
|
|
4516
4349
|
display: grid;
|
|
4517
4350
|
grid-template-columns: 1fr 1fr;
|
|
4518
|
-
|
|
4351
|
+
gap: 8px;
|
|
4519
4352
|
}
|
|
4520
4353
|
.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
4521
4354
|
margin-bottom: 0;
|
|
@@ -4577,7 +4410,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4577
4410
|
|
|
4578
4411
|
.block-editor-block-patterns-explorer .block-editor-block-patterns-list {
|
|
4579
4412
|
display: grid;
|
|
4580
|
-
|
|
4413
|
+
gap: 32px;
|
|
4581
4414
|
grid-template-columns: repeat(1, 1fr);
|
|
4582
4415
|
margin-bottom: 16px;
|
|
4583
4416
|
}
|
|
@@ -4927,4 +4760,50 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4927
4760
|
display: flex;
|
|
4928
4761
|
align-items: center;
|
|
4929
4762
|
justify-content: start;
|
|
4763
|
+
}
|
|
4764
|
+
|
|
4765
|
+
/* The stop element is invisible, so its focus indication is drawn around the
|
|
4766
|
+
canvas it stands for. For the iframed canvas it is an overlay instead of
|
|
4767
|
+
an outline, because Safari paints an outline on an iframe element
|
|
4768
|
+
underneath the iframe's content. */
|
|
4769
|
+
.block-editor-iframe__scale-container > .block-editor-writing-flow__canvas-stop:focus::after {
|
|
4770
|
+
content: "";
|
|
4771
|
+
position: absolute;
|
|
4772
|
+
inset: 0;
|
|
4773
|
+
z-index: 1;
|
|
4774
|
+
pointer-events: none;
|
|
4775
|
+
border: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);
|
|
4776
|
+
}
|
|
4777
|
+
|
|
4778
|
+
.block-editor-writing-flow__canvas-stop:focus + .block-editor-writing-flow {
|
|
4779
|
+
outline: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);
|
|
4780
|
+
outline-offset: calc(-1 * var(--wp-admin-border-width-focus));
|
|
4781
|
+
}
|
|
4782
|
+
|
|
4783
|
+
/* Looks like a tooltip. Shown at the top of the canvas while the stop is
|
|
4784
|
+
focused. Sticky, because on the widgets screen the stop spans scrolling
|
|
4785
|
+
content and the hint must stay in view; anywhere else there is nothing
|
|
4786
|
+
to scroll and it stays at the top of the canvas. */
|
|
4787
|
+
.block-editor-writing-flow__canvas-stop-hint {
|
|
4788
|
+
display: none;
|
|
4789
|
+
position: sticky;
|
|
4790
|
+
top: 16px;
|
|
4791
|
+
margin-inline: auto;
|
|
4792
|
+
width: fit-content;
|
|
4793
|
+
z-index: 2;
|
|
4794
|
+
background: #000;
|
|
4795
|
+
font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
4796
|
+
border-radius: 4px;
|
|
4797
|
+
color: #f0f0f0;
|
|
4798
|
+
text-align: center;
|
|
4799
|
+
line-height: 1.4;
|
|
4800
|
+
font-size: 12px;
|
|
4801
|
+
padding: 4px 8px;
|
|
4802
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02);
|
|
4803
|
+
white-space: nowrap;
|
|
4804
|
+
pointer-events: none;
|
|
4805
|
+
}
|
|
4806
|
+
|
|
4807
|
+
.block-editor-writing-flow__canvas-stop:focus > .block-editor-writing-flow__canvas-stop-hint {
|
|
4808
|
+
display: block;
|
|
4930
4809
|
}
|