@docusaurus/plugin-content-blog 3.6.3-canary-6164 → 3.6.3-canary-6168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client/contexts.d.ts +1 -1
- package/package.json +10 -10
- package/src/client/contexts.tsx +1 -1
- package/src/plugin-content-blog.d.ts +22 -10
package/lib/client/contexts.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare function BlogPostProvider({ children, content, isBlogPostPage, }:
|
|
|
22
22
|
children: ReactNode;
|
|
23
23
|
content: PropBlogPostContent;
|
|
24
24
|
isBlogPostPage?: boolean;
|
|
25
|
-
}):
|
|
25
|
+
}): ReactNode;
|
|
26
26
|
/**
|
|
27
27
|
* Returns the data of the currently browsed blog post. Gives access to
|
|
28
28
|
* front matter, metadata, TOC, etc.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-content-blog",
|
|
3
|
-
"version": "3.6.3-canary-
|
|
3
|
+
"version": "3.6.3-canary-6168",
|
|
4
4
|
"description": "Blog plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-content-blog.d.ts",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@docusaurus/core": "3.6.3-canary-
|
|
35
|
-
"@docusaurus/logger": "3.6.3-canary-
|
|
36
|
-
"@docusaurus/mdx-loader": "3.6.3-canary-
|
|
37
|
-
"@docusaurus/theme-common": "3.6.3-canary-
|
|
38
|
-
"@docusaurus/types": "3.6.3-canary-
|
|
39
|
-
"@docusaurus/utils": "3.6.3-canary-
|
|
40
|
-
"@docusaurus/utils-common": "3.6.3-canary-
|
|
41
|
-
"@docusaurus/utils-validation": "3.6.3-canary-
|
|
34
|
+
"@docusaurus/core": "3.6.3-canary-6168",
|
|
35
|
+
"@docusaurus/logger": "3.6.3-canary-6168",
|
|
36
|
+
"@docusaurus/mdx-loader": "3.6.3-canary-6168",
|
|
37
|
+
"@docusaurus/theme-common": "3.6.3-canary-6168",
|
|
38
|
+
"@docusaurus/types": "3.6.3-canary-6168",
|
|
39
|
+
"@docusaurus/utils": "3.6.3-canary-6168",
|
|
40
|
+
"@docusaurus/utils-common": "3.6.3-canary-6168",
|
|
41
|
+
"@docusaurus/utils-validation": "3.6.3-canary-6168",
|
|
42
42
|
"cheerio": "1.0.0-rc.12",
|
|
43
43
|
"feed": "^4.2.2",
|
|
44
44
|
"fs-extra": "^11.1.1",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
63
63
|
"tree-node-cli": "^1.6.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "a348f772bea1e39fae869e5ab1fc2b95e5d037de"
|
|
66
66
|
}
|
package/src/client/contexts.tsx
CHANGED
|
@@ -74,7 +74,7 @@ export function BlogPostProvider({
|
|
|
74
74
|
children: ReactNode;
|
|
75
75
|
content: PropBlogPostContent;
|
|
76
76
|
isBlogPostPage?: boolean;
|
|
77
|
-
}):
|
|
77
|
+
}): ReactNode {
|
|
78
78
|
const contextValue = useContextValue({content, isBlogPostPage});
|
|
79
79
|
return <Context.Provider value={contextValue}>{children}</Context.Provider>;
|
|
80
80
|
}
|
|
@@ -663,6 +663,7 @@ declare module '@docusaurus/plugin-content-blog' {
|
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
declare module '@theme/BlogPostPage' {
|
|
666
|
+
import type {ReactNode} from 'react';
|
|
666
667
|
import type {
|
|
667
668
|
BlogPostFrontMatter,
|
|
668
669
|
BlogSidebar,
|
|
@@ -683,18 +684,23 @@ declare module '@theme/BlogPostPage' {
|
|
|
683
684
|
readonly blogMetadata: BlogMetadata;
|
|
684
685
|
}
|
|
685
686
|
|
|
686
|
-
export default function BlogPostPage(props: Props):
|
|
687
|
+
export default function BlogPostPage(props: Props): ReactNode;
|
|
687
688
|
}
|
|
688
689
|
|
|
689
690
|
declare module '@theme/BlogPostPage/Metadata' {
|
|
690
|
-
|
|
691
|
+
import type {ReactNode} from 'react';
|
|
692
|
+
|
|
693
|
+
export default function BlogPostPageMetadata(): ReactNode;
|
|
691
694
|
}
|
|
692
695
|
|
|
693
696
|
declare module '@theme/BlogPostPage/StructuredData' {
|
|
694
|
-
|
|
697
|
+
import type {ReactNode} from 'react';
|
|
698
|
+
|
|
699
|
+
export default function BlogPostStructuredData(): ReactNode;
|
|
695
700
|
}
|
|
696
701
|
|
|
697
702
|
declare module '@theme/BlogListPage' {
|
|
703
|
+
import type {ReactNode} from 'react';
|
|
698
704
|
import type {Content} from '@theme/BlogPostPage';
|
|
699
705
|
import type {
|
|
700
706
|
BlogSidebar,
|
|
@@ -713,10 +719,11 @@ declare module '@theme/BlogListPage' {
|
|
|
713
719
|
readonly items: readonly {readonly content: Content}[];
|
|
714
720
|
}
|
|
715
721
|
|
|
716
|
-
export default function BlogListPage(props: Props):
|
|
722
|
+
export default function BlogListPage(props: Props): ReactNode;
|
|
717
723
|
}
|
|
718
724
|
|
|
719
725
|
declare module '@theme/BlogListPage/StructuredData' {
|
|
726
|
+
import type {ReactNode} from 'react';
|
|
720
727
|
import type {Content} from '@theme/BlogPostPage';
|
|
721
728
|
import type {
|
|
722
729
|
BlogSidebar,
|
|
@@ -735,10 +742,11 @@ declare module '@theme/BlogListPage/StructuredData' {
|
|
|
735
742
|
readonly items: readonly {readonly content: Content}[];
|
|
736
743
|
}
|
|
737
744
|
|
|
738
|
-
export default function BlogListPageStructuredData(props: Props):
|
|
745
|
+
export default function BlogListPageStructuredData(props: Props): ReactNode;
|
|
739
746
|
}
|
|
740
747
|
|
|
741
748
|
declare module '@theme/BlogTagsListPage' {
|
|
749
|
+
import type {ReactNode} from 'react';
|
|
742
750
|
import type {BlogSidebar} from '@docusaurus/plugin-content-blog';
|
|
743
751
|
import type {TagsListItem} from '@docusaurus/utils';
|
|
744
752
|
|
|
@@ -749,10 +757,11 @@ declare module '@theme/BlogTagsListPage' {
|
|
|
749
757
|
readonly tags: TagsListItem[];
|
|
750
758
|
}
|
|
751
759
|
|
|
752
|
-
export default function BlogTagsListPage(props: Props):
|
|
760
|
+
export default function BlogTagsListPage(props: Props): ReactNode;
|
|
753
761
|
}
|
|
754
762
|
|
|
755
763
|
declare module '@theme/Blog/Pages/BlogAuthorsListPage' {
|
|
764
|
+
import type {ReactNode} from 'react';
|
|
756
765
|
import type {
|
|
757
766
|
AuthorItemProp,
|
|
758
767
|
BlogSidebar,
|
|
@@ -765,10 +774,11 @@ declare module '@theme/Blog/Pages/BlogAuthorsListPage' {
|
|
|
765
774
|
readonly authors: AuthorItemProp[];
|
|
766
775
|
}
|
|
767
776
|
|
|
768
|
-
export default function BlogAuthorsListPage(props: Props):
|
|
777
|
+
export default function BlogAuthorsListPage(props: Props): ReactNode;
|
|
769
778
|
}
|
|
770
779
|
|
|
771
780
|
declare module '@theme/Blog/Pages/BlogAuthorsPostsPage' {
|
|
781
|
+
import type {ReactNode} from 'react';
|
|
772
782
|
import type {Content} from '@theme/BlogPostPage';
|
|
773
783
|
import type {
|
|
774
784
|
AuthorItemProp,
|
|
@@ -790,10 +800,11 @@ declare module '@theme/Blog/Pages/BlogAuthorsPostsPage' {
|
|
|
790
800
|
readonly items: readonly {readonly content: Content}[];
|
|
791
801
|
}
|
|
792
802
|
|
|
793
|
-
export default function BlogAuthorsPostsPage(props: Props):
|
|
803
|
+
export default function BlogAuthorsPostsPage(props: Props): ReactNode;
|
|
794
804
|
}
|
|
795
805
|
|
|
796
806
|
declare module '@theme/BlogTagsPostsPage' {
|
|
807
|
+
import type {ReactNode} from 'react';
|
|
797
808
|
import type {Content} from '@theme/BlogPostPage';
|
|
798
809
|
import type {
|
|
799
810
|
BlogSidebar,
|
|
@@ -815,10 +826,11 @@ declare module '@theme/BlogTagsPostsPage' {
|
|
|
815
826
|
readonly items: readonly {readonly content: Content}[];
|
|
816
827
|
}
|
|
817
828
|
|
|
818
|
-
export default function BlogTagsPostsPage(props: Props):
|
|
829
|
+
export default function BlogTagsPostsPage(props: Props): ReactNode;
|
|
819
830
|
}
|
|
820
831
|
|
|
821
832
|
declare module '@theme/BlogArchivePage' {
|
|
833
|
+
import type {ReactNode} from 'react';
|
|
822
834
|
import type {Content} from '@theme/BlogPostPage';
|
|
823
835
|
|
|
824
836
|
/** We may add extra metadata or prune some metadata from here */
|
|
@@ -832,5 +844,5 @@ declare module '@theme/BlogArchivePage' {
|
|
|
832
844
|
};
|
|
833
845
|
}
|
|
834
846
|
|
|
835
|
-
export default function BlogArchivePage(props: Props):
|
|
847
|
+
export default function BlogArchivePage(props: Props): ReactNode;
|
|
836
848
|
}
|