diff --git a/.changeset/anchored-overlay-css-anchor-positioning-settings.md b/.changeset/anchored-overlay-css-anchor-positioning-settings.md deleted file mode 100644 index 556abfdf21a..00000000000 --- a/.changeset/anchored-overlay-css-anchor-positioning-settings.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -AnchoredOverlay: Extend `cssAnchorPositioningSettings` with a `fallbackStrategy` (`'default' | 'none' | 'opposite-side'`) to control CSS anchor positioning fallback behavior when native CSS anchor positioning is active. diff --git a/.changeset/autocomplete-blur-suggestion.md b/.changeset/autocomplete-blur-suggestion.md deleted file mode 100644 index f05c0a4c428..00000000000 --- a/.changeset/autocomplete-blur-suggestion.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Autocomplete: Keep the typed text instead of restoring the full inline suggestion when the input loses focus, matching the behavior of pressing Escape diff --git a/.changeset/card-compact-layout.md b/.changeset/card-compact-layout.md deleted file mode 100644 index c676741df9a..00000000000 --- a/.changeset/card-compact-layout.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Card: Add `layout="compact"` prop for a compact card layout with tighter spacing, no icon background, and smaller title diff --git a/.changeset/inline-message-optional-variant.md b/.changeset/inline-message-optional-variant.md deleted file mode 100644 index 23e7f1999fb..00000000000 --- a/.changeset/inline-message-optional-variant.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -InlineMessage: Make `variant` prop optional, defaulting to the standard foreground color with an info icon diff --git a/.changeset/mcp-readonly-tool-annotations.md b/.changeset/mcp-readonly-tool-annotations.md deleted file mode 100644 index 472b78d4c92..00000000000 --- a/.changeset/mcp-readonly-tool-annotations.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/mcp': patch ---- - -MCP server: Add `readOnlyHint` annotation to all tools, allowing them to run without human-in-the-loop approval in agentic environments such as Copilot cloud agent. diff --git a/.changeset/pretty-coats-sell.md b/.changeset/pretty-coats-sell.md deleted file mode 100644 index 6d55936a49e..00000000000 --- a/.changeset/pretty-coats-sell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": minor ---- - -Add data-component attributes and associated tests for PageHeader, PageLayout, Pagehead, Popover, Portal, and ProgressBar diff --git a/.changeset/remove-ssr-handoff-script-under-ff.md b/.changeset/remove-ssr-handoff-script-under-ff.md deleted file mode 100644 index b9801290687..00000000000 --- a/.changeset/remove-ssr-handoff-script-under-ff.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -ThemeProvider: Skip rendering the SSR handoff script when the `primer_react_theme_provider_remove_ssr_handoff` feature flag is enabled diff --git a/.changeset/select-panel-modal-css-anchor-positioning.md b/.changeset/select-panel-modal-css-anchor-positioning.md deleted file mode 100644 index f78c7c7fdba..00000000000 --- a/.changeset/select-panel-modal-css-anchor-positioning.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -AnchoredOverlay: Add `cssAnchorPositioningSettings` prop to allow opting out of native CSS anchor positioning (via `disable`), and use it in `SelectPanel` so the `modal` variant stays manually centered instead of being repositioned by CSS anchor positioning. diff --git a/.changeset/timeline-list-semantics.md b/.changeset/timeline-list-semantics.md deleted file mode 100644 index c1f63f19e7a..00000000000 --- a/.changeset/timeline-list-semantics.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@primer/react': patch ---- - -Timeline: Add `primer_react_timeline_list_semantics` feature flag to opt into list semantics - -When the `primer_react_timeline_list_semantics` feature flag is enabled, `Timeline` renders as `
    ` and `Timeline.Item` / `Timeline.Break` render as `
  1. ` so screen reader users get list navigation (total item count, position in sequence). The default behavior is unchanged — `Timeline` and its subcomponents still render as `
    ` until the flag is opted into. - -Enable the flag with the `FeatureFlags` provider: - -```tsx -import {FeatureFlags} from '@primer/react/experimental' - - - - -``` diff --git a/examples/codesandbox/package.json b/examples/codesandbox/package.json index 3a26b2a9bb1..103d9dbb958 100644 --- a/examples/codesandbox/package.json +++ b/examples/codesandbox/package.json @@ -17,7 +17,7 @@ "@types/react": "^18.3.11", "@types/react-dom": "^18.3.0", "@vitejs/plugin-react": "^4.3.3", - "@primer/react": "38.27.0", + "@primer/react": "38.28.0", "@primer/styled-react": "1.1.0", "styled-components": "5.x", "typescript": "^6.0.3", diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index 293b9eb7296..c1fb9ccce23 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -10,7 +10,7 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@primer/react": "38.27.0", + "@primer/react": "38.28.0", "@primer/styled-react": "1.1.0", "next": "^16.1.7", "react": "^19.2.0", diff --git a/examples/theming/package.json b/examples/theming/package.json index 102905e0a4d..2c2e4bd33d1 100644 --- a/examples/theming/package.json +++ b/examples/theming/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@primer/octicons-react": "^19.21.0", - "@primer/react": "38.27.0", + "@primer/react": "38.28.0", "@primer/styled-react": "1.1.0", "clsx": "^2.1.1", "next": "^16.1.7", diff --git a/packages/mcp/CHANGELOG.md b/packages/mcp/CHANGELOG.md index e5e45bfbfe6..ce006da2881 100644 --- a/packages/mcp/CHANGELOG.md +++ b/packages/mcp/CHANGELOG.md @@ -1,5 +1,14 @@ # @primer/mcp +## 0.3.3 + +### Patch Changes + +- [#7965](https://github.com/primer/react/pull/7965) [`53ea013`](https://github.com/primer/react/commit/53ea0139bc48f5497bab5b43baed959b69dd16b0) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - MCP server: Add `readOnlyHint` annotation to all tools, allowing them to run without human-in-the-loop approval in agentic environments such as Copilot cloud agent. + +- Updated dependencies [[`45be31b`](https://github.com/primer/react/commit/45be31b561b2c1280b182531069e8a84364a4185), [`95986ce`](https://github.com/primer/react/commit/95986ce22eaca6f4cb2122a00d51ec93d72f2dfe), [`6a7e130`](https://github.com/primer/react/commit/6a7e13051139ba06e48391edc0b05ef555b814b9), [`55b7b04`](https://github.com/primer/react/commit/55b7b04647af9d7812e9ff77605524048358039c), [`3af5edc`](https://github.com/primer/react/commit/3af5edc56dd21aaa16c7c1676c4627c4ecd6f0f2), [`2087e87`](https://github.com/primer/react/commit/2087e87c9fe869a59fc1dcb0546ee25a14767006), [`0f0f79f`](https://github.com/primer/react/commit/0f0f79f5da92087e636cde0d0709479c9c68d2d1), [`0c38cfa`](https://github.com/primer/react/commit/0c38cfaeabab347e48d4e34c200739e32efa73a2)]: + - @primer/react@38.28.0 + ## 0.3.2 ### Patch Changes diff --git a/packages/mcp/package.json b/packages/mcp/package.json index f624fcd8ba0..edf4b193bcc 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -1,7 +1,7 @@ { "name": "@primer/mcp", "description": "An MCP server that connects AI tools to the Primer Design System", - "version": "0.3.2", + "version": "0.3.3", "type": "module", "bin": { "mcp": "./bin/mcp.js" @@ -37,7 +37,7 @@ "@modelcontextprotocol/sdk": "^1.24.0", "@primer/octicons": "^19.15.5", "@primer/primitives": "10.x || 11.x", - "@primer/react": "^38.20.0", + "@primer/react": "^38.28.0", "cheerio": "^1.0.0", "turndown": "^7.2.0", "zod": "^4.3.5" diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index f2005ccf468..8ded902a88d 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,39 @@ # @primer/react +## 38.28.0 + +### Minor Changes + +- [#7888](https://github.com/primer/react/pull/7888) [`45be31b`](https://github.com/primer/react/commit/45be31b561b2c1280b182531069e8a84364a4185) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Extend `cssAnchorPositioningSettings` with a `fallbackStrategy` (`'default' | 'none' | 'opposite-side'`) to control CSS anchor positioning fallback behavior when native CSS anchor positioning is active. + +- [#7923](https://github.com/primer/react/pull/7923) [`6a7e130`](https://github.com/primer/react/commit/6a7e13051139ba06e48391edc0b05ef555b814b9) Thanks [@dylanatsmith](https://github.com/dylanatsmith)! - Card: Add `layout="compact"` prop for a compact card layout with tighter spacing, no icon background, and smaller title + +- [#7922](https://github.com/primer/react/pull/7922) [`55b7b04`](https://github.com/primer/react/commit/55b7b04647af9d7812e9ff77605524048358039c) Thanks [@dylanatsmith](https://github.com/dylanatsmith)! - InlineMessage: Make `variant` prop optional, defaulting to the standard foreground color with an info icon + +- [#7889](https://github.com/primer/react/pull/7889) [`3af5edc`](https://github.com/primer/react/commit/3af5edc56dd21aaa16c7c1676c4627c4ecd6f0f2) Thanks [@llastflowers](https://github.com/llastflowers)! - Add data-component attributes and associated tests for PageHeader, PageLayout, Pagehead, Popover, Portal, and ProgressBar + +- [#7964](https://github.com/primer/react/pull/7964) [`0f0f79f`](https://github.com/primer/react/commit/0f0f79f5da92087e636cde0d0709479c9c68d2d1) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Add `cssAnchorPositioningSettings` prop to allow opting out of native CSS anchor positioning (via `disable`), and use it in `SelectPanel` so the `modal` variant stays manually centered instead of being repositioned by CSS anchor positioning. + +### Patch Changes + +- [#7918](https://github.com/primer/react/pull/7918) [`95986ce`](https://github.com/primer/react/commit/95986ce22eaca6f4cb2122a00d51ec93d72f2dfe) Thanks [@jonrohan](https://github.com/jonrohan)! - Autocomplete: Keep the typed text instead of restoring the full inline suggestion when the input loses focus, matching the behavior of pressing Escape + +- [#7971](https://github.com/primer/react/pull/7971) [`2087e87`](https://github.com/primer/react/commit/2087e87c9fe869a59fc1dcb0546ee25a14767006) Thanks [@francinelucca](https://github.com/francinelucca)! - ThemeProvider: Skip rendering the SSR handoff script when the `primer_react_theme_provider_remove_ssr_handoff` feature flag is enabled + +- [#7910](https://github.com/primer/react/pull/7910) [`0c38cfa`](https://github.com/primer/react/commit/0c38cfaeabab347e48d4e34c200739e32efa73a2) Thanks [@janmaarten-a11y](https://github.com/janmaarten-a11y)! - Timeline: Add `primer_react_timeline_list_semantics` feature flag to opt into list semantics + + When the `primer_react_timeline_list_semantics` feature flag is enabled, `Timeline` renders as `
      ` and `Timeline.Item` / `Timeline.Break` render as `
    1. ` so screen reader users get list navigation (total item count, position in sequence). The default behavior is unchanged — `Timeline` and its subcomponents still render as `
      ` until the flag is opted into. + + Enable the flag with the `FeatureFlags` provider: + + ```tsx + import {FeatureFlags} from '@primer/react/experimental' + + ; + + + ``` + ## 38.27.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index 78df4dae326..ddd2e891caf 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,7 +1,7 @@ { "name": "@primer/react", "type": "module", - "version": "38.27.0", + "version": "38.28.0", "description": "An implementation of GitHub's Primer Design System using React", "main": "./dist/index.js", "module": "./dist/index.js",