@wordpress/block-library 8.3.5 → 8.3.7
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/build/archives/index.js +0 -1
- package/build/archives/index.js.map +1 -1
- package/build/avatar/index.js +0 -1
- package/build/avatar/index.js.map +1 -1
- package/build/calendar/index.js +0 -1
- package/build/calendar/index.js.map +1 -1
- package/build/categories/index.js +0 -1
- package/build/categories/index.js.map +1 -1
- package/build/comment-author-avatar/index.js +0 -1
- package/build/comment-author-avatar/index.js.map +1 -1
- package/build/comment-author-name/index.js +0 -1
- package/build/comment-author-name/index.js.map +1 -1
- package/build/comment-content/index.js +0 -1
- package/build/comment-content/index.js.map +1 -1
- package/build/comment-date/index.js +0 -1
- package/build/comment-date/index.js.map +1 -1
- package/build/comment-edit-link/index.js +0 -1
- package/build/comment-edit-link/index.js.map +1 -1
- package/build/comment-reply-link/index.js +0 -1
- package/build/comment-reply-link/index.js.map +1 -1
- package/build/comment-template/index.js +0 -1
- package/build/comment-template/index.js.map +1 -1
- package/build/comments/index.js +1 -2
- package/build/comments/index.js.map +1 -1
- package/build/comments-pagination/index.js +0 -1
- package/build/comments-pagination/index.js.map +1 -1
- package/build/comments-pagination-next/index.js +0 -1
- package/build/comments-pagination-next/index.js.map +1 -1
- package/build/comments-pagination-numbers/index.js +0 -1
- package/build/comments-pagination-numbers/index.js.map +1 -1
- package/build/comments-pagination-previous/index.js +0 -1
- package/build/comments-pagination-previous/index.js.map +1 -1
- package/build/home-link/index.js +0 -1
- package/build/home-link/index.js.map +1 -1
- package/build/latest-comments/index.js +0 -1
- package/build/latest-comments/index.js.map +1 -1
- package/build/latest-posts/deprecated.js +0 -1
- package/build/latest-posts/deprecated.js.map +1 -1
- package/build/latest-posts/index.js +0 -1
- package/build/latest-posts/index.js.map +1 -1
- package/build/list-item/hooks/use-outdent-list-item.js +2 -1
- package/build/list-item/hooks/use-outdent-list-item.js.map +1 -1
- package/build/loginout/index.js +0 -1
- package/build/loginout/index.js.map +1 -1
- package/build/navigation/edit/index.js +4 -2
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/inner-blocks.js +4 -1
- package/build/navigation/edit/inner-blocks.js.map +1 -1
- package/build/navigation/edit/menu-inspector-controls.js +1 -1
- package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
- package/build/navigation/index.js +0 -1
- package/build/navigation/index.js.map +1 -1
- package/build/navigation-link/edit.js +5 -21
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-submenu/edit.js +1 -13
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/page-list/edit.js +5 -1
- package/build/page-list/edit.js.map +1 -1
- package/build/page-list/index.js +0 -1
- package/build/page-list/index.js.map +1 -1
- package/build/post-author/index.js +0 -1
- package/build/post-author/index.js.map +1 -1
- package/build/post-author-biography/index.js +0 -1
- package/build/post-author-biography/index.js.map +1 -1
- package/build/post-author-name/index.js +0 -1
- package/build/post-author-name/index.js.map +1 -1
- package/build/post-comments-count/index.js +0 -1
- package/build/post-comments-count/index.js.map +1 -1
- package/build/post-comments-form/index.js +0 -1
- package/build/post-comments-form/index.js.map +1 -1
- package/build/post-comments-link/index.js +0 -1
- package/build/post-comments-link/index.js.map +1 -1
- package/build/post-content/index.js +0 -1
- package/build/post-content/index.js.map +1 -1
- package/build/post-date/index.js +0 -1
- package/build/post-date/index.js.map +1 -1
- package/build/post-excerpt/index.js +0 -1
- package/build/post-excerpt/index.js.map +1 -1
- package/build/post-featured-image/index.js +0 -1
- package/build/post-featured-image/index.js.map +1 -1
- package/build/post-navigation-link/index.js +0 -1
- package/build/post-navigation-link/index.js.map +1 -1
- package/build/post-template/index.js +0 -1
- package/build/post-template/index.js.map +1 -1
- package/build/post-terms/index.js +0 -1
- package/build/post-terms/index.js.map +1 -1
- package/build/post-title/index.js +0 -1
- package/build/post-title/index.js.map +1 -1
- package/build/query/edit/query-placeholder.js +3 -2
- package/build/query/edit/query-placeholder.js.map +1 -1
- package/build/query/index.js +0 -1
- package/build/query/index.js.map +1 -1
- package/build/query/utils.js +0 -1
- package/build/query/utils.js.map +1 -1
- package/build/query-no-results/index.js +0 -1
- package/build/query-no-results/index.js.map +1 -1
- package/build/query-pagination/index.js +0 -1
- package/build/query-pagination/index.js.map +1 -1
- package/build/query-pagination-next/index.js +0 -1
- package/build/query-pagination-next/index.js.map +1 -1
- package/build/query-pagination-numbers/index.js +0 -1
- package/build/query-pagination-numbers/index.js.map +1 -1
- package/build/query-pagination-previous/index.js +0 -1
- package/build/query-pagination-previous/index.js.map +1 -1
- package/build/query-title/index.js +0 -1
- package/build/query-title/index.js.map +1 -1
- package/build/read-more/index.js +0 -1
- package/build/read-more/index.js.map +1 -1
- package/build/rss/index.js +0 -1
- package/build/rss/index.js.map +1 -1
- package/build/search/index.js +0 -1
- package/build/search/index.js.map +1 -1
- package/build/site-logo/index.js +0 -1
- package/build/site-logo/index.js.map +1 -1
- package/build/site-tagline/index.js +1 -1
- package/build/site-title/index.js +0 -1
- package/build/site-title/index.js.map +1 -1
- package/build/social-link/index.js +0 -1
- package/build/social-link/index.js.map +1 -1
- package/build/social-links/edit.js +2 -1
- package/build/social-links/edit.js.map +1 -1
- package/build/tag-cloud/index.js +0 -1
- package/build/tag-cloud/index.js.map +1 -1
- package/build/template-part/edit/import-controls.js +33 -30
- package/build/template-part/edit/import-controls.js.map +1 -1
- package/build/template-part/edit/utils/transformers.js +69 -19
- package/build/template-part/edit/utils/transformers.js.map +1 -1
- package/build/template-part/index.js +0 -1
- package/build/template-part/index.js.map +1 -1
- package/build/term-description/index.js +0 -1
- package/build/term-description/index.js.map +1 -1
- package/build-module/archives/index.js +0 -1
- package/build-module/archives/index.js.map +1 -1
- package/build-module/avatar/index.js +0 -1
- package/build-module/avatar/index.js.map +1 -1
- package/build-module/calendar/index.js +0 -1
- package/build-module/calendar/index.js.map +1 -1
- package/build-module/categories/index.js +0 -1
- package/build-module/categories/index.js.map +1 -1
- package/build-module/comment-author-avatar/index.js +0 -1
- package/build-module/comment-author-avatar/index.js.map +1 -1
- package/build-module/comment-author-name/index.js +0 -1
- package/build-module/comment-author-name/index.js.map +1 -1
- package/build-module/comment-content/index.js +0 -1
- package/build-module/comment-content/index.js.map +1 -1
- package/build-module/comment-date/index.js +0 -1
- package/build-module/comment-date/index.js.map +1 -1
- package/build-module/comment-edit-link/index.js +0 -1
- package/build-module/comment-edit-link/index.js.map +1 -1
- package/build-module/comment-reply-link/index.js +0 -1
- package/build-module/comment-reply-link/index.js.map +1 -1
- package/build-module/comment-template/index.js +0 -1
- package/build-module/comment-template/index.js.map +1 -1
- package/build-module/comments/index.js +1 -2
- package/build-module/comments/index.js.map +1 -1
- package/build-module/comments-pagination/index.js +0 -1
- package/build-module/comments-pagination/index.js.map +1 -1
- package/build-module/comments-pagination-next/index.js +0 -1
- package/build-module/comments-pagination-next/index.js.map +1 -1
- package/build-module/comments-pagination-numbers/index.js +0 -1
- package/build-module/comments-pagination-numbers/index.js.map +1 -1
- package/build-module/comments-pagination-previous/index.js +0 -1
- package/build-module/comments-pagination-previous/index.js.map +1 -1
- package/build-module/home-link/index.js +0 -1
- package/build-module/home-link/index.js.map +1 -1
- package/build-module/latest-comments/index.js +0 -1
- package/build-module/latest-comments/index.js.map +1 -1
- package/build-module/latest-posts/deprecated.js +0 -1
- package/build-module/latest-posts/deprecated.js.map +1 -1
- package/build-module/latest-posts/index.js +0 -1
- package/build-module/latest-posts/index.js.map +1 -1
- package/build-module/list-item/hooks/use-outdent-list-item.js +2 -1
- package/build-module/list-item/hooks/use-outdent-list-item.js.map +1 -1
- package/build-module/loginout/index.js +0 -1
- package/build-module/loginout/index.js.map +1 -1
- package/build-module/navigation/edit/index.js +4 -2
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/inner-blocks.js +4 -1
- package/build-module/navigation/edit/inner-blocks.js.map +1 -1
- package/build-module/navigation/edit/menu-inspector-controls.js +1 -1
- package/build-module/navigation/edit/menu-inspector-controls.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-link/edit.js +5 -21
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +1 -13
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/page-list/edit.js +5 -1
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/page-list/index.js +0 -1
- package/build-module/page-list/index.js.map +1 -1
- package/build-module/post-author/index.js +0 -1
- package/build-module/post-author/index.js.map +1 -1
- package/build-module/post-author-biography/index.js +0 -1
- package/build-module/post-author-biography/index.js.map +1 -1
- package/build-module/post-author-name/index.js +0 -1
- package/build-module/post-author-name/index.js.map +1 -1
- package/build-module/post-comments-count/index.js +0 -1
- package/build-module/post-comments-count/index.js.map +1 -1
- package/build-module/post-comments-form/index.js +0 -1
- package/build-module/post-comments-form/index.js.map +1 -1
- package/build-module/post-comments-link/index.js +0 -1
- package/build-module/post-comments-link/index.js.map +1 -1
- package/build-module/post-content/index.js +0 -1
- package/build-module/post-content/index.js.map +1 -1
- package/build-module/post-date/index.js +0 -1
- package/build-module/post-date/index.js.map +1 -1
- package/build-module/post-excerpt/index.js +0 -1
- package/build-module/post-excerpt/index.js.map +1 -1
- package/build-module/post-featured-image/index.js +0 -1
- package/build-module/post-featured-image/index.js.map +1 -1
- package/build-module/post-navigation-link/index.js +0 -1
- package/build-module/post-navigation-link/index.js.map +1 -1
- package/build-module/post-template/index.js +0 -1
- package/build-module/post-template/index.js.map +1 -1
- package/build-module/post-terms/index.js +0 -1
- package/build-module/post-terms/index.js.map +1 -1
- package/build-module/post-title/index.js +0 -1
- package/build-module/post-title/index.js.map +1 -1
- package/build-module/query/edit/query-placeholder.js +4 -3
- package/build-module/query/edit/query-placeholder.js.map +1 -1
- package/build-module/query/index.js +0 -1
- package/build-module/query/index.js.map +1 -1
- package/build-module/query/utils.js +0 -1
- package/build-module/query/utils.js.map +1 -1
- package/build-module/query-no-results/index.js +0 -1
- package/build-module/query-no-results/index.js.map +1 -1
- package/build-module/query-pagination/index.js +0 -1
- package/build-module/query-pagination/index.js.map +1 -1
- package/build-module/query-pagination-next/index.js +0 -1
- package/build-module/query-pagination-next/index.js.map +1 -1
- package/build-module/query-pagination-numbers/index.js +0 -1
- package/build-module/query-pagination-numbers/index.js.map +1 -1
- package/build-module/query-pagination-previous/index.js +0 -1
- package/build-module/query-pagination-previous/index.js.map +1 -1
- package/build-module/query-title/index.js +0 -1
- package/build-module/query-title/index.js.map +1 -1
- package/build-module/read-more/index.js +0 -1
- package/build-module/read-more/index.js.map +1 -1
- package/build-module/rss/index.js +0 -1
- package/build-module/rss/index.js.map +1 -1
- package/build-module/search/index.js +0 -1
- package/build-module/search/index.js.map +1 -1
- package/build-module/site-logo/index.js +0 -1
- package/build-module/site-logo/index.js.map +1 -1
- package/build-module/site-tagline/index.js +1 -1
- package/build-module/site-title/index.js +0 -1
- package/build-module/site-title/index.js.map +1 -1
- package/build-module/social-link/index.js +0 -1
- package/build-module/social-link/index.js.map +1 -1
- package/build-module/social-links/edit.js +2 -1
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/tag-cloud/index.js +0 -1
- package/build-module/tag-cloud/index.js.map +1 -1
- package/build-module/template-part/edit/import-controls.js +32 -29
- package/build-module/template-part/edit/import-controls.js.map +1 -1
- package/build-module/template-part/edit/utils/transformers.js +69 -20
- package/build-module/template-part/edit/utils/transformers.js.map +1 -1
- package/build-module/template-part/index.js +0 -1
- package/build-module/template-part/index.js.map +1 -1
- package/build-module/term-description/index.js +0 -1
- package/build-module/term-description/index.js.map +1 -1
- package/build-style/editor-rtl.css +8 -3
- package/build-style/editor.css +8 -3
- package/build-style/navigation/editor-rtl.css +1 -1
- package/build-style/navigation/editor.css +1 -1
- package/build-style/page-list/editor-rtl.css +4 -0
- package/build-style/page-list/editor.css +4 -0
- package/build-style/query/editor-rtl.css +1 -0
- package/build-style/query/editor.css +1 -0
- package/build-style/site-logo/editor-rtl.css +2 -2
- package/build-style/site-logo/editor.css +2 -2
- package/package.json +6 -6
- package/src/archives/block.json +0 -1
- package/src/avatar/block.json +0 -1
- package/src/calendar/block.json +0 -1
- package/src/categories/block.json +0 -1
- package/src/comment-author-avatar/block.json +0 -1
- package/src/comment-author-name/block.json +0 -1
- package/src/comment-content/block.json +0 -1
- package/src/comment-date/block.json +0 -1
- package/src/comment-edit-link/block.json +0 -1
- package/src/comment-reply-link/block.json +0 -1
- package/src/comment-template/block.json +0 -1
- package/src/comments/block.json +1 -2
- package/src/comments-pagination/block.json +0 -1
- package/src/comments-pagination-next/block.json +0 -1
- package/src/comments-pagination-numbers/block.json +0 -1
- package/src/comments-pagination-previous/block.json +0 -1
- package/src/home-link/block.json +0 -1
- package/src/latest-comments/block.json +0 -1
- package/src/latest-posts/block.json +0 -1
- package/src/list-item/hooks/use-outdent-list-item.js +2 -1
- package/src/loginout/block.json +0 -1
- package/src/navigation/block.json +0 -1
- package/src/navigation/edit/index.js +3 -1
- package/src/navigation/edit/inner-blocks.js +3 -0
- package/src/navigation/edit/menu-inspector-controls.js +1 -3
- package/src/navigation/editor.scss +23 -20
- package/src/navigation/index.php +8 -6
- package/src/navigation-link/edit.js +5 -19
- package/src/navigation-link/index.php +4 -5
- package/src/navigation-submenu/edit.js +0 -10
- package/src/navigation-submenu/index.php +23 -6
- package/src/page-list/block.json +0 -1
- package/src/page-list/edit.js +3 -1
- package/src/page-list/editor.scss +6 -0
- package/src/post-author/block.json +0 -1
- package/src/post-author-biography/block.json +0 -1
- package/src/post-author-name/block.json +0 -1
- package/src/post-comments-count/block.json +0 -1
- package/src/post-comments-form/block.json +0 -1
- package/src/post-comments-link/block.json +0 -1
- package/src/post-content/block.json +0 -1
- package/src/post-date/block.json +0 -1
- package/src/post-excerpt/block.json +0 -1
- package/src/post-featured-image/block.json +0 -1
- package/src/post-navigation-link/block.json +0 -1
- package/src/post-template/block.json +0 -1
- package/src/post-terms/block.json +0 -1
- package/src/post-title/block.json +0 -1
- package/src/query/block.json +0 -1
- package/src/query/edit/query-placeholder.js +10 -5
- package/src/query/editor.scss +1 -0
- package/src/query-no-results/block.json +0 -1
- package/src/query-pagination/block.json +0 -1
- package/src/query-pagination-next/block.json +0 -1
- package/src/query-pagination-numbers/block.json +0 -1
- package/src/query-pagination-previous/block.json +0 -1
- package/src/query-title/block.json +0 -1
- package/src/read-more/block.json +0 -1
- package/src/rss/block.json +0 -1
- package/src/search/block.json +0 -1
- package/src/site-logo/block.json +0 -1
- package/src/site-logo/editor.scss +3 -3
- package/src/site-tagline/block.json +1 -1
- package/src/site-title/block.json +0 -1
- package/src/social-link/block.json +0 -1
- package/src/social-links/edit.js +1 -0
- package/src/tag-cloud/block.json +0 -1
- package/src/template-part/block.json +0 -1
- package/src/template-part/edit/import-controls.js +26 -34
- package/src/template-part/edit/utils/transformers.js +96 -19
- package/src/term-description/block.json +0 -1
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder {
|
|
115
|
-
height:
|
|
116
|
-
width:
|
|
115
|
+
height: 60px;
|
|
116
|
+
width: 60px;
|
|
117
117
|
}
|
|
118
118
|
.wp-block-site-logo.wp-block-site-logo > div,
|
|
119
119
|
.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container {
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder {
|
|
115
|
-
height:
|
|
116
|
-
width:
|
|
115
|
+
height: 60px;
|
|
116
|
+
width: 60px;
|
|
117
117
|
}
|
|
118
118
|
.wp-block-site-logo.wp-block-site-logo > div,
|
|
119
119
|
.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.7",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"@wordpress/api-fetch": "^6.23.1",
|
|
36
36
|
"@wordpress/autop": "^3.26.1",
|
|
37
37
|
"@wordpress/blob": "^3.26.1",
|
|
38
|
-
"@wordpress/block-editor": "^11.3.
|
|
38
|
+
"@wordpress/block-editor": "^11.3.7",
|
|
39
39
|
"@wordpress/blocks": "^12.3.3",
|
|
40
|
-
"@wordpress/components": "^23.3.
|
|
40
|
+
"@wordpress/components": "^23.3.5",
|
|
41
41
|
"@wordpress/compose": "^6.3.3",
|
|
42
42
|
"@wordpress/core-data": "^6.3.3",
|
|
43
43
|
"@wordpress/data": "^8.3.3",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"@wordpress/notices": "^3.26.3",
|
|
55
55
|
"@wordpress/primitives": "^3.24.2",
|
|
56
56
|
"@wordpress/private-apis": "^0.8.1",
|
|
57
|
-
"@wordpress/reusable-blocks": "^4.3.
|
|
57
|
+
"@wordpress/reusable-blocks": "^4.3.7",
|
|
58
58
|
"@wordpress/rich-text": "^6.3.3",
|
|
59
|
-
"@wordpress/server-side-render": "^4.3.
|
|
59
|
+
"@wordpress/server-side-render": "^4.3.5",
|
|
60
60
|
"@wordpress/url": "^3.27.1",
|
|
61
61
|
"@wordpress/viewport": "^5.3.3",
|
|
62
62
|
"change-case": "^4.1.2",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "d14fea64bd9ad9d2d86047936974dbed39a5b5b3"
|
|
81
81
|
}
|
package/src/archives/block.json
CHANGED
package/src/avatar/block.json
CHANGED
package/src/calendar/block.json
CHANGED
package/src/comments/block.json
CHANGED
|
@@ -18,8 +18,6 @@
|
|
|
18
18
|
},
|
|
19
19
|
"supports": {
|
|
20
20
|
"align": [ "wide", "full" ],
|
|
21
|
-
"anchor": true,
|
|
22
|
-
"html": false,
|
|
23
21
|
"color": {
|
|
24
22
|
"gradients": true,
|
|
25
23
|
"link": true,
|
|
@@ -29,6 +27,7 @@
|
|
|
29
27
|
"link": true
|
|
30
28
|
}
|
|
31
29
|
},
|
|
30
|
+
"html": false,
|
|
32
31
|
"spacing": {
|
|
33
32
|
"margin": true,
|
|
34
33
|
"padding": true
|
package/src/home-link/block.json
CHANGED
|
@@ -112,7 +112,8 @@ export default function useOutdentListItem( clientId ) {
|
|
|
112
112
|
getBlockIndex( parentListItemId ) + 1
|
|
113
113
|
);
|
|
114
114
|
if ( ! getBlockOrder( parentListId ).length ) {
|
|
115
|
-
|
|
115
|
+
const shouldSelectParent = false;
|
|
116
|
+
removeBlock( parentListId, shouldSelectParent );
|
|
116
117
|
}
|
|
117
118
|
} );
|
|
118
119
|
}, [] ),
|
package/src/loginout/block.json
CHANGED
|
@@ -850,7 +850,9 @@ function Navigation( {
|
|
|
850
850
|
|
|
851
851
|
{ isLoading && (
|
|
852
852
|
<TagName { ...blockProps }>
|
|
853
|
-
<
|
|
853
|
+
<div className="wp-block-navigation__loading-indicator-container">
|
|
854
|
+
<Spinner className="wp-block-navigation__loading-indicator" />
|
|
855
|
+
</div>
|
|
854
856
|
</TagName>
|
|
855
857
|
) }
|
|
856
858
|
|
|
@@ -89,9 +89,7 @@ const MenuInspectorControls = ( props ) => {
|
|
|
89
89
|
|
|
90
90
|
return (
|
|
91
91
|
<InspectorControls group="list">
|
|
92
|
-
<PanelBody
|
|
93
|
-
title={ process.env.IS_GUTENBERG_PLUGIN ? null : __( 'Menu' ) }
|
|
94
|
-
>
|
|
92
|
+
<PanelBody title={ null }>
|
|
95
93
|
<HStack className="wp-block-navigation-off-canvas-editor__header">
|
|
96
94
|
<Heading
|
|
97
95
|
className="wp-block-navigation-off-canvas-editor__title"
|
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// Only show the flyout on hover if the parent menu item is selected.
|
|
42
|
-
.wp-block-navigation:not(.is-selected):not(.has-child-selected)
|
|
43
|
-
.has-child:hover {
|
|
42
|
+
.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover {
|
|
44
43
|
> .wp-block-navigation__submenu-container {
|
|
45
44
|
opacity: 0;
|
|
46
45
|
visibility: hidden;
|
|
@@ -49,6 +48,7 @@
|
|
|
49
48
|
|
|
50
49
|
// Styles for submenu flyout.
|
|
51
50
|
.has-child {
|
|
51
|
+
|
|
52
52
|
&.is-selected,
|
|
53
53
|
&.has-child-selected {
|
|
54
54
|
> .wp-block-navigation__submenu-container {
|
|
@@ -76,8 +76,7 @@
|
|
|
76
76
|
flex-direction: column;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
.is-dragging-components-draggable
|
|
80
|
-
.wp-block-navigation-link > .wp-block-navigation__container {
|
|
79
|
+
.is-dragging-components-draggable .wp-block-navigation-link > .wp-block-navigation__container {
|
|
81
80
|
// Set opacity to 1 to still be able to show the draggable chip.
|
|
82
81
|
opacity: 1;
|
|
83
82
|
visibility: hidden;
|
|
@@ -117,6 +116,7 @@
|
|
|
117
116
|
*/
|
|
118
117
|
|
|
119
118
|
$colors-selector-size: 22px;
|
|
119
|
+
|
|
120
120
|
.block-library-colors-selector {
|
|
121
121
|
width: auto;
|
|
122
122
|
|
|
@@ -151,7 +151,7 @@ $colors-selector-size: 22px;
|
|
|
151
151
|
min-width: $colors-selector-size;
|
|
152
152
|
height: $colors-selector-size;
|
|
153
153
|
min-height: $colors-selector-size;
|
|
154
|
-
line-height: (
|
|
154
|
+
line-height: ($colors-selector-size - 2);
|
|
155
155
|
padding: 2px;
|
|
156
156
|
|
|
157
157
|
> svg {
|
|
@@ -161,6 +161,7 @@ $colors-selector-size: 22px;
|
|
|
161
161
|
|
|
162
162
|
// Styling icon color.
|
|
163
163
|
&.has-text-color {
|
|
164
|
+
|
|
164
165
|
> svg,
|
|
165
166
|
> svg path {
|
|
166
167
|
color: inherit;
|
|
@@ -171,6 +172,7 @@ $colors-selector-size: 22px;
|
|
|
171
172
|
|
|
172
173
|
// Colors Selector Popover.
|
|
173
174
|
$color-control-label-height: 20px;
|
|
175
|
+
|
|
174
176
|
.block-library-colors-selector__popover {
|
|
175
177
|
.color-palette-controller-container {
|
|
176
178
|
padding: 16px;
|
|
@@ -222,13 +224,16 @@ $color-control-label-height: 20px;
|
|
|
222
224
|
0% {
|
|
223
225
|
opacity: 1;
|
|
224
226
|
}
|
|
227
|
+
|
|
225
228
|
50% {
|
|
226
229
|
opacity: 0.5;
|
|
227
230
|
}
|
|
231
|
+
|
|
228
232
|
100% {
|
|
229
233
|
opacity: 1;
|
|
230
234
|
}
|
|
231
235
|
}
|
|
236
|
+
|
|
232
237
|
// Unstyle some inherited placeholder component styles.
|
|
233
238
|
.components-placeholder.wp-block-navigation-placeholder {
|
|
234
239
|
outline: none;
|
|
@@ -271,6 +276,7 @@ $color-control-label-height: 20px;
|
|
|
271
276
|
// against any background color.
|
|
272
277
|
color: currentColor;
|
|
273
278
|
background: transparent;
|
|
279
|
+
|
|
274
280
|
&::before {
|
|
275
281
|
content: "";
|
|
276
282
|
display: block;
|
|
@@ -338,6 +344,7 @@ $color-control-label-height: 20px;
|
|
|
338
344
|
// Hide the navigation indicator when in small contexts.
|
|
339
345
|
.is-small &,
|
|
340
346
|
.is-medium & {
|
|
347
|
+
|
|
341
348
|
.wp-block-navigation-placeholder__actions__indicator,
|
|
342
349
|
.wp-block-navigation-placeholder__actions__indicator + hr {
|
|
343
350
|
display: none;
|
|
@@ -427,15 +434,14 @@ $color-control-label-height: 20px;
|
|
|
427
434
|
}
|
|
428
435
|
}
|
|
429
436
|
}
|
|
437
|
+
|
|
430
438
|
// Emulate the fullscreen editing inside the editor.
|
|
431
439
|
// Most of this can be removed when the iframe lands.
|
|
432
440
|
|
|
433
441
|
// When not fullscreen.
|
|
434
442
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
435
443
|
position: fixed;
|
|
436
|
-
top:
|
|
437
|
-
$admin-bar-height-big + $header-height + $block-toolbar-height +
|
|
438
|
-
$border-width;
|
|
444
|
+
top: $admin-bar-height-big + $header-height + $block-toolbar-height + $border-width;
|
|
439
445
|
|
|
440
446
|
@include break-medium() {
|
|
441
447
|
top: $admin-bar-height + $header-height + $border-width;
|
|
@@ -445,6 +451,7 @@ $color-control-label-height: 20px;
|
|
|
445
451
|
@include break-medium() {
|
|
446
452
|
left: $admin-sidebar-width-collapsed;
|
|
447
453
|
}
|
|
454
|
+
|
|
448
455
|
@include break-large() {
|
|
449
456
|
left: $admin-sidebar-width;
|
|
450
457
|
}
|
|
@@ -452,17 +459,13 @@ $color-control-label-height: 20px;
|
|
|
452
459
|
|
|
453
460
|
.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
|
|
454
461
|
@include break-medium() {
|
|
455
|
-
top:
|
|
456
|
-
$admin-bar-height + $header-height + $block-toolbar-height +
|
|
457
|
-
$border-width;
|
|
462
|
+
top: $admin-bar-height + $header-height + $block-toolbar-height + $border-width;
|
|
458
463
|
}
|
|
459
464
|
}
|
|
460
465
|
|
|
461
466
|
.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
462
467
|
.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
463
|
-
top:
|
|
464
|
-
$admin-bar-height + $header-height + $block-toolbar-height +
|
|
465
|
-
$border-width;
|
|
468
|
+
top: $admin-bar-height + $header-height + $block-toolbar-height + $border-width;
|
|
466
469
|
}
|
|
467
470
|
|
|
468
471
|
.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open {
|
|
@@ -473,9 +476,7 @@ $color-control-label-height: 20px;
|
|
|
473
476
|
.is-fullscreen-mode {
|
|
474
477
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
475
478
|
left: 0; // Unset the value from non fullscreen mode.
|
|
476
|
-
top:
|
|
477
|
-
$admin-bar-height-big + $header-height + $block-toolbar-height +
|
|
478
|
-
$border-width;
|
|
479
|
+
top: $admin-bar-height-big + $header-height + $block-toolbar-height + $border-width;
|
|
479
480
|
|
|
480
481
|
@include break-medium() {
|
|
481
482
|
top: $header-height + $border-width;
|
|
@@ -495,8 +496,7 @@ $color-control-label-height: 20px;
|
|
|
495
496
|
}
|
|
496
497
|
|
|
497
498
|
// The iframe makes these rules a lot simpler.
|
|
498
|
-
body.editor-styles-wrapper
|
|
499
|
-
.wp-block-navigation__responsive-container.is-menu-open {
|
|
499
|
+
body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open {
|
|
500
500
|
top: 0;
|
|
501
501
|
right: 0;
|
|
502
502
|
bottom: 0;
|
|
@@ -536,6 +536,7 @@ body.editor-styles-wrapper
|
|
|
536
536
|
.components-heading.wp-block-navigation-off-canvas-editor__title {
|
|
537
537
|
margin: 0;
|
|
538
538
|
}
|
|
539
|
+
|
|
539
540
|
.wp-block-navigation-off-canvas-editor__header {
|
|
540
541
|
margin-bottom: $grid-unit-10;
|
|
541
542
|
}
|
|
@@ -552,6 +553,7 @@ body.editor-styles-wrapper
|
|
|
552
553
|
0% {
|
|
553
554
|
opacity: 0;
|
|
554
555
|
}
|
|
556
|
+
|
|
555
557
|
100% {
|
|
556
558
|
opacity: 1;
|
|
557
559
|
}
|
|
@@ -559,7 +561,7 @@ body.editor-styles-wrapper
|
|
|
559
561
|
|
|
560
562
|
// Space spinner to give it breathing
|
|
561
563
|
// room when block is selected and has focus outline.
|
|
562
|
-
.wp-block-
|
|
564
|
+
.wp-block-navigation__loading-indicator-container {
|
|
563
565
|
padding: $grid-unit-10 $grid-unit-15;
|
|
564
566
|
}
|
|
565
567
|
|
|
@@ -571,6 +573,7 @@ body.editor-styles-wrapper
|
|
|
571
573
|
0% {
|
|
572
574
|
opacity: 1;
|
|
573
575
|
}
|
|
576
|
+
|
|
574
577
|
100% {
|
|
575
578
|
opacity: 0.5;
|
|
576
579
|
}
|
package/src/navigation/index.php
CHANGED
|
@@ -373,12 +373,14 @@ function block_core_navigation_get_most_recently_published_navigation() {
|
|
|
373
373
|
|
|
374
374
|
// Default to the most recently created menu.
|
|
375
375
|
$parsed_args = array(
|
|
376
|
-
'post_type'
|
|
377
|
-
'no_found_rows'
|
|
378
|
-
'
|
|
379
|
-
'
|
|
380
|
-
'
|
|
381
|
-
'
|
|
376
|
+
'post_type' => 'wp_navigation',
|
|
377
|
+
'no_found_rows' => true,
|
|
378
|
+
'update_post_meta_cache' => false,
|
|
379
|
+
'update_post_term_cache' => false,
|
|
380
|
+
'order' => 'DESC',
|
|
381
|
+
'orderby' => 'date',
|
|
382
|
+
'post_status' => 'publish',
|
|
383
|
+
'posts_per_page' => 1, // get only the most recent.
|
|
382
384
|
);
|
|
383
385
|
|
|
384
386
|
$navigation_post = new WP_Query( $parsed_args );
|
|
@@ -225,15 +225,6 @@ export default function NavigationLinkEdit( {
|
|
|
225
225
|
[ clientId ]
|
|
226
226
|
);
|
|
227
227
|
|
|
228
|
-
useEffect( () => {
|
|
229
|
-
// This side-effect should not create an undo level as those should
|
|
230
|
-
// only be created via user interactions. Mark this change as
|
|
231
|
-
// not persistent to avoid undo level creation.
|
|
232
|
-
// See https://github.com/WordPress/gutenberg/issues/34564.
|
|
233
|
-
__unstableMarkNextChangeAsNotPersistent();
|
|
234
|
-
setAttributes( { isTopLevelLink } );
|
|
235
|
-
}, [ isTopLevelLink ] );
|
|
236
|
-
|
|
237
228
|
/**
|
|
238
229
|
* Transform to submenu block.
|
|
239
230
|
*/
|
|
@@ -315,17 +306,12 @@ export default function NavigationLinkEdit( {
|
|
|
315
306
|
*/
|
|
316
307
|
function removeLink() {
|
|
317
308
|
// Reset all attributes that comprise the link.
|
|
318
|
-
// It is critical that all attributes are reset
|
|
319
|
-
// to their default values otherwise this may
|
|
320
|
-
// in advertently trigger side effects because
|
|
321
|
-
// the values will have "changed".
|
|
322
309
|
setAttributes( {
|
|
323
|
-
url:
|
|
324
|
-
label:
|
|
325
|
-
id:
|
|
326
|
-
kind:
|
|
327
|
-
type:
|
|
328
|
-
opensInNewTab: false,
|
|
310
|
+
url: '',
|
|
311
|
+
label: '',
|
|
312
|
+
id: '',
|
|
313
|
+
kind: '',
|
|
314
|
+
type: '',
|
|
329
315
|
} );
|
|
330
316
|
|
|
331
317
|
// Close the link editing UI.
|
|
@@ -9,18 +9,17 @@
|
|
|
9
9
|
* Build an array with CSS classes and inline styles defining the colors
|
|
10
10
|
* which will be applied to the navigation markup in the front-end.
|
|
11
11
|
*
|
|
12
|
-
* @param array $context
|
|
13
|
-
* @param array $attributes
|
|
12
|
+
* @param array $context Navigation block context.
|
|
13
|
+
* @param array $attributes Block attributes.
|
|
14
|
+
* @param bool $is_sub_menu Whether the link is part of a sub-menu.
|
|
14
15
|
* @return array Colors CSS classes and inline styles.
|
|
15
16
|
*/
|
|
16
|
-
function block_core_navigation_link_build_css_colors( $context, $attributes ) {
|
|
17
|
+
function block_core_navigation_link_build_css_colors( $context, $attributes, $is_sub_menu = false ) {
|
|
17
18
|
$colors = array(
|
|
18
19
|
'css_classes' => array(),
|
|
19
20
|
'inline_styles' => '',
|
|
20
21
|
);
|
|
21
22
|
|
|
22
|
-
$is_sub_menu = isset( $attributes['isTopLevelLink'] ) ? ( ! $attributes['isTopLevelLink'] ) : false;
|
|
23
|
-
|
|
24
23
|
// Text color.
|
|
25
24
|
$named_text_color = null;
|
|
26
25
|
$custom_text_color = null;
|
|
@@ -224,16 +224,6 @@ export default function NavigationSubmenuEdit( {
|
|
|
224
224
|
}
|
|
225
225
|
}, [] );
|
|
226
226
|
|
|
227
|
-
// Store the colors from context as attributes for rendering.
|
|
228
|
-
useEffect( () => {
|
|
229
|
-
// This side-effect should not create an undo level as those should
|
|
230
|
-
// only be created via user interactions. Mark this change as
|
|
231
|
-
// not persistent to avoid undo level creation.
|
|
232
|
-
// See https://github.com/WordPress/gutenberg/issues/34564.
|
|
233
|
-
__unstableMarkNextChangeAsNotPersistent();
|
|
234
|
-
setAttributes( { isTopLevelItem } );
|
|
235
|
-
}, [ isTopLevelItem ] );
|
|
236
|
-
|
|
237
227
|
/**
|
|
238
228
|
* The hook shouldn't be necessary but due to a focus loss happening
|
|
239
229
|
* when selecting a suggestion in the link popover, we force close on block unselection.
|