@wordpress/edit-site 6.40.2-next.v.202602241322.0 → 6.40.2

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 (53) hide show
  1. package/build/components/page-patterns/index.cjs +2 -1
  2. package/build/components/page-patterns/index.cjs.map +2 -2
  3. package/build/components/page-patterns/use-pattern-settings.cjs +14 -2
  4. package/build/components/page-patterns/use-pattern-settings.cjs.map +3 -3
  5. package/build/components/page-templates/index-legacy.cjs +1 -0
  6. package/build/components/page-templates/index-legacy.cjs.map +2 -2
  7. package/build/components/page-templates/index.cjs +1 -0
  8. package/build/components/page-templates/index.cjs.map +2 -2
  9. package/build/components/page-templates/view-utils.cjs +3 -2
  10. package/build/components/page-templates/view-utils.cjs.map +2 -2
  11. package/build/components/post-list/index.cjs +4 -2
  12. package/build/components/post-list/index.cjs.map +2 -2
  13. package/build/components/post-list/view-utils.cjs +14 -2
  14. package/build/components/post-list/view-utils.cjs.map +2 -2
  15. package/build/components/sidebar-global-styles/index.cjs +1 -0
  16. package/build/components/sidebar-global-styles/index.cjs.map +2 -2
  17. package/build/components/site-editor-routes/stylebook.cjs +14 -2
  18. package/build/components/site-editor-routes/stylebook.cjs.map +2 -2
  19. package/build/index.cjs +3 -1
  20. package/build/index.cjs.map +2 -2
  21. package/build-module/components/page-patterns/index.mjs +2 -1
  22. package/build-module/components/page-patterns/index.mjs.map +2 -2
  23. package/build-module/components/page-patterns/use-pattern-settings.mjs +14 -2
  24. package/build-module/components/page-patterns/use-pattern-settings.mjs.map +2 -2
  25. package/build-module/components/page-templates/index-legacy.mjs +1 -0
  26. package/build-module/components/page-templates/index-legacy.mjs.map +2 -2
  27. package/build-module/components/page-templates/index.mjs +1 -0
  28. package/build-module/components/page-templates/index.mjs.map +2 -2
  29. package/build-module/components/page-templates/view-utils.mjs +3 -2
  30. package/build-module/components/page-templates/view-utils.mjs.map +2 -2
  31. package/build-module/components/post-list/index.mjs +4 -2
  32. package/build-module/components/post-list/index.mjs.map +2 -2
  33. package/build-module/components/post-list/view-utils.mjs +14 -2
  34. package/build-module/components/post-list/view-utils.mjs.map +2 -2
  35. package/build-module/components/sidebar-global-styles/index.mjs +1 -0
  36. package/build-module/components/sidebar-global-styles/index.mjs.map +2 -2
  37. package/build-module/components/site-editor-routes/stylebook.mjs +14 -2
  38. package/build-module/components/site-editor-routes/stylebook.mjs.map +2 -2
  39. package/build-module/index.mjs +3 -1
  40. package/build-module/index.mjs.map +2 -2
  41. package/build-style/style-rtl.css +177 -121
  42. package/build-style/style.css +177 -121
  43. package/package.json +46 -46
  44. package/src/components/page-patterns/index.js +2 -1
  45. package/src/components/page-patterns/use-pattern-settings.js +16 -2
  46. package/src/components/page-templates/index-legacy.js +1 -0
  47. package/src/components/page-templates/index.js +1 -0
  48. package/src/components/page-templates/view-utils.js +3 -2
  49. package/src/components/post-list/index.js +5 -1
  50. package/src/components/post-list/view-utils.js +14 -2
  51. package/src/components/sidebar-global-styles/index.js +1 -0
  52. package/src/components/site-editor-routes/stylebook.js +8 -2
  53. package/src/index.js +2 -0
@@ -107,100 +107,11 @@
107
107
  }
108
108
  }
109
109
 
110
- /**
111
- * Colors
112
- */
113
- /**
114
- * SCSS Variables.
115
- *
116
- * Please use variables from this sheet to ensure consistency across the UI.
117
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
118
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
119
- */
120
- /**
121
- * Fonts & basic variables.
122
- */
123
- /**
124
- * Typography
125
- */
126
- /**
127
- * Grid System.
128
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
129
- */
130
- /**
131
- * Radius scale.
132
- */
133
- /**
134
- * Elevation scale.
135
- */
136
- /**
137
- * Dimensions.
138
- */
139
- /**
140
- * Mobile specific styles
141
- */
142
- /**
143
- * Editor styles.
144
- */
145
- /**
146
- * Block & Editor UI.
147
- */
148
- /**
149
- * Block paddings.
150
- */
151
- /**
152
- * React Native specific.
153
- * These variables do not appear to be used anywhere else.
154
- */
155
- /**
156
- * Typography
157
- */
158
- /**
159
- * Breakpoints & Media Queries
160
- */
161
- /**
162
- * Converts a hex value into the rgb equivalent.
163
- *
164
- * @param {string} hex - the hexadecimal value to convert
165
- * @return {string} comma separated rgb values
166
- */
167
- /**
168
- * Long content fade mixin
169
- *
170
- * Creates a fading overlay to signify that the content is longer
171
- * than the space allows.
172
- */
173
- /**
174
- * Breakpoint mixins
175
- */
176
- /**
177
- * Focus styles.
178
- */
179
- /**
180
- * Applies editor left position to the selector passed as argument
181
- */
182
- /**
183
- * Styles that are reused verbatim in a few places
184
- */
185
- /**
186
- * Allows users to opt-out of animations via OS-level preferences.
187
- */
188
- /**
189
- * Reset default styles for JavaScript UI based pages.
190
- * This is a WP-admin agnostic reset
191
- */
192
- /**
193
- * Reset the WP Admin page styles for Gutenberg-like pages.
194
- */
195
- /**
196
- * Creates a checkerboard pattern background to indicate transparency.
197
- * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
198
- */
199
110
  .admin-ui-page {
200
111
  display: flex;
201
112
  height: 100%;
202
- background-color: #fff;
203
- color: #2f2f2f;
113
+ background-color: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
114
+ color: var(--wpds-color-fg-content-neutral, #1e1e1e);
204
115
  position: relative;
205
116
  z-index: 1;
206
117
  flex-flow: column;
@@ -208,25 +119,34 @@
208
119
  }
209
120
 
210
121
  .admin-ui-page__header {
211
- padding: 16px 24px;
212
- border-bottom: 1px solid #f0f0f0;
213
- background: #fff;
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, #e0e0e0);
124
+ background: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
214
125
  position: sticky;
215
126
  top: 0;
216
127
  z-index: 1;
217
128
  }
218
129
 
130
+ .admin-ui-page__header-title {
131
+ font-family: var(--wpds-font-family-heading, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif);
132
+ font-size: var(--wpds-font-size-xl, 20px);
133
+ font-weight: var(--wpds-font-weight-medium, 499);
134
+ line-height: var(--wpds-font-line-height-xl, 32px);
135
+ margin: 0;
136
+ overflow: hidden;
137
+ text-overflow: ellipsis;
138
+ white-space: nowrap;
139
+ }
140
+
219
141
  .admin-ui-page__sidebar-toggle-slot:empty {
220
142
  display: none;
221
143
  }
222
144
 
223
145
  .admin-ui-page__header-subtitle {
224
- padding-block-end: 8px;
225
- color: #757575;
226
- font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
227
- font-weight: 400;
228
- font-size: 13px;
229
- line-height: 20px;
146
+ padding-block-end: var(--wpds-dimension-padding-xs, 4px);
147
+ color: var(--wpds-color-fg-content-neutral-weak, #6d6d6d);
148
+ font-size: var(--wpds-font-size-md, 13px);
149
+ line-height: var(--wpds-font-line-height-md, 24px);
230
150
  margin: 0;
231
151
  }
232
152
 
@@ -238,12 +158,12 @@
238
158
  }
239
159
 
240
160
  .admin-ui-page__content.has-padding {
241
- padding: 16px 24px;
161
+ padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
242
162
  }
243
163
 
244
164
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
245
165
  width: auto;
246
- padding: 0 8px;
166
+ padding: 0 var(--wpds-dimension-padding-xs, 4px);
247
167
  }
248
168
 
249
169
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg {
@@ -252,9 +172,54 @@
252
172
 
253
173
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after {
254
174
  content: attr(aria-label);
255
- font-size: 12px;
175
+ font-size: var(--wpds-font-size-sm, 12px);
256
176
  }
257
177
 
178
+ /**
179
+ * SCSS Variables.
180
+ *
181
+ * Please use variables from this sheet to ensure consistency across the UI.
182
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
183
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
184
+ */
185
+ /**
186
+ * Colors
187
+ */
188
+ /**
189
+ * Fonts & basic variables.
190
+ */
191
+ /**
192
+ * Typography
193
+ */
194
+ /**
195
+ * Grid System.
196
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
197
+ */
198
+ /**
199
+ * Radius scale.
200
+ */
201
+ /**
202
+ * Elevation scale.
203
+ */
204
+ /**
205
+ * Dimensions.
206
+ */
207
+ /**
208
+ * Mobile specific styles
209
+ */
210
+ /**
211
+ * Editor styles.
212
+ */
213
+ /**
214
+ * Block & Editor UI.
215
+ */
216
+ /**
217
+ * Block paddings.
218
+ */
219
+ /**
220
+ * React Native specific.
221
+ * These variables do not appear to be used anywhere else.
222
+ */
258
223
  .admin-ui-breadcrumbs__list {
259
224
  list-style: none;
260
225
  padding: 0;
@@ -410,6 +375,25 @@
410
375
  transition: padding ease-out 0.1s;
411
376
  }
412
377
  }
378
+ .dataviews-no-results.is-refreshing {
379
+ opacity: 0.5;
380
+ pointer-events: none;
381
+ }
382
+
383
+ @media not (prefers-reduced-motion) {
384
+ .dataviews-no-results.is-refreshing {
385
+ opacity: 1;
386
+ animation: dataviews-pulse 1s ease-in-out infinite;
387
+ }
388
+ }
389
+ @keyframes dataviews-pulse {
390
+ 0%, 100% {
391
+ opacity: 1;
392
+ }
393
+ 50% {
394
+ opacity: 0.5;
395
+ }
396
+ }
413
397
  .dataviews-loading-more {
414
398
  text-align: center;
415
399
  }
@@ -1088,17 +1072,28 @@
1088
1072
  z-index: 2;
1089
1073
  }
1090
1074
 
1075
+ .dataviews-footer .is-refreshing {
1076
+ opacity: 0.5;
1077
+ pointer-events: none;
1078
+ }
1079
+
1080
+ @media not (prefers-reduced-motion) {
1081
+ .dataviews-footer .is-refreshing {
1082
+ opacity: 1;
1083
+ animation: dataviews-pulse 1s ease-in-out infinite;
1084
+ }
1085
+ }
1091
1086
  @container (max-width: 560px) {
1092
- .dataviews-footer {
1087
+ .dataviews-footer__content {
1093
1088
  flex-direction: column !important;
1094
1089
  }
1095
- .dataviews-footer .dataviews-bulk-actions-footer__container {
1090
+ .dataviews-footer__content .dataviews-bulk-actions-footer__container {
1096
1091
  width: 100%;
1097
1092
  }
1098
- .dataviews-footer .dataviews-bulk-actions-footer__item-count {
1093
+ .dataviews-footer__content .dataviews-bulk-actions-footer__item-count {
1099
1094
  flex-grow: 1;
1100
1095
  }
1101
- .dataviews-footer .dataviews-pagination {
1096
+ .dataviews-footer__content .dataviews-pagination {
1102
1097
  width: 100%;
1103
1098
  justify-content: space-between;
1104
1099
  }
@@ -1119,6 +1114,10 @@
1119
1114
  z-index: 1000001;
1120
1115
  }
1121
1116
 
1117
+ .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
1118
+ padding: 0 4px;
1119
+ }
1120
+
1122
1121
  .dataviews-selection-checkbox {
1123
1122
  --checkbox-input-size: 24px;
1124
1123
  }
@@ -1393,6 +1392,17 @@
1393
1392
  padding-bottom: 12px;
1394
1393
  }
1395
1394
 
1395
+ .dataviews-view-grid.is-refreshing {
1396
+ opacity: 0.5;
1397
+ pointer-events: none;
1398
+ }
1399
+
1400
+ @media not (prefers-reduced-motion) {
1401
+ .dataviews-view-grid.is-refreshing {
1402
+ opacity: 1;
1403
+ animation: dataviews-pulse 1s ease-in-out infinite;
1404
+ }
1405
+ }
1396
1406
  .dataviews-view-grid__field-value:empty,
1397
1407
  .dataviews-view-grid__field:empty {
1398
1408
  display: none;
@@ -1747,6 +1757,17 @@ div.dataviews-view-list {
1747
1757
  line-height: 24px;
1748
1758
  }
1749
1759
 
1760
+ .dataviews-view-list.is-refreshing {
1761
+ opacity: 0.5;
1762
+ pointer-events: none;
1763
+ }
1764
+
1765
+ @media not (prefers-reduced-motion) {
1766
+ .dataviews-view-list.is-refreshing {
1767
+ opacity: 1;
1768
+ animation: dataviews-pulse 1s ease-in-out infinite;
1769
+ }
1770
+ }
1750
1771
  .dataviews-view-list__group-header {
1751
1772
  font-size: 15px;
1752
1773
  font-weight: 499;
@@ -1916,6 +1937,7 @@ div.dataviews-view-list {
1916
1937
 
1917
1938
  .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end {
1918
1939
  justify-content: flex-end;
1940
+ font-variant-numeric: tabular-nums;
1919
1941
  }
1920
1942
 
1921
1943
  .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center {
@@ -2028,10 +2050,21 @@ div.dataviews-view-list {
2028
2050
  }
2029
2051
 
2030
2052
  /* Column width intents via colgroup: make non-primary columns shrink-to-fit */
2031
- .dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand) {
2053
+ .dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data) {
2032
2054
  width: 1%;
2033
2055
  }
2034
2056
 
2057
+ .dataviews-view-table.is-refreshing {
2058
+ opacity: 0.5;
2059
+ pointer-events: none;
2060
+ }
2061
+
2062
+ @media not (prefers-reduced-motion) {
2063
+ .dataviews-view-table.is-refreshing {
2064
+ opacity: 1;
2065
+ animation: dataviews-pulse 1s ease-in-out infinite;
2066
+ }
2067
+ }
2035
2068
  .dataviews-view-picker-grid .dataviews-view-picker-grid__card {
2036
2069
  height: 100%;
2037
2070
  justify-content: flex-start;
@@ -2424,6 +2457,17 @@ div.dataviews-view-list {
2424
2457
  background-color: #ddd;
2425
2458
  }
2426
2459
 
2460
+ .dataviews-view-activity.is-refreshing {
2461
+ opacity: 0.5;
2462
+ pointer-events: none;
2463
+ }
2464
+
2465
+ @media not (prefers-reduced-motion) {
2466
+ .dataviews-view-activity.is-refreshing {
2467
+ opacity: 1;
2468
+ animation: dataviews-pulse 1s ease-in-out infinite;
2469
+ }
2470
+ }
2427
2471
  .dataviews-view-activity + .dataviews-pagination {
2428
2472
  justify-content: space-between;
2429
2473
  }
@@ -2483,7 +2527,7 @@ div.dataviews-view-list {
2483
2527
 
2484
2528
  .dataforms-layouts-panel__field-trigger--label-side {
2485
2529
  flex-direction: row;
2486
- gap: var(--wpds-dimension-gap-md);
2530
+ gap: var(--wpds-dimension-gap-md, 12px);
2487
2531
  }
2488
2532
 
2489
2533
  .dataforms-layouts-panel__field-trigger--label-top {
@@ -2513,7 +2557,7 @@ div.dataviews-view-list {
2513
2557
 
2514
2558
  .dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control {
2515
2559
  color: #757575;
2516
- font-weight: var(--wpds-font-weight-regular);
2560
+ font-weight: var(--wpds-font-weight-regular, 400);
2517
2561
  }
2518
2562
 
2519
2563
  .dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon {
@@ -2530,12 +2574,12 @@ div.dataviews-view-list {
2530
2574
  color: var(--wp-admin-theme-color);
2531
2575
  flex: 0 0 auto;
2532
2576
  opacity: 0;
2533
- border-radius: var(--wpds-border-radius-xs);
2577
+ border-radius: var(--wpds-border-radius-xs, 1px);
2534
2578
  }
2535
2579
 
2536
2580
  .dataforms-layouts-panel__field-trigger-icon:focus-visible {
2537
2581
  opacity: 1;
2538
- outline: var(--wpds-border-width-focus) solid var(--wp-admin-theme-color);
2582
+ outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wp-admin-theme-color);
2539
2583
  }
2540
2584
 
2541
2585
  .dataforms-layouts-panel__field-dropdown-anchor {
@@ -2555,6 +2599,7 @@ div.dataviews-view-list {
2555
2599
  line-height: 20px;
2556
2600
  hyphens: auto;
2557
2601
  color: #757575;
2602
+ text-transform: capitalize;
2558
2603
  }
2559
2604
 
2560
2605
  .dataforms-layouts-panel__field-label .components-base-control__label {
@@ -2586,11 +2631,11 @@ div.dataviews-view-list {
2586
2631
  flex-grow: 1;
2587
2632
  min-width: 0;
2588
2633
  min-height: 24px;
2589
- line-height: var(--wpds-font-line-height-md);
2634
+ line-height: var(--wpds-font-line-height-md, 24px);
2590
2635
  display: flex;
2591
2636
  align-items: center;
2592
2637
  overflow: hidden;
2593
- font-weight: var(--wpds-font-weight-medium);
2638
+ font-weight: var(--wpds-font-weight-medium, 499);
2594
2639
  }
2595
2640
 
2596
2641
  .dataforms-layouts-panel__field-control > * {
@@ -2635,8 +2680,9 @@ div.dataviews-view-list {
2635
2680
  }
2636
2681
 
2637
2682
  .dataforms-layouts-regular__field .components-base-control__label,
2638
- .dataforms-layouts-regular__field .components-input-control__label {
2639
- color: #757575;
2683
+ .dataforms-layouts-regular__field .components-input-control__label,
2684
+ .dataforms-layouts-regular__field .components-form-token-field__label {
2685
+ color: #1e1e1e;
2640
2686
  }
2641
2687
 
2642
2688
  .dataforms-layouts-regular__field-label {
@@ -3065,7 +3111,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-dr
3065
3111
  fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview {
3066
3112
  position: relative;
3067
3113
  width: 100%;
3068
- aspect-ratio: var(--fields-media-edit-expanded-multiple-aspect-ratio, 3/2);
3114
+ aspect-ratio: 3/2;
3069
3115
  border-radius: 2px;
3070
3116
  padding: 4px;
3071
3117
  overflow: hidden;
@@ -3148,13 +3194,22 @@ fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media
3148
3194
  }
3149
3195
 
3150
3196
  fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) {
3151
- grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
3197
+ grid-template-columns: repeat(3, 1fr);
3152
3198
  /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
3153
3199
  }
3154
3200
 
3155
- @container (max-width: 500px) {
3201
+ @container (max-width: 768px) {
3156
3202
  fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) {
3157
- grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
3203
+ grid-template-columns: repeat(2, 1fr);
3204
+ }
3205
+ }
3206
+ fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) {
3207
+ /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
3208
+ }
3209
+
3210
+ @container (max-width: 280px) {
3211
+ fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) {
3212
+ grid-template-columns: 1fr;
3158
3213
  }
3159
3214
  }
3160
3215
  fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-picker-button {
@@ -3165,7 +3220,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
3165
3220
  display: flex;
3166
3221
  align-items: center;
3167
3222
  justify-content: center;
3168
- aspect-ratio: var(--fields-media-edit-expanded-multiple-aspect-ratio, 3/2);
3223
+ aspect-ratio: 3/2;
3169
3224
  }
3170
3225
 
3171
3226
  .fields-controls__slug {
@@ -3712,6 +3767,7 @@ button.font-library__upload-area {
3712
3767
  background: #fff;
3713
3768
  padding: 12px;
3714
3769
  border-top: 1px solid #ddd;
3770
+ box-sizing: border-box;
3715
3771
  }
3716
3772
 
3717
3773
  .global-styles-ui-variations_item {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "6.40.2-next.v.202602241322.0+bce7cff88",
3
+ "version": "6.40.2",
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,50 @@
48
48
  ],
49
49
  "dependencies": {
50
50
  "@react-spring/web": "^9.4.5",
51
- "@wordpress/a11y": "^4.40.1-next.v.202602241322.0+bce7cff88",
52
- "@wordpress/admin-ui": "^1.8.1-next.v.202602241322.0+bce7cff88",
53
- "@wordpress/api-fetch": "^7.40.1-next.v.202602241322.0+bce7cff88",
54
- "@wordpress/base-styles": "^6.16.1-next.v.202602241322.0+bce7cff88",
55
- "@wordpress/blob": "^4.40.1-next.v.202602241322.0+bce7cff88",
56
- "@wordpress/block-editor": "^15.13.2-next.v.202602241322.0+bce7cff88",
57
- "@wordpress/block-library": "^9.40.2-next.v.202602241322.0+bce7cff88",
58
- "@wordpress/blocks": "^15.13.1-next.v.202602241322.0+bce7cff88",
59
- "@wordpress/commands": "^1.40.1-next.v.202602241322.0+bce7cff88",
60
- "@wordpress/components": "^32.3.1-next.v.202602241322.0+bce7cff88",
61
- "@wordpress/compose": "^7.40.1-next.v.202602241322.0+bce7cff88",
62
- "@wordpress/core-data": "^7.40.2-next.v.202602241322.0+bce7cff88",
63
- "@wordpress/data": "^10.40.1-next.v.202602241322.0+bce7cff88",
64
- "@wordpress/dataviews": "^12.1.1-next.v.202602241322.0+bce7cff88",
65
- "@wordpress/date": "^5.40.1-next.v.202602241322.0+bce7cff88",
66
- "@wordpress/deprecated": "^4.40.1-next.v.202602241322.0+bce7cff88",
67
- "@wordpress/dom": "^4.40.1-next.v.202602241322.0+bce7cff88",
68
- "@wordpress/editor": "^14.40.2-next.v.202602241322.0+bce7cff88",
69
- "@wordpress/element": "^6.40.1-next.v.202602241322.0+bce7cff88",
70
- "@wordpress/escape-html": "^3.40.1-next.v.202602241322.0+bce7cff88",
71
- "@wordpress/fields": "^0.32.2-next.v.202602241322.0+bce7cff88",
72
- "@wordpress/global-styles-engine": "^1.7.1-next.v.202602241322.0+bce7cff88",
73
- "@wordpress/global-styles-ui": "^1.7.2-next.v.202602241322.0+bce7cff88",
74
- "@wordpress/hooks": "^4.40.1-next.v.202602241322.0+bce7cff88",
75
- "@wordpress/html-entities": "^4.40.1-next.v.202602241322.0+bce7cff88",
76
- "@wordpress/i18n": "^6.13.1-next.v.202602241322.0+bce7cff88",
77
- "@wordpress/icons": "^11.7.1-next.v.202602241322.0+bce7cff88",
78
- "@wordpress/keyboard-shortcuts": "^5.40.1-next.v.202602241322.0+bce7cff88",
79
- "@wordpress/keycodes": "^4.40.1-next.v.202602241322.0+bce7cff88",
80
- "@wordpress/media-utils": "^5.40.2-next.v.202602241322.0+bce7cff88",
81
- "@wordpress/notices": "^5.40.1-next.v.202602241322.0+bce7cff88",
82
- "@wordpress/patterns": "^2.40.2-next.v.202602241322.0+bce7cff88",
83
- "@wordpress/plugins": "^7.40.1-next.v.202602241322.0+bce7cff88",
84
- "@wordpress/preferences": "^4.40.1-next.v.202602241322.0+bce7cff88",
85
- "@wordpress/primitives": "^4.40.1-next.v.202602241322.0+bce7cff88",
86
- "@wordpress/private-apis": "^1.40.1-next.v.202602241322.0+bce7cff88",
87
- "@wordpress/reusable-blocks": "^5.40.2-next.v.202602241322.0+bce7cff88",
88
- "@wordpress/router": "^1.40.1-next.v.202602241322.0+bce7cff88",
89
- "@wordpress/style-engine": "^2.40.1-next.v.202602241322.0+bce7cff88",
90
- "@wordpress/url": "^4.40.1-next.v.202602241322.0+bce7cff88",
91
- "@wordpress/viewport": "^6.40.1-next.v.202602241322.0+bce7cff88",
92
- "@wordpress/views": "^1.7.1-next.v.202602241322.0+bce7cff88",
93
- "@wordpress/widgets": "^4.40.2-next.v.202602241322.0+bce7cff88",
94
- "@wordpress/wordcount": "^4.40.1-next.v.202602241322.0+bce7cff88",
51
+ "@wordpress/a11y": "^4.40.1",
52
+ "@wordpress/admin-ui": "^1.8.1",
53
+ "@wordpress/api-fetch": "^7.40.1",
54
+ "@wordpress/base-styles": "^6.16.1",
55
+ "@wordpress/blob": "^4.40.1",
56
+ "@wordpress/block-editor": "^15.13.2",
57
+ "@wordpress/block-library": "^9.40.2",
58
+ "@wordpress/blocks": "^15.13.1",
59
+ "@wordpress/commands": "^1.40.1",
60
+ "@wordpress/components": "^32.2.1",
61
+ "@wordpress/compose": "^7.40.1",
62
+ "@wordpress/core-data": "^7.40.2",
63
+ "@wordpress/data": "^10.40.1",
64
+ "@wordpress/dataviews": "^12.0.1",
65
+ "@wordpress/date": "^5.40.1",
66
+ "@wordpress/deprecated": "^4.40.1",
67
+ "@wordpress/dom": "^4.40.1",
68
+ "@wordpress/editor": "^14.40.2",
69
+ "@wordpress/element": "^6.40.1",
70
+ "@wordpress/escape-html": "^3.40.1",
71
+ "@wordpress/fields": "^0.32.2",
72
+ "@wordpress/global-styles-engine": "^1.7.1",
73
+ "@wordpress/global-styles-ui": "^1.7.2",
74
+ "@wordpress/hooks": "^4.40.1",
75
+ "@wordpress/html-entities": "^4.40.1",
76
+ "@wordpress/i18n": "^6.13.1",
77
+ "@wordpress/icons": "^11.7.1",
78
+ "@wordpress/keyboard-shortcuts": "^5.40.1",
79
+ "@wordpress/keycodes": "^4.40.1",
80
+ "@wordpress/media-utils": "^5.40.2",
81
+ "@wordpress/notices": "^5.40.1",
82
+ "@wordpress/patterns": "^2.40.2",
83
+ "@wordpress/plugins": "^7.40.1",
84
+ "@wordpress/preferences": "^4.40.1",
85
+ "@wordpress/primitives": "^4.40.1",
86
+ "@wordpress/private-apis": "^1.40.1",
87
+ "@wordpress/reusable-blocks": "^5.40.2",
88
+ "@wordpress/router": "^1.40.1",
89
+ "@wordpress/style-engine": "^2.40.1",
90
+ "@wordpress/url": "^4.40.1",
91
+ "@wordpress/viewport": "^6.40.1",
92
+ "@wordpress/views": "^1.7.1",
93
+ "@wordpress/widgets": "^4.40.2",
94
+ "@wordpress/wordcount": "^4.40.1",
95
95
  "change-case": "^4.1.2",
96
96
  "clsx": "^2.1.1",
97
97
  "colord": "^2.9.2",
@@ -106,5 +106,5 @@
106
106
  "publishConfig": {
107
107
  "access": "public"
108
108
  },
109
- "gitHead": "943dde7f0b600ce238726c36284bc9f70ce0ffa4"
109
+ "gitHead": "adb6623c9f32490cfc73c7ac7f122578c1f10c65"
110
110
  }
@@ -202,11 +202,12 @@ export default function DataviewsPatterns() {
202
202
  <Page
203
203
  className="edit-site-page-patterns-dataviews"
204
204
  title={ title }
205
+ headingLevel={ 2 }
205
206
  subTitle={ description }
206
207
  actions={
207
208
  <PatternsActions
208
209
  categoryId={ categoryId }
209
- postType={ postType }
210
+ type={ postType }
210
211
  />
211
212
  }
212
213
  >
@@ -4,6 +4,7 @@
4
4
  import { store as coreStore } from '@wordpress/core-data';
5
5
  import { useSelect } from '@wordpress/data';
6
6
  import { useMemo } from '@wordpress/element';
7
+ import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
7
8
  import { privateApis as editorPrivateApis } from '@wordpress/editor';
8
9
  import { generateGlobalStyles } from '@wordpress/global-styles-engine';
9
10
 
@@ -15,6 +16,7 @@ import { store as editSiteStore } from '../../store';
15
16
  import { filterOutDuplicatesByName } from './utils';
16
17
 
17
18
  const { useGlobalStyles } = unlock( editorPrivateApis );
19
+ const { globalStylesDataKey } = unlock( blockEditorPrivateApis );
18
20
 
19
21
  export default function usePatternSettings() {
20
22
  /*
@@ -62,14 +64,26 @@ export default function usePatternSettings() {
62
64
  ...restStoredSettings
63
65
  } = storedSettings;
64
66
 
67
+ // Preserve non-global styles from settings.styles (e.g., editor styles from add_editor_style)
68
+ const nonGlobalStyles = ( styles ?? [] ).filter(
69
+ ( style ) => ! style.isGlobalStyles
70
+ );
71
+
65
72
  return {
66
73
  ...restStoredSettings,
67
- styles: globalStyles,
74
+ styles: [ ...nonGlobalStyles, ...globalStyles ],
68
75
  __experimentalFeatures: globalSettings,
76
+ [ globalStylesDataKey ]: mergedConfig.styles ?? {},
69
77
  __experimentalBlockPatterns: blockPatterns,
70
78
  isPreviewMode: true,
71
79
  };
72
- }, [ storedSettings, blockPatterns, globalStyles, globalSettings ] );
80
+ }, [
81
+ storedSettings,
82
+ blockPatterns,
83
+ globalStyles,
84
+ globalSettings,
85
+ mergedConfig,
86
+ ] );
73
87
 
74
88
  return settings;
75
89
  }
@@ -133,6 +133,7 @@ export default function PageTemplates() {
133
133
  <Page
134
134
  className="edit-site-page-templates"
135
135
  title={ __( 'Templates' ) }
136
+ headingLevel={ 2 }
136
137
  actions={ <AddNewTemplate /> }
137
138
  >
138
139
  <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
@@ -41,8 +41,9 @@ export function getActiveViewOverridesForTab( activeView ) {
41
41
  filters: [
42
42
  {
43
43
  field: 'author',
44
- operator: 'isAny',
45
- value: [ activeView ],
44
+ operator: 'is',
45
+ value: activeView,
46
+ isLocked: true,
46
47
  },
47
48
  ],
48
49
  };