@wordpress/edit-widgets 6.50.0 → 6.51.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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 6.51.0 (2026-07-14)
6
+
7
+ ### Enhancements
8
+
9
+ - Widen React peer dependency ranges to `^18 || ^19` to support both React 18 and React 19 environments ([#80024](https://github.com/WordPress/gutenberg/pull/80024)).
10
+
5
11
  ## 6.50.0 (2026-07-01)
6
12
 
7
13
  ## 6.49.0 (2026-06-24)
@@ -67,6 +67,12 @@
67
67
  /**
68
68
  * Focus styles.
69
69
  */
70
+ /**
71
+ * Standard focus rings for the WordPress Design System.
72
+ *
73
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
74
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
75
+ */
70
76
  /**
71
77
  * Applies editor left position to the selector passed as argument
72
78
  */
@@ -185,6 +191,12 @@
185
191
  /**
186
192
  * Focus styles.
187
193
  */
194
+ /**
195
+ * Standard focus rings for the WordPress Design System.
196
+ *
197
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
198
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
199
+ */
188
200
  /**
189
201
  * Applies editor left position to the selector passed as argument
190
202
  */
@@ -239,7 +251,7 @@
239
251
 
240
252
  .interface-complementary-area h2 {
241
253
  font-size: 13px;
242
- font-weight: 499;
254
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
243
255
  color: #1e1e1e;
244
256
  margin-bottom: 1.5em;
245
257
  }
@@ -247,7 +259,7 @@
247
259
  .interface-complementary-area h3 {
248
260
  font-size: 11px;
249
261
  text-transform: uppercase;
250
- font-weight: 499;
262
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
251
263
  color: #1e1e1e;
252
264
  margin-bottom: 1.5em;
253
265
  }
@@ -281,12 +293,7 @@
281
293
  }
282
294
 
283
295
  @media (min-width: 782px) {
284
- body.js.is-fullscreen-mode {
285
- margin-top: -32px;
286
- height: calc(100% + 32px);
287
- }
288
- body.js.is-fullscreen-mode #adminmenumain,
289
- body.js.is-fullscreen-mode #wpadminbar {
296
+ body.js.is-fullscreen-mode #adminmenumain {
290
297
  display: none;
291
298
  }
292
299
  body.js.is-fullscreen-mode #wpcontent,
@@ -322,7 +329,7 @@ html.interface-interface-skeleton__html-container {
322
329
  top: 32px;
323
330
  }
324
331
  .is-fullscreen-mode .interface-interface-skeleton {
325
- top: 0;
332
+ top: var(--wp-admin--admin-bar--height, 0);
326
333
  }
327
334
  }
328
335
  .interface-interface-skeleton__editor {
@@ -504,7 +511,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
504
511
  top: 32px;
505
512
  }
506
513
  .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
507
- top: 0;
514
+ top: var(--wp-admin--admin-bar--height, 0);
508
515
  }
509
516
  }
510
517
  .interface-pinned-items {
@@ -540,7 +547,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
540
547
  margin-left: auto;
541
548
  }
542
549
  .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title {
543
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
550
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
544
551
  margin: 0;
545
552
  height: 48px;
546
553
  position: relative;
@@ -729,7 +736,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
729
736
  }
730
737
  .edit-widgets-keyboard-shortcut-help-modal__section-title {
731
738
  font-size: 0.9rem;
732
- font-weight: 600;
739
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
733
740
  }
734
741
  .edit-widgets-keyboard-shortcut-help-modal__shortcut {
735
742
  display: flex;
@@ -745,7 +752,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
745
752
  display: none;
746
753
  }
747
754
  .edit-widgets-keyboard-shortcut-help-modal__shortcut-term {
748
- font-weight: 600;
755
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
749
756
  margin: 0 1rem 0 0;
750
757
  text-align: left;
751
758
  }
@@ -837,7 +844,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
837
844
  object-fit: cover;
838
845
  }
839
846
  .edit-widgets-welcome-guide__heading {
840
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
847
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
841
848
  font-size: 24px;
842
849
  line-height: 1.4;
843
850
  margin: 16px 0 16px 0;
@@ -859,7 +866,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
859
866
 
860
867
  .edit-widgets-block-editor {
861
868
  position: relative;
862
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
869
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
863
870
  display: flex;
864
871
  flex-direction: column;
865
872
  flex-grow: 1;
@@ -874,7 +881,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
874
881
  height: 100%;
875
882
  }
876
883
  .edit-widgets-block-editor .components-button {
877
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
884
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
878
885
  font-size: 13px;
879
886
  }
880
887
  .edit-widgets-block-editor .components-button.is-tertiary, .edit-widgets-block-editor .components-button.has-icon {
@@ -67,6 +67,12 @@
67
67
  /**
68
68
  * Focus styles.
69
69
  */
70
+ /**
71
+ * Standard focus rings for the WordPress Design System.
72
+ *
73
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
74
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
75
+ */
70
76
  /**
71
77
  * Applies editor left position to the selector passed as argument
72
78
  */
@@ -185,6 +191,12 @@
185
191
  /**
186
192
  * Focus styles.
187
193
  */
194
+ /**
195
+ * Standard focus rings for the WordPress Design System.
196
+ *
197
+ * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
198
+ * e.g. `&:focus { @include outset-ring__focus(); }`.
199
+ */
188
200
  /**
189
201
  * Applies editor left position to the selector passed as argument
190
202
  */
@@ -239,7 +251,7 @@
239
251
 
240
252
  .interface-complementary-area h2 {
241
253
  font-size: 13px;
242
- font-weight: 499;
254
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
243
255
  color: #1e1e1e;
244
256
  margin-bottom: 1.5em;
245
257
  }
@@ -247,7 +259,7 @@
247
259
  .interface-complementary-area h3 {
248
260
  font-size: 11px;
249
261
  text-transform: uppercase;
250
- font-weight: 499;
262
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
251
263
  color: #1e1e1e;
252
264
  margin-bottom: 1.5em;
253
265
  }
@@ -281,12 +293,7 @@
281
293
  }
282
294
 
283
295
  @media (min-width: 782px) {
284
- body.js.is-fullscreen-mode {
285
- margin-top: -32px;
286
- height: calc(100% + 32px);
287
- }
288
- body.js.is-fullscreen-mode #adminmenumain,
289
- body.js.is-fullscreen-mode #wpadminbar {
296
+ body.js.is-fullscreen-mode #adminmenumain {
290
297
  display: none;
291
298
  }
292
299
  body.js.is-fullscreen-mode #wpcontent,
@@ -322,7 +329,7 @@ html.interface-interface-skeleton__html-container {
322
329
  top: 32px;
323
330
  }
324
331
  .is-fullscreen-mode .interface-interface-skeleton {
325
- top: 0;
332
+ top: var(--wp-admin--admin-bar--height, 0);
326
333
  }
327
334
  }
328
335
  .interface-interface-skeleton__editor {
@@ -504,7 +511,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
504
511
  top: 32px;
505
512
  }
506
513
  .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
507
- top: 0;
514
+ top: var(--wp-admin--admin-bar--height, 0);
508
515
  }
509
516
  }
510
517
  .interface-pinned-items {
@@ -540,7 +547,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
540
547
  margin-right: auto;
541
548
  }
542
549
  .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title {
543
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
550
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
544
551
  margin: 0;
545
552
  height: 48px;
546
553
  position: relative;
@@ -729,7 +736,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
729
736
  }
730
737
  .edit-widgets-keyboard-shortcut-help-modal__section-title {
731
738
  font-size: 0.9rem;
732
- font-weight: 600;
739
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
733
740
  }
734
741
  .edit-widgets-keyboard-shortcut-help-modal__shortcut {
735
742
  display: flex;
@@ -745,7 +752,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
745
752
  display: none;
746
753
  }
747
754
  .edit-widgets-keyboard-shortcut-help-modal__shortcut-term {
748
- font-weight: 600;
755
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
749
756
  margin: 0 0 0 1rem;
750
757
  text-align: right;
751
758
  }
@@ -837,7 +844,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
837
844
  object-fit: cover;
838
845
  }
839
846
  .edit-widgets-welcome-guide__heading {
840
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
847
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
841
848
  font-size: 24px;
842
849
  line-height: 1.4;
843
850
  margin: 16px 0 16px 0;
@@ -859,7 +866,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
859
866
 
860
867
  .edit-widgets-block-editor {
861
868
  position: relative;
862
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
869
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
863
870
  display: flex;
864
871
  flex-direction: column;
865
872
  flex-grow: 1;
@@ -874,7 +881,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
874
881
  height: 100%;
875
882
  }
876
883
  .edit-widgets-block-editor .components-button {
877
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
884
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
878
885
  font-size: 13px;
879
886
  }
880
887
  .edit-widgets-block-editor .components-button.is-tertiary, .edit-widgets-block-editor .components-button.has-icon {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-widgets",
3
- "version": "6.50.0",
3
+ "version": "6.51.0",
4
4
  "description": "Widgets Page module for WordPress..",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -47,34 +47,34 @@
47
47
  ]
48
48
  },
49
49
  "dependencies": {
50
- "@wordpress/api-fetch": "^7.50.0",
51
- "@wordpress/base-styles": "^10.2.0",
52
- "@wordpress/block-editor": "^15.23.0",
53
- "@wordpress/block-library": "^10.1.0",
54
- "@wordpress/blocks": "^15.23.0",
55
- "@wordpress/components": "^36.1.0",
56
- "@wordpress/compose": "^8.3.0",
57
- "@wordpress/core-data": "^7.50.0",
58
- "@wordpress/data": "^10.50.0",
59
- "@wordpress/deprecated": "^4.50.0",
60
- "@wordpress/dom": "^4.50.0",
61
- "@wordpress/element": "^8.2.0",
62
- "@wordpress/hooks": "^4.50.0",
63
- "@wordpress/i18n": "^6.23.0",
64
- "@wordpress/icons": "^15.1.0",
65
- "@wordpress/interface": "^9.35.0",
66
- "@wordpress/keyboard-shortcuts": "^5.50.0",
67
- "@wordpress/keycodes": "^4.50.0",
68
- "@wordpress/media-utils": "^5.50.0",
69
- "@wordpress/notices": "^5.50.0",
70
- "@wordpress/patterns": "^2.50.0",
71
- "@wordpress/plugins": "^7.50.0",
72
- "@wordpress/preferences": "^4.50.0",
73
- "@wordpress/private-apis": "^1.50.0",
74
- "@wordpress/reusable-blocks": "^5.50.0",
75
- "@wordpress/ui": "^0.17.0",
76
- "@wordpress/url": "^4.50.0",
77
- "@wordpress/widgets": "^4.50.0",
50
+ "@wordpress/api-fetch": "^7.51.0",
51
+ "@wordpress/base-styles": "^11.0.0",
52
+ "@wordpress/block-editor": "^16.0.0",
53
+ "@wordpress/block-library": "^10.2.0",
54
+ "@wordpress/blocks": "^15.24.0",
55
+ "@wordpress/components": "^37.0.0",
56
+ "@wordpress/compose": "^8.4.0",
57
+ "@wordpress/core-data": "^7.51.0",
58
+ "@wordpress/data": "^10.51.0",
59
+ "@wordpress/deprecated": "^4.51.0",
60
+ "@wordpress/dom": "^4.51.0",
61
+ "@wordpress/element": "^8.3.0",
62
+ "@wordpress/hooks": "^4.51.0",
63
+ "@wordpress/i18n": "^6.24.0",
64
+ "@wordpress/icons": "^15.2.0",
65
+ "@wordpress/interface": "^9.36.0",
66
+ "@wordpress/keyboard-shortcuts": "^5.51.0",
67
+ "@wordpress/keycodes": "^4.51.0",
68
+ "@wordpress/media-utils": "^5.51.0",
69
+ "@wordpress/notices": "^5.51.0",
70
+ "@wordpress/patterns": "^2.51.0",
71
+ "@wordpress/plugins": "^7.51.0",
72
+ "@wordpress/preferences": "^4.51.0",
73
+ "@wordpress/private-apis": "^1.51.0",
74
+ "@wordpress/reusable-blocks": "^5.51.0",
75
+ "@wordpress/ui": "^0.18.0",
76
+ "@wordpress/url": "^4.51.0",
77
+ "@wordpress/widgets": "^4.51.0",
78
78
  "clsx": "^2.1.1"
79
79
  },
80
80
  "devDependencies": {
@@ -83,11 +83,11 @@
83
83
  "deep-freeze": "^0.0.1"
84
84
  },
85
85
  "peerDependencies": {
86
- "react": "^18.0.0",
87
- "react-dom": "^18.0.0"
86
+ "react": "^18 || ^19",
87
+ "react-dom": "^18 || ^19"
88
88
  },
89
89
  "publishConfig": {
90
90
  "access": "public"
91
91
  },
92
- "gitHead": "fee6e24e8e63d36f6bbcf487c193461e9bd79753"
92
+ "gitHead": "e9a74f9c14095a34398ecd4d1f7a908e55051205"
93
93
  }
@@ -7,7 +7,7 @@
7
7
 
8
8
  &__section-title {
9
9
  font-size: 0.9rem;
10
- font-weight: 600;
10
+ font-weight: var(--wpds-typography-font-weight-emphasis);
11
11
  }
12
12
 
13
13
  &__shortcut {
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  &__shortcut-term {
30
- font-weight: 600;
30
+ font-weight: var(--wpds-typography-font-weight-emphasis);
31
31
  margin: 0 0 0 1rem;
32
32
  text-align: right;
33
33
  }
package/src/style.scss CHANGED
@@ -15,10 +15,12 @@
15
15
  @use "./components/widget-areas-block-editor-content/style.scss" as *;
16
16
  @use "./components/secondary-sidebar/style.scss" as *;
17
17
 
18
+ // stylelint-disable selector-class-pattern -- WordPress admin body classes use underscores by convention.
18
19
  body.js.appearance_page_gutenberg-widgets,
19
20
  body.js.widgets-php {
20
21
  @include wp-admin-reset( ".blocks-widgets-container" );
21
22
  }
23
+ // stylelint-enable selector-class-pattern
22
24
 
23
25
  .blocks-widgets-container {
24
26
  @include reset;
@@ -1,21 +0,0 @@
1
- @use "@wordpress/base-styles/colors" as *;
2
- @use "@wordpress/base-styles/z-index" as *;
3
-
4
- .edit-widgets-customizer-edit-widgets-initializer__content {
5
- position: relative;
6
- .edit-widgets-header {
7
- margin-top: -16px;
8
- border-top: 1px solid $gray-300;
9
- background: #fff;
10
- margin-left: -12px;
11
- margin-right: -12px;
12
- }
13
- .edit-widgets-sidebar {
14
- margin-left: -12px;
15
- margin-right: -12px;
16
- position: absolute;
17
- top: 0;
18
- width: calc(100% + 24px);
19
- z-index: z-index(".edit-widgets-sidebar");
20
- }
21
- }