dumi 2.4.30 → 2.4.31
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/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 +9 -8
- 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
|
@@ -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.31",
|
|
4
4
|
"description": "📖 Documentation Generator of React Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"generator",
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"@swc/core": "1.9.2",
|
|
69
69
|
"@types/hast": "^2.3.5",
|
|
70
70
|
"@types/mdast": "^3.0.12",
|
|
71
|
-
"@umijs/bundler-utils": "^4.6.
|
|
72
|
-
"@umijs/core": "^4.6.
|
|
73
|
-
"@umijs/utils": "^4.6.
|
|
71
|
+
"@umijs/bundler-utils": "^4.6.65",
|
|
72
|
+
"@umijs/core": "^4.6.65",
|
|
73
|
+
"@umijs/utils": "^4.6.65",
|
|
74
74
|
"animated-scroll-to": "^2.3.0",
|
|
75
75
|
"classnames": "2.3.2",
|
|
76
76
|
"codesandbox-import-utils": "^2.2.3",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"sass": "^1.64.1",
|
|
123
123
|
"sitemap": "^7.1.1",
|
|
124
124
|
"sucrase": "^3.34.0",
|
|
125
|
-
"umi": "^4.6.
|
|
125
|
+
"umi": "^4.6.65",
|
|
126
126
|
"unified": "^10.1.2",
|
|
127
127
|
"unist-util-visit": "^4.1.2",
|
|
128
128
|
"unist-util-visit-parents": "^5.1.3",
|
|
@@ -145,12 +145,13 @@
|
|
|
145
145
|
"@types/react": "^18.2.17",
|
|
146
146
|
"@types/react-copy-to-clipboard": "^5.0.4",
|
|
147
147
|
"@types/react-dom": "^18.2.7",
|
|
148
|
-
"@
|
|
149
|
-
"@umijs/
|
|
148
|
+
"@typescript/native-preview": "7.0.0-dev.20260609.1",
|
|
149
|
+
"@umijs/lint": "^4.6.65",
|
|
150
|
+
"@umijs/plugins": "4.6.65",
|
|
150
151
|
"eslint": "^8.46.0",
|
|
151
152
|
"esno": "^4.7.0",
|
|
152
153
|
"fast-glob": "^3.3.1",
|
|
153
|
-
"father": "^4.6.
|
|
154
|
+
"father": "^4.6.23",
|
|
154
155
|
"git-repo-info": "^2.1.1",
|
|
155
156
|
"highlight-words-core": "^1.2.2",
|
|
156
157
|
"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 {};
|