From 906ad6859f4a271789f70d245950de0e3c5144b6 Mon Sep 17 00:00:00 2001 From: Paul Gottschling Date: Thu, 24 Oct 2024 09:44:58 -0400 Subject: [PATCH] Update imports See https://github.com/facebook/docusaurus/pull/10316 --- src/components/Search/InkeepSearch.tsx | 2 +- src/theme/DocItem/Layout/index.tsx | 2 +- src/theme/DocItem/index.tsx | 2 +- src/theme/DocVersionBanner/index.tsx | 6 ++---- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/Search/InkeepSearch.tsx b/src/components/Search/InkeepSearch.tsx index cc6b8bc..75ddc1e 100644 --- a/src/components/Search/InkeepSearch.tsx +++ b/src/components/Search/InkeepSearch.tsx @@ -1,7 +1,7 @@ import React, { useState, useRef, useCallback, useEffect } from "react"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import BrowserOnly from "@docusaurus/BrowserOnly"; -import { useDocsVersion } from "@docusaurus/theme-common/internal"; +import { useDocsVersion } from "@docusaurus/plugin-content-docs/client"; import { type InkeepAIChatSettings, type InkeepSearchSettings, diff --git a/src/theme/DocItem/Layout/index.tsx b/src/theme/DocItem/Layout/index.tsx index 176fde3..7082457 100644 --- a/src/theme/DocItem/Layout/index.tsx +++ b/src/theme/DocItem/Layout/index.tsx @@ -1,7 +1,7 @@ import React from "react"; import clsx from "clsx"; import { useWindowSize } from "@docusaurus/theme-common"; -import { useDoc } from "@docusaurus/theme-common/internal"; +import { useDoc } from "@docusaurus/plugin-content-docs/client"; import DocItemPaginator from "@theme/DocItem/Paginator"; import DocVersionBanner from "@theme/DocVersionBanner"; import DocVersionBadge from "@theme/DocVersionBadge"; diff --git a/src/theme/DocItem/index.tsx b/src/theme/DocItem/index.tsx index 5df61f7..27a7133 100644 --- a/src/theme/DocItem/index.tsx +++ b/src/theme/DocItem/index.tsx @@ -1,6 +1,6 @@ import React from "react"; import { HtmlClassNameProvider } from "@docusaurus/theme-common"; -import { DocProvider } from "@docusaurus/theme-common/internal"; +import { DocProvider } from "@docusaurus/plugin-content-docs/client"; import DocItemMetadata from "@theme/DocItem/Metadata"; import DocItemLayout from "@theme/DocItem/Layout"; import type { Props } from "@theme/DocItem"; diff --git a/src/theme/DocVersionBanner/index.tsx b/src/theme/DocVersionBanner/index.tsx index d68d28c..d385b66 100644 --- a/src/theme/DocVersionBanner/index.tsx +++ b/src/theme/DocVersionBanner/index.tsx @@ -9,10 +9,8 @@ import { type GlobalVersion, } from "@docusaurus/plugin-content-docs/client"; import { ThemeClassNames } from "@docusaurus/theme-common"; -import { - useDocsPreferredVersion, - useDocsVersion, -} from "@docusaurus/theme-common/internal"; +import { useDocsPreferredVersion } from "@docusaurus/theme-common/internal"; +import { useDocsVersion } from "@docusaurus/plugin-content-docs/client"; import type { Props } from "@theme/DocVersionBanner"; import type { VersionBanner,