From 509389c7e52ffebcd22bba1ef918b0dd984451a5 Mon Sep 17 00:00:00 2001 From: "Nolann B." <100787331+nolannbiron@users.noreply.github.com> Date: Tue, 16 Jun 2026 14:30:10 +0200 Subject: [PATCH] Update `@gitbook/api` to latest version (#4315) --- bun.lock | 4 ++-- package.json | 2 +- packages/gitbook/e2e/internal.spec.ts | 1 + packages/gitbook/e2e/util.ts | 6 ++++++ packages/gitbook/src/lib/utils.ts | 6 ++++++ 5 files changed, 16 insertions(+), 3 deletions(-) diff --git a/bun.lock b/bun.lock index fb34c9798..c8a3208bf 100644 --- a/bun.lock +++ b/bun.lock @@ -360,7 +360,7 @@ "react-dom": "catalog:", }, "catalog": { - "@gitbook/api": "0.183.1", + "@gitbook/api": "0.184.0", "@scalar/api-client-react": "^1.3.46", "@tsconfig/node20": "^20.1.6", "@tsconfig/strictest": "^2.0.6", @@ -756,7 +756,7 @@ "@fortawesome/fontawesome-svg-core": ["@fortawesome/fontawesome-svg-core@7.2.0", "", { "dependencies": { "@fortawesome/fontawesome-common-types": "7.2.0" } }, "sha512-6639htZMjEkwskf3J+e6/iar+4cTNM9qhoWuRfj9F3eJD6r7iCzV1SWnQr2Mdv0QT0suuqU8BoJCZUyCtP9R4Q=="], - "@gitbook/api": ["@gitbook/api@0.183.1", "", { "dependencies": { "event-iterator": "^2.0.0", "eventsource-parser": "^3.0.0" } }, "sha512-l9Bse8mLXG9rUR+jTiD/xZYMQ21t4XrxQvvaa7skaibIyBjjnIsNGo7NhVmjESUKHrA6F40ouH36Oiv2DfH+Wg=="], + "@gitbook/api": ["@gitbook/api@0.184.0", "", { "dependencies": { "event-iterator": "^2.0.0", "eventsource-parser": "^3.0.0" } }, "sha512-yPoQqLLik6IihFcwVVbuEAIyDA7F2q80HprNRuj10m+O2XULlm4+bW5R71r5/GCjDKSf5QfmRXmYh4OopljPKw=="], "@gitbook/browser-types": ["@gitbook/browser-types@workspace:packages/browser-types"], diff --git a/package.json b/package.json index 286c9e640..f2a7592a7 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "catalog": { "@tsconfig/strictest": "^2.0.6", "@tsconfig/node20": "^20.1.6", - "@gitbook/api": "0.183.1", + "@gitbook/api": "0.184.0", "@scalar/api-client-react": "^1.3.46", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", diff --git a/packages/gitbook/e2e/internal.spec.ts b/packages/gitbook/e2e/internal.spec.ts index 129e217e7..cb856294b 100644 --- a/packages/gitbook/e2e/internal.spec.ts +++ b/packages/gitbook/e2e/internal.spec.ts @@ -1361,6 +1361,7 @@ const testCases: TestsCase[] = [ pageActions: { markdown: false, externalAI: false, + items: [], }, }), run: waitForCookiesDialog, diff --git a/packages/gitbook/e2e/util.ts b/packages/gitbook/e2e/util.ts index 2bc8b0c2e..dca42428b 100644 --- a/packages/gitbook/e2e/util.ts +++ b/packages/gitbook/e2e/util.ts @@ -13,6 +13,7 @@ import { CustomizationIconsStyle, CustomizationLinksStyle, CustomizationLocale, + CustomizationPageActionType, CustomizationSearchStyle, CustomizationSidebarBackgroundStyle, CustomizationSidebarListStyle, @@ -414,6 +415,11 @@ export function getCustomizationURL(partial: DeepPartial