@docusaurus/core 3.6.3-canary-6164 → 3.6.3-canary-6167
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/App.d.ts +2 -1
- package/lib/client/BaseUrlIssueBanner/index.d.ts +2 -1
- package/lib/client/BrokenLinksContext.d.ts +1 -1
- package/lib/client/ClientLifecyclesDispatcher.d.ts +2 -2
- package/lib/client/PendingNavigation.d.ts +3 -3
- package/lib/client/SiteMetadataDefaults.d.ts +2 -1
- package/lib/client/browserContext.d.ts +1 -1
- package/lib/client/docusaurusContext.d.ts +1 -1
- package/lib/client/exports/BrowserOnly.d.ts +2 -1
- package/lib/client/exports/BrowserOnly.js +1 -1
- package/lib/client/exports/Head.d.ts +2 -1
- package/lib/client/exports/Interpolate.d.ts +1 -1
- package/lib/client/exports/Translate.d.ts +2 -1
- package/lib/client/hasHydratedDataAttribute.d.ts +2 -1
- package/lib/client/routeContext.d.ts +1 -1
- package/lib/client/theme-fallback/Error/index.d.ts +2 -1
- package/lib/client/theme-fallback/Layout/index.d.ts +2 -1
- package/lib/client/theme-fallback/Loading/index.d.ts +2 -1
- package/lib/client/theme-fallback/NotFound/index.d.ts +2 -1
- package/lib/client/theme-fallback/Root/index.d.ts +2 -1
- package/lib/client/theme-fallback/SiteMetadata/index.d.ts +2 -1
- package/lib/client/theme-fallback/SiteMetadata/index.js +0 -6
- package/package.json +11 -11
package/lib/client/App.d.ts
CHANGED
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import '@generated/client-modules';
|
|
8
|
-
export default function App():
|
|
9
|
+
export default function App(): ReactNode;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import './styles.module.css';
|
|
8
9
|
/**
|
|
9
10
|
* We want to help the users with a bad baseUrl configuration (very common
|
|
@@ -16,4 +17,4 @@ import './styles.module.css';
|
|
|
16
17
|
*
|
|
17
18
|
* @see https://github.com/facebook/docusaurus/pull/3621
|
|
18
19
|
*/
|
|
19
|
-
export default function MaybeBaseUrlIssueBanner():
|
|
20
|
+
export default function MaybeBaseUrlIssueBanner(): ReactNode;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
8
8
|
import type { ClientModule } from '@docusaurus/types';
|
|
9
9
|
import type { Location } from 'history';
|
|
10
10
|
export declare function dispatchLifecycleAction<K extends keyof ClientModule>(lifecycleAction: K, ...args: Parameters<NonNullable<ClientModule[K]>>): () => void;
|
|
@@ -12,5 +12,5 @@ declare function ClientLifecyclesDispatcher({ children, location, previousLocati
|
|
|
12
12
|
children: ReactElement;
|
|
13
13
|
location: Location;
|
|
14
14
|
previousLocation: Location | null;
|
|
15
|
-
}):
|
|
15
|
+
}): ReactNode;
|
|
16
16
|
export default ClientLifecyclesDispatcher;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
7
|
+
import React, { type ReactNode } from 'react';
|
|
8
8
|
import type { Location } from 'history';
|
|
9
9
|
type Props = {
|
|
10
10
|
readonly location: Location;
|
|
11
|
-
readonly children:
|
|
11
|
+
readonly children: ReactNode;
|
|
12
12
|
};
|
|
13
13
|
type State = {
|
|
14
14
|
nextRouteHasLoaded: boolean;
|
|
@@ -18,6 +18,6 @@ declare class PendingNavigation extends React.Component<Props, State> {
|
|
|
18
18
|
private routeUpdateCleanupCb;
|
|
19
19
|
constructor(props: Props);
|
|
20
20
|
shouldComponentUpdate(nextProps: Props, nextState: State): boolean;
|
|
21
|
-
render():
|
|
21
|
+
render(): ReactNode;
|
|
22
22
|
}
|
|
23
23
|
export default PendingNavigation;
|
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
8
|
+
export default function SiteMetadataDefaults(): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@docusaurus/BrowserOnly';
|
|
8
|
-
export default function BrowserOnly({ children, fallback
|
|
9
|
+
export default function BrowserOnly({ children, fallback }: Props): ReactNode;
|
|
@@ -8,7 +8,7 @@ import React, { isValidElement } from 'react';
|
|
|
8
8
|
import useIsBrowser from '@docusaurus/useIsBrowser';
|
|
9
9
|
// Similar comp to the one described here:
|
|
10
10
|
// https://www.joshwcomeau.com/react/the-perils-of-rehydration/#abstractions
|
|
11
|
-
export default function BrowserOnly({ children, fallback
|
|
11
|
+
export default function BrowserOnly({ children, fallback }) {
|
|
12
12
|
const isBrowser = useIsBrowser();
|
|
13
13
|
if (isBrowser) {
|
|
14
14
|
if (typeof children !== 'function' &&
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@docusaurus/Head';
|
|
8
|
-
export default function Head(props: Props):
|
|
9
|
+
export default function Head(props: Props): ReactNode;
|
|
@@ -8,4 +8,4 @@ import { type ReactNode } from 'react';
|
|
|
8
8
|
import type { InterpolateProps, InterpolateValues } from '@docusaurus/Interpolate';
|
|
9
9
|
export declare function interpolate<Str extends string>(text: Str, values?: InterpolateValues<Str, string | number>): string;
|
|
10
10
|
export declare function interpolate<Str extends string, Value extends ReactNode>(text: Str, values?: InterpolateValues<Str, Value>): ReactNode;
|
|
11
|
-
export default function Interpolate<Str extends string>({ children, values, }: InterpolateProps<Str>):
|
|
11
|
+
export default function Interpolate<Str extends string>({ children, values, }: InterpolateProps<Str>): ReactNode;
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import { type InterpolateValues } from '@docusaurus/Interpolate';
|
|
8
9
|
import type { TranslateParam, TranslateProps } from '@docusaurus/Translate';
|
|
9
10
|
export declare function translate<Str extends string>({ message, id }: TranslateParam<Str>, values?: InterpolateValues<Str, string | number>): string;
|
|
10
|
-
export default function Translate<Str extends string>({ children, id, values, }: TranslateProps<Str>):
|
|
11
|
+
export default function Translate<Str extends string>({ children, id, values, }: TranslateProps<Str>): ReactNode;
|
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
|
+
export default function HasHydratedDataAttribute(): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/Error';
|
|
8
|
-
export default function Error({ error, tryAgain }: Props):
|
|
9
|
+
export default function Error({ error, tryAgain }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/Layout';
|
|
8
|
-
export default function Layout({ children }: Props):
|
|
9
|
+
export default function Layout({ children }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { LoadingComponentProps } from 'react-loadable';
|
|
8
|
-
export default function Loading({ error, retry, pastDelay, }: LoadingComponentProps):
|
|
9
|
+
export default function Loading({ error, retry, pastDelay, }: LoadingComponentProps): ReactNode;
|
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
8
|
+
export default function NotFound(): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/Root';
|
|
8
|
-
export default function Root({ children }: Props):
|
|
9
|
+
export default function Root({ children }: Props): ReactNode;
|
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
|
+
export default function SiteMetadata(): ReactNode;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
1
|
// To be implemented by the theme with <Head>
|
|
8
2
|
export default function SiteMetadata() {
|
|
9
3
|
return null;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/core",
|
|
3
3
|
"description": "Easy to Maintain Open Source Documentation Websites",
|
|
4
|
-
"version": "3.6.3-canary-
|
|
4
|
+
"version": "3.6.3-canary-6167",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"url": "https://github.com/facebook/docusaurus/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@docusaurus/babel": "3.6.3-canary-
|
|
37
|
-
"@docusaurus/bundler": "3.6.3-canary-
|
|
38
|
-
"@docusaurus/logger": "3.6.3-canary-
|
|
39
|
-
"@docusaurus/mdx-loader": "3.6.3-canary-
|
|
40
|
-
"@docusaurus/utils": "3.6.3-canary-
|
|
41
|
-
"@docusaurus/utils-common": "3.6.3-canary-
|
|
42
|
-
"@docusaurus/utils-validation": "3.6.3-canary-
|
|
36
|
+
"@docusaurus/babel": "3.6.3-canary-6167",
|
|
37
|
+
"@docusaurus/bundler": "3.6.3-canary-6167",
|
|
38
|
+
"@docusaurus/logger": "3.6.3-canary-6167",
|
|
39
|
+
"@docusaurus/mdx-loader": "3.6.3-canary-6167",
|
|
40
|
+
"@docusaurus/utils": "3.6.3-canary-6167",
|
|
41
|
+
"@docusaurus/utils-common": "3.6.3-canary-6167",
|
|
42
|
+
"@docusaurus/utils-validation": "3.6.3-canary-6167",
|
|
43
43
|
"boxen": "^6.2.1",
|
|
44
44
|
"chalk": "^4.1.2",
|
|
45
45
|
"chokidar": "^3.5.3",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"webpack-merge": "^6.0.1"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@docusaurus/module-type-aliases": "3.6.3-canary-
|
|
82
|
-
"@docusaurus/types": "3.6.3-canary-
|
|
81
|
+
"@docusaurus/module-type-aliases": "3.6.3-canary-6167",
|
|
82
|
+
"@docusaurus/types": "3.6.3-canary-6167",
|
|
83
83
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
84
84
|
"@types/detect-port": "^1.3.3",
|
|
85
85
|
"@types/react-dom": "^18.2.7",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"engines": {
|
|
101
101
|
"node": ">=18.0"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "d8c53eaab293c71917973e7358a894572141e1c8"
|
|
104
104
|
}
|