@docusaurus/core 0.0.0-4817 → 0.0.0-4818
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,23 +4,22 @@
|
|
|
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
|
-
/// <reference types="node" />
|
|
8
7
|
import React from 'react';
|
|
9
8
|
import { type RouteComponentProps } from 'react-router-dom';
|
|
10
9
|
import type { RouteConfig } from 'react-router-config';
|
|
11
10
|
import type { Location } from 'history';
|
|
12
11
|
import './nprogress.css';
|
|
13
|
-
|
|
12
|
+
declare type Props = RouteComponentProps & {
|
|
14
13
|
readonly routes: RouteConfig[];
|
|
15
14
|
readonly delay: number;
|
|
16
15
|
readonly location: Location;
|
|
17
|
-
}
|
|
18
|
-
|
|
16
|
+
};
|
|
17
|
+
declare type State = {
|
|
19
18
|
nextRouteHasLoaded: boolean;
|
|
20
|
-
}
|
|
19
|
+
};
|
|
21
20
|
declare class PendingNavigation extends React.Component<Props, State> {
|
|
22
|
-
previousLocation
|
|
23
|
-
progressBarTimeout
|
|
21
|
+
private previousLocation;
|
|
22
|
+
private progressBarTimeout;
|
|
24
23
|
constructor(props: Props);
|
|
25
24
|
shouldComponentUpdate(nextProps: Props, nextState: State): boolean;
|
|
26
25
|
private clearProgressBarTimeout;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
/// <reference types="@docusaurus/module-type-aliases" />
|
|
8
8
|
import React, { type ReactNode } from 'react';
|
|
9
9
|
import type { Props } from '@docusaurus/ErrorBoundary';
|
|
10
|
-
|
|
10
|
+
declare type State = {
|
|
11
11
|
error: Error | null;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
export default class ErrorBoundary extends React.Component<Props, State> {
|
|
14
14
|
constructor(props: Props);
|
|
15
15
|
componentDidCatch(error: Error): void;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* SOFTWARE.
|
|
25
25
|
*/
|
|
26
26
|
import type { Compiler, Stats } from 'webpack';
|
|
27
|
-
export
|
|
27
|
+
export declare type Options = {
|
|
28
28
|
/**
|
|
29
29
|
* Write Logs to Console
|
|
30
30
|
* (Always enabled when dry is true)
|
|
@@ -53,7 +53,7 @@ export interface Options {
|
|
|
53
53
|
* default: ['**\/*']
|
|
54
54
|
*/
|
|
55
55
|
cleanOnceBeforeBuildPatterns?: string[];
|
|
56
|
-
}
|
|
56
|
+
};
|
|
57
57
|
export default class CleanWebpackPlugin {
|
|
58
58
|
private readonly verbose;
|
|
59
59
|
private readonly cleanStaleWebpackAssets;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import type { Compiler } from 'webpack';
|
|
8
|
-
|
|
8
|
+
declare type WaitPluginOptions = {
|
|
9
9
|
filepath: string;
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
export default class WaitPlugin {
|
|
12
12
|
filepath: string;
|
|
13
13
|
constructor(options: WaitPluginOptions);
|
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": "0.0.0-
|
|
4
|
+
"version": "0.0.0-4818",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@babel/runtime": "^7.17.8",
|
|
42
42
|
"@babel/runtime-corejs3": "^7.17.8",
|
|
43
43
|
"@babel/traverse": "^7.17.3",
|
|
44
|
-
"@docusaurus/cssnano-preset": "0.0.0-
|
|
45
|
-
"@docusaurus/logger": "0.0.0-
|
|
46
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
44
|
+
"@docusaurus/cssnano-preset": "0.0.0-4818",
|
|
45
|
+
"@docusaurus/logger": "0.0.0-4818",
|
|
46
|
+
"@docusaurus/mdx-loader": "0.0.0-4818",
|
|
47
47
|
"@docusaurus/react-loadable": "5.5.2",
|
|
48
|
-
"@docusaurus/utils": "0.0.0-
|
|
49
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
50
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
48
|
+
"@docusaurus/utils": "0.0.0-4818",
|
|
49
|
+
"@docusaurus/utils-common": "0.0.0-4818",
|
|
50
|
+
"@docusaurus/utils-validation": "0.0.0-4818",
|
|
51
51
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.4",
|
|
52
52
|
"@svgr/webpack": "^6.2.1",
|
|
53
53
|
"autoprefixer": "^10.4.4",
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"webpackbar": "^5.0.2"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
109
|
-
"@docusaurus/types": "0.0.0-
|
|
108
|
+
"@docusaurus/module-type-aliases": "0.0.0-4818",
|
|
109
|
+
"@docusaurus/types": "0.0.0-4818",
|
|
110
110
|
"@types/detect-port": "^1.3.2",
|
|
111
111
|
"@types/nprogress": "^0.2.0",
|
|
112
112
|
"@types/react-dom": "^17.0.14",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"engines": {
|
|
128
128
|
"node": ">=14"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "0ea48452c51db14e48c6395071903307663e2281"
|
|
131
131
|
}
|