@wordpress/block-library 8.3.5 → 8.3.6
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/loginout/index.js +0 -1
- package/build/loginout/index.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 -10
- package/build/navigation-link/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/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 +29 -6
- package/build/template-part/edit/import-controls.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/loginout/index.js +0 -1
- package/build-module/loginout/index.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 -10
- package/build-module/navigation-link/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/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 +28 -6
- package/build-module/template-part/edit/import-controls.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 +3 -2
- package/build-style/editor.css +3 -2
- 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/loginout/block.json +0 -1
- package/src/navigation/block.json +0 -1
- package/src/navigation-link/edit.js +5 -10
- package/src/page-list/block.json +0 -1
- 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/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 +24 -5
- package/src/term-description/block.json +0 -1
|
@@ -315,17 +315,12 @@ export default function NavigationLinkEdit( {
|
|
|
315
315
|
*/
|
|
316
316
|
function removeLink() {
|
|
317
317
|
// 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
318
|
setAttributes( {
|
|
323
|
-
url:
|
|
324
|
-
label:
|
|
325
|
-
id:
|
|
326
|
-
kind:
|
|
327
|
-
type:
|
|
328
|
-
opensInNewTab: false,
|
|
319
|
+
url: '',
|
|
320
|
+
label: '',
|
|
321
|
+
id: '',
|
|
322
|
+
kind: '',
|
|
323
|
+
type: '',
|
|
329
324
|
} );
|
|
330
325
|
|
|
331
326
|
// Close the link editing UI.
|
package/src/page-list/block.json
CHANGED
package/src/post-date/block.json
CHANGED
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
"usesContext": [ "postId", "postType", "queryId" ],
|
|
54
54
|
"supports": {
|
|
55
55
|
"align": [ "left", "right", "center", "wide", "full" ],
|
|
56
|
-
"anchor": true,
|
|
57
56
|
"color": {
|
|
58
57
|
"__experimentalDuotone": "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",
|
|
59
58
|
"text": false,
|
package/src/query/block.json
CHANGED
package/src/query/editor.scss
CHANGED
package/src/read-more/block.json
CHANGED
package/src/rss/block.json
CHANGED
package/src/search/block.json
CHANGED
package/src/site-logo/block.json
CHANGED
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
// Provide special styling for the placeholder.
|
|
34
34
|
// @todo: this particular minimal style of placeholder could be componentized further.
|
|
35
35
|
.wp-block-site-logo.wp-block-site-logo {
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
&.is-default-size .components-placeholder {
|
|
38
|
-
height:
|
|
39
|
-
width:
|
|
38
|
+
height: 60px;
|
|
39
|
+
width: 60px;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// Inherit radius.
|
package/src/social-links/edit.js
CHANGED
|
@@ -109,6 +109,7 @@ export function SocialLinksEdit( props ) {
|
|
|
109
109
|
allowedBlocks: ALLOWED_BLOCKS,
|
|
110
110
|
placeholder: isSelected ? SelectedSocialPlaceholder : SocialPlaceholder,
|
|
111
111
|
templateLock: false,
|
|
112
|
+
orientation: attributes.layout?.orientation ?? 'horizontal',
|
|
112
113
|
__experimentalAppenderTagName: 'li',
|
|
113
114
|
} );
|
|
114
115
|
|
package/src/tag-cloud/block.json
CHANGED
|
@@ -25,16 +25,25 @@ import { store as noticesStore } from '@wordpress/notices';
|
|
|
25
25
|
import { useCreateTemplatePartFromBlocks } from './utils/hooks';
|
|
26
26
|
import { transformWidgetToBlock } from './utils/transformers';
|
|
27
27
|
|
|
28
|
+
const SIDEBARS_QUERY = {
|
|
29
|
+
per_page: -1,
|
|
30
|
+
_fields: 'id,name,description,status,widgets',
|
|
31
|
+
};
|
|
32
|
+
|
|
28
33
|
export function TemplatePartImportControls( { area, setAttributes } ) {
|
|
29
34
|
const [ selectedSidebar, setSelectedSidebar ] = useState( '' );
|
|
30
35
|
const [ isBusy, setIsBusy ] = useState( false );
|
|
31
36
|
|
|
32
37
|
const registry = useRegistry();
|
|
33
|
-
const sidebars = useSelect( ( select ) => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
const { sidebars, hasResolved } = useSelect( ( select ) => {
|
|
39
|
+
const { getSidebars, hasFinishedResolution } = select( coreStore );
|
|
40
|
+
|
|
41
|
+
return {
|
|
42
|
+
sidebars: getSidebars( SIDEBARS_QUERY ),
|
|
43
|
+
hasResolved: hasFinishedResolution( 'getSidebars', [
|
|
44
|
+
SIDEBARS_QUERY,
|
|
45
|
+
] ),
|
|
46
|
+
};
|
|
38
47
|
}, [] );
|
|
39
48
|
const { createErrorNotice } = useDispatch( noticesStore );
|
|
40
49
|
|
|
@@ -67,6 +76,16 @@ export function TemplatePartImportControls( { area, setAttributes } ) {
|
|
|
67
76
|
];
|
|
68
77
|
}, [ sidebars ] );
|
|
69
78
|
|
|
79
|
+
// Render an empty node while data is loading to avoid SlotFill re-positioning bug.
|
|
80
|
+
// See: https://github.com/WordPress/gutenberg/issues/15641.
|
|
81
|
+
if ( ! hasResolved ) {
|
|
82
|
+
return <Spacer marginBottom="0" />;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if ( hasResolved && ! options.length ) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
|
|
70
89
|
async function createFromWidgets( event ) {
|
|
71
90
|
event.preventDefault();
|
|
72
91
|
|