@wordpress/block-editor 11.7.0 → 11.8.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 +42 -55
- package/build/components/block-list/block.native.js +4 -3
- package/build/components/block-list/block.native.js.map +1 -1
- package/build/components/block-list/index.native.js +11 -21
- package/build/components/block-list/index.native.js.map +1 -1
- package/build/components/block-list/use-in-between-inserter.js +3 -1
- package/build/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build/components/block-popover/inbetween.js +2 -9
- package/build/components/block-popover/inbetween.js.map +1 -1
- package/build/components/block-settings-menu/block-settings-dropdown.js +1 -10
- package/build/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build/components/caption/index.native.js +0 -1
- package/build/components/caption/index.native.js.map +1 -1
- package/build/components/date-format-picker/index.js +1 -1
- package/build/components/date-format-picker/index.js.map +1 -1
- package/build/components/global-styles/border-panel.js +15 -29
- package/build/components/global-styles/border-panel.js.map +1 -1
- package/build/components/global-styles/dimensions-panel.js +15 -14
- package/build/components/global-styles/dimensions-panel.js.map +1 -1
- package/build/components/global-styles/effects-panel.js +244 -0
- package/build/components/global-styles/effects-panel.js.map +1 -0
- package/build/components/global-styles/filters-panel.js +151 -0
- package/build/components/global-styles/filters-panel.js.map +1 -0
- package/build/components/global-styles/get-block-css-selector.js +1 -12
- package/build/components/global-styles/get-block-css-selector.js.map +1 -1
- package/build/components/global-styles/hooks.js +7 -0
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/index.js +28 -0
- package/build/components/global-styles/index.js.map +1 -1
- package/build/components/global-styles/use-global-styles-output.js +15 -7
- package/build/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build/components/iframe/index.js +1 -1
- package/build/components/iframe/index.js.map +1 -1
- package/build/components/image-size-control/use-dimension-handler.js +5 -3
- package/build/components/image-size-control/use-dimension-handler.js.map +1 -1
- package/build/components/index.js +16 -0
- package/build/components/index.js.map +1 -1
- package/build/components/inserter/block-patterns-tab.js +4 -2
- package/build/components/inserter/block-patterns-tab.js.map +1 -1
- package/build/components/inspector-controls-tabs/utils.js +5 -3
- package/build/components/inspector-controls-tabs/utils.js.map +1 -1
- package/build/components/list-view/block.js +1 -0
- package/build/components/list-view/block.js.map +1 -1
- package/build/components/list-view/index.js +22 -4
- package/build/components/list-view/index.js.map +1 -1
- package/build/components/list-view/use-list-view-client-ids.js +7 -3
- package/build/components/list-view/use-list-view-client-ids.js.map +1 -1
- package/build/components/list-view/use-list-view-drop-zone.js +8 -2
- package/build/components/list-view/use-list-view-drop-zone.js.map +1 -1
- package/build/components/off-canvas-editor/block-contents.js +6 -1
- package/build/components/off-canvas-editor/block-contents.js.map +1 -1
- package/build/components/off-canvas-editor/index.js +17 -14
- package/build/components/off-canvas-editor/index.js.map +1 -1
- package/build/components/resizable-box-popover/index.js +38 -0
- package/build/components/resizable-box-popover/index.js.map +1 -0
- package/build/components/rich-text/index.js +0 -1
- package/build/components/rich-text/index.js.map +1 -1
- package/build/components/rich-text/index.native.js +7 -11
- package/build/components/rich-text/index.native.js.map +1 -1
- package/build/components/spacing-sizes-control/spacing-input-control.js +8 -0
- package/build/components/spacing-sizes-control/spacing-input-control.js.map +1 -1
- package/build/hooks/anchor.js +1 -1
- package/build/hooks/anchor.js.map +1 -1
- package/build/hooks/border.js +1 -1
- package/build/hooks/border.js.map +1 -1
- package/build/hooks/duotone.js +92 -66
- package/build/hooks/duotone.js.map +1 -1
- package/build/hooks/margin.js +27 -17
- package/build/hooks/margin.js.map +1 -1
- package/build/hooks/padding.js +19 -9
- package/build/hooks/padding.js.map +1 -1
- package/build/hooks/utils.js +7 -4
- package/build/hooks/utils.js.map +1 -1
- package/build/layouts/utils.js +3 -2
- package/build/layouts/utils.js.map +1 -1
- package/build/private-apis.js +4 -1
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +1 -1
- package/build/store/actions.js.map +1 -1
- package/build/utils/object.js +1 -1
- package/build/utils/object.js.map +1 -1
- package/build-module/components/block-list/block.native.js +4 -3
- package/build-module/components/block-list/block.native.js.map +1 -1
- package/build-module/components/block-list/index.native.js +11 -19
- package/build-module/components/block-list/index.native.js.map +1 -1
- package/build-module/components/block-list/use-in-between-inserter.js +2 -1
- package/build-module/components/block-list/use-in-between-inserter.js.map +1 -1
- package/build-module/components/block-popover/inbetween.js +2 -9
- package/build-module/components/block-popover/inbetween.js.map +1 -1
- package/build-module/components/block-settings-menu/block-settings-dropdown.js +1 -9
- package/build-module/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
- package/build-module/components/caption/index.native.js +0 -1
- package/build-module/components/caption/index.native.js.map +1 -1
- package/build-module/components/date-format-picker/index.js +1 -1
- package/build-module/components/date-format-picker/index.js.map +1 -1
- package/build-module/components/global-styles/border-panel.js +15 -29
- package/build-module/components/global-styles/border-panel.js.map +1 -1
- package/build-module/components/global-styles/dimensions-panel.js +15 -14
- package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
- package/build-module/components/global-styles/effects-panel.js +228 -0
- package/build-module/components/global-styles/effects-panel.js.map +1 -0
- package/build-module/components/global-styles/filters-panel.js +139 -0
- package/build-module/components/global-styles/filters-panel.js.map +1 -0
- package/build-module/components/global-styles/get-block-css-selector.js +1 -12
- package/build-module/components/global-styles/get-block-css-selector.js.map +1 -1
- package/build-module/components/global-styles/hooks.js +7 -0
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/index.js +2 -0
- package/build-module/components/global-styles/index.js.map +1 -1
- package/build-module/components/global-styles/use-global-styles-output.js +16 -8
- package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
- package/build-module/components/iframe/index.js +1 -1
- package/build-module/components/iframe/index.js.map +1 -1
- package/build-module/components/image-size-control/use-dimension-handler.js +5 -3
- package/build-module/components/image-size-control/use-dimension-handler.js.map +1 -1
- package/build-module/components/index.js +1 -0
- package/build-module/components/index.js.map +1 -1
- package/build-module/components/inserter/block-patterns-tab.js +5 -2
- package/build-module/components/inserter/block-patterns-tab.js.map +1 -1
- package/build-module/components/inspector-controls-tabs/utils.js +4 -3
- package/build-module/components/inspector-controls-tabs/utils.js.map +1 -1
- package/build-module/components/list-view/block.js +1 -0
- package/build-module/components/list-view/block.js.map +1 -1
- package/build-module/components/list-view/index.js +21 -4
- package/build-module/components/list-view/index.js.map +1 -1
- package/build-module/components/list-view/use-list-view-client-ids.js +7 -3
- package/build-module/components/list-view/use-list-view-client-ids.js.map +1 -1
- package/build-module/components/list-view/use-list-view-drop-zone.js +8 -4
- package/build-module/components/list-view/use-list-view-drop-zone.js.map +1 -1
- package/build-module/components/off-canvas-editor/block-contents.js +5 -1
- package/build-module/components/off-canvas-editor/block-contents.js.map +1 -1
- package/build-module/components/off-canvas-editor/index.js +17 -14
- package/build-module/components/off-canvas-editor/index.js.map +1 -1
- package/build-module/components/resizable-box-popover/index.js +26 -0
- package/build-module/components/resizable-box-popover/index.js.map +1 -0
- package/build-module/components/rich-text/index.js +0 -1
- package/build-module/components/rich-text/index.js.map +1 -1
- package/build-module/components/rich-text/index.native.js +7 -10
- package/build-module/components/rich-text/index.native.js.map +1 -1
- package/build-module/components/spacing-sizes-control/spacing-input-control.js +7 -0
- package/build-module/components/spacing-sizes-control/spacing-input-control.js.map +1 -1
- package/build-module/hooks/anchor.js +1 -1
- package/build-module/hooks/anchor.js.map +1 -1
- package/build-module/hooks/border.js +1 -1
- package/build-module/hooks/border.js.map +1 -1
- package/build-module/hooks/duotone.js +90 -66
- package/build-module/hooks/duotone.js.map +1 -1
- package/build-module/hooks/margin.js +29 -18
- package/build-module/hooks/margin.js.map +1 -1
- package/build-module/hooks/padding.js +21 -10
- package/build-module/hooks/padding.js.map +1 -1
- package/build-module/hooks/utils.js +8 -5
- package/build-module/hooks/utils.js.map +1 -1
- package/build-module/layouts/utils.js +3 -2
- package/build-module/layouts/utils.js.map +1 -1
- package/build-module/private-apis.js +3 -1
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +1 -1
- package/build-module/store/actions.js.map +1 -1
- package/build-module/utils/object.js +1 -1
- package/build-module/utils/object.js.map +1 -1
- package/build-style/style-rtl.css +51 -10
- package/build-style/style.css +51 -10
- package/package.json +31 -31
- package/src/components/block-inspector/style.scss +6 -4
- package/src/components/block-list/block.native.js +3 -2
- package/src/components/block-list/index.native.js +19 -38
- package/src/components/block-list/use-in-between-inserter.js +4 -1
- package/src/components/block-popover/inbetween.js +2 -13
- package/src/components/block-settings-menu/block-settings-dropdown.js +2 -12
- package/src/components/caption/index.native.js +0 -1
- package/src/components/date-format-picker/index.js +1 -1
- package/src/components/global-styles/README.md +129 -16
- package/src/components/global-styles/border-panel.js +13 -32
- package/src/components/global-styles/dimensions-panel.js +30 -13
- package/src/components/global-styles/effects-panel.js +228 -0
- package/src/components/global-styles/filters-panel.js +157 -0
- package/src/components/global-styles/get-block-css-selector.js +0 -11
- package/src/components/global-styles/hooks.js +10 -0
- package/src/components/global-styles/index.js +2 -0
- package/src/components/global-styles/style.scss +42 -0
- package/src/components/global-styles/test/use-global-styles-output.js +4 -4
- package/src/components/global-styles/use-global-styles-output.js +27 -11
- package/src/components/iframe/index.js +1 -1
- package/src/components/image-size-control/use-dimension-handler.js +4 -3
- package/src/components/index.js +4 -1
- package/src/components/inserter/block-patterns-tab.js +3 -1
- package/src/components/inspector-controls-tabs/utils.js +4 -3
- package/src/components/list-view/README.md +2 -0
- package/src/components/list-view/block.js +1 -0
- package/src/components/list-view/index.js +18 -2
- package/src/components/list-view/style.scss +3 -1
- package/src/components/list-view/test/use-list-view-drop-zone.js +188 -0
- package/src/components/list-view/use-list-view-client-ids.js +5 -3
- package/src/components/list-view/use-list-view-drop-zone.js +9 -3
- package/src/components/off-canvas-editor/block-contents.js +4 -0
- package/src/components/off-canvas-editor/index.js +15 -11
- package/src/components/resizable-box-popover/index.js +27 -0
- package/src/components/rich-text/index.js +0 -1
- package/src/components/rich-text/index.native.js +2 -5
- package/src/components/spacing-sizes-control/spacing-input-control.js +10 -0
- package/src/components/spacing-sizes-control/style.scss +7 -7
- package/src/hooks/anchor.js +1 -1
- package/src/hooks/border.js +1 -1
- package/src/hooks/duotone.js +116 -74
- package/src/hooks/margin.js +31 -26
- package/src/hooks/padding.js +24 -18
- package/src/hooks/utils.js +4 -4
- package/src/layouts/utils.js +2 -2
- package/src/private-apis.js +2 -0
- package/src/store/actions.js +1 -1
- package/src/style.scss +1 -0
- package/src/utils/object.js +1 -1
- package/src/utils/test/object.js +38 -0
- package/build/components/rich-text/use-native-props.js +0 -11
- package/build/components/rich-text/use-native-props.js.map +0 -1
- package/build/components/rich-text/use-native-props.native.js +0 -24
- package/build/components/rich-text/use-native-props.native.js.map +0 -1
- package/build-module/components/rich-text/use-native-props.js +0 -4
- package/build-module/components/rich-text/use-native-props.js.map +0 -1
- package/build-module/components/rich-text/use-native-props.native.js +0 -15
- package/build-module/components/rich-text/use-native-props.native.js.map +0 -1
- package/src/components/rich-text/use-native-props.js +0 -3
- package/src/components/rich-text/use-native-props.native.js +0 -17
|
@@ -158,7 +158,8 @@
|
|
|
158
158
|
.block-editor-block-inspector .components-base-control:last-child {
|
|
159
159
|
margin-bottom: 8px;
|
|
160
160
|
}
|
|
161
|
-
.block-editor-block-inspector .components-focal-point-picker-control .components-base-control
|
|
161
|
+
.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,
|
|
162
|
+
.block-editor-block-inspector .components-query-controls .components-base-control {
|
|
162
163
|
margin-bottom: 0;
|
|
163
164
|
}
|
|
164
165
|
.block-editor-block-inspector .components-panel__body {
|
|
@@ -1435,6 +1436,44 @@
|
|
|
1435
1436
|
text-transform: capitalize;
|
|
1436
1437
|
}
|
|
1437
1438
|
|
|
1439
|
+
.block-editor-global-styles-effects-panel__toggle-icon {
|
|
1440
|
+
fill: currentColor;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
.block-editor-global-styles-effects-panel__shadow-popover-container {
|
|
1444
|
+
width: 230px;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
.block-editor-global-styles-effects-panel__shadow-dropdown {
|
|
1448
|
+
display: block;
|
|
1449
|
+
padding: 0;
|
|
1450
|
+
}
|
|
1451
|
+
.block-editor-global-styles-effects-panel__shadow-dropdown > button {
|
|
1452
|
+
width: 100%;
|
|
1453
|
+
padding: 8px;
|
|
1454
|
+
}
|
|
1455
|
+
.block-editor-global-styles-effects-panel__shadow-dropdown > button.is-open {
|
|
1456
|
+
background-color: #f0f0f0;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
.block-editor-global-styles-effects-panel__shadow-indicator-wrapper {
|
|
1460
|
+
padding: 6px;
|
|
1461
|
+
overflow: hidden;
|
|
1462
|
+
display: flex;
|
|
1463
|
+
align-items: center;
|
|
1464
|
+
justify-content: center;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
.block-editor-global-styles-effects-panel__shadow-indicator {
|
|
1468
|
+
color: #2f2f2f;
|
|
1469
|
+
border: #e0e0e0 1px solid;
|
|
1470
|
+
border-radius: 2px;
|
|
1471
|
+
cursor: pointer;
|
|
1472
|
+
padding: 0;
|
|
1473
|
+
height: 24px;
|
|
1474
|
+
width: 24px;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1438
1477
|
.block-editor-height-control {
|
|
1439
1478
|
border: 0;
|
|
1440
1479
|
margin: 0;
|
|
@@ -2454,7 +2493,9 @@
|
|
|
2454
2493
|
}
|
|
2455
2494
|
.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line {
|
|
2456
2495
|
background: var(--wp-admin-theme-color);
|
|
2457
|
-
height:
|
|
2496
|
+
height: 6px;
|
|
2497
|
+
border: 1px solid #fff;
|
|
2498
|
+
border-radius: 4px;
|
|
2458
2499
|
}
|
|
2459
2500
|
|
|
2460
2501
|
.block-editor-list-view-placeholder {
|
|
@@ -3961,7 +4002,7 @@
|
|
|
3961
4002
|
display: grid;
|
|
3962
4003
|
grid-template-columns: auto 1fr auto;
|
|
3963
4004
|
align-items: center;
|
|
3964
|
-
grid-template-rows:
|
|
4005
|
+
grid-template-rows: 24px auto;
|
|
3965
4006
|
}
|
|
3966
4007
|
|
|
3967
4008
|
.component-spacing-sizes-control {
|
|
@@ -3977,7 +4018,7 @@
|
|
|
3977
4018
|
align-self: center;
|
|
3978
4019
|
}
|
|
3979
4020
|
.component-spacing-sizes-control .components-base-control__label {
|
|
3980
|
-
margin-bottom:
|
|
4021
|
+
margin-bottom: 8px;
|
|
3981
4022
|
height: 16px;
|
|
3982
4023
|
}
|
|
3983
4024
|
.component-spacing-sizes-control .components-spacing-sizes-control__side-labels {
|
|
@@ -4006,6 +4047,7 @@
|
|
|
4006
4047
|
grid-row: 1/1;
|
|
4007
4048
|
align-self: center;
|
|
4008
4049
|
margin-right: 4px;
|
|
4050
|
+
margin-bottom: 8px;
|
|
4009
4051
|
}
|
|
4010
4052
|
.component-spacing-sizes-control .components-spacing-sizes-control__custom-toggle-all {
|
|
4011
4053
|
grid-column: 2/2;
|
|
@@ -4031,26 +4073,25 @@
|
|
|
4031
4073
|
.component-spacing-sizes-control .components-spacing-sizes-control__custom-value-range {
|
|
4032
4074
|
grid-column: span 2;
|
|
4033
4075
|
margin-right: 16px;
|
|
4034
|
-
margin-top: 8px;
|
|
4035
4076
|
}
|
|
4036
|
-
.component-spacing-sizes-control .components-spacing-sizes-control__custom-value-input {
|
|
4077
|
+
.component-spacing-sizes-control .components-base-control.components-spacing-sizes-control__custom-value-input {
|
|
4037
4078
|
width: 124px;
|
|
4038
|
-
margin-top: 8px;
|
|
4039
4079
|
grid-column: 1;
|
|
4080
|
+
margin-bottom: 0;
|
|
4040
4081
|
}
|
|
4041
|
-
.component-spacing-sizes-control .components-range-control {
|
|
4082
|
+
.component-spacing-sizes-control .components-base-control.components-range-control {
|
|
4042
4083
|
height: 40px;
|
|
4043
4084
|
/* Vertically center the RangeControl until it has true 40px height. */
|
|
4044
4085
|
display: flex;
|
|
4045
4086
|
align-items: center;
|
|
4087
|
+
margin-bottom: 0;
|
|
4046
4088
|
}
|
|
4047
|
-
.component-spacing-sizes-control .components-range-control > .components-base-control__field {
|
|
4089
|
+
.component-spacing-sizes-control .components-base-control.components-range-control > .components-base-control__field {
|
|
4048
4090
|
/* Fixes RangeControl contents when the outer wrapper is flex */
|
|
4049
4091
|
flex: 1;
|
|
4050
4092
|
}
|
|
4051
4093
|
.component-spacing-sizes-control .components-spacing-sizes-control__range-control {
|
|
4052
4094
|
grid-column: span 3;
|
|
4053
|
-
margin-top: 8px;
|
|
4054
4095
|
}
|
|
4055
4096
|
.component-spacing-sizes-control .components-range-control__mark {
|
|
4056
4097
|
height: 4px;
|
package/build-style/style.css
CHANGED
|
@@ -158,7 +158,8 @@
|
|
|
158
158
|
.block-editor-block-inspector .components-base-control:last-child {
|
|
159
159
|
margin-bottom: 8px;
|
|
160
160
|
}
|
|
161
|
-
.block-editor-block-inspector .components-focal-point-picker-control .components-base-control
|
|
161
|
+
.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,
|
|
162
|
+
.block-editor-block-inspector .components-query-controls .components-base-control {
|
|
162
163
|
margin-bottom: 0;
|
|
163
164
|
}
|
|
164
165
|
.block-editor-block-inspector .components-panel__body {
|
|
@@ -1435,6 +1436,44 @@
|
|
|
1435
1436
|
text-transform: capitalize;
|
|
1436
1437
|
}
|
|
1437
1438
|
|
|
1439
|
+
.block-editor-global-styles-effects-panel__toggle-icon {
|
|
1440
|
+
fill: currentColor;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
.block-editor-global-styles-effects-panel__shadow-popover-container {
|
|
1444
|
+
width: 230px;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
.block-editor-global-styles-effects-panel__shadow-dropdown {
|
|
1448
|
+
display: block;
|
|
1449
|
+
padding: 0;
|
|
1450
|
+
}
|
|
1451
|
+
.block-editor-global-styles-effects-panel__shadow-dropdown > button {
|
|
1452
|
+
width: 100%;
|
|
1453
|
+
padding: 8px;
|
|
1454
|
+
}
|
|
1455
|
+
.block-editor-global-styles-effects-panel__shadow-dropdown > button.is-open {
|
|
1456
|
+
background-color: #f0f0f0;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
.block-editor-global-styles-effects-panel__shadow-indicator-wrapper {
|
|
1460
|
+
padding: 6px;
|
|
1461
|
+
overflow: hidden;
|
|
1462
|
+
display: flex;
|
|
1463
|
+
align-items: center;
|
|
1464
|
+
justify-content: center;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
.block-editor-global-styles-effects-panel__shadow-indicator {
|
|
1468
|
+
color: #2f2f2f;
|
|
1469
|
+
border: #e0e0e0 1px solid;
|
|
1470
|
+
border-radius: 2px;
|
|
1471
|
+
cursor: pointer;
|
|
1472
|
+
padding: 0;
|
|
1473
|
+
height: 24px;
|
|
1474
|
+
width: 24px;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1438
1477
|
.block-editor-height-control {
|
|
1439
1478
|
border: 0;
|
|
1440
1479
|
margin: 0;
|
|
@@ -2454,7 +2493,9 @@
|
|
|
2454
2493
|
}
|
|
2455
2494
|
.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line {
|
|
2456
2495
|
background: var(--wp-admin-theme-color);
|
|
2457
|
-
height:
|
|
2496
|
+
height: 6px;
|
|
2497
|
+
border: 1px solid #fff;
|
|
2498
|
+
border-radius: 4px;
|
|
2458
2499
|
}
|
|
2459
2500
|
|
|
2460
2501
|
.block-editor-list-view-placeholder {
|
|
@@ -3961,7 +4002,7 @@
|
|
|
3961
4002
|
display: grid;
|
|
3962
4003
|
grid-template-columns: auto 1fr auto;
|
|
3963
4004
|
align-items: center;
|
|
3964
|
-
grid-template-rows:
|
|
4005
|
+
grid-template-rows: 24px auto;
|
|
3965
4006
|
}
|
|
3966
4007
|
|
|
3967
4008
|
.component-spacing-sizes-control {
|
|
@@ -3977,7 +4018,7 @@
|
|
|
3977
4018
|
align-self: center;
|
|
3978
4019
|
}
|
|
3979
4020
|
.component-spacing-sizes-control .components-base-control__label {
|
|
3980
|
-
margin-bottom:
|
|
4021
|
+
margin-bottom: 8px;
|
|
3981
4022
|
height: 16px;
|
|
3982
4023
|
}
|
|
3983
4024
|
.component-spacing-sizes-control .components-spacing-sizes-control__side-labels {
|
|
@@ -4006,6 +4047,7 @@
|
|
|
4006
4047
|
grid-row: 1/1;
|
|
4007
4048
|
align-self: center;
|
|
4008
4049
|
margin-left: 4px;
|
|
4050
|
+
margin-bottom: 8px;
|
|
4009
4051
|
}
|
|
4010
4052
|
.component-spacing-sizes-control .components-spacing-sizes-control__custom-toggle-all {
|
|
4011
4053
|
grid-column: 2/2;
|
|
@@ -4031,26 +4073,25 @@
|
|
|
4031
4073
|
.component-spacing-sizes-control .components-spacing-sizes-control__custom-value-range {
|
|
4032
4074
|
grid-column: span 2;
|
|
4033
4075
|
margin-left: 16px;
|
|
4034
|
-
margin-top: 8px;
|
|
4035
4076
|
}
|
|
4036
|
-
.component-spacing-sizes-control .components-spacing-sizes-control__custom-value-input {
|
|
4077
|
+
.component-spacing-sizes-control .components-base-control.components-spacing-sizes-control__custom-value-input {
|
|
4037
4078
|
width: 124px;
|
|
4038
|
-
margin-top: 8px;
|
|
4039
4079
|
grid-column: 1;
|
|
4080
|
+
margin-bottom: 0;
|
|
4040
4081
|
}
|
|
4041
|
-
.component-spacing-sizes-control .components-range-control {
|
|
4082
|
+
.component-spacing-sizes-control .components-base-control.components-range-control {
|
|
4042
4083
|
height: 40px;
|
|
4043
4084
|
/* Vertically center the RangeControl until it has true 40px height. */
|
|
4044
4085
|
display: flex;
|
|
4045
4086
|
align-items: center;
|
|
4087
|
+
margin-bottom: 0;
|
|
4046
4088
|
}
|
|
4047
|
-
.component-spacing-sizes-control .components-range-control > .components-base-control__field {
|
|
4089
|
+
.component-spacing-sizes-control .components-base-control.components-range-control > .components-base-control__field {
|
|
4048
4090
|
/* Fixes RangeControl contents when the outer wrapper is flex */
|
|
4049
4091
|
flex: 1;
|
|
4050
4092
|
}
|
|
4051
4093
|
.component-spacing-sizes-control .components-spacing-sizes-control__range-control {
|
|
4052
4094
|
grid-column: span 3;
|
|
4053
|
-
margin-top: 8px;
|
|
4054
4095
|
}
|
|
4055
4096
|
.component-spacing-sizes-control .components-range-control__mark {
|
|
4056
4097
|
height: 4px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.8.0",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -33,35 +33,35 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.16.0",
|
|
35
35
|
"@react-spring/web": "^9.4.5",
|
|
36
|
-
"@wordpress/a11y": "^3.
|
|
37
|
-
"@wordpress/api-fetch": "^6.
|
|
38
|
-
"@wordpress/blob": "^3.
|
|
39
|
-
"@wordpress/blocks": "^12.
|
|
40
|
-
"@wordpress/components": "^23.
|
|
41
|
-
"@wordpress/compose": "^6.
|
|
42
|
-
"@wordpress/data": "^9.
|
|
43
|
-
"@wordpress/date": "^4.
|
|
44
|
-
"@wordpress/deprecated": "^3.
|
|
45
|
-
"@wordpress/dom": "^3.
|
|
46
|
-
"@wordpress/element": "^5.
|
|
47
|
-
"@wordpress/escape-html": "^2.
|
|
48
|
-
"@wordpress/hooks": "^3.
|
|
49
|
-
"@wordpress/html-entities": "^3.
|
|
50
|
-
"@wordpress/i18n": "^4.
|
|
51
|
-
"@wordpress/icons": "^9.
|
|
52
|
-
"@wordpress/is-shallow-equal": "^4.
|
|
53
|
-
"@wordpress/keyboard-shortcuts": "^4.
|
|
54
|
-
"@wordpress/keycodes": "^3.
|
|
55
|
-
"@wordpress/notices": "^3.
|
|
56
|
-
"@wordpress/preferences": "^3.
|
|
57
|
-
"@wordpress/private-apis": "^0.
|
|
58
|
-
"@wordpress/rich-text": "^6.
|
|
59
|
-
"@wordpress/shortcode": "^3.
|
|
60
|
-
"@wordpress/style-engine": "^1.
|
|
61
|
-
"@wordpress/token-list": "^2.
|
|
62
|
-
"@wordpress/url": "^3.
|
|
63
|
-
"@wordpress/warning": "^2.
|
|
64
|
-
"@wordpress/wordcount": "^3.
|
|
36
|
+
"@wordpress/a11y": "^3.31.0",
|
|
37
|
+
"@wordpress/api-fetch": "^6.28.0",
|
|
38
|
+
"@wordpress/blob": "^3.31.0",
|
|
39
|
+
"@wordpress/blocks": "^12.8.0",
|
|
40
|
+
"@wordpress/components": "^23.8.0",
|
|
41
|
+
"@wordpress/compose": "^6.8.0",
|
|
42
|
+
"@wordpress/data": "^9.1.0",
|
|
43
|
+
"@wordpress/date": "^4.31.0",
|
|
44
|
+
"@wordpress/deprecated": "^3.31.0",
|
|
45
|
+
"@wordpress/dom": "^3.31.0",
|
|
46
|
+
"@wordpress/element": "^5.8.0",
|
|
47
|
+
"@wordpress/escape-html": "^2.31.0",
|
|
48
|
+
"@wordpress/hooks": "^3.31.0",
|
|
49
|
+
"@wordpress/html-entities": "^3.31.0",
|
|
50
|
+
"@wordpress/i18n": "^4.31.0",
|
|
51
|
+
"@wordpress/icons": "^9.22.0",
|
|
52
|
+
"@wordpress/is-shallow-equal": "^4.31.0",
|
|
53
|
+
"@wordpress/keyboard-shortcuts": "^4.8.0",
|
|
54
|
+
"@wordpress/keycodes": "^3.31.0",
|
|
55
|
+
"@wordpress/notices": "^3.31.0",
|
|
56
|
+
"@wordpress/preferences": "^3.8.0",
|
|
57
|
+
"@wordpress/private-apis": "^0.13.0",
|
|
58
|
+
"@wordpress/rich-text": "^6.8.0",
|
|
59
|
+
"@wordpress/shortcode": "^3.31.0",
|
|
60
|
+
"@wordpress/style-engine": "^1.14.0",
|
|
61
|
+
"@wordpress/token-list": "^2.31.0",
|
|
62
|
+
"@wordpress/url": "^3.32.0",
|
|
63
|
+
"@wordpress/warning": "^2.31.0",
|
|
64
|
+
"@wordpress/wordcount": "^3.31.0",
|
|
65
65
|
"change-case": "^4.1.2",
|
|
66
66
|
"classnames": "^2.3.1",
|
|
67
67
|
"colord": "^2.7.0",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "d61700b9f1c72ba0b030fc815ef1685b4f4031ec"
|
|
87
87
|
}
|
|
@@ -18,10 +18,12 @@
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
// Reset
|
|
22
|
-
|
|
23
|
-
.components-
|
|
24
|
-
|
|
21
|
+
// Reset unwanted margin-bottom from being applied to BaseControls within certain components.
|
|
22
|
+
.components-focal-point-picker-control,
|
|
23
|
+
.components-query-controls {
|
|
24
|
+
.components-base-control {
|
|
25
|
+
margin-bottom: 0;
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
.components-panel__body {
|
|
@@ -215,7 +215,7 @@ class BlockListBlock extends Component {
|
|
|
215
215
|
order + 1
|
|
216
216
|
);
|
|
217
217
|
const { isFullWidth, isContainerRelated } = alignmentHelpers;
|
|
218
|
-
const
|
|
218
|
+
const isFocused = isSelected || isInnerBlockSelected;
|
|
219
219
|
const screenWidth = Math.floor( Dimensions.get( 'window' ).width );
|
|
220
220
|
const isScreenWidthEqual = blockWidth === screenWidth;
|
|
221
221
|
const isScreenWidthWider = blockWidth < screenWidth;
|
|
@@ -224,8 +224,9 @@ class BlockListBlock extends Component {
|
|
|
224
224
|
return (
|
|
225
225
|
<TouchableWithoutFeedback
|
|
226
226
|
onPress={ this.onFocus }
|
|
227
|
-
accessible={
|
|
227
|
+
accessible={ ! isFocused }
|
|
228
228
|
accessibilityRole={ 'button' }
|
|
229
|
+
disabled={ isFocused }
|
|
229
230
|
>
|
|
230
231
|
<View
|
|
231
232
|
style={ { flex: 1 } }
|
|
@@ -6,7 +6,7 @@ import { View, Platform, TouchableWithoutFeedback } from 'react-native';
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
|
-
import { Component
|
|
9
|
+
import { Component } from '@wordpress/element';
|
|
10
10
|
import { withDispatch, withSelect } from '@wordpress/data';
|
|
11
11
|
import { compose, withPreferredColorScheme } from '@wordpress/compose';
|
|
12
12
|
import { createBlock } from '@wordpress/blocks';
|
|
@@ -33,7 +33,6 @@ import {
|
|
|
33
33
|
import { BlockDraggableWrapper } from '../block-draggable';
|
|
34
34
|
import { store as blockEditorStore } from '../../store';
|
|
35
35
|
|
|
36
|
-
export const OnCaretVerticalPositionChange = createContext();
|
|
37
36
|
const identity = ( x ) => x;
|
|
38
37
|
|
|
39
38
|
const stylesMemo = {};
|
|
@@ -70,8 +69,6 @@ export class BlockList extends Component {
|
|
|
70
69
|
};
|
|
71
70
|
this.renderItem = this.renderItem.bind( this );
|
|
72
71
|
this.renderBlockListFooter = this.renderBlockListFooter.bind( this );
|
|
73
|
-
this.onCaretVerticalPositionChange =
|
|
74
|
-
this.onCaretVerticalPositionChange.bind( this );
|
|
75
72
|
this.scrollViewInnerRef = this.scrollViewInnerRef.bind( this );
|
|
76
73
|
this.addBlockToEndOfPost = this.addBlockToEndOfPost.bind( this );
|
|
77
74
|
this.shouldFlatListPreventAutomaticScroll =
|
|
@@ -94,15 +91,6 @@ export class BlockList extends Component {
|
|
|
94
91
|
this.props.insertBlock( newBlock, this.props.blockCount );
|
|
95
92
|
}
|
|
96
93
|
|
|
97
|
-
onCaretVerticalPositionChange( targetId, caretY, previousCaretY ) {
|
|
98
|
-
KeyboardAwareFlatList.handleCaretVerticalPositionChange(
|
|
99
|
-
this.scrollViewRef,
|
|
100
|
-
targetId,
|
|
101
|
-
caretY,
|
|
102
|
-
previousCaretY
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
94
|
scrollViewInnerRef( ref ) {
|
|
107
95
|
this.scrollViewRef = ref;
|
|
108
96
|
}
|
|
@@ -209,13 +197,7 @@ export class BlockList extends Component {
|
|
|
209
197
|
</BlockListConsumer>
|
|
210
198
|
);
|
|
211
199
|
|
|
212
|
-
return
|
|
213
|
-
<OnCaretVerticalPositionChange.Provider
|
|
214
|
-
value={ this.onCaretVerticalPositionChange }
|
|
215
|
-
>
|
|
216
|
-
{ blockList }
|
|
217
|
-
</OnCaretVerticalPositionChange.Provider>
|
|
218
|
-
);
|
|
200
|
+
return blockList;
|
|
219
201
|
}
|
|
220
202
|
|
|
221
203
|
renderList( extraProps = {} ) {
|
|
@@ -237,8 +219,7 @@ export class BlockList extends Component {
|
|
|
237
219
|
} = this.props;
|
|
238
220
|
const { parentScrollRef, onScroll } = extraProps;
|
|
239
221
|
|
|
240
|
-
const { blockToolbar,
|
|
241
|
-
styles;
|
|
222
|
+
const { blockToolbar, headerToolbar, floatingToolbar } = styles;
|
|
242
223
|
|
|
243
224
|
const containerStyle = {
|
|
244
225
|
flex: isRootList ? 1 : 0,
|
|
@@ -250,6 +231,15 @@ export class BlockList extends Component {
|
|
|
250
231
|
const isContentStretch = contentResizeMode === 'stretch';
|
|
251
232
|
const isMultiBlocks = blockClientIds.length > 1;
|
|
252
233
|
const { isWider } = alignmentHelpers;
|
|
234
|
+
const extraScrollHeight =
|
|
235
|
+
headerToolbar.height +
|
|
236
|
+
blockToolbar.height +
|
|
237
|
+
( isFloatingToolbarVisible ? floatingToolbar.height : 0 );
|
|
238
|
+
|
|
239
|
+
const scrollViewStyle = [
|
|
240
|
+
{ flex: isRootList ? 1 : 0 },
|
|
241
|
+
! isRootList && styles.overflowVisible,
|
|
242
|
+
];
|
|
253
243
|
|
|
254
244
|
return (
|
|
255
245
|
<View
|
|
@@ -263,24 +253,12 @@ export class BlockList extends Component {
|
|
|
263
253
|
? { removeClippedSubviews: false }
|
|
264
254
|
: {} ) } // Disable clipping on Android to fix focus losing. See https://github.com/wordpress-mobile/gutenberg-mobile/pull/741#issuecomment-472746541
|
|
265
255
|
accessibilityLabel="block-list"
|
|
266
|
-
autoScroll={ this.props.autoScroll }
|
|
267
256
|
innerRef={ ( ref ) => {
|
|
268
257
|
this.scrollViewInnerRef( parentScrollRef || ref );
|
|
269
258
|
} }
|
|
270
|
-
extraScrollHeight={
|
|
271
|
-
blockToolbar.height + blockBorder.width
|
|
272
|
-
}
|
|
273
|
-
inputAccessoryViewHeight={
|
|
274
|
-
headerToolbar.height +
|
|
275
|
-
( isFloatingToolbarVisible
|
|
276
|
-
? floatingToolbar.height
|
|
277
|
-
: 0 )
|
|
278
|
-
}
|
|
259
|
+
extraScrollHeight={ extraScrollHeight }
|
|
279
260
|
keyboardShouldPersistTaps="always"
|
|
280
|
-
scrollViewStyle={
|
|
281
|
-
{ flex: isRootList ? 1 : 0 },
|
|
282
|
-
! isRootList && styles.overflowVisible,
|
|
283
|
-
] }
|
|
261
|
+
scrollViewStyle={ scrollViewStyle }
|
|
284
262
|
extraData={ this.getExtraData() }
|
|
285
263
|
scrollEnabled={ isRootList }
|
|
286
264
|
contentContainerStyle={ [
|
|
@@ -407,6 +385,7 @@ export default compose( [
|
|
|
407
385
|
( select, { rootClientId, orientation, filterInnerBlocks } ) => {
|
|
408
386
|
const {
|
|
409
387
|
getBlockCount,
|
|
388
|
+
getBlockHierarchyRootClientId,
|
|
410
389
|
getBlockOrder,
|
|
411
390
|
getSelectedBlockClientId,
|
|
412
391
|
isBlockInsertionPointVisible,
|
|
@@ -427,10 +406,12 @@ export default compose( [
|
|
|
427
406
|
const isReadOnly = getSettings().readOnly;
|
|
428
407
|
|
|
429
408
|
const blockCount = getBlockCount();
|
|
430
|
-
const
|
|
409
|
+
const rootBlockId = getBlockHierarchyRootClientId(
|
|
410
|
+
selectedBlockClientId
|
|
411
|
+
);
|
|
431
412
|
|
|
432
413
|
const isFloatingToolbarVisible =
|
|
433
|
-
!! selectedBlockClientId &&
|
|
414
|
+
!! selectedBlockClientId && !! getBlockCount( rootBlockId );
|
|
434
415
|
const isRTL = getSettings().isRTL;
|
|
435
416
|
|
|
436
417
|
return {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { useRefEffect } from '@wordpress/compose';
|
|
5
5
|
import { useSelect, useDispatch } from '@wordpress/data';
|
|
6
6
|
import { useContext } from '@wordpress/element';
|
|
7
|
+
import { isRTL } from '@wordpress/i18n';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Internal dependencies
|
|
@@ -93,7 +94,9 @@ export function useInBetweenInserter() {
|
|
|
93
94
|
blockElRect.top > offsetTop ) ||
|
|
94
95
|
( blockEl.classList.contains( 'wp-block' ) &&
|
|
95
96
|
orientation === 'horizontal' &&
|
|
96
|
-
|
|
97
|
+
( isRTL()
|
|
98
|
+
? blockElRect.right < offsetLeft
|
|
99
|
+
: blockElRect.left > offsetLeft ) )
|
|
97
100
|
);
|
|
98
101
|
} );
|
|
99
102
|
|
|
@@ -106,16 +106,7 @@ function BlockPopoverInbetween( {
|
|
|
106
106
|
nextRect && previousRect
|
|
107
107
|
? nextRect.top - previousRect.bottom
|
|
108
108
|
: 0;
|
|
109
|
-
|
|
110
|
-
if ( isRTL() ) {
|
|
111
|
-
// vertical, rtl
|
|
112
|
-
left = previousRect
|
|
113
|
-
? previousRect.right
|
|
114
|
-
: nextRect.right;
|
|
115
|
-
} else {
|
|
116
|
-
// vertical, ltr
|
|
117
|
-
left = previousRect ? previousRect.left : nextRect.left;
|
|
118
|
-
}
|
|
109
|
+
left = previousRect ? previousRect.left : nextRect.left;
|
|
119
110
|
} else {
|
|
120
111
|
top = previousRect ? previousRect.top : nextRect.top;
|
|
121
112
|
height = previousRect
|
|
@@ -124,9 +115,7 @@ function BlockPopoverInbetween( {
|
|
|
124
115
|
|
|
125
116
|
if ( isRTL() ) {
|
|
126
117
|
// non vertical, rtl
|
|
127
|
-
left = previousRect
|
|
128
|
-
? previousRect.left
|
|
129
|
-
: nextRect.right;
|
|
118
|
+
left = nextRect ? nextRect.right : previousRect.left;
|
|
130
119
|
width =
|
|
131
120
|
previousRect && nextRect
|
|
132
121
|
? previousRect.left - nextRect.right
|
|
@@ -29,7 +29,6 @@ import BlockHTMLConvertButton from './block-html-convert-button';
|
|
|
29
29
|
import __unstableBlockSettingsMenuFirstItem from './block-settings-menu-first-item';
|
|
30
30
|
import BlockSettingsMenuControls from '../block-settings-menu-controls';
|
|
31
31
|
import { store as blockEditorStore } from '../../store';
|
|
32
|
-
import useBlockDisplayTitle from '../block-title/use-block-display-title';
|
|
33
32
|
import { useShowMoversGestures } from '../block-toolbar/utils';
|
|
34
33
|
|
|
35
34
|
const noop = () => {};
|
|
@@ -138,11 +137,6 @@ export function BlockSettingsDropdown( {
|
|
|
138
137
|
[ __experimentalSelectBlock ]
|
|
139
138
|
);
|
|
140
139
|
|
|
141
|
-
const blockTitle = useBlockDisplayTitle( {
|
|
142
|
-
clientId: firstBlockClientId,
|
|
143
|
-
maximumLength: 25,
|
|
144
|
-
} );
|
|
145
|
-
|
|
146
140
|
const updateSelectionAfterRemove = useCallback(
|
|
147
141
|
__experimentalSelectBlock
|
|
148
142
|
? () => {
|
|
@@ -173,12 +167,8 @@ export function BlockSettingsDropdown( {
|
|
|
173
167
|
]
|
|
174
168
|
);
|
|
175
169
|
|
|
176
|
-
const
|
|
177
|
-
|
|
178
|
-
__( 'Remove %s' ),
|
|
179
|
-
blockTitle
|
|
180
|
-
);
|
|
181
|
-
const removeBlockLabel = count === 1 ? label : __( 'Remove blocks' );
|
|
170
|
+
const removeBlockLabel =
|
|
171
|
+
count === 1 ? __( 'Delete' ) : __( 'Delete blocks' );
|
|
182
172
|
|
|
183
173
|
// Allows highlighting the parent block outline when focusing or hovering
|
|
184
174
|
// the parent block selector within the child.
|
|
@@ -142,7 +142,7 @@ function NonDefaultControls( { format, onChange } ) {
|
|
|
142
142
|
Link: (
|
|
143
143
|
<ExternalLink
|
|
144
144
|
href={ __(
|
|
145
|
-
'https://wordpress.org/
|
|
145
|
+
'https://wordpress.org/documentation/article/customize-date-and-time-format/'
|
|
146
146
|
) }
|
|
147
147
|
/>
|
|
148
148
|
),
|