@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.
Files changed (238) hide show
  1. package/build/archives/edit.js +1 -1
  2. package/build/archives/edit.js.map +1 -1
  3. package/build/block/edit.js +2 -3
  4. package/build/block/edit.js.map +1 -1
  5. package/build/buttons/index.js +1 -1
  6. package/build/comments/edit/comments-legacy.js +2 -4
  7. package/build/comments/edit/comments-legacy.js.map +1 -1
  8. package/build/cover/deprecated.js +1 -1
  9. package/build/cover/deprecated.js.map +1 -1
  10. package/build/cover/edit/index.js +4 -2
  11. package/build/cover/edit/index.js.map +1 -1
  12. package/build/embed/edit.js +5 -11
  13. package/build/embed/edit.js.map +1 -1
  14. package/build/embed/embed-placeholder.js +4 -8
  15. package/build/embed/embed-placeholder.js.map +1 -1
  16. package/build/embed/embed-preview.js +16 -4
  17. package/build/embed/embed-preview.js.map +1 -1
  18. package/build/file/transforms.js +18 -4
  19. package/build/file/transforms.js.map +1 -1
  20. package/build/freeform/modal.js +6 -12
  21. package/build/freeform/modal.js.map +1 -1
  22. package/build/image/edit.js +55 -15
  23. package/build/image/edit.js.map +1 -1
  24. package/build/image/image.js +23 -20
  25. package/build/image/image.js.map +1 -1
  26. package/build/image/transforms.js +0 -13
  27. package/build/image/transforms.js.map +1 -1
  28. package/build/image/use-max-width-observer.js +35 -0
  29. package/build/image/use-max-width-observer.js.map +1 -0
  30. package/build/image/utils.js +11 -0
  31. package/build/image/utils.js.map +1 -1
  32. package/build/latest-posts/edit.js +1 -1
  33. package/build/latest-posts/edit.js.map +1 -1
  34. package/build/missing/edit.js +2 -4
  35. package/build/missing/edit.js.map +1 -1
  36. package/build/navigation/edit/deleted-navigation-warning.js +14 -10
  37. package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
  38. package/build/navigation/edit/index.js +2 -4
  39. package/build/navigation/edit/index.js.map +1 -1
  40. package/build/navigation/edit/menu-inspector-controls.js +2 -1
  41. package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
  42. package/build/navigation/edit/navigation-menu-delete-control.js +2 -4
  43. package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  44. package/build/navigation/edit/placeholder/index.js +2 -4
  45. package/build/navigation/edit/placeholder/index.js.map +1 -1
  46. package/build/navigation/edit/responsive-wrapper.js +4 -8
  47. package/build/navigation/edit/responsive-wrapper.js.map +1 -1
  48. package/build/navigation-link/link-ui.js +2 -4
  49. package/build/navigation-link/link-ui.js.map +1 -1
  50. package/build/page-list/convert-to-links-modal.js +4 -8
  51. package/build/page-list/convert-to-links-modal.js.map +1 -1
  52. package/build/page-list/edit.js +2 -4
  53. package/build/page-list/edit.js.map +1 -1
  54. package/build/post-comments-form/form.js +2 -4
  55. package/build/post-comments-form/form.js.map +1 -1
  56. package/build/post-featured-image/edit.js +2 -4
  57. package/build/post-featured-image/edit.js.map +1 -1
  58. package/build/post-title/index.js +4 -1
  59. package/build/post-title/index.js.map +1 -1
  60. package/build/query/edit/enhanced-pagination-modal.js +4 -6
  61. package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
  62. package/build/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
  63. package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  64. package/build/query/edit/inspector-controls/index.js +2 -10
  65. package/build/query/edit/inspector-controls/index.js.map +1 -1
  66. package/build/query/edit/query-content.js +9 -3
  67. package/build/query/edit/query-content.js.map +1 -1
  68. package/build/query/edit/query-placeholder.js +4 -8
  69. package/build/query/edit/query-placeholder.js.map +1 -1
  70. package/build/site-logo/edit.js +4 -8
  71. package/build/site-logo/edit.js.map +1 -1
  72. package/build/site-title/index.js +4 -1
  73. package/build/site-title/index.js.map +1 -1
  74. package/build/social-link/edit.js +1 -1
  75. package/build/social-link/edit.js.map +1 -1
  76. package/build/template-part/edit/inner-blocks.js +10 -1
  77. package/build/template-part/edit/inner-blocks.js.map +1 -1
  78. package/build/template-part/edit/placeholder.js +4 -8
  79. package/build/template-part/edit/placeholder.js.map +1 -1
  80. package/build/video/edit.js +4 -8
  81. package/build/video/edit.js.map +1 -1
  82. package/build/video/tracks-editor.js +6 -12
  83. package/build/video/tracks-editor.js.map +1 -1
  84. package/build-module/archives/edit.js +1 -1
  85. package/build-module/archives/edit.js.map +1 -1
  86. package/build-module/block/edit.js +2 -3
  87. package/build-module/block/edit.js.map +1 -1
  88. package/build-module/buttons/index.js +1 -1
  89. package/build-module/comments/edit/comments-legacy.js +2 -4
  90. package/build-module/comments/edit/comments-legacy.js.map +1 -1
  91. package/build-module/cover/deprecated.js +1 -1
  92. package/build-module/cover/deprecated.js.map +1 -1
  93. package/build-module/cover/edit/index.js +4 -2
  94. package/build-module/cover/edit/index.js.map +1 -1
  95. package/build-module/embed/edit.js +6 -12
  96. package/build-module/embed/edit.js.map +1 -1
  97. package/build-module/embed/embed-placeholder.js +4 -8
  98. package/build-module/embed/embed-placeholder.js.map +1 -1
  99. package/build-module/embed/embed-preview.js +16 -4
  100. package/build-module/embed/embed-preview.js.map +1 -1
  101. package/build-module/file/transforms.js +18 -4
  102. package/build-module/file/transforms.js.map +1 -1
  103. package/build-module/freeform/modal.js +6 -12
  104. package/build-module/freeform/modal.js.map +1 -1
  105. package/build-module/image/edit.js +58 -18
  106. package/build-module/image/edit.js.map +1 -1
  107. package/build-module/image/image.js +23 -20
  108. package/build-module/image/image.js.map +1 -1
  109. package/build-module/image/transforms.js +0 -13
  110. package/build-module/image/transforms.js.map +1 -1
  111. package/build-module/image/use-max-width-observer.js +29 -0
  112. package/build-module/image/use-max-width-observer.js.map +1 -0
  113. package/build-module/image/utils.js +11 -1
  114. package/build-module/image/utils.js.map +1 -1
  115. package/build-module/latest-posts/edit.js +1 -1
  116. package/build-module/latest-posts/edit.js.map +1 -1
  117. package/build-module/missing/edit.js +2 -4
  118. package/build-module/missing/edit.js.map +1 -1
  119. package/build-module/navigation/edit/deleted-navigation-warning.js +15 -11
  120. package/build-module/navigation/edit/deleted-navigation-warning.js.map +1 -1
  121. package/build-module/navigation/edit/index.js +2 -4
  122. package/build-module/navigation/edit/index.js.map +1 -1
  123. package/build-module/navigation/edit/menu-inspector-controls.js +2 -1
  124. package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
  125. package/build-module/navigation/edit/navigation-menu-delete-control.js +2 -4
  126. package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  127. package/build-module/navigation/edit/placeholder/index.js +2 -4
  128. package/build-module/navigation/edit/placeholder/index.js.map +1 -1
  129. package/build-module/navigation/edit/responsive-wrapper.js +4 -8
  130. package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
  131. package/build-module/navigation-link/link-ui.js +2 -4
  132. package/build-module/navigation-link/link-ui.js.map +1 -1
  133. package/build-module/page-list/convert-to-links-modal.js +4 -8
  134. package/build-module/page-list/convert-to-links-modal.js.map +1 -1
  135. package/build-module/page-list/edit.js +2 -4
  136. package/build-module/page-list/edit.js.map +1 -1
  137. package/build-module/post-comments-form/form.js +2 -4
  138. package/build-module/post-comments-form/form.js.map +1 -1
  139. package/build-module/post-featured-image/edit.js +2 -4
  140. package/build-module/post-featured-image/edit.js.map +1 -1
  141. package/build-module/post-title/index.js +4 -1
  142. package/build-module/post-title/index.js.map +1 -1
  143. package/build-module/query/edit/enhanced-pagination-modal.js +4 -6
  144. package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
  145. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
  146. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  147. package/build-module/query/edit/inspector-controls/index.js +2 -10
  148. package/build-module/query/edit/inspector-controls/index.js.map +1 -1
  149. package/build-module/query/edit/query-content.js +10 -4
  150. package/build-module/query/edit/query-content.js.map +1 -1
  151. package/build-module/query/edit/query-placeholder.js +4 -8
  152. package/build-module/query/edit/query-placeholder.js.map +1 -1
  153. package/build-module/site-logo/edit.js +4 -8
  154. package/build-module/site-logo/edit.js.map +1 -1
  155. package/build-module/site-title/index.js +4 -1
  156. package/build-module/site-title/index.js.map +1 -1
  157. package/build-module/social-link/edit.js +1 -1
  158. package/build-module/social-link/edit.js.map +1 -1
  159. package/build-module/template-part/edit/inner-blocks.js +10 -1
  160. package/build-module/template-part/edit/inner-blocks.js.map +1 -1
  161. package/build-module/template-part/edit/placeholder.js +4 -8
  162. package/build-module/template-part/edit/placeholder.js.map +1 -1
  163. package/build-module/video/edit.js +4 -8
  164. package/build-module/video/edit.js.map +1 -1
  165. package/build-module/video/tracks-editor.js +6 -12
  166. package/build-module/video/tracks-editor.js.map +1 -1
  167. package/build-style/buttons/editor-rtl.css +2 -2
  168. package/build-style/buttons/editor.css +2 -2
  169. package/build-style/buttons/style-rtl.css +2 -2
  170. package/build-style/buttons/style.css +2 -2
  171. package/build-style/common-rtl.css +2 -2
  172. package/build-style/common.css +2 -2
  173. package/build-style/editor-rtl.css +11 -31
  174. package/build-style/editor.css +11 -31
  175. package/build-style/image/editor-rtl.css +6 -26
  176. package/build-style/image/editor.css +6 -26
  177. package/build-style/navigation/editor-rtl.css +1 -1
  178. package/build-style/navigation/editor.css +1 -1
  179. package/build-style/post-title/style-rtl.css +21 -0
  180. package/build-style/post-title/style.css +21 -0
  181. package/build-style/site-title/style-rtl.css +21 -0
  182. package/build-style/site-title/style.css +21 -0
  183. package/build-style/style-rtl.css +46 -4
  184. package/build-style/style.css +46 -4
  185. package/package.json +42 -35
  186. package/src/archives/edit.js +1 -1
  187. package/src/block/edit.js +3 -7
  188. package/src/buttons/block.json +1 -1
  189. package/src/buttons/editor.scss +2 -2
  190. package/src/buttons/style.scss +2 -2
  191. package/src/comments/edit/comments-legacy.js +1 -2
  192. package/src/cover/deprecated.js +3 -2
  193. package/src/cover/edit/index.js +5 -1
  194. package/src/embed/edit.js +0 -7
  195. package/src/embed/embed-placeholder.js +2 -4
  196. package/src/embed/embed-preview.js +22 -2
  197. package/src/file/index.php +1 -1
  198. package/src/file/transforms.js +26 -6
  199. package/src/freeform/modal.js +3 -6
  200. package/src/image/edit.js +91 -20
  201. package/src/image/editor.scss +7 -38
  202. package/src/image/image.js +31 -20
  203. package/src/image/index.php +1 -1
  204. package/src/image/transforms.js +0 -23
  205. package/src/image/use-max-width-observer.js +32 -0
  206. package/src/image/utils.js +13 -1
  207. package/src/latest-posts/edit.js +1 -1
  208. package/src/missing/edit.js +1 -2
  209. package/src/navigation/edit/deleted-navigation-warning.js +23 -20
  210. package/src/navigation/edit/index.js +1 -2
  211. package/src/navigation/edit/menu-inspector-controls.js +3 -1
  212. package/src/navigation/edit/navigation-menu-delete-control.js +1 -2
  213. package/src/navigation/edit/placeholder/index.js +1 -2
  214. package/src/navigation/edit/responsive-wrapper.js +2 -4
  215. package/src/navigation/editor.scss +5 -1
  216. package/src/navigation/index.php +1 -1
  217. package/src/navigation-link/link-ui.js +1 -2
  218. package/src/page-list/convert-to-links-modal.js +2 -4
  219. package/src/page-list/edit.js +1 -2
  220. package/src/post-comments-form/form.js +1 -2
  221. package/src/post-featured-image/edit.js +1 -2
  222. package/src/post-title/block.json +4 -1
  223. package/src/post-title/style.scss +24 -0
  224. package/src/query/edit/enhanced-pagination-modal.js +3 -4
  225. package/src/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
  226. package/src/query/edit/inspector-controls/index.js +2 -9
  227. package/src/query/edit/query-content.js +7 -0
  228. package/src/query/edit/query-placeholder.js +2 -4
  229. package/src/query/index.php +1 -1
  230. package/src/search/index.php +1 -1
  231. package/src/site-logo/edit.js +2 -4
  232. package/src/site-title/block.json +4 -1
  233. package/src/site-title/style.scss +24 -0
  234. package/src/social-link/edit.js +1 -1
  235. package/src/template-part/edit/inner-blocks.js +20 -1
  236. package/src/template-part/edit/placeholder.js +2 -4
  237. package/src/video/edit.js +2 -4
  238. 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
- // TODO: Switch to `true` (40px size) if possible
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
- // TODO: Switch to `true` (40px size) if possible
312
- __next40pxDefaultSize={ false }
311
+ __next40pxDefaultSize
313
312
  icon={ upload }
314
313
  variant="primary"
315
314
  label={ label }
@@ -80,5 +80,8 @@
80
80
  }
81
81
  }
82
82
  },
83
- "style": "wp-block-post-title"
83
+ "style": "wp-block-post-title",
84
+ "selectors": {
85
+ "typography": ".wp-block-post-title, .wp-block-post-title > a"
86
+ }
84
87
  }
@@ -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 "Force page reload" again in the Query Block settings.'
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: Force page reload enabled' ) }
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
- // TODO: Switch to `true` (40px size) if possible
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
- "Browsing between pages won't require a full page reload, unless non-compatible blocks are detected."
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
- "Force page reload can't be disabled because there are non-compatible blocks inside the Query block."
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={ __( 'Force page reload' ) }
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, setAttributes, clientId } =
47
- props;
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
- // TODO: Switch to `true` (40px size) if possible
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
- // TODO: Switch to `true` (40px size) if possible
93
- __next40pxDefaultSize={ false }
91
+ __next40pxDefaultSize
94
92
  variant="secondary"
95
93
  onClick={ () => {
96
94
  setIsStartingBlank( true );
@@ -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/interactivity/query.min.js' );
29
+ $module_url = gutenberg_url( '/build-module/block-library/query/view.min.js' );
30
30
  }
31
31
 
32
32
  wp_register_script_module(
@@ -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/interactivity/search.min.js' );
85
+ $module_url = gutenberg_url( '/build-module/block-library/search/view.min.js' );
86
86
  }
87
87
 
88
88
  wp_register_script_module(
@@ -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
- // TODO: Switch to `true` (40px size) if possible
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
- // TODO: Switch to `true` (40px size) if possible
678
- __next40pxDefaultSize={ false }
676
+ __next40pxDefaultSize
679
677
  icon={ upload }
680
678
  variant="primary"
681
679
  label={ __( 'Choose logo' ) }
@@ -75,5 +75,8 @@
75
75
  }
76
76
  },
77
77
  "editorStyle": "wp-block-site-title-editor",
78
- "style": "wp-block-site-title"
78
+ "style": "wp-block-site-title",
79
+ "selectors": {
80
+ "typography": ".wp-block-site-title > span, .wp-block-site-title > a"
81
+ }
79
82
  }
@@ -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
  }
@@ -81,7 +81,7 @@ const SocialLinkURLPopover = ( {
81
81
  />
82
82
  </div>
83
83
  <Button
84
- // TODO: Switch to `true` (40px size) if possible
84
+ // TODO: Switch to `true` (40px size) if possible.
85
85
  __next40pxDefaultSize={ false }
86
86
  icon={ keyboardReturn }
87
87
  label={ __( 'Apply' ) }
@@ -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
- return <TagName { ...innerBlocksProps } />;
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
- // TODO: Switch to `true` (40px size) if possible
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
- // TODO: Switch to `true` (40px size) if possible
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
- // TODO: Switch to `true` (40px size) if possible
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
- // TODO: Switch to `true` (40px size) if possible
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
- // TODO: Switch to `true` (40px size) if possible
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
- // TODO: Switch to `true` (40px size) if possible
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
- // TODO: Switch to `true` (40px size) if possible
181
- __next40pxDefaultSize={ false }
178
+ __next40pxDefaultSize
182
179
  isDestructive
183
180
  variant="link"
184
181
  onClick={ onRemove }