@wordpress/block-library 7.4.0 → 7.5.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/audio/edit.js +3 -15
- package/build/audio/edit.js.map +1 -1
- package/build/button/edit.native.js +7 -3
- package/build/button/edit.native.js.map +1 -1
- package/build/comment-template/edit.js +1 -3
- package/build/comment-template/edit.js.map +1 -1
- package/build/{comments-query-loop → comments}/edit/comments-inspector-controls.js +0 -0
- package/{build-module/comments-query-loop → build/comments}/edit/comments-inspector-controls.js.map +1 -1
- package/build/{comments-query-loop → comments}/edit.js +3 -3
- package/build/comments/edit.js.map +1 -0
- package/build/{comments-query-loop → comments}/index.js +1 -1
- package/build/comments/index.js.map +1 -0
- package/build/{comments-query-loop → comments}/save.js +2 -2
- package/build/comments/save.js.map +1 -0
- package/build/comments-title/edit.js +7 -5
- package/build/comments-title/edit.js.map +1 -1
- package/build/cover/edit.js +4 -71
- package/build/cover/edit.js.map +1 -1
- package/build/cover/edit.native.js +36 -15
- package/build/cover/edit.native.js.map +1 -1
- package/build/cover/transforms.js +77 -6
- package/build/cover/transforms.js.map +1 -1
- package/build/cover/use-cover-is-dark.js +81 -0
- package/build/cover/use-cover-is-dark.js.map +1 -0
- package/build/cover/use-cover-is-dark.native.js +60 -0
- package/build/cover/use-cover-is-dark.native.js.map +1 -0
- package/build/group/index.js +1 -0
- package/build/group/index.js.map +1 -1
- package/build/heading/transforms.js +8 -4
- package/build/heading/transforms.js.map +1 -1
- package/build/index.js +4 -6
- package/build/index.js.map +1 -1
- package/build/latest-posts/edit.native.js +49 -0
- package/build/latest-posts/edit.native.js.map +1 -1
- package/build/navigation/edit/index.js +5 -28
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/inner-blocks.js +5 -7
- package/build/navigation/edit/inner-blocks.js.map +1 -1
- package/build/navigation/index.js +0 -1
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/view-modal.js +25 -0
- package/build/navigation/view-modal.js.map +1 -1
- package/build/navigation-link/edit.js +29 -30
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-submenu/edit.js +14 -14
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/paragraph/edit.js +10 -0
- package/build/paragraph/edit.js.map +1 -1
- package/build/paragraph/use-enter.js +94 -0
- package/build/paragraph/use-enter.js.map +1 -0
- package/build/post-comment/index.js +1 -1
- package/build/post-comments/edit.js +120 -35
- package/build/post-comments/edit.js.map +1 -1
- package/build/post-comments/index.js +3 -2
- package/build/post-comments/index.js.map +1 -1
- package/build/post-comments-form/edit.js +38 -4
- package/build/post-comments-form/edit.js.map +1 -1
- package/build/post-comments-form/form.js +48 -0
- package/build/post-comments-form/form.js.map +1 -0
- package/build/post-comments-form/index.js +1 -0
- package/build/post-comments-form/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-excerpt/edit.js +1 -1
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-terms/edit.js +25 -3
- package/build/post-terms/edit.js.map +1 -1
- package/build/post-terms/index.js +8 -0
- package/build/post-terms/index.js.map +1 -1
- package/build/query-no-results/edit.js +1 -1
- package/build/query-no-results/edit.js.map +1 -1
- package/build/quote/index.js +1 -0
- package/build/quote/index.js.map +1 -1
- package/build/separator/index.js +3 -0
- package/build/separator/index.js.map +1 -1
- package/build/video/edit.js +3 -7
- package/build/video/edit.js.map +1 -1
- package/build-module/audio/edit.js +3 -15
- package/build-module/audio/edit.js.map +1 -1
- package/build-module/button/edit.native.js +7 -3
- package/build-module/button/edit.native.js.map +1 -1
- package/build-module/comment-template/edit.js +1 -3
- package/build-module/comment-template/edit.js.map +1 -1
- package/build-module/{comments-query-loop → comments}/edit/comments-inspector-controls.js +0 -0
- package/build-module/comments/edit/comments-inspector-controls.js.map +1 -0
- package/build-module/{comments-query-loop → comments}/edit.js +2 -2
- package/build-module/comments/edit.js.map +1 -0
- package/build-module/{comments-query-loop → comments}/index.js +1 -1
- package/build-module/comments/index.js.map +1 -0
- package/build-module/{comments-query-loop → comments}/save.js +1 -1
- package/build-module/comments/save.js.map +1 -0
- package/build-module/comments-title/edit.js +7 -5
- package/build-module/comments-title/edit.js.map +1 -1
- package/build-module/cover/edit.js +4 -71
- package/build-module/cover/edit.js.map +1 -1
- package/build-module/cover/edit.native.js +35 -16
- package/build-module/cover/edit.native.js.map +1 -1
- package/build-module/cover/transforms.js +74 -6
- package/build-module/cover/transforms.js.map +1 -1
- package/build-module/cover/use-cover-is-dark.js +70 -0
- package/build-module/cover/use-cover-is-dark.js.map +1 -0
- package/build-module/cover/use-cover-is-dark.native.js +51 -0
- package/build-module/cover/use-cover-is-dark.native.js.map +1 -0
- package/build-module/group/index.js +1 -0
- package/build-module/group/index.js.map +1 -1
- package/build-module/heading/transforms.js +8 -4
- package/build-module/heading/transforms.js.map +1 -1
- package/build-module/index.js +3 -4
- package/build-module/index.js.map +1 -1
- package/build-module/latest-posts/edit.native.js +51 -2
- package/build-module/latest-posts/edit.native.js.map +1 -1
- package/build-module/navigation/edit/index.js +6 -28
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/inner-blocks.js +5 -7
- package/build-module/navigation/edit/inner-blocks.js.map +1 -1
- package/build-module/navigation/index.js +0 -1
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/navigation/view-modal.js +24 -0
- package/build-module/navigation/view-modal.js.map +1 -1
- package/build-module/navigation-link/edit.js +29 -30
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +14 -14
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/paragraph/edit.js +9 -0
- package/build-module/paragraph/edit.js.map +1 -1
- package/build-module/paragraph/use-enter.js +81 -0
- package/build-module/paragraph/use-enter.js.map +1 -0
- package/build-module/post-comment/index.js +1 -1
- package/build-module/post-comments/edit.js +120 -37
- package/build-module/post-comments/edit.js.map +1 -1
- package/build-module/post-comments/index.js +3 -2
- package/build-module/post-comments/index.js.map +1 -1
- package/build-module/post-comments-form/edit.js +38 -6
- package/build-module/post-comments-form/edit.js.map +1 -1
- package/build-module/post-comments-form/form.js +39 -0
- package/build-module/post-comments-form/form.js.map +1 -0
- package/build-module/post-comments-form/index.js +1 -0
- package/build-module/post-comments-form/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-excerpt/edit.js +1 -1
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-terms/edit.js +26 -4
- package/build-module/post-terms/edit.js.map +1 -1
- package/build-module/post-terms/index.js +8 -0
- package/build-module/post-terms/index.js.map +1 -1
- package/build-module/query-no-results/edit.js +1 -1
- package/build-module/query-no-results/edit.js.map +1 -1
- package/build-module/quote/index.js +1 -0
- package/build-module/quote/index.js.map +1 -1
- package/build-module/separator/index.js +3 -0
- package/build-module/separator/index.js.map +1 -1
- package/build-module/video/edit.js +3 -7
- package/build-module/video/edit.js.map +1 -1
- package/build-style/comment-content/style-rtl.css +81 -0
- package/build-style/comment-content/style.css +81 -0
- package/build-style/{comments-query-loop → comments}/editor-rtl.css +0 -0
- package/build-style/{comments-query-loop → comments}/editor.css +0 -0
- package/build-style/cover/style-rtl.css +1 -5
- package/build-style/cover/style.css +1 -5
- package/build-style/editor-rtl.css +12 -4
- package/build-style/editor.css +12 -4
- package/build-style/latest-posts/style-rtl.css +2 -0
- package/build-style/latest-posts/style.css +4 -0
- package/build-style/navigation/style-rtl.css +3 -0
- package/build-style/navigation/style.css +3 -0
- package/build-style/post-comments/editor-rtl.css +79 -0
- package/build-style/post-comments/editor.css +79 -0
- package/build-style/post-comments/style-rtl.css +6 -4
- package/build-style/post-comments/style.css +6 -4
- package/build-style/post-comments-form/editor-rtl.css +79 -0
- package/build-style/post-comments-form/editor.css +79 -0
- package/build-style/style-rtl.css +12 -9
- package/build-style/style.css +14 -9
- package/package.json +28 -28
- package/src/audio/edit.js +2 -7
- package/src/button/edit.native.js +6 -3
- package/src/comment-author-name/index.php +7 -5
- package/src/comment-content/index.php +25 -3
- package/src/comment-content/style.scss +5 -0
- package/src/comment-edit-link/index.php +1 -4
- package/src/comment-reply-link/index.php +1 -4
- package/src/comment-template/edit.js +1 -5
- package/src/comment-template/index.php +4 -0
- package/src/{comments-query-loop → comments}/block.json +1 -1
- package/src/{comments-query-loop → comments}/edit/comments-inspector-controls.js +0 -0
- package/src/{comments-query-loop → comments}/edit.js +2 -1
- package/src/{comments-query-loop → comments}/editor.scss +0 -0
- package/src/{comments-query-loop → comments}/index.js +0 -0
- package/src/{comments-query-loop → comments}/save.js +1 -3
- package/src/comments-pagination/index.php +4 -0
- package/src/comments-title/edit.js +20 -4
- package/src/comments-title/index.php +18 -7
- package/src/cover/edit.js +2 -67
- package/src/cover/edit.native.js +40 -13
- package/src/cover/index.php +1 -1
- package/src/cover/style.native.scss +4 -0
- package/src/cover/style.scss +1 -5
- package/src/cover/test/__snapshots__/edit.native.js.snap +6 -6
- package/src/cover/test/transforms.js +301 -0
- package/src/cover/transforms.js +112 -7
- package/src/cover/use-cover-is-dark.js +71 -0
- package/src/cover/use-cover-is-dark.native.js +51 -0
- package/src/editor.scss +3 -1
- package/src/group/block.json +1 -0
- package/src/heading/transforms.js +4 -3
- package/src/index.js +3 -6
- package/src/latest-posts/edit.native.js +56 -1
- package/src/latest-posts/style.scss +4 -0
- package/src/navigation/block.json +0 -1
- package/src/navigation/edit/index.js +6 -36
- package/src/navigation/edit/inner-blocks.js +5 -7
- package/src/navigation/style.scss +3 -0
- package/src/navigation/view-modal.js +32 -0
- package/src/navigation-link/edit.js +40 -43
- package/src/navigation-submenu/edit.js +13 -17
- package/src/paragraph/edit.js +6 -0
- package/src/paragraph/use-enter.js +103 -0
- package/src/post-author/index.php +1 -1
- package/src/post-comment/block.json +1 -1
- package/src/post-comments/block.json +3 -2
- package/src/post-comments/edit.js +174 -44
- package/src/post-comments/editor.scss +3 -0
- package/src/post-comments/index.php +2 -0
- package/src/post-comments/style.scss +6 -7
- package/src/post-comments-form/block.json +1 -0
- package/src/post-comments-form/edit.js +52 -23
- package/src/post-comments-form/editor.scss +3 -0
- package/src/post-comments-form/form.js +43 -0
- package/src/post-comments-form/index.php +9 -2
- package/src/post-content/edit.js +15 -1
- package/src/post-excerpt/edit.js +14 -1
- package/src/post-terms/block.json +8 -0
- package/src/post-terms/edit.js +28 -1
- package/src/post-terms/index.php +12 -2
- package/src/query-no-results/edit.js +1 -1
- package/src/quote/block.json +1 -0
- package/src/separator/block.json +3 -0
- package/src/video/edit.js +3 -4
- package/build/comments-query-loop/edit/comments-inspector-controls.js.map +0 -1
- package/build/comments-query-loop/edit.js.map +0 -1
- package/build/comments-query-loop/index.js.map +0 -1
- package/build/comments-query-loop/save.js.map +0 -1
- package/build/navigation-area/edit.js +0 -110
- package/build/navigation-area/edit.js.map +0 -1
- package/build/navigation-area/index.js +0 -62
- package/build/navigation-area/index.js.map +0 -1
- package/build/navigation-area/inner-blocks.js +0 -34
- package/build/navigation-area/inner-blocks.js.map +0 -1
- package/build/navigation-area/save.js +0 -18
- package/build/navigation-area/save.js.map +0 -1
- package/build-module/comments-query-loop/edit.js.map +0 -1
- package/build-module/comments-query-loop/index.js.map +0 -1
- package/build-module/comments-query-loop/save.js.map +0 -1
- package/build-module/navigation-area/edit.js +0 -94
- package/build-module/navigation-area/edit.js.map +0 -1
- package/build-module/navigation-area/index.js +0 -48
- package/build-module/navigation-area/index.js.map +0 -1
- package/build-module/navigation-area/inner-blocks.js +0 -26
- package/build-module/navigation-area/inner-blocks.js.map +0 -1
- package/build-module/navigation-area/save.js +0 -10
- package/build-module/navigation-area/save.js.map +0 -1
- package/src/navigation-area/block.json +0 -23
- package/src/navigation-area/edit.js +0 -111
- package/src/navigation-area/index.js +0 -26
- package/src/navigation-area/index.php +0 -22
- package/src/navigation-area/inner-blocks.js +0 -24
- package/src/navigation-area/save.js +0 -8
|
@@ -150,9 +150,11 @@
|
|
|
150
150
|
}
|
|
151
151
|
.wp-block-latest-posts__featured-image.alignleft {
|
|
152
152
|
margin-right: 1em;
|
|
153
|
+
float: left;
|
|
153
154
|
}
|
|
154
155
|
.wp-block-latest-posts__featured-image.alignright {
|
|
155
156
|
margin-left: 1em;
|
|
157
|
+
float: right;
|
|
156
158
|
}
|
|
157
159
|
.wp-block-latest-posts__featured-image.aligncenter {
|
|
158
160
|
margin-bottom: 1em;
|
|
@@ -153,10 +153,14 @@
|
|
|
153
153
|
.wp-block-latest-posts__featured-image.alignleft {
|
|
154
154
|
/*rtl:ignore*/
|
|
155
155
|
margin-right: 1em;
|
|
156
|
+
/*rtl:ignore*/
|
|
157
|
+
float: left;
|
|
156
158
|
}
|
|
157
159
|
.wp-block-latest-posts__featured-image.alignright {
|
|
158
160
|
/*rtl:ignore*/
|
|
159
161
|
margin-left: 1em;
|
|
162
|
+
/*rtl:ignore*/
|
|
163
|
+
float: right;
|
|
160
164
|
}
|
|
161
165
|
.wp-block-latest-posts__featured-image.aligncenter {
|
|
162
166
|
margin-bottom: 1em;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colors
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Breakpoints & Media Queries
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* SCSS Variables.
|
|
9
|
+
*
|
|
10
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
11
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
12
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Colors
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Fonts & basic variables.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Grid System.
|
|
22
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Dimensions.
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Shadows.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Editor widths.
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Block & Editor UI.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Block paddings.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* React Native specific.
|
|
41
|
+
* These variables do not appear to be used anywhere else.
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* Converts a hex value into the rgb equivalent.
|
|
45
|
+
*
|
|
46
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
47
|
+
* @return {string} comma separated rgb values
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* Breakpoint mixins
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* Long content fade mixin
|
|
54
|
+
*
|
|
55
|
+
* Creates a fading overlay to signify that the content is longer
|
|
56
|
+
* than the space allows.
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* Focus styles.
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Applies editor left position to the selector passed as argument
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* Styles that are reused verbatim in a few places
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Reset default styles for JavaScript UI based pages.
|
|
72
|
+
* This is a WP-admin agnostic reset
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
|
+
*/
|
|
77
|
+
.wp-block-post-comments__placeholder * {
|
|
78
|
+
pointer-events: none;
|
|
79
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colors
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Breakpoints & Media Queries
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* SCSS Variables.
|
|
9
|
+
*
|
|
10
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
11
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
12
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Colors
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Fonts & basic variables.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Grid System.
|
|
22
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Dimensions.
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Shadows.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Editor widths.
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Block & Editor UI.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Block paddings.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* React Native specific.
|
|
41
|
+
* These variables do not appear to be used anywhere else.
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* Converts a hex value into the rgb equivalent.
|
|
45
|
+
*
|
|
46
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
47
|
+
* @return {string} comma separated rgb values
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* Breakpoint mixins
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* Long content fade mixin
|
|
54
|
+
*
|
|
55
|
+
* Creates a fading overlay to signify that the content is longer
|
|
56
|
+
* than the space allows.
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* Focus styles.
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Applies editor left position to the selector passed as argument
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* Styles that are reused verbatim in a few places
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Reset default styles for JavaScript UI based pages.
|
|
72
|
+
* This is a WP-admin agnostic reset
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
|
+
*/
|
|
77
|
+
.wp-block-post-comments__placeholder * {
|
|
78
|
+
pointer-events: none;
|
|
79
|
+
}
|
|
@@ -74,10 +74,8 @@
|
|
|
74
74
|
/**
|
|
75
75
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
76
|
*/
|
|
77
|
-
.wp-block-post-comments > h3:first-of-type {
|
|
78
|
-
margin-top: 0;
|
|
79
|
-
}
|
|
80
77
|
.wp-block-post-comments .commentlist {
|
|
78
|
+
clear: both;
|
|
81
79
|
list-style: none;
|
|
82
80
|
margin: 0;
|
|
83
81
|
padding: 0;
|
|
@@ -114,11 +112,15 @@
|
|
|
114
112
|
.wp-block-post-comments .comment-meta {
|
|
115
113
|
font-size: 0.875em;
|
|
116
114
|
line-height: 1.5;
|
|
117
|
-
margin-right: -3.25em;
|
|
118
115
|
}
|
|
119
116
|
.wp-block-post-comments .comment-meta b {
|
|
120
117
|
font-weight: normal;
|
|
121
118
|
}
|
|
119
|
+
.wp-block-post-comments .comment-meta .comment-awaiting-moderation {
|
|
120
|
+
margin-top: 1em;
|
|
121
|
+
margin-bottom: 1em;
|
|
122
|
+
display: block;
|
|
123
|
+
}
|
|
122
124
|
.wp-block-post-comments .comment-body .commentmetadata {
|
|
123
125
|
font-size: 0.875em;
|
|
124
126
|
}
|
|
@@ -74,10 +74,8 @@
|
|
|
74
74
|
/**
|
|
75
75
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
76
|
*/
|
|
77
|
-
.wp-block-post-comments > h3:first-of-type {
|
|
78
|
-
margin-top: 0;
|
|
79
|
-
}
|
|
80
77
|
.wp-block-post-comments .commentlist {
|
|
78
|
+
clear: both;
|
|
81
79
|
list-style: none;
|
|
82
80
|
margin: 0;
|
|
83
81
|
padding: 0;
|
|
@@ -114,11 +112,15 @@
|
|
|
114
112
|
.wp-block-post-comments .comment-meta {
|
|
115
113
|
font-size: 0.875em;
|
|
116
114
|
line-height: 1.5;
|
|
117
|
-
margin-left: -3.25em;
|
|
118
115
|
}
|
|
119
116
|
.wp-block-post-comments .comment-meta b {
|
|
120
117
|
font-weight: normal;
|
|
121
118
|
}
|
|
119
|
+
.wp-block-post-comments .comment-meta .comment-awaiting-moderation {
|
|
120
|
+
margin-top: 1em;
|
|
121
|
+
margin-bottom: 1em;
|
|
122
|
+
display: block;
|
|
123
|
+
}
|
|
122
124
|
.wp-block-post-comments .comment-body .commentmetadata {
|
|
123
125
|
font-size: 0.875em;
|
|
124
126
|
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colors
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Breakpoints & Media Queries
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* SCSS Variables.
|
|
9
|
+
*
|
|
10
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
11
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
12
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Colors
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Fonts & basic variables.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Grid System.
|
|
22
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Dimensions.
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Shadows.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Editor widths.
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Block & Editor UI.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Block paddings.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* React Native specific.
|
|
41
|
+
* These variables do not appear to be used anywhere else.
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* Converts a hex value into the rgb equivalent.
|
|
45
|
+
*
|
|
46
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
47
|
+
* @return {string} comma separated rgb values
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* Breakpoint mixins
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* Long content fade mixin
|
|
54
|
+
*
|
|
55
|
+
* Creates a fading overlay to signify that the content is longer
|
|
56
|
+
* than the space allows.
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* Focus styles.
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Applies editor left position to the selector passed as argument
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* Styles that are reused verbatim in a few places
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Reset default styles for JavaScript UI based pages.
|
|
72
|
+
* This is a WP-admin agnostic reset
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
|
+
*/
|
|
77
|
+
.wp-block-post-comments-form * {
|
|
78
|
+
pointer-events: none;
|
|
79
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colors
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Breakpoints & Media Queries
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* SCSS Variables.
|
|
9
|
+
*
|
|
10
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
11
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
12
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Colors
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Fonts & basic variables.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Grid System.
|
|
22
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Dimensions.
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Shadows.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Editor widths.
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Block & Editor UI.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Block paddings.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* React Native specific.
|
|
41
|
+
* These variables do not appear to be used anywhere else.
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* Converts a hex value into the rgb equivalent.
|
|
45
|
+
*
|
|
46
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
47
|
+
* @return {string} comma separated rgb values
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* Breakpoint mixins
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* Long content fade mixin
|
|
54
|
+
*
|
|
55
|
+
* Creates a fading overlay to signify that the content is longer
|
|
56
|
+
* than the space allows.
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* Focus styles.
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Applies editor left position to the selector passed as argument
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* Styles that are reused verbatim in a few places
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Reset default styles for JavaScript UI based pages.
|
|
72
|
+
* This is a WP-admin agnostic reset
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
|
+
*/
|
|
77
|
+
.wp-block-post-comments-form * {
|
|
78
|
+
pointer-events: none;
|
|
79
|
+
}
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
.wp-block-cover.has-parallax {
|
|
418
418
|
background-attachment: fixed;
|
|
419
419
|
}
|
|
420
|
-
@supports (-webkit-
|
|
420
|
+
@supports (-webkit-touch-callout: inherit) {
|
|
421
421
|
.wp-block-cover-image.has-parallax,
|
|
422
422
|
.wp-block-cover.has-parallax {
|
|
423
423
|
background-attachment: scroll;
|
|
@@ -609,10 +609,6 @@
|
|
|
609
609
|
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100 {
|
|
610
610
|
opacity: 1;
|
|
611
611
|
}
|
|
612
|
-
.wp-block-cover-image .block-library-cover__padding-visualizer,
|
|
613
|
-
.wp-block-cover .block-library-cover__padding-visualizer {
|
|
614
|
-
z-index: 2;
|
|
615
|
-
}
|
|
616
612
|
.wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
|
|
617
613
|
.wp-block-cover.alignleft,
|
|
618
614
|
.wp-block-cover.alignright {
|
|
@@ -1435,9 +1431,11 @@ ol.wp-block-latest-comments {
|
|
|
1435
1431
|
}
|
|
1436
1432
|
.wp-block-latest-posts__featured-image.alignleft {
|
|
1437
1433
|
margin-right: 1em;
|
|
1434
|
+
float: left;
|
|
1438
1435
|
}
|
|
1439
1436
|
.wp-block-latest-posts__featured-image.alignright {
|
|
1440
1437
|
margin-left: 1em;
|
|
1438
|
+
float: right;
|
|
1441
1439
|
}
|
|
1442
1440
|
.wp-block-latest-posts__featured-image.aligncenter {
|
|
1443
1441
|
margin-bottom: 1em;
|
|
@@ -1751,6 +1749,9 @@ button.wp-block-navigation-item__content {
|
|
|
1751
1749
|
font-size: inherit;
|
|
1752
1750
|
font-family: inherit;
|
|
1753
1751
|
line-height: inherit;
|
|
1752
|
+
font-style: inherit;
|
|
1753
|
+
font-weight: inherit;
|
|
1754
|
+
text-transform: inherit;
|
|
1754
1755
|
text-align: right;
|
|
1755
1756
|
}
|
|
1756
1757
|
|
|
@@ -2099,10 +2100,8 @@ p.has-background {
|
|
|
2099
2100
|
margin: 0;
|
|
2100
2101
|
}
|
|
2101
2102
|
|
|
2102
|
-
.wp-block-post-comments > h3:first-of-type {
|
|
2103
|
-
margin-top: 0;
|
|
2104
|
-
}
|
|
2105
2103
|
.wp-block-post-comments .commentlist {
|
|
2104
|
+
clear: both;
|
|
2106
2105
|
list-style: none;
|
|
2107
2106
|
margin: 0;
|
|
2108
2107
|
padding: 0;
|
|
@@ -2139,11 +2138,15 @@ p.has-background {
|
|
|
2139
2138
|
.wp-block-post-comments .comment-meta {
|
|
2140
2139
|
font-size: 0.875em;
|
|
2141
2140
|
line-height: 1.5;
|
|
2142
|
-
margin-right: -3.25em;
|
|
2143
2141
|
}
|
|
2144
2142
|
.wp-block-post-comments .comment-meta b {
|
|
2145
2143
|
font-weight: normal;
|
|
2146
2144
|
}
|
|
2145
|
+
.wp-block-post-comments .comment-meta .comment-awaiting-moderation {
|
|
2146
|
+
margin-top: 1em;
|
|
2147
|
+
margin-bottom: 1em;
|
|
2148
|
+
display: block;
|
|
2149
|
+
}
|
|
2147
2150
|
.wp-block-post-comments .comment-body .commentmetadata {
|
|
2148
2151
|
font-size: 0.875em;
|
|
2149
2152
|
}
|
package/build-style/style.css
CHANGED
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
.wp-block-cover.has-parallax {
|
|
423
423
|
background-attachment: fixed;
|
|
424
424
|
}
|
|
425
|
-
@supports (-webkit-
|
|
425
|
+
@supports (-webkit-touch-callout: inherit) {
|
|
426
426
|
.wp-block-cover-image.has-parallax,
|
|
427
427
|
.wp-block-cover.has-parallax {
|
|
428
428
|
background-attachment: scroll;
|
|
@@ -614,10 +614,6 @@
|
|
|
614
614
|
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100 {
|
|
615
615
|
opacity: 1;
|
|
616
616
|
}
|
|
617
|
-
.wp-block-cover-image .block-library-cover__padding-visualizer,
|
|
618
|
-
.wp-block-cover .block-library-cover__padding-visualizer {
|
|
619
|
-
z-index: 2;
|
|
620
|
-
}
|
|
621
617
|
.wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
|
|
622
618
|
.wp-block-cover.alignleft,
|
|
623
619
|
.wp-block-cover.alignright {
|
|
@@ -1448,10 +1444,14 @@ ol.wp-block-latest-comments {
|
|
|
1448
1444
|
.wp-block-latest-posts__featured-image.alignleft {
|
|
1449
1445
|
/*rtl:ignore*/
|
|
1450
1446
|
margin-right: 1em;
|
|
1447
|
+
/*rtl:ignore*/
|
|
1448
|
+
float: left;
|
|
1451
1449
|
}
|
|
1452
1450
|
.wp-block-latest-posts__featured-image.alignright {
|
|
1453
1451
|
/*rtl:ignore*/
|
|
1454
1452
|
margin-left: 1em;
|
|
1453
|
+
/*rtl:ignore*/
|
|
1454
|
+
float: right;
|
|
1455
1455
|
}
|
|
1456
1456
|
.wp-block-latest-posts__featured-image.aligncenter {
|
|
1457
1457
|
margin-bottom: 1em;
|
|
@@ -1775,6 +1775,9 @@ button.wp-block-navigation-item__content {
|
|
|
1775
1775
|
font-size: inherit;
|
|
1776
1776
|
font-family: inherit;
|
|
1777
1777
|
line-height: inherit;
|
|
1778
|
+
font-style: inherit;
|
|
1779
|
+
font-weight: inherit;
|
|
1780
|
+
text-transform: inherit;
|
|
1778
1781
|
text-align: left;
|
|
1779
1782
|
}
|
|
1780
1783
|
|
|
@@ -2123,10 +2126,8 @@ p.has-background {
|
|
|
2123
2126
|
margin: 0;
|
|
2124
2127
|
}
|
|
2125
2128
|
|
|
2126
|
-
.wp-block-post-comments > h3:first-of-type {
|
|
2127
|
-
margin-top: 0;
|
|
2128
|
-
}
|
|
2129
2129
|
.wp-block-post-comments .commentlist {
|
|
2130
|
+
clear: both;
|
|
2130
2131
|
list-style: none;
|
|
2131
2132
|
margin: 0;
|
|
2132
2133
|
padding: 0;
|
|
@@ -2163,11 +2164,15 @@ p.has-background {
|
|
|
2163
2164
|
.wp-block-post-comments .comment-meta {
|
|
2164
2165
|
font-size: 0.875em;
|
|
2165
2166
|
line-height: 1.5;
|
|
2166
|
-
margin-left: -3.25em;
|
|
2167
2167
|
}
|
|
2168
2168
|
.wp-block-post-comments .comment-meta b {
|
|
2169
2169
|
font-weight: normal;
|
|
2170
2170
|
}
|
|
2171
|
+
.wp-block-post-comments .comment-meta .comment-awaiting-moderation {
|
|
2172
|
+
margin-top: 1em;
|
|
2173
|
+
margin-bottom: 1em;
|
|
2174
|
+
display: block;
|
|
2175
|
+
}
|
|
2171
2176
|
.wp-block-post-comments .comment-body .commentmetadata {
|
|
2172
2177
|
font-size: 0.875em;
|
|
2173
2178
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -33,32 +33,32 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/runtime": "^7.16.0",
|
|
36
|
-
"@wordpress/a11y": "^3.
|
|
37
|
-
"@wordpress/api-fetch": "^6.
|
|
38
|
-
"@wordpress/autop": "^3.
|
|
39
|
-
"@wordpress/blob": "^3.
|
|
40
|
-
"@wordpress/block-editor": "^
|
|
41
|
-
"@wordpress/blocks": "^11.
|
|
42
|
-
"@wordpress/components": "^19.
|
|
43
|
-
"@wordpress/compose": "^5.
|
|
44
|
-
"@wordpress/core-data": "^4.
|
|
45
|
-
"@wordpress/data": "^6.
|
|
46
|
-
"@wordpress/date": "^4.
|
|
47
|
-
"@wordpress/deprecated": "^3.
|
|
48
|
-
"@wordpress/dom": "^3.
|
|
49
|
-
"@wordpress/element": "^4.
|
|
50
|
-
"@wordpress/hooks": "^3.
|
|
51
|
-
"@wordpress/html-entities": "^3.
|
|
52
|
-
"@wordpress/i18n": "^4.
|
|
53
|
-
"@wordpress/icons": "^8.
|
|
54
|
-
"@wordpress/keycodes": "^3.
|
|
55
|
-
"@wordpress/notices": "^3.
|
|
56
|
-
"@wordpress/primitives": "^3.
|
|
57
|
-
"@wordpress/reusable-blocks": "^3.
|
|
58
|
-
"@wordpress/rich-text": "^5.
|
|
59
|
-
"@wordpress/server-side-render": "^3.
|
|
60
|
-
"@wordpress/url": "^3.
|
|
61
|
-
"@wordpress/viewport": "^4.
|
|
36
|
+
"@wordpress/a11y": "^3.8.0",
|
|
37
|
+
"@wordpress/api-fetch": "^6.5.0",
|
|
38
|
+
"@wordpress/autop": "^3.8.0",
|
|
39
|
+
"@wordpress/blob": "^3.8.0",
|
|
40
|
+
"@wordpress/block-editor": "^9.0.0",
|
|
41
|
+
"@wordpress/blocks": "^11.7.0",
|
|
42
|
+
"@wordpress/components": "^19.10.0",
|
|
43
|
+
"@wordpress/compose": "^5.6.0",
|
|
44
|
+
"@wordpress/core-data": "^4.6.0",
|
|
45
|
+
"@wordpress/data": "^6.8.0",
|
|
46
|
+
"@wordpress/date": "^4.8.0",
|
|
47
|
+
"@wordpress/deprecated": "^3.8.0",
|
|
48
|
+
"@wordpress/dom": "^3.8.0",
|
|
49
|
+
"@wordpress/element": "^4.6.0",
|
|
50
|
+
"@wordpress/hooks": "^3.8.0",
|
|
51
|
+
"@wordpress/html-entities": "^3.8.0",
|
|
52
|
+
"@wordpress/i18n": "^4.8.0",
|
|
53
|
+
"@wordpress/icons": "^8.4.0",
|
|
54
|
+
"@wordpress/keycodes": "^3.8.0",
|
|
55
|
+
"@wordpress/notices": "^3.8.0",
|
|
56
|
+
"@wordpress/primitives": "^3.6.0",
|
|
57
|
+
"@wordpress/reusable-blocks": "^3.6.0",
|
|
58
|
+
"@wordpress/rich-text": "^5.6.0",
|
|
59
|
+
"@wordpress/server-side-render": "^3.6.0",
|
|
60
|
+
"@wordpress/url": "^3.9.0",
|
|
61
|
+
"@wordpress/viewport": "^4.6.0",
|
|
62
62
|
"classnames": "^2.3.1",
|
|
63
63
|
"colord": "^2.7.0",
|
|
64
64
|
"fast-average-color": "4.3.0",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "4631d515033397fcfeda77e5755960253caef9bf"
|
|
78
78
|
}
|
package/src/audio/edit.js
CHANGED
|
@@ -62,13 +62,8 @@ function AudioEdit( {
|
|
|
62
62
|
if ( file ) {
|
|
63
63
|
mediaUpload( {
|
|
64
64
|
filesList: [ file ],
|
|
65
|
-
onFileChange: ( [
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
onError: ( e ) => {
|
|
69
|
-
setAttributes( { src: undefined, id: undefined } );
|
|
70
|
-
noticeOperations.createErrorNotice( e );
|
|
71
|
-
},
|
|
65
|
+
onFileChange: ( [ media ] ) => onSelectAudio( media ),
|
|
66
|
+
onError: ( e ) => onUploadError( e ),
|
|
72
67
|
allowedTypes: ALLOWED_MEDIA_TYPES,
|
|
73
68
|
} );
|
|
74
69
|
}
|
|
@@ -134,10 +134,13 @@ function ButtonEdit( props ) {
|
|
|
134
134
|
useEffect( () => {
|
|
135
135
|
// Blur `RichText` on Android when link settings sheet or button settings sheet is opened,
|
|
136
136
|
// to avoid flashing caret after closing one of them
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
const richText = richTextRef?.current;
|
|
138
|
+
if ( Platform.OS === 'android' && richText ) {
|
|
139
|
+
if ( editorSidebarOpened || isLinkSheetVisible ) {
|
|
140
|
+
richText.blur();
|
|
140
141
|
onToggleButtonFocus( false );
|
|
142
|
+
} else {
|
|
143
|
+
onToggleButtonFocus( true );
|
|
141
144
|
}
|
|
142
145
|
}
|
|
143
146
|
}, [ editorSidebarOpened, isLinkSheetVisible ] );
|