Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

build: update docusaurus #1771

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
"test-update": "npm-run-all --sequential clean lint build"
},
"dependencies": {
"@docusaurus/core": "3.1.0",
"@docusaurus/preset-classic": "3.1.0",
"@docusaurus/theme-common": "3.1.0",
"@docusaurus/theme-search-algolia": "3.1.0",
"@docusaurus/core": "3.6.3",
"@docusaurus/preset-classic": "3.6.3",
"@docusaurus/theme-common": "3.6.3",
"@docusaurus/theme-search-algolia": "3.6.3",
"@iframe-resizer/react": "5.3.2",
"@tabler/icons-react": "3.17.0",
"@utrecht/design-tokens": "1.1.0",
Expand All @@ -78,12 +78,12 @@
"@argos-ci/playwright": "3.6.1",
"@changesets/cli": "2.27.8",
"@docsearch/react": "3.6.1",
"@docusaurus/module-type-aliases": "3.1.0",
"@docusaurus/plugin-content-blog": "3.1.0",
"@docusaurus/plugin-content-docs": "3.1.0",
"@docusaurus/theme-classic": "3.1.0",
"@docusaurus/tsconfig": "3.1.0",
"@docusaurus/types": "3.1.0",
"@docusaurus/module-type-aliases": "3.6.3",
"@docusaurus/plugin-content-blog": "3.6.3",
"@docusaurus/plugin-content-docs": "3.6.3",
"@docusaurus/theme-classic": "3.6.3",
"@docusaurus/tsconfig": "3.6.3",
"@docusaurus/types": "3.6.3",
"@eslint/js": "9.16.0",
"@eslint/json": "0.8.0",
"@fontsource/fira-sans": "5.1.0",
Expand Down
4,853 changes: 2,971 additions & 1,882 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/ComponentOverview.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { PropSidebarItem, PropSidebarItemLink } from '@docusaurus/plugin-content-docs';
import { useHistory } from '@docusaurus/router';
import { useCurrentSidebarCategory } from '@docusaurus/theme-common';
import { useDocById } from '@docusaurus/theme-common/internal';
import { useDocById } from '@docusaurus/plugin-content-docs/client';
import componentProgress from '@nl-design-system/component-progress/dist/index.json';
import { AccordionProvider, Fieldset, FormToggle, Paragraph } from '@utrecht/component-library-react';
import { Checkbox, FormField, FormLabel } from '@utrecht/component-library-react/dist/css-module';
Expand Down Expand Up @@ -35,7 +35,7 @@
const isPropSidebarItemLink = (item: PropSidebarItem): item is PropSidebarItemLink =>
!!item && typeof item['docId'] === 'string';

const components = category.items

Check failure on line 38 in src/components/ComponentOverview.tsx

View workflow job for this annotation

GitHub Actions / continuous-integration

Property 'items' does not exist on type 'unknown'.
.filter(isPropSidebarItemLink)
.filter((item) => item.docId !== 'componenten/README')
.map((item) => ({ ...item, ...useDocById(item.docId) }))
Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostItems/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link } from '@site/src/components/Link';
import { BlogPostProvider } from '@docusaurus/theme-common/internal';
import { BlogPostProvider } from '@docusaurus/plugin-content-blog/client';
import { Card, CardContent, CardGroup } from '@site/src/components/CardGroup';
import { IconCalendar, IconUser } from '@tabler/icons-react';
import type { Props } from '@theme/BlogPostItems';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostPage/Metadata/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PageMetadata } from '@docusaurus/theme-common';
import { useBlogPost } from '@docusaurus/theme-common/internal';
import { useBlogPost } from '@docusaurus/plugin-content-blog/client';
import type { ReactElement } from 'react';

export default function BlogPostPageMetadata(): ReactElement {
Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { BlogSidebar } from '@docusaurus/plugin-content-blog';
import { HtmlClassNameProvider, ThemeClassNames } from '@docusaurus/theme-common';
import { BlogPostProvider, useBlogPost } from '@docusaurus/theme-common/internal';
import { BlogPostProvider, useBlogPost } from '@docusaurus/plugin-content-blog/client';
import BlogPostItem from '@theme/BlogPostItem';
import type { Props } from '@theme/BlogPostPage';
import BlogPostPageMetadata from '@theme/BlogPostPage/Metadata';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocBreadcrumbs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ThemeClassNames } from '@docusaurus/theme-common';
import { useSidebarBreadcrumbs } from '@docusaurus/theme-common/internal';
import { useSidebarBreadcrumbs } from '@docusaurus/plugin-content-docs/client';
import { BreadcrumbNav } from '@site/src/components/BreadcrumbNav';
import type { ReactElement } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocCard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Link } from '@site/src/components/Link';
import type { PropSidebarItemCategory, PropSidebarItemLink } from '@docusaurus/plugin-content-docs';
import { useDocById } from '@docusaurus/theme-common/internal';
import { useDocById } from '@docusaurus/plugin-content-docs/client';
import type { Props } from '@theme/DocCard';
import { UnorderedList, UnorderedListItem } from '@utrecht/component-library-react';
import clsx from 'clsx';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocItem/Content/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ThemeClassNames } from '@docusaurus/theme-common';
import { useDoc } from '@docusaurus/theme-common/internal';
import { useDoc } from '@docusaurus/plugin-content-docs/client';
import type { Props } from '@theme/DocItem/Content';
import Heading from '@theme/Heading';
import MDXContent from '@theme/MDXContent';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocPage/Layout/Sidebar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useLocation } from '@docusaurus/router';
import DocSidebar from '@docusaurus/theme-classic/src/theme/DocSidebar';
import { ThemeClassNames } from '@docusaurus/theme-common';
import { useDocsSidebar } from '@docusaurus/theme-common/internal';
import { useDocsSidebar } from '@docusaurus/plugin-content-docs/client';
import { default as DefaultDocPageLayoutSidebar } from '@theme/DocRoot/Layout/Sidebar';
import clsx from 'clsx';
import React, { type ReactNode, useCallback, useState } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocSidebarItem/Category/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
findFirstSidebarItemLink,
isActiveSidebarItem,
useDocSidebarItemsExpandedState,
} from '@docusaurus/theme-common/internal';
} from '@docusaurus/plugin-content-docs/client';
import useIsBrowser from '@docusaurus/useIsBrowser';
import { IconChevronDown, IconChevronUp } from '@tabler/icons-react';
import type { Props } from '@theme/DocSidebarItem/Category';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocSidebarItem/Link/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Link } from '@site/src/components/Link';
import isInternalUrl from '@docusaurus/isInternalUrl';
import { ThemeClassNames } from '@docusaurus/theme-common';
import { isActiveSidebarItem } from '@docusaurus/theme-common/internal';
import { isActiveSidebarItem } from '@docusaurus/plugin-content-docs/client';
import type { Props } from '@theme/DocSidebarItem/Link';
import IconExternalLink from '@theme/Icon/ExternalLink';
import clsx from 'clsx';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocSidebarItems/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DocSidebarItemsExpandedStateProvider } from '@docusaurus/theme-common/internal';
import { DocSidebarItemsExpandedStateProvider } from '@docusaurus/plugin-content-docs/client';
import DocSidebarItem from '@theme/DocSidebarItem';
import type { Props } from '@theme/DocSidebarItems';
import { memo } from 'react';
Expand Down
3 changes: 1 addition & 2 deletions src/theme/Navbar/MobileSidebar/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { translate } from '@docusaurus/Translate';
import { useThemeConfig } from '@docusaurus/theme-common';
import { useNavbarMobileSidebar } from '@docusaurus/theme-common/internal';
import { useNavbarSecondaryMenu } from '@docusaurus/theme-common/internal';
import { useNavbarMobileSidebar, useNavbarSecondaryMenu } from '@docusaurus/theme-common/internal';
import { IconChevronLeft, IconX } from '@tabler/icons-react';
import type { ButtonProps } from '@utrecht/component-library-react/dist/Button';
import { Button } from '@utrecht/component-library-react/dist/css-module';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/Navbar/MobileSidebar/SecondaryMenu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useNavbarSecondaryMenu } from '@docusaurus/theme-common/internal';
import { useNavbarSecondaryMenu } from '@docusaurus/plugin-content-docs/client';
import type { ReactElement } from 'react';

// The secondary menu slides from the right and shows contextual information
Expand Down
3 changes: 1 addition & 2 deletions src/theme/NavbarItem/DocNavbarItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useActiveDocContext } from '@docusaurus/plugin-content-docs/client';
import { useLayoutDoc } from '@docusaurus/theme-common/internal';
import { useLayoutDoc, useActiveDocContext } from '@docusaurus/plugin-content-docs/client';
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
import type { Props } from '@theme/NavbarItem/DocNavbarItem';
import type { ReactElement } from 'react';
Expand Down
3 changes: 1 addition & 2 deletions src/theme/NavbarItem/DocSidebarNavbarItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useActiveDocContext } from '@docusaurus/plugin-content-docs/client';
import { useLayoutDocsSidebar } from '@docusaurus/theme-common/internal';
import { useLayoutDocsSidebar, useActiveDocContext } from '@docusaurus/plugin-content-docs/client';
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
import type { Props } from '@theme/NavbarItem/DocSidebarNavbarItem';
import type { ReactElement } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useActiveDocContext, useVersions } from '@docusaurus/plugin-content-doc
import type { GlobalVersion } from '@docusaurus/plugin-content-docs/client';
import { useLocation } from '@docusaurus/router';
import { useDocsPreferredVersion } from '@docusaurus/theme-common';
import { useDocsVersionCandidates } from '@docusaurus/theme-common/internal';
import { useDocsVersionCandidates } from '@docusaurus/plugin-content-docs/client';
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
import type { Props } from '@theme/NavbarItem/DocsVersionDropdownNavbarItem';
import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/NavbarItem/DocsVersionNavbarItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { GlobalVersion } from '@docusaurus/plugin-content-docs/client';
import { useDocsVersionCandidates } from '@docusaurus/theme-common/internal';
import { useDocsVersionCandidates } from '@docusaurus/plugin-content-docs/client';
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
import type { Props } from '@theme/NavbarItem/DocsVersionNavbarItem';
import type { ReactElement } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/NavbarItem/DropdownNavbarItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Collapsible, isRegexpStringMatch, useCollapsible } from '@docusaurus/theme-common';
import { isSamePath, useLocalPathname } from '@docusaurus/theme-common/internal';
import { isSamePath, useLocalPathname } from '@docusaurus/plugin-content-docs/client';
import NavbarItem, { type LinkLikeNavbarItemProps } from '@theme/NavbarItem';
import type { DesktopOrMobileNavBarItemProps, Props } from '@theme/NavbarItem/DropdownNavbarItem';
import NavbarNavLink from '@theme/NavbarItem/NavbarNavLink';
Expand Down
2 changes: 1 addition & 1 deletion src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { translate } from '@docusaurus/Translate';
import { useLocation } from '@docusaurus/router';
import { useAlternatePageUtils } from '@docusaurus/theme-common/internal';
import { useAlternatePageUtils } from '@docusaurus/plugin-content-docs/client';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import IconLanguage from '@theme/Icon/Language';
import type { LinkLikeNavbarItemProps } from '@theme/NavbarItem';
Expand Down
Loading