@wordpress/commands 1.50.0 → 1.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,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.51.0 (2026-07-14)
6
+
7
+ ### Enhancements
8
+
9
+ - Use the emphasis font-weight token for UI emphasis ([#80093](https://github.com/WordPress/gutenberg/pull/80093)).
10
+ - 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)).
11
+
5
12
  ## 1.50.0 (2026-07-01)
6
13
 
7
14
  ## 1.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
  */
@@ -226,7 +232,7 @@
226
232
  padding: 8px 16px;
227
233
  line-height: 16px;
228
234
  font-size: 11px;
229
- font-weight: 499;
235
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
230
236
  text-transform: uppercase;
231
237
  color: #1e1e1e;
232
238
  }
@@ -270,5 +276,5 @@
270
276
  .commands-command-menu__item mark {
271
277
  color: inherit;
272
278
  background: unset;
273
- font-weight: 600;
279
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
274
280
  }
@@ -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
  */
@@ -226,7 +232,7 @@
226
232
  padding: 8px 16px;
227
233
  line-height: 16px;
228
234
  font-size: 11px;
229
- font-weight: 499;
235
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
230
236
  text-transform: uppercase;
231
237
  color: #1e1e1e;
232
238
  }
@@ -270,5 +276,5 @@
270
276
  .commands-command-menu__item mark {
271
277
  color: inherit;
272
278
  background: unset;
273
- font-weight: 600;
279
+ font-weight: var(--wpds-typography-font-weight-emphasis, 600);
274
280
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/commands",
3
- "version": "1.50.0",
3
+ "version": "1.51.0",
4
4
  "description": "Handles the commands menu.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -43,25 +43,25 @@
43
43
  },
44
44
  "wpScript": true,
45
45
  "dependencies": {
46
- "@wordpress/base-styles": "^10.2.0",
47
- "@wordpress/components": "^36.1.0",
48
- "@wordpress/data": "^10.50.0",
49
- "@wordpress/element": "^8.2.0",
50
- "@wordpress/i18n": "^6.23.0",
51
- "@wordpress/icons": "^15.1.0",
52
- "@wordpress/keyboard-shortcuts": "^5.50.0",
53
- "@wordpress/preferences": "^4.50.0",
54
- "@wordpress/private-apis": "^1.50.0",
55
- "@wordpress/warning": "^3.50.0",
46
+ "@wordpress/base-styles": "^11.0.0",
47
+ "@wordpress/components": "^37.0.0",
48
+ "@wordpress/data": "^10.51.0",
49
+ "@wordpress/element": "^8.3.0",
50
+ "@wordpress/i18n": "^6.24.0",
51
+ "@wordpress/icons": "^15.2.0",
52
+ "@wordpress/keyboard-shortcuts": "^5.51.0",
53
+ "@wordpress/preferences": "^4.51.0",
54
+ "@wordpress/private-apis": "^1.51.0",
55
+ "@wordpress/warning": "^3.51.0",
56
56
  "clsx": "^2.1.1",
57
57
  "cmdk": "^1.0.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "react": "^18.0.0",
61
- "react-dom": "^18.0.0"
60
+ "react": "^18 || ^19",
61
+ "react-dom": "^18 || ^19"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "fee6e24e8e63d36f6bbcf487c193461e9bd79753"
66
+ "gitHead": "e9a74f9c14095a34398ecd4d1f7a908e55051205"
67
67
  }
@@ -144,7 +144,7 @@ $palette-header-height: 48px;
144
144
  padding: $grid-unit-10 $grid-unit-20;
145
145
  line-height: $grid-unit-20;
146
146
  font-size: $font-size-x-small;
147
- font-weight: $font-weight-medium;
147
+ font-weight: var(--wpds-typography-font-weight-emphasis);
148
148
  text-transform: uppercase;
149
149
  color: $gray-900;
150
150
  }
@@ -196,5 +196,5 @@ $palette-header-height: 48px;
196
196
  .commands-command-menu__item mark {
197
197
  color: inherit;
198
198
  background: unset;
199
- font-weight: 600;
199
+ font-weight: var(--wpds-typography-font-weight-emphasis);
200
200
  }