@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.
@@ -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(): JSX.Element;
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(): JSX.Element | null;
20
+ export default function MaybeBaseUrlIssueBanner(): ReactNode;
@@ -15,4 +15,4 @@ export declare const useBrokenLinksContext: () => BrokenLinks;
15
15
  export declare function BrokenLinksProvider({ children, brokenLinks, }: {
16
16
  children: ReactNode;
17
17
  brokenLinks: BrokenLinks;
18
- }): JSX.Element;
18
+ }): 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 { type ReactElement } from 'react';
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
- }): JSX.Element;
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: JSX.Element;
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(): JSX.Element;
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
- export default function SiteMetadataDefaults(): JSX.Element;
7
+ import { type ReactNode } from 'react';
8
+ export default function SiteMetadataDefaults(): ReactNode;
@@ -8,4 +8,4 @@ import React, { type ReactNode } from 'react';
8
8
  export declare const Context: React.Context<boolean>;
9
9
  export declare function BrowserContextProvider({ children, }: {
10
10
  children: ReactNode;
11
- }): JSX.Element;
11
+ }): ReactNode;
@@ -9,4 +9,4 @@ import type { DocusaurusContext } from '@docusaurus/types';
9
9
  export declare const Context: React.Context<DocusaurusContext>;
10
10
  export declare function DocusaurusContextProvider({ children, }: {
11
11
  children: ReactNode;
12
- }): JSX.Element;
12
+ }): 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, }: Props): JSX.Element | null;
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): JSX.Element;
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>): JSX.Element;
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>): JSX.Element;
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
- export default function HasHydratedDataAttribute(): JSX.Element;
7
+ import type { ReactNode } from 'react';
8
+ export default function HasHydratedDataAttribute(): ReactNode;
@@ -10,4 +10,4 @@ export declare const Context: React.Context<PluginRouteContext | null>;
10
10
  export declare function RouteContextProvider({ children, value, }: {
11
11
  children: ReactNode;
12
12
  value: PluginRouteContext | RouteContext | null;
13
- }): JSX.Element;
13
+ }): 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): JSX.Element;
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): JSX.Element;
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): JSX.Element | null;
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
- export default function NotFound(): JSX.Element;
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): JSX.Element;
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
- export default function SiteMetadata(): JSX.Element | null;
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-6164",
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-6164",
37
- "@docusaurus/bundler": "3.6.3-canary-6164",
38
- "@docusaurus/logger": "3.6.3-canary-6164",
39
- "@docusaurus/mdx-loader": "3.6.3-canary-6164",
40
- "@docusaurus/utils": "3.6.3-canary-6164",
41
- "@docusaurus/utils-common": "3.6.3-canary-6164",
42
- "@docusaurus/utils-validation": "3.6.3-canary-6164",
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-6164",
82
- "@docusaurus/types": "3.6.3-canary-6164",
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": "49e0b1965ff23b2ed4a3cf15c64269177baea7bc"
103
+ "gitHead": "d8c53eaab293c71917973e7358a894572141e1c8"
104
104
  }