@wordpress/block-editor 15.23.0 → 16.0.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 +33 -0
- package/build/autocompleters/block.cjs +10 -2
- package/build/autocompleters/block.cjs.map +2 -2
- package/build/components/background-image-control/index.cjs +0 -2
- package/build/components/background-image-control/index.cjs.map +2 -2
- package/build/components/block-canvas/index.cjs +6 -1
- package/build/components/block-canvas/index.cjs.map +2 -2
- package/build/components/block-controls/groups.cjs +3 -1
- package/build/components/block-controls/groups.cjs.map +2 -2
- package/build/components/block-edit/edit.cjs +10 -18
- package/build/components/block-edit/edit.cjs.map +2 -2
- package/build/components/block-inspector/edit-contents.cjs +3 -0
- package/build/components/block-inspector/edit-contents.cjs.map +3 -3
- package/build/components/block-inspector/index.cjs +2 -3
- package/build/components/block-inspector/index.cjs.map +2 -2
- package/build/components/block-list/block-invalid-warning.cjs +8 -19
- package/build/components/block-list/block-invalid-warning.cjs.map +2 -2
- package/build/components/block-list/block.cjs +9 -3
- package/build/components/block-list/block.cjs.map +3 -3
- package/build/components/block-list/index.cjs +1 -3
- package/build/components/block-list/index.cjs.map +2 -2
- package/build/components/block-list/use-block-props/index.cjs +3 -1
- package/build/components/block-list/use-block-props/index.cjs.map +2 -2
- package/build/components/block-list/use-block-props/use-focus-first-element.cjs +9 -4
- package/build/components/block-list/use-block-props/use-focus-first-element.cjs.map +2 -2
- package/build/components/block-list/use-block-props/use-focus-handler.cjs +12 -4
- package/build/components/block-list/use-block-props/use-focus-handler.cjs.map +2 -2
- package/build/components/block-styles/use-styles-for-block.cjs +2 -1
- package/build/components/block-styles/use-styles-for-block.cjs.map +2 -2
- package/build/components/block-title/use-block-display-title.cjs +7 -2
- package/build/components/block-title/use-block-display-title.cjs.map +2 -2
- package/build/components/block-toolbar/block-toolbar-icon.cjs +10 -14
- package/build/components/block-toolbar/block-toolbar-icon.cjs.map +2 -2
- package/build/components/block-toolbar/index.cjs +43 -24
- package/build/components/block-toolbar/index.cjs.map +2 -2
- package/build/components/block-tools/index.cjs +7 -2
- package/build/components/block-tools/index.cjs.map +2 -2
- package/build/components/block-variation-transforms/index.cjs +0 -1
- package/build/components/block-variation-transforms/index.cjs.map +2 -2
- package/build/components/block-visibility/modal.cjs +20 -6
- package/build/components/block-visibility/modal.cjs.map +2 -2
- package/build/components/block-visibility/use-block-visibility.cjs +16 -6
- package/build/components/block-visibility/use-block-visibility.cjs.map +3 -3
- package/build/components/block-visibility/utils.cjs +15 -2
- package/build/components/block-visibility/utils.cjs.map +3 -3
- package/build/components/block-visibility/viewport-menu-item.cjs +7 -1
- package/build/components/block-visibility/viewport-menu-item.cjs.map +2 -2
- package/build/components/block-visibility/viewport-toolbar.cjs +5 -0
- package/build/components/block-visibility/viewport-toolbar.cjs.map +2 -2
- package/build/components/block-visibility/viewport-visibility-info.cjs +5 -1
- package/build/components/block-visibility/viewport-visibility-info.cjs.map +2 -2
- package/build/components/child-layout-control/index.cjs +0 -6
- package/build/components/child-layout-control/index.cjs.map +2 -2
- package/build/components/colors-gradients/control.cjs +5 -5
- package/build/components/colors-gradients/control.cjs.map +2 -2
- package/build/components/date-format-picker/index.cjs +0 -1
- package/build/components/date-format-picker/index.cjs.map +2 -2
- package/build/components/dimensions-tool/aspect-ratio-tool.cjs +1 -2
- package/build/components/dimensions-tool/aspect-ratio-tool.cjs.map +2 -2
- package/build/components/dimensions-tool/scale-tool.cjs +0 -1
- package/build/components/dimensions-tool/scale-tool.cjs.map +2 -2
- package/build/components/dimensions-tool/width-height-tool.cjs +2 -4
- package/build/components/dimensions-tool/width-height-tool.cjs.map +2 -2
- package/build/components/font-appearance-control/index.cjs +6 -25
- package/build/components/font-appearance-control/index.cjs.map +3 -3
- package/build/components/font-family/index.cjs +6 -15
- package/build/components/font-family/index.cjs.map +3 -3
- package/build/components/font-sizes/font-size-picker.cjs +1 -2
- package/build/components/font-sizes/font-size-picker.cjs.map +2 -2
- package/build/components/global-styles/border-panel.cjs +0 -1
- package/build/components/global-styles/border-panel.cjs.map +2 -2
- package/build/components/global-styles/dimensions-panel.cjs +0 -3
- package/build/components/global-styles/dimensions-panel.cjs.map +2 -2
- package/build/components/global-styles/state-control-badges.cjs +39 -3
- package/build/components/global-styles/state-control-badges.cjs.map +2 -2
- package/build/components/global-styles/typography-panel.cjs +4 -11
- package/build/components/global-styles/typography-panel.cjs.map +2 -2
- package/build/components/height-control/index.cjs +0 -2
- package/build/components/height-control/index.cjs.map +2 -2
- package/build/components/html-element-control/index.cjs +0 -1
- package/build/components/html-element-control/index.cjs.map +2 -2
- package/build/components/image-editor/index.cjs +5 -0
- package/build/components/image-editor/index.cjs.map +3 -3
- package/build/components/image-editor/zoom-dropdown.cjs +0 -1
- package/build/components/image-editor/zoom-dropdown.cjs.map +2 -2
- package/build/components/image-size-control/index.cjs +3 -7
- package/build/components/image-size-control/index.cjs.map +2 -2
- package/build/components/inner-content/index.cjs +107 -0
- package/build/components/inner-content/index.cjs.map +7 -0
- package/build/components/inserter/hooks/use-block-types-state.cjs +10 -2
- package/build/components/inserter/hooks/use-block-types-state.cjs.map +2 -2
- package/build/components/inserter/media-tab/hooks.cjs +67 -12
- package/build/components/inserter/media-tab/hooks.cjs.map +2 -2
- package/build/components/inserter/media-tab/media-list.cjs +3 -1
- package/build/components/inserter/media-tab/media-list.cjs.map +2 -2
- package/build/components/inserter/media-tab/media-panel.cjs +287 -28
- package/build/components/inserter/media-tab/media-panel.cjs.map +3 -3
- package/build/components/inserter/media-tab/media-preview.cjs +32 -17
- package/build/components/inserter/media-tab/media-preview.cjs.map +2 -2
- package/build/components/inserter/media-tab/media-tab.cjs +26 -6
- package/build/components/inserter/media-tab/media-tab.cjs.map +2 -2
- package/build/components/inserter/mobile-tab-navigation.cjs +6 -1
- package/build/components/inserter/mobile-tab-navigation.cjs.map +2 -2
- package/build/components/inserter/no-results.cjs +2 -2
- package/build/components/inserter/no-results.cjs.map +2 -2
- package/build/components/inserter/preview-panel.cjs +2 -1
- package/build/components/inserter/preview-panel.cjs.map +2 -2
- package/build/components/inserter-list-item/index.cjs +8 -2
- package/build/components/inserter-list-item/index.cjs.map +2 -2
- package/build/components/keyboard-shortcuts/index.cjs +19 -11
- package/build/components/keyboard-shortcuts/index.cjs.map +2 -2
- package/build/components/letter-spacing-control/index.cjs +0 -24
- package/build/components/letter-spacing-control/index.cjs.map +3 -3
- package/build/components/line-height-control/index.cjs +6 -22
- package/build/components/line-height-control/index.cjs.map +3 -3
- package/build/components/list-view/block-select-button.cjs +90 -84
- package/build/components/list-view/block-select-button.cjs.map +2 -2
- package/build/components/list-view/block.cjs +61 -21
- package/build/components/list-view/block.cjs.map +2 -2
- package/build/components/list-view/expander.cjs +1 -1
- package/build/components/list-view/expander.cjs.map +2 -2
- package/build/components/list-view/use-list-view-client-ids.cjs +2 -2
- package/build/components/list-view/use-list-view-client-ids.cjs.map +2 -2
- package/build/components/media-placeholder/index.cjs +0 -1
- package/build/components/media-placeholder/index.cjs.map +2 -2
- package/build/components/observe-typing/index.cjs +4 -3
- package/build/components/observe-typing/index.cjs.map +2 -2
- package/build/components/preset-input-control/custom-value-controls.cjs +1 -3
- package/build/components/preset-input-control/custom-value-controls.cjs.map +2 -2
- package/build/components/preset-input-control/index.cjs +1 -3
- package/build/components/preset-input-control/index.cjs.map +2 -2
- package/build/components/resolution-tool/index.cjs +1 -2
- package/build/components/resolution-tool/index.cjs.map +2 -2
- package/build/components/rich-text/event-listeners/before-input-rules.cjs +3 -4
- package/build/components/rich-text/event-listeners/before-input-rules.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/delete.cjs +2 -3
- package/build/components/rich-text/event-listeners/delete.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/enter.cjs +3 -2
- package/build/components/rich-text/event-listeners/enter.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/input-events.cjs +3 -3
- package/build/components/rich-text/event-listeners/input-events.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/input-rules.cjs +3 -4
- package/build/components/rich-text/event-listeners/input-rules.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/insert-replacement-text.cjs +3 -3
- package/build/components/rich-text/event-listeners/insert-replacement-text.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/paste-handler.cjs +2 -1
- package/build/components/rich-text/event-listeners/paste-handler.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/remove-browser-shortcuts.cjs +3 -3
- package/build/components/rich-text/event-listeners/remove-browser-shortcuts.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/shortcuts.cjs +3 -3
- package/build/components/rich-text/event-listeners/shortcuts.cjs.map +3 -3
- package/build/components/rich-text/event-listeners/undo-automatic-change.cjs +3 -3
- package/build/components/rich-text/event-listeners/undo-automatic-change.cjs.map +3 -3
- package/build/components/rich-text/index.cjs +66 -17
- package/build/components/rich-text/index.cjs.map +2 -2
- package/build/components/text-alignment-control/index.cjs +0 -1
- package/build/components/text-alignment-control/index.cjs.map +2 -2
- package/build/components/text-decoration-control/index.cjs +0 -1
- package/build/components/text-decoration-control/index.cjs.map +2 -2
- package/build/components/text-indent-control/index.cjs +0 -8
- package/build/components/text-indent-control/index.cjs.map +2 -2
- package/build/components/text-transform-control/index.cjs +0 -1
- package/build/components/text-transform-control/index.cjs.map +2 -2
- package/build/components/typewriter/index.cjs +129 -136
- package/build/components/typewriter/index.cjs.map +3 -3
- package/build/components/use-block-commands/index.cjs +21 -17
- package/build/components/use-block-commands/index.cjs.map +2 -2
- package/build/components/use-block-display-information/index.cjs +10 -8
- package/build/components/use-block-display-information/index.cjs.map +2 -2
- package/build/components/use-on-block-drop/index.cjs +3 -7
- package/build/components/use-on-block-drop/index.cjs.map +2 -2
- package/build/components/writing-flow/index.cjs +12 -1
- package/build/components/writing-flow/index.cjs.map +3 -3
- package/build/components/writing-flow/use-arrow-nav.cjs +18 -5
- package/build/components/writing-flow/use-arrow-nav.cjs.map +2 -2
- package/build/components/writing-flow/use-click-selection.cjs +2 -2
- package/build/components/writing-flow/use-click-selection.cjs.map +2 -2
- package/build/components/writing-flow/use-clipboard-handler.cjs +4 -1
- package/build/components/writing-flow/use-clipboard-handler.cjs.map +2 -2
- package/build/components/writing-flow/use-drag-selection.cjs +3 -8
- package/build/components/writing-flow/use-drag-selection.cjs.map +2 -2
- package/build/components/writing-flow/use-editable-root.cjs +112 -0
- package/build/components/writing-flow/use-editable-root.cjs.map +7 -0
- package/build/components/writing-flow/use-home-end.cjs +64 -0
- package/build/components/writing-flow/use-home-end.cjs.map +7 -0
- package/build/components/writing-flow/use-input.cjs +15 -5
- package/build/components/writing-flow/use-input.cjs.map +2 -2
- package/build/components/writing-flow/use-multi-selection.cjs +2 -2
- package/build/components/writing-flow/use-multi-selection.cjs.map +2 -2
- package/build/components/writing-flow/use-select-all.cjs +14 -2
- package/build/components/writing-flow/use-select-all.cjs.map +2 -2
- package/build/components/writing-flow/use-selection-observer.cjs +126 -20
- package/build/components/writing-flow/use-selection-observer.cjs.map +3 -3
- package/build/components/writing-flow/utils.cjs +39 -2
- package/build/components/writing-flow/utils.cjs.map +2 -2
- package/build/components/writing-mode-control/index.cjs +0 -1
- package/build/components/writing-mode-control/index.cjs.map +2 -2
- package/build/hooks/background.cjs +3 -2
- package/build/hooks/background.cjs.map +2 -2
- package/build/hooks/block-fields/rich-text/index.cjs +2 -3
- package/build/hooks/block-fields/rich-text/index.cjs.map +3 -3
- package/build/hooks/elements.cjs +1 -1
- package/build/hooks/elements.cjs.map +2 -2
- package/build/hooks/font-size.cjs +1 -2
- package/build/hooks/font-size.cjs.map +2 -2
- package/build/hooks/grid-visualizer.cjs +5 -3
- package/build/hooks/grid-visualizer.cjs.map +2 -2
- package/build/hooks/layout-child.cjs +22 -12
- package/build/hooks/layout-child.cjs.map +3 -3
- package/build/hooks/layout.cjs +33 -16
- package/build/hooks/layout.cjs.map +3 -3
- package/build/hooks/position.cjs +36 -16
- package/build/hooks/position.cjs.map +2 -2
- package/build/hooks/states.cjs +29 -12
- package/build/hooks/states.cjs.map +3 -3
- package/build/hooks/style.cjs +31 -9
- package/build/hooks/style.cjs.map +3 -3
- package/build/hooks/text-align.cjs +36 -6
- package/build/hooks/text-align.cjs.map +3 -3
- package/build/hooks/typography.cjs +1 -1
- package/build/hooks/typography.cjs.map +2 -2
- package/build/layouts/constrained.cjs +35 -27
- package/build/layouts/constrained.cjs.map +2 -2
- package/build/layouts/flex.cjs +27 -22
- package/build/layouts/flex.cjs.map +2 -2
- package/build/layouts/grid.cjs +51 -11
- package/build/layouts/grid.cjs.map +2 -2
- package/build/private-apis.cjs +4 -1
- package/build/private-apis.cjs.map +3 -3
- package/build/store/actions.cjs +2 -2
- package/build/store/actions.cjs.map +2 -2
- package/build/store/private-keys.cjs +3 -0
- package/build/store/private-keys.cjs.map +2 -2
- package/build/store/private-selectors.cjs +85 -6
- package/build/store/private-selectors.cjs.map +3 -3
- package/build/store/selectors.cjs +13 -0
- package/build/store/selectors.cjs.map +2 -2
- package/build/utils/block-bindings.cjs +29 -0
- package/build/utils/block-bindings.cjs.map +2 -2
- package/build/utils/dom.cjs +14 -0
- package/build/utils/dom.cjs.map +2 -2
- package/build-module/autocompleters/block.mjs +10 -2
- package/build-module/autocompleters/block.mjs.map +2 -2
- package/build-module/components/background-image-control/index.mjs +0 -2
- package/build-module/components/background-image-control/index.mjs.map +2 -2
- package/build-module/components/block-canvas/index.mjs +7 -2
- package/build-module/components/block-canvas/index.mjs.map +2 -2
- package/build-module/components/block-controls/groups.mjs +3 -1
- package/build-module/components/block-controls/groups.mjs.map +2 -2
- package/build-module/components/block-edit/edit.mjs +11 -18
- package/build-module/components/block-edit/edit.mjs.map +2 -2
- package/build-module/components/block-inspector/edit-contents.mjs +4 -1
- package/build-module/components/block-inspector/edit-contents.mjs.map +2 -2
- package/build-module/components/block-inspector/index.mjs +2 -3
- package/build-module/components/block-inspector/index.mjs.map +2 -2
- package/build-module/components/block-list/block-invalid-warning.mjs +8 -19
- package/build-module/components/block-list/block-invalid-warning.mjs.map +2 -2
- package/build-module/components/block-list/block.mjs +9 -3
- package/build-module/components/block-list/block.mjs.map +3 -3
- package/build-module/components/block-list/index.mjs +1 -3
- package/build-module/components/block-list/index.mjs.map +2 -2
- package/build-module/components/block-list/use-block-props/index.mjs +3 -1
- package/build-module/components/block-list/use-block-props/index.mjs.map +2 -2
- package/build-module/components/block-list/use-block-props/use-focus-first-element.mjs +9 -4
- package/build-module/components/block-list/use-block-props/use-focus-first-element.mjs.map +2 -2
- package/build-module/components/block-list/use-block-props/use-focus-handler.mjs +12 -4
- package/build-module/components/block-list/use-block-props/use-focus-handler.mjs.map +2 -2
- package/build-module/components/block-styles/use-styles-for-block.mjs +2 -1
- package/build-module/components/block-styles/use-styles-for-block.mjs.map +2 -2
- package/build-module/components/block-title/use-block-display-title.mjs +7 -2
- package/build-module/components/block-title/use-block-display-title.mjs.map +2 -2
- package/build-module/components/block-toolbar/block-toolbar-icon.mjs +10 -14
- package/build-module/components/block-toolbar/block-toolbar-icon.mjs.map +2 -2
- package/build-module/components/block-toolbar/index.mjs +43 -24
- package/build-module/components/block-toolbar/index.mjs.map +2 -2
- package/build-module/components/block-tools/index.mjs +7 -2
- package/build-module/components/block-tools/index.mjs.map +2 -2
- package/build-module/components/block-variation-transforms/index.mjs +0 -1
- package/build-module/components/block-variation-transforms/index.mjs.map +2 -2
- package/build-module/components/block-visibility/modal.mjs +22 -10
- package/build-module/components/block-visibility/modal.mjs.map +2 -2
- package/build-module/components/block-visibility/use-block-visibility.mjs +17 -7
- package/build-module/components/block-visibility/use-block-visibility.mjs.map +2 -2
- package/build-module/components/block-visibility/utils.mjs +18 -3
- package/build-module/components/block-visibility/utils.mjs.map +2 -2
- package/build-module/components/block-visibility/viewport-menu-item.mjs +7 -1
- package/build-module/components/block-visibility/viewport-menu-item.mjs.map +2 -2
- package/build-module/components/block-visibility/viewport-toolbar.mjs +5 -0
- package/build-module/components/block-visibility/viewport-toolbar.mjs.map +2 -2
- package/build-module/components/block-visibility/viewport-visibility-info.mjs +5 -1
- package/build-module/components/block-visibility/viewport-visibility-info.mjs.map +2 -2
- package/build-module/components/child-layout-control/index.mjs +0 -6
- package/build-module/components/child-layout-control/index.mjs.map +2 -2
- package/build-module/components/colors-gradients/control.mjs +5 -5
- package/build-module/components/colors-gradients/control.mjs.map +2 -2
- package/build-module/components/date-format-picker/index.mjs +0 -1
- package/build-module/components/date-format-picker/index.mjs.map +2 -2
- package/build-module/components/dimensions-tool/aspect-ratio-tool.mjs +1 -2
- package/build-module/components/dimensions-tool/aspect-ratio-tool.mjs.map +2 -2
- package/build-module/components/dimensions-tool/scale-tool.mjs +0 -1
- package/build-module/components/dimensions-tool/scale-tool.mjs.map +2 -2
- package/build-module/components/dimensions-tool/width-height-tool.mjs +2 -4
- package/build-module/components/dimensions-tool/width-height-tool.mjs.map +2 -2
- package/build-module/components/font-appearance-control/index.mjs +6 -15
- package/build-module/components/font-appearance-control/index.mjs.map +2 -2
- package/build-module/components/font-family/index.mjs +6 -15
- package/build-module/components/font-family/index.mjs.map +2 -2
- package/build-module/components/font-sizes/font-size-picker.mjs +1 -2
- package/build-module/components/font-sizes/font-size-picker.mjs.map +2 -2
- package/build-module/components/global-styles/border-panel.mjs +0 -1
- package/build-module/components/global-styles/border-panel.mjs.map +2 -2
- package/build-module/components/global-styles/dimensions-panel.mjs +0 -3
- package/build-module/components/global-styles/dimensions-panel.mjs.map +2 -2
- package/build-module/components/global-styles/state-control-badges.mjs +41 -5
- package/build-module/components/global-styles/state-control-badges.mjs.map +2 -2
- package/build-module/components/global-styles/typography-panel.mjs +4 -11
- package/build-module/components/global-styles/typography-panel.mjs.map +2 -2
- package/build-module/components/height-control/index.mjs +0 -2
- package/build-module/components/height-control/index.mjs.map +2 -2
- package/build-module/components/html-element-control/index.mjs +0 -1
- package/build-module/components/html-element-control/index.mjs.map +2 -2
- package/build-module/components/image-editor/index.mjs +5 -0
- package/build-module/components/image-editor/index.mjs.map +2 -2
- package/build-module/components/image-editor/zoom-dropdown.mjs +0 -1
- package/build-module/components/image-editor/zoom-dropdown.mjs.map +2 -2
- package/build-module/components/image-size-control/index.mjs +3 -7
- package/build-module/components/image-size-control/index.mjs.map +2 -2
- package/build-module/components/inner-content/index.mjs +82 -0
- package/build-module/components/inner-content/index.mjs.map +7 -0
- package/build-module/components/inserter/hooks/use-block-types-state.mjs +10 -2
- package/build-module/components/inserter/hooks/use-block-types-state.mjs.map +2 -2
- package/build-module/components/inserter/media-tab/hooks.mjs +66 -12
- package/build-module/components/inserter/media-tab/hooks.mjs.map +2 -2
- package/build-module/components/inserter/media-tab/media-list.mjs +3 -1
- package/build-module/components/inserter/media-tab/media-list.mjs.map +2 -2
- package/build-module/components/inserter/media-tab/media-panel.mjs +297 -32
- package/build-module/components/inserter/media-tab/media-panel.mjs.map +2 -2
- package/build-module/components/inserter/media-tab/media-preview.mjs +33 -18
- package/build-module/components/inserter/media-tab/media-preview.mjs.map +2 -2
- package/build-module/components/inserter/media-tab/media-tab.mjs +27 -7
- package/build-module/components/inserter/media-tab/media-tab.mjs.map +2 -2
- package/build-module/components/inserter/mobile-tab-navigation.mjs +6 -1
- package/build-module/components/inserter/mobile-tab-navigation.mjs.map +2 -2
- package/build-module/components/inserter/no-results.mjs +2 -2
- package/build-module/components/inserter/no-results.mjs.map +2 -2
- package/build-module/components/inserter/preview-panel.mjs +2 -1
- package/build-module/components/inserter/preview-panel.mjs.map +2 -2
- package/build-module/components/inserter-list-item/index.mjs +8 -2
- package/build-module/components/inserter-list-item/index.mjs.map +2 -2
- package/build-module/components/keyboard-shortcuts/index.mjs +19 -11
- package/build-module/components/keyboard-shortcuts/index.mjs.map +2 -2
- package/build-module/components/letter-spacing-control/index.mjs +0 -14
- package/build-module/components/letter-spacing-control/index.mjs.map +2 -2
- package/build-module/components/line-height-control/index.mjs +6 -12
- package/build-module/components/line-height-control/index.mjs.map +2 -2
- package/build-module/components/list-view/block-select-button.mjs +90 -84
- package/build-module/components/list-view/block-select-button.mjs.map +2 -2
- package/build-module/components/list-view/block.mjs +61 -21
- package/build-module/components/list-view/block.mjs.map +2 -2
- package/build-module/components/list-view/expander.mjs +1 -1
- package/build-module/components/list-view/expander.mjs.map +2 -2
- package/build-module/components/list-view/use-list-view-client-ids.mjs +2 -2
- package/build-module/components/list-view/use-list-view-client-ids.mjs.map +2 -2
- package/build-module/components/media-placeholder/index.mjs +0 -1
- package/build-module/components/media-placeholder/index.mjs.map +2 -2
- package/build-module/components/observe-typing/index.mjs +4 -3
- package/build-module/components/observe-typing/index.mjs.map +2 -2
- package/build-module/components/preset-input-control/custom-value-controls.mjs +1 -3
- package/build-module/components/preset-input-control/custom-value-controls.mjs.map +2 -2
- package/build-module/components/preset-input-control/index.mjs +1 -3
- package/build-module/components/preset-input-control/index.mjs.map +2 -2
- package/build-module/components/resolution-tool/index.mjs +1 -2
- package/build-module/components/resolution-tool/index.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/before-input-rules.mjs +8 -5
- package/build-module/components/rich-text/event-listeners/before-input-rules.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/delete.mjs +7 -4
- package/build-module/components/rich-text/event-listeners/delete.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/enter.mjs +8 -3
- package/build-module/components/rich-text/event-listeners/enter.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/input-events.mjs +3 -3
- package/build-module/components/rich-text/event-listeners/input-events.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/input-rules.mjs +8 -5
- package/build-module/components/rich-text/event-listeners/input-rules.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/insert-replacement-text.mjs +3 -3
- package/build-module/components/rich-text/event-listeners/insert-replacement-text.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/paste-handler.mjs +8 -2
- package/build-module/components/rich-text/event-listeners/paste-handler.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/remove-browser-shortcuts.mjs +3 -3
- package/build-module/components/rich-text/event-listeners/remove-browser-shortcuts.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/shortcuts.mjs +3 -3
- package/build-module/components/rich-text/event-listeners/shortcuts.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/undo-automatic-change.mjs +3 -3
- package/build-module/components/rich-text/event-listeners/undo-automatic-change.mjs.map +2 -2
- package/build-module/components/rich-text/index.mjs +64 -13
- package/build-module/components/rich-text/index.mjs.map +2 -2
- package/build-module/components/text-alignment-control/index.mjs +0 -1
- package/build-module/components/text-alignment-control/index.mjs.map +2 -2
- package/build-module/components/text-decoration-control/index.mjs +0 -1
- package/build-module/components/text-decoration-control/index.mjs.map +2 -2
- package/build-module/components/text-indent-control/index.mjs +0 -8
- package/build-module/components/text-indent-control/index.mjs.map +2 -2
- package/build-module/components/text-transform-control/index.mjs +0 -1
- package/build-module/components/text-transform-control/index.mjs.map +2 -2
- package/build-module/components/typewriter/index.mjs +129 -136
- package/build-module/components/typewriter/index.mjs.map +2 -2
- package/build-module/components/use-block-commands/index.mjs +21 -17
- package/build-module/components/use-block-commands/index.mjs.map +2 -2
- package/build-module/components/use-block-display-information/index.mjs +10 -8
- package/build-module/components/use-block-display-information/index.mjs.map +2 -2
- package/build-module/components/use-on-block-drop/index.mjs +4 -7
- package/build-module/components/use-on-block-drop/index.mjs.map +2 -2
- package/build-module/components/writing-flow/index.mjs +12 -1
- package/build-module/components/writing-flow/index.mjs.map +2 -2
- package/build-module/components/writing-flow/use-arrow-nav.mjs +19 -6
- package/build-module/components/writing-flow/use-arrow-nav.mjs.map +2 -2
- package/build-module/components/writing-flow/use-click-selection.mjs +2 -2
- package/build-module/components/writing-flow/use-click-selection.mjs.map +2 -2
- package/build-module/components/writing-flow/use-clipboard-handler.mjs +5 -2
- package/build-module/components/writing-flow/use-clipboard-handler.mjs.map +2 -2
- package/build-module/components/writing-flow/use-drag-selection.mjs +1 -6
- package/build-module/components/writing-flow/use-drag-selection.mjs.map +2 -2
- package/build-module/components/writing-flow/use-editable-root.mjs +86 -0
- package/build-module/components/writing-flow/use-editable-root.mjs.map +7 -0
- package/build-module/components/writing-flow/use-home-end.mjs +43 -0
- package/build-module/components/writing-flow/use-home-end.mjs.map +7 -0
- package/build-module/components/writing-flow/use-input.mjs +15 -5
- package/build-module/components/writing-flow/use-input.mjs.map +2 -2
- package/build-module/components/writing-flow/use-multi-selection.mjs +2 -2
- package/build-module/components/writing-flow/use-multi-selection.mjs.map +2 -2
- package/build-module/components/writing-flow/use-select-all.mjs +19 -3
- package/build-module/components/writing-flow/use-select-all.mjs.map +2 -2
- package/build-module/components/writing-flow/use-selection-observer.mjs +128 -19
- package/build-module/components/writing-flow/use-selection-observer.mjs.map +2 -2
- package/build-module/components/writing-flow/utils.mjs +35 -1
- package/build-module/components/writing-flow/utils.mjs.map +2 -2
- package/build-module/components/writing-mode-control/index.mjs +0 -1
- package/build-module/components/writing-mode-control/index.mjs.map +2 -2
- package/build-module/hooks/background.mjs +3 -2
- package/build-module/hooks/background.mjs.map +2 -2
- package/build-module/hooks/block-fields/rich-text/index.mjs +2 -6
- package/build-module/hooks/block-fields/rich-text/index.mjs.map +2 -2
- package/build-module/hooks/elements.mjs +1 -1
- package/build-module/hooks/elements.mjs.map +2 -2
- package/build-module/hooks/font-size.mjs +1 -2
- package/build-module/hooks/font-size.mjs.map +2 -2
- package/build-module/hooks/grid-visualizer.mjs +5 -3
- package/build-module/hooks/grid-visualizer.mjs.map +2 -2
- package/build-module/hooks/layout-child.mjs +22 -12
- package/build-module/hooks/layout-child.mjs.map +2 -2
- package/build-module/hooks/layout.mjs +32 -16
- package/build-module/hooks/layout.mjs.map +2 -2
- package/build-module/hooks/position.mjs +38 -18
- package/build-module/hooks/position.mjs.map +2 -2
- package/build-module/hooks/states.mjs +29 -12
- package/build-module/hooks/states.mjs.map +2 -2
- package/build-module/hooks/style.mjs +40 -11
- package/build-module/hooks/style.mjs.map +2 -2
- package/build-module/hooks/text-align.mjs +39 -10
- package/build-module/hooks/text-align.mjs.map +2 -2
- package/build-module/hooks/typography.mjs +1 -1
- package/build-module/hooks/typography.mjs.map +2 -2
- package/build-module/layouts/constrained.mjs +35 -27
- package/build-module/layouts/constrained.mjs.map +2 -2
- package/build-module/layouts/flex.mjs +27 -22
- package/build-module/layouts/flex.mjs.map +2 -2
- package/build-module/layouts/grid.mjs +52 -11
- package/build-module/layouts/grid.mjs.map +2 -2
- package/build-module/private-apis.mjs +5 -1
- package/build-module/private-apis.mjs.map +2 -2
- package/build-module/store/actions.mjs +3 -3
- package/build-module/store/actions.mjs.map +2 -2
- package/build-module/store/private-keys.mjs +2 -0
- package/build-module/store/private-keys.mjs.map +2 -2
- package/build-module/store/private-selectors.mjs +84 -6
- package/build-module/store/private-selectors.mjs.map +2 -2
- package/build-module/store/selectors.mjs +13 -0
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-module/utils/block-bindings.mjs +28 -0
- package/build-module/utils/block-bindings.mjs.map +2 -2
- package/build-module/utils/dom.mjs +13 -0
- package/build-module/utils/dom.mjs.map +2 -2
- package/build-style/content-rtl.css +15 -14
- package/build-style/content.css +15 -14
- package/build-style/default-editor-styles-rtl.css +1 -1
- package/build-style/default-editor-styles.css +1 -1
- package/build-style/style-rtl.css +144 -47
- package/build-style/style.css +144 -47
- package/build-types/components/block-context/index.d.ts +7 -0
- package/build-types/components/block-context/index.d.ts.map +1 -1
- package/build-types/utils/block-bindings.d.ts +19 -0
- package/build-types/utils/block-bindings.d.ts.map +1 -1
- package/build-types/utils/dom.d.ts +11 -0
- package/build-types/utils/dom.d.ts.map +1 -1
- package/build-types/utils/get-px-from-css-unit.d.ts +2 -2
- package/build-types/utils/get-px-from-css-unit.d.ts.map +1 -1
- package/build-types/utils/pasting.d.ts +1 -1
- package/build-types/utils/pasting.d.ts.map +1 -1
- package/package.json +46 -44
- package/src/autocompleters/block.js +10 -3
- package/src/autocompleters/test/block.js +53 -0
- package/src/components/background-image-control/index.js +0 -2
- package/src/components/block-canvas/index.js +9 -2
- package/src/components/block-card/style.scss +1 -1
- package/src/components/block-controls/groups.js +2 -0
- package/src/components/block-edit/edit.js +13 -31
- package/src/components/block-inspector/edit-contents.js +5 -1
- package/src/components/block-inspector/index.js +3 -2
- package/src/components/block-list/block-invalid-warning.js +8 -19
- package/src/components/block-list/block.js +6 -0
- package/src/components/block-list/index.js +0 -2
- package/src/components/block-list/use-block-props/index.js +2 -0
- package/src/components/block-list/use-block-props/use-focus-first-element.js +23 -4
- package/src/components/block-list/use-block-props/use-focus-handler.js +34 -9
- package/src/components/block-lock/style.scss +1 -1
- package/src/components/block-manager/style.scss +1 -1
- package/src/components/block-navigation/style.scss +1 -1
- package/src/components/block-patterns-list/stories/index.story.jsx +1 -1
- package/src/components/block-quick-navigation/style.scss +1 -3
- package/src/components/block-styles/style.scss +2 -2
- package/src/components/block-styles/use-styles-for-block.js +1 -0
- package/src/components/block-title/use-block-display-title.js +7 -2
- package/src/components/block-toolbar/block-toolbar-icon.js +11 -16
- package/src/components/block-toolbar/index.js +41 -18
- package/src/components/block-toolbar/test/block-toolbar-icon.js +32 -9
- package/src/components/block-tools/index.js +7 -0
- package/src/components/block-types-list/style.scss +0 -1
- package/src/components/block-variation-transforms/index.js +0 -1
- package/src/components/block-visibility/modal.js +24 -10
- package/src/components/block-visibility/style.scss +1 -1
- package/src/components/block-visibility/test/use-block-visibility.js +128 -35
- package/src/components/block-visibility/test/utils.js +11 -0
- package/src/components/block-visibility/use-block-visibility.js +33 -11
- package/src/components/block-visibility/utils.js +31 -6
- package/src/components/block-visibility/viewport-menu-item.js +10 -1
- package/src/components/block-visibility/viewport-toolbar.js +6 -0
- package/src/components/block-visibility/viewport-visibility-info.js +5 -1
- package/src/components/button-block-appender/content.scss +1 -7
- package/src/components/child-layout-control/index.js +0 -6
- package/src/components/color-palette/test/__snapshots__/control.js.snap +13 -108
- package/src/components/colors-gradients/control.js +4 -4
- package/src/components/colors-gradients/style.scss +2 -2
- package/src/components/date-format-picker/index.js +0 -1
- package/src/components/dimensions-tool/aspect-ratio-tool.js +0 -1
- package/src/components/dimensions-tool/scale-tool.js +0 -1
- package/src/components/dimensions-tool/width-height-tool.js +0 -2
- package/src/components/font-appearance-control/index.js +6 -19
- package/src/components/font-family/README.md +0 -9
- package/src/components/font-family/index.js +6 -19
- package/src/components/font-family/stories/index.story.jsx +1 -2
- package/src/components/font-sizes/font-size-picker.js +0 -1
- package/src/components/global-styles/border-panel.js +0 -1
- package/src/components/global-styles/dimensions-panel.js +0 -3
- package/src/components/global-styles/state-control-badges.js +45 -6
- package/src/components/global-styles/style.scss +5 -0
- package/src/components/global-styles/test/state-control-badges.js +65 -0
- package/src/components/global-styles/typography-panel.js +0 -7
- package/src/components/height-control/index.js +0 -2
- package/src/components/html-element-control/index.js +0 -1
- package/src/components/iframe/content.scss +3 -3
- package/src/components/image-editor/index.js +22 -0
- package/src/components/image-editor/zoom-dropdown.js +0 -1
- package/src/components/image-size-control/index.js +0 -4
- package/src/components/inner-content/index.js +119 -0
- package/src/components/inner-content/test/index.js +81 -0
- package/src/components/inserter/hooks/use-block-types-state.js +10 -2
- package/src/components/inserter/media-tab/hooks.js +114 -16
- package/src/components/inserter/media-tab/media-list.js +2 -0
- package/src/components/inserter/media-tab/media-panel.js +354 -19
- package/src/components/inserter/media-tab/media-preview.js +34 -17
- package/src/components/inserter/media-tab/media-tab.js +20 -2
- package/src/components/inserter/media-tab/test/hooks.js +267 -0
- package/src/components/inserter/media-tab/test/media-panel.js +127 -0
- package/src/components/inserter/mobile-tab-navigation.js +6 -1
- package/src/components/inserter/no-results.js +2 -2
- package/src/components/inserter/preview-panel.js +1 -0
- package/src/components/inserter/style.scss +115 -3
- package/src/components/inserter-list-item/index.js +8 -2
- package/src/components/inserter-list-item/style.scss +0 -15
- package/src/components/keyboard-shortcuts/index.js +28 -11
- package/src/components/letter-spacing-control/README.md +0 -8
- package/src/components/letter-spacing-control/index.js +5 -23
- package/src/components/letter-spacing-control/stories/index.story.jsx +0 -12
- package/src/components/line-height-control/README.md +0 -8
- package/src/components/line-height-control/index.js +6 -16
- package/src/components/line-height-control/stories/index.story.jsx +0 -1
- package/src/components/line-height-control/test/index.js +1 -7
- package/src/components/link-control/style.scss +2 -2
- package/src/components/link-control/test/index.js +6 -6
- package/src/components/link-picker/style.scss +1 -2
- package/src/components/link-picker/test/index.js +3 -1
- package/src/components/list-view/block-select-button.js +5 -1
- package/src/components/list-view/block.js +69 -23
- package/src/components/list-view/expander.js +5 -1
- package/src/components/list-view/style.scss +23 -5
- package/src/components/list-view/use-list-view-client-ids.js +2 -2
- package/src/components/media-placeholder/index.js +0 -1
- package/src/components/multi-selection-inspector/style.scss +1 -1
- package/src/components/observe-typing/index.js +9 -4
- package/src/components/preset-input-control/custom-value-controls.js +0 -2
- package/src/components/preset-input-control/index.js +0 -2
- package/src/components/resolution-tool/index.js +0 -1
- package/src/components/responsive-block-control/style.scss +1 -1
- package/src/components/responsive-block-control/test/index.js +1 -5
- package/src/components/rich-text/event-listeners/before-input-rules.js +8 -5
- package/src/components/rich-text/event-listeners/delete.js +7 -4
- package/src/components/rich-text/event-listeners/enter.js +10 -4
- package/src/components/rich-text/event-listeners/input-events.js +4 -3
- package/src/components/rich-text/event-listeners/input-rules.js +8 -5
- package/src/components/rich-text/event-listeners/insert-replacement-text.js +4 -3
- package/src/components/rich-text/event-listeners/paste-handler.js +15 -3
- package/src/components/rich-text/event-listeners/remove-browser-shortcuts.js +4 -3
- package/src/components/rich-text/event-listeners/shortcuts.js +4 -3
- package/src/components/rich-text/event-listeners/undo-automatic-change.js +4 -3
- package/src/components/rich-text/index.js +94 -25
- package/src/components/skip-to-selected-block/style.scss +1 -1
- package/src/components/text-alignment-control/index.js +0 -1
- package/src/components/text-decoration-control/index.js +0 -1
- package/src/components/text-indent-control/index.js +7 -16
- package/src/components/text-transform-control/index.js +0 -1
- package/src/components/typewriter/index.js +228 -224
- package/src/components/use-block-commands/index.js +27 -17
- package/src/components/use-block-display-information/index.js +9 -13
- package/src/components/use-block-display-information/test/index.js +47 -9
- package/src/components/use-on-block-drop/index.js +4 -7
- package/src/components/writing-flow/index.js +15 -1
- package/src/components/writing-flow/use-arrow-nav.js +39 -12
- package/src/components/writing-flow/use-click-selection.js +2 -3
- package/src/components/writing-flow/use-clipboard-handler.js +5 -2
- package/src/components/writing-flow/use-drag-selection.js +1 -14
- package/src/components/writing-flow/use-editable-root.js +182 -0
- package/src/components/writing-flow/use-home-end.js +63 -0
- package/src/components/writing-flow/use-input.js +25 -8
- package/src/components/writing-flow/use-multi-selection.js +2 -3
- package/src/components/writing-flow/use-select-all.js +33 -3
- package/src/components/writing-flow/use-selection-observer.js +197 -38
- package/src/components/writing-flow/utils.js +83 -0
- package/src/components/writing-mode-control/index.js +0 -1
- package/src/hooks/background.js +7 -9
- package/src/hooks/block-fields/link/styles.scss +1 -6
- package/src/hooks/block-fields/media/styles.scss +1 -6
- package/src/hooks/block-fields/rich-text/index.js +6 -9
- package/src/hooks/block-hooks.scss +15 -0
- package/src/hooks/elements.js +0 -1
- package/src/hooks/font-size.js +0 -1
- package/src/hooks/grid-visualizer.js +40 -36
- package/src/hooks/layout-child.js +19 -9
- package/src/hooks/layout.js +53 -35
- package/src/hooks/position.js +44 -23
- package/src/hooks/states.js +36 -13
- package/src/hooks/style.js +67 -17
- package/src/hooks/test/cross-origin-isolation.js +0 -4
- package/src/hooks/test/layout.js +75 -1
- package/src/hooks/test/style.js +29 -0
- package/src/hooks/test/text-align.js +34 -1
- package/src/hooks/text-align.js +41 -10
- package/src/hooks/typography.js +0 -1
- package/src/layouts/constrained.js +56 -29
- package/src/layouts/flex.js +5 -4
- package/src/layouts/grid.js +59 -9
- package/src/layouts/test/constrained.js +91 -0
- package/src/layouts/test/grid.js +71 -0
- package/src/private-apis.js +4 -0
- package/src/store/actions.js +43 -14
- package/src/store/private-keys.js +1 -0
- package/src/store/private-selectors.js +166 -9
- package/src/store/selectors.js +41 -0
- package/src/store/test/actions.js +1 -1
- package/src/store/test/private-selectors.js +533 -0
- package/src/store/test/reducer.js +11 -11
- package/src/store/test/selectors.js +133 -0
- package/src/style.scss +1 -0
- package/src/utils/block-bindings.ts +50 -0
- package/src/utils/dom.ts +33 -0
- package/src/utils/test/block-bindings.js +181 -0
- package/build/components/rich-text/input-event.cjs +0 -50
- package/build/components/rich-text/input-event.cjs.map +0 -7
- package/build/components/rich-text/shortcut.cjs +0 -51
- package/build/components/rich-text/shortcut.cjs.map +0 -7
- package/build-module/components/rich-text/input-event.mjs +0 -25
- package/build-module/components/rich-text/input-event.mjs.map +0 -7
- package/build-module/components/rich-text/shortcut.mjs +0 -26
- package/build-module/components/rich-text/shortcut.mjs.map +0 -7
- package/src/components/rich-text/input-event.js +0 -31
- package/src/components/rich-text/shortcut.js +0 -32
package/build-style/style.css
CHANGED
|
@@ -67,6 +67,12 @@
|
|
|
67
67
|
/**
|
|
68
68
|
* Focus styles.
|
|
69
69
|
*/
|
|
70
|
+
/**
|
|
71
|
+
* Standard focus rings for the WordPress Design System.
|
|
72
|
+
*
|
|
73
|
+
* Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
|
|
74
|
+
* e.g. `&:focus { @include outset-ring__focus(); }`.
|
|
75
|
+
*/
|
|
70
76
|
/**
|
|
71
77
|
* Applies editor left position to the selector passed as argument
|
|
72
78
|
*/
|
|
@@ -548,7 +554,7 @@ iframe[name=editor-canvas] {
|
|
|
548
554
|
padding: 12px 0;
|
|
549
555
|
}
|
|
550
556
|
.block-editor-block-lock-modal__options-all .components-checkbox-control__label {
|
|
551
|
-
font-weight: 600;
|
|
557
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
552
558
|
}
|
|
553
559
|
|
|
554
560
|
.block-editor-block-lock-modal__checklist-item {
|
|
@@ -667,7 +673,7 @@ iframe[name=editor-canvas] {
|
|
|
667
673
|
}
|
|
668
674
|
|
|
669
675
|
.block-editor-block-card__title {
|
|
670
|
-
font-weight:
|
|
676
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
671
677
|
display: flex;
|
|
672
678
|
align-items: center;
|
|
673
679
|
flex-wrap: wrap;
|
|
@@ -800,7 +806,7 @@ iframe[name=editor-canvas] {
|
|
|
800
806
|
min-height: 18px;
|
|
801
807
|
}
|
|
802
808
|
.block-editor-block-draggable-chip .components-flex__item {
|
|
803
|
-
font-family: -apple-system,
|
|
809
|
+
font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
804
810
|
font-size: 13px;
|
|
805
811
|
}
|
|
806
812
|
|
|
@@ -856,7 +862,7 @@ iframe[name=editor-canvas] {
|
|
|
856
862
|
z-index: 1;
|
|
857
863
|
}
|
|
858
864
|
.block-editor-block-manager__category-title .components-checkbox-control__label {
|
|
859
|
-
font-weight: 600;
|
|
865
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
860
866
|
}
|
|
861
867
|
|
|
862
868
|
.block-editor-block-manager__checklist {
|
|
@@ -989,7 +995,7 @@ iframe[name=editor-canvas] {
|
|
|
989
995
|
color: #757575;
|
|
990
996
|
text-transform: uppercase;
|
|
991
997
|
font-size: 11px;
|
|
992
|
-
font-weight:
|
|
998
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
993
999
|
}
|
|
994
1000
|
|
|
995
1001
|
.block-editor-block-patterns-list__list-item {
|
|
@@ -1143,7 +1149,7 @@ iframe[name=editor-canvas] {
|
|
|
1143
1149
|
}
|
|
1144
1150
|
|
|
1145
1151
|
.block-editor-block-quick-navigation__item {
|
|
1146
|
-
font-weight: 400;
|
|
1152
|
+
font-weight: var(--wpds-typography-font-weight-default, 400);
|
|
1147
1153
|
}
|
|
1148
1154
|
|
|
1149
1155
|
.block-editor-block-rename-modal {
|
|
@@ -1175,7 +1181,7 @@ iframe[name=editor-canvas] {
|
|
|
1175
1181
|
}
|
|
1176
1182
|
.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item {
|
|
1177
1183
|
color: #1e1e1e;
|
|
1178
|
-
|
|
1184
|
+
border-color: #ddd;
|
|
1179
1185
|
display: inline-block;
|
|
1180
1186
|
width: calc(50% - 4px);
|
|
1181
1187
|
}
|
|
@@ -1191,8 +1197,8 @@ iframe[name=editor-canvas] {
|
|
|
1191
1197
|
color: #fff;
|
|
1192
1198
|
}
|
|
1193
1199
|
.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus, .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus {
|
|
1194
|
-
|
|
1195
|
-
outline:
|
|
1200
|
+
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
|
|
1201
|
+
outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
|
|
1196
1202
|
}
|
|
1197
1203
|
.block-editor-block-styles__variants .block-editor-block-styles__item-text {
|
|
1198
1204
|
word-break: break-all;
|
|
@@ -1285,7 +1291,6 @@ iframe[name=editor-canvas] {
|
|
|
1285
1291
|
}
|
|
1286
1292
|
|
|
1287
1293
|
.block-editor-block-types-list > [role=presentation] {
|
|
1288
|
-
overflow: hidden;
|
|
1289
1294
|
display: flex;
|
|
1290
1295
|
flex-wrap: wrap;
|
|
1291
1296
|
}
|
|
@@ -1520,7 +1525,7 @@ iframe[name=editor-canvas] {
|
|
|
1520
1525
|
}
|
|
1521
1526
|
|
|
1522
1527
|
.block-editor-panel-color-gradient-settings__contrast-notice {
|
|
1523
|
-
margin-
|
|
1528
|
+
margin-top: 16px;
|
|
1524
1529
|
}
|
|
1525
1530
|
|
|
1526
1531
|
/**
|
|
@@ -1634,6 +1639,12 @@ iframe[name=editor-canvas] {
|
|
|
1634
1639
|
border-top: 1px solid #ddd;
|
|
1635
1640
|
}
|
|
1636
1641
|
|
|
1642
|
+
.block-editor-dimension-control {
|
|
1643
|
+
border: 0;
|
|
1644
|
+
margin: 0;
|
|
1645
|
+
padding: 0;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1637
1648
|
.block-editor-duotone-control__popover.components-popover > .components-popover__content {
|
|
1638
1649
|
padding: 8px;
|
|
1639
1650
|
width: 260px;
|
|
@@ -1688,6 +1699,11 @@ iframe[name=editor-canvas] {
|
|
|
1688
1699
|
min-height: 24px;
|
|
1689
1700
|
}
|
|
1690
1701
|
|
|
1702
|
+
.block-editor-global-styles-state-control__badge-tooltip-trigger {
|
|
1703
|
+
display: inline-flex;
|
|
1704
|
+
max-width: 100%;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1691
1707
|
.block-editor-global-styles-filters-panel__dropdown,
|
|
1692
1708
|
.block-editor-global-styles__shadow-dropdown {
|
|
1693
1709
|
display: block;
|
|
@@ -2087,15 +2103,6 @@ iframe[name=editor-canvas] {
|
|
|
2087
2103
|
background: var(--wp-admin-theme-color);
|
|
2088
2104
|
pointer-events: none;
|
|
2089
2105
|
}
|
|
2090
|
-
.components-button.block-editor-block-types-list__item:not(:disabled, [aria-disabled=true]).is-active {
|
|
2091
|
-
color: #fff;
|
|
2092
|
-
background: #1e1e1e;
|
|
2093
|
-
outline: 2px solid transparent;
|
|
2094
|
-
outline-offset: -2px;
|
|
2095
|
-
}
|
|
2096
|
-
.components-button.block-editor-block-types-list__item:not(:disabled):focus {
|
|
2097
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2098
|
-
}
|
|
2099
2106
|
|
|
2100
2107
|
.block-editor-block-types-list__item-icon {
|
|
2101
2108
|
padding: 12px 20px;
|
|
@@ -2270,7 +2277,7 @@ iframe[name=editor-canvas] {
|
|
|
2270
2277
|
width: 100%;
|
|
2271
2278
|
}
|
|
2272
2279
|
.block-editor-link-control__search-item .components-menu-item__item mark {
|
|
2273
|
-
font-weight: 600;
|
|
2280
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
2274
2281
|
color: inherit;
|
|
2275
2282
|
background-color: transparent;
|
|
2276
2283
|
}
|
|
@@ -2330,7 +2337,7 @@ iframe[name=editor-canvas] {
|
|
|
2330
2337
|
text-decoration: none;
|
|
2331
2338
|
}
|
|
2332
2339
|
.block-editor-link-control__preview .block-editor-link-control__preview-title mark {
|
|
2333
|
-
font-weight: 600;
|
|
2340
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
2334
2341
|
color: inherit;
|
|
2335
2342
|
background-color: transparent;
|
|
2336
2343
|
}
|
|
@@ -2488,7 +2495,6 @@ iframe[name=editor-canvas] {
|
|
|
2488
2495
|
width: 100%;
|
|
2489
2496
|
height: auto;
|
|
2490
2497
|
padding: 12px;
|
|
2491
|
-
box-shadow: inset 0 0 0 1px #949494;
|
|
2492
2498
|
border-color: #949494;
|
|
2493
2499
|
}
|
|
2494
2500
|
|
|
@@ -2529,7 +2535,7 @@ iframe[name=editor-canvas] {
|
|
|
2529
2535
|
|
|
2530
2536
|
.link-preview-button__title {
|
|
2531
2537
|
margin-top: 4px;
|
|
2532
|
-
font-weight:
|
|
2538
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
2533
2539
|
color: #1e1e1e;
|
|
2534
2540
|
display: block;
|
|
2535
2541
|
}
|
|
@@ -2603,7 +2609,7 @@ iframe[name=editor-canvas] {
|
|
|
2603
2609
|
color: #fff;
|
|
2604
2610
|
}
|
|
2605
2611
|
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus::after {
|
|
2606
|
-
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2612
|
+
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));
|
|
2607
2613
|
}
|
|
2608
2614
|
.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus::after {
|
|
2609
2615
|
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
|
|
@@ -2744,16 +2750,15 @@ iframe[name=editor-canvas] {
|
|
|
2744
2750
|
bottom: 0;
|
|
2745
2751
|
left: 0;
|
|
2746
2752
|
border-radius: inherit;
|
|
2747
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2753
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
|
|
2748
2754
|
z-index: 2;
|
|
2749
2755
|
pointer-events: none;
|
|
2750
2756
|
}
|
|
2751
2757
|
.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus::after {
|
|
2752
2758
|
right: 0;
|
|
2753
2759
|
}
|
|
2754
|
-
.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu
|
|
2755
|
-
|
|
2756
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2760
|
+
.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu {
|
|
2761
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
|
|
2757
2762
|
z-index: 1;
|
|
2758
2763
|
}
|
|
2759
2764
|
.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents {
|
|
@@ -2893,6 +2898,23 @@ iframe[name=editor-canvas] {
|
|
|
2893
2898
|
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child) {
|
|
2894
2899
|
box-shadow: 0 0 0 2px var(--wp-admin-theme-color);
|
|
2895
2900
|
}
|
|
2901
|
+
.block-editor-list-view-leaf.is-disabled {
|
|
2902
|
+
opacity: 0.2;
|
|
2903
|
+
}
|
|
2904
|
+
@media not (prefers-reduced-motion) {
|
|
2905
|
+
.block-editor-list-view-leaf.is-disabled {
|
|
2906
|
+
transition: opacity 0.1s linear;
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
.block-editor-list-view-leaf.is-disabled:hover {
|
|
2910
|
+
opacity: 0.2;
|
|
2911
|
+
}
|
|
2912
|
+
.block-editor-list-view-leaf.is-disabled .block-editor-list-view__expander {
|
|
2913
|
+
cursor: default;
|
|
2914
|
+
}
|
|
2915
|
+
.block-editor-list-view-leaf.is-disabled .block-editor-list-view-block-select-button:hover {
|
|
2916
|
+
color: inherit;
|
|
2917
|
+
}
|
|
2896
2918
|
|
|
2897
2919
|
.block-editor-list-view-draggable-chip {
|
|
2898
2920
|
opacity: 0.8;
|
|
@@ -3092,7 +3114,7 @@ iframe[name=editor-canvas] {
|
|
|
3092
3114
|
}
|
|
3093
3115
|
|
|
3094
3116
|
.block-editor-multi-selection-inspector__card-title {
|
|
3095
|
-
font-weight:
|
|
3117
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
3096
3118
|
}
|
|
3097
3119
|
|
|
3098
3120
|
.block-editor-multi-selection-inspector__card .block-editor-block-icon {
|
|
@@ -3119,7 +3141,7 @@ iframe[name=editor-canvas] {
|
|
|
3119
3141
|
}
|
|
3120
3142
|
|
|
3121
3143
|
.block-editor-responsive-block-control__label {
|
|
3122
|
-
font-weight: 600;
|
|
3144
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
3123
3145
|
margin-bottom: 0.6em;
|
|
3124
3146
|
margin-left: -3px;
|
|
3125
3147
|
}
|
|
@@ -3198,7 +3220,7 @@ iframe[name=editor-canvas] {
|
|
|
3198
3220
|
}
|
|
3199
3221
|
.block-editor-skip-to-selected-block:focus {
|
|
3200
3222
|
font-size: 14px;
|
|
3201
|
-
font-weight: 600;
|
|
3223
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
3202
3224
|
background: #f1f1f1;
|
|
3203
3225
|
z-index: 100000;
|
|
3204
3226
|
}
|
|
@@ -3444,10 +3466,7 @@ iframe[name=editor-canvas] {
|
|
|
3444
3466
|
|
|
3445
3467
|
.block-editor-content-only-controls__link {
|
|
3446
3468
|
width: 100%;
|
|
3447
|
-
|
|
3448
|
-
}
|
|
3449
|
-
.block-editor-content-only-controls__link:focus:not(:disabled) {
|
|
3450
|
-
box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
3469
|
+
border-color: #ccc;
|
|
3451
3470
|
}
|
|
3452
3471
|
|
|
3453
3472
|
.block-editor-content-only-controls__link-row {
|
|
@@ -3463,12 +3482,9 @@ iframe[name=editor-canvas] {
|
|
|
3463
3482
|
|
|
3464
3483
|
.block-editor-content-only-controls__media {
|
|
3465
3484
|
width: 100%;
|
|
3466
|
-
|
|
3485
|
+
border-color: #ccc;
|
|
3467
3486
|
padding-right: 32px;
|
|
3468
3487
|
}
|
|
3469
|
-
.block-editor-content-only-controls__media:focus:not(:disabled) {
|
|
3470
|
-
box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
3471
|
-
}
|
|
3472
3488
|
|
|
3473
3489
|
.block-editor-content-only-controls__media-replace-flow {
|
|
3474
3490
|
display: block;
|
|
@@ -3540,7 +3556,7 @@ iframe[name=editor-canvas] {
|
|
|
3540
3556
|
margin: 0;
|
|
3541
3557
|
background: #fff;
|
|
3542
3558
|
color: #1e1e1e;
|
|
3543
|
-
font-family: -apple-system,
|
|
3559
|
+
font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
3544
3560
|
padding: 6px 8px;
|
|
3545
3561
|
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
|
3546
3562
|
font-size: 16px;
|
|
@@ -3628,6 +3644,19 @@ iframe[name=editor-canvas] {
|
|
|
3628
3644
|
margin-bottom: 16px;
|
|
3629
3645
|
}
|
|
3630
3646
|
|
|
3647
|
+
.block-editor-hooks__position-control-item {
|
|
3648
|
+
/**
|
|
3649
|
+
* Try to make items match the width of the anchor, subtract any margin on
|
|
3650
|
+
* items to calculate the correct inner width.
|
|
3651
|
+
*/
|
|
3652
|
+
max-inline-size: max(var(--anchor-width) - 2 * var(--wp-ui-popup-padding), 223px);
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3655
|
+
.block-editor-hooks__position-control-item-hint {
|
|
3656
|
+
color: var(--wpds-color-foreground-content-neutral-weak, #707070);
|
|
3657
|
+
margin-block-start: 4px;
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3631
3660
|
div.block-editor-bindings__panel {
|
|
3632
3661
|
grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
|
|
3633
3662
|
}
|
|
@@ -3963,7 +3992,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
3963
3992
|
background: none;
|
|
3964
3993
|
border: none;
|
|
3965
3994
|
padding: 0;
|
|
3966
|
-
font-family: -apple-system,
|
|
3995
|
+
font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
3967
3996
|
font-size: 13px;
|
|
3968
3997
|
line-height: 0;
|
|
3969
3998
|
}
|
|
@@ -4099,7 +4128,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4099
4128
|
color: #757575;
|
|
4100
4129
|
text-transform: uppercase;
|
|
4101
4130
|
font-size: 11px;
|
|
4102
|
-
font-weight:
|
|
4131
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
4103
4132
|
}
|
|
4104
4133
|
|
|
4105
4134
|
.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input {
|
|
@@ -4374,7 +4403,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4374
4403
|
}
|
|
4375
4404
|
|
|
4376
4405
|
.components-heading.block-editor-inserter__patterns-category-panel-title {
|
|
4377
|
-
font-weight:
|
|
4406
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
4378
4407
|
}
|
|
4379
4408
|
|
|
4380
4409
|
.block-editor-inserter__patterns-explore-button.components-button,
|
|
@@ -4385,15 +4414,24 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4385
4414
|
width: 100%;
|
|
4386
4415
|
}
|
|
4387
4416
|
|
|
4417
|
+
.block-editor-inserter__media-mobile-screen {
|
|
4418
|
+
display: flex;
|
|
4419
|
+
flex-direction: column;
|
|
4420
|
+
align-self: stretch;
|
|
4421
|
+
}
|
|
4422
|
+
|
|
4388
4423
|
.block-editor-inserter__media-panel {
|
|
4389
|
-
min-height: 100%;
|
|
4390
4424
|
padding: 0 16px;
|
|
4391
4425
|
display: flex;
|
|
4392
4426
|
flex-direction: column;
|
|
4427
|
+
flex: 1;
|
|
4428
|
+
min-height: 0;
|
|
4393
4429
|
}
|
|
4394
4430
|
@media (min-width: 782px) {
|
|
4395
4431
|
.block-editor-inserter__media-panel {
|
|
4396
4432
|
padding: 0;
|
|
4433
|
+
flex: 0 1 auto;
|
|
4434
|
+
min-height: 100%;
|
|
4397
4435
|
}
|
|
4398
4436
|
}
|
|
4399
4437
|
.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner {
|
|
@@ -4412,6 +4450,65 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4412
4450
|
padding: 16px 24px 16px;
|
|
4413
4451
|
}
|
|
4414
4452
|
}
|
|
4453
|
+
.block-editor-inserter__media-panel .block-editor-inserter__no-results {
|
|
4454
|
+
flex-grow: 1;
|
|
4455
|
+
}
|
|
4456
|
+
.block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer {
|
|
4457
|
+
flex-shrink: 0;
|
|
4458
|
+
padding-top: 16px;
|
|
4459
|
+
padding-bottom: 16px;
|
|
4460
|
+
}
|
|
4461
|
+
@media (min-width: 782px) {
|
|
4462
|
+
.block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer {
|
|
4463
|
+
padding-left: 24px;
|
|
4464
|
+
padding-right: 24px;
|
|
4465
|
+
}
|
|
4466
|
+
}
|
|
4467
|
+
.block-editor-inserter__media-panel .block-editor-inserter__media-panel-attach.components-button {
|
|
4468
|
+
justify-content: center;
|
|
4469
|
+
padding: 16px;
|
|
4470
|
+
}
|
|
4471
|
+
.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results {
|
|
4472
|
+
display: flex;
|
|
4473
|
+
flex-direction: column;
|
|
4474
|
+
flex-grow: 1;
|
|
4475
|
+
min-height: 0;
|
|
4476
|
+
}
|
|
4477
|
+
.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list {
|
|
4478
|
+
opacity: 0.5;
|
|
4479
|
+
pointer-events: none;
|
|
4480
|
+
}
|
|
4481
|
+
@media not (prefers-reduced-motion) {
|
|
4482
|
+
.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list {
|
|
4483
|
+
opacity: 1;
|
|
4484
|
+
animation: inserter-media-panel-pulse 1s ease-in-out infinite;
|
|
4485
|
+
}
|
|
4486
|
+
}
|
|
4487
|
+
.block-editor-inserter__media-panel.has-footer .block-editor-inserter__media-list {
|
|
4488
|
+
padding-bottom: 0;
|
|
4489
|
+
}
|
|
4490
|
+
|
|
4491
|
+
@keyframes inserter-media-panel-pulse {
|
|
4492
|
+
0%, 100% {
|
|
4493
|
+
opacity: 1;
|
|
4494
|
+
}
|
|
4495
|
+
50% {
|
|
4496
|
+
opacity: 0.5;
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
.block-editor-inserter__media-panel-detach-modal {
|
|
4500
|
+
z-index: 1000001;
|
|
4501
|
+
}
|
|
4502
|
+
.block-editor-inserter__media-panel-detach-modal p {
|
|
4503
|
+
margin-top: 0;
|
|
4504
|
+
}
|
|
4505
|
+
|
|
4506
|
+
.block-editor-inserter__media-panel-detach-actions {
|
|
4507
|
+
display: flex;
|
|
4508
|
+
justify-content: flex-end;
|
|
4509
|
+
gap: 8px;
|
|
4510
|
+
margin-top: 16px;
|
|
4511
|
+
}
|
|
4415
4512
|
|
|
4416
4513
|
.block-editor-inserter__media-list__list-item {
|
|
4417
4514
|
position: relative;
|
|
@@ -4427,7 +4524,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4427
4524
|
.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview > * {
|
|
4428
4525
|
outline-color: rgba(0, 0, 0, 0.3);
|
|
4429
4526
|
}
|
|
4430
|
-
.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options > button {
|
|
4527
|
+
.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options > button, .block-editor-inserter__media-list__list-item:focus-within .block-editor-inserter__media-list__item-preview-options > button {
|
|
4431
4528
|
display: block;
|
|
4432
4529
|
}
|
|
4433
4530
|
.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options {
|
|
@@ -4611,7 +4708,7 @@ div.block-editor-bindings__panel button:hover .block-editor-bindings__item span
|
|
|
4611
4708
|
align-items: start;
|
|
4612
4709
|
}
|
|
4613
4710
|
.block-editor-block-visibility-modal__options-checkbox--everywhere {
|
|
4614
|
-
font-weight: 600;
|
|
4711
|
+
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
4615
4712
|
}
|
|
4616
4713
|
.block-editor-block-visibility-modal__options-icon--checked {
|
|
4617
4714
|
fill: #ddd;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export type ReactNode = React.ReactNode;
|
|
2
2
|
export type BlockContextProviderProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Context value to merge with current
|
|
5
|
+
* value.
|
|
6
|
+
*/
|
|
3
7
|
value: Record<string, any>;
|
|
8
|
+
/**
|
|
9
|
+
* Component children.
|
|
10
|
+
*/
|
|
4
11
|
children: ReactNode;
|
|
5
12
|
};
|
|
6
13
|
/** @typedef {React.ReactNode} ReactNode */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/block-context/index.js"],"names":[],"mappings":"AAKI,YAA2B,SAAS,GAA1B,KAAK,CAAC,SAAS,CAAW;AAGrC,YAAS,yBAAyB,GAElC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/block-context/index.js"],"names":[],"mappings":"AAKI,YAA2B,SAAS,GAA1B,KAAK,CAAC,SAAS,CAAW;AAGrC,YAAS,yBAAyB,GAElC;;;;;IAA6B,KAAK,EAAvB,MAAM,CAAC,MAAM,EAAC,GAAC,CAAC,CAE3B;;;;IAA6B,QAAQ,EAA1B,SAAS,CACtB;CAAA,CAAA;AARD,2CAA2C;AAE3C;;;;;;GAMG;AAEH,8CAA8C;AAC9C,QAAA,MAAM,OAAO,EADF,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAC,GAAC,CAAC,CACN,CAAC;AAGpC;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,EAF9C,yBAE8C,+BAQxD;eAEc,OAAO"}
|
|
@@ -2,6 +2,25 @@ type Binding = {
|
|
|
2
2
|
source?: string;
|
|
3
3
|
};
|
|
4
4
|
type Bindings = Record<string, Binding>;
|
|
5
|
+
type BlockBindingsSource = {
|
|
6
|
+
usesContext?: readonly string[];
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Assembles the context made available to a block's bindings sources: the
|
|
10
|
+
* entries of the surrounding block context declared by the block type's
|
|
11
|
+
* `usesContext`, plus the entries declared by the given sources' `usesContext`.
|
|
12
|
+
*
|
|
13
|
+
* Only entries present in the surrounding block context are copied — a
|
|
14
|
+
* declared key with no provider never becomes an own (undefined-valued) key
|
|
15
|
+
* of the result, so `key in context` checks stay meaningful.
|
|
16
|
+
*
|
|
17
|
+
* @param blockContext The surrounding block context.
|
|
18
|
+
* @param blockTypeUsesContext The block type's declared context needs.
|
|
19
|
+
* @param sources Block-bindings sources whose declared context to add.
|
|
20
|
+
*
|
|
21
|
+
* @return The context for resolving the block's bindings.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getBlockBindingsContext(blockContext: Record<string, unknown>, blockTypeUsesContext: readonly string[] | undefined, sources: readonly (BlockBindingsSource | undefined)[] | undefined): Record<string, unknown>;
|
|
5
24
|
/**
|
|
6
25
|
* Checks if the block has the `__default` binding for pattern overrides.
|
|
7
26
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-bindings.d.ts","sourceRoot":"","sources":["../../src/utils/block-bindings.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACnC,KAAK,QAAQ,GAAG,MAAM,CAAE,MAAM,EAAE,OAAO,CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"block-bindings.d.ts","sourceRoot":"","sources":["../../src/utils/block-bindings.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACnC,KAAK,QAAQ,GAAG,MAAM,CAAE,MAAM,EAAE,OAAO,CAAE,CAAC;AAC1C,KAAK,mBAAmB,GAAG;IAAE,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC;AAM/D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACtC,YAAY,EAAE,MAAM,CAAE,MAAM,EAAE,OAAO,CAAE,EACvC,oBAAoB,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACnD,OAAO,EAAE,SAAS,CAAE,mBAAmB,GAAG,SAAS,CAAE,EAAE,GAAG,SAAS,GACjE,MAAM,CAAE,MAAM,EAAE,OAAO,CAAE,CA2B3B;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAChD,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,GACnC,QAAQ,IAAI,QAAQ,CAEtB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qCAAqC,CACpD,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,EACrC,mBAAmB,EAAE,MAAM,EAAE,+BAiB7B"}
|
|
@@ -18,6 +18,17 @@ export declare function isInSameBlock(a: Element, b: Element): boolean;
|
|
|
18
18
|
* its inner blocks or appender.
|
|
19
19
|
*/
|
|
20
20
|
export declare function isInsideRootBlock(blockElement: Element, element: Element): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the editable element containing the selection, if the selection is
|
|
23
|
+
* fully contained within one. The root element (an editable wrapper) does not
|
|
24
|
+
* count as a containing editable element.
|
|
25
|
+
*
|
|
26
|
+
* @param selection The selection.
|
|
27
|
+
* @param root The editable wrapper element.
|
|
28
|
+
*
|
|
29
|
+
* @return The editable element containing the selection.
|
|
30
|
+
*/
|
|
31
|
+
export declare function getSelectionEditableElement(selection: Selection, root: Element): Element | undefined;
|
|
21
32
|
/**
|
|
22
33
|
* Finds the block client ID given any DOM node inside the block.
|
|
23
34
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/utils/dom.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,WAEpD;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,WAKzE;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,IAAI,GAAG,IAAI,sBAiBlD;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,mBAOxD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAE,OAAO,EAAE,OAAO,WAoCjD;AAkBD,eAAO,MAAM,4BAA4B,UAAwB,CAAC;AAClE;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAE,OAAO,EAAE,OAAO,mBAkDjD"}
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/utils/dom.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,WAEpD;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,WAKzE;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAC1C,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,OAAO,uBAmBb;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,IAAI,GAAG,IAAI,sBAiBlD;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,mBAOxD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAE,OAAO,EAAE,OAAO,WAoCjD;AAkBD,eAAO,MAAM,4BAA4B,UAAwB,CAAC;AAClE;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAE,OAAO,EAAE,OAAO,mBAkDjD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export default _default;
|
|
1
2
|
/**
|
|
2
3
|
* This function was accidentally exposed for mobile/native usage.
|
|
3
4
|
*
|
|
@@ -5,6 +6,5 @@
|
|
|
5
6
|
*
|
|
6
7
|
* @return {string} Empty string.
|
|
7
8
|
*/
|
|
8
|
-
declare
|
|
9
|
-
export default _default;
|
|
9
|
+
declare function _default(): string;
|
|
10
10
|
//# sourceMappingURL=get-px-from-css-unit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-px-from-css-unit.d.ts","sourceRoot":"","sources":["../../src/utils/get-px-from-css-unit.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
1
|
+
{"version":3,"file":"get-px-from-css-unit.d.ts","sourceRoot":"","sources":["../../src/utils/get-px-from-css-unit.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pasting.d.ts","sourceRoot":"","sources":["../../src/utils/pasting.ts"],"names":[],"mappings":"AAkDA,wBAAgB,iBAAiB,CAAE,EAClC,aAAa,
|
|
1
|
+
{"version":3,"file":"pasting.d.ts","sourceRoot":"","sources":["../../src/utils/pasting.ts"],"names":[],"mappings":"AAkDA,wBAAgB,iBAAiB,CAAE,EAClC,aAAa,GACb,EAAE;IACF,aAAa,EAAE,YAAY,CAAC;CAC5B;;;;;;;;cA2BA;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,IAAI,EAAE,EACb,IAAI,EAAE,MAAM,WA+BZ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"require": "./build/index.cjs"
|
|
40
40
|
},
|
|
41
41
|
"./package.json": "./package.json",
|
|
42
|
-
"./build-style
|
|
42
|
+
"./build-style/*": "./build-style/*"
|
|
43
43
|
},
|
|
44
44
|
"wpScript": true,
|
|
45
45
|
"wpScriptModuleExports": {
|
|
@@ -60,43 +60,43 @@
|
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@react-spring/web": "^9.4.5",
|
|
63
|
-
"@wordpress/a11y": "^4.
|
|
64
|
-
"@wordpress/base-styles": "^
|
|
65
|
-
"@wordpress/blob": "^4.
|
|
66
|
-
"@wordpress/block-serialization-default-parser": "^5.
|
|
67
|
-
"@wordpress/blocks": "^15.
|
|
68
|
-
"@wordpress/commands": "^1.
|
|
69
|
-
"@wordpress/components": "^
|
|
70
|
-
"@wordpress/compose": "^8.
|
|
71
|
-
"@wordpress/data": "^10.
|
|
72
|
-
"@wordpress/dataviews": "^17.
|
|
73
|
-
"@wordpress/date": "^5.
|
|
74
|
-
"@wordpress/deprecated": "^4.
|
|
75
|
-
"@wordpress/dom": "^4.
|
|
76
|
-
"@wordpress/element": "^8.
|
|
77
|
-
"@wordpress/escape-html": "^3.
|
|
78
|
-
"@wordpress/global-styles-engine": "^1.
|
|
79
|
-
"@wordpress/hooks": "^4.
|
|
80
|
-
"@wordpress/html-entities": "^4.
|
|
81
|
-
"@wordpress/i18n": "^6.
|
|
82
|
-
"@wordpress/icons": "^15.
|
|
83
|
-
"@wordpress/image-cropper": "^1.
|
|
84
|
-
"@wordpress/interactivity": "^6.
|
|
85
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
86
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
87
|
-
"@wordpress/keycodes": "^4.
|
|
88
|
-
"@wordpress/notices": "^5.
|
|
89
|
-
"@wordpress/preferences": "^4.
|
|
90
|
-
"@wordpress/priority-queue": "^3.
|
|
91
|
-
"@wordpress/private-apis": "^1.
|
|
92
|
-
"@wordpress/rich-text": "^7.
|
|
93
|
-
"@wordpress/style-engine": "^2.
|
|
94
|
-
"@wordpress/token-list": "^3.
|
|
95
|
-
"@wordpress/ui": "^0.
|
|
96
|
-
"@wordpress/upload-media": "^0.
|
|
97
|
-
"@wordpress/url": "^4.
|
|
98
|
-
"@wordpress/warning": "^3.
|
|
99
|
-
"@wordpress/wordcount": "^4.
|
|
63
|
+
"@wordpress/a11y": "^4.51.0",
|
|
64
|
+
"@wordpress/base-styles": "^11.0.0",
|
|
65
|
+
"@wordpress/blob": "^4.51.0",
|
|
66
|
+
"@wordpress/block-serialization-default-parser": "^5.51.0",
|
|
67
|
+
"@wordpress/blocks": "^15.24.0",
|
|
68
|
+
"@wordpress/commands": "^1.51.0",
|
|
69
|
+
"@wordpress/components": "^37.0.0",
|
|
70
|
+
"@wordpress/compose": "^8.4.0",
|
|
71
|
+
"@wordpress/data": "^10.51.0",
|
|
72
|
+
"@wordpress/dataviews": "^17.2.0",
|
|
73
|
+
"@wordpress/date": "^5.51.0",
|
|
74
|
+
"@wordpress/deprecated": "^4.51.0",
|
|
75
|
+
"@wordpress/dom": "^4.51.0",
|
|
76
|
+
"@wordpress/element": "^8.3.0",
|
|
77
|
+
"@wordpress/escape-html": "^3.51.0",
|
|
78
|
+
"@wordpress/global-styles-engine": "^1.18.0",
|
|
79
|
+
"@wordpress/hooks": "^4.51.0",
|
|
80
|
+
"@wordpress/html-entities": "^4.51.0",
|
|
81
|
+
"@wordpress/i18n": "^6.24.0",
|
|
82
|
+
"@wordpress/icons": "^15.2.0",
|
|
83
|
+
"@wordpress/image-cropper": "^1.15.0",
|
|
84
|
+
"@wordpress/interactivity": "^6.51.0",
|
|
85
|
+
"@wordpress/is-shallow-equal": "^5.51.0",
|
|
86
|
+
"@wordpress/keyboard-shortcuts": "^5.51.0",
|
|
87
|
+
"@wordpress/keycodes": "^4.51.0",
|
|
88
|
+
"@wordpress/notices": "^5.51.0",
|
|
89
|
+
"@wordpress/preferences": "^4.51.0",
|
|
90
|
+
"@wordpress/priority-queue": "^3.51.0",
|
|
91
|
+
"@wordpress/private-apis": "^1.51.0",
|
|
92
|
+
"@wordpress/rich-text": "^7.51.0",
|
|
93
|
+
"@wordpress/style-engine": "^2.51.0",
|
|
94
|
+
"@wordpress/token-list": "^3.51.0",
|
|
95
|
+
"@wordpress/ui": "^0.18.0",
|
|
96
|
+
"@wordpress/upload-media": "^0.36.0",
|
|
97
|
+
"@wordpress/url": "^4.51.0",
|
|
98
|
+
"@wordpress/warning": "^3.51.0",
|
|
99
|
+
"@wordpress/wordcount": "^4.51.0",
|
|
100
100
|
"change-case": "^4.1.2",
|
|
101
101
|
"clsx": "^2.1.1",
|
|
102
102
|
"colord": "^2.9.3",
|
|
@@ -118,12 +118,14 @@
|
|
|
118
118
|
"@testing-library/react": "^16.3.2",
|
|
119
119
|
"@testing-library/user-event": "^14.6.1",
|
|
120
120
|
"@types/postcss-prefix-selector": "^1.16.3",
|
|
121
|
-
"
|
|
121
|
+
"@wordpress/block-library": "^10.2.0",
|
|
122
|
+
"deep-freeze": "^0.0.1",
|
|
123
|
+
"storybook": "^10.4.3"
|
|
122
124
|
},
|
|
123
125
|
"peerDependencies": {
|
|
124
|
-
"@types/react": "^18
|
|
125
|
-
"react": "^18
|
|
126
|
-
"react-dom": "^18
|
|
126
|
+
"@types/react": "^18 || ^19",
|
|
127
|
+
"react": "^18 || ^19",
|
|
128
|
+
"react-dom": "^18 || ^19"
|
|
127
129
|
},
|
|
128
130
|
"peerDependenciesMeta": {
|
|
129
131
|
"@types/react": {
|
|
@@ -133,5 +135,5 @@
|
|
|
133
135
|
"publishConfig": {
|
|
134
136
|
"access": "public"
|
|
135
137
|
},
|
|
136
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "e9a74f9c14095a34398ecd4d1f7a908e55051205"
|
|
137
139
|
}
|