@wordpress/edit-site 6.44.1-next.v.202604201441.0 → 6.45.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 (65) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/components/add-new-template/add-custom-template-modal-content.cjs.map +3 -3
  3. package/build/components/add-new-template/index.cjs.map +2 -2
  4. package/build/components/add-new-template-legacy/add-custom-template-modal-content.cjs.map +3 -3
  5. package/build/components/add-new-template-legacy/index.cjs.map +2 -2
  6. package/build/components/page-patterns/index.cjs +1 -0
  7. package/build/components/page-patterns/index.cjs.map +2 -2
  8. package/build/components/page-templates/fields.cjs +4 -4
  9. package/build/components/page-templates/fields.cjs.map +2 -2
  10. package/build/components/page-templates/index-legacy.cjs +1 -0
  11. package/build/components/page-templates/index-legacy.cjs.map +2 -2
  12. package/build/components/page-templates/index.cjs +1 -0
  13. package/build/components/page-templates/index.cjs.map +2 -2
  14. package/build/components/pagination/index.cjs.map +3 -3
  15. package/build/components/post-list/index.cjs +1 -0
  16. package/build/components/post-list/index.cjs.map +2 -2
  17. package/build/components/sidebar-global-styles/index.cjs +1 -0
  18. package/build/components/sidebar-global-styles/index.cjs.map +2 -2
  19. package/build/components/sidebar-identity/index.cjs +1 -1
  20. package/build/components/sidebar-identity/index.cjs.map +2 -2
  21. package/build/components/site-hub/index.cjs +3 -2
  22. package/build/components/site-hub/index.cjs.map +2 -2
  23. package/build-module/components/add-new-template/add-custom-template-modal-content.mjs +10 -10
  24. package/build-module/components/add-new-template/add-custom-template-modal-content.mjs.map +2 -2
  25. package/build-module/components/add-new-template/index.mjs +3 -3
  26. package/build-module/components/add-new-template/index.mjs.map +1 -1
  27. package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.mjs +10 -10
  28. package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.mjs.map +2 -2
  29. package/build-module/components/add-new-template-legacy/index.mjs +3 -3
  30. package/build-module/components/add-new-template-legacy/index.mjs.map +1 -1
  31. package/build-module/components/page-patterns/index.mjs +1 -0
  32. package/build-module/components/page-patterns/index.mjs.map +2 -2
  33. package/build-module/components/page-templates/fields.mjs +4 -4
  34. package/build-module/components/page-templates/fields.mjs.map +2 -2
  35. package/build-module/components/page-templates/index-legacy.mjs +1 -0
  36. package/build-module/components/page-templates/index-legacy.mjs.map +2 -2
  37. package/build-module/components/page-templates/index.mjs +1 -0
  38. package/build-module/components/page-templates/index.mjs.map +2 -2
  39. package/build-module/components/pagination/index.mjs +3 -3
  40. package/build-module/components/pagination/index.mjs.map +2 -2
  41. package/build-module/components/post-list/index.mjs +1 -0
  42. package/build-module/components/post-list/index.mjs.map +2 -2
  43. package/build-module/components/sidebar-global-styles/index.mjs +1 -0
  44. package/build-module/components/sidebar-global-styles/index.mjs.map +2 -2
  45. package/build-module/components/sidebar-identity/index.mjs +1 -1
  46. package/build-module/components/sidebar-identity/index.mjs.map +2 -2
  47. package/build-module/components/site-hub/index.mjs +3 -6
  48. package/build-module/components/site-hub/index.mjs.map +2 -2
  49. package/build-style/style-rtl.css +0 -121
  50. package/build-style/style.css +0 -121
  51. package/package.json +47 -46
  52. package/src/components/add-new-template/add-custom-template-modal-content.js +19 -19
  53. package/src/components/add-new-template/index.js +5 -5
  54. package/src/components/add-new-template-legacy/add-custom-template-modal-content.js +19 -19
  55. package/src/components/add-new-template-legacy/index.js +5 -5
  56. package/src/components/page-patterns/index.js +1 -0
  57. package/src/components/page-templates/fields.js +5 -5
  58. package/src/components/page-templates/index-legacy.js +1 -0
  59. package/src/components/page-templates/index.js +1 -0
  60. package/src/components/pagination/index.js +5 -5
  61. package/src/components/post-list/index.js +1 -0
  62. package/src/components/sidebar-global-styles/index.js +1 -0
  63. package/src/components/sidebar-identity/index.js +1 -1
  64. package/src/components/site-hub/index.js +3 -6
  65. package/src/style.scss +0 -1
@@ -107,127 +107,6 @@
107
107
  }
108
108
  }
109
109
 
110
- .admin-ui-page {
111
- display: flex;
112
- height: 100%;
113
- background-color: var(--wpds-color-bg-surface-neutral, #fcfcfc);
114
- color: var(--wpds-color-fg-content-neutral, #1e1e1e);
115
- position: relative;
116
- z-index: 1;
117
- flex-flow: column;
118
- text-wrap: pretty;
119
- }
120
-
121
- .admin-ui-page__header {
122
- padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
123
- border-bottom: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #e4e4e4);
124
- background: var(--wpds-color-bg-surface-neutral-strong, #fff);
125
- position: sticky;
126
- top: 0;
127
- z-index: 1;
128
- }
129
-
130
- .admin-ui-page__header-title {
131
- font-family: var(--wpds-typography-font-family-heading, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif);
132
- font-size: var(--wpds-typography-font-size-lg, 15px);
133
- font-weight: var(--wpds-typography-font-weight-medium, 499);
134
- line-height: var(--wpds-typography-line-height-lg, 28px);
135
- margin: 0;
136
- overflow: hidden;
137
- text-overflow: ellipsis;
138
- white-space: nowrap;
139
- }
140
-
141
- .admin-ui-page__sidebar-toggle-slot:empty {
142
- display: none;
143
- }
144
-
145
- .admin-ui-page__header-subtitle {
146
- padding-block-end: var(--wpds-dimension-padding-xs, 4px);
147
- color: var(--wpds-color-fg-content-neutral-weak, #707070);
148
- font-size: var(--wpds-typography-font-size-md, 13px);
149
- line-height: var(--wpds-typography-line-height-md, 24px);
150
- margin: 0;
151
- }
152
-
153
- .admin-ui-page__content {
154
- flex-grow: 1;
155
- overflow: auto;
156
- display: flex;
157
- flex-direction: column;
158
- }
159
-
160
- .admin-ui-page__content.has-padding {
161
- padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
162
- }
163
-
164
- /**
165
- * SCSS Variables.
166
- *
167
- * Please use variables from this sheet to ensure consistency across the UI.
168
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
169
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
170
- */
171
- /**
172
- * Colors
173
- */
174
- /**
175
- * Fonts & basic variables.
176
- */
177
- /**
178
- * Typography
179
- */
180
- /**
181
- * Grid System.
182
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
183
- */
184
- /**
185
- * Radius scale.
186
- */
187
- /**
188
- * Elevation scale.
189
- */
190
- /**
191
- * Dimensions.
192
- */
193
- /**
194
- * Mobile specific styles
195
- */
196
- /**
197
- * Editor styles.
198
- */
199
- /**
200
- * Block & Editor UI.
201
- */
202
- /**
203
- * Block paddings.
204
- */
205
- /**
206
- * React Native specific.
207
- * These variables do not appear to be used anywhere else.
208
- */
209
- .admin-ui-breadcrumbs__list {
210
- font-family: var(--wpds-typography-font-family-heading, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif);
211
- font-size: var(--wpds-typography-font-size-lg, 15px);
212
- font-weight: var(--wpds-typography-font-weight-medium, 499);
213
- line-height: var(--wpds-typography-line-height-lg, 28px);
214
- list-style: none;
215
- padding: 0;
216
- margin: 0;
217
- gap: 0;
218
- min-height: 32px;
219
- }
220
-
221
- .admin-ui-breadcrumbs__list li:not(:last-child)::after {
222
- content: "/";
223
- margin: 0 8px;
224
- }
225
-
226
- .admin-ui-breadcrumbs__list h1 {
227
- font-size: inherit;
228
- line-height: inherit;
229
- }
230
-
231
110
  /**
232
111
  * Colors
233
112
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "6.44.1-next.v.202604201441.0+dab6d8c07",
3
+ "version": "6.45.0",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -48,50 +48,51 @@
48
48
  ],
49
49
  "dependencies": {
50
50
  "@react-spring/web": "^9.4.5",
51
- "@wordpress/a11y": "^4.44.1-next.v.202604201441.0+dab6d8c07",
52
- "@wordpress/admin-ui": "^1.12.1-next.v.202604201441.0+dab6d8c07",
53
- "@wordpress/api-fetch": "^7.44.1-next.v.202604201441.0+dab6d8c07",
54
- "@wordpress/base-styles": "^6.20.1-next.v.202604201441.0+dab6d8c07",
55
- "@wordpress/blob": "^4.44.1-next.v.202604201441.0+dab6d8c07",
56
- "@wordpress/block-editor": "^15.18.1-next.v.202604201441.0+dab6d8c07",
57
- "@wordpress/block-library": "^9.44.1-next.v.202604201441.0+dab6d8c07",
58
- "@wordpress/blocks": "^15.17.2-next.v.202604201441.0+dab6d8c07",
59
- "@wordpress/commands": "^1.45.1-next.v.202604201441.0+dab6d8c07",
60
- "@wordpress/components": "^33.0.1-next.v.202604201441.0+dab6d8c07",
61
- "@wordpress/compose": "^7.44.1-next.v.202604201441.0+dab6d8c07",
62
- "@wordpress/core-data": "^7.44.1-next.v.202604201441.0+dab6d8c07",
63
- "@wordpress/data": "^10.45.1-next.v.202604201441.0+dab6d8c07",
64
- "@wordpress/dataviews": "^14.1.1-next.v.202604201441.0+dab6d8c07",
65
- "@wordpress/date": "^5.44.1-next.v.202604201441.0+dab6d8c07",
66
- "@wordpress/deprecated": "^4.44.1-next.v.202604201441.0+dab6d8c07",
67
- "@wordpress/dom": "^4.44.1-next.v.202604201441.0+dab6d8c07",
68
- "@wordpress/editor": "^14.44.1-next.v.202604201441.0+dab6d8c07",
69
- "@wordpress/element": "^6.44.1-next.v.202604201441.0+dab6d8c07",
70
- "@wordpress/escape-html": "^3.44.1-next.v.202604201441.0+dab6d8c07",
71
- "@wordpress/fields": "^0.36.1-next.v.202604201441.0+dab6d8c07",
72
- "@wordpress/global-styles-engine": "^1.11.1-next.v.202604201441.0+dab6d8c07",
73
- "@wordpress/global-styles-ui": "^1.11.1-next.v.202604201441.0+dab6d8c07",
74
- "@wordpress/hooks": "^4.44.1-next.v.202604201441.0+dab6d8c07",
75
- "@wordpress/html-entities": "^4.44.1-next.v.202604201441.0+dab6d8c07",
76
- "@wordpress/i18n": "^6.17.1-next.v.202604201441.0+dab6d8c07",
77
- "@wordpress/icons": "^12.2.1-next.v.202604201441.0+dab6d8c07",
78
- "@wordpress/keyboard-shortcuts": "^5.44.1-next.v.202604201441.0+dab6d8c07",
79
- "@wordpress/keycodes": "^4.44.1-next.v.202604201441.0+dab6d8c07",
80
- "@wordpress/media-utils": "^5.44.1-next.v.202604201441.0+dab6d8c07",
81
- "@wordpress/notices": "^5.44.1-next.v.202604201441.0+dab6d8c07",
82
- "@wordpress/patterns": "^2.44.1-next.v.202604201441.0+dab6d8c07",
83
- "@wordpress/plugins": "^7.44.1-next.v.202604201441.0+dab6d8c07",
84
- "@wordpress/preferences": "^4.44.1-next.v.202604201441.0+dab6d8c07",
85
- "@wordpress/primitives": "^4.44.1-next.v.202604201441.0+dab6d8c07",
86
- "@wordpress/private-apis": "^1.44.1-next.v.202604201441.0+dab6d8c07",
87
- "@wordpress/reusable-blocks": "^5.44.1-next.v.202604201441.0+dab6d8c07",
88
- "@wordpress/router": "^1.44.1-next.v.202604201441.0+dab6d8c07",
89
- "@wordpress/style-engine": "^2.44.1-next.v.202604201441.0+dab6d8c07",
90
- "@wordpress/url": "^4.44.1-next.v.202604201441.0+dab6d8c07",
91
- "@wordpress/viewport": "^6.44.1-next.v.202604201441.0+dab6d8c07",
92
- "@wordpress/views": "^1.11.1-next.v.202604201441.0+dab6d8c07",
93
- "@wordpress/widgets": "^4.44.1-next.v.202604201441.0+dab6d8c07",
94
- "@wordpress/wordcount": "^4.44.1-next.v.202604201441.0+dab6d8c07",
51
+ "@wordpress/a11y": "^4.45.0",
52
+ "@wordpress/admin-ui": "^2.0.0",
53
+ "@wordpress/api-fetch": "^7.45.0",
54
+ "@wordpress/base-styles": "^7.0.0",
55
+ "@wordpress/blob": "^4.45.0",
56
+ "@wordpress/block-editor": "^15.18.0",
57
+ "@wordpress/block-library": "^9.45.0",
58
+ "@wordpress/blocks": "^15.18.0",
59
+ "@wordpress/commands": "^1.45.0",
60
+ "@wordpress/components": "^33.0.0",
61
+ "@wordpress/compose": "^7.45.0",
62
+ "@wordpress/core-data": "^7.45.0",
63
+ "@wordpress/data": "^10.45.0",
64
+ "@wordpress/dataviews": "^14.2.0",
65
+ "@wordpress/date": "^5.45.0",
66
+ "@wordpress/deprecated": "^4.45.0",
67
+ "@wordpress/dom": "^4.45.0",
68
+ "@wordpress/editor": "^14.45.0",
69
+ "@wordpress/element": "^6.45.0",
70
+ "@wordpress/escape-html": "^3.45.0",
71
+ "@wordpress/fields": "^0.37.0",
72
+ "@wordpress/global-styles-engine": "^1.12.0",
73
+ "@wordpress/global-styles-ui": "^1.12.0",
74
+ "@wordpress/hooks": "^4.45.0",
75
+ "@wordpress/html-entities": "^4.45.0",
76
+ "@wordpress/i18n": "^6.18.0",
77
+ "@wordpress/icons": "^13.0.0",
78
+ "@wordpress/keyboard-shortcuts": "^5.45.0",
79
+ "@wordpress/keycodes": "^4.45.0",
80
+ "@wordpress/media-utils": "^5.45.0",
81
+ "@wordpress/notices": "^5.45.0",
82
+ "@wordpress/patterns": "^2.45.0",
83
+ "@wordpress/plugins": "^7.45.0",
84
+ "@wordpress/preferences": "^4.45.0",
85
+ "@wordpress/primitives": "^4.45.0",
86
+ "@wordpress/private-apis": "^1.45.0",
87
+ "@wordpress/reusable-blocks": "^5.45.0",
88
+ "@wordpress/router": "^1.45.0",
89
+ "@wordpress/style-engine": "^2.45.0",
90
+ "@wordpress/ui": "^0.12.0",
91
+ "@wordpress/url": "^4.45.0",
92
+ "@wordpress/viewport": "^6.45.0",
93
+ "@wordpress/views": "^1.12.0",
94
+ "@wordpress/widgets": "^4.45.0",
95
+ "@wordpress/wordcount": "^4.45.0",
95
96
  "change-case": "^4.1.2",
96
97
  "clsx": "^2.1.1",
97
98
  "colord": "^2.9.2",
@@ -106,5 +107,5 @@
106
107
  "publishConfig": {
107
108
  "access": "public"
108
109
  },
109
- "gitHead": "c788005ba4ee2a34851c1217c51602656aa7c3a6"
110
+ "gitHead": "8c229eaed0e88c9827e2da3d73a78f9ddd77714b"
110
111
  }
@@ -10,7 +10,7 @@ import {
10
10
  SearchControl,
11
11
  TextHighlight,
12
12
  Composite,
13
- __experimentalText as Text,
13
+ __experimentalText as WCText,
14
14
  __experimentalVStack as VStack,
15
15
  } from '@wordpress/components';
16
16
  import { useEntityRecords } from '@wordpress/core-data';
@@ -51,7 +51,7 @@ function SuggestionListItem( {
51
51
  />
52
52
  }
53
53
  >
54
- <Text
54
+ <WCText
55
55
  size="body"
56
56
  lineHeight={ 1.53846153846 } // 20px
57
57
  weight={ 500 }
@@ -61,15 +61,15 @@ function SuggestionListItem( {
61
61
  text={ decodeEntities( suggestion.name ) }
62
62
  highlight={ search }
63
63
  />
64
- </Text>
64
+ </WCText>
65
65
  { suggestion.link && (
66
- <Text
66
+ <WCText
67
67
  size="body"
68
68
  lineHeight={ 1.53846153846 } // 20px
69
69
  className={ `${ baseCssClass }__info` }
70
70
  >
71
71
  { safeDecodeURI( suggestion.link ) }
72
- </Text>
72
+ </WCText>
73
73
  ) }
74
74
  </Composite.Item>
75
75
  );
@@ -155,12 +155,12 @@ function SuggestionList( { entityForSuggestions, onSelect } ) {
155
155
  </Composite>
156
156
  ) }
157
157
  { debouncedSearch && ! suggestions?.length && (
158
- <Text
158
+ <WCText
159
159
  as="p"
160
160
  className="edit-site-custom-template-modal__no-results"
161
161
  >
162
162
  { labels.not_found }
163
- </Text>
163
+ </WCText>
164
164
  ) }
165
165
  </>
166
166
  );
@@ -193,11 +193,11 @@ function AddCustomTemplateModalContent( {
193
193
  >
194
194
  { ! showSearchEntities && (
195
195
  <>
196
- <Text as="p">
196
+ <WCText as="p">
197
197
  { __(
198
198
  'Select whether to create a single template for all items or a specific one.'
199
199
  ) }
200
- </Text>
200
+ </WCText>
201
201
  <Flex
202
202
  className="edit-site-custom-template-modal__contents"
203
203
  gap="4"
@@ -221,14 +221,14 @@ function AddCustomTemplateModalContent( {
221
221
  } );
222
222
  } }
223
223
  >
224
- <Text
224
+ <WCText
225
225
  as="span"
226
226
  weight={ 500 }
227
227
  lineHeight={ 1.53846153846 } // 20px
228
228
  >
229
229
  { entityForSuggestions.labels.all_items }
230
- </Text>
231
- <Text
230
+ </WCText>
231
+ <WCText
232
232
  as="span"
233
233
  lineHeight={ 1.53846153846 } // 20px
234
234
  >
@@ -236,7 +236,7 @@ function AddCustomTemplateModalContent( {
236
236
  // translators: The user is given the choice to set up a template for all items of a post type or taxonomy, or just a specific one.
237
237
  __( 'For all items' )
238
238
  }
239
- </Text>
239
+ </WCText>
240
240
  </FlexItem>
241
241
  <FlexItem
242
242
  isBlock
@@ -245,14 +245,14 @@ function AddCustomTemplateModalContent( {
245
245
  setShowSearchEntities( true );
246
246
  } }
247
247
  >
248
- <Text
248
+ <WCText
249
249
  as="span"
250
250
  weight={ 500 }
251
251
  lineHeight={ 1.53846153846 } // 20px
252
252
  >
253
253
  { entityForSuggestions.labels.singular_name }
254
- </Text>
255
- <Text
254
+ </WCText>
255
+ <WCText
256
256
  as="span"
257
257
  lineHeight={ 1.53846153846 } // 20px
258
258
  >
@@ -260,7 +260,7 @@ function AddCustomTemplateModalContent( {
260
260
  // translators: The user is given the choice to set up a template for all items of a post type or taxonomy, or just a specific one.
261
261
  __( 'For a specific item' )
262
262
  }
263
- </Text>
263
+ </WCText>
264
264
  </FlexItem>
265
265
  </Flex>
266
266
  <Flex justify="right">
@@ -276,11 +276,11 @@ function AddCustomTemplateModalContent( {
276
276
  ) }
277
277
  { showSearchEntities && (
278
278
  <>
279
- <Text as="p">
279
+ <WCText as="p">
280
280
  { __(
281
281
  'This template will be used only for the specific item chosen.'
282
282
  ) }
283
- </Text>
283
+ </WCText>
284
284
  <SuggestionList
285
285
  entityForSuggestions={ entityForSuggestions }
286
286
  onSelect={ onSelect }
@@ -10,7 +10,7 @@ import {
10
10
  Button,
11
11
  Modal,
12
12
  __experimentalGrid as Grid,
13
- __experimentalText as Text,
13
+ __experimentalText as WCText,
14
14
  __experimentalVStack as VStack,
15
15
  Flex,
16
16
  Icon,
@@ -129,13 +129,13 @@ function TemplateListItem( {
129
129
  alignment="center"
130
130
  spacing={ 0 }
131
131
  >
132
- <Text
132
+ <WCText
133
133
  align="center"
134
134
  weight={ 500 }
135
135
  lineHeight={ 1.53846153846 } // 20px
136
136
  >
137
137
  { title }
138
- </Text>
138
+ </WCText>
139
139
  { children }
140
140
  </VStack>
141
141
  </Flex>
@@ -324,13 +324,13 @@ function NewTemplateModal( { onClose } ) {
324
324
  )
325
325
  }
326
326
  >
327
- <Text
327
+ <WCText
328
328
  lineHeight={ 1.53846153846 } // 20px
329
329
  >
330
330
  { __(
331
331
  'A custom template can be manually applied to any post or page.'
332
332
  ) }
333
- </Text>
333
+ </WCText>
334
334
  </TemplateListItem>
335
335
  </Grid>
336
336
  ) }
@@ -10,7 +10,7 @@ import {
10
10
  SearchControl,
11
11
  TextHighlight,
12
12
  Composite,
13
- __experimentalText as Text,
13
+ __experimentalText as WCText,
14
14
  __experimentalVStack as VStack,
15
15
  } from '@wordpress/components';
16
16
  import { useEntityRecords } from '@wordpress/core-data';
@@ -51,7 +51,7 @@ function SuggestionListItem( {
51
51
  />
52
52
  }
53
53
  >
54
- <Text
54
+ <WCText
55
55
  size="body"
56
56
  lineHeight={ 1.53846153846 } // 20px
57
57
  weight={ 500 }
@@ -61,15 +61,15 @@ function SuggestionListItem( {
61
61
  text={ decodeEntities( suggestion.name ) }
62
62
  highlight={ search }
63
63
  />
64
- </Text>
64
+ </WCText>
65
65
  { suggestion.link && (
66
- <Text
66
+ <WCText
67
67
  size="body"
68
68
  lineHeight={ 1.53846153846 } // 20px
69
69
  className={ `${ baseCssClass }__info` }
70
70
  >
71
71
  { safeDecodeURI( suggestion.link ) }
72
- </Text>
72
+ </WCText>
73
73
  ) }
74
74
  </Composite.Item>
75
75
  );
@@ -155,12 +155,12 @@ function SuggestionList( { entityForSuggestions, onSelect } ) {
155
155
  </Composite>
156
156
  ) }
157
157
  { debouncedSearch && ! suggestions?.length && (
158
- <Text
158
+ <WCText
159
159
  as="p"
160
160
  className="edit-site-custom-template-modal__no-results"
161
161
  >
162
162
  { labels.not_found }
163
- </Text>
163
+ </WCText>
164
164
  ) }
165
165
  </>
166
166
  );
@@ -195,11 +195,11 @@ function AddCustomTemplateModalContent( {
195
195
  >
196
196
  { ! showSearchEntities && (
197
197
  <>
198
- <Text as="p">
198
+ <WCText as="p">
199
199
  { __(
200
200
  'Select whether to create a single template for all items or a specific one.'
201
201
  ) }
202
- </Text>
202
+ </WCText>
203
203
  <Flex
204
204
  className="edit-site-custom-template-modal__contents"
205
205
  gap="4"
@@ -223,14 +223,14 @@ function AddCustomTemplateModalContent( {
223
223
  } );
224
224
  } }
225
225
  >
226
- <Text
226
+ <WCText
227
227
  as="span"
228
228
  weight={ 500 }
229
229
  lineHeight={ 1.53846153846 } // 20px
230
230
  >
231
231
  { entityForSuggestions.labels.all_items }
232
- </Text>
233
- <Text
232
+ </WCText>
233
+ <WCText
234
234
  as="span"
235
235
  lineHeight={ 1.53846153846 } // 20px
236
236
  >
@@ -238,7 +238,7 @@ function AddCustomTemplateModalContent( {
238
238
  // translators: The user is given the choice to set up a template for all items of a post type or taxonomy, or just a specific one.
239
239
  __( 'For all items' )
240
240
  }
241
- </Text>
241
+ </WCText>
242
242
  </FlexItem>
243
243
  <FlexItem
244
244
  isBlock
@@ -247,14 +247,14 @@ function AddCustomTemplateModalContent( {
247
247
  setShowSearchEntities( true );
248
248
  } }
249
249
  >
250
- <Text
250
+ <WCText
251
251
  as="span"
252
252
  weight={ 500 }
253
253
  lineHeight={ 1.53846153846 } // 20px
254
254
  >
255
255
  { entityForSuggestions.labels.singular_name }
256
- </Text>
257
- <Text
256
+ </WCText>
257
+ <WCText
258
258
  as="span"
259
259
  lineHeight={ 1.53846153846 } // 20px
260
260
  >
@@ -262,7 +262,7 @@ function AddCustomTemplateModalContent( {
262
262
  // translators: The user is given the choice to set up a template for all items of a post type or taxonomy, or just a specific one.
263
263
  __( 'For a specific item' )
264
264
  }
265
- </Text>
265
+ </WCText>
266
266
  </FlexItem>
267
267
  </Flex>
268
268
  <Flex justify="right">
@@ -278,11 +278,11 @@ function AddCustomTemplateModalContent( {
278
278
  ) }
279
279
  { showSearchEntities && (
280
280
  <>
281
- <Text as="p">
281
+ <WCText as="p">
282
282
  { __(
283
283
  'This template will be used only for the specific item chosen.'
284
284
  ) }
285
- </Text>
285
+ </WCText>
286
286
  <SuggestionList
287
287
  entityForSuggestions={ entityForSuggestions }
288
288
  onSelect={ onSelect }
@@ -10,7 +10,7 @@ import {
10
10
  Button,
11
11
  Modal,
12
12
  __experimentalGrid as Grid,
13
- __experimentalText as Text,
13
+ __experimentalText as WCText,
14
14
  __experimentalVStack as VStack,
15
15
  Flex,
16
16
  Icon,
@@ -130,13 +130,13 @@ function TemplateListItem( {
130
130
  alignment="center"
131
131
  spacing={ 0 }
132
132
  >
133
- <Text
133
+ <WCText
134
134
  align="center"
135
135
  weight={ 500 }
136
136
  lineHeight={ 1.53846153846 } // 20px
137
137
  >
138
138
  { title }
139
- </Text>
139
+ </WCText>
140
140
  { children }
141
141
  </VStack>
142
142
  </Flex>
@@ -323,13 +323,13 @@ function NewTemplateModal( { onClose } ) {
323
323
  )
324
324
  }
325
325
  >
326
- <Text
326
+ <WCText
327
327
  lineHeight={ 1.53846153846 } // 20px
328
328
  >
329
329
  { __(
330
330
  'A custom template can be manually applied to any post or page.'
331
331
  ) }
332
- </Text>
332
+ </WCText>
333
333
  </TemplateListItem>
334
334
  </Grid>
335
335
  ) }
@@ -181,6 +181,7 @@ export default function DataviewsPatterns() {
181
181
  <Page
182
182
  className="edit-site-page-patterns-dataviews"
183
183
  title={ title }
184
+ headingLevel={ 2 }
184
185
  subTitle={ description }
185
186
  actions={
186
187
  <PatternsActions
@@ -34,7 +34,7 @@ import { useDefaultTemplateTypes } from '../add-new-template/utils';
34
34
  import usePatternSettings from '../page-patterns/use-pattern-settings';
35
35
  import { unlock } from '../../lock-unlock';
36
36
 
37
- const { Badge } = unlock( componentsPrivateApis );
37
+ const { Badge: WCBadge } = unlock( componentsPrivateApis );
38
38
  const { useEntityRecordsWithPermissions } = unlock( corePrivateApis );
39
39
  const { useStyle } = unlock( editorPrivateApis );
40
40
 
@@ -165,9 +165,9 @@ export const activeField = {
165
165
  const activeIntent = item._isCustom ? 'info' : 'success';
166
166
  const isActive = item._isActive;
167
167
  return (
168
- <Badge intent={ isActive ? activeIntent : 'default' }>
168
+ <WCBadge intent={ isActive ? activeIntent : 'default' }>
169
169
  { isActive ? activeLabel : _x( 'Inactive', 'template' ) }
170
- </Badge>
170
+ </WCBadge>
171
171
  );
172
172
  },
173
173
  };
@@ -183,9 +183,9 @@ export const useThemeField = () => {
183
183
  getValue: ( { item } ) => item.theme,
184
184
  render: function Render( { item } ) {
185
185
  if ( item.theme === activeTheme.stylesheet ) {
186
- return <Badge intent="success">{ item.theme }</Badge>;
186
+ return <WCBadge intent="success">{ item.theme }</WCBadge>;
187
187
  }
188
- return <Badge intent="error">{ item.theme }</Badge>;
188
+ return <WCBadge intent="error">{ item.theme }</WCBadge>;
189
189
  },
190
190
  } ),
191
191
  [ activeTheme ]
@@ -136,6 +136,7 @@ export default function PageTemplates() {
136
136
  <Page
137
137
  className="edit-site-page-templates"
138
138
  title={ __( 'Templates' ) }
139
+ headingLevel={ 2 }
139
140
  actions={ <AddNewTemplate /> }
140
141
  >
141
142
  <DataViews
@@ -325,6 +325,7 @@ export default function PageTemplates() {
325
325
  <Page
326
326
  className="edit-site-page-templates"
327
327
  title={ __( 'Templates' ) }
328
+ headingLevel={ 2 }
328
329
  actions={ <AddNewTemplate /> }
329
330
  >
330
331
  <DataViews