diff --git a/bun.lockb b/bun.lockb index c57133924..b0004890e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/packages/gitbook/package.json b/packages/gitbook/package.json index 6fd0ce6f3..bd7c51ea4 100644 --- a/packages/gitbook/package.json +++ b/packages/gitbook/package.json @@ -16,7 +16,7 @@ "clean": "rm -rf ./.next && rm -rf ./public/~gitbook/static" }, "dependencies": { - "@gitbook/api": "^0.78.0", + "@gitbook/api": "^0.80.0", "@gitbook/cache-do": "workspace:*", "@gitbook/emoji-codepoints": "workspace:*", "@gitbook/icons": "workspace:*", diff --git a/packages/gitbook/src/components/Header/HeaderLink.tsx b/packages/gitbook/src/components/Header/HeaderLink.tsx index a8d11b111..8662353a4 100644 --- a/packages/gitbook/src/components/Header/HeaderLink.tsx +++ b/packages/gitbook/src/components/Header/HeaderLink.tsx @@ -3,18 +3,13 @@ import { CustomizationSettings, CustomizationHeaderPreset, SiteCustomizationSettings, - CustomizationHeaderLink, + CustomizationHeaderItem, } from '@gitbook/api'; import assertNever from 'assert-never'; import { ContentRefContext, resolveContentRef } from '@/lib/references'; import { tcls } from '@/lib/tailwind'; -// @TODO replace by api.CustomizationHeaderItem when available -type CustomizationHeaderItem = Omit & { - to: CustomizationHeaderLink['to'] | null; -}; - import { Dropdown, DropdownButtonProps, @@ -85,7 +80,7 @@ export async function HeaderLink(props: { } export type HeaderLinkNavItemProps = { - linkStyle: NonNullable; + linkStyle: NonNullable; headerPreset: CustomizationHeaderPreset; title: string; href: string; diff --git a/packages/gitbook/src/components/Header/HeaderLinkMore.tsx b/packages/gitbook/src/components/Header/HeaderLinkMore.tsx index b7010b7de..ddf53e20a 100644 --- a/packages/gitbook/src/components/Header/HeaderLinkMore.tsx +++ b/packages/gitbook/src/components/Header/HeaderLinkMore.tsx @@ -1,5 +1,5 @@ import { - CustomizationHeaderLink, + CustomizationHeaderItem, CustomizationHeaderPreset, CustomizationSettings, SiteCustomizationSettings, @@ -13,10 +13,6 @@ import { tcls } from '@/lib/tailwind'; import { Dropdown, DropdownMenu, DropdownMenuItem } from './Dropdown'; import styles from './headerLinks.module.css'; -// @TODO replace by api.CustomizationHeaderItem when available -type CustomizationHeaderItem = Omit & { - to: CustomizationHeaderLink['to'] | null; -}; /** * Dropdown menu for header links hidden at small screen size.