@wordpress/block-library 9.18.0 → 9.19.1
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 +6 -0
- package/build/cover/edit/index.js +3 -1
- package/build/cover/edit/index.js.map +1 -1
- package/build/form/edit.js +4 -2
- package/build/form/edit.js.map +1 -1
- package/build/image/view.js +4 -4
- package/build/image/view.js.map +1 -1
- package/build/latest-posts/edit.js +2 -1
- package/build/latest-posts/edit.js.map +1 -1
- package/build/navigation/use-template-part-area-label.js +7 -6
- package/build/navigation/use-template-part-area-label.js.map +1 -1
- package/build/navigation/view.js +2 -2
- package/build/navigation/view.js.map +1 -1
- package/build/navigation-link/edit.js +2 -1
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-submenu/edit.js +2 -1
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/post-author/edit.js +1 -1
- package/build/post-author/edit.js.map +1 -1
- package/build/post-author-name/edit.js +2 -2
- package/build/post-author-name/edit.js.map +1 -1
- package/build/post-comments-count/index.js +8 -1
- package/build/post-comments-count/index.js.map +1 -1
- package/build/post-navigation-link/edit.js +1 -1
- package/build/post-navigation-link/edit.js.map +1 -1
- package/build/query/edit/inspector-controls/index.js +2 -0
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/query/edit/inspector-controls/order-control.js +3 -2
- package/build/query/edit/inspector-controls/order-control.js.map +1 -1
- package/build/query/utils.js +45 -0
- package/build/query/utils.js.map +1 -1
- package/build/query/view.js +2 -2
- package/build/query/view.js.map +1 -1
- package/build/query-total/index.js +2 -2
- package/build/query-total/index.js.map +1 -1
- package/build/search/view.js +2 -2
- package/build/search/view.js.map +1 -1
- package/build/site-logo/edit.js +2 -5
- package/build/site-logo/edit.js.map +1 -1
- package/build/template-part/edit/advanced-controls.js +1 -1
- package/build/template-part/edit/advanced-controls.js.map +1 -1
- package/build/template-part/edit/utils/hooks.js +1 -1
- package/build/template-part/edit/utils/hooks.js.map +1 -1
- package/build/video/edit-common-settings.js +10 -3
- package/build/video/edit-common-settings.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/form/edit.js +4 -2
- package/build-module/form/edit.js.map +1 -1
- package/build-module/image/view.js +5 -5
- package/build-module/image/view.js.map +1 -1
- package/build-module/latest-posts/edit.js +2 -1
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/navigation/use-template-part-area-label.js +7 -6
- package/build-module/navigation/use-template-part-area-label.js.map +1 -1
- package/build-module/navigation/view.js +3 -3
- package/build-module/navigation/view.js.map +1 -1
- package/build-module/navigation-link/edit.js +2 -1
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +2 -1
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/post-author/edit.js +1 -1
- package/build-module/post-author/edit.js.map +1 -1
- package/build-module/post-author-name/edit.js +2 -2
- package/build-module/post-author-name/edit.js.map +1 -1
- package/build-module/post-comments-count/index.js +8 -1
- package/build-module/post-comments-count/index.js.map +1 -1
- package/build-module/post-navigation-link/edit.js +1 -1
- package/build-module/post-navigation-link/edit.js.map +1 -1
- package/build-module/query/edit/inspector-controls/index.js +3 -1
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/order-control.js +3 -2
- package/build-module/query/edit/inspector-controls/order-control.js.map +1 -1
- package/build-module/query/utils.js +44 -0
- package/build-module/query/utils.js.map +1 -1
- package/build-module/query/view.js +3 -3
- package/build-module/query/view.js.map +1 -1
- package/build-module/query-total/index.js +2 -2
- package/build-module/query-total/index.js.map +1 -1
- package/build-module/search/view.js +3 -3
- package/build-module/search/view.js.map +1 -1
- package/build-module/site-logo/edit.js +2 -5
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/template-part/edit/advanced-controls.js +1 -1
- package/build-module/template-part/edit/advanced-controls.js.map +1 -1
- package/build-module/template-part/edit/utils/hooks.js +1 -1
- package/build-module/template-part/edit/utils/hooks.js.map +1 -1
- package/build-module/video/edit-common-settings.js +10 -3
- package/build-module/video/edit-common-settings.js.map +1 -1
- package/build-style/editor-rtl.css +6 -9
- package/build-style/editor.css +6 -9
- package/build-style/navigation-link/editor-rtl.css +5 -9
- package/build-style/navigation-link/editor.css +5 -9
- package/build-style/post-comments-count/style-rtl.css +103 -0
- package/build-style/post-comments-count/style.css +103 -0
- package/build-style/pullquote/style-rtl.css +4 -0
- package/build-style/pullquote/style.css +4 -0
- package/build-style/social-link/editor-rtl.css +1 -0
- package/build-style/social-link/editor.css +1 -0
- package/build-style/style-rtl.css +8 -0
- package/build-style/style.css +8 -0
- package/package.json +35 -35
- package/src/cover/edit/index.js +2 -0
- package/src/cover/test/edit.js +6 -6
- package/src/form/edit.js +2 -0
- package/src/image/view.js +10 -5
- package/src/latest-posts/edit.js +1 -0
- package/src/navigation/use-template-part-area-label.js +6 -6
- package/src/navigation/view.js +8 -3
- package/src/navigation-link/edit.js +1 -0
- package/src/navigation-link/editor.scss +3 -24
- package/src/navigation-submenu/edit.js +1 -0
- package/src/post-author/edit.js +1 -1
- package/src/post-author-name/edit.js +4 -4
- package/src/post-comments-count/block.json +8 -1
- package/src/post-comments-count/style.scss +4 -0
- package/src/post-navigation-link/edit.js +1 -1
- package/src/pullquote/style.scss +4 -0
- package/src/query/edit/inspector-controls/index.js +3 -1
- package/src/query/edit/inspector-controls/order-control.js +9 -3
- package/src/query/utils.js +58 -0
- package/src/query/view.js +8 -3
- package/src/query-total/block.json +2 -2
- package/src/query-total/index.php +4 -2
- package/src/search/view.js +8 -3
- package/src/site-logo/edit.js +1 -5
- package/src/site-title/index.php +1 -1
- package/src/social-link/editor.scss +1 -0
- package/src/style.scss +1 -0
- package/src/template-part/edit/advanced-controls.js +1 -1
- package/src/template-part/edit/utils/hooks.js +1 -1
- package/src/template-part/index.php +3 -1
- package/src/video/edit-common-settings.js +11 -2
package/build-style/editor.css
CHANGED
|
@@ -1969,15 +1969,11 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
1969
1969
|
background-image: none !important;
|
|
1970
1970
|
}
|
|
1971
1971
|
.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span {
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
padding-bottom: 0.1em;
|
|
1978
|
-
}
|
|
1979
|
-
.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text.is-invalid span, .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text.is-draft span {
|
|
1980
|
-
--wp-underline-color: #cc1818;
|
|
1972
|
+
-webkit-text-decoration: wavy underline;
|
|
1973
|
+
text-decoration: wavy underline;
|
|
1974
|
+
-webkit-text-decoration-skip-ink: none;
|
|
1975
|
+
text-decoration-skip-ink: none;
|
|
1976
|
+
text-underline-offset: 0.25rem;
|
|
1981
1977
|
}
|
|
1982
1978
|
.wp-block-navigation-link__placeholder.wp-block-navigation-item__content {
|
|
1983
1979
|
cursor: pointer;
|
|
@@ -2369,6 +2365,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2369
2365
|
height: auto;
|
|
2370
2366
|
font-weight: inherit;
|
|
2371
2367
|
font-family: inherit;
|
|
2368
|
+
margin: 0;
|
|
2372
2369
|
opacity: 1;
|
|
2373
2370
|
padding: 0.25em;
|
|
2374
2371
|
}
|
|
@@ -156,15 +156,11 @@
|
|
|
156
156
|
background-image: none !important;
|
|
157
157
|
}
|
|
158
158
|
.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
padding-bottom: 0.1em;
|
|
165
|
-
}
|
|
166
|
-
.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text.is-invalid span, .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text.is-draft span {
|
|
167
|
-
--wp-underline-color: #cc1818;
|
|
159
|
+
-webkit-text-decoration: wavy underline;
|
|
160
|
+
text-decoration: wavy underline;
|
|
161
|
+
-webkit-text-decoration-skip-ink: none;
|
|
162
|
+
text-decoration-skip-ink: none;
|
|
163
|
+
text-underline-offset: 0.25rem;
|
|
168
164
|
}
|
|
169
165
|
.wp-block-navigation-link__placeholder.wp-block-navigation-item__content {
|
|
170
166
|
cursor: pointer;
|
|
@@ -156,15 +156,11 @@
|
|
|
156
156
|
background-image: none !important;
|
|
157
157
|
}
|
|
158
158
|
.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
padding-bottom: 0.1em;
|
|
165
|
-
}
|
|
166
|
-
.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text.is-invalid span, .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text.is-draft span {
|
|
167
|
-
--wp-underline-color: #cc1818;
|
|
159
|
+
-webkit-text-decoration: wavy underline;
|
|
160
|
+
text-decoration: wavy underline;
|
|
161
|
+
-webkit-text-decoration-skip-ink: none;
|
|
162
|
+
text-decoration-skip-ink: none;
|
|
163
|
+
text-underline-offset: 0.25rem;
|
|
168
164
|
}
|
|
169
165
|
.wp-block-navigation-link__placeholder.wp-block-navigation-item__content {
|
|
170
166
|
cursor: pointer;
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
* Typography
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* Grid System.
|
|
37
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Radius scale.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Elevation scale.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Dimensions.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Mobile specific styles
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* Editor styles.
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* Block & Editor UI.
|
|
56
|
+
*/
|
|
57
|
+
/**
|
|
58
|
+
* Block paddings.
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* React Native specific.
|
|
62
|
+
* These variables do not appear to be used anywhere else.
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* Converts a hex value into the rgb equivalent.
|
|
66
|
+
*
|
|
67
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
68
|
+
* @return {string} comma separated rgb values
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Long content fade mixin
|
|
72
|
+
*
|
|
73
|
+
* Creates a fading overlay to signify that the content is longer
|
|
74
|
+
* than the space allows.
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Typography
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Breakpoint mixins
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* Focus styles.
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* Applies editor left position to the selector passed as argument
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* Styles that are reused verbatim in a few places
|
|
90
|
+
*/
|
|
91
|
+
/**
|
|
92
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
93
|
+
*/
|
|
94
|
+
/**
|
|
95
|
+
* Reset default styles for JavaScript UI based pages.
|
|
96
|
+
* This is a WP-admin agnostic reset
|
|
97
|
+
*/
|
|
98
|
+
/**
|
|
99
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
100
|
+
*/
|
|
101
|
+
.wp-block-post-comments-count {
|
|
102
|
+
box-sizing: border-box;
|
|
103
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
* Typography
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* Grid System.
|
|
37
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Radius scale.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Elevation scale.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Dimensions.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Mobile specific styles
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* Editor styles.
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* Block & Editor UI.
|
|
56
|
+
*/
|
|
57
|
+
/**
|
|
58
|
+
* Block paddings.
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* React Native specific.
|
|
62
|
+
* These variables do not appear to be used anywhere else.
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* Converts a hex value into the rgb equivalent.
|
|
66
|
+
*
|
|
67
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
68
|
+
* @return {string} comma separated rgb values
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Long content fade mixin
|
|
72
|
+
*
|
|
73
|
+
* Creates a fading overlay to signify that the content is longer
|
|
74
|
+
* than the space allows.
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Typography
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Breakpoint mixins
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* Focus styles.
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* Applies editor left position to the selector passed as argument
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* Styles that are reused verbatim in a few places
|
|
90
|
+
*/
|
|
91
|
+
/**
|
|
92
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
93
|
+
*/
|
|
94
|
+
/**
|
|
95
|
+
* Reset default styles for JavaScript UI based pages.
|
|
96
|
+
* This is a WP-admin agnostic reset
|
|
97
|
+
*/
|
|
98
|
+
/**
|
|
99
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
100
|
+
*/
|
|
101
|
+
.wp-block-post-comments-count {
|
|
102
|
+
box-sizing: border-box;
|
|
103
|
+
}
|
|
@@ -2931,6 +2931,10 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
|
|
|
2931
2931
|
margin-right: 0.5em;
|
|
2932
2932
|
}
|
|
2933
2933
|
|
|
2934
|
+
.wp-block-post-comments-count {
|
|
2935
|
+
box-sizing: border-box;
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2934
2938
|
.wp-block-post-content {
|
|
2935
2939
|
display: flow-root;
|
|
2936
2940
|
}
|
|
@@ -3127,6 +3131,10 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
|
|
|
3127
3131
|
text-align: left;
|
|
3128
3132
|
}
|
|
3129
3133
|
|
|
3134
|
+
.wp-block-pullquote.has-text-align-center blockquote {
|
|
3135
|
+
text-align: center;
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3130
3138
|
.wp-block-pullquote.is-style-solid-color {
|
|
3131
3139
|
border: none;
|
|
3132
3140
|
}
|
package/build-style/style.css
CHANGED
|
@@ -2963,6 +2963,10 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
|
|
|
2963
2963
|
margin-left: 0.5em;
|
|
2964
2964
|
}
|
|
2965
2965
|
|
|
2966
|
+
.wp-block-post-comments-count {
|
|
2967
|
+
box-sizing: border-box;
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2966
2970
|
.wp-block-post-content {
|
|
2967
2971
|
display: flow-root;
|
|
2968
2972
|
}
|
|
@@ -3159,6 +3163,10 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
|
|
|
3159
3163
|
text-align: right;
|
|
3160
3164
|
}
|
|
3161
3165
|
|
|
3166
|
+
.wp-block-pullquote.has-text-align-center blockquote {
|
|
3167
|
+
text-align: center;
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3162
3170
|
.wp-block-pullquote.is-style-solid-color {
|
|
3163
3171
|
border: none;
|
|
3164
3172
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.19.1",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -41,39 +41,39 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@babel/runtime": "7.25.7",
|
|
44
|
-
"@wordpress/a11y": "^4.
|
|
45
|
-
"@wordpress/api-fetch": "^7.
|
|
46
|
-
"@wordpress/autop": "^4.
|
|
47
|
-
"@wordpress/blob": "^4.
|
|
48
|
-
"@wordpress/block-editor": "^14.
|
|
49
|
-
"@wordpress/blocks": "^14.
|
|
50
|
-
"@wordpress/components": "^29.
|
|
51
|
-
"@wordpress/compose": "^7.
|
|
52
|
-
"@wordpress/core-data": "^7.
|
|
53
|
-
"@wordpress/data": "^10.
|
|
54
|
-
"@wordpress/date": "^5.
|
|
55
|
-
"@wordpress/deprecated": "^4.
|
|
56
|
-
"@wordpress/dom": "^4.
|
|
57
|
-
"@wordpress/element": "^6.
|
|
58
|
-
"@wordpress/escape-html": "^3.
|
|
59
|
-
"@wordpress/hooks": "^4.
|
|
60
|
-
"@wordpress/html-entities": "^4.
|
|
61
|
-
"@wordpress/i18n": "^5.
|
|
62
|
-
"@wordpress/icons": "^10.
|
|
63
|
-
"@wordpress/interactivity": "^6.
|
|
64
|
-
"@wordpress/interactivity-router": "^2.
|
|
65
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
66
|
-
"@wordpress/keycodes": "^4.
|
|
67
|
-
"@wordpress/notices": "^5.
|
|
68
|
-
"@wordpress/patterns": "^2.
|
|
69
|
-
"@wordpress/primitives": "^4.
|
|
70
|
-
"@wordpress/private-apis": "^1.
|
|
71
|
-
"@wordpress/reusable-blocks": "^5.
|
|
72
|
-
"@wordpress/rich-text": "^7.
|
|
73
|
-
"@wordpress/server-side-render": "^5.
|
|
74
|
-
"@wordpress/url": "^4.
|
|
75
|
-
"@wordpress/viewport": "^6.
|
|
76
|
-
"@wordpress/wordcount": "^4.
|
|
44
|
+
"@wordpress/a11y": "^4.19.1",
|
|
45
|
+
"@wordpress/api-fetch": "^7.19.1",
|
|
46
|
+
"@wordpress/autop": "^4.19.1",
|
|
47
|
+
"@wordpress/blob": "^4.19.1",
|
|
48
|
+
"@wordpress/block-editor": "^14.14.1",
|
|
49
|
+
"@wordpress/blocks": "^14.8.1",
|
|
50
|
+
"@wordpress/components": "^29.5.1",
|
|
51
|
+
"@wordpress/compose": "^7.19.1",
|
|
52
|
+
"@wordpress/core-data": "^7.19.1",
|
|
53
|
+
"@wordpress/data": "^10.19.1",
|
|
54
|
+
"@wordpress/date": "^5.19.1",
|
|
55
|
+
"@wordpress/deprecated": "^4.19.1",
|
|
56
|
+
"@wordpress/dom": "^4.19.1",
|
|
57
|
+
"@wordpress/element": "^6.19.1",
|
|
58
|
+
"@wordpress/escape-html": "^3.19.1",
|
|
59
|
+
"@wordpress/hooks": "^4.19.1",
|
|
60
|
+
"@wordpress/html-entities": "^4.19.1",
|
|
61
|
+
"@wordpress/i18n": "^5.19.1",
|
|
62
|
+
"@wordpress/icons": "^10.19.1",
|
|
63
|
+
"@wordpress/interactivity": "^6.19.1",
|
|
64
|
+
"@wordpress/interactivity-router": "^2.19.1",
|
|
65
|
+
"@wordpress/keyboard-shortcuts": "^5.19.1",
|
|
66
|
+
"@wordpress/keycodes": "^4.19.1",
|
|
67
|
+
"@wordpress/notices": "^5.19.1",
|
|
68
|
+
"@wordpress/patterns": "^2.19.1",
|
|
69
|
+
"@wordpress/primitives": "^4.19.1",
|
|
70
|
+
"@wordpress/private-apis": "^1.19.1",
|
|
71
|
+
"@wordpress/reusable-blocks": "^5.19.1",
|
|
72
|
+
"@wordpress/rich-text": "^7.19.1",
|
|
73
|
+
"@wordpress/server-side-render": "^5.19.1",
|
|
74
|
+
"@wordpress/url": "^4.19.1",
|
|
75
|
+
"@wordpress/viewport": "^6.19.1",
|
|
76
|
+
"@wordpress/wordcount": "^4.19.1",
|
|
77
77
|
"change-case": "^4.1.2",
|
|
78
78
|
"clsx": "^2.1.1",
|
|
79
79
|
"colord": "^2.7.0",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"access": "public"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "6f49fee89f840761f7fedf662713cbd4a71723e9"
|
|
95
95
|
}
|
package/src/cover/edit/index.js
CHANGED
package/src/cover/test/edit.js
CHANGED
|
@@ -47,7 +47,7 @@ async function setup( attributes, useCoreBlocks, customSettings ) {
|
|
|
47
47
|
|
|
48
48
|
async function createAndSelectBlock() {
|
|
49
49
|
await userEvent.click(
|
|
50
|
-
screen.getByRole( '
|
|
50
|
+
screen.getByRole( 'button', {
|
|
51
51
|
name: 'Black',
|
|
52
52
|
} )
|
|
53
53
|
);
|
|
@@ -72,7 +72,7 @@ describe( 'Cover block', () => {
|
|
|
72
72
|
|
|
73
73
|
test( 'can set overlay color using color picker on block placeholder', async () => {
|
|
74
74
|
const { container } = await setup();
|
|
75
|
-
const colorPicker = screen.getByRole( '
|
|
75
|
+
const colorPicker = screen.getByRole( 'button', {
|
|
76
76
|
name: 'Black',
|
|
77
77
|
} );
|
|
78
78
|
await userEvent.click( colorPicker );
|
|
@@ -96,7 +96,7 @@ describe( 'Cover block', () => {
|
|
|
96
96
|
await setup();
|
|
97
97
|
|
|
98
98
|
await userEvent.click(
|
|
99
|
-
screen.getByRole( '
|
|
99
|
+
screen.getByRole( 'button', {
|
|
100
100
|
name: 'Black',
|
|
101
101
|
} )
|
|
102
102
|
);
|
|
@@ -389,7 +389,7 @@ describe( 'Cover block', () => {
|
|
|
389
389
|
describe( 'isDark settings', () => {
|
|
390
390
|
test( 'should toggle is-light class if background changed from light to dark', async () => {
|
|
391
391
|
await setup();
|
|
392
|
-
const colorPicker = screen.getByRole( '
|
|
392
|
+
const colorPicker = screen.getByRole( 'button', {
|
|
393
393
|
name: 'White',
|
|
394
394
|
} );
|
|
395
395
|
await userEvent.click( colorPicker );
|
|
@@ -413,7 +413,7 @@ describe( 'Cover block', () => {
|
|
|
413
413
|
} );
|
|
414
414
|
test( 'should remove is-light class if overlay color is removed', async () => {
|
|
415
415
|
await setup();
|
|
416
|
-
const colorPicker = screen.getByRole( '
|
|
416
|
+
const colorPicker = screen.getByRole( 'button', {
|
|
417
417
|
name: 'White',
|
|
418
418
|
} );
|
|
419
419
|
await userEvent.click( colorPicker );
|
|
@@ -426,7 +426,7 @@ describe( 'Cover block', () => {
|
|
|
426
426
|
} )
|
|
427
427
|
);
|
|
428
428
|
await userEvent.click( screen.getByText( 'Overlay' ) );
|
|
429
|
-
// The default color is black, so clicking the black color
|
|
429
|
+
// The default color is black, so clicking the black color button will remove the background color,
|
|
430
430
|
// which should remove the isDark setting and assign the is-light class.
|
|
431
431
|
const popupColorPicker = screen.getByRole( 'option', {
|
|
432
432
|
name: 'White',
|
package/src/form/edit.js
CHANGED
|
@@ -123,6 +123,7 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
|
|
|
123
123
|
help={ __(
|
|
124
124
|
'The email address where form submissions will be sent. Separate multiple email addresses with a comma.'
|
|
125
125
|
) }
|
|
126
|
+
type="email"
|
|
126
127
|
/>
|
|
127
128
|
) }
|
|
128
129
|
</PanelBody>
|
|
@@ -159,6 +160,7 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
|
|
|
159
160
|
help={ __(
|
|
160
161
|
'The URL where the form should be submitted.'
|
|
161
162
|
) }
|
|
163
|
+
type="url"
|
|
162
164
|
/>
|
|
163
165
|
</InspectorControls>
|
|
164
166
|
) }
|
package/src/image/view.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
store,
|
|
6
|
+
getContext,
|
|
7
|
+
getElement,
|
|
8
|
+
withSyncEvent,
|
|
9
|
+
} from '@wordpress/interactivity';
|
|
5
10
|
|
|
6
11
|
/**
|
|
7
12
|
* Tracks whether user is touching screen; used to differentiate behavior for
|
|
@@ -128,7 +133,7 @@ const { state, actions, callbacks } = store(
|
|
|
128
133
|
}, 450 );
|
|
129
134
|
}
|
|
130
135
|
},
|
|
131
|
-
handleKeydown( event ) {
|
|
136
|
+
handleKeydown: withSyncEvent( ( event ) => {
|
|
132
137
|
if ( state.overlayEnabled ) {
|
|
133
138
|
// Focuses the close button when the user presses the tab key.
|
|
134
139
|
if ( event.key === 'Tab' ) {
|
|
@@ -141,8 +146,8 @@ const { state, actions, callbacks } = store(
|
|
|
141
146
|
actions.hideLightbox();
|
|
142
147
|
}
|
|
143
148
|
}
|
|
144
|
-
},
|
|
145
|
-
handleTouchMove( event ) {
|
|
149
|
+
} ),
|
|
150
|
+
handleTouchMove: withSyncEvent( ( event ) => {
|
|
146
151
|
// On mobile devices, prevents triggering the scroll event because
|
|
147
152
|
// otherwise the page jumps around when it resets the scroll position.
|
|
148
153
|
// This also means that closing the lightbox requires that a user
|
|
@@ -152,7 +157,7 @@ const { state, actions, callbacks } = store(
|
|
|
152
157
|
if ( state.overlayEnabled ) {
|
|
153
158
|
event.preventDefault();
|
|
154
159
|
}
|
|
155
|
-
},
|
|
160
|
+
} ),
|
|
156
161
|
handleTouchStart() {
|
|
157
162
|
isTouching = true;
|
|
158
163
|
},
|
package/src/latest-posts/edit.js
CHANGED
|
@@ -126,6 +126,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
|
|
|
126
126
|
orderby: orderBy,
|
|
127
127
|
per_page: postsToShow,
|
|
128
128
|
_embed: 'wp:featuredmedia',
|
|
129
|
+
ignore_sticky: true,
|
|
129
130
|
} ).filter( ( [ , value ] ) => typeof value !== 'undefined' )
|
|
130
131
|
);
|
|
131
132
|
|
|
@@ -36,24 +36,24 @@ export default function useTemplatePartAreaLabel( clientId ) {
|
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
const { getCurrentTheme, getEditedEntityRecord } =
|
|
40
|
+
select( coreStore );
|
|
41
|
+
|
|
42
|
+
const currentTheme = getCurrentTheme();
|
|
39
43
|
const defaultTemplatePartAreas =
|
|
40
|
-
|
|
41
|
-
?.default_template_part_areas || [];
|
|
44
|
+
currentTheme?.default_template_part_areas || [];
|
|
42
45
|
|
|
43
46
|
const definedAreas = defaultTemplatePartAreas.map( ( item ) => ( {
|
|
44
47
|
...item,
|
|
45
48
|
icon: getTemplatePartIcon( item.icon ),
|
|
46
49
|
} ) );
|
|
47
50
|
|
|
48
|
-
const { getCurrentTheme, getEditedEntityRecord } =
|
|
49
|
-
select( coreStore );
|
|
50
|
-
|
|
51
51
|
for ( const templatePartClientId of parentTemplatePartClientIds ) {
|
|
52
52
|
const templatePartBlock = getBlock( templatePartClientId );
|
|
53
53
|
|
|
54
54
|
// The 'area' usually isn't stored on the block, but instead
|
|
55
55
|
// on the entity.
|
|
56
|
-
const { theme =
|
|
56
|
+
const { theme = currentTheme?.stylesheet, slug } =
|
|
57
57
|
templatePartBlock.attributes;
|
|
58
58
|
const templatePartEntityId = createTemplatePartId(
|
|
59
59
|
theme,
|
package/src/navigation/view.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
store,
|
|
6
|
+
getContext,
|
|
7
|
+
getElement,
|
|
8
|
+
withSyncEvent,
|
|
9
|
+
} from '@wordpress/interactivity';
|
|
5
10
|
|
|
6
11
|
const focusableSelectors = [
|
|
7
12
|
'a[href]',
|
|
@@ -106,7 +111,7 @@ const { state, actions } = store(
|
|
|
106
111
|
actions.openMenu( 'click' );
|
|
107
112
|
}
|
|
108
113
|
},
|
|
109
|
-
handleMenuKeydown( event ) {
|
|
114
|
+
handleMenuKeydown: withSyncEvent( ( event ) => {
|
|
110
115
|
const { type, firstFocusableElement, lastFocusableElement } =
|
|
111
116
|
getContext();
|
|
112
117
|
if ( state.menuOpenedBy.click ) {
|
|
@@ -137,7 +142,7 @@ const { state, actions } = store(
|
|
|
137
142
|
}
|
|
138
143
|
}
|
|
139
144
|
}
|
|
140
|
-
},
|
|
145
|
+
} ),
|
|
141
146
|
handleMenuFocusout( event ) {
|
|
142
147
|
const { modal, type } = getContext();
|
|
143
148
|
// If focus is outside modal, and in the document, close menu
|