@docusaurus/theme-classic 0.0.0-4625 → 0.0.0-4626
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/theme-classic.d.ts +40 -77
- package/lib-next/theme/AnnouncementBar/index.js +1 -4
- package/lib-next/theme/BackToTopButton/index.js +1 -3
- package/lib-next/theme/BlogLayout/index.js +1 -4
- package/lib-next/theme/BlogListPage/index.js +1 -4
- package/lib-next/theme/BlogListPaginator/index.js +1 -4
- package/lib-next/theme/BlogPostAuthor/index.js +1 -4
- package/lib-next/theme/BlogPostItem/index.js +1 -3
- package/lib-next/theme/BlogPostPage/index.js +1 -4
- package/lib-next/theme/BlogPostPaginator/index.js +1 -4
- package/lib-next/theme/BlogTagsListPage/index.js +1 -4
- package/lib-next/theme/DocPage/index.js +1 -3
- package/lib-next/theme/DocPaginator/index.js +1 -4
- package/lib-next/theme/DocTagsListPage/index.js +1 -4
- package/lib-next/theme/IconArrow/index.js +1 -4
- package/lib-next/theme/IconEdit/index.js +1 -4
- package/lib-next/theme/IconExternalLink/index.js +1 -4
- package/lib-next/theme/IconLanguage/index.js +1 -4
- package/lib-next/theme/IconMenu/index.js +6 -4
- package/lib-next/theme/Layout/index.js +1 -4
- package/lib-next/theme/Logo/index.js +1 -4
- package/lib-next/theme/MDXPage/index.js +1 -4
- package/lib-next/theme/Navbar/index.js +1 -3
- package/lib-next/theme/NavbarItem/DefaultNavbarItem.js +1 -3
- package/lib-next/theme/NavbarItem/DropdownNavbarItem.js +1 -3
- package/lib-next/theme/NotFound.js +1 -4
- package/lib-next/theme/PaginatorNavLink/index.js +1 -4
- package/lib-next/theme/SkipToContent/index.js +1 -3
- package/lib-next/theme/TOC/index.js +1 -4
- package/lib-next/theme/TOCInline/index.js +1 -4
- package/lib-next/theme/TabItem/index.js +1 -4
- package/lib-next/theme/Tag/index.js +1 -4
- package/lib-next/theme/TagsListByLetter/index.js +1 -3
- package/lib-next/theme/ThemedImage/index.js +1 -4
- package/lib-next/theme/prism-include-languages.js +2 -5
- package/package.json +13 -13
- package/src/theme/AnnouncementBar/index.tsx +1 -3
- package/src/theme/BackToTopButton/index.tsx +1 -3
- package/src/theme/BlogLayout/index.tsx +1 -3
- package/src/theme/BlogListPage/index.tsx +1 -3
- package/src/theme/BlogListPaginator/index.tsx +1 -3
- package/src/theme/BlogPostAuthor/index.tsx +1 -3
- package/src/theme/BlogPostItem/index.tsx +1 -3
- package/src/theme/BlogPostPage/index.tsx +1 -3
- package/src/theme/BlogPostPaginator/index.tsx +1 -3
- package/src/theme/BlogTagsListPage/index.tsx +1 -3
- package/src/theme/DocPage/index.tsx +1 -3
- package/src/theme/DocPaginator/index.tsx +1 -3
- package/src/theme/DocTagsListPage/index.tsx +1 -3
- package/src/theme/IconArrow/index.tsx +1 -3
- package/src/theme/IconEdit/index.tsx +4 -3
- package/src/theme/IconExternalLink/index.tsx +4 -3
- package/src/theme/IconLanguage/index.tsx +5 -3
- package/src/theme/IconMenu/index.tsx +1 -3
- package/src/theme/Layout/index.tsx +1 -3
- package/src/theme/Logo/index.tsx +1 -3
- package/src/theme/MDXPage/index.tsx +1 -3
- package/src/theme/Navbar/index.tsx +1 -3
- package/src/theme/NavbarItem/DefaultNavbarItem.tsx +1 -3
- package/src/theme/NavbarItem/DropdownNavbarItem.tsx +4 -3
- package/src/theme/NotFound.tsx +1 -3
- package/src/theme/PaginatorNavLink/index.tsx +1 -3
- package/src/theme/SkipToContent/index.tsx +1 -3
- package/src/theme/TOC/index.tsx +1 -3
- package/src/theme/TOCInline/index.tsx +1 -3
- package/src/theme/TabItem/index.tsx +5 -3
- package/src/theme/Tag/index.tsx +1 -3
- package/src/theme/TagsListByLetter/index.tsx +1 -3
- package/src/theme/ThemedImage/index.tsx +1 -3
- package/src/theme/prism-include-languages.ts +4 -4
- package/src/theme-classic.d.ts +40 -77
- package/src/validateThemeConfig.ts +2 -4
|
@@ -172,9 +172,10 @@ function DropdownNavbarItemMobile({
|
|
|
172
172
|
);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
function DropdownNavbarItem({
|
|
175
|
+
export default function DropdownNavbarItem({
|
|
176
|
+
mobile = false,
|
|
177
|
+
...props
|
|
178
|
+
}: Props): JSX.Element {
|
|
176
179
|
const Comp = mobile ? DropdownNavbarItemMobile : DropdownNavbarItemDesktop;
|
|
177
180
|
return <Comp {...props} />;
|
|
178
181
|
}
|
|
179
|
-
|
|
180
|
-
export default DropdownNavbarItem;
|
package/src/theme/NotFound.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import Layout from '@theme/Layout';
|
|
10
10
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
11
11
|
|
|
12
|
-
function NotFound(): JSX.Element {
|
|
12
|
+
export default function NotFound(): JSX.Element {
|
|
13
13
|
return (
|
|
14
14
|
<Layout
|
|
15
15
|
title={translate({
|
|
@@ -47,5 +47,3 @@ function NotFound(): JSX.Element {
|
|
|
47
47
|
</Layout>
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
export default NotFound;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import Link from '@docusaurus/Link';
|
|
10
10
|
import type {Props} from '@theme/PaginatorNavLink';
|
|
11
11
|
|
|
12
|
-
function PaginatorNavLink(props: Props): JSX.Element {
|
|
12
|
+
export default function PaginatorNavLink(props: Props): JSX.Element {
|
|
13
13
|
const {permalink, title, subLabel} = props;
|
|
14
14
|
return (
|
|
15
15
|
<Link className="pagination-nav__link" to={permalink}>
|
|
@@ -18,5 +18,3 @@ function PaginatorNavLink(props: Props): JSX.Element {
|
|
|
18
18
|
</Link>
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
export default PaginatorNavLink;
|
|
@@ -18,7 +18,7 @@ function programmaticFocus(el: HTMLElement) {
|
|
|
18
18
|
el.removeAttribute('tabindex');
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
function SkipToContent(): JSX.Element {
|
|
21
|
+
export default function SkipToContent(): JSX.Element {
|
|
22
22
|
const containerRef = useRef<HTMLDivElement>(null);
|
|
23
23
|
const {action} = useHistory();
|
|
24
24
|
const handleSkip = (e: React.MouseEvent<HTMLAnchorElement>) => {
|
|
@@ -52,5 +52,3 @@ function SkipToContent(): JSX.Element {
|
|
|
52
52
|
</div>
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
export default SkipToContent;
|
package/src/theme/TOC/index.tsx
CHANGED
|
@@ -16,7 +16,7 @@ import styles from './styles.module.css';
|
|
|
16
16
|
const LINK_CLASS_NAME = 'table-of-contents__link toc-highlight';
|
|
17
17
|
const LINK_ACTIVE_CLASS_NAME = 'table-of-contents__link--active';
|
|
18
18
|
|
|
19
|
-
function TOC({className, ...props}: Props): JSX.Element {
|
|
19
|
+
export default function TOC({className, ...props}: Props): JSX.Element {
|
|
20
20
|
return (
|
|
21
21
|
<div className={clsx(styles.tableOfContents, 'thin-scrollbar', className)}>
|
|
22
22
|
<TOCItems
|
|
@@ -27,5 +27,3 @@ function TOC({className, ...props}: Props): JSX.Element {
|
|
|
27
27
|
</div>
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
export default TOC;
|
|
@@ -10,7 +10,7 @@ import type {Props} from '@theme/TOCInline';
|
|
|
10
10
|
import styles from './styles.module.css';
|
|
11
11
|
import TOCItems from '@theme/TOCItems';
|
|
12
12
|
|
|
13
|
-
function TOCInline({
|
|
13
|
+
export default function TOCInline({
|
|
14
14
|
toc,
|
|
15
15
|
minHeadingLevel,
|
|
16
16
|
maxHeadingLevel,
|
|
@@ -27,5 +27,3 @@ function TOCInline({
|
|
|
27
27
|
</div>
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
export default TOCInline;
|
|
@@ -8,12 +8,14 @@
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import type {Props} from '@theme/TabItem';
|
|
10
10
|
|
|
11
|
-
function TabItem({
|
|
11
|
+
export default function TabItem({
|
|
12
|
+
children,
|
|
13
|
+
hidden,
|
|
14
|
+
className,
|
|
15
|
+
}: Props): JSX.Element {
|
|
12
16
|
return (
|
|
13
17
|
<div role="tabpanel" {...{hidden, className}}>
|
|
14
18
|
{children}
|
|
15
19
|
</div>
|
|
16
20
|
);
|
|
17
21
|
}
|
|
18
|
-
|
|
19
|
-
export default TabItem;
|
package/src/theme/Tag/index.tsx
CHANGED
|
@@ -12,7 +12,7 @@ import type {Props} from '@theme/Tag';
|
|
|
12
12
|
|
|
13
13
|
import styles from './styles.module.css';
|
|
14
14
|
|
|
15
|
-
function Tag(props: Props): JSX.Element {
|
|
15
|
+
export default function Tag(props: Props): JSX.Element {
|
|
16
16
|
const {permalink, name, count} = props;
|
|
17
17
|
|
|
18
18
|
return (
|
|
@@ -27,5 +27,3 @@ function Tag(props: Props): JSX.Element {
|
|
|
27
27
|
</Link>
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
export default Tag;
|
|
@@ -28,7 +28,7 @@ function TagLetterEntryItem({letterEntry}: {letterEntry: TagLetterEntry}) {
|
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
function TagsListByLetter({tags}: Props): JSX.Element {
|
|
31
|
+
export default function TagsListByLetter({tags}: Props): JSX.Element {
|
|
32
32
|
const letterList = listTagsByLetters(tags);
|
|
33
33
|
return (
|
|
34
34
|
<section className="margin-vert--lg">
|
|
@@ -41,5 +41,3 @@ function TagsListByLetter({tags}: Props): JSX.Element {
|
|
|
41
41
|
</section>
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
export default TagsListByLetter;
|
|
@@ -14,7 +14,7 @@ import type {Props} from '@theme/ThemedImage';
|
|
|
14
14
|
|
|
15
15
|
import styles from './styles.module.css';
|
|
16
16
|
|
|
17
|
-
function ThemedImage(props: Props): JSX.Element {
|
|
17
|
+
export default function ThemedImage(props: Props): JSX.Element {
|
|
18
18
|
const isBrowser = useIsBrowser();
|
|
19
19
|
const {isDarkTheme} = useColorMode();
|
|
20
20
|
const {sources, className, alt = '', ...propsRest} = props;
|
|
@@ -47,5 +47,3 @@ function ThemedImage(props: Props): JSX.Element {
|
|
|
47
47
|
</>
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
export default ThemedImage;
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
import siteConfig from '@generated/docusaurus.config';
|
|
9
9
|
import type * as PrismNamespace from 'prismjs';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
export default function prismIncludeLanguages(
|
|
12
|
+
PrismObject: typeof PrismNamespace,
|
|
13
|
+
): void {
|
|
12
14
|
const {
|
|
13
15
|
themeConfig: {prism},
|
|
14
16
|
} = siteConfig;
|
|
@@ -28,6 +30,4 @@ const prismIncludeLanguages = (PrismObject: typeof PrismNamespace): void => {
|
|
|
28
30
|
});
|
|
29
31
|
|
|
30
32
|
delete (globalThis as Global & {Prism?: typeof PrismNamespace}).Prism;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export default prismIncludeLanguages;
|
|
33
|
+
}
|
package/src/theme-classic.d.ts
CHANGED
|
@@ -24,8 +24,7 @@ declare module '@theme/Admonition' {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
declare module '@theme/AnnouncementBar' {
|
|
27
|
-
|
|
28
|
-
export default AnnouncementBar;
|
|
27
|
+
export default function AnnouncementBar(): JSX.Element | null;
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
declare module '@theme/BackToTopButton' {
|
|
@@ -38,9 +37,7 @@ declare module '@theme/BlogListPaginator' {
|
|
|
38
37
|
export interface Props {
|
|
39
38
|
readonly metadata: Metadata;
|
|
40
39
|
}
|
|
41
|
-
|
|
42
|
-
const BlogListPaginator: (props: Props) => JSX.Element;
|
|
43
|
-
export default BlogListPaginator;
|
|
40
|
+
export default function BlogListPaginator(props: Props): JSX.Element;
|
|
44
41
|
}
|
|
45
42
|
|
|
46
43
|
declare module '@theme/BlogSidebar' {
|
|
@@ -54,8 +51,7 @@ declare module '@theme/BlogSidebar' {
|
|
|
54
51
|
readonly sidebar: BlogSidebar;
|
|
55
52
|
}
|
|
56
53
|
|
|
57
|
-
|
|
58
|
-
export default BlogSidebar;
|
|
54
|
+
export default function BlogSidebar(props: Props): JSX.Element;
|
|
59
55
|
}
|
|
60
56
|
|
|
61
57
|
declare module '@theme/BlogPostItem' {
|
|
@@ -71,8 +67,7 @@ declare module '@theme/BlogPostItem' {
|
|
|
71
67
|
readonly children: JSX.Element;
|
|
72
68
|
}
|
|
73
69
|
|
|
74
|
-
|
|
75
|
-
export default BlogPostItem;
|
|
70
|
+
export default function BlogPostItem(props: Props): JSX.Element;
|
|
76
71
|
}
|
|
77
72
|
|
|
78
73
|
declare module '@theme/BlogPostAuthor' {
|
|
@@ -105,8 +100,7 @@ declare module '@theme/BlogPostPaginator' {
|
|
|
105
100
|
readonly prevItem?: Item;
|
|
106
101
|
}
|
|
107
102
|
|
|
108
|
-
|
|
109
|
-
export default BlogPostPaginator;
|
|
103
|
+
export default function BlogPostPaginator(props: Props): JSX.Element;
|
|
110
104
|
}
|
|
111
105
|
|
|
112
106
|
declare module '@theme/BlogLayout' {
|
|
@@ -119,8 +113,7 @@ declare module '@theme/BlogLayout' {
|
|
|
119
113
|
readonly toc?: ReactNode;
|
|
120
114
|
}
|
|
121
115
|
|
|
122
|
-
|
|
123
|
-
export default BlogLayout;
|
|
116
|
+
export default function BlogLayout(props: Props): JSX.Element;
|
|
124
117
|
}
|
|
125
118
|
|
|
126
119
|
declare module '@theme/CodeBlock' {
|
|
@@ -134,8 +127,7 @@ declare module '@theme/CodeBlock' {
|
|
|
134
127
|
readonly language?: string;
|
|
135
128
|
}
|
|
136
129
|
|
|
137
|
-
|
|
138
|
-
export default CodeBlock;
|
|
130
|
+
export default function CodeBlock(props: Props): JSX.Element;
|
|
139
131
|
}
|
|
140
132
|
|
|
141
133
|
declare module '@theme/DocCard' {
|
|
@@ -185,8 +177,7 @@ declare module '@theme/DocSidebar' {
|
|
|
185
177
|
readonly [key: string]: unknown;
|
|
186
178
|
}
|
|
187
179
|
|
|
188
|
-
|
|
189
|
-
export default DocSidebar;
|
|
180
|
+
export default function DocSidebar(props: Props): JSX.Element;
|
|
190
181
|
}
|
|
191
182
|
|
|
192
183
|
declare module '@theme/DocSidebarItem' {
|
|
@@ -232,16 +223,14 @@ declare module '@theme/DocVersionBadge' {
|
|
|
232
223
|
}
|
|
233
224
|
|
|
234
225
|
declare module '@theme/DocVersionSuggestions' {
|
|
235
|
-
|
|
236
|
-
export default DocVersionSuggestions;
|
|
226
|
+
export default function DocVersionSuggestions(): JSX.Element;
|
|
237
227
|
}
|
|
238
228
|
|
|
239
229
|
declare module '@theme/EditThisPage' {
|
|
240
230
|
export interface Props {
|
|
241
231
|
readonly editUrl: string;
|
|
242
232
|
}
|
|
243
|
-
|
|
244
|
-
export default EditThisPage;
|
|
233
|
+
export default function EditThisPage(props: Props): JSX.Element;
|
|
245
234
|
}
|
|
246
235
|
|
|
247
236
|
declare module '@theme/ErrorPageContent' {
|
|
@@ -252,8 +241,7 @@ declare module '@theme/ErrorPageContent' {
|
|
|
252
241
|
}
|
|
253
242
|
|
|
254
243
|
declare module '@theme/Footer' {
|
|
255
|
-
|
|
256
|
-
export default Footer;
|
|
244
|
+
export default function Footer(): JSX.Element | null;
|
|
257
245
|
}
|
|
258
246
|
|
|
259
247
|
declare module '@theme/Heading' {
|
|
@@ -315,8 +303,7 @@ declare module '@theme/SearchMetadata' {
|
|
|
315
303
|
readonly tag?: string;
|
|
316
304
|
}
|
|
317
305
|
|
|
318
|
-
|
|
319
|
-
export default SearchMetadata;
|
|
306
|
+
export default function SearchMetadata(props: Props): JSX.Element;
|
|
320
307
|
}
|
|
321
308
|
|
|
322
309
|
declare module '@theme/LastUpdated' {
|
|
@@ -326,13 +313,11 @@ declare module '@theme/LastUpdated' {
|
|
|
326
313
|
readonly lastUpdatedBy?: string;
|
|
327
314
|
}
|
|
328
315
|
|
|
329
|
-
|
|
330
|
-
export default LastUpdated;
|
|
316
|
+
export default function LastUpdated(props: Props): JSX.Element;
|
|
331
317
|
}
|
|
332
318
|
|
|
333
319
|
declare module '@theme/SkipToContent' {
|
|
334
|
-
|
|
335
|
-
export default SkipToContent;
|
|
320
|
+
export default function SkipToContent(): JSX.Element;
|
|
336
321
|
}
|
|
337
322
|
|
|
338
323
|
declare module '@theme/MDXComponents' {
|
|
@@ -359,8 +344,7 @@ declare module '@theme/MDXComponents' {
|
|
|
359
344
|
}
|
|
360
345
|
|
|
361
346
|
declare module '@theme/Navbar' {
|
|
362
|
-
|
|
363
|
-
export default Navbar;
|
|
347
|
+
export default function Navbar(): JSX.Element;
|
|
364
348
|
}
|
|
365
349
|
|
|
366
350
|
declare module '@theme/NavbarItem/DefaultNavbarItem' {
|
|
@@ -409,8 +393,7 @@ declare module '@theme/NavbarItem/DropdownNavbarItem' {
|
|
|
409
393
|
readonly mobile?: boolean;
|
|
410
394
|
}
|
|
411
395
|
|
|
412
|
-
|
|
413
|
-
export default DropdownNavbarItem;
|
|
396
|
+
export default function DropdownNavbarItem(props: Props): JSX.Element;
|
|
414
397
|
}
|
|
415
398
|
|
|
416
399
|
declare module '@theme/NavbarItem/SearchNavbarItem' {
|
|
@@ -418,8 +401,7 @@ declare module '@theme/NavbarItem/SearchNavbarItem' {
|
|
|
418
401
|
readonly mobile?: boolean;
|
|
419
402
|
}
|
|
420
403
|
|
|
421
|
-
|
|
422
|
-
export default SearchNavbarItem;
|
|
404
|
+
export default function SearchNavbarItem(props: Props): JSX.Element;
|
|
423
405
|
}
|
|
424
406
|
|
|
425
407
|
declare module '@theme/NavbarItem/LocaleDropdownNavbarItem' {
|
|
@@ -431,8 +413,7 @@ declare module '@theme/NavbarItem/LocaleDropdownNavbarItem' {
|
|
|
431
413
|
readonly dropdownItemsAfter: LinkLikeNavbarItemProps[];
|
|
432
414
|
}
|
|
433
415
|
|
|
434
|
-
|
|
435
|
-
export default LocaleDropdownNavbarItem;
|
|
416
|
+
export default function LocaleDropdownNavbarItem(props: Props): JSX.Element;
|
|
436
417
|
}
|
|
437
418
|
|
|
438
419
|
declare module '@theme/NavbarItem/DocsVersionDropdownNavbarItem' {
|
|
@@ -446,8 +427,9 @@ declare module '@theme/NavbarItem/DocsVersionDropdownNavbarItem' {
|
|
|
446
427
|
readonly dropdownItemsAfter: LinkLikeNavbarItemProps[];
|
|
447
428
|
}
|
|
448
429
|
|
|
449
|
-
|
|
450
|
-
|
|
430
|
+
export default function DocsVersionDropdownNavbarItem(
|
|
431
|
+
props: Props,
|
|
432
|
+
): JSX.Element;
|
|
451
433
|
}
|
|
452
434
|
|
|
453
435
|
declare module '@theme/NavbarItem/DocsVersionNavbarItem' {
|
|
@@ -457,8 +439,7 @@ declare module '@theme/NavbarItem/DocsVersionNavbarItem' {
|
|
|
457
439
|
readonly docsPluginId?: string;
|
|
458
440
|
}
|
|
459
441
|
|
|
460
|
-
|
|
461
|
-
export default DocsVersionNavbarItem;
|
|
442
|
+
export default function DocsVersionNavbarItem(props: Props): JSX.Element;
|
|
462
443
|
}
|
|
463
444
|
|
|
464
445
|
declare module '@theme/NavbarItem/DocNavbarItem' {
|
|
@@ -469,8 +450,7 @@ declare module '@theme/NavbarItem/DocNavbarItem' {
|
|
|
469
450
|
readonly docsPluginId?: string;
|
|
470
451
|
}
|
|
471
452
|
|
|
472
|
-
|
|
473
|
-
export default DocsSidebarNavbarItem;
|
|
453
|
+
export default function DocsSidebarNavbarItem(props: Props): JSX.Element;
|
|
474
454
|
}
|
|
475
455
|
|
|
476
456
|
declare module '@theme/NavbarItem/DocSidebarNavbarItem' {
|
|
@@ -481,8 +461,7 @@ declare module '@theme/NavbarItem/DocSidebarNavbarItem' {
|
|
|
481
461
|
readonly docsPluginId?: string;
|
|
482
462
|
}
|
|
483
463
|
|
|
484
|
-
|
|
485
|
-
export default DocSidebarNavbarItem;
|
|
464
|
+
export default function DocSidebarNavbarItem(props: Props): JSX.Element;
|
|
486
465
|
}
|
|
487
466
|
|
|
488
467
|
declare module '@theme/NavbarItem' {
|
|
@@ -518,8 +497,7 @@ declare module '@theme/NavbarItem' {
|
|
|
518
497
|
|
|
519
498
|
export type Types = Props['type'];
|
|
520
499
|
|
|
521
|
-
|
|
522
|
-
export default NavbarItem;
|
|
500
|
+
export default function NavbarItem(props: Props): JSX.Element;
|
|
523
501
|
}
|
|
524
502
|
|
|
525
503
|
declare module '@theme/NavbarItem/utils' {
|
|
@@ -555,8 +533,7 @@ declare module '@theme/TabItem' {
|
|
|
555
533
|
readonly attributes?: Record<string, unknown>;
|
|
556
534
|
}
|
|
557
535
|
|
|
558
|
-
|
|
559
|
-
export default TabItem;
|
|
536
|
+
export default function TabItem(props: Props): JSX.Element;
|
|
560
537
|
}
|
|
561
538
|
|
|
562
539
|
declare module '@theme/Tabs' {
|
|
@@ -577,8 +554,7 @@ declare module '@theme/Tabs' {
|
|
|
577
554
|
readonly className?: string;
|
|
578
555
|
}
|
|
579
556
|
|
|
580
|
-
|
|
581
|
-
export default Tabs;
|
|
557
|
+
export default function Tabs(props: Props): JSX.Element;
|
|
582
558
|
}
|
|
583
559
|
|
|
584
560
|
declare module '@theme/ThemedImage' {
|
|
@@ -591,8 +567,7 @@ declare module '@theme/ThemedImage' {
|
|
|
591
567
|
};
|
|
592
568
|
}
|
|
593
569
|
|
|
594
|
-
|
|
595
|
-
export default ThemedImage;
|
|
570
|
+
export default function ThemedImage(props: Props): JSX.Element;
|
|
596
571
|
}
|
|
597
572
|
|
|
598
573
|
declare module '@theme/Details' {
|
|
@@ -629,8 +604,7 @@ declare module '@theme/TOC' {
|
|
|
629
604
|
readonly className?: string;
|
|
630
605
|
}
|
|
631
606
|
|
|
632
|
-
|
|
633
|
-
export default TOC;
|
|
607
|
+
export default function TOC(props: Props): JSX.Element;
|
|
634
608
|
}
|
|
635
609
|
|
|
636
610
|
declare module '@theme/TOCInline' {
|
|
@@ -642,8 +616,7 @@ declare module '@theme/TOCInline' {
|
|
|
642
616
|
readonly maxHeadingLevel?: number;
|
|
643
617
|
}
|
|
644
618
|
|
|
645
|
-
|
|
646
|
-
export default TOCInline;
|
|
619
|
+
export default function TOCInline(props: Props): JSX.Element;
|
|
647
620
|
}
|
|
648
621
|
|
|
649
622
|
declare module '@theme/TOCCollapsible' {
|
|
@@ -656,8 +629,7 @@ declare module '@theme/TOCCollapsible' {
|
|
|
656
629
|
readonly toc: readonly TOCItem[];
|
|
657
630
|
}
|
|
658
631
|
|
|
659
|
-
|
|
660
|
-
export default TOCCollapsible;
|
|
632
|
+
export default function TOCCollapsible(props: Props): JSX.Element;
|
|
661
633
|
}
|
|
662
634
|
|
|
663
635
|
declare module '@theme/Toggle' {
|
|
@@ -669,8 +641,7 @@ declare module '@theme/Toggle' {
|
|
|
669
641
|
readonly onChange: (e: SyntheticEvent) => void;
|
|
670
642
|
}
|
|
671
643
|
|
|
672
|
-
|
|
673
|
-
export default Toggle;
|
|
644
|
+
export default function Toggle(props: Props): JSX.Element;
|
|
674
645
|
}
|
|
675
646
|
|
|
676
647
|
declare module '@theme/Logo' {
|
|
@@ -681,8 +652,7 @@ declare module '@theme/Logo' {
|
|
|
681
652
|
readonly titleClassName?: string;
|
|
682
653
|
}
|
|
683
654
|
|
|
684
|
-
|
|
685
|
-
export default Logo;
|
|
655
|
+
export default function Logo(props: Props): JSX.Element;
|
|
686
656
|
}
|
|
687
657
|
|
|
688
658
|
declare module '@theme/IconArrow' {
|
|
@@ -690,8 +660,7 @@ declare module '@theme/IconArrow' {
|
|
|
690
660
|
|
|
691
661
|
export interface Props extends ComponentProps<'svg'> {}
|
|
692
662
|
|
|
693
|
-
|
|
694
|
-
export default IconArrow;
|
|
663
|
+
export default function IconArrow(props: Props): JSX.Element;
|
|
695
664
|
}
|
|
696
665
|
|
|
697
666
|
declare module '@theme/IconEdit' {
|
|
@@ -699,8 +668,7 @@ declare module '@theme/IconEdit' {
|
|
|
699
668
|
|
|
700
669
|
export interface Props extends ComponentProps<'svg'> {}
|
|
701
670
|
|
|
702
|
-
|
|
703
|
-
export default IconEdit;
|
|
671
|
+
export default function IconEdit(props: Props): JSX.Element;
|
|
704
672
|
}
|
|
705
673
|
|
|
706
674
|
declare module '@theme/IconMenu' {
|
|
@@ -708,8 +676,7 @@ declare module '@theme/IconMenu' {
|
|
|
708
676
|
|
|
709
677
|
export interface Props extends ComponentProps<'svg'> {}
|
|
710
678
|
|
|
711
|
-
|
|
712
|
-
export default IconMenu;
|
|
679
|
+
export default function IconMenu(props: Props): JSX.Element;
|
|
713
680
|
}
|
|
714
681
|
|
|
715
682
|
declare module '@theme/IconClose' {
|
|
@@ -717,8 +684,7 @@ declare module '@theme/IconClose' {
|
|
|
717
684
|
|
|
718
685
|
export interface Props extends ComponentProps<'svg'> {}
|
|
719
686
|
|
|
720
|
-
|
|
721
|
-
export default IconClose;
|
|
687
|
+
export default function IconClose(props: Props): JSX.Element;
|
|
722
688
|
}
|
|
723
689
|
|
|
724
690
|
declare module '@theme/IconLanguage' {
|
|
@@ -726,8 +692,7 @@ declare module '@theme/IconLanguage' {
|
|
|
726
692
|
|
|
727
693
|
export interface Props extends ComponentProps<'svg'> {}
|
|
728
694
|
|
|
729
|
-
|
|
730
|
-
export default IconLanguage;
|
|
695
|
+
export default function IconLanguage(props: Props): JSX.Element;
|
|
731
696
|
}
|
|
732
697
|
|
|
733
698
|
declare module '@theme/IconExternalLink' {
|
|
@@ -735,8 +700,7 @@ declare module '@theme/IconExternalLink' {
|
|
|
735
700
|
|
|
736
701
|
export interface Props extends ComponentProps<'svg'> {}
|
|
737
702
|
|
|
738
|
-
|
|
739
|
-
export default IconExternalLink;
|
|
703
|
+
export default function IconExternalLink(props: Props): JSX.Element;
|
|
740
704
|
}
|
|
741
705
|
|
|
742
706
|
declare module '@theme/TagsListByLetter' {
|
|
@@ -787,6 +751,5 @@ declare module '@theme/Seo' {
|
|
|
787
751
|
readonly children?: ReactNode;
|
|
788
752
|
}
|
|
789
753
|
|
|
790
|
-
|
|
791
|
-
export default Seo;
|
|
754
|
+
export default function Seo(props: Props): JSX.Element;
|
|
792
755
|
}
|
|
@@ -29,7 +29,7 @@ const DEFAULT_COLOR_MODE_CONFIG = {
|
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
const DEFAULT_CONFIG = {
|
|
32
|
+
export const DEFAULT_CONFIG = {
|
|
33
33
|
colorMode: DEFAULT_COLOR_MODE_CONFIG,
|
|
34
34
|
docs: DEFAULT_DOCS_CONFIG,
|
|
35
35
|
metadata: [],
|
|
@@ -263,7 +263,7 @@ const CustomCssSchema = Joi.alternatives()
|
|
|
263
263
|
.try(Joi.array().items(Joi.string().required()), Joi.string().required())
|
|
264
264
|
.optional();
|
|
265
265
|
|
|
266
|
-
const ThemeConfigSchema = Joi.object({
|
|
266
|
+
export const ThemeConfigSchema = Joi.object({
|
|
267
267
|
// TODO temporary (@alpha-58)
|
|
268
268
|
disableDarkMode: Joi.any().forbidden().messages({
|
|
269
269
|
'any.unknown':
|
|
@@ -386,8 +386,6 @@ const ThemeConfigSchema = Joi.object({
|
|
|
386
386
|
}).default(DEFAULT_CONFIG.tableOfContents),
|
|
387
387
|
});
|
|
388
388
|
|
|
389
|
-
export {DEFAULT_CONFIG, ThemeConfigSchema};
|
|
390
|
-
|
|
391
389
|
export function validateThemeConfig({
|
|
392
390
|
validate,
|
|
393
391
|
themeConfig,
|