dumi 2.4.30 → 2.4.32
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/compiled/crates/swc_plugin_react_demo.wasm +0 -0
- package/dist/assetParsers/block.d.ts +1 -1
- package/dist/client/theme-api/context.d.ts +1 -2
- package/dist/client/theme-api/useRenderer.d.ts +0 -1
- package/dist/client/theme-api/useRouteMeta.d.ts +4 -4
- package/dist/client/theme-api/utils.d.ts +7 -7
- package/dist/features/assets.d.ts +1 -1
- package/dist/features/autoAlias.d.ts +1 -1
- package/dist/features/compile/index.d.ts +1 -1
- package/dist/features/compile/makoHooks.d.ts +2 -3
- package/dist/features/compile/utoopackLoaders.d.ts +1 -1
- package/dist/features/configPlugins/index.d.ts +1 -1
- package/dist/features/derivative.d.ts +1 -1
- package/dist/features/exportStatic.d.ts +1 -1
- package/dist/features/exports.d.ts +1 -1
- package/dist/features/locales.d.ts +1 -1
- package/dist/features/meta.d.ts +1 -1
- package/dist/features/parser.d.ts +1 -1
- package/dist/features/routes.d.ts +1 -1
- package/dist/features/sitemap.d.ts +1 -1
- package/dist/features/tabs.d.ts +1 -1
- package/dist/features/theme/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/loaders/demo/index.d.ts +1 -1
- package/dist/loaders/markdown/index.d.ts +1 -1
- package/dist/loaders/markdown/transformer/index.d.ts +3 -3
- package/dist/loaders/markdown/transformer/remarkBreaks.d.ts +1 -1
- package/dist/preset.d.ts +1 -1
- package/dist/techStacks/react.d.ts +1 -1
- package/dist/types.d.ts +6 -6
- package/dist/utils.d.ts +0 -1
- package/package.json +11 -9
- package/theme-default/slots/SearchBar/Input.d.ts +1 -1
- package/theme-default/slots/SocialIcon/index.d.ts +1 -1
- package/theme-default/slots/SourceCodeEditor/index.d.ts +0 -1
|
Binary file
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { PICKED_PKG_FIELDS } from "../../constants";
|
|
1
|
+
import type { PICKED_PKG_FIELDS } from '@/constants';
|
|
3
2
|
import type { AtomComponentAsset } from 'dumi-assets-types';
|
|
4
3
|
import type { IDemoData, ILocalesConfig, IThemeConfig } from './types';
|
|
5
4
|
export interface ISiteContext {
|
|
@@ -5,11 +5,11 @@ import type { IRouteMeta } from './types';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const useMatchedRoute: () => {
|
|
7
7
|
[key: string]: any;
|
|
8
|
-
path?: string
|
|
9
|
-
parentId?: string
|
|
10
|
-
meta?: IRouteMeta
|
|
8
|
+
path?: string;
|
|
9
|
+
parentId?: string;
|
|
10
|
+
meta?: IRouteMeta;
|
|
11
11
|
id: string;
|
|
12
|
-
redirect?: string
|
|
12
|
+
redirect?: string;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
15
|
* hook for get matched route meta
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginManager } from 'dumi';
|
|
2
|
-
import {
|
|
2
|
+
import { useLayoutEffect } from 'react';
|
|
3
3
|
import type { AgnosticComponentModule, IDemoData, ILocale, INav, INavItem, IRouteMeta, IRoutesById, IUserNavValue } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* private instance, do not use it in your code
|
|
@@ -13,19 +13,19 @@ export declare const useLocaleDocRoutes: () => IRoutesById;
|
|
|
13
13
|
* @returns code string
|
|
14
14
|
*/
|
|
15
15
|
export declare const genReactRenderCode: (version: string) => string;
|
|
16
|
-
export declare const useIsomorphicLayoutEffect: typeof
|
|
16
|
+
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
17
17
|
/**
|
|
18
18
|
* common comparer for sidebar/nav items
|
|
19
19
|
*/
|
|
20
20
|
export declare const useRouteDataComparer: <T extends {
|
|
21
|
-
order?: number
|
|
22
|
-
link?: string
|
|
23
|
-
path?: string
|
|
24
|
-
title?: string
|
|
21
|
+
order?: number;
|
|
22
|
+
link?: string;
|
|
23
|
+
path?: string;
|
|
24
|
+
title?: string;
|
|
25
25
|
}>() => (a: T, b: T) => number;
|
|
26
26
|
/**
|
|
27
27
|
* common util for pick meta to sort sidebar/nav items
|
|
28
28
|
*/
|
|
29
|
-
export declare const pickRouteSortMeta: (original: Partial<Pick<INavItem, 'order' | 'title'>>, field: 'nav' | 'nav.second' | 'group', fm: IRouteMeta['frontmatter']) => Partial<Pick<INavItem, "
|
|
29
|
+
export declare const pickRouteSortMeta: (original: Partial<Pick<INavItem, 'order' | 'title'>>, field: 'nav' | 'nav.second' | 'group', fm: IRouteMeta['frontmatter']) => Partial<Pick<INavItem, "order" | "title">>;
|
|
30
30
|
export declare function getLocaleNav(nav: IUserNavValue | INav, locale: ILocale): import("./types").IUserNavItems;
|
|
31
31
|
export declare function getAgnosticComponentModule(component: IDemoData['component']): Promise<AgnosticComponentModule>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import type { IApi } from "../../types";
|
|
1
|
+
import type { IApi } from '../../types';
|
|
3
2
|
export declare const getLoadHook: (api: IApi) => (filePath: string) => Promise<{
|
|
4
3
|
content: Buffer | null;
|
|
5
|
-
type: "css" | "
|
|
4
|
+
type: "css" | "js" | "jsx";
|
|
6
5
|
} | {
|
|
7
6
|
content: string;
|
|
8
7
|
type: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IApi, IDumiTechStack } from
|
|
1
|
+
import type { IApi, IDumiTechStack } from '../../types';
|
|
2
2
|
export declare const UTOOPACK_LOADER_CTX_KEY = "__dumiLoaderContextPath";
|
|
3
3
|
export declare const LOADER_CTX_FILENAME = "dumi-loader-ctx.cjs";
|
|
4
4
|
export declare function buildLoaderContextContent(techStacks: IDumiTechStack[], builtins?: Record<string, {
|
package/dist/features/meta.d.ts
CHANGED
package/dist/features/tabs.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IDumiTechStack, IDumiTechStackRuntimeOpts, IDumiUserConfig } from
|
|
1
|
+
import type { IDumiTechStack, IDumiTechStackRuntimeOpts, IDumiUserConfig } from './types';
|
|
2
2
|
declare let unistUtilVisit: typeof import('unist-util-visit');
|
|
3
3
|
export * from 'umi';
|
|
4
4
|
export { getProjectRoot } from './utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IThemeLoadResult } from
|
|
1
|
+
import type { IThemeLoadResult } from '../../features/theme/loader';
|
|
2
2
|
import { type IMdTransformerOptions, type IMdTransformerResult } from './transformer';
|
|
3
3
|
interface IMdLoaderDefaultModeOptions extends Omit<IMdTransformerOptions, 'fileAbsPath'> {
|
|
4
4
|
mode?: 'markdown';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IParsedBlockAsset } from
|
|
2
|
-
import type { ILocalesConfig, IRouteMeta } from
|
|
3
|
-
import type { IApi, IDumiConfig, IDumiTechStack } from
|
|
1
|
+
import type { IParsedBlockAsset } from '../../../assetParsers/block';
|
|
2
|
+
import type { ILocalesConfig, IRouteMeta } from '@/client/theme-api/types';
|
|
3
|
+
import type { IApi, IDumiConfig, IDumiTechStack } from '../../../types';
|
|
4
4
|
import { type ResolveOptions } from 'enhanced-resolve';
|
|
5
5
|
import type { IRoute } from 'umi';
|
|
6
6
|
import type { Data } from 'vfile';
|
package/dist/preset.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BaseAtomAssetsParser as IAtomAssetsParser } from
|
|
2
|
-
import type { IParsedBlockAsset } from
|
|
3
|
-
import type { IDumiDemoProps } from
|
|
4
|
-
import type { ILocalesConfig, IThemeConfig } from
|
|
5
|
-
import type { IContentTab } from
|
|
6
|
-
import type { IThemeLoadResult } from
|
|
1
|
+
import type { BaseAtomAssetsParser as IAtomAssetsParser } from './assetParsers/BaseParser';
|
|
2
|
+
import type { IParsedBlockAsset } from './assetParsers/block';
|
|
3
|
+
import type { IDumiDemoProps } from '@/client/theme-api/DumiDemo';
|
|
4
|
+
import type { ILocalesConfig, IThemeConfig } from '@/client/theme-api/types';
|
|
5
|
+
import type { IContentTab } from './features/tabs';
|
|
6
|
+
import type { IThemeLoadResult } from './features/theme/loader';
|
|
7
7
|
import { OnLoadArgs, OnLoadResult } from '@umijs/bundler-utils/compiled/esbuild';
|
|
8
8
|
import type { IModify } from '@umijs/core';
|
|
9
9
|
import type { AssetsPackage, ExampleBlockAsset } from 'dumi-assets-types';
|
package/dist/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dumi",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.32",
|
|
4
4
|
"description": "📖 Documentation Generator of React Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"generator",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"jamstack",
|
|
12
12
|
"markdown",
|
|
13
13
|
"components",
|
|
14
|
-
"documentation"
|
|
14
|
+
"documentation",
|
|
15
|
+
"utoopack"
|
|
15
16
|
],
|
|
16
17
|
"homepage": "https://d.umijs.org",
|
|
17
18
|
"bugs": {
|
|
@@ -68,9 +69,9 @@
|
|
|
68
69
|
"@swc/core": "1.9.2",
|
|
69
70
|
"@types/hast": "^2.3.5",
|
|
70
71
|
"@types/mdast": "^3.0.12",
|
|
71
|
-
"@umijs/bundler-utils": "^4.6.
|
|
72
|
-
"@umijs/core": "^4.6.
|
|
73
|
-
"@umijs/utils": "^4.6.
|
|
72
|
+
"@umijs/bundler-utils": "^4.6.66",
|
|
73
|
+
"@umijs/core": "^4.6.66",
|
|
74
|
+
"@umijs/utils": "^4.6.66",
|
|
74
75
|
"animated-scroll-to": "^2.3.0",
|
|
75
76
|
"classnames": "2.3.2",
|
|
76
77
|
"codesandbox-import-utils": "^2.2.3",
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
"sass": "^1.64.1",
|
|
123
124
|
"sitemap": "^7.1.1",
|
|
124
125
|
"sucrase": "^3.34.0",
|
|
125
|
-
"umi": "^4.6.
|
|
126
|
+
"umi": "^4.6.66",
|
|
126
127
|
"unified": "^10.1.2",
|
|
127
128
|
"unist-util-visit": "^4.1.2",
|
|
128
129
|
"unist-util-visit-parents": "^5.1.3",
|
|
@@ -145,12 +146,13 @@
|
|
|
145
146
|
"@types/react": "^18.2.17",
|
|
146
147
|
"@types/react-copy-to-clipboard": "^5.0.4",
|
|
147
148
|
"@types/react-dom": "^18.2.7",
|
|
148
|
-
"@
|
|
149
|
-
"@umijs/
|
|
149
|
+
"@typescript/native-preview": "7.0.0-dev.20260609.1",
|
|
150
|
+
"@umijs/lint": "^4.6.66",
|
|
151
|
+
"@umijs/plugins": "4.6.66",
|
|
150
152
|
"eslint": "^8.46.0",
|
|
151
153
|
"esno": "^4.7.0",
|
|
152
154
|
"fast-glob": "^3.3.1",
|
|
153
|
-
"father": "^4.6.
|
|
155
|
+
"father": "^4.6.23",
|
|
154
156
|
"git-repo-info": "^2.1.1",
|
|
155
157
|
"highlight-words-core": "^1.2.2",
|
|
156
158
|
"husky": "^8.0.3",
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
type NativeInputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
3
3
|
export declare const Input: React.ForwardRefExoticComponent<{
|
|
4
4
|
onChange: (keywords: string) => void;
|
|
5
|
-
} & Pick<NativeInputProps, "
|
|
5
|
+
} & Pick<NativeInputProps, "onBlur" | "onFocus" | "onMouseEnter"> & React.RefAttributes<HTMLInputElement>>;
|
|
6
6
|
export {};
|