@wordpress/block-editor 14.19.0 → 14.21.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 +4 -0
- package/build/components/html-element-control/index.js +1 -1
- package/build/components/html-element-control/index.js.map +1 -1
- package/build/components/html-element-control/messages.js +2 -0
- package/build/components/html-element-control/messages.js.map +1 -1
- package/build/components/image-size-control/index.js +5 -6
- package/build/components/image-size-control/index.js.map +1 -1
- package/build/components/inserter/media-tab/media-preview.js +1 -1
- package/build/components/inserter/media-tab/media-preview.js.map +1 -1
- package/build/components/url-input/button.js +50 -62
- package/build/components/url-input/button.js.map +1 -1
- package/build/components/warning/index.js +1 -1
- package/build/components/warning/index.js.map +1 -1
- package/build/layouts/flex.js +5 -1
- package/build/layouts/flex.js.map +1 -1
- package/build/store/selectors.js +3 -3
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/html-element-control/index.js +1 -1
- package/build-module/components/html-element-control/index.js.map +1 -1
- package/build-module/components/html-element-control/messages.js +2 -0
- package/build-module/components/html-element-control/messages.js.map +1 -1
- package/build-module/components/image-size-control/index.js +6 -7
- package/build-module/components/image-size-control/index.js.map +1 -1
- package/build-module/components/inserter/media-tab/media-preview.js +1 -1
- package/build-module/components/inserter/media-tab/media-preview.js.map +1 -1
- package/build-module/components/url-input/button.js +53 -63
- package/build-module/components/url-input/button.js.map +1 -1
- package/build-module/components/warning/index.js +1 -1
- package/build-module/components/warning/index.js.map +1 -1
- package/build-module/layouts/flex.js +5 -1
- package/build-module/layouts/flex.js.map +1 -1
- package/build-module/store/selectors.js +3 -3
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/style-rtl.css +4 -10
- package/build-style/style.css +4 -10
- package/package.json +34 -34
- package/src/components/block-inspector/style.scss +4 -2
- package/src/components/html-element-control/index.js +1 -1
- package/src/components/html-element-control/messages.js +6 -0
- package/src/components/image-size-control/index.js +6 -7
- package/src/components/inserter/media-tab/media-preview.js +1 -1
- package/src/components/url-input/button.js +59 -65
- package/src/components/warning/index.js +1 -1
- package/src/layouts/flex.js +7 -2
- package/src/store/selectors.js +3 -3
- package/src/style.scss +0 -1
- package/src/components/image-size-control/style.scss +0 -8
|
@@ -441,13 +441,15 @@ iframe[name=editor-canvas] {
|
|
|
441
441
|
}
|
|
442
442
|
.block-editor-block-inspector .components-base-control:where(:not(:last-child)),
|
|
443
443
|
.block-editor-block-inspector .components-radio-control:where(:not(:last-child)),
|
|
444
|
-
.block-editor-block-inspector .block-editor-html-element-control:where(:not(:last-child))
|
|
444
|
+
.block-editor-block-inspector .block-editor-html-element-control:where(:not(:last-child)),
|
|
445
|
+
.block-editor-block-inspector .block-editor-image-size-control:where(:not(:last-child)) {
|
|
445
446
|
margin-bottom: 16px;
|
|
446
447
|
}
|
|
447
448
|
.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,
|
|
448
449
|
.block-editor-block-inspector .components-query-controls .components-base-control,
|
|
449
450
|
.block-editor-block-inspector .components-range-control .components-base-control,
|
|
450
|
-
.block-editor-block-inspector .block-editor-html-element-control .components-base-control
|
|
451
|
+
.block-editor-block-inspector .block-editor-html-element-control .components-base-control,
|
|
452
|
+
.block-editor-block-inspector .block-editor-image-size-control .components-base-control {
|
|
451
453
|
margin-bottom: 0;
|
|
452
454
|
}
|
|
453
455
|
.block-editor-block-inspector .components-panel__body {
|
|
@@ -2183,14 +2185,6 @@ iframe[name=editor-canvas] {
|
|
|
2183
2185
|
left: 0;
|
|
2184
2186
|
}
|
|
2185
2187
|
|
|
2186
|
-
.block-editor-image-size-control {
|
|
2187
|
-
margin-bottom: 1em;
|
|
2188
|
-
}
|
|
2189
|
-
.block-editor-image-size-control .block-editor-image-size-control__width,
|
|
2190
|
-
.block-editor-image-size-control .block-editor-image-size-control__height {
|
|
2191
|
-
margin-bottom: 1.115em;
|
|
2192
|
-
}
|
|
2193
|
-
|
|
2194
2188
|
.block-editor-block-types-list__list-item {
|
|
2195
2189
|
display: block;
|
|
2196
2190
|
width: 33.33%;
|
package/build-style/style.css
CHANGED
|
@@ -441,13 +441,15 @@ iframe[name=editor-canvas] {
|
|
|
441
441
|
}
|
|
442
442
|
.block-editor-block-inspector .components-base-control:where(:not(:last-child)),
|
|
443
443
|
.block-editor-block-inspector .components-radio-control:where(:not(:last-child)),
|
|
444
|
-
.block-editor-block-inspector .block-editor-html-element-control:where(:not(:last-child))
|
|
444
|
+
.block-editor-block-inspector .block-editor-html-element-control:where(:not(:last-child)),
|
|
445
|
+
.block-editor-block-inspector .block-editor-image-size-control:where(:not(:last-child)) {
|
|
445
446
|
margin-bottom: 16px;
|
|
446
447
|
}
|
|
447
448
|
.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,
|
|
448
449
|
.block-editor-block-inspector .components-query-controls .components-base-control,
|
|
449
450
|
.block-editor-block-inspector .components-range-control .components-base-control,
|
|
450
|
-
.block-editor-block-inspector .block-editor-html-element-control .components-base-control
|
|
451
|
+
.block-editor-block-inspector .block-editor-html-element-control .components-base-control,
|
|
452
|
+
.block-editor-block-inspector .block-editor-image-size-control .components-base-control {
|
|
451
453
|
margin-bottom: 0;
|
|
452
454
|
}
|
|
453
455
|
.block-editor-block-inspector .components-panel__body {
|
|
@@ -2184,14 +2186,6 @@ iframe[name=editor-canvas] {
|
|
|
2184
2186
|
right: 0;
|
|
2185
2187
|
}
|
|
2186
2188
|
|
|
2187
|
-
.block-editor-image-size-control {
|
|
2188
|
-
margin-bottom: 1em;
|
|
2189
|
-
}
|
|
2190
|
-
.block-editor-image-size-control .block-editor-image-size-control__width,
|
|
2191
|
-
.block-editor-image-size-control .block-editor-image-size-control__height {
|
|
2192
|
-
margin-bottom: 1.115em;
|
|
2193
|
-
}
|
|
2194
|
-
|
|
2195
2189
|
.block-editor-block-types-list__list-item {
|
|
2196
2190
|
display: block;
|
|
2197
2191
|
width: 33.33%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.21.0",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -37,38 +37,38 @@
|
|
|
37
37
|
"@emotion/react": "^11.7.1",
|
|
38
38
|
"@emotion/styled": "^11.6.0",
|
|
39
39
|
"@react-spring/web": "^9.4.5",
|
|
40
|
-
"@wordpress/a11y": "^4.
|
|
41
|
-
"@wordpress/api-fetch": "^7.
|
|
42
|
-
"@wordpress/blob": "^4.
|
|
43
|
-
"@wordpress/block-serialization-default-parser": "^5.
|
|
44
|
-
"@wordpress/blocks": "^14.
|
|
45
|
-
"@wordpress/commands": "^1.
|
|
46
|
-
"@wordpress/components": "^29.
|
|
47
|
-
"@wordpress/compose": "^7.
|
|
48
|
-
"@wordpress/data": "^10.
|
|
49
|
-
"@wordpress/date": "^5.
|
|
50
|
-
"@wordpress/deprecated": "^4.
|
|
51
|
-
"@wordpress/dom": "^4.
|
|
52
|
-
"@wordpress/element": "^6.
|
|
53
|
-
"@wordpress/escape-html": "^3.
|
|
54
|
-
"@wordpress/hooks": "^4.
|
|
55
|
-
"@wordpress/html-entities": "^4.
|
|
56
|
-
"@wordpress/i18n": "^5.
|
|
57
|
-
"@wordpress/icons": "^10.
|
|
58
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
59
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
60
|
-
"@wordpress/keycodes": "^4.
|
|
61
|
-
"@wordpress/notices": "^5.
|
|
62
|
-
"@wordpress/preferences": "^4.
|
|
63
|
-
"@wordpress/priority-queue": "^3.
|
|
64
|
-
"@wordpress/private-apis": "^1.
|
|
65
|
-
"@wordpress/rich-text": "^7.
|
|
66
|
-
"@wordpress/style-engine": "^2.
|
|
67
|
-
"@wordpress/token-list": "^3.
|
|
68
|
-
"@wordpress/upload-media": "^0.
|
|
69
|
-
"@wordpress/url": "^4.
|
|
70
|
-
"@wordpress/warning": "^3.
|
|
71
|
-
"@wordpress/wordcount": "^4.
|
|
40
|
+
"@wordpress/a11y": "^4.26.0",
|
|
41
|
+
"@wordpress/api-fetch": "^7.26.0",
|
|
42
|
+
"@wordpress/blob": "^4.26.0",
|
|
43
|
+
"@wordpress/block-serialization-default-parser": "^5.26.0",
|
|
44
|
+
"@wordpress/blocks": "^14.15.0",
|
|
45
|
+
"@wordpress/commands": "^1.26.0",
|
|
46
|
+
"@wordpress/components": "^29.12.0",
|
|
47
|
+
"@wordpress/compose": "^7.26.0",
|
|
48
|
+
"@wordpress/data": "^10.26.0",
|
|
49
|
+
"@wordpress/date": "^5.26.0",
|
|
50
|
+
"@wordpress/deprecated": "^4.26.0",
|
|
51
|
+
"@wordpress/dom": "^4.26.0",
|
|
52
|
+
"@wordpress/element": "^6.26.0",
|
|
53
|
+
"@wordpress/escape-html": "^3.26.0",
|
|
54
|
+
"@wordpress/hooks": "^4.26.0",
|
|
55
|
+
"@wordpress/html-entities": "^4.26.0",
|
|
56
|
+
"@wordpress/i18n": "^5.26.0",
|
|
57
|
+
"@wordpress/icons": "^10.26.0",
|
|
58
|
+
"@wordpress/is-shallow-equal": "^5.26.0",
|
|
59
|
+
"@wordpress/keyboard-shortcuts": "^5.26.0",
|
|
60
|
+
"@wordpress/keycodes": "^4.26.0",
|
|
61
|
+
"@wordpress/notices": "^5.26.0",
|
|
62
|
+
"@wordpress/preferences": "^4.26.0",
|
|
63
|
+
"@wordpress/priority-queue": "^3.26.0",
|
|
64
|
+
"@wordpress/private-apis": "^1.26.0",
|
|
65
|
+
"@wordpress/rich-text": "^7.26.0",
|
|
66
|
+
"@wordpress/style-engine": "^2.26.0",
|
|
67
|
+
"@wordpress/token-list": "^3.26.0",
|
|
68
|
+
"@wordpress/upload-media": "^0.11.0",
|
|
69
|
+
"@wordpress/url": "^4.26.0",
|
|
70
|
+
"@wordpress/warning": "^3.26.0",
|
|
71
|
+
"@wordpress/wordcount": "^4.26.0",
|
|
72
72
|
"change-case": "^4.1.2",
|
|
73
73
|
"clsx": "^2.1.1",
|
|
74
74
|
"colord": "^2.7.0",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"access": "public"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "35e26942820d8237771af0c58e45b4303f0497f1"
|
|
95
95
|
}
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
.components-base-control,
|
|
14
14
|
.components-radio-control,
|
|
15
|
-
.block-editor-html-element-control
|
|
15
|
+
.block-editor-html-element-control,
|
|
16
|
+
.block-editor-image-size-control {
|
|
16
17
|
&:where(:not(:last-child)) {
|
|
17
18
|
margin-bottom: $grid-unit-20;
|
|
18
19
|
}
|
|
@@ -22,7 +23,8 @@
|
|
|
22
23
|
.components-focal-point-picker-control,
|
|
23
24
|
.components-query-controls,
|
|
24
25
|
.components-range-control,
|
|
25
|
-
.block-editor-html-element-control
|
|
26
|
+
.block-editor-html-element-control,
|
|
27
|
+
.block-editor-image-size-control {
|
|
26
28
|
.components-base-control {
|
|
27
29
|
margin-bottom: 0;
|
|
28
30
|
}
|
|
@@ -22,7 +22,7 @@ import { htmlElementMessages } from './messages';
|
|
|
22
22
|
* @param {Object} props Component props.
|
|
23
23
|
* @param {string} props.tagName The current HTML tag name.
|
|
24
24
|
* @param {Function} props.onChange Function to call when the tag is changed.
|
|
25
|
-
* @param {string} props.clientId The client ID of the
|
|
25
|
+
* @param {string} props.clientId Optional. The client ID of the block. Used to check for existing <main> elements.
|
|
26
26
|
* @param {Array} props.options SelectControl options (optional).
|
|
27
27
|
*
|
|
28
28
|
* @return {Component} The HTML element select control with validation.
|
|
@@ -7,12 +7,18 @@ import { __ } from '@wordpress/i18n';
|
|
|
7
7
|
* Messages providing helpful descriptions for HTML elements.
|
|
8
8
|
*/
|
|
9
9
|
export const htmlElementMessages = {
|
|
10
|
+
a: __(
|
|
11
|
+
'The <a> element should be used for links that navigate to a different page or to a different section within the same page.'
|
|
12
|
+
),
|
|
10
13
|
article: __(
|
|
11
14
|
'The <article> element should represent a self-contained, syndicatable portion of the document.'
|
|
12
15
|
),
|
|
13
16
|
aside: __(
|
|
14
17
|
"The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."
|
|
15
18
|
),
|
|
19
|
+
button: __(
|
|
20
|
+
'The <button> element should be used for interactive controls that perform an action on the current page, such as opening a modal or toggling content visibility.'
|
|
21
|
+
),
|
|
16
22
|
div: __(
|
|
17
23
|
'The <div> element should only be used if the block is a design element with no semantic meaning.'
|
|
18
24
|
),
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
SelectControl,
|
|
6
6
|
__experimentalNumberControl as NumberControl,
|
|
7
7
|
__experimentalHStack as HStack,
|
|
8
|
+
__experimentalVStack as VStack,
|
|
8
9
|
__experimentalToggleGroupControl as ToggleGroupControl,
|
|
9
10
|
__experimentalToggleGroupControlOption as ToggleGroupControlOption,
|
|
10
11
|
} from '@wordpress/components';
|
|
@@ -87,7 +88,7 @@ export default function ImageSizeControl( {
|
|
|
87
88
|
} );
|
|
88
89
|
|
|
89
90
|
return (
|
|
90
|
-
|
|
91
|
+
<VStack className="block-editor-image-size-control" spacing="4">
|
|
91
92
|
{ imageSizeOptions && imageSizeOptions.length > 0 && (
|
|
92
93
|
<SelectControl
|
|
93
94
|
__nextHasNoMarginBottom
|
|
@@ -100,10 +101,9 @@ export default function ImageSizeControl( {
|
|
|
100
101
|
/>
|
|
101
102
|
) }
|
|
102
103
|
{ isResizable && (
|
|
103
|
-
|
|
104
|
-
<HStack align="baseline" spacing="
|
|
104
|
+
<>
|
|
105
|
+
<HStack align="baseline" spacing="4">
|
|
105
106
|
<NumberControl
|
|
106
|
-
className="block-editor-image-size-control__width"
|
|
107
107
|
label={ __( 'Width' ) }
|
|
108
108
|
value={ currentWidth }
|
|
109
109
|
min={ 1 }
|
|
@@ -113,7 +113,6 @@ export default function ImageSizeControl( {
|
|
|
113
113
|
size="__unstable-large"
|
|
114
114
|
/>
|
|
115
115
|
<NumberControl
|
|
116
|
-
className="block-editor-image-size-control__height"
|
|
117
116
|
label={ __( 'Height' ) }
|
|
118
117
|
value={ currentHeight }
|
|
119
118
|
min={ 1 }
|
|
@@ -146,8 +145,8 @@ export default function ImageSizeControl( {
|
|
|
146
145
|
);
|
|
147
146
|
} ) }
|
|
148
147
|
</ToggleGroupControl>
|
|
149
|
-
|
|
148
|
+
</>
|
|
150
149
|
) }
|
|
151
|
-
|
|
150
|
+
</VStack>
|
|
152
151
|
);
|
|
153
152
|
}
|
|
@@ -37,7 +37,7 @@ import { store as blockEditorStore } from '../../../store';
|
|
|
37
37
|
|
|
38
38
|
const ALLOWED_MEDIA_TYPES = [ 'image' ];
|
|
39
39
|
const MEDIA_OPTIONS_POPOVER_PROPS = {
|
|
40
|
-
|
|
40
|
+
placement: 'bottom-end',
|
|
41
41
|
className:
|
|
42
42
|
'block-editor-inserter__media-list__item-preview-options__popover',
|
|
43
43
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
4
|
import { __ } from '@wordpress/i18n';
|
|
5
|
-
import {
|
|
5
|
+
import { useReducer } from '@wordpress/element';
|
|
6
6
|
import {
|
|
7
7
|
Button,
|
|
8
8
|
__experimentalInputControlSuffixWrapper as InputControlSuffixWrapper,
|
|
@@ -14,73 +14,67 @@ import { link, keyboardReturn, arrowLeft } from '@wordpress/icons';
|
|
|
14
14
|
*/
|
|
15
15
|
import URLInput from './';
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
/**
|
|
18
|
+
* A button that toggles a URL input field for inserting or editing links.
|
|
19
|
+
*
|
|
20
|
+
* @param {Object} props Component properties.
|
|
21
|
+
* @param {string} props.url The current URL value.
|
|
22
|
+
* @param {Function} props.onChange Callback function to handle URL changes.
|
|
23
|
+
* @return {JSX.Element} The URL input button component.
|
|
24
|
+
*/
|
|
25
|
+
function URLInputButton( { url, onChange } ) {
|
|
26
|
+
const [ expanded, toggleExpanded ] = useReducer(
|
|
27
|
+
( isExpanded ) => ! isExpanded,
|
|
28
|
+
false
|
|
29
|
+
);
|
|
30
30
|
|
|
31
|
-
submitLink( event ) {
|
|
31
|
+
const submitLink = ( event ) => {
|
|
32
32
|
event.preventDefault();
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
render() {
|
|
37
|
-
const { url, onChange } = this.props;
|
|
38
|
-
const { expanded } = this.state;
|
|
39
|
-
const buttonLabel = url ? __( 'Edit link' ) : __( 'Insert link' );
|
|
33
|
+
toggleExpanded();
|
|
34
|
+
};
|
|
40
35
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
36
|
+
return (
|
|
37
|
+
<div className="block-editor-url-input__button">
|
|
38
|
+
<Button
|
|
39
|
+
size="compact"
|
|
40
|
+
icon={ link }
|
|
41
|
+
label={ url ? __( 'Edit link' ) : __( 'Insert link' ) }
|
|
42
|
+
onClick={ toggleExpanded }
|
|
43
|
+
className="components-toolbar__control"
|
|
44
|
+
isPressed={ !! url }
|
|
45
|
+
/>
|
|
46
|
+
{ expanded && (
|
|
47
|
+
<form
|
|
48
|
+
className="block-editor-url-input__button-modal"
|
|
49
|
+
onSubmit={ submitLink }
|
|
50
|
+
>
|
|
51
|
+
<div className="block-editor-url-input__button-modal-line">
|
|
52
|
+
<Button
|
|
53
|
+
__next40pxDefaultSize
|
|
54
|
+
className="block-editor-url-input__back"
|
|
55
|
+
icon={ arrowLeft }
|
|
56
|
+
label={ __( 'Close' ) }
|
|
57
|
+
onClick={ toggleExpanded }
|
|
58
|
+
/>
|
|
59
|
+
<URLInput
|
|
60
|
+
value={ url || '' }
|
|
61
|
+
onChange={ onChange }
|
|
62
|
+
suffix={
|
|
63
|
+
<InputControlSuffixWrapper variant="control">
|
|
64
|
+
<Button
|
|
65
|
+
size="small"
|
|
66
|
+
icon={ keyboardReturn }
|
|
67
|
+
label={ __( 'Submit' ) }
|
|
68
|
+
type="submit"
|
|
69
|
+
/>
|
|
70
|
+
</InputControlSuffixWrapper>
|
|
71
|
+
}
|
|
72
|
+
/>
|
|
73
|
+
</div>
|
|
74
|
+
</form>
|
|
75
|
+
) }
|
|
76
|
+
</div>
|
|
77
|
+
);
|
|
84
78
|
}
|
|
85
79
|
|
|
86
80
|
/**
|
|
@@ -36,7 +36,7 @@ function Warning( { className, actions, children, secondaryActions } ) {
|
|
|
36
36
|
icon={ moreVertical }
|
|
37
37
|
label={ __( 'More options' ) }
|
|
38
38
|
popoverProps={ {
|
|
39
|
-
|
|
39
|
+
placement: 'bottom-end',
|
|
40
40
|
className:
|
|
41
41
|
'block-editor-warning__dropdown',
|
|
42
42
|
} }
|
package/src/layouts/flex.js
CHANGED
|
@@ -56,6 +56,11 @@ const verticalAlignmentMap = {
|
|
|
56
56
|
'space-between': 'space-between',
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
+
const defaultAlignments = {
|
|
60
|
+
horizontal: 'center',
|
|
61
|
+
vertical: 'top',
|
|
62
|
+
};
|
|
63
|
+
|
|
59
64
|
const flexWrapOptions = [ 'wrap', 'nowrap' ];
|
|
60
65
|
|
|
61
66
|
export default {
|
|
@@ -201,8 +206,8 @@ function FlexLayoutVerticalAlignmentControl( { layout, onChange } ) {
|
|
|
201
206
|
|
|
202
207
|
const defaultVerticalAlignment =
|
|
203
208
|
orientation === 'horizontal'
|
|
204
|
-
?
|
|
205
|
-
:
|
|
209
|
+
? defaultAlignments.horizontal
|
|
210
|
+
: defaultAlignments.vertical;
|
|
206
211
|
|
|
207
212
|
const { verticalAlignment = defaultVerticalAlignment } = layout;
|
|
208
213
|
|
package/src/store/selectors.js
CHANGED
|
@@ -1807,9 +1807,9 @@ export const canInsertBlockType = createRegistrySelector( ( select ) =>
|
|
|
1807
1807
|
* Determines if the given blocks are allowed to be inserted into the block
|
|
1808
1808
|
* list.
|
|
1809
1809
|
*
|
|
1810
|
-
* @param {Object}
|
|
1811
|
-
* @param {string}
|
|
1812
|
-
* @param {?string}
|
|
1810
|
+
* @param {Object} state Editor state.
|
|
1811
|
+
* @param {string[]} clientIds The block client IDs to be inserted.
|
|
1812
|
+
* @param {?string} rootClientId Optional root client ID of block list.
|
|
1813
1813
|
*
|
|
1814
1814
|
* @return {boolean} Whether the given blocks are allowed to be inserted.
|
|
1815
1815
|
*/
|
package/src/style.scss
CHANGED
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
@import "./components/grid/style.scss";
|
|
34
34
|
@import "./components/height-control/style.scss";
|
|
35
35
|
@import "./components/iframe/style.scss";
|
|
36
|
-
@import "./components/image-size-control/style.scss";
|
|
37
36
|
@import "./components/inserter-list-item/style.scss";
|
|
38
37
|
@import "./components/inspector-controls-tabs/style.scss";
|
|
39
38
|
@import "./components/inspector-popover-header/style.scss";
|