@docusaurus/core 0.0.0-5439 → 0.0.0-5448
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/LinksCollector.d.ts +2 -2
- package/lib/client/PendingNavigation.d.ts +2 -2
- package/lib/client/exports/ErrorBoundary.d.ts +1 -1
- package/lib/client/exports/Link.d.ts +1 -1
- package/lib/commands/build.d.ts +1 -1
- package/lib/commands/deploy.d.ts +1 -1
- package/lib/commands/serve.d.ts +1 -1
- package/lib/commands/start.d.ts +1 -1
- package/lib/commands/swizzle/actions.d.ts +2 -2
- package/lib/commands/swizzle/common.d.ts +3 -3
- package/lib/commands/swizzle/components.d.ts +1 -1
- package/lib/commands/writeTranslations.d.ts +1 -1
- package/lib/server/getHostPort.d.ts +1 -1
- package/lib/server/index.d.ts +1 -1
- package/lib/server/plugins/configs.d.ts +2 -2
- package/lib/server/routes.d.ts +1 -1
- package/lib/server/translations/translations.d.ts +2 -2
- package/lib/server/translations/translationsExtractor.d.ts +1 -1
- package/lib/webpack/aliases/index.d.ts +1 -1
- package/lib/webpack/plugins/CleanWebpackPlugin.d.ts +1 -1
- package/lib/webpack/plugins/WaitPlugin.d.ts +1 -1
- package/lib/webpack/utils.js +0 -1
- package/package.json +39 -39
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import { type ReactNode } from 'react';
|
|
8
|
-
|
|
8
|
+
type LinksCollector = {
|
|
9
9
|
collectLink: (link: string) => void;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type StatefulLinksCollector = LinksCollector & {
|
|
12
12
|
getCollectedLinks: () => string[];
|
|
13
13
|
};
|
|
14
14
|
export declare const createStatefulLinksCollector: () => StatefulLinksCollector;
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import type { Location } from 'history';
|
|
9
|
-
|
|
9
|
+
type Props = {
|
|
10
10
|
readonly location: Location;
|
|
11
11
|
readonly children: JSX.Element;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type State = {
|
|
14
14
|
nextRouteHasLoaded: boolean;
|
|
15
15
|
};
|
|
16
16
|
declare class PendingNavigation extends React.Component<Props, State> {
|
|
@@ -7,7 +7,7 @@
|
|
|
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
|
+
type State = {
|
|
11
11
|
error: Error | null;
|
|
12
12
|
};
|
|
13
13
|
export default class ErrorBoundary extends React.Component<Props, State> {
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
/// <reference types="@docusaurus/module-type-aliases" />
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import type { Props } from '@docusaurus/Link';
|
|
10
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "location" | "children" | "replace" | "slot" | "style" | "title" | "component" | "exact" | "sensitive" | "strict" | "type" | "key" | "id" | "lang" | "dir" | "property" | "rel" | "href" | "isNavLink" | "className" | "to" | "innerRef" | "download" | "hrefLang" | "media" | "ping" | "target" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "activeClassName" | "activeStyle" | "isActive" | "data-noBrokenLinkCheck" | "autoAddBaseUrl"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "location" | "children" | "replace" | "slot" | "style" | "title" | "component" | "exact" | "sensitive" | "strict" | "type" | "key" | "id" | "lang" | "dir" | "property" | "rel" | "href" | "isNavLink" | "className" | "to" | "innerRef" | "download" | "hrefLang" | "media" | "ping" | "target" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "activeClassName" | "activeStyle" | "isActive" | "data-noBrokenLinkCheck" | "autoAddBaseUrl"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
11
11
|
export default _default;
|
package/lib/commands/build.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import { type LoadContextOptions } from '../server';
|
|
8
|
-
export
|
|
8
|
+
export type BuildCLIOptions = Pick<LoadContextOptions, 'config' | 'locale' | 'outDir'> & {
|
|
9
9
|
bundleAnalyzer?: boolean;
|
|
10
10
|
minify?: boolean;
|
|
11
11
|
};
|
package/lib/commands/deploy.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import { type LoadContextOptions } from '../server';
|
|
8
|
-
export
|
|
8
|
+
export type DeployCLIOptions = Pick<LoadContextOptions, 'config' | 'locale' | 'outDir'> & {
|
|
9
9
|
skipBuild?: boolean;
|
|
10
10
|
};
|
|
11
11
|
export declare function deploy(siteDirParam?: string, cliOptions?: Partial<DeployCLIOptions>): Promise<void>;
|
package/lib/commands/serve.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { type HostPortOptions } from '../server/getHostPort';
|
|
8
8
|
import type { LoadContextOptions } from '../server';
|
|
9
|
-
export
|
|
9
|
+
export type ServeCLIOptions = HostPortOptions & Pick<LoadContextOptions, 'config'> & {
|
|
10
10
|
dir?: string;
|
|
11
11
|
build?: boolean;
|
|
12
12
|
open?: boolean;
|
package/lib/commands/start.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { type LoadContextOptions } from '../server';
|
|
8
8
|
import { type HostPortOptions } from '../server/getHostPort';
|
|
9
|
-
export
|
|
9
|
+
export type StartCLIOptions = HostPortOptions & Pick<LoadContextOptions, 'locale' | 'config'> & {
|
|
10
10
|
hotOnly?: boolean;
|
|
11
11
|
open?: boolean;
|
|
12
12
|
poll?: boolean | number;
|
|
@@ -8,13 +8,13 @@ import type { SwizzleAction, SwizzleComponentConfig } from '@docusaurus/types';
|
|
|
8
8
|
import type { SwizzleCLIOptions } from './common';
|
|
9
9
|
export declare const SwizzleActions: SwizzleAction[];
|
|
10
10
|
export declare function getAction(componentConfig: SwizzleComponentConfig, options: Pick<SwizzleCLIOptions, 'wrap' | 'eject'>): Promise<SwizzleAction>;
|
|
11
|
-
export
|
|
11
|
+
export type ActionParams = {
|
|
12
12
|
siteDir: string;
|
|
13
13
|
themePath: string;
|
|
14
14
|
componentName: string;
|
|
15
15
|
typescript: boolean;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type ActionResult = {
|
|
18
18
|
createdFiles: string[];
|
|
19
19
|
};
|
|
20
20
|
export declare function eject({ siteDir, themePath, componentName, typescript, }: ActionParams): Promise<ActionResult>;
|
|
@@ -14,14 +14,14 @@ export declare function actionStatusColor(status: SwizzleActionStatus, str: stri
|
|
|
14
14
|
export declare function actionStatusSuffix(status: SwizzleActionStatus, options?: {
|
|
15
15
|
partiallySafe?: boolean;
|
|
16
16
|
}): string;
|
|
17
|
-
export
|
|
17
|
+
export type SwizzlePlugin = {
|
|
18
18
|
instance: InitializedPlugin;
|
|
19
19
|
plugin: NormalizedPluginConfig;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type SwizzleContext = {
|
|
22
22
|
plugins: SwizzlePlugin[];
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type SwizzleCLIOptions = {
|
|
25
25
|
typescript: boolean;
|
|
26
26
|
danger: boolean;
|
|
27
27
|
list: boolean;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import type { SwizzleAction, SwizzleActionStatus, SwizzleComponentConfig, SwizzleConfig } from '@docusaurus/types';
|
|
8
|
-
export
|
|
8
|
+
export type ThemeComponents = {
|
|
9
9
|
themeName: string;
|
|
10
10
|
all: string[];
|
|
11
11
|
getConfig: (component: string) => SwizzleComponentConfig;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { type LoadContextOptions } from '../server';
|
|
8
8
|
import { type WriteTranslationsOptions } from '../server/translations/translations';
|
|
9
|
-
export
|
|
9
|
+
export type WriteTranslationsCLIOptions = Pick<LoadContextOptions, 'config' | 'locale'> & WriteTranslationsOptions;
|
|
10
10
|
export declare function writeTranslations(siteDirParam?: string, options?: Partial<WriteTranslationsCLIOptions>): Promise<void>;
|
package/lib/server/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import type { LoadContext, Props } from '@docusaurus/types';
|
|
8
|
-
export
|
|
8
|
+
export type LoadContextOptions = {
|
|
9
9
|
/** Usually the CWD; can be overridden with command argument. */
|
|
10
10
|
siteDir: string;
|
|
11
11
|
/** Custom output directory. Can be customized with `--out-dir` option */
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import type { LoadContext, PluginModule, PluginOptions } from '@docusaurus/types';
|
|
8
|
-
|
|
8
|
+
type ImportedPluginModule = PluginModule & {
|
|
9
9
|
default?: PluginModule;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type NormalizedPluginConfig = {
|
|
12
12
|
/**
|
|
13
13
|
* The default export of the plugin module, or alternatively, what's provided
|
|
14
14
|
* in the config file as inline plugins. Note that if a file is like:
|
package/lib/server/routes.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import type { RouteConfig, RouteChunkNames, ReportingSeverity } from '@docusaurus/types';
|
|
8
|
-
|
|
8
|
+
type LoadedRoutes = {
|
|
9
9
|
/** Serialized routes config that can be directly emitted into temp file. */
|
|
10
10
|
routesConfig: string;
|
|
11
11
|
/** @see {ChunkNames} */
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import type { TranslationFileContent, TranslationFile, CodeTranslations, InitializedPlugin } from '@docusaurus/types';
|
|
8
|
-
export
|
|
8
|
+
export type WriteTranslationsOptions = {
|
|
9
9
|
override?: boolean;
|
|
10
10
|
messagePrefix?: string;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type TranslationContext = {
|
|
13
13
|
localizationDir: string;
|
|
14
14
|
};
|
|
15
15
|
export declare function readCodeTranslationFileContent(context: TranslationContext): Promise<TranslationFileContent | undefined>;
|
|
@@ -8,7 +8,7 @@ import { type TransformOptions } from '@babel/core';
|
|
|
8
8
|
import type { InitializedPlugin, TranslationFileContent } from '@docusaurus/types';
|
|
9
9
|
export declare function globSourceCodeFilePaths(dirPaths: string[]): Promise<string[]>;
|
|
10
10
|
export declare function extractSiteSourceCodeTranslations(siteDir: string, plugins: InitializedPlugin[], babelOptions: TransformOptions, extraSourceCodeFilePaths?: string[]): Promise<TranslationFileContent>;
|
|
11
|
-
|
|
11
|
+
type SourceCodeFileTranslations = {
|
|
12
12
|
sourceCodeFilePath: string;
|
|
13
13
|
translations: TranslationFileContent;
|
|
14
14
|
warnings: string[];
|
package/lib/webpack/utils.js
CHANGED
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-5448",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -33,42 +33,42 @@
|
|
|
33
33
|
"url": "https://github.com/facebook/docusaurus/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@babel/core": "^7.
|
|
37
|
-
"@babel/generator": "^7.
|
|
36
|
+
"@babel/core": "^7.20.12",
|
|
37
|
+
"@babel/generator": "^7.20.7",
|
|
38
38
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
39
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
40
|
-
"@babel/preset-env": "^7.
|
|
39
|
+
"@babel/plugin-transform-runtime": "^7.19.6",
|
|
40
|
+
"@babel/preset-env": "^7.20.2",
|
|
41
41
|
"@babel/preset-react": "^7.18.6",
|
|
42
42
|
"@babel/preset-typescript": "^7.18.6",
|
|
43
|
-
"@babel/runtime": "^7.
|
|
44
|
-
"@babel/runtime-corejs3": "^7.
|
|
45
|
-
"@babel/traverse": "^7.
|
|
46
|
-
"@docusaurus/cssnano-preset": "0.0.0-
|
|
47
|
-
"@docusaurus/logger": "0.0.0-
|
|
48
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
43
|
+
"@babel/runtime": "^7.20.7",
|
|
44
|
+
"@babel/runtime-corejs3": "^7.20.7",
|
|
45
|
+
"@babel/traverse": "^7.20.12",
|
|
46
|
+
"@docusaurus/cssnano-preset": "0.0.0-5448",
|
|
47
|
+
"@docusaurus/logger": "0.0.0-5448",
|
|
48
|
+
"@docusaurus/mdx-loader": "0.0.0-5448",
|
|
49
49
|
"@docusaurus/react-loadable": "5.5.2",
|
|
50
|
-
"@docusaurus/utils": "0.0.0-
|
|
51
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
52
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
50
|
+
"@docusaurus/utils": "0.0.0-5448",
|
|
51
|
+
"@docusaurus/utils-common": "0.0.0-5448",
|
|
52
|
+
"@docusaurus/utils-validation": "0.0.0-5448",
|
|
53
53
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.7",
|
|
54
|
-
"@svgr/webpack": "^6.
|
|
55
|
-
"autoprefixer": "^10.4.
|
|
56
|
-
"babel-loader": "^8.
|
|
54
|
+
"@svgr/webpack": "^6.5.1",
|
|
55
|
+
"autoprefixer": "^10.4.13",
|
|
56
|
+
"babel-loader": "^8.3.0",
|
|
57
57
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
58
58
|
"boxen": "^6.2.1",
|
|
59
59
|
"chalk": "^4.1.2",
|
|
60
60
|
"chokidar": "^3.5.3",
|
|
61
61
|
"clean-css": "^5.3.1",
|
|
62
|
-
"cli-table3": "^0.6.
|
|
62
|
+
"cli-table3": "^0.6.3",
|
|
63
63
|
"combine-promises": "^1.1.0",
|
|
64
64
|
"commander": "^5.1.0",
|
|
65
65
|
"copy-webpack-plugin": "^11.0.0",
|
|
66
|
-
"core-js": "^3.
|
|
67
|
-
"css-loader": "^6.7.
|
|
68
|
-
"css-minimizer-webpack-plugin": "^4.
|
|
69
|
-
"cssnano": "^5.1.
|
|
66
|
+
"core-js": "^3.27.1",
|
|
67
|
+
"css-loader": "^6.7.3",
|
|
68
|
+
"css-minimizer-webpack-plugin": "^4.2.2",
|
|
69
|
+
"cssnano": "^5.1.14",
|
|
70
70
|
"del": "^6.1.1",
|
|
71
|
-
"detect-port": "^1.
|
|
71
|
+
"detect-port": "^1.5.1",
|
|
72
72
|
"escape-html": "^1.0.3",
|
|
73
73
|
"eta": "^1.12.3",
|
|
74
74
|
"file-loader": "^6.2.0",
|
|
@@ -79,43 +79,43 @@
|
|
|
79
79
|
"import-fresh": "^3.3.0",
|
|
80
80
|
"leven": "^3.1.0",
|
|
81
81
|
"lodash": "^4.17.21",
|
|
82
|
-
"mini-css-extract-plugin": "^2.
|
|
83
|
-
"postcss": "^8.4.
|
|
84
|
-
"postcss-loader": "^7.0.
|
|
82
|
+
"mini-css-extract-plugin": "^2.7.2",
|
|
83
|
+
"postcss": "^8.4.21",
|
|
84
|
+
"postcss-loader": "^7.0.2",
|
|
85
85
|
"prompts": "^2.4.2",
|
|
86
86
|
"react-dev-utils": "^12.0.1",
|
|
87
87
|
"react-helmet-async": "^1.3.0",
|
|
88
88
|
"react-loadable": "npm:@docusaurus/react-loadable@5.5.2",
|
|
89
89
|
"react-loadable-ssr-addon-v5-slorber": "^1.0.1",
|
|
90
|
-
"react-router": "^5.3.
|
|
90
|
+
"react-router": "^5.3.4",
|
|
91
91
|
"react-router-config": "^5.1.1",
|
|
92
|
-
"react-router-dom": "^5.3.
|
|
92
|
+
"react-router-dom": "^5.3.4",
|
|
93
93
|
"rtl-detect": "^1.0.4",
|
|
94
|
-
"semver": "^7.3.
|
|
95
|
-
"serve-handler": "^6.1.
|
|
94
|
+
"semver": "^7.3.8",
|
|
95
|
+
"serve-handler": "^6.1.5",
|
|
96
96
|
"shelljs": "^0.8.5",
|
|
97
97
|
"terser-webpack-plugin": "^5.3.6",
|
|
98
|
-
"tslib": "^2.4.
|
|
98
|
+
"tslib": "^2.4.1",
|
|
99
99
|
"update-notifier": "^5.1.0",
|
|
100
100
|
"url-loader": "^4.1.1",
|
|
101
101
|
"wait-on": "^6.0.1",
|
|
102
|
-
"webpack": "^5.
|
|
103
|
-
"webpack-bundle-analyzer": "^4.
|
|
104
|
-
"webpack-dev-server": "^4.11.
|
|
102
|
+
"webpack": "^5.75.0",
|
|
103
|
+
"webpack-bundle-analyzer": "^4.7.0",
|
|
104
|
+
"webpack-dev-server": "^4.11.1",
|
|
105
105
|
"webpack-merge": "^5.8.0",
|
|
106
106
|
"webpackbar": "^5.0.2"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
110
|
-
"@docusaurus/types": "0.0.0-
|
|
109
|
+
"@docusaurus/module-type-aliases": "0.0.0-5448",
|
|
110
|
+
"@docusaurus/types": "0.0.0-5448",
|
|
111
111
|
"@types/detect-port": "^1.3.2",
|
|
112
|
-
"@types/react-dom": "^18.0.
|
|
112
|
+
"@types/react-dom": "^18.0.10",
|
|
113
113
|
"@types/react-router-config": "^5.0.6",
|
|
114
114
|
"@types/rtl-detect": "^1.0.0",
|
|
115
115
|
"@types/serve-handler": "^6.1.1",
|
|
116
116
|
"@types/update-notifier": "^5.1.0",
|
|
117
117
|
"@types/wait-on": "^5.3.1",
|
|
118
|
-
"@types/webpack-bundle-analyzer": "^4.
|
|
118
|
+
"@types/webpack-bundle-analyzer": "^4.6.0",
|
|
119
119
|
"react-test-renderer": "^17.0.2",
|
|
120
120
|
"tmp-promise": "^3.0.3",
|
|
121
121
|
"tree-node-cli": "^1.6.0"
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"engines": {
|
|
128
128
|
"node": ">=16.14"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "7cba37b2d6d6893562d252959f6403e0a974f6fb"
|
|
131
131
|
}
|