From 6bef32fba88084d44250761b92722a7c318b226d Mon Sep 17 00:00:00 2001 From: Marceau Lecomte Date: Mon, 23 Sep 2024 15:50:38 +0200 Subject: [PATCH] update BlogPostItem --- docs/package-lock.json | 1 + docs/package.json | 1 + docs/src/theme/BlogPostItem/Container/index.js | 2 +- docs/src/theme/BlogPostItem/Content/index.js | 2 +- docs/src/theme/BlogPostItem/Footer/index.js | 2 +- docs/src/theme/BlogPostItem/Header/Authors/index.js | 2 +- docs/src/theme/BlogPostItem/Header/Info/index.js | 2 +- docs/src/theme/BlogPostItem/Header/Title/index.js | 2 +- docs/src/theme/BlogPostItem/index.js | 2 +- 9 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/package-lock.json b/docs/package-lock.json index 7311ccf..d2b598c 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@docusaurus/core": "^3.5.2", "@docusaurus/preset-classic": "^3.5.2", + "@docusaurus/theme-common": "^3.5.2", "@mdx-js/react": "^3.0.0", "clsx": "^1.2.1", "prism-react-renderer": "^2.1.0", diff --git a/docs/package.json b/docs/package.json index 4f3c6e6..411d253 100644 --- a/docs/package.json +++ b/docs/package.json @@ -16,6 +16,7 @@ "dependencies": { "@docusaurus/core": "^3.5.2", "@docusaurus/preset-classic": "^3.5.2", + "@docusaurus/theme-common": "^3.5.2", "@mdx-js/react": "^3.0.0", "clsx": "^1.2.1", "prism-react-renderer": "^2.1.0", diff --git a/docs/src/theme/BlogPostItem/Container/index.js b/docs/src/theme/BlogPostItem/Container/index.js index 2faa5cb..8b3f352 100644 --- a/docs/src/theme/BlogPostItem/Container/index.js +++ b/docs/src/theme/BlogPostItem/Container/index.js @@ -1,6 +1,6 @@ import React from 'react'; import {useBaseUrlUtils} from '@docusaurus/useBaseUrl'; -import {useBlogPost} from '@docusaurus/theme-common/internal'; +import {useBlogPost} from '@docusaurus/plugin-content-blog/client'; export default function BlogPostItemContainer({children, className}) { const {frontMatter, assets} = useBlogPost(); const {withBaseUrl} = useBaseUrlUtils(); diff --git a/docs/src/theme/BlogPostItem/Content/index.js b/docs/src/theme/BlogPostItem/Content/index.js index d8ee78b..af562f7 100644 --- a/docs/src/theme/BlogPostItem/Content/index.js +++ b/docs/src/theme/BlogPostItem/Content/index.js @@ -1,7 +1,7 @@ import React from 'react'; import clsx from 'clsx'; import {blogPostContainerID} from '@docusaurus/utils-common'; -import {useBlogPost} from '@docusaurus/theme-common/internal'; +import {useBlogPost} from '@docusaurus/plugin-content-blog/client'; import MDXContent from '@theme/MDXContent'; export default function BlogPostItemContent({children, className}) { const {isBlogPostPage} = useBlogPost(); diff --git a/docs/src/theme/BlogPostItem/Footer/index.js b/docs/src/theme/BlogPostItem/Footer/index.js index ec312aa..e551982 100644 --- a/docs/src/theme/BlogPostItem/Footer/index.js +++ b/docs/src/theme/BlogPostItem/Footer/index.js @@ -1,6 +1,6 @@ import React from 'react'; import clsx from 'clsx'; -import {useBlogPost} from '@docusaurus/theme-common/internal'; +import {useBlogPost} from '@docusaurus/plugin-content-blog/client'; import EditThisPage from '@theme/EditThisPage'; import TagsListInline from '@theme/TagsListInline'; import ReadMoreLink from '@theme/BlogPostItem/Footer/ReadMoreLink'; diff --git a/docs/src/theme/BlogPostItem/Header/Authors/index.js b/docs/src/theme/BlogPostItem/Header/Authors/index.js index e7c344c..310b351 100644 --- a/docs/src/theme/BlogPostItem/Header/Authors/index.js +++ b/docs/src/theme/BlogPostItem/Header/Authors/index.js @@ -1,6 +1,6 @@ import React from 'react'; import clsx from 'clsx'; -import {useBlogPost} from '@docusaurus/theme-common/internal'; +import {useBlogPost} from '@docusaurus/plugin-content-blog/client'; import BlogPostItemHeaderAuthor from '@theme/BlogPostItem/Header/Author'; import styles from './styles.module.css'; // Component responsible for the authors layout diff --git a/docs/src/theme/BlogPostItem/Header/Info/index.js b/docs/src/theme/BlogPostItem/Header/Info/index.js index a1ad784..e7fcb2b 100644 --- a/docs/src/theme/BlogPostItem/Header/Info/index.js +++ b/docs/src/theme/BlogPostItem/Header/Info/index.js @@ -2,7 +2,7 @@ import React from 'react'; import clsx from 'clsx'; import {translate} from '@docusaurus/Translate'; import {usePluralForm} from '@docusaurus/theme-common'; -import {useBlogPost} from '@docusaurus/theme-common/internal'; +import {useBlogPost} from '@docusaurus/plugin-content-blog/client'; import styles from './styles.module.css'; // Very simple pluralization: probably good enough for now function useReadingTimePlural() { diff --git a/docs/src/theme/BlogPostItem/Header/Title/index.js b/docs/src/theme/BlogPostItem/Header/Title/index.js index d939260..054a3fa 100644 --- a/docs/src/theme/BlogPostItem/Header/Title/index.js +++ b/docs/src/theme/BlogPostItem/Header/Title/index.js @@ -1,7 +1,7 @@ import React from 'react'; import clsx from 'clsx'; import Link from '@docusaurus/Link'; -import {useBlogPost} from '@docusaurus/theme-common/internal'; +import {useBlogPost} from '@docusaurus/plugin-content-blog/client'; import styles from './styles.module.css'; export default function BlogPostItemHeaderTitle({className}) { const {metadata, isBlogPostPage} = useBlogPost(); diff --git a/docs/src/theme/BlogPostItem/index.js b/docs/src/theme/BlogPostItem/index.js index 7172667..0c7dc98 100644 --- a/docs/src/theme/BlogPostItem/index.js +++ b/docs/src/theme/BlogPostItem/index.js @@ -1,6 +1,6 @@ import React from 'react'; import clsx from 'clsx'; -import {useBlogPost} from '@docusaurus/theme-common/internal'; +import {useBlogPost} from '@docusaurus/plugin-content-blog/client'; import BlogPostItemContainer from '@theme/BlogPostItem/Container'; import BlogPostItemHeader from '@theme/BlogPostItem/Header'; import BlogPostItemContent from '@theme/BlogPostItem/Content';