@wordpress/block-library 9.7.0 → 9.7.1-next.5368f64a9.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/build/archives/edit.js +1 -1
- package/build/archives/edit.js.map +1 -1
- package/build/block/edit.js +2 -3
- package/build/block/edit.js.map +1 -1
- package/build/buttons/index.js +1 -1
- package/build/comments/edit/comments-legacy.js +2 -4
- package/build/comments/edit/comments-legacy.js.map +1 -1
- package/build/cover/deprecated.js +1 -1
- package/build/cover/deprecated.js.map +1 -1
- package/build/cover/edit/index.js +4 -2
- package/build/cover/edit/index.js.map +1 -1
- package/build/embed/edit.js +5 -11
- package/build/embed/edit.js.map +1 -1
- package/build/embed/embed-placeholder.js +4 -8
- package/build/embed/embed-placeholder.js.map +1 -1
- package/build/embed/embed-preview.js +16 -4
- package/build/embed/embed-preview.js.map +1 -1
- package/build/file/transforms.js +18 -4
- package/build/file/transforms.js.map +1 -1
- package/build/freeform/modal.js +6 -12
- package/build/freeform/modal.js.map +1 -1
- package/build/image/edit.js +55 -15
- package/build/image/edit.js.map +1 -1
- package/build/image/image.js +23 -20
- package/build/image/image.js.map +1 -1
- package/build/image/transforms.js +0 -13
- package/build/image/transforms.js.map +1 -1
- package/build/image/use-max-width-observer.js +35 -0
- package/build/image/use-max-width-observer.js.map +1 -0
- package/build/image/utils.js +11 -0
- package/build/image/utils.js.map +1 -1
- package/build/latest-posts/edit.js +1 -1
- package/build/latest-posts/edit.js.map +1 -1
- package/build/missing/edit.js +2 -4
- package/build/missing/edit.js.map +1 -1
- package/build/navigation/edit/deleted-navigation-warning.js +14 -10
- package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
- package/build/navigation/edit/index.js +2 -4
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/menu-inspector-controls.js +2 -1
- package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
- package/build/navigation/edit/navigation-menu-delete-control.js +2 -4
- package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
- package/build/navigation/edit/placeholder/index.js +2 -4
- package/build/navigation/edit/placeholder/index.js.map +1 -1
- package/build/navigation/edit/responsive-wrapper.js +4 -8
- package/build/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build/navigation-link/link-ui.js +2 -4
- package/build/navigation-link/link-ui.js.map +1 -1
- package/build/page-list/convert-to-links-modal.js +4 -8
- package/build/page-list/convert-to-links-modal.js.map +1 -1
- package/build/page-list/edit.js +2 -4
- package/build/page-list/edit.js.map +1 -1
- package/build/post-comments-form/form.js +2 -4
- package/build/post-comments-form/form.js.map +1 -1
- package/build/post-featured-image/edit.js +2 -4
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/post-title/index.js +4 -1
- package/build/post-title/index.js.map +1 -1
- package/build/query/edit/enhanced-pagination-modal.js +4 -6
- package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
- package/build/query/edit/inspector-controls/index.js +2 -10
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/query/edit/query-content.js +9 -3
- package/build/query/edit/query-content.js.map +1 -1
- package/build/query/edit/query-placeholder.js +4 -8
- package/build/query/edit/query-placeholder.js.map +1 -1
- package/build/site-logo/edit.js +4 -8
- package/build/site-logo/edit.js.map +1 -1
- package/build/site-title/index.js +4 -1
- package/build/site-title/index.js.map +1 -1
- package/build/social-link/edit.js +1 -1
- package/build/social-link/edit.js.map +1 -1
- package/build/template-part/edit/inner-blocks.js +10 -1
- package/build/template-part/edit/inner-blocks.js.map +1 -1
- package/build/template-part/edit/placeholder.js +4 -8
- package/build/template-part/edit/placeholder.js.map +1 -1
- package/build/video/edit.js +4 -8
- package/build/video/edit.js.map +1 -1
- package/build/video/tracks-editor.js +6 -12
- package/build/video/tracks-editor.js.map +1 -1
- package/build-module/archives/edit.js +1 -1
- package/build-module/archives/edit.js.map +1 -1
- package/build-module/block/edit.js +2 -3
- package/build-module/block/edit.js.map +1 -1
- package/build-module/buttons/index.js +1 -1
- package/build-module/comments/edit/comments-legacy.js +2 -4
- package/build-module/comments/edit/comments-legacy.js.map +1 -1
- package/build-module/cover/deprecated.js +1 -1
- package/build-module/cover/deprecated.js.map +1 -1
- package/build-module/cover/edit/index.js +4 -2
- package/build-module/cover/edit/index.js.map +1 -1
- package/build-module/embed/edit.js +6 -12
- package/build-module/embed/edit.js.map +1 -1
- package/build-module/embed/embed-placeholder.js +4 -8
- package/build-module/embed/embed-placeholder.js.map +1 -1
- package/build-module/embed/embed-preview.js +16 -4
- package/build-module/embed/embed-preview.js.map +1 -1
- package/build-module/file/transforms.js +18 -4
- package/build-module/file/transforms.js.map +1 -1
- package/build-module/freeform/modal.js +6 -12
- package/build-module/freeform/modal.js.map +1 -1
- package/build-module/image/edit.js +58 -18
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/image.js +23 -20
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/transforms.js +0 -13
- package/build-module/image/transforms.js.map +1 -1
- package/build-module/image/use-max-width-observer.js +29 -0
- package/build-module/image/use-max-width-observer.js.map +1 -0
- package/build-module/image/utils.js +11 -1
- package/build-module/image/utils.js.map +1 -1
- package/build-module/latest-posts/edit.js +1 -1
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/missing/edit.js +2 -4
- package/build-module/missing/edit.js.map +1 -1
- package/build-module/navigation/edit/deleted-navigation-warning.js +15 -11
- package/build-module/navigation/edit/deleted-navigation-warning.js.map +1 -1
- package/build-module/navigation/edit/index.js +2 -4
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/menu-inspector-controls.js +2 -1
- package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-delete-control.js +2 -4
- package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
- package/build-module/navigation/edit/placeholder/index.js +2 -4
- package/build-module/navigation/edit/placeholder/index.js.map +1 -1
- package/build-module/navigation/edit/responsive-wrapper.js +4 -8
- package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build-module/navigation-link/link-ui.js +2 -4
- package/build-module/navigation-link/link-ui.js.map +1 -1
- package/build-module/page-list/convert-to-links-modal.js +4 -8
- package/build-module/page-list/convert-to-links-modal.js.map +1 -1
- package/build-module/page-list/edit.js +2 -4
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/post-comments-form/form.js +2 -4
- package/build-module/post-comments-form/form.js.map +1 -1
- package/build-module/post-featured-image/edit.js +2 -4
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/post-title/index.js +4 -1
- package/build-module/post-title/index.js.map +1 -1
- package/build-module/query/edit/enhanced-pagination-modal.js +4 -6
- package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/index.js +2 -10
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/query/edit/query-content.js +10 -4
- package/build-module/query/edit/query-content.js.map +1 -1
- package/build-module/query/edit/query-placeholder.js +4 -8
- package/build-module/query/edit/query-placeholder.js.map +1 -1
- package/build-module/site-logo/edit.js +4 -8
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/site-title/index.js +4 -1
- package/build-module/site-title/index.js.map +1 -1
- package/build-module/social-link/edit.js +1 -1
- package/build-module/social-link/edit.js.map +1 -1
- package/build-module/template-part/edit/inner-blocks.js +10 -1
- package/build-module/template-part/edit/inner-blocks.js.map +1 -1
- package/build-module/template-part/edit/placeholder.js +4 -8
- package/build-module/template-part/edit/placeholder.js.map +1 -1
- package/build-module/video/edit.js +4 -8
- package/build-module/video/edit.js.map +1 -1
- package/build-module/video/tracks-editor.js +6 -12
- package/build-module/video/tracks-editor.js.map +1 -1
- package/build-style/buttons/editor-rtl.css +2 -2
- package/build-style/buttons/editor.css +2 -2
- package/build-style/buttons/style-rtl.css +2 -2
- package/build-style/buttons/style.css +2 -2
- package/build-style/common-rtl.css +2 -2
- package/build-style/common.css +2 -2
- package/build-style/editor-rtl.css +11 -31
- package/build-style/editor.css +11 -31
- package/build-style/image/editor-rtl.css +6 -26
- package/build-style/image/editor.css +6 -26
- package/build-style/navigation/editor-rtl.css +1 -1
- package/build-style/navigation/editor.css +1 -1
- package/build-style/post-title/style-rtl.css +21 -0
- package/build-style/post-title/style.css +21 -0
- package/build-style/site-title/style-rtl.css +21 -0
- package/build-style/site-title/style.css +21 -0
- package/build-style/style-rtl.css +46 -4
- package/build-style/style.css +46 -4
- package/package.json +42 -35
- package/src/archives/edit.js +1 -1
- package/src/block/edit.js +3 -7
- package/src/buttons/block.json +1 -1
- package/src/buttons/editor.scss +2 -2
- package/src/buttons/style.scss +2 -2
- package/src/comments/edit/comments-legacy.js +1 -2
- package/src/cover/deprecated.js +3 -2
- package/src/cover/edit/index.js +5 -1
- package/src/embed/edit.js +0 -7
- package/src/embed/embed-placeholder.js +2 -4
- package/src/embed/embed-preview.js +22 -2
- package/src/file/index.php +1 -1
- package/src/file/transforms.js +26 -6
- package/src/freeform/modal.js +3 -6
- package/src/image/edit.js +91 -20
- package/src/image/editor.scss +7 -38
- package/src/image/image.js +31 -20
- package/src/image/index.php +1 -1
- package/src/image/transforms.js +0 -23
- package/src/image/use-max-width-observer.js +32 -0
- package/src/image/utils.js +13 -1
- package/src/latest-posts/edit.js +1 -1
- package/src/missing/edit.js +1 -2
- package/src/navigation/edit/deleted-navigation-warning.js +23 -20
- package/src/navigation/edit/index.js +1 -2
- package/src/navigation/edit/menu-inspector-controls.js +3 -1
- package/src/navigation/edit/navigation-menu-delete-control.js +1 -2
- package/src/navigation/edit/placeholder/index.js +1 -2
- package/src/navigation/edit/responsive-wrapper.js +2 -4
- package/src/navigation/editor.scss +5 -1
- package/src/navigation/index.php +1 -1
- package/src/navigation-link/link-ui.js +1 -2
- package/src/page-list/convert-to-links-modal.js +2 -4
- package/src/page-list/edit.js +1 -2
- package/src/post-comments-form/form.js +1 -2
- package/src/post-featured-image/edit.js +1 -2
- package/src/post-title/block.json +4 -1
- package/src/post-title/style.scss +24 -0
- package/src/query/edit/enhanced-pagination-modal.js +3 -4
- package/src/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
- package/src/query/edit/inspector-controls/index.js +2 -9
- package/src/query/edit/query-content.js +7 -0
- package/src/query/edit/query-placeholder.js +2 -4
- package/src/query/index.php +1 -1
- package/src/search/index.php +1 -1
- package/src/site-logo/edit.js +2 -4
- package/src/site-title/block.json +4 -1
- package/src/site-title/style.scss +24 -0
- package/src/social-link/edit.js +1 -1
- package/src/template-part/edit/inner-blocks.js +20 -1
- package/src/template-part/edit/placeholder.js +2 -4
- package/src/video/edit.js +2 -4
- package/src/video/tracks-editor.js +3 -6
|
@@ -84,8 +84,7 @@ const CommentsForm = ( { postId, postType } ) => {
|
|
|
84
84
|
if ( 'closed' === commentStatus ) {
|
|
85
85
|
const actions = [
|
|
86
86
|
<Button
|
|
87
|
-
|
|
88
|
-
__next40pxDefaultSize={ false }
|
|
87
|
+
__next40pxDefaultSize
|
|
89
88
|
key="enableComments"
|
|
90
89
|
onClick={ () => setCommentStatus( 'open' ) }
|
|
91
90
|
variant="primary"
|
|
@@ -308,8 +308,7 @@ export default function PostFeaturedImageEdit( {
|
|
|
308
308
|
mediaLibraryButton={ ( { open } ) => {
|
|
309
309
|
return (
|
|
310
310
|
<Button
|
|
311
|
-
|
|
312
|
-
__next40pxDefaultSize={ false }
|
|
311
|
+
__next40pxDefaultSize
|
|
313
312
|
icon={ upload }
|
|
314
313
|
variant="primary"
|
|
315
314
|
label={ label }
|
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
// This block has customizable padding, border-box makes that more predictable.
|
|
4
4
|
box-sizing: border-box;
|
|
5
5
|
|
|
6
|
+
&[style*="font-weight"] :where(a) {
|
|
7
|
+
font-weight: inherit;
|
|
8
|
+
}
|
|
9
|
+
&[class*="-font-family"] :where(a),
|
|
10
|
+
&[style*="font-family"] :where(a) {
|
|
11
|
+
font-family: inherit;
|
|
12
|
+
}
|
|
13
|
+
&[class*="-font-size"] :where(a),
|
|
14
|
+
&[style*="font-size"] :where(a) {
|
|
15
|
+
font-size: inherit;
|
|
16
|
+
}
|
|
17
|
+
&[style*="line-height"] :where(a) {
|
|
18
|
+
line-height: inherit;
|
|
19
|
+
}
|
|
20
|
+
&[style*="font-style"] :where(a) {
|
|
21
|
+
font-style: inherit;
|
|
22
|
+
}
|
|
23
|
+
&[style*="letter-spacing"] :where(a) {
|
|
24
|
+
letter-spacing: inherit;
|
|
25
|
+
}
|
|
26
|
+
&[style*="text-decoration"] :where(a) {
|
|
27
|
+
text-decoration: inherit;
|
|
28
|
+
}
|
|
29
|
+
|
|
6
30
|
a {
|
|
7
31
|
display: inline-block;
|
|
8
32
|
}
|
|
@@ -42,7 +42,7 @@ export default function EnhancedPaginationModal( {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
let notice = __(
|
|
45
|
-
'If you still want to prevent full page reloads, remove that block, then disable "
|
|
45
|
+
'If you still want to prevent full page reloads, remove that block, then disable "Reload full page" again in the Query Block settings.'
|
|
46
46
|
);
|
|
47
47
|
if ( hasBlocksFromPlugins ) {
|
|
48
48
|
notice =
|
|
@@ -63,7 +63,7 @@ export default function EnhancedPaginationModal( {
|
|
|
63
63
|
return (
|
|
64
64
|
isOpen && (
|
|
65
65
|
<Modal
|
|
66
|
-
title={ __( 'Query block:
|
|
66
|
+
title={ __( 'Query block: Reload full page enabled' ) }
|
|
67
67
|
className="wp-block-query__enhanced-pagination-modal"
|
|
68
68
|
aria={ {
|
|
69
69
|
describedby: modalDescriptionId,
|
|
@@ -76,8 +76,7 @@ export default function EnhancedPaginationModal( {
|
|
|
76
76
|
<VStack alignment="right" spacing={ 5 }>
|
|
77
77
|
<span id={ modalDescriptionId }>{ notice }</span>
|
|
78
78
|
<Button
|
|
79
|
-
|
|
80
|
-
__next40pxDefaultSize={ false }
|
|
79
|
+
__next40pxDefaultSize
|
|
81
80
|
variant="primary"
|
|
82
81
|
onClick={ closeModal }
|
|
83
82
|
>
|
|
@@ -25,11 +25,11 @@ export default function EnhancedPaginationControl( {
|
|
|
25
25
|
);
|
|
26
26
|
} else if ( enhancedPagination ) {
|
|
27
27
|
help = __(
|
|
28
|
-
|
|
28
|
+
'Reload the full page—instead of just the posts list—when visitors navigate between pages.'
|
|
29
29
|
);
|
|
30
30
|
} else if ( hasUnsupportedBlocks ) {
|
|
31
31
|
help = __(
|
|
32
|
-
|
|
32
|
+
'Enhancement disabled because there are non-compatible blocks inside the Query block.'
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ export default function EnhancedPaginationControl( {
|
|
|
37
37
|
<>
|
|
38
38
|
<ToggleControl
|
|
39
39
|
__nextHasNoMarginBottom
|
|
40
|
-
label={ __( '
|
|
40
|
+
label={ __( 'Reload full page' ) }
|
|
41
41
|
help={ help }
|
|
42
42
|
checked={
|
|
43
43
|
! enhancedPagination && ! fullPageClientSideNavigation
|
|
@@ -25,7 +25,6 @@ import AuthorControl from './author-control';
|
|
|
25
25
|
import ParentControl from './parent-control';
|
|
26
26
|
import { TaxonomyControls } from './taxonomy-controls';
|
|
27
27
|
import StickyControl from './sticky-control';
|
|
28
|
-
import EnhancedPaginationControl from './enhanced-pagination-control';
|
|
29
28
|
import CreateNewPostLink from './create-new-post-link';
|
|
30
29
|
import PerPageControl from './per-page-control';
|
|
31
30
|
import OffsetControl from './offset-controls';
|
|
@@ -43,9 +42,8 @@ import { useToolsPanelDropdownMenuProps } from '../../../utils/hooks';
|
|
|
43
42
|
const { BlockInfo } = unlock( blockEditorPrivateApis );
|
|
44
43
|
|
|
45
44
|
export default function QueryInspectorControls( props ) {
|
|
46
|
-
const { attributes, setQuery, setDisplayLayout
|
|
47
|
-
|
|
48
|
-
const { query, displayLayout, enhancedPagination } = attributes;
|
|
45
|
+
const { attributes, setQuery, setDisplayLayout } = props;
|
|
46
|
+
const { query, displayLayout } = attributes;
|
|
49
47
|
const {
|
|
50
48
|
order,
|
|
51
49
|
orderBy,
|
|
@@ -262,11 +260,6 @@ export default function QueryInspectorControls( props ) {
|
|
|
262
260
|
}
|
|
263
261
|
/>
|
|
264
262
|
) }
|
|
265
|
-
<EnhancedPaginationControl
|
|
266
|
-
enhancedPagination={ enhancedPagination }
|
|
267
|
-
setAttributes={ setAttributes }
|
|
268
|
-
clientId={ clientId }
|
|
269
|
-
/>
|
|
270
263
|
</PanelBody>
|
|
271
264
|
) }
|
|
272
265
|
{ ! inherit && showDisplayPanel && (
|
|
@@ -18,6 +18,7 @@ import { store as coreStore } from '@wordpress/core-data';
|
|
|
18
18
|
/**
|
|
19
19
|
* Internal dependencies
|
|
20
20
|
*/
|
|
21
|
+
import EnhancedPaginationControl from './inspector-controls/enhanced-pagination-control';
|
|
21
22
|
import QueryToolbar from './query-toolbar';
|
|
22
23
|
import QueryInspectorControls from './inspector-controls';
|
|
23
24
|
import EnhancedPaginationModal from './enhanced-pagination-modal';
|
|
@@ -36,6 +37,7 @@ export default function QueryContent( {
|
|
|
36
37
|
queryId,
|
|
37
38
|
query,
|
|
38
39
|
displayLayout,
|
|
40
|
+
enhancedPagination,
|
|
39
41
|
tagName: TagName = 'div',
|
|
40
42
|
query: { inherit } = {},
|
|
41
43
|
} = attributes;
|
|
@@ -161,6 +163,11 @@ export default function QueryContent( {
|
|
|
161
163
|
}
|
|
162
164
|
help={ htmlElementMessages[ TagName ] }
|
|
163
165
|
/>
|
|
166
|
+
<EnhancedPaginationControl
|
|
167
|
+
enhancedPagination={ enhancedPagination }
|
|
168
|
+
setAttributes={ setAttributes }
|
|
169
|
+
clientId={ clientId }
|
|
170
|
+
/>
|
|
164
171
|
</InspectorControls>
|
|
165
172
|
<TagName { ...innerBlocksProps } />
|
|
166
173
|
</>
|
|
@@ -79,8 +79,7 @@ export default function QueryPlaceholder( {
|
|
|
79
79
|
>
|
|
80
80
|
{ !! hasPatterns && (
|
|
81
81
|
<Button
|
|
82
|
-
|
|
83
|
-
__next40pxDefaultSize={ false }
|
|
82
|
+
__next40pxDefaultSize
|
|
84
83
|
variant="primary"
|
|
85
84
|
onClick={ openPatternSelectionModal }
|
|
86
85
|
>
|
|
@@ -89,8 +88,7 @@ export default function QueryPlaceholder( {
|
|
|
89
88
|
) }
|
|
90
89
|
|
|
91
90
|
<Button
|
|
92
|
-
|
|
93
|
-
__next40pxDefaultSize={ false }
|
|
91
|
+
__next40pxDefaultSize
|
|
94
92
|
variant="secondary"
|
|
95
93
|
onClick={ () => {
|
|
96
94
|
setIsStartingBlank( true );
|
package/src/query/index.php
CHANGED
|
@@ -26,7 +26,7 @@ function render_block_core_query( $attributes, $content, $block ) {
|
|
|
26
26
|
if ( $is_interactive ) {
|
|
27
27
|
$suffix = wp_scripts_get_suffix();
|
|
28
28
|
if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
|
|
29
|
-
$module_url = gutenberg_url( '/build/
|
|
29
|
+
$module_url = gutenberg_url( '/build-module/block-library/query/view.min.js' );
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
wp_register_script_module(
|
package/src/search/index.php
CHANGED
|
@@ -82,7 +82,7 @@ function render_block_core_search( $attributes ) {
|
|
|
82
82
|
if ( $is_expandable_searchfield ) {
|
|
83
83
|
$suffix = wp_scripts_get_suffix();
|
|
84
84
|
if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
|
|
85
|
-
$module_url = gutenberg_url( '/build/
|
|
85
|
+
$module_url = gutenberg_url( '/build-module/block-library/search/view.min.js' );
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
wp_register_script_module(
|
package/src/site-logo/edit.js
CHANGED
|
@@ -627,8 +627,7 @@ export default function LogoEdit( {
|
|
|
627
627
|
render={ ( { open } ) => (
|
|
628
628
|
<div className="block-library-site-logo__inspector-upload-container">
|
|
629
629
|
<Button
|
|
630
|
-
|
|
631
|
-
__next40pxDefaultSize={ false }
|
|
630
|
+
__next40pxDefaultSize
|
|
632
631
|
onClick={ open }
|
|
633
632
|
variant="secondary"
|
|
634
633
|
>
|
|
@@ -674,8 +673,7 @@ export default function LogoEdit( {
|
|
|
674
673
|
mediaLibraryButton={ ( { open } ) => {
|
|
675
674
|
return (
|
|
676
675
|
<Button
|
|
677
|
-
|
|
678
|
-
__next40pxDefaultSize={ false }
|
|
676
|
+
__next40pxDefaultSize
|
|
679
677
|
icon={ upload }
|
|
680
678
|
variant="primary"
|
|
681
679
|
label={ __( 'Choose logo' ) }
|
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
// This block has customizable padding, border-box makes that more predictable.
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
|
|
5
|
+
&[style*="font-weight"] :where(a) {
|
|
6
|
+
font-weight: inherit;
|
|
7
|
+
}
|
|
8
|
+
&[class*="-font-family"] :where(a),
|
|
9
|
+
&[style*="font-family"] :where(a) {
|
|
10
|
+
font-family: inherit;
|
|
11
|
+
}
|
|
12
|
+
&[class*="-font-size"] :where(a),
|
|
13
|
+
&[style*="font-size"] :where(a) {
|
|
14
|
+
font-size: inherit;
|
|
15
|
+
}
|
|
16
|
+
&[style*="line-height"] :where(a) {
|
|
17
|
+
line-height: inherit;
|
|
18
|
+
}
|
|
19
|
+
&[style*="font-style"] :where(a) {
|
|
20
|
+
font-style: inherit;
|
|
21
|
+
}
|
|
22
|
+
&[style*="letter-spacing"] :where(a) {
|
|
23
|
+
letter-spacing: inherit;
|
|
24
|
+
}
|
|
25
|
+
&[style*="text-decoration"] :where(a) {
|
|
26
|
+
text-decoration: inherit;
|
|
27
|
+
}
|
|
28
|
+
|
|
5
29
|
:where(a) {
|
|
6
30
|
color: inherit;
|
|
7
31
|
}
|
package/src/social-link/edit.js
CHANGED
|
@@ -100,6 +100,12 @@ function EditableTemplatePartInnerBlocks( {
|
|
|
100
100
|
tagName: TagName,
|
|
101
101
|
blockProps,
|
|
102
102
|
} ) {
|
|
103
|
+
const onNavigateToEntityRecord = useSelect(
|
|
104
|
+
( select ) =>
|
|
105
|
+
select( blockEditorStore ).getSettings().onNavigateToEntityRecord,
|
|
106
|
+
[]
|
|
107
|
+
);
|
|
108
|
+
|
|
103
109
|
const [ blocks, onInput, onChange ] = useEntityBlockEditor(
|
|
104
110
|
'postType',
|
|
105
111
|
'wp_template_part',
|
|
@@ -114,7 +120,20 @@ function EditableTemplatePartInnerBlocks( {
|
|
|
114
120
|
layout: useLayout( layout ),
|
|
115
121
|
} );
|
|
116
122
|
|
|
117
|
-
|
|
123
|
+
const blockEditingMode = useBlockEditingMode();
|
|
124
|
+
|
|
125
|
+
const customProps =
|
|
126
|
+
blockEditingMode === 'contentOnly' && onNavigateToEntityRecord
|
|
127
|
+
? {
|
|
128
|
+
onDoubleClick: () =>
|
|
129
|
+
onNavigateToEntityRecord( {
|
|
130
|
+
postId: id,
|
|
131
|
+
postType: 'wp_template_part',
|
|
132
|
+
} ),
|
|
133
|
+
}
|
|
134
|
+
: {};
|
|
135
|
+
|
|
136
|
+
return <TagName { ...innerBlocksProps } { ...customProps } />;
|
|
118
137
|
}
|
|
119
138
|
|
|
120
139
|
export default function TemplatePartInnerBlocks( {
|
|
@@ -75,8 +75,7 @@ export default function TemplatePartPlaceholder( {
|
|
|
75
75
|
{ ! isResolving &&
|
|
76
76
|
!! ( templateParts.length || blockPatterns.length ) && (
|
|
77
77
|
<Button
|
|
78
|
-
|
|
79
|
-
__next40pxDefaultSize={ false }
|
|
78
|
+
__next40pxDefaultSize
|
|
80
79
|
variant="primary"
|
|
81
80
|
onClick={ onOpenSelectionModal }
|
|
82
81
|
>
|
|
@@ -86,8 +85,7 @@ export default function TemplatePartPlaceholder( {
|
|
|
86
85
|
|
|
87
86
|
{ ! isResolving && isBlockBasedTheme && canCreateTemplatePart && (
|
|
88
87
|
<Button
|
|
89
|
-
|
|
90
|
-
__next40pxDefaultSize={ false }
|
|
88
|
+
__next40pxDefaultSize
|
|
91
89
|
variant="secondary"
|
|
92
90
|
onClick={ () => {
|
|
93
91
|
setShowTitleModal( true );
|
package/src/video/edit.js
CHANGED
|
@@ -232,8 +232,7 @@ function VideoEdit( {
|
|
|
232
232
|
}
|
|
233
233
|
render={ ( { open } ) => (
|
|
234
234
|
<Button
|
|
235
|
-
|
|
236
|
-
__next40pxDefaultSize={ false }
|
|
235
|
+
__next40pxDefaultSize
|
|
237
236
|
variant="primary"
|
|
238
237
|
onClick={ open }
|
|
239
238
|
ref={ posterImageButton }
|
|
@@ -262,8 +261,7 @@ function VideoEdit( {
|
|
|
262
261
|
</p>
|
|
263
262
|
{ !! poster && (
|
|
264
263
|
<Button
|
|
265
|
-
|
|
266
|
-
__next40pxDefaultSize={ false }
|
|
264
|
+
__next40pxDefaultSize
|
|
267
265
|
onClick={ onRemovePoster }
|
|
268
266
|
variant="tertiary"
|
|
269
267
|
>
|
|
@@ -58,8 +58,7 @@ function TrackList( { tracks, onEditPress } ) {
|
|
|
58
58
|
>
|
|
59
59
|
<span>{ track.label } </span>
|
|
60
60
|
<Button
|
|
61
|
-
|
|
62
|
-
__next40pxDefaultSize={ false }
|
|
61
|
+
__next40pxDefaultSize
|
|
63
62
|
variant="tertiary"
|
|
64
63
|
onClick={ () => onEditPress( index ) }
|
|
65
64
|
aria-label={ sprintf(
|
|
@@ -147,8 +146,7 @@ function SingleTrackEditor( { track, onChange, onClose, onRemove } ) {
|
|
|
147
146
|
/>
|
|
148
147
|
<HStack className="block-library-video-tracks-editor__single-track-editor-buttons-container">
|
|
149
148
|
<Button
|
|
150
|
-
|
|
151
|
-
__next40pxDefaultSize={ false }
|
|
149
|
+
__next40pxDefaultSize
|
|
152
150
|
variant="secondary"
|
|
153
151
|
onClick={ () => {
|
|
154
152
|
const changes = {};
|
|
@@ -177,8 +175,7 @@ function SingleTrackEditor( { track, onChange, onClose, onRemove } ) {
|
|
|
177
175
|
{ __( 'Close' ) }
|
|
178
176
|
</Button>
|
|
179
177
|
<Button
|
|
180
|
-
|
|
181
|
-
__next40pxDefaultSize={ false }
|
|
178
|
+
__next40pxDefaultSize
|
|
182
179
|
isDestructive
|
|
183
180
|
variant="link"
|
|
184
181
|
onClick={ onRemove }
|