Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/gold-snakes-smash.md

This file was deleted.

45 changes: 0 additions & 45 deletions .changeset/pagelayout-resizable-persistence.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/red-pugs-sing.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sixty-keys-perform.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/codesandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.3",
"@primer/react": "38.11.0",
"@primer/react": "38.12.0",
"@primer/styled-react": "1.0.3",
"styled-components": "5.x",
"typescript": "^5.9.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@primer/react": "38.11.0",
"@primer/react": "38.12.0",
"@primer/styled-react": "1.0.3",
"next": "^16.1.5",
"react": "^19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/theming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@primer/octicons-react": "^19.21.0",
"@primer/react": "38.11.0",
"@primer/react": "38.12.0",
"@primer/styled-react": "1.0.3",
"clsx": "^2.1.1",
"next": "^16.1.5",
Expand Down
11 changes: 11 additions & 0 deletions packages/mcp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @primer/mcp

## 0.2.0

### Minor Changes

- [#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

### Patch Changes

- 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)]:
- @primer/react@38.12.0

## 0.1.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/mcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@primer/mcp",
"private": true,
"description": "An MCP server that connects AI tools to the Primer Design System",
"version": "0.1.0",
"version": "0.2.0",
"type": "module",
"bin": {
"mcp": "./bin/mcp.js"
Expand Down Expand Up @@ -38,7 +38,7 @@
"@modelcontextprotocol/sdk": "^1.24.0",
"@primer/octicons": "^19.15.5",
"@primer/primitives": "10.x || 11.x",
"@primer/react": "^38.0.0",
"@primer/react": "^38.12.0",
"cheerio": "^1.0.0",
"turndown": "^7.2.0",
"zod": "^4.3.5"
Expand Down
52 changes: 52 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,57 @@
# @primer/react

## 38.12.0

### Minor Changes

- [#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

The `PageLayout.Pane` component now supports controlled width:

- `onResizeEnd` — callback fired when a resize operation ends (pointer release or keyboard key up). Replaces localStorage persistence. Requires `currentWidth`.
- `currentWidth` — sets the current displayed width in pixels (`number | undefined`). Pass `undefined` when the persisted value hasn't loaded yet. Requires `onResizeEnd`.

Both props must be provided together (enforced by TypeScript). `resizable` remains a plain `boolean` prop.

These props are only meaningful when `resizable={true}` — without it, no drag handle renders so `onResizeEnd` never fires.

**New export:**

- `defaultPaneWidth` — Record of preset width values: `{small: 256, medium: 296, large: 320}`

**Example usage:**

```tsx
import {PageLayout, defaultPaneWidth} from '@primer/react'

// Default behavior (unchanged) — localStorage persistence
<PageLayout.Pane resizable />

// Controlled width with custom persistence
const [width, setWidth] = useState(defaultPaneWidth.medium)
<PageLayout.Pane
resizable
currentWidth={width}
onResizeEnd={(newWidth) => {
setWidth(newWidth)
myStorage.save('pane-width', newWidth)
}}
/>

// Async load — pass undefined until value is fetched
<PageLayout.Pane
resizable
currentWidth={savedWidth ?? undefined}
onResizeEnd={handleResizeEnd}
/>
```

### Patch Changes

- [#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

- [#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

## 38.11.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@primer/react",
"type": "module",
"version": "38.11.0",
"version": "38.12.0",
"description": "An implementation of GitHub's Primer Design System using React",
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
Loading