@wordpress/block-editor 13.3.0 → 13.4.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 +2 -0
- package/README.md +0 -4
- package/build/components/alignment-control/ui.js +2 -2
- package/build/components/alignment-control/ui.js.map +1 -1
- package/build/components/block-alignment-control/ui.js +1 -1
- package/build/components/block-alignment-control/ui.js.map +1 -1
- package/build/components/block-alignment-control/ui.native.js +1 -1
- package/build/components/block-alignment-control/ui.native.js.map +1 -1
- package/build/components/block-inspector/index.js +6 -3
- package/build/components/block-inspector/index.js.map +1 -1
- package/build/components/block-list/use-block-props/index.js +3 -1
- package/build/components/block-list/use-block-props/index.js.map +1 -1
- package/build/components/block-list/use-block-props/use-block-refs.js +9 -2
- package/build/components/block-list/use-block-props/use-block-refs.js.map +1 -1
- package/build/components/block-list/use-block-props/use-is-hovered.js +25 -9
- package/build/components/block-list/use-block-props/use-is-hovered.js.map +1 -1
- package/build/components/block-list/use-in-between-inserter.js +3 -2
- package/build/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build/components/block-lock/modal.js +2 -0
- package/build/components/block-lock/modal.js.map +1 -1
- package/build/components/block-removal-warning-modal/index.js +2 -0
- package/build/components/block-removal-warning-modal/index.js.map +1 -1
- package/build/components/block-switcher/index.js +1 -1
- package/build/components/block-switcher/index.js.map +1 -1
- package/build/components/block-switcher/pattern-transformations-menu.js +11 -12
- package/build/components/block-switcher/pattern-transformations-menu.js.map +1 -1
- package/build/components/block-switcher/preview-block-popover.js +20 -17
- package/build/components/block-switcher/preview-block-popover.js.map +1 -1
- package/build/components/block-toolbar/shuffle.js +5 -2
- package/build/components/block-toolbar/shuffle.js.map +1 -1
- package/build/components/block-tools/use-show-block-tools.js +7 -8
- package/build/components/block-tools/use-show-block-tools.js.map +1 -1
- package/build/components/block-tools/zoom-out-mode-inserter-button.js +45 -0
- package/build/components/block-tools/zoom-out-mode-inserter-button.js.map +1 -0
- package/build/components/block-tools/zoom-out-mode-inserters.js +27 -27
- package/build/components/block-tools/zoom-out-mode-inserters.js.map +1 -1
- package/build/components/block-tools/zoom-out-popover.js +2 -1
- package/build/components/block-tools/zoom-out-popover.js.map +1 -1
- package/build/components/block-tools/zoom-out-toolbar.js +1 -1
- package/build/components/block-tools/zoom-out-toolbar.js.map +1 -1
- package/build/components/date-format-picker/index.js +2 -11
- package/build/components/date-format-picker/index.js.map +1 -1
- package/build/components/default-block-appender/index.js +7 -4
- package/build/components/default-block-appender/index.js.map +1 -1
- package/build/components/font-appearance-control/index.js +2 -7
- package/build/components/font-appearance-control/index.js.map +1 -1
- package/build/components/global-styles/background-panel.js +8 -1
- package/build/components/global-styles/background-panel.js.map +1 -1
- package/build/components/global-styles/hooks.js +5 -1
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/typography-panel.js +26 -43
- package/build/components/global-styles/typography-panel.js.map +1 -1
- package/build/components/global-styles/typography-utils.js +78 -7
- package/build/components/global-styles/typography-utils.js.map +1 -1
- package/build/components/global-styles/use-global-styles-output.js +24 -5
- package/build/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build/components/grid/grid-item-movers.js +89 -44
- package/build/components/grid/grid-item-movers.js.map +1 -1
- package/build/components/grid/grid-visualizer.js +1 -1
- package/build/components/grid/grid-visualizer.js.map +1 -1
- package/build/components/grid/use-grid-layout-sync.js +40 -28
- package/build/components/grid/use-grid-layout-sync.js.map +1 -1
- package/build/components/index.js +1 -9
- package/build/components/index.js.map +1 -1
- package/build/components/inner-blocks/index.js +1 -1
- package/build/components/inner-blocks/index.js.map +1 -1
- package/build/components/inserter/block-patterns-tab/patterns-filter.js +20 -23
- package/build/components/inserter/block-patterns-tab/patterns-filter.js.map +1 -1
- package/build/components/inserter/media-tab/media-panel.js +1 -0
- package/build/components/inserter/media-tab/media-panel.js.map +1 -1
- package/build/components/inserter/menu.js +1 -1
- package/build/components/inserter/menu.js.map +1 -1
- package/build/components/inserter/preview-panel.js +20 -3
- package/build/components/inserter/preview-panel.js.map +1 -1
- package/build/components/inserter-draggable-blocks/index.js +10 -3
- package/build/components/inserter-draggable-blocks/index.js.map +1 -1
- package/build/components/inspector-controls-tabs/settings-tab.js +1 -2
- package/build/components/inspector-controls-tabs/settings-tab.js.map +1 -1
- package/build/components/list-view/block-select-button.js +2 -6
- package/build/components/list-view/block-select-button.js.map +1 -1
- package/build/components/list-view/block.js +2 -2
- package/build/components/list-view/block.js.map +1 -1
- package/build/components/list-view/utils.js +3 -1
- package/build/components/list-view/utils.js.map +1 -1
- package/build/components/rich-text/format-toolbar/index.js +1 -1
- package/build/components/rich-text/format-toolbar/index.js.map +1 -1
- package/build/components/rich-text/index.js +1 -1
- package/build/components/rich-text/index.js.map +1 -1
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js +4 -2
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build/components/url-popover/image-url-input-ui.js +3 -3
- package/build/components/url-popover/image-url-input-ui.js.map +1 -1
- package/build/hooks/grid-visualizer.js +5 -8
- package/build/hooks/grid-visualizer.js.map +1 -1
- package/build/hooks/layout-child.js +9 -2
- package/build/hooks/layout-child.js.map +1 -1
- package/build/hooks/position.js +3 -7
- package/build/hooks/position.js.map +1 -1
- package/build/hooks/use-bindings-attributes.js +81 -50
- package/build/hooks/use-bindings-attributes.js.map +1 -1
- package/build/layouts/constrained.js +6 -2
- package/build/layouts/constrained.js.map +1 -1
- package/build/layouts/grid.js +2 -0
- package/build/layouts/grid.js.map +1 -1
- package/build/private-apis.js +0 -3
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +18 -1
- package/build/store/actions.js.map +1 -1
- package/build/store/reducer.js +19 -1
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +13 -1
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/alignment-control/ui.js +2 -2
- package/build-module/components/alignment-control/ui.js.map +1 -1
- package/build-module/components/block-alignment-control/ui.js +1 -1
- package/build-module/components/block-alignment-control/ui.js.map +1 -1
- package/build-module/components/block-alignment-control/ui.native.js +1 -1
- package/build-module/components/block-alignment-control/ui.native.js.map +1 -1
- package/build-module/components/block-inspector/index.js +6 -3
- package/build-module/components/block-inspector/index.js.map +1 -1
- package/build-module/components/block-list/use-block-props/index.js +3 -1
- package/build-module/components/block-list/use-block-props/index.js.map +1 -1
- package/build-module/components/block-list/use-block-props/use-block-refs.js +11 -4
- package/build-module/components/block-list/use-block-props/use-block-refs.js.map +1 -1
- package/build-module/components/block-list/use-block-props/use-is-hovered.js +26 -9
- package/build-module/components/block-list/use-block-props/use-is-hovered.js.map +1 -1
- package/build-module/components/block-list/use-in-between-inserter.js +3 -2
- package/build-module/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build-module/components/block-lock/modal.js +2 -0
- package/build-module/components/block-lock/modal.js.map +1 -1
- package/build-module/components/block-removal-warning-modal/index.js +2 -0
- package/build-module/components/block-removal-warning-modal/index.js.map +1 -1
- package/build-module/components/block-switcher/index.js +1 -1
- package/build-module/components/block-switcher/index.js.map +1 -1
- package/build-module/components/block-switcher/pattern-transformations-menu.js +12 -13
- package/build-module/components/block-switcher/pattern-transformations-menu.js.map +1 -1
- package/build-module/components/block-switcher/preview-block-popover.js +20 -17
- package/build-module/components/block-switcher/preview-block-popover.js.map +1 -1
- package/build-module/components/block-toolbar/shuffle.js +5 -2
- package/build-module/components/block-toolbar/shuffle.js.map +1 -1
- package/build-module/components/block-tools/use-show-block-tools.js +7 -8
- package/build-module/components/block-tools/use-show-block-tools.js.map +1 -1
- package/build-module/components/block-tools/zoom-out-mode-inserter-button.js +37 -0
- package/build-module/components/block-tools/zoom-out-mode-inserter-button.js.map +1 -0
- package/build-module/components/block-tools/zoom-out-mode-inserters.js +28 -28
- package/build-module/components/block-tools/zoom-out-mode-inserters.js.map +1 -1
- package/build-module/components/block-tools/zoom-out-popover.js +2 -1
- package/build-module/components/block-tools/zoom-out-popover.js.map +1 -1
- package/build-module/components/block-tools/zoom-out-toolbar.js +1 -1
- package/build-module/components/block-tools/zoom-out-toolbar.js.map +1 -1
- package/build-module/components/date-format-picker/index.js +4 -12
- package/build-module/components/date-format-picker/index.js.map +1 -1
- package/build-module/components/default-block-appender/index.js +7 -4
- package/build-module/components/default-block-appender/index.js.map +1 -1
- package/build-module/components/font-appearance-control/index.js +3 -6
- package/build-module/components/font-appearance-control/index.js.map +1 -1
- package/build-module/components/global-styles/background-panel.js +8 -1
- package/build-module/components/global-styles/background-panel.js.map +1 -1
- package/build-module/components/global-styles/hooks.js +5 -1
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/typography-panel.js +27 -44
- package/build-module/components/global-styles/typography-panel.js.map +1 -1
- package/build-module/components/global-styles/typography-utils.js +76 -7
- package/build-module/components/global-styles/typography-utils.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js +24 -5
- package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build-module/components/grid/grid-item-movers.js +92 -46
- package/build-module/components/grid/grid-item-movers.js.map +1 -1
- package/build-module/components/grid/grid-visualizer.js +1 -1
- package/build-module/components/grid/grid-visualizer.js.map +1 -1
- package/build-module/components/grid/use-grid-layout-sync.js +41 -29
- package/build-module/components/grid/use-grid-layout-sync.js.map +1 -1
- package/build-module/components/index.js +0 -5
- package/build-module/components/index.js.map +1 -1
- package/build-module/components/inner-blocks/index.js +1 -1
- package/build-module/components/inner-blocks/index.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab/patterns-filter.js +20 -23
- package/build-module/components/inserter/block-patterns-tab/patterns-filter.js.map +1 -1
- package/build-module/components/inserter/media-tab/media-panel.js +1 -0
- package/build-module/components/inserter/media-tab/media-panel.js.map +1 -1
- package/build-module/components/inserter/menu.js +1 -1
- package/build-module/components/inserter/menu.js.map +1 -1
- package/build-module/components/inserter/preview-panel.js +20 -3
- package/build-module/components/inserter/preview-panel.js.map +1 -1
- package/build-module/components/inserter-draggable-blocks/index.js +10 -3
- package/build-module/components/inserter-draggable-blocks/index.js.map +1 -1
- package/build-module/components/inspector-controls-tabs/settings-tab.js +1 -2
- package/build-module/components/inspector-controls-tabs/settings-tab.js.map +1 -1
- package/build-module/components/list-view/block-select-button.js +3 -7
- package/build-module/components/list-view/block-select-button.js.map +1 -1
- package/build-module/components/list-view/block.js +2 -2
- package/build-module/components/list-view/block.js.map +1 -1
- package/build-module/components/list-view/utils.js +3 -1
- package/build-module/components/list-view/utils.js.map +1 -1
- package/build-module/components/rich-text/format-toolbar/index.js +1 -1
- package/build-module/components/rich-text/format-toolbar/index.js.map +1 -1
- package/build-module/components/rich-text/index.js +1 -1
- package/build-module/components/rich-text/index.js.map +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js +4 -2
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build-module/components/url-popover/image-url-input-ui.js +3 -3
- package/build-module/components/url-popover/image-url-input-ui.js.map +1 -1
- package/build-module/hooks/grid-visualizer.js +5 -8
- package/build-module/hooks/grid-visualizer.js.map +1 -1
- package/build-module/hooks/layout-child.js +9 -2
- package/build-module/hooks/layout-child.js.map +1 -1
- package/build-module/hooks/position.js +3 -7
- package/build-module/hooks/position.js.map +1 -1
- package/build-module/hooks/use-bindings-attributes.js +81 -51
- package/build-module/hooks/use-bindings-attributes.js.map +1 -1
- package/build-module/layouts/constrained.js +6 -2
- package/build-module/layouts/constrained.js.map +1 -1
- package/build-module/layouts/grid.js +2 -0
- package/build-module/layouts/grid.js.map +1 -1
- package/build-module/private-apis.js +0 -3
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +15 -0
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/reducer.js +18 -1
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +10 -0
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/content-rtl.css +6 -6
- package/build-style/content.css +6 -6
- package/build-style/style-rtl.css +167 -103
- package/build-style/style.css +167 -103
- package/build-types/components/block-context/index.d.ts +2 -2
- package/build-types/components/block-context/index.d.ts.map +1 -1
- package/build-types/utils/dom.d.ts.map +1 -1
- package/package.json +31 -31
- package/src/components/alignment-control/ui.js +2 -2
- package/src/components/block-alignment-control/ui.js +1 -1
- package/src/components/block-alignment-control/ui.native.js +1 -1
- package/src/components/block-context/README.md +4 -4
- package/src/components/block-inspector/index.js +8 -4
- package/src/components/block-list/content.scss +2 -16
- package/src/components/block-list/use-block-props/index.js +1 -1
- package/src/components/block-list/use-block-props/use-block-refs.js +19 -3
- package/src/components/block-list/use-block-props/use-is-hovered.js +26 -11
- package/src/components/block-list/use-in-between-inserter.js +5 -1
- package/src/components/block-lock/modal.js +10 -2
- package/src/components/block-lock/style.scss +4 -8
- package/src/components/block-patterns-paging/style.scss +0 -23
- package/src/components/block-removal-warning-modal/index.js +10 -2
- package/src/components/block-switcher/index.js +1 -1
- package/src/components/block-switcher/pattern-transformations-menu.js +17 -15
- package/src/components/block-switcher/preview-block-popover.js +20 -14
- package/src/components/block-switcher/style.scss +8 -17
- package/src/components/block-toolbar/shuffle.js +8 -1
- package/src/components/block-tools/style.scss +8 -0
- package/src/components/block-tools/use-show-block-tools.js +12 -9
- package/src/components/block-tools/zoom-out-mode-inserter-button.js +47 -0
- package/src/components/block-tools/zoom-out-mode-inserters.js +43 -33
- package/src/components/block-tools/zoom-out-popover.js +1 -0
- package/src/components/block-tools/zoom-out-toolbar.js +1 -1
- package/src/components/date-format-picker/index.js +2 -11
- package/src/components/default-block-appender/index.js +11 -4
- package/src/components/font-appearance-control/index.js +1 -5
- package/src/components/global-styles/background-panel.js +21 -1
- package/src/components/global-styles/hooks.js +5 -1
- package/src/components/global-styles/style.scss +12 -0
- package/src/components/global-styles/test/typography-utils.js +325 -0
- package/src/components/global-styles/test/use-global-styles-output.js +3 -1
- package/src/components/global-styles/typography-panel.js +36 -44
- package/src/components/global-styles/typography-utils.js +103 -7
- package/src/components/global-styles/use-global-styles-output.js +22 -2
- package/src/components/grid/grid-item-movers.js +139 -69
- package/src/components/grid/grid-visualizer.js +1 -1
- package/src/components/grid/style.scss +114 -0
- package/src/components/grid/use-grid-layout-sync.js +66 -27
- package/src/components/iframe/content.scss +1 -1
- package/src/components/index.js +0 -5
- package/src/components/inner-blocks/index.js +4 -1
- package/src/components/inserter/block-patterns-tab/patterns-filter.js +40 -44
- package/src/components/inserter/media-tab/media-panel.js +1 -0
- package/src/components/inserter/menu.js +1 -1
- package/src/components/inserter/preview-panel.js +27 -4
- package/src/components/inserter/style.scss +57 -43
- package/src/components/inserter-draggable-blocks/index.js +11 -3
- package/src/components/inspector-controls-tabs/settings-tab.js +0 -2
- package/src/components/inspector-controls-tabs/style.scss +0 -21
- package/src/components/list-view/block-select-button.js +3 -13
- package/src/components/list-view/block.js +10 -3
- package/src/components/list-view/style.scss +2 -1
- package/src/components/list-view/utils.js +13 -2
- package/src/components/rich-text/format-toolbar/index.js +1 -1
- package/src/components/rich-text/index.js +1 -1
- package/src/components/spacing-sizes-control/input-controls/spacing-input-control.js +3 -1
- package/src/components/url-popover/image-url-input-ui.js +3 -3
- package/src/components/url-popover/style.scss +1 -0
- package/src/hooks/grid-visualizer.js +5 -7
- package/src/hooks/layout-child.js +12 -3
- package/src/hooks/position.js +3 -13
- package/src/hooks/use-bindings-attributes.js +89 -59
- package/src/layouts/constrained.js +10 -2
- package/src/layouts/grid.js +2 -0
- package/src/private-apis.js +0 -6
- package/src/store/actions.js +15 -0
- package/src/store/reducer.js +18 -0
- package/src/store/selectors.js +10 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/build/components/inserter/reusable-block-rename-hint.js +0 -71
- package/build/components/inserter/reusable-block-rename-hint.js.map +0 -1
- package/build/components/inspector-controls-tabs/settings-tab-hint.js +0 -53
- package/build/components/inspector-controls-tabs/settings-tab-hint.js.map +0 -1
- package/build-module/components/inserter/reusable-block-rename-hint.js +0 -64
- package/build-module/components/inserter/reusable-block-rename-hint.js.map +0 -1
- package/build-module/components/inspector-controls-tabs/settings-tab-hint.js +0 -47
- package/build-module/components/inspector-controls-tabs/settings-tab-hint.js.map +0 -1
- package/src/components/inserter/reusable-block-rename-hint.js +0 -69
- package/src/components/inspector-controls-tabs/settings-tab-hint.js +0 -52
package/build-style/style.css
CHANGED
|
@@ -418,6 +418,13 @@ iframe[name=editor-canvas] {
|
|
|
418
418
|
border: none;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
+
.block-editor-block-tools__zoom-out-mode-inserter-button {
|
|
422
|
+
visibility: hidden;
|
|
423
|
+
}
|
|
424
|
+
.block-editor-block-tools__zoom-out-mode-inserter-button.is-visible {
|
|
425
|
+
visibility: visible;
|
|
426
|
+
}
|
|
427
|
+
|
|
421
428
|
.block-editor-block-lock-modal {
|
|
422
429
|
z-index: 1000001;
|
|
423
430
|
}
|
|
@@ -427,9 +434,6 @@ iframe[name=editor-canvas] {
|
|
|
427
434
|
}
|
|
428
435
|
}
|
|
429
436
|
|
|
430
|
-
.block-editor-block-lock-modal__options {
|
|
431
|
-
margin-top: 16px;
|
|
432
|
-
}
|
|
433
437
|
.block-editor-block-lock-modal__options legend {
|
|
434
438
|
margin-bottom: 16px;
|
|
435
439
|
padding: 0;
|
|
@@ -467,7 +471,7 @@ iframe[name=editor-canvas] {
|
|
|
467
471
|
.block-editor-block-lock-modal__template-lock {
|
|
468
472
|
border-top: 1px solid #ddd;
|
|
469
473
|
margin-top: 16px;
|
|
470
|
-
padding:
|
|
474
|
+
padding-top: 16px;
|
|
471
475
|
}
|
|
472
476
|
|
|
473
477
|
.block-editor-block-lock-modal__actions {
|
|
@@ -888,13 +892,6 @@ iframe[name=editor-canvas] {
|
|
|
888
892
|
background-color: #757575;
|
|
889
893
|
}
|
|
890
894
|
|
|
891
|
-
.show-icon-labels .block-editor-patterns__grid-pagination {
|
|
892
|
-
flex-direction: column;
|
|
893
|
-
}
|
|
894
|
-
.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous,
|
|
895
|
-
.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next {
|
|
896
|
-
flex-direction: column;
|
|
897
|
-
}
|
|
898
895
|
.show-icon-labels .block-editor-patterns__grid-pagination .components-button {
|
|
899
896
|
width: auto;
|
|
900
897
|
}
|
|
@@ -904,23 +901,6 @@ iframe[name=editor-canvas] {
|
|
|
904
901
|
.show-icon-labels .block-editor-patterns__grid-pagination .components-button::before {
|
|
905
902
|
content: attr(aria-label);
|
|
906
903
|
}
|
|
907
|
-
@media screen and (min-width: 960px) {
|
|
908
|
-
.show-icon-labels .block-editor-patterns__grid-pagination {
|
|
909
|
-
flex-direction: row;
|
|
910
|
-
}
|
|
911
|
-
.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous,
|
|
912
|
-
.show-icon-labels .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next {
|
|
913
|
-
flex-direction: row;
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
.block-editor-block-patterns-list .block-editor-patterns__grid-pagination {
|
|
918
|
-
flex-direction: column;
|
|
919
|
-
}
|
|
920
|
-
.block-editor-block-patterns-list .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous,
|
|
921
|
-
.block-editor-block-patterns-list .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next {
|
|
922
|
-
flex-direction: column;
|
|
923
|
-
}
|
|
924
904
|
|
|
925
905
|
.components-popover.block-editor-block-popover {
|
|
926
906
|
z-index: 31;
|
|
@@ -1119,25 +1099,19 @@ iframe[name=editor-canvas] {
|
|
|
1119
1099
|
min-width: 300px;
|
|
1120
1100
|
}
|
|
1121
1101
|
|
|
1122
|
-
.block-editor-block-
|
|
1102
|
+
.block-editor-block-switcher__popover-preview-container {
|
|
1103
|
+
left: 0;
|
|
1123
1104
|
position: absolute;
|
|
1124
|
-
top: -
|
|
1125
|
-
|
|
1105
|
+
top: -1px;
|
|
1106
|
+
width: 100%;
|
|
1107
|
+
bottom: 0;
|
|
1108
|
+
pointer-events: none;
|
|
1126
1109
|
}
|
|
1127
1110
|
|
|
1128
|
-
.block-editor-block-
|
|
1129
|
-
display: none;
|
|
1111
|
+
.block-editor-block-switcher__popover-preview {
|
|
1130
1112
|
overflow: hidden;
|
|
1131
1113
|
}
|
|
1132
|
-
.block-editor-block-
|
|
1133
|
-
margin-top: 11px;
|
|
1134
|
-
}
|
|
1135
|
-
@media (min-width: 782px) {
|
|
1136
|
-
.block-editor-block-switcher__preview__popover {
|
|
1137
|
-
display: block;
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
.block-editor-block-switcher__preview__popover .components-popover__content {
|
|
1114
|
+
.block-editor-block-switcher__popover-preview .components-popover__content {
|
|
1141
1115
|
width: 300px;
|
|
1142
1116
|
border: 1px solid #1e1e1e;
|
|
1143
1117
|
background: #fff;
|
|
@@ -1146,13 +1120,13 @@ iframe[name=editor-canvas] {
|
|
|
1146
1120
|
box-shadow: none;
|
|
1147
1121
|
overflow: auto;
|
|
1148
1122
|
}
|
|
1149
|
-
.block-editor-block-
|
|
1123
|
+
.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview {
|
|
1150
1124
|
max-height: calc(500px - 32px);
|
|
1151
1125
|
margin: 16px 0;
|
|
1152
1126
|
padding: 0 16px;
|
|
1153
1127
|
overflow: hidden;
|
|
1154
1128
|
}
|
|
1155
|
-
.block-editor-block-
|
|
1129
|
+
.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview.is-pattern-list-preview {
|
|
1156
1130
|
overflow: unset;
|
|
1157
1131
|
}
|
|
1158
1132
|
|
|
@@ -1660,6 +1634,7 @@ iframe[name=editor-canvas] {
|
|
|
1660
1634
|
border: 1px solid #ddd;
|
|
1661
1635
|
border-radius: 2px;
|
|
1662
1636
|
grid-column: 1/-1;
|
|
1637
|
+
position: relative;
|
|
1663
1638
|
}
|
|
1664
1639
|
.block-editor-global-styles-background-panel__image-tools-panel-item .components-drop-zone__content-icon {
|
|
1665
1640
|
display: none;
|
|
@@ -1745,6 +1720,9 @@ iframe[name=editor-canvas] {
|
|
|
1745
1720
|
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker__media--image {
|
|
1746
1721
|
max-height: 180px;
|
|
1747
1722
|
}
|
|
1723
|
+
.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker::after {
|
|
1724
|
+
content: none;
|
|
1725
|
+
}
|
|
1748
1726
|
|
|
1749
1727
|
.block-editor-global-styles-background-panel__hidden-tools-panel-item {
|
|
1750
1728
|
height: 0;
|
|
@@ -1840,6 +1818,100 @@ iframe[name=editor-canvas] {
|
|
|
1840
1818
|
pointer-events: all;
|
|
1841
1819
|
}
|
|
1842
1820
|
|
|
1821
|
+
.block-editor-grid-item-mover__move-button-container {
|
|
1822
|
+
display: flex;
|
|
1823
|
+
padding: 0;
|
|
1824
|
+
border: none;
|
|
1825
|
+
justify-content: center;
|
|
1826
|
+
}
|
|
1827
|
+
.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button {
|
|
1828
|
+
width: 24px;
|
|
1829
|
+
min-width: 0 !important;
|
|
1830
|
+
overflow: hidden;
|
|
1831
|
+
padding-left: 0;
|
|
1832
|
+
padding-right: 0;
|
|
1833
|
+
}
|
|
1834
|
+
.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button svg {
|
|
1835
|
+
min-width: 24px;
|
|
1836
|
+
}
|
|
1837
|
+
.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button::before {
|
|
1838
|
+
content: "";
|
|
1839
|
+
position: absolute;
|
|
1840
|
+
display: block;
|
|
1841
|
+
border-radius: 2px;
|
|
1842
|
+
height: 32px;
|
|
1843
|
+
left: 8px;
|
|
1844
|
+
right: 8px;
|
|
1845
|
+
z-index: -1;
|
|
1846
|
+
animation: components-button__appear-animation 0.1s ease;
|
|
1847
|
+
animation-fill-mode: forwards;
|
|
1848
|
+
}
|
|
1849
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1850
|
+
.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button::before {
|
|
1851
|
+
animation-duration: 1ms;
|
|
1852
|
+
animation-delay: 0s;
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
.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 {
|
|
1856
|
+
box-shadow: none;
|
|
1857
|
+
outline: none;
|
|
1858
|
+
}
|
|
1859
|
+
.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus-visible::before {
|
|
1860
|
+
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1861
|
+
outline: 2px solid transparent;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
.block-editor-grid-item-mover__move-vertical-button-container {
|
|
1865
|
+
display: flex;
|
|
1866
|
+
position: relative;
|
|
1867
|
+
}
|
|
1868
|
+
@media (min-width: 600px) {
|
|
1869
|
+
.block-editor-grid-item-mover__move-vertical-button-container {
|
|
1870
|
+
flex-direction: column;
|
|
1871
|
+
justify-content: space-around;
|
|
1872
|
+
}
|
|
1873
|
+
.block-editor-grid-item-mover__move-vertical-button-container > .block-editor-grid-item-mover-button.block-editor-grid-item-mover-button {
|
|
1874
|
+
height: 20px;
|
|
1875
|
+
width: 100%;
|
|
1876
|
+
min-width: 0 !important;
|
|
1877
|
+
}
|
|
1878
|
+
.block-editor-grid-item-mover__move-vertical-button-container > .block-editor-grid-item-mover-button.block-editor-grid-item-mover-button::before {
|
|
1879
|
+
height: calc(100% - 4px);
|
|
1880
|
+
}
|
|
1881
|
+
.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-up-button svg,
|
|
1882
|
+
.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-down-button svg {
|
|
1883
|
+
flex-shrink: 0;
|
|
1884
|
+
height: 20px;
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
.show-icon-labels .block-editor-grid-item-mover-button.block-editor-grid-item-mover-button.is-left-button {
|
|
1889
|
+
border-right: 1px solid #757575;
|
|
1890
|
+
padding-right: 12px;
|
|
1891
|
+
}
|
|
1892
|
+
.show-icon-labels .block-editor-grid-item-mover-button.block-editor-grid-item-mover-button.is-right-button {
|
|
1893
|
+
border-left: 1px solid #757575;
|
|
1894
|
+
padding-left: 12px;
|
|
1895
|
+
}
|
|
1896
|
+
@media (min-width: 600px) {
|
|
1897
|
+
.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container::before {
|
|
1898
|
+
content: "";
|
|
1899
|
+
height: 1px;
|
|
1900
|
+
width: 100%;
|
|
1901
|
+
background: #e0e0e0;
|
|
1902
|
+
position: absolute;
|
|
1903
|
+
top: 50%;
|
|
1904
|
+
left: 50%;
|
|
1905
|
+
transform: translate(-50%, 0);
|
|
1906
|
+
margin-top: -0.5px;
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
@media (min-width: 782px) {
|
|
1910
|
+
.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container::before {
|
|
1911
|
+
background: #1e1e1e;
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1843
1915
|
.block-editor-height-control {
|
|
1844
1916
|
border: 0;
|
|
1845
1917
|
margin: 0;
|
|
@@ -1968,25 +2040,6 @@ iframe[name=editor-canvas] {
|
|
|
1968
2040
|
justify-content: center;
|
|
1969
2041
|
}
|
|
1970
2042
|
|
|
1971
|
-
.block-editor-inspector-controls-tabs__hint {
|
|
1972
|
-
align-items: flex-start;
|
|
1973
|
-
background: #f0f0f0;
|
|
1974
|
-
border-radius: 2px;
|
|
1975
|
-
color: #1e1e1e;
|
|
1976
|
-
display: flex;
|
|
1977
|
-
flex-direction: row;
|
|
1978
|
-
margin: 16px;
|
|
1979
|
-
font-size: 13px;
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
.block-editor-inspector-controls-tabs__hint-content {
|
|
1983
|
-
margin: 12px 0 12px 12px;
|
|
1984
|
-
}
|
|
1985
|
-
|
|
1986
|
-
.block-editor-inspector-controls-tabs__hint-dismiss {
|
|
1987
|
-
margin: 4px 4px 4px 0;
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
2043
|
.block-editor-inspector-popover-header {
|
|
1991
2044
|
margin-bottom: 16px;
|
|
1992
2045
|
}
|
|
@@ -2754,7 +2807,8 @@ iframe[name=editor-canvas] {
|
|
|
2754
2807
|
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor {
|
|
2755
2808
|
background: rgba(0, 0, 0, 0.3);
|
|
2756
2809
|
}
|
|
2757
|
-
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock
|
|
2810
|
+
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock,
|
|
2811
|
+
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__sticky {
|
|
2758
2812
|
line-height: 0;
|
|
2759
2813
|
}
|
|
2760
2814
|
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__images {
|
|
@@ -3373,6 +3427,7 @@ iframe[name=editor-canvas] {
|
|
|
3373
3427
|
.block-editor-url-popover__row {
|
|
3374
3428
|
display: flex;
|
|
3375
3429
|
gap: 4px;
|
|
3430
|
+
align-items: center;
|
|
3376
3431
|
}
|
|
3377
3432
|
|
|
3378
3433
|
.block-editor-url-popover__row > :not(.block-editor-url-popover__settings-toggle) {
|
|
@@ -3999,6 +4054,9 @@ iframe[name=editor-canvas] {
|
|
|
3999
4054
|
.block-editor-inserter__category-tablist div[role=listitem]:last-child {
|
|
4000
4055
|
margin-top: auto;
|
|
4001
4056
|
}
|
|
4057
|
+
.block-editor-inserter__category-tablist[aria-orientation=vertical]::after {
|
|
4058
|
+
content: none;
|
|
4059
|
+
}
|
|
4002
4060
|
.block-editor-inserter__category-tablist .block-editor-inserter__category-tab {
|
|
4003
4061
|
padding: 8px 4px 8px 12px;
|
|
4004
4062
|
text-align: left;
|
|
@@ -4044,18 +4102,10 @@ iframe[name=editor-canvas] {
|
|
|
4044
4102
|
}
|
|
4045
4103
|
|
|
4046
4104
|
.block-editor-inserter__category-panel {
|
|
4047
|
-
background: #f0f0f0;
|
|
4048
|
-
border-top: 1px solid #e0e0e0;
|
|
4049
|
-
box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.133);
|
|
4050
4105
|
outline: 1px solid transparent;
|
|
4051
|
-
position: absolute;
|
|
4052
|
-
top: -1px;
|
|
4053
|
-
left: 0;
|
|
4054
|
-
height: calc(100% + 1px);
|
|
4055
|
-
width: 100%;
|
|
4056
|
-
padding: 0 16px;
|
|
4057
4106
|
display: flex;
|
|
4058
4107
|
flex-direction: column;
|
|
4108
|
+
padding: 0 16px;
|
|
4059
4109
|
}
|
|
4060
4110
|
@media (min-width: 782px) {
|
|
4061
4111
|
.block-editor-inserter__category-panel {
|
|
@@ -4063,15 +4113,26 @@ iframe[name=editor-canvas] {
|
|
|
4063
4113
|
padding: 0;
|
|
4064
4114
|
left: 100%;
|
|
4065
4115
|
width: 300px;
|
|
4116
|
+
position: absolute;
|
|
4117
|
+
top: -1px;
|
|
4118
|
+
height: calc(100% + 1px);
|
|
4119
|
+
background: #f0f0f0;
|
|
4120
|
+
border-top: 1px solid #e0e0e0;
|
|
4121
|
+
box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.133);
|
|
4066
4122
|
}
|
|
4067
|
-
|
|
4068
|
-
.block-editor-inserter__category-panel .block-editor-inserter__media-list,
|
|
4123
|
+
.block-editor-inserter__category-panel .block-editor-inserter__media-list,
|
|
4069
4124
|
.block-editor-inserter__category-panel .block-editor-block-patterns-list {
|
|
4070
|
-
|
|
4125
|
+
padding: 0 24px 16px;
|
|
4126
|
+
}
|
|
4071
4127
|
}
|
|
4072
4128
|
|
|
4073
4129
|
.block-editor-inserter__patterns-category-panel-header {
|
|
4074
|
-
padding: 8px
|
|
4130
|
+
padding: 8px 0;
|
|
4131
|
+
}
|
|
4132
|
+
@media (min-width: 782px) {
|
|
4133
|
+
.block-editor-inserter__patterns-category-panel-header {
|
|
4134
|
+
padding: 8px 24px;
|
|
4135
|
+
}
|
|
4075
4136
|
}
|
|
4076
4137
|
|
|
4077
4138
|
.block-editor-inserter__patterns-category-no-results {
|
|
@@ -4086,7 +4147,6 @@ iframe[name=editor-canvas] {
|
|
|
4086
4147
|
}
|
|
4087
4148
|
|
|
4088
4149
|
.block-editor-inserter__preview-content {
|
|
4089
|
-
min-height: 144px;
|
|
4090
4150
|
background: #f0f0f0;
|
|
4091
4151
|
display: grid;
|
|
4092
4152
|
flex-grow: 1;
|
|
@@ -4257,10 +4317,16 @@ iframe[name=editor-canvas] {
|
|
|
4257
4317
|
flex: 1;
|
|
4258
4318
|
}
|
|
4259
4319
|
.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search {
|
|
4260
|
-
|
|
4320
|
+
margin-bottom: 24px;
|
|
4261
4321
|
}
|
|
4262
|
-
|
|
4263
|
-
|
|
4322
|
+
@media (min-width: 782px) {
|
|
4323
|
+
.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search {
|
|
4324
|
+
margin-bottom: 0;
|
|
4325
|
+
padding: 16px 24px 16px;
|
|
4326
|
+
}
|
|
4327
|
+
.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search:not(:focus-within) {
|
|
4328
|
+
--wp-components-color-background: #fff;
|
|
4329
|
+
}
|
|
4264
4330
|
}
|
|
4265
4331
|
|
|
4266
4332
|
.block-editor-inserter__media-list__list-item {
|
|
@@ -4362,28 +4428,6 @@ iframe[name=editor-canvas] {
|
|
|
4362
4428
|
margin: 16px 16px 0;
|
|
4363
4429
|
}
|
|
4364
4430
|
|
|
4365
|
-
.reusable-blocks-menu-items__rename-hint {
|
|
4366
|
-
align-items: top;
|
|
4367
|
-
background: #f0f0f0;
|
|
4368
|
-
border-radius: 2px;
|
|
4369
|
-
color: #1e1e1e;
|
|
4370
|
-
display: flex;
|
|
4371
|
-
flex-direction: row;
|
|
4372
|
-
max-width: 380px;
|
|
4373
|
-
}
|
|
4374
|
-
|
|
4375
|
-
.reusable-blocks-menu-items__rename-hint-content {
|
|
4376
|
-
margin: 12px 0 12px 12px;
|
|
4377
|
-
}
|
|
4378
|
-
|
|
4379
|
-
.reusable-blocks-menu-items__rename-hint-dismiss {
|
|
4380
|
-
margin: 4px 4px 4px 0;
|
|
4381
|
-
}
|
|
4382
|
-
|
|
4383
|
-
.components-menu-group .reusable-blocks-menu-items__rename-hint {
|
|
4384
|
-
margin: 0;
|
|
4385
|
-
}
|
|
4386
|
-
|
|
4387
4431
|
.block-editor-patterns__sync-status-filter .components-input-control__container select.components-select-control__input {
|
|
4388
4432
|
height: 40px;
|
|
4389
4433
|
}
|
|
@@ -4403,6 +4447,26 @@ iframe[name=editor-canvas] {
|
|
|
4403
4447
|
height: 100%;
|
|
4404
4448
|
}
|
|
4405
4449
|
}
|
|
4450
|
+
.block-editor-inserter__menu.is-zoom-out .block-editor-inserter__category-panel {
|
|
4451
|
+
box-shadow: none;
|
|
4452
|
+
}
|
|
4453
|
+
|
|
4454
|
+
@media (max-width: 959px) {
|
|
4455
|
+
.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination {
|
|
4456
|
+
flex-direction: column;
|
|
4457
|
+
}
|
|
4458
|
+
.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous,
|
|
4459
|
+
.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next {
|
|
4460
|
+
flex-direction: column;
|
|
4461
|
+
}
|
|
4462
|
+
}
|
|
4463
|
+
.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination {
|
|
4464
|
+
flex-direction: column;
|
|
4465
|
+
}
|
|
4466
|
+
.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous,
|
|
4467
|
+
.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next {
|
|
4468
|
+
flex-direction: column;
|
|
4469
|
+
}
|
|
4406
4470
|
|
|
4407
4471
|
.spacing-sizes-control .spacing-sizes-control__custom-value-input,
|
|
4408
4472
|
.spacing-sizes-control .spacing-sizes-control__label {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export function BlockContextProvider({ value, children }: BlockContextProviderProps): import("react").JSX.Element;
|
|
9
9
|
export default Context;
|
|
10
|
-
export type ReactNode = import(
|
|
10
|
+
export type ReactNode = import("react").ReactNode;
|
|
11
11
|
export type BlockContextProviderProps = {
|
|
12
12
|
/**
|
|
13
13
|
* Context value to merge with current
|
|
@@ -28,5 +28,5 @@ export type BlockContextProviderProps = {
|
|
|
28
28
|
* @property {ReactNode} children Component children.
|
|
29
29
|
*/
|
|
30
30
|
/** @type {import('react').Context<Record<string,*>>} */
|
|
31
|
-
declare const Context: import(
|
|
31
|
+
declare const Context: import("react").Context<Record<string, any>>;
|
|
32
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/block-context/index.js"],"names":[],"mappings":"AAkBA;;;;;;GAMG;AACH,0DAFW,yBAAyB,+BAUnC;;wBA5Ba,OAAO,OAAO,EAAE,SAAS;;;;;;WAKzB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/block-context/index.js"],"names":[],"mappings":"AAkBA;;;;;;GAMG;AACH,0DAFW,yBAAyB,+BAUnC;;wBA5Ba,OAAO,OAAO,EAAE,SAAS;;;;;;WAKzB,MAAM,CAAC,MAAM,EAAC,GAAC,CAAC;;;;cAEhB,SAAS;;AAPvB,qDAAqD;AAErD;;;;;;GAMG;AAEH,wDAAwD;AACxD,uBADW,OAAO,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAC,GAAC,CAAC,CAAC,CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/utils/dom.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,iCALW,OAAO,KACP,OAAO,GAEN,OAAO,CAIlB;AAED;;;;;;;;;GASG;AACH,gDANW,OAAO,WACP,OAAO,GAEN,OAAO,CAQlB;AAED;;;;;;;GAOG;AACH,uCALW,IAAI,
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/utils/dom.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,iCALW,OAAO,KACP,OAAO,GAEN,OAAO,CAIlB;AAED;;;;;;;;;GASG;AACH,gDANW,OAAO,WACP,OAAO,GAEN,OAAO,CAQlB;AAED;;;;;;;GAOG;AACH,uCALW,IAAI,OAAC,GAEJ,MAAM,GAAC,SAAS,CAoB3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.4.0",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -36,35 +36,35 @@
|
|
|
36
36
|
"@emotion/react": "^11.7.1",
|
|
37
37
|
"@emotion/styled": "^11.6.0",
|
|
38
38
|
"@react-spring/web": "^9.4.5",
|
|
39
|
-
"@wordpress/a11y": "^4.
|
|
40
|
-
"@wordpress/api-fetch": "^7.
|
|
41
|
-
"@wordpress/blob": "^4.
|
|
42
|
-
"@wordpress/blocks": "^13.
|
|
43
|
-
"@wordpress/commands": "^1.
|
|
44
|
-
"@wordpress/components": "^28.
|
|
45
|
-
"@wordpress/compose": "^7.
|
|
46
|
-
"@wordpress/data": "^10.
|
|
47
|
-
"@wordpress/date": "^5.
|
|
48
|
-
"@wordpress/deprecated": "^4.
|
|
49
|
-
"@wordpress/dom": "^4.
|
|
50
|
-
"@wordpress/element": "^6.
|
|
51
|
-
"@wordpress/escape-html": "^3.
|
|
52
|
-
"@wordpress/hooks": "^4.
|
|
53
|
-
"@wordpress/html-entities": "^4.
|
|
54
|
-
"@wordpress/i18n": "^5.
|
|
55
|
-
"@wordpress/icons": "^10.
|
|
56
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
57
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
58
|
-
"@wordpress/keycodes": "^4.
|
|
59
|
-
"@wordpress/notices": "^5.
|
|
60
|
-
"@wordpress/preferences": "^4.
|
|
61
|
-
"@wordpress/private-apis": "^1.
|
|
62
|
-
"@wordpress/rich-text": "^7.
|
|
63
|
-
"@wordpress/style-engine": "^2.
|
|
64
|
-
"@wordpress/token-list": "^3.
|
|
65
|
-
"@wordpress/url": "^4.
|
|
66
|
-
"@wordpress/warning": "^3.
|
|
67
|
-
"@wordpress/wordcount": "^4.
|
|
39
|
+
"@wordpress/a11y": "^4.4.0",
|
|
40
|
+
"@wordpress/api-fetch": "^7.4.0",
|
|
41
|
+
"@wordpress/blob": "^4.4.0",
|
|
42
|
+
"@wordpress/blocks": "^13.4.0",
|
|
43
|
+
"@wordpress/commands": "^1.4.0",
|
|
44
|
+
"@wordpress/components": "^28.4.0",
|
|
45
|
+
"@wordpress/compose": "^7.4.0",
|
|
46
|
+
"@wordpress/data": "^10.4.0",
|
|
47
|
+
"@wordpress/date": "^5.4.0",
|
|
48
|
+
"@wordpress/deprecated": "^4.4.0",
|
|
49
|
+
"@wordpress/dom": "^4.4.0",
|
|
50
|
+
"@wordpress/element": "^6.4.0",
|
|
51
|
+
"@wordpress/escape-html": "^3.4.0",
|
|
52
|
+
"@wordpress/hooks": "^4.4.0",
|
|
53
|
+
"@wordpress/html-entities": "^4.4.0",
|
|
54
|
+
"@wordpress/i18n": "^5.4.0",
|
|
55
|
+
"@wordpress/icons": "^10.4.0",
|
|
56
|
+
"@wordpress/is-shallow-equal": "^5.4.0",
|
|
57
|
+
"@wordpress/keyboard-shortcuts": "^5.4.0",
|
|
58
|
+
"@wordpress/keycodes": "^4.4.0",
|
|
59
|
+
"@wordpress/notices": "^5.4.0",
|
|
60
|
+
"@wordpress/preferences": "^4.4.0",
|
|
61
|
+
"@wordpress/private-apis": "^1.4.0",
|
|
62
|
+
"@wordpress/rich-text": "^7.4.0",
|
|
63
|
+
"@wordpress/style-engine": "^2.4.0",
|
|
64
|
+
"@wordpress/token-list": "^3.4.0",
|
|
65
|
+
"@wordpress/url": "^4.4.0",
|
|
66
|
+
"@wordpress/warning": "^3.4.0",
|
|
67
|
+
"@wordpress/wordcount": "^4.4.0",
|
|
68
68
|
"change-case": "^4.1.2",
|
|
69
69
|
"clsx": "^2.1.1",
|
|
70
70
|
"colord": "^2.7.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "363edb39b8dda8727f652e42cbb8497732693ed2"
|
|
90
90
|
}
|
|
@@ -32,7 +32,7 @@ function AlignmentUI( {
|
|
|
32
32
|
onChange,
|
|
33
33
|
alignmentControls = DEFAULT_ALIGNMENT_CONTROLS,
|
|
34
34
|
label = __( 'Align text' ),
|
|
35
|
-
|
|
35
|
+
description = __( 'Change text alignment' ),
|
|
36
36
|
isCollapsed = true,
|
|
37
37
|
isToolbar,
|
|
38
38
|
} ) {
|
|
@@ -56,7 +56,7 @@ function AlignmentUI( {
|
|
|
56
56
|
? { isCollapsed }
|
|
57
57
|
: {
|
|
58
58
|
toggleProps: {
|
|
59
|
-
|
|
59
|
+
description,
|
|
60
60
|
},
|
|
61
61
|
popoverProps: POPOVER_PROPS,
|
|
62
62
|
};
|
|
@@ -77,7 +77,7 @@ function BlockAlignmentUI( {
|
|
|
77
77
|
};
|
|
78
78
|
} ),
|
|
79
79
|
popoverProps: POPOVER_PROPS,
|
|
80
|
-
toggleProps: {
|
|
80
|
+
toggleProps: { description: __( 'Change alignment' ) },
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
return <UIComponent { ...commonProps } { ...extraProps } />;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Block Context
|
|
2
2
|
|
|
3
|
-
Block Context is a React implementation of WordPress's block context. Block context, much like [React's context](https://
|
|
3
|
+
Block Context is a React implementation of WordPress's block context. Block context, much like [React's context](https://react.dev/learn/passing-data-deeply-with-context), is a method for passing and inheriting values deeply through a hierarchy of blocks. Because of the similarities with React's context, the client-side implementation here is quite minimal. It is complemented by equivalent behaviors in the server-side rendering of a block.
|
|
4
4
|
|
|
5
5
|
Note that the implementation of Block Context is distinct from [the `BlockEdit` context](../block-edit). While it is true that both provide context relevant for the editing of a block, Block Context is implemented separately so as to prioritize it as most identifiable amongst the machinery of block context, and not amongst other client-side editing context of a block.
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
|
-
Currently, only the [Provider component](https://
|
|
9
|
+
Currently, only the [Provider component](https://react.dev/reference/react/createContext#provider) is made available on the public interface of the `@wordpress/block-editor` module. This can be used to add or override context which can then be consumed by blocks rendered within that context in the block editor.
|
|
10
10
|
|
|
11
11
|
```js
|
|
12
12
|
import { BlockContextProvider } from '@wordpress/block-editor';
|
|
@@ -20,7 +20,7 @@ function MyCustomPostEditor() {
|
|
|
20
20
|
}
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Internal to the `@wordpress/block-editor` module, a component can access the [full Context object](https://
|
|
23
|
+
Internal to the `@wordpress/block-editor` module, a component can access the [full Context object](https://react.dev/reference/react/createContext), typically for use in combination with [`useContext`](https://react.dev/reference/react/useContext).
|
|
24
24
|
|
|
25
25
|
```js
|
|
26
26
|
import { useContext } from 'react';
|
|
@@ -39,7 +39,7 @@ The reason `BlockContext` is only internally available within the `@wordpress/bl
|
|
|
39
39
|
|
|
40
40
|
## Props
|
|
41
41
|
|
|
42
|
-
`BlockContextProvider` behaves like a standard [`Context.Provider` component](https://
|
|
42
|
+
`BlockContextProvider` behaves like a standard [`Context.Provider` component](https://react.dev/reference/react/createContext#provider). It receives `value` and `children` props. The `value` is merged with the current block context value.
|
|
43
43
|
|
|
44
44
|
### `value`
|
|
45
45
|
|
|
@@ -132,6 +132,10 @@ const BlockInspector = ( { showNoBlockSelectedMessage = true } ) => {
|
|
|
132
132
|
label={ __( 'Color' ) }
|
|
133
133
|
className="color-block-support-panel__inner-wrapper"
|
|
134
134
|
/>
|
|
135
|
+
<InspectorControls.Slot
|
|
136
|
+
group="background"
|
|
137
|
+
label={ __( 'Background image' ) }
|
|
138
|
+
/>
|
|
135
139
|
<InspectorControls.Slot
|
|
136
140
|
group="typography"
|
|
137
141
|
label={ __( 'Typography' ) }
|
|
@@ -285,6 +289,10 @@ const BlockInspectorSingleBlock = ( { clientId, blockName } ) => {
|
|
|
285
289
|
label={ __( 'Color' ) }
|
|
286
290
|
className="color-block-support-panel__inner-wrapper"
|
|
287
291
|
/>
|
|
292
|
+
<InspectorControls.Slot
|
|
293
|
+
group="background"
|
|
294
|
+
label={ __( 'Background image' ) }
|
|
295
|
+
/>
|
|
288
296
|
<InspectorControls.Slot
|
|
289
297
|
group="typography"
|
|
290
298
|
label={ __( 'Typography' ) }
|
|
@@ -298,10 +306,6 @@ const BlockInspectorSingleBlock = ( { clientId, blockName } ) => {
|
|
|
298
306
|
label={ borderPanelLabel }
|
|
299
307
|
/>
|
|
300
308
|
<InspectorControls.Slot group="styles" />
|
|
301
|
-
<InspectorControls.Slot
|
|
302
|
-
group="background"
|
|
303
|
-
label={ __( 'Background image' ) }
|
|
304
|
-
/>
|
|
305
309
|
<PositionControls />
|
|
306
310
|
<div>
|
|
307
311
|
<AdvancedControls />
|
|
@@ -17,20 +17,6 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
@mixin selectedOutline() {
|
|
21
|
-
content: "";
|
|
22
|
-
position: absolute;
|
|
23
|
-
pointer-events: none;
|
|
24
|
-
top: 0;
|
|
25
|
-
right: 0;
|
|
26
|
-
bottom: 0;
|
|
27
|
-
left: 0;
|
|
28
|
-
outline-color: var(--wp-admin-theme-color);
|
|
29
|
-
outline-style: solid;
|
|
30
|
-
outline-width: calc(var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
|
|
31
|
-
outline-offset: calc((-1 * var(--wp-admin-border-width-focus)) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
20
|
// Hide selections on this element, otherwise Safari will include it stacked
|
|
35
21
|
// under your actual selection.
|
|
36
22
|
// This uses a CSS hack to show the rules to Safari only. Failing here is okay,
|
|
@@ -101,7 +87,7 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
|
|
|
101
87
|
// We're using a pseudo element to overflow placeholder borders
|
|
102
88
|
// and any border inside the block itself.
|
|
103
89
|
&::after {
|
|
104
|
-
@include
|
|
90
|
+
@include selected-block-focus();
|
|
105
91
|
z-index: 1;
|
|
106
92
|
|
|
107
93
|
// Show a light color for dark themes.
|
|
@@ -281,7 +267,7 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
|
|
|
281
267
|
&:not(.rich-text):not([contenteditable="true"]).is-selected {
|
|
282
268
|
|
|
283
269
|
&::after {
|
|
284
|
-
@include
|
|
270
|
+
@include selected-block-focus();
|
|
285
271
|
}
|
|
286
272
|
}
|
|
287
273
|
}
|