Skip to content

Commit 9933dc1

Browse files
Release tracking (#7528)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b69325f commit 9933dc1

11 files changed

Lines changed: 69 additions & 66 deletions

File tree

.changeset/gold-snakes-smash.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/pagelayout-resizable-persistence.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

.changeset/red-pugs-sing.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/sixty-keys-perform.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/codesandbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@types/react": "^18.3.11",
1818
"@types/react-dom": "^18.3.0",
1919
"@vitejs/plugin-react": "^4.3.3",
20-
"@primer/react": "38.11.0",
20+
"@primer/react": "38.12.0",
2121
"@primer/styled-react": "1.0.3",
2222
"styled-components": "5.x",
2323
"typescript": "^5.9.2",

examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"type-check": "tsc --noEmit"
1111
},
1212
"dependencies": {
13-
"@primer/react": "38.11.0",
13+
"@primer/react": "38.12.0",
1414
"@primer/styled-react": "1.0.3",
1515
"next": "^16.1.5",
1616
"react": "^19.2.0",

examples/theming/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@primer/octicons-react": "^19.21.0",
14-
"@primer/react": "38.11.0",
14+
"@primer/react": "38.12.0",
1515
"@primer/styled-react": "1.0.3",
1616
"clsx": "^2.1.1",
1717
"next": "^16.1.5",

packages/mcp/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @primer/mcp
22

3+
## 0.2.0
4+
5+
### Minor Changes
6+
7+
- [#7495](https://github.com/primer/react/pull/7495) [`b69325f`](https://github.com/primer/react/commit/b69325fcb75261707f7cac01bb8f075fc13081f2) Thanks [@adierkens](https://github.com/adierkens)! - Adds support for fetching docs via the `/llms.txt` endpoint per-component
8+
9+
### Patch Changes
10+
11+
- Updated dependencies [[`3c160b2`](https://github.com/primer/react/commit/3c160b26bded975de6175ccf04272e8946cef54e), [`c87db98`](https://github.com/primer/react/commit/c87db981280090cdccc84d19c607d1462212d223), [`d86c970`](https://github.com/primer/react/commit/d86c970be94dc47da55d492dc978d63d3f9ca005)]:
12+
- @primer/react@38.12.0
13+
314
## 0.1.0
415

516
### Minor Changes

packages/mcp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@primer/mcp",
33
"private": true,
44
"description": "An MCP server that connects AI tools to the Primer Design System",
5-
"version": "0.1.0",
5+
"version": "0.2.0",
66
"type": "module",
77
"bin": {
88
"mcp": "./bin/mcp.js"
@@ -38,7 +38,7 @@
3838
"@modelcontextprotocol/sdk": "^1.24.0",
3939
"@primer/octicons": "^19.15.5",
4040
"@primer/primitives": "10.x || 11.x",
41-
"@primer/react": "^38.0.0",
41+
"@primer/react": "^38.12.0",
4242
"cheerio": "^1.0.0",
4343
"turndown": "^7.2.0",
4444
"zod": "^4.3.5"

packages/react/CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,57 @@
11
# @primer/react
22

3+
## 38.12.0
4+
5+
### Minor Changes
6+
7+
- [#7348](https://github.com/primer/react/pull/7348) [`3c160b2`](https://github.com/primer/react/commit/3c160b26bded975de6175ccf04272e8946cef54e) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Add `currentWidth` and `onResizeEnd` props to PageLayout.Pane for controlled resizable width
8+
9+
The `PageLayout.Pane` component now supports controlled width:
10+
11+
- `onResizeEnd` — callback fired when a resize operation ends (pointer release or keyboard key up). Replaces localStorage persistence. Requires `currentWidth`.
12+
- `currentWidth` — sets the current displayed width in pixels (`number | undefined`). Pass `undefined` when the persisted value hasn't loaded yet. Requires `onResizeEnd`.
13+
14+
Both props must be provided together (enforced by TypeScript). `resizable` remains a plain `boolean` prop.
15+
16+
These props are only meaningful when `resizable={true}` — without it, no drag handle renders so `onResizeEnd` never fires.
17+
18+
**New export:**
19+
20+
- `defaultPaneWidth` — Record of preset width values: `{small: 256, medium: 296, large: 320}`
21+
22+
**Example usage:**
23+
24+
```tsx
25+
import {PageLayout, defaultPaneWidth} from '@primer/react'
26+
27+
// Default behavior (unchanged) — localStorage persistence
28+
<PageLayout.Pane resizable />
29+
30+
// Controlled width with custom persistence
31+
const [width, setWidth] = useState(defaultPaneWidth.medium)
32+
<PageLayout.Pane
33+
resizable
34+
currentWidth={width}
35+
onResizeEnd={(newWidth) => {
36+
setWidth(newWidth)
37+
myStorage.save('pane-width', newWidth)
38+
}}
39+
/>
40+
41+
// Async load — pass undefined until value is fetched
42+
<PageLayout.Pane
43+
resizable
44+
currentWidth={savedWidth ?? undefined}
45+
onResizeEnd={handleResizeEnd}
46+
/>
47+
```
48+
49+
### Patch Changes
50+
51+
- [#7527](https://github.com/primer/react/pull/7527) [`c87db98`](https://github.com/primer/react/commit/c87db981280090cdccc84d19c607d1462212d223) Thanks [@llastflowers](https://github.com/llastflowers)! - Update PageHeader story to have semantic headings
52+
53+
- [#7535](https://github.com/primer/react/pull/7535) [`d86c970`](https://github.com/primer/react/commit/d86c970be94dc47da55d492dc978d63d3f9ca005) Thanks [@francinelucca](https://github.com/francinelucca)! - fix: ActionBar overflow menu not closing on select
54+
355
## 38.11.0
456

557
### Minor Changes

0 commit comments

Comments
 (0)