From 3a31100efe33bee97f6ef1c0ba77bc4b7a1ec04c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Mon, 6 Jul 2026 14:52:44 +0200 Subject: [PATCH] Version Packages (#4335) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .changeset/ask-ai-paragraph-margin-button.md | 5 ---- .changeset/back-to-space-toc.md | 5 ---- .changeset/breadcrumbs-section-variant.md | 5 ---- .changeset/customer-goto-domcontentloaded.md | 5 ---- .changeset/expr-eval-estree-from-npm.md | 5 ---- .../fix-ask-button-centered-paragraph.md | 5 ---- .changeset/flaky-cookie-banner-screenshots.md | 5 ---- .../hide-admin-toolbar-in-screenshots.md | 5 ---- .changeset/markdown-ask-goal-param.md | 5 ---- .changeset/mcp-available-badge.md | 7 ----- .changeset/mcp-search-best-section.md | 5 ---- .../reduced-motion-maxwidth-transition.md | 5 ---- .changeset/reset-cross-space-nav-e2e.md | 5 ---- .changeset/rnd-11617-nullable-anyof.md | 5 ---- .changeset/rnd-11620-changed-pages-toolbar.md | 5 ---- .changeset/section-dropdown-clipping.md | 5 ---- .changeset/section-dropdown-embedded-empty.md | 5 ---- .changeset/spicy-pages-rescue.md | 5 ---- bun.lock | 22 +++++++-------- package.json | 2 +- packages/expr/CHANGELOG.md | 6 +++++ packages/expr/package.json | 2 +- packages/gitbook/CHANGELOG.md | 27 +++++++++++++++++++ packages/gitbook/package.json | 2 +- packages/openapi-parser/CHANGELOG.md | 6 +++++ packages/openapi-parser/package.json | 2 +- packages/react-openapi/CHANGELOG.md | 10 +++++++ packages/react-openapi/package.json | 2 +- 28 files changed, 65 insertions(+), 108 deletions(-) delete mode 100644 .changeset/ask-ai-paragraph-margin-button.md delete mode 100644 .changeset/back-to-space-toc.md delete mode 100644 .changeset/breadcrumbs-section-variant.md delete mode 100644 .changeset/customer-goto-domcontentloaded.md delete mode 100644 .changeset/expr-eval-estree-from-npm.md delete mode 100644 .changeset/fix-ask-button-centered-paragraph.md delete mode 100644 .changeset/flaky-cookie-banner-screenshots.md delete mode 100644 .changeset/hide-admin-toolbar-in-screenshots.md delete mode 100644 .changeset/markdown-ask-goal-param.md delete mode 100644 .changeset/mcp-available-badge.md delete mode 100644 .changeset/mcp-search-best-section.md delete mode 100644 .changeset/reduced-motion-maxwidth-transition.md delete mode 100644 .changeset/reset-cross-space-nav-e2e.md delete mode 100644 .changeset/rnd-11617-nullable-anyof.md delete mode 100644 .changeset/rnd-11620-changed-pages-toolbar.md delete mode 100644 .changeset/section-dropdown-clipping.md delete mode 100644 .changeset/section-dropdown-embedded-empty.md delete mode 100644 .changeset/spicy-pages-rescue.md diff --git a/.changeset/ask-ai-paragraph-margin-button.md b/.changeset/ask-ai-paragraph-margin-button.md deleted file mode 100644 index a273e6a38..000000000 --- a/.changeset/ask-ai-paragraph-margin-button.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Add a hover affordance in the document margin to ask the AI Assistant about a paragraph. On devices with a fine pointer, hovering a top-level paragraph reveals a small button that stages the paragraph's text as context and opens the assistant — making the existing text-selection "Ask" flow more discoverable. diff --git a/.changeset/back-to-space-toc.md b/.changeset/back-to-space-toc.md deleted file mode 100644 index fc502837a..000000000 --- a/.changeset/back-to-space-toc.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Show a "Back to [space]" shortcut at the top of the table of contents when a reader follows a link into a different space, so they don't lose track of where they were browsing from. diff --git a/.changeset/breadcrumbs-section-variant.md b/.changeset/breadcrumbs-section-variant.md deleted file mode 100644 index 0a7116f6d..000000000 --- a/.changeset/breadcrumbs-section-variant.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Show where a page lives in the site at the start of the page breadcrumbs: its section (including any enclosing section groups) and variant. Hovering any breadcrumb item reveals a dropdown to switch to its siblings at the same level — other section groups, sections, variants, page groups or pages — computed on the server from already-available data (no extra request). Language variants are left to the dedicated language picker rather than shown as a crumb. Also restyles the breadcrumbs to normal casing (matching search results). diff --git a/.changeset/customer-goto-domcontentloaded.md b/.changeset/customer-goto-domcontentloaded.md deleted file mode 100644 index c34b07ba3..000000000 --- a/.changeset/customer-goto-domcontentloaded.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Navigate customer visual tests with `domcontentloaded` to avoid `load`-event hangs on external sites. diff --git a/.changeset/expr-eval-estree-from-npm.md b/.changeset/expr-eval-estree-from-npm.md deleted file mode 100644 index 2aec2692e..000000000 --- a/.changeset/expr-eval-estree-from-npm.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@gitbook/expr": patch ---- - -Depend on `eval-estree-expression` from the npm registry (`^3.0.1`) instead of a pinned GitHub commit. The published `3.0.1` release is built from the exact commit the package was pinned to, so the code is unchanged — this only removes the fragile git/tarball dependency so consumers install it from npm like any other package. diff --git a/.changeset/fix-ask-button-centered-paragraph.md b/.changeset/fix-ask-button-centered-paragraph.md deleted file mode 100644 index 1f89e6c26..000000000 --- a/.changeset/fix-ask-button-centered-paragraph.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Fix center- and end-aligned paragraphs shifting left on wide/no-TOC pages when the AI Assistant is enabled, caused by the per-paragraph ask-button wrapper not inheriting the block alignment. diff --git a/.changeset/flaky-cookie-banner-screenshots.md b/.changeset/flaky-cookie-banner-screenshots.md deleted file mode 100644 index 8f3b9601a..000000000 --- a/.changeset/flaky-cookie-banner-screenshots.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Fix flaky customer e2e screenshots by waiting for the built-in cookie banner before capturing. diff --git a/.changeset/hide-admin-toolbar-in-screenshots.md b/.changeset/hide-admin-toolbar-in-screenshots.md deleted file mode 100644 index 76d60b905..000000000 --- a/.changeset/hide-admin-toolbar-in-screenshots.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Add a `data-testid` to the admin toolbar so e2e tests can assert its presence while hiding it from visual screenshots (it animates open, causing flaky diffs). diff --git a/.changeset/markdown-ask-goal-param.md b/.changeset/markdown-ask-goal-param.md deleted file mode 100644 index d10324fda..000000000 --- a/.changeset/markdown-ask-goal-param.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Support an optional `goal` query parameter on the markdown ask interface (`?ask=…&goal=…`), letting agents describe the broader end goal they are working towards so the answer can be steered towards it. diff --git a/.changeset/mcp-available-badge.md b/.changeset/mcp-available-badge.md deleted file mode 100644 index 67a7b53bd..000000000 --- a/.changeset/mcp-available-badge.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@gitbook/openapi-parser": patch -"@gitbook/react-openapi": patch -"gitbook": patch ---- - -Add an "Available in MCP" badge on OpenAPI operations marked with `x-gitbook-mcp: true`. When `x-gitbook-mcp-url` is set (on the operation, path, or root — most specific wins), the badge becomes a button that copies the MCP server URL to the clipboard. diff --git a/.changeset/mcp-search-best-section.md b/.changeset/mcp-search-best-section.md deleted file mode 100644 index 189c1799a..000000000 --- a/.changeset/mcp-search-best-section.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Reduce the size of `searchDocumentation` MCP responses by returning only the best-matching section per page instead of concatenating every section body. diff --git a/.changeset/reduced-motion-maxwidth-transition.md b/.changeset/reduced-motion-maxwidth-transition.md deleted file mode 100644 index 682519b53..000000000 --- a/.changeset/reduced-motion-maxwidth-transition.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Disable the content max-width transition under reduced motion, matching the surrounding layout transitions. diff --git a/.changeset/reset-cross-space-nav-e2e.md b/.changeset/reset-cross-space-nav-e2e.md deleted file mode 100644 index e343faac9..000000000 --- a/.changeset/reset-cross-space-nav-e2e.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Reset cross-space navigation state between e2e navigations so the "Back to " shortcut can't leak in and cause flaky screenshots. diff --git a/.changeset/rnd-11617-nullable-anyof.md b/.changeset/rnd-11617-nullable-anyof.md deleted file mode 100644 index b9b114e9d..000000000 --- a/.changeset/rnd-11617-nullable-anyof.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Render `anyOf`/`oneOf` with a `null` member as a nullable schema instead of a `null` union branch. diff --git a/.changeset/rnd-11620-changed-pages-toolbar.md b/.changeset/rnd-11620-changed-pages-toolbar.md deleted file mode 100644 index 8847645f3..000000000 --- a/.changeset/rnd-11620-changed-pages-toolbar.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Show changed pages in preview toolbars for change requests and revisions. diff --git a/.changeset/section-dropdown-clipping.md b/.changeset/section-dropdown-clipping.md deleted file mode 100644 index a0fd5393d..000000000 --- a/.changeset/section-dropdown-clipping.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Fix site section dropdowns not being bounded by their container during the open/resize animation, causing the contents to visually clip. diff --git a/.changeset/section-dropdown-embedded-empty.md b/.changeset/section-dropdown-embedded-empty.md deleted file mode 100644 index dfd70d68f..000000000 --- a/.changeset/section-dropdown-embedded-empty.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Fix grouped top-nav section dropdowns rendering empty when the site is embedded in an iframe (visitor-auth embeds, editor preview) or shown in the embeddable view. The dropdown viewport is composited and animated, and a clipped composited layer fails to rasterize its text in Chromium when painted inside a sub compositing root; the rounded-corner clipping is now done on an inner wrapper so the viewport itself is no longer clipped. diff --git a/.changeset/spicy-pages-rescue.md b/.changeset/spicy-pages-rescue.md deleted file mode 100644 index 123ecbefb..000000000 --- a/.changeset/spicy-pages-rescue.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Improve the 404 page: remove the table of contents sidebar and center the content, suggest related pages (ranked from the already-cached search index, so no extra request per 404), show a search or assistant input depending on the site's AI configuration, and move "Go to homepage" to the bottom as a last resort. diff --git a/bun.lock b/bun.lock index e749e7550..742f26e50 100644 --- a/bun.lock +++ b/bun.lock @@ -74,7 +74,7 @@ }, "packages/expr": { "name": "@gitbook/expr", - "version": "1.3.0", + "version": "1.3.1", "dependencies": { "acorn": "^8.15.0", "acorn-loose": "^8.5.2", @@ -109,7 +109,7 @@ }, "packages/gitbook": { "name": "gitbook", - "version": "0.27.1", + "version": "0.27.2", "dependencies": { "@cloudflare/workers-types": "^4.20251011.0", "@gitbook/api": "catalog:", @@ -253,7 +253,7 @@ }, "packages/openapi-parser": { "name": "@gitbook/openapi-parser", - "version": "3.0.11", + "version": "3.0.12", "dependencies": { "@scalar/json-magic": "^0.9.4", "@scalar/openapi-parser": "^0.24.5", @@ -312,7 +312,7 @@ }, "packages/react-openapi": { "name": "@gitbook/react-openapi", - "version": "1.5.14", + "version": "1.5.15", "dependencies": { "@gitbook/expr": "workspace:*", "@gitbook/openapi-parser": "workspace:*", @@ -1594,17 +1594,17 @@ "@tsconfig/strictest": ["@tsconfig/strictest@2.0.6", "", {}, "sha512-tPOhmDhIUcDjvpDDYyiUdssP84Eqm7n5KxJe5J3/g+s6xoDIPAf+SIn06dhw7VkhxIvLOnhDDrX7tsqMHNEhDg=="], - "@turbo/darwin-64": ["@turbo/darwin-64@2.9.18", "", { "os": "darwin", "cpu": "x64" }, "sha512-9f27peFu16ur8c0v9nUFUEyBnbKuuFsUTjHFWfmwGfzySBXbHwzU44QhZon6Mznz0cHsIr3984NQj/bVrnGSRw=="], + "@turbo/darwin-64": ["@turbo/darwin-64@2.10.3", "", { "os": "darwin", "cpu": "x64" }, "sha512-guuiO2kKc7yUQFU2jhWyM/BrYGD/brqb0+JvJIXTQ/QI1NlWfHZ1id50kkkOWqxmBiDc8DgW2orfY85pQIc7gw=="], - "@turbo/darwin-arm64": ["@turbo/darwin-arm64@2.9.18", "", { "os": "darwin", "cpu": "arm64" }, "sha512-9A6TMRq/Ib+QnbhLlgkhOm+624wO4pzSQ/yQviQfWHOlFvaYxdnIAYmu2H6TS6y7kSVL0DvzNe04NbESTOzFVQ=="], + "@turbo/darwin-arm64": ["@turbo/darwin-arm64@2.10.3", "", { "os": "darwin", "cpu": "arm64" }, "sha512-UglEDl/r1/h5Vw6oS6cEE29Jugz2sDLxHCSupNznKatj1fDMRXFqYKFcbvm8RTFhtYPI45NxkrPNo9BqNychBg=="], - "@turbo/linux-64": ["@turbo/linux-64@2.9.18", "", { "os": "linux", "cpu": "x64" }, "sha512-zCdIDtz69AnbYh913elJRRoF3QY5aa2HNnf+4rAkc7bQ+tWujiDkCNV7stazOUPggaDvhKIf2Z87qHftTeXSkw=="], + "@turbo/linux-64": ["@turbo/linux-64@2.10.3", "", { "os": "linux", "cpu": "x64" }, "sha512-KuQxaPWD7OBmwEZqO0sgijwcuXR5eMWbo7BEt2m1D2Q3RylJDj7WMcJ0Btv2VJA0QC+khzAaTAm1yWowJ0CWAw=="], - "@turbo/linux-arm64": ["@turbo/linux-arm64@2.9.18", "", { "os": "linux", "cpu": "arm64" }, "sha512-Va1kXI04naMgYwqv/5Dfa36dTDx8015U7oaQAjrXa45ua9OoFjSV4OmvkML4EmXvUclQHCiBRbY8bvd0jV7eAg=="], + "@turbo/linux-arm64": ["@turbo/linux-arm64@2.10.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-DPkIKQ+6p0sho3Cx/e/A3F+AKgXQJA+z//cHsTcyyM1YWRGSYA0UTP8NUpb4iS2tVBSniGwmjRUr73hpq8kcDg=="], - "@turbo/windows-64": ["@turbo/windows-64@2.9.18", "", { "os": "win32", "cpu": "x64" }, "sha512-m0kDhZANxSNz9ck1ybogFscHabriAsp4eDFNrN/1H5WrgTF7b3VlcPZnhuO3v2+E2KnCbeAc+UUT10BZZHdDKw=="], + "@turbo/windows-64": ["@turbo/windows-64@2.10.3", "", { "os": "win32", "cpu": "x64" }, "sha512-8NvFAze9D4PsosZAnK3aGqHz2vLzREz9lNIxLgfE0jRchq2sZQE190cwFm7WX17yg3ftPvwCvWH3rhLbG1UHCQ=="], - "@turbo/windows-arm64": ["@turbo/windows-arm64@2.9.18", "", { "os": "win32", "cpu": "arm64" }, "sha512-nUdR8WqoomUys9iIQmG45TMiizJ+5BV8egSeLLZba/AWblyp3fVBcIH1kSE58OtK4g2YzbMJEth6Ttv9w5rqMA=="], + "@turbo/windows-arm64": ["@turbo/windows-arm64@2.10.3", "", { "os": "win32", "cpu": "arm64" }, "sha512-AqjqV5cHbFa0YRaQ+Dyw6lSm6as4h/Uf8LcZ7VN8i+Odr23ShFD5SUvVAR1d3rZqibFVs9c0VdtXdfQfkdcs3A=="], "@tusbar/cache-control": ["@tusbar/cache-control@1.0.2", "", {}, "sha512-PXfjYTYBVvMPYCLDWj+xIOA9ITFbbhWCHzLcqUCJ5TPGm4JO4cxpGb7x3K8Q1K1ADgNgfBxLsDcTMVRydtZB9A=="], @@ -3360,7 +3360,7 @@ "tsx": ["tsx@4.21.0", "", { "dependencies": { "esbuild": "~0.27.0", "get-tsconfig": "^4.7.5" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw=="], - "turbo": ["turbo@2.9.18", "", { "optionalDependencies": { "@turbo/darwin-64": "2.9.18", "@turbo/darwin-arm64": "2.9.18", "@turbo/linux-64": "2.9.18", "@turbo/linux-arm64": "2.9.18", "@turbo/windows-64": "2.9.18", "@turbo/windows-arm64": "2.9.18" }, "bin": { "turbo": "bin/turbo" } }, "sha512-bwabv6PupzeavybzEoArBAkwq5fnzwf8OFnRtpHwnviFWuwJPFxtyH+aVp36TmIqK3aYYgtTJ3J0m2ysxxSzQg=="], + "turbo": ["turbo@2.10.3", "", { "optionalDependencies": { "@turbo/darwin-64": "2.10.3", "@turbo/darwin-arm64": "2.10.3", "@turbo/linux-64": "2.10.3", "@turbo/linux-arm64": "2.10.3", "@turbo/windows-64": "2.10.3", "@turbo/windows-arm64": "2.10.3" }, "bin": { "turbo": "bin/turbo" } }, "sha512-uZIqzfgtWbyqu1Tqwdd0giRnPGgL0ejbcdF8eZLJhtTTVSrOgArZGzYeXTD6XNcc7ANgdhqex11Y9bHBeyiQLQ=="], "type": ["type@2.7.3", "", {}, "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ=="], diff --git a/package.json b/package.json index c46549d49..f90d30817 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "devDependencies": { "@biomejs/biome": "^1.9.4", "@changesets/cli": "^2.31.0", - "turbo": "^2.9.18", + "turbo": "^2.10.3", "vercel": "50.37.3" }, "packageManager": "bun@1.3.7", diff --git a/packages/expr/CHANGELOG.md b/packages/expr/CHANGELOG.md index ff056b763..62ba8e602 100644 --- a/packages/expr/CHANGELOG.md +++ b/packages/expr/CHANGELOG.md @@ -1,5 +1,11 @@ # @gitbook/expr +## 1.3.1 + +### Patch Changes + +- 3fedaaa: Depend on `eval-estree-expression` from the npm registry (`^3.0.1`) instead of a pinned GitHub commit. The published `3.0.1` release is built from the exact commit the package was pinned to, so the code is unchanged — this only removes the fragile git/tarball dependency so consumers install it from npm like any other package. + ## 1.3.0 ### Minor Changes diff --git a/packages/expr/package.json b/packages/expr/package.json index 129e51273..7b4a0e8d1 100644 --- a/packages/expr/package.json +++ b/packages/expr/package.json @@ -1,7 +1,7 @@ { "name": "@gitbook/expr", "description": "Safely evaluate & parse user-defined GitBook expressions.", - "version": "1.3.0", + "version": "1.3.1", "type": "module", "exports": { ".": { diff --git a/packages/gitbook/CHANGELOG.md b/packages/gitbook/CHANGELOG.md index 42dc1275d..359c414a6 100644 --- a/packages/gitbook/CHANGELOG.md +++ b/packages/gitbook/CHANGELOG.md @@ -1,5 +1,32 @@ # gitbook +## 0.27.2 + +### Patch Changes + +- bb30db1: Add a hover affordance in the document margin to ask the AI Assistant about a paragraph. On devices with a fine pointer, hovering a top-level paragraph reveals a small button that stages the paragraph's text as context and opens the assistant — making the existing text-selection "Ask" flow more discoverable. +- 62ca6d3: Show a "Back to [space]" shortcut at the top of the table of contents when a reader follows a link into a different space, so they don't lose track of where they were browsing from. +- fdea8f1: Show where a page lives in the site at the start of the page breadcrumbs: its section (including any enclosing section groups) and variant. Hovering any breadcrumb item reveals a dropdown to switch to its siblings at the same level — other section groups, sections, variants, page groups or pages — computed on the server from already-available data (no extra request). Language variants are left to the dedicated language picker rather than shown as a crumb. Also restyles the breadcrumbs to normal casing (matching search results). +- 37c2dd8: Navigate customer visual tests with `domcontentloaded` to avoid `load`-event hangs on external sites. +- c923c65: Fix center- and end-aligned paragraphs shifting left on wide/no-TOC pages when the AI Assistant is enabled, caused by the per-paragraph ask-button wrapper not inheriting the block alignment. +- 37c2dd8: Fix flaky customer e2e screenshots by waiting for the built-in cookie banner before capturing. +- 37c2dd8: Add a `data-testid` to the admin toolbar so e2e tests can assert its presence while hiding it from visual screenshots (it animates open, causing flaky diffs). +- 36dbdb4: Support an optional `goal` query parameter on the markdown ask interface (`?ask=…&goal=…`), letting agents describe the broader end goal they are working towards so the answer can be steered towards it. +- 7e55cd5: Add an "Available in MCP" badge on OpenAPI operations marked with `x-gitbook-mcp: true`. When `x-gitbook-mcp-url` is set (on the operation, path, or root — most specific wins), the badge becomes a button that copies the MCP server URL to the clipboard. +- 6146f8e: Reduce the size of `searchDocumentation` MCP responses by returning only the best-matching section per page instead of concatenating every section body. +- 37c2dd8: Disable the content max-width transition under reduced motion, matching the surrounding layout transitions. +- 37c2dd8: Reset cross-space navigation state between e2e navigations so the "Back to " shortcut can't leak in and cause flaky screenshots. +- bcea23e: Render `anyOf`/`oneOf` with a `null` member as a nullable schema instead of a `null` union branch. +- 77efd44: Show changed pages in preview toolbars for change requests and revisions. +- 578a3a8: Fix site section dropdowns not being bounded by their container during the open/resize animation, causing the contents to visually clip. +- 2dc76a2: Fix grouped top-nav section dropdowns rendering empty when the site is embedded in an iframe (visitor-auth embeds, editor preview) or shown in the embeddable view. The dropdown viewport is composited and animated, and a clipped composited layer fails to rasterize its text in Chromium when painted inside a sub compositing root; the rounded-corner clipping is now done on an inner wrapper so the viewport itself is no longer clipped. +- 9f65133: Improve the 404 page: remove the table of contents sidebar and center the content, suggest related pages (ranked from the already-cached search index, so no extra request per 404), show a search or assistant input depending on the site's AI configuration, and move "Go to homepage" to the bottom as a last resort. +- Updated dependencies [3fedaaa] +- Updated dependencies [7e55cd5] + - @gitbook/expr@1.3.1 + - @gitbook/openapi-parser@3.0.12 + - @gitbook/react-openapi@1.5.15 + ## 0.27.1 ### Patch Changes diff --git a/packages/gitbook/package.json b/packages/gitbook/package.json index 37a97b527..8afd96e79 100644 --- a/packages/gitbook/package.json +++ b/packages/gitbook/package.json @@ -1,6 +1,6 @@ { "name": "gitbook", - "version": "0.27.1", + "version": "0.27.2", "private": true, "dependencies": { "@cloudflare/workers-types": "^4.20251011.0", diff --git a/packages/openapi-parser/CHANGELOG.md b/packages/openapi-parser/CHANGELOG.md index 64c4ad271..81a8ea7f3 100644 --- a/packages/openapi-parser/CHANGELOG.md +++ b/packages/openapi-parser/CHANGELOG.md @@ -1,5 +1,11 @@ # @gitbook/openapi-parser +## 3.0.12 + +### Patch Changes + +- 7e55cd5: Add an "Available in MCP" badge on OpenAPI operations marked with `x-gitbook-mcp: true`. When `x-gitbook-mcp-url` is set (on the operation, path, or root — most specific wins), the badge becomes a button that copies the MCP server URL to the clipboard. + ## 3.0.11 ### Patch Changes diff --git a/packages/openapi-parser/package.json b/packages/openapi-parser/package.json index ef2cd2c43..f41988437 100644 --- a/packages/openapi-parser/package.json +++ b/packages/openapi-parser/package.json @@ -8,7 +8,7 @@ "default": "./dist/index.js" } }, - "version": "3.0.11", + "version": "3.0.12", "sideEffects": false, "dependencies": { "@scalar/json-magic": "^0.9.4", diff --git a/packages/react-openapi/CHANGELOG.md b/packages/react-openapi/CHANGELOG.md index 5e49f072a..fa01a5f30 100644 --- a/packages/react-openapi/CHANGELOG.md +++ b/packages/react-openapi/CHANGELOG.md @@ -1,5 +1,15 @@ # @gitbook/react-openapi +## 1.5.15 + +### Patch Changes + +- 7e55cd5: Add an "Available in MCP" badge on OpenAPI operations marked with `x-gitbook-mcp: true`. When `x-gitbook-mcp-url` is set (on the operation, path, or root — most specific wins), the badge becomes a button that copies the MCP server URL to the clipboard. +- Updated dependencies [3fedaaa] +- Updated dependencies [7e55cd5] + - @gitbook/expr@1.3.1 + - @gitbook/openapi-parser@3.0.12 + ## 1.5.14 ### Patch Changes diff --git a/packages/react-openapi/package.json b/packages/react-openapi/package.json index 8793c4d94..b7c1bf3db 100644 --- a/packages/react-openapi/package.json +++ b/packages/react-openapi/package.json @@ -7,7 +7,7 @@ "default": "./dist/index.js" } }, - "version": "1.5.14", + "version": "1.5.15", "sideEffects": false, "dependencies": { "@gitbook/expr": "workspace:*",