@wordpress/block-library 8.17.1 → 8.18.1-next.5a1d1283.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/build/column/edit.native.js +5 -5
- package/build/column/edit.native.js.map +1 -1
- package/build/cover/edit/index.js +3 -1
- package/build/cover/edit/index.js.map +1 -1
- package/build/cover/shared.js +26 -21
- package/build/cover/shared.js.map +1 -1
- package/build/embed/embed-link-settings.native.js +0 -1
- package/build/embed/embed-link-settings.native.js.map +1 -1
- package/build/footnotes/edit.js +2 -3
- package/build/footnotes/edit.js.map +1 -1
- package/build/group/index.js +1 -0
- package/build/group/index.js.map +1 -1
- package/build/post-content/edit.js +1 -1
- package/build/post-content/edit.js.map +1 -1
- package/build/post-template/index.js +1 -1
- package/build/post-terms/use-post-terms.js +3 -2
- package/build/post-terms/use-post-terms.js.map +1 -1
- package/build/query/edit/inspector-controls/index.js +28 -3
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/query/edit/query-content.js +2 -1
- package/build/query/edit/query-content.js.map +1 -1
- package/build/query/index.js +9 -2
- package/build/query/index.js.map +1 -1
- package/build/query/view.js +75 -0
- package/build/query/view.js.map +1 -0
- package/build/query-pagination-next/index.js +1 -1
- package/build/query-pagination-numbers/edit.js +50 -5
- package/build/query-pagination-numbers/edit.js.map +1 -1
- package/build/query-pagination-numbers/index.js +7 -1
- package/build/query-pagination-numbers/index.js.map +1 -1
- package/build/query-pagination-previous/index.js +1 -1
- package/build/search/edit.js +3 -1
- package/build/search/edit.js.map +1 -1
- package/build/search/utils.js +2 -4
- package/build/search/utils.js.map +1 -1
- package/build/social-link/edit.native.js +1 -3
- package/build/social-link/edit.native.js.map +1 -1
- package/build-module/column/edit.native.js +5 -5
- package/build-module/column/edit.native.js.map +1 -1
- package/build-module/cover/edit/index.js +3 -1
- package/build-module/cover/edit/index.js.map +1 -1
- package/build-module/cover/shared.js +26 -21
- package/build-module/cover/shared.js.map +1 -1
- package/build-module/embed/embed-link-settings.native.js +0 -1
- package/build-module/embed/embed-link-settings.native.js.map +1 -1
- package/build-module/footnotes/edit.js +2 -3
- package/build-module/footnotes/edit.js.map +1 -1
- package/build-module/group/index.js +1 -0
- package/build-module/group/index.js.map +1 -1
- package/build-module/post-content/edit.js +1 -1
- package/build-module/post-content/edit.js.map +1 -1
- package/build-module/post-template/index.js +1 -1
- package/build-module/post-terms/use-post-terms.js +3 -2
- package/build-module/post-terms/use-post-terms.js.map +1 -1
- package/build-module/query/edit/inspector-controls/index.js +29 -4
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/query/edit/query-content.js +2 -1
- package/build-module/query/edit/query-content.js.map +1 -1
- package/build-module/query/index.js +9 -2
- package/build-module/query/index.js.map +1 -1
- package/build-module/query/view.js +72 -0
- package/build-module/query/view.js.map +1 -0
- package/build-module/query-pagination-next/index.js +1 -1
- package/build-module/query-pagination-numbers/edit.js +51 -6
- package/build-module/query-pagination-numbers/edit.js.map +1 -1
- package/build-module/query-pagination-numbers/index.js +7 -1
- package/build-module/query-pagination-numbers/index.js.map +1 -1
- package/build-module/query-pagination-previous/index.js +1 -1
- package/build-module/search/edit.js +4 -2
- package/build-module/search/edit.js.map +1 -1
- package/build-module/search/utils.js +0 -1
- package/build-module/search/utils.js.map +1 -1
- package/build-module/social-link/edit.native.js +1 -3
- package/build-module/social-link/edit.native.js.map +1 -1
- package/build-style/query/style-rtl.css +140 -0
- package/build-style/query/style.css +140 -0
- package/build-style/site-logo/style-rtl.css +1 -0
- package/build-style/site-logo/style.css +1 -0
- package/build-style/style-rtl.css +1 -0
- package/build-style/style.css +1 -0
- package/package.json +32 -32
- package/src/audio/test/__snapshots__/edit.native.js.snap +106 -78
- package/src/column/edit.native.js +4 -4
- package/src/columns/test/__snapshots__/edit.native.js.snap +14 -0
- package/src/columns/test/edit.native.js +47 -17
- package/src/cover/edit/index.js +3 -1
- package/src/cover/shared.js +25 -20
- package/src/cover/test/edit.native.js +1 -5
- package/src/embed/embed-link-settings.native.js +0 -1
- package/src/embed/test/index.native.js +9 -9
- package/src/file/test/__snapshots__/edit.native.js.snap +218 -162
- package/src/footnotes/edit.js +3 -1
- package/src/group/block.json +1 -0
- package/src/image/index.php +5 -0
- package/src/post-content/edit.js +2 -2
- package/src/post-content/index.php +0 -6
- package/src/post-featured-image/index.php +0 -6
- package/src/post-navigation-link/index.php +10 -1
- package/src/post-template/block.json +2 -1
- package/src/post-template/index.php +19 -4
- package/src/post-terms/use-post-terms.js +4 -2
- package/src/query/block.json +9 -2
- package/src/query/edit/inspector-controls/index.js +46 -3
- package/src/query/edit/query-content.js +1 -0
- package/src/query/index.php +94 -1
- package/src/query/style.scss +63 -0
- package/src/query/view.js +82 -0
- package/src/query-no-results/index.php +1 -5
- package/src/query-pagination-next/block.json +7 -1
- package/src/query-pagination-next/index.php +20 -3
- package/src/query-pagination-numbers/block.json +7 -1
- package/src/query-pagination-numbers/edit.js +64 -16
- package/src/query-pagination-numbers/index.php +27 -4
- package/src/query-pagination-previous/block.json +7 -1
- package/src/query-pagination-previous/index.php +19 -2
- package/src/search/edit.js +8 -2
- package/src/search/test/__snapshots__/edit.native.js.snap +363 -265
- package/src/search/utils.js +0 -1
- package/src/site-logo/style.scss +1 -0
- package/src/social-link/edit.native.js +1 -1
- package/src/social-link/editor.native.scss +0 -4
- package/src/social-links/test/edit.native.js +30 -0
- package/src/social-link/test/index.native.js +0 -132
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a hex value into the rgb equivalent.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
5
|
+
* @return {string} comma separated rgb values
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Colors
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Breakpoints & Media Queries
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* SCSS Variables.
|
|
15
|
+
*
|
|
16
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
17
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
18
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Converts a hex value into the rgb equivalent.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
24
|
+
* @return {string} comma separated rgb values
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Colors
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Fonts & basic variables.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Grid System.
|
|
34
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Dimensions.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Shadows.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Editor widths.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Block & Editor UI.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Block paddings.
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* React Native specific.
|
|
53
|
+
* These variables do not appear to be used anywhere else.
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* Converts a hex value into the rgb equivalent.
|
|
57
|
+
*
|
|
58
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
59
|
+
* @return {string} comma separated rgb values
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Long content fade mixin
|
|
63
|
+
*
|
|
64
|
+
* Creates a fading overlay to signify that the content is longer
|
|
65
|
+
* than the space allows.
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Breakpoint mixins
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Focus styles.
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* Applies editor left position to the selector passed as argument
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Styles that are reused verbatim in a few places
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* Reset default styles for JavaScript UI based pages.
|
|
84
|
+
* This is a WP-admin agnostic reset
|
|
85
|
+
*/
|
|
86
|
+
/**
|
|
87
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
|
+
*/
|
|
89
|
+
.wp-block-query__enhanced-pagination-animation {
|
|
90
|
+
position: fixed;
|
|
91
|
+
top: 0;
|
|
92
|
+
right: 0;
|
|
93
|
+
margin: 0;
|
|
94
|
+
padding: 0;
|
|
95
|
+
width: 100vw;
|
|
96
|
+
max-width: 100vw !important;
|
|
97
|
+
height: 4px;
|
|
98
|
+
background-color: var(--wp--preset--color--primary, #000);
|
|
99
|
+
opacity: 0;
|
|
100
|
+
}
|
|
101
|
+
.wp-block-query__enhanced-pagination-animation.start-animation {
|
|
102
|
+
animation: wp-block-query__enhanced-pagination-start-animation 30s cubic-bezier(0, 1, 0, 1) infinite;
|
|
103
|
+
}
|
|
104
|
+
.wp-block-query__enhanced-pagination-animation.finish-animation {
|
|
105
|
+
animation: wp-block-query__enhanced-pagination-finish-animation 300ms ease-in;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes wp-block-query__enhanced-pagination-start-animation {
|
|
109
|
+
0% {
|
|
110
|
+
transform: scaleX(0);
|
|
111
|
+
transform-origin: 100% 0%;
|
|
112
|
+
opacity: 1;
|
|
113
|
+
}
|
|
114
|
+
100% {
|
|
115
|
+
transform: scaleX(1);
|
|
116
|
+
transform-origin: 100% 0%;
|
|
117
|
+
opacity: 1;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
@keyframes wp-block-query__enhanced-pagination-finish-animation {
|
|
121
|
+
0% {
|
|
122
|
+
opacity: 1;
|
|
123
|
+
}
|
|
124
|
+
50% {
|
|
125
|
+
opacity: 1;
|
|
126
|
+
}
|
|
127
|
+
100% {
|
|
128
|
+
opacity: 0;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.wp-block-query__enhanced-pagination-navigation-announce {
|
|
132
|
+
position: absolute;
|
|
133
|
+
clip: rect(0, 0, 0, 0);
|
|
134
|
+
width: 1px;
|
|
135
|
+
height: 1px;
|
|
136
|
+
padding: 0;
|
|
137
|
+
margin: -1px;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
border: 0;
|
|
140
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a hex value into the rgb equivalent.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
5
|
+
* @return {string} comma separated rgb values
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Colors
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Breakpoints & Media Queries
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* SCSS Variables.
|
|
15
|
+
*
|
|
16
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
17
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
18
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Converts a hex value into the rgb equivalent.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
24
|
+
* @return {string} comma separated rgb values
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Colors
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Fonts & basic variables.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Grid System.
|
|
34
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Dimensions.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Shadows.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Editor widths.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Block & Editor UI.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Block paddings.
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* React Native specific.
|
|
53
|
+
* These variables do not appear to be used anywhere else.
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* Converts a hex value into the rgb equivalent.
|
|
57
|
+
*
|
|
58
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
59
|
+
* @return {string} comma separated rgb values
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Long content fade mixin
|
|
63
|
+
*
|
|
64
|
+
* Creates a fading overlay to signify that the content is longer
|
|
65
|
+
* than the space allows.
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Breakpoint mixins
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Focus styles.
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* Applies editor left position to the selector passed as argument
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Styles that are reused verbatim in a few places
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* Reset default styles for JavaScript UI based pages.
|
|
84
|
+
* This is a WP-admin agnostic reset
|
|
85
|
+
*/
|
|
86
|
+
/**
|
|
87
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
|
+
*/
|
|
89
|
+
.wp-block-query__enhanced-pagination-animation {
|
|
90
|
+
position: fixed;
|
|
91
|
+
top: 0;
|
|
92
|
+
left: 0;
|
|
93
|
+
margin: 0;
|
|
94
|
+
padding: 0;
|
|
95
|
+
width: 100vw;
|
|
96
|
+
max-width: 100vw !important;
|
|
97
|
+
height: 4px;
|
|
98
|
+
background-color: var(--wp--preset--color--primary, #000);
|
|
99
|
+
opacity: 0;
|
|
100
|
+
}
|
|
101
|
+
.wp-block-query__enhanced-pagination-animation.start-animation {
|
|
102
|
+
animation: wp-block-query__enhanced-pagination-start-animation 30s cubic-bezier(0, 1, 0, 1) infinite;
|
|
103
|
+
}
|
|
104
|
+
.wp-block-query__enhanced-pagination-animation.finish-animation {
|
|
105
|
+
animation: wp-block-query__enhanced-pagination-finish-animation 300ms ease-in;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes wp-block-query__enhanced-pagination-start-animation {
|
|
109
|
+
0% {
|
|
110
|
+
transform: scaleX(0);
|
|
111
|
+
transform-origin: 0% 0%;
|
|
112
|
+
opacity: 1;
|
|
113
|
+
}
|
|
114
|
+
100% {
|
|
115
|
+
transform: scaleX(1);
|
|
116
|
+
transform-origin: 0% 0%;
|
|
117
|
+
opacity: 1;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
@keyframes wp-block-query__enhanced-pagination-finish-animation {
|
|
121
|
+
0% {
|
|
122
|
+
opacity: 1;
|
|
123
|
+
}
|
|
124
|
+
50% {
|
|
125
|
+
opacity: 1;
|
|
126
|
+
}
|
|
127
|
+
100% {
|
|
128
|
+
opacity: 0;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.wp-block-query__enhanced-pagination-navigation-announce {
|
|
132
|
+
position: absolute;
|
|
133
|
+
clip: rect(0, 0, 0, 0);
|
|
134
|
+
width: 1px;
|
|
135
|
+
height: 1px;
|
|
136
|
+
padding: 0;
|
|
137
|
+
margin: -1px;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
border: 0;
|
|
140
|
+
}
|
package/build-style/style.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.18.1-next.5a1d1283.0",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -31,36 +31,36 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.16.0",
|
|
34
|
-
"@wordpress/a11y": "^3.
|
|
35
|
-
"@wordpress/api-fetch": "^6.
|
|
36
|
-
"@wordpress/autop": "^3.
|
|
37
|
-
"@wordpress/blob": "^3.
|
|
38
|
-
"@wordpress/block-editor": "^12.
|
|
39
|
-
"@wordpress/blocks": "^12.
|
|
40
|
-
"@wordpress/components": "^
|
|
41
|
-
"@wordpress/compose": "^6.
|
|
42
|
-
"@wordpress/core-data": "^6.
|
|
43
|
-
"@wordpress/data": "^9.
|
|
44
|
-
"@wordpress/date": "^4.
|
|
45
|
-
"@wordpress/deprecated": "^3.
|
|
46
|
-
"@wordpress/dom": "^3.
|
|
47
|
-
"@wordpress/element": "^5.
|
|
48
|
-
"@wordpress/escape-html": "^2.
|
|
49
|
-
"@wordpress/hooks": "^3.
|
|
50
|
-
"@wordpress/html-entities": "^3.
|
|
51
|
-
"@wordpress/i18n": "^4.
|
|
52
|
-
"@wordpress/icons": "^9.
|
|
53
|
-
"@wordpress/interactivity": "^2.1.
|
|
54
|
-
"@wordpress/keycodes": "^3.
|
|
55
|
-
"@wordpress/notices": "^4.
|
|
56
|
-
"@wordpress/primitives": "^3.
|
|
57
|
-
"@wordpress/private-apis": "^0.
|
|
58
|
-
"@wordpress/reusable-blocks": "^4.
|
|
59
|
-
"@wordpress/rich-text": "^6.
|
|
60
|
-
"@wordpress/server-side-render": "^4.
|
|
61
|
-
"@wordpress/url": "^3.
|
|
62
|
-
"@wordpress/viewport": "^5.
|
|
63
|
-
"@wordpress/wordcount": "^3.
|
|
34
|
+
"@wordpress/a11y": "^3.41.1-next.5a1d1283.0",
|
|
35
|
+
"@wordpress/api-fetch": "^6.38.1-next.5a1d1283.0",
|
|
36
|
+
"@wordpress/autop": "^3.41.1-next.5a1d1283.0",
|
|
37
|
+
"@wordpress/blob": "^3.41.1-next.5a1d1283.0",
|
|
38
|
+
"@wordpress/block-editor": "^12.9.1-next.5a1d1283.0",
|
|
39
|
+
"@wordpress/blocks": "^12.18.1-next.5a1d1283.0",
|
|
40
|
+
"@wordpress/components": "^26.0.1-next.5a1d1283.0",
|
|
41
|
+
"@wordpress/compose": "^6.18.1-next.5a1d1283.0",
|
|
42
|
+
"@wordpress/core-data": "^6.18.1-next.5a1d1283.0",
|
|
43
|
+
"@wordpress/data": "^9.11.1-next.5a1d1283.0",
|
|
44
|
+
"@wordpress/date": "^4.41.1-next.5a1d1283.0",
|
|
45
|
+
"@wordpress/deprecated": "^3.41.1-next.5a1d1283.0",
|
|
46
|
+
"@wordpress/dom": "^3.41.1-next.5a1d1283.0",
|
|
47
|
+
"@wordpress/element": "^5.18.1-next.5a1d1283.0",
|
|
48
|
+
"@wordpress/escape-html": "^2.41.1-next.5a1d1283.0",
|
|
49
|
+
"@wordpress/hooks": "^3.41.1-next.5a1d1283.0",
|
|
50
|
+
"@wordpress/html-entities": "^3.41.1-next.5a1d1283.0",
|
|
51
|
+
"@wordpress/i18n": "^4.41.1-next.5a1d1283.0",
|
|
52
|
+
"@wordpress/icons": "^9.32.1-next.5a1d1283.0",
|
|
53
|
+
"@wordpress/interactivity": "^2.2.1-next.5a1d1283.0",
|
|
54
|
+
"@wordpress/keycodes": "^3.41.1-next.5a1d1283.0",
|
|
55
|
+
"@wordpress/notices": "^4.9.1-next.5a1d1283.0",
|
|
56
|
+
"@wordpress/primitives": "^3.39.1-next.5a1d1283.0",
|
|
57
|
+
"@wordpress/private-apis": "^0.23.1-next.5a1d1283.0",
|
|
58
|
+
"@wordpress/reusable-blocks": "^4.18.1-next.5a1d1283.0",
|
|
59
|
+
"@wordpress/rich-text": "^6.18.1-next.5a1d1283.0",
|
|
60
|
+
"@wordpress/server-side-render": "^4.18.1-next.5a1d1283.0",
|
|
61
|
+
"@wordpress/url": "^3.42.1-next.5a1d1283.0",
|
|
62
|
+
"@wordpress/viewport": "^5.18.1-next.5a1d1283.0",
|
|
63
|
+
"@wordpress/wordcount": "^3.41.1-next.5a1d1283.0",
|
|
64
64
|
"change-case": "^4.1.2",
|
|
65
65
|
"classnames": "^2.3.1",
|
|
66
66
|
"colord": "^2.7.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "fa0b66987dab5a15f38663e06036d09bccffaa4b"
|
|
83
83
|
}
|
|
@@ -133,7 +133,7 @@ exports[`Audio block renders audio block error state without crashing 1`] = `
|
|
|
133
133
|
]
|
|
134
134
|
}
|
|
135
135
|
>
|
|
136
|
-
<
|
|
136
|
+
<View
|
|
137
137
|
accessibilityState={
|
|
138
138
|
{
|
|
139
139
|
"busy": undefined,
|
|
@@ -143,59 +143,73 @@ exports[`Audio block renders audio block error state without crashing 1`] = `
|
|
|
143
143
|
"selected": undefined,
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
|
|
147
|
-
activeFormats={[]}
|
|
148
|
-
blockType={
|
|
146
|
+
accessibilityValue={
|
|
149
147
|
{
|
|
150
|
-
"
|
|
148
|
+
"max": undefined,
|
|
149
|
+
"min": undefined,
|
|
150
|
+
"now": undefined,
|
|
151
|
+
"text": undefined,
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
accessible={false}
|
|
155
|
+
collapsable={false}
|
|
155
156
|
focusable={true}
|
|
156
|
-
fontFamily="serif"
|
|
157
|
-
fontSize={14}
|
|
158
|
-
isMultiline={false}
|
|
159
|
-
maxImagesWidth={200}
|
|
160
|
-
onBackspace={[Function]}
|
|
161
157
|
onBlur={[Function]}
|
|
162
|
-
onChange={[Function]}
|
|
163
158
|
onClick={[Function]}
|
|
164
|
-
onContentSizeChange={[Function]}
|
|
165
|
-
onEnter={[Function]}
|
|
166
159
|
onFocus={[Function]}
|
|
167
|
-
onHTMLContentWithCursor={[Function]}
|
|
168
|
-
onKeyDown={[Function]}
|
|
169
|
-
onPaste={[Function]}
|
|
170
160
|
onResponderGrant={[Function]}
|
|
171
161
|
onResponderMove={[Function]}
|
|
172
162
|
onResponderRelease={[Function]}
|
|
173
163
|
onResponderTerminate={[Function]}
|
|
174
164
|
onResponderTerminationRequest={[Function]}
|
|
175
|
-
onSelectionChange={[Function]}
|
|
176
165
|
onStartShouldSetResponder={[Function]}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
"minHeight": 0,
|
|
166
|
+
>
|
|
167
|
+
<RCTAztecView
|
|
168
|
+
activeFormats={[]}
|
|
169
|
+
blockType={
|
|
170
|
+
{
|
|
171
|
+
"tag": "p",
|
|
172
|
+
}
|
|
185
173
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
174
|
+
deleteEnter={true}
|
|
175
|
+
disableEditingMenu={false}
|
|
176
|
+
fontFamily="serif"
|
|
177
|
+
fontSize={14}
|
|
178
|
+
isMultiline={false}
|
|
179
|
+
maxImagesWidth={200}
|
|
180
|
+
onBackspace={[Function]}
|
|
181
|
+
onBlur={[Function]}
|
|
182
|
+
onChange={[Function]}
|
|
183
|
+
onContentSizeChange={[Function]}
|
|
184
|
+
onEnter={[Function]}
|
|
185
|
+
onFocus={[Function]}
|
|
186
|
+
onHTMLContentWithCursor={[Function]}
|
|
187
|
+
onKeyDown={[Function]}
|
|
188
|
+
onPaste={[Function]}
|
|
189
|
+
onSelectionChange={[Function]}
|
|
190
|
+
placeholder="Add caption"
|
|
191
|
+
placeholderTextColor="gray"
|
|
192
|
+
selectionColor="black"
|
|
193
|
+
style={
|
|
194
|
+
{
|
|
195
|
+
"backgroundColor": undefined,
|
|
196
|
+
"maxWidth": undefined,
|
|
197
|
+
"minHeight": 0,
|
|
198
|
+
}
|
|
194
199
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
200
|
+
text={
|
|
201
|
+
{
|
|
202
|
+
"eventCount": undefined,
|
|
203
|
+
"linkTextColor": undefined,
|
|
204
|
+
"selection": null,
|
|
205
|
+
"tag": "p",
|
|
206
|
+
"text": "",
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
textAlign="center"
|
|
210
|
+
triggerKeyCodes={[]}
|
|
211
|
+
/>
|
|
212
|
+
</View>
|
|
199
213
|
</View>
|
|
200
214
|
</View>
|
|
201
215
|
</View>
|
|
@@ -359,7 +373,7 @@ exports[`Audio block renders audio file without crashing 1`] = `
|
|
|
359
373
|
]
|
|
360
374
|
}
|
|
361
375
|
>
|
|
362
|
-
<
|
|
376
|
+
<View
|
|
363
377
|
accessibilityState={
|
|
364
378
|
{
|
|
365
379
|
"busy": undefined,
|
|
@@ -369,59 +383,73 @@ exports[`Audio block renders audio file without crashing 1`] = `
|
|
|
369
383
|
"selected": undefined,
|
|
370
384
|
}
|
|
371
385
|
}
|
|
372
|
-
|
|
373
|
-
activeFormats={[]}
|
|
374
|
-
blockType={
|
|
386
|
+
accessibilityValue={
|
|
375
387
|
{
|
|
376
|
-
"
|
|
388
|
+
"max": undefined,
|
|
389
|
+
"min": undefined,
|
|
390
|
+
"now": undefined,
|
|
391
|
+
"text": undefined,
|
|
377
392
|
}
|
|
378
393
|
}
|
|
379
|
-
|
|
380
|
-
|
|
394
|
+
accessible={false}
|
|
395
|
+
collapsable={false}
|
|
381
396
|
focusable={true}
|
|
382
|
-
fontFamily="serif"
|
|
383
|
-
fontSize={14}
|
|
384
|
-
isMultiline={false}
|
|
385
|
-
maxImagesWidth={200}
|
|
386
|
-
onBackspace={[Function]}
|
|
387
397
|
onBlur={[Function]}
|
|
388
|
-
onChange={[Function]}
|
|
389
398
|
onClick={[Function]}
|
|
390
|
-
onContentSizeChange={[Function]}
|
|
391
|
-
onEnter={[Function]}
|
|
392
399
|
onFocus={[Function]}
|
|
393
|
-
onHTMLContentWithCursor={[Function]}
|
|
394
|
-
onKeyDown={[Function]}
|
|
395
|
-
onPaste={[Function]}
|
|
396
400
|
onResponderGrant={[Function]}
|
|
397
401
|
onResponderMove={[Function]}
|
|
398
402
|
onResponderRelease={[Function]}
|
|
399
403
|
onResponderTerminate={[Function]}
|
|
400
404
|
onResponderTerminationRequest={[Function]}
|
|
401
|
-
onSelectionChange={[Function]}
|
|
402
405
|
onStartShouldSetResponder={[Function]}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
"minHeight": 0,
|
|
406
|
+
>
|
|
407
|
+
<RCTAztecView
|
|
408
|
+
activeFormats={[]}
|
|
409
|
+
blockType={
|
|
410
|
+
{
|
|
411
|
+
"tag": "p",
|
|
412
|
+
}
|
|
411
413
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
414
|
+
deleteEnter={true}
|
|
415
|
+
disableEditingMenu={false}
|
|
416
|
+
fontFamily="serif"
|
|
417
|
+
fontSize={14}
|
|
418
|
+
isMultiline={false}
|
|
419
|
+
maxImagesWidth={200}
|
|
420
|
+
onBackspace={[Function]}
|
|
421
|
+
onBlur={[Function]}
|
|
422
|
+
onChange={[Function]}
|
|
423
|
+
onContentSizeChange={[Function]}
|
|
424
|
+
onEnter={[Function]}
|
|
425
|
+
onFocus={[Function]}
|
|
426
|
+
onHTMLContentWithCursor={[Function]}
|
|
427
|
+
onKeyDown={[Function]}
|
|
428
|
+
onPaste={[Function]}
|
|
429
|
+
onSelectionChange={[Function]}
|
|
430
|
+
placeholder="Add caption"
|
|
431
|
+
placeholderTextColor="gray"
|
|
432
|
+
selectionColor="black"
|
|
433
|
+
style={
|
|
434
|
+
{
|
|
435
|
+
"backgroundColor": undefined,
|
|
436
|
+
"maxWidth": undefined,
|
|
437
|
+
"minHeight": 0,
|
|
438
|
+
}
|
|
420
439
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
440
|
+
text={
|
|
441
|
+
{
|
|
442
|
+
"eventCount": undefined,
|
|
443
|
+
"linkTextColor": undefined,
|
|
444
|
+
"selection": null,
|
|
445
|
+
"tag": "p",
|
|
446
|
+
"text": "",
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
textAlign="center"
|
|
450
|
+
triggerKeyCodes={[]}
|
|
451
|
+
/>
|
|
452
|
+
</View>
|
|
425
453
|
</View>
|
|
426
454
|
</View>
|
|
427
455
|
</View>
|
|
@@ -111,10 +111,10 @@ function ColumnEdit( {
|
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
const renderAppender = useCallback( () => {
|
|
114
|
-
const { width: columnWidth } = contentStyle[ clientId ];
|
|
115
|
-
const isFullWidth = columnWidth === screenWidth;
|
|
116
|
-
|
|
117
114
|
if ( isSelected ) {
|
|
115
|
+
const { width: columnWidth } = contentStyle[ clientId ] || {};
|
|
116
|
+
const isFullWidth = columnWidth === screenWidth;
|
|
117
|
+
|
|
118
118
|
return (
|
|
119
119
|
<View
|
|
120
120
|
style={ [
|
|
@@ -133,7 +133,7 @@ function ColumnEdit( {
|
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
|
-
}, [ contentStyle
|
|
136
|
+
}, [ contentStyle, clientId, screenWidth, isSelected, hasChildren ] );
|
|
137
137
|
|
|
138
138
|
if ( ! isSelected && ! hasChildren ) {
|
|
139
139
|
return (
|
|
@@ -82,6 +82,20 @@ exports[`Columns block sets current vertical alignment on new Columns 1`] = `
|
|
|
82
82
|
<!-- /wp:columns -->"
|
|
83
83
|
`;
|
|
84
84
|
|
|
85
|
+
exports[`Columns block transforms a nested Columns block into a Group block 1`] = `
|
|
86
|
+
"<!-- wp:group {"layout":{"type":"constrained"}} -->
|
|
87
|
+
<div class="wp-block-group"><!-- wp:group {"layout":{"type":"constrained"}} -->
|
|
88
|
+
<div class="wp-block-group"><!-- wp:columns -->
|
|
89
|
+
<div class="wp-block-columns"><!-- wp:column {"width":"100%"} -->
|
|
90
|
+
<div class="wp-block-column" style="flex-basis:100%"><!-- wp:paragraph -->
|
|
91
|
+
<p></p>
|
|
92
|
+
<!-- /wp:paragraph --></div>
|
|
93
|
+
<!-- /wp:column --></div>
|
|
94
|
+
<!-- /wp:columns --></div>
|
|
95
|
+
<!-- /wp:group --></div>
|
|
96
|
+
<!-- /wp:group -->"
|
|
97
|
+
`;
|
|
98
|
+
|
|
85
99
|
exports[`Columns block when using columns percentage mechanism sets custom values correctly 1`] = `
|
|
86
100
|
"<!-- wp:columns -->
|
|
87
101
|
<div class="wp-block-columns"><!-- wp:column {"width":"90%"} -->
|