dumi 2.4.34 → 2.4.35

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.
@@ -13,8 +13,8 @@ export declare function getExampleAssets(): ExampleAsset[];
13
13
  * internal function to add meta for atom
14
14
  */
15
15
  export declare function addAtomMeta(atomId: string, data: Partial<AtomAsset>): void;
16
+ export default _default;
16
17
  /**
17
18
  * plugin for generate assets.json
18
19
  */
19
- declare const _default: (api: IApi) => void;
20
- export default _default;
20
+ declare function _default(api: IApi): void;
@@ -1,3 +1,3 @@
1
1
  import type { IApi } from '../types';
2
- declare const _default: (api: IApi) => void;
3
2
  export default _default;
3
+ declare function _default(api: IApi): void;
@@ -1,4 +1,4 @@
1
1
  import type { IApi, IDumiTechStack } from '../../types';
2
2
  export declare const techStacks: IDumiTechStack[];
3
- declare const _default: (api: IApi) => void;
4
3
  export default _default;
4
+ declare function _default(api: IApi): void;
@@ -1,3 +1,3 @@
1
1
  import type { IApi } from '../../types';
2
- declare const _default: (api: IApi) => void;
3
2
  export default _default;
3
+ declare function _default(api: IApi): void;
@@ -4,8 +4,8 @@ import type { IApi } from '../types';
4
4
  * and make sure there has no multiple instances problem (such as react)
5
5
  */
6
6
  export declare function safeExcludeInMFSU(api: IApi, excludes: RegExp[]): void;
7
+ export default _default;
7
8
  /**
8
9
  * plugin for derive default behaviors from umi
9
10
  */
10
- declare const _default: (api: IApi) => void;
11
- export default _default;
11
+ declare function _default(api: IApi): void;
@@ -1,3 +1,3 @@
1
1
  import type { IApi } from '../types';
2
- declare const _default: (api: IApi) => void;
3
2
  export default _default;
3
+ declare function _default(api: IApi): void;
@@ -1,3 +1,3 @@
1
1
  import type { IApi } from '../types';
2
- declare const _default: (api: IApi) => void;
3
2
  export default _default;
3
+ declare function _default(api: IApi): void;
@@ -1,3 +1,3 @@
1
1
  import type { IApi } from '../types';
2
- declare const _default: (api: IApi) => void;
3
2
  export default _default;
3
+ declare function _default(api: IApi): void;
@@ -1,3 +1,3 @@
1
1
  import type { IApi } from '../types';
2
- declare const _default: (api: IApi) => void;
3
2
  export default _default;
3
+ declare function _default(api: IApi): void;
@@ -1,5 +1,5 @@
1
1
  import type { IApi } from '../types';
2
2
  export declare const TABS_META_PATH = "dumi/meta/tabs.ts";
3
3
  export declare const ATOMS_META_PATH = "dumi/meta/atoms.ts";
4
- declare const _default: (api: IApi) => void;
5
4
  export default _default;
5
+ declare function _default(api: IApi): void;
@@ -1,3 +1,3 @@
1
1
  import type { IApi } from '../types';
2
- declare const _default: (api: IApi) => void;
3
2
  export default _default;
3
+ declare function _default(api: IApi): void;
@@ -1,3 +1,3 @@
1
1
  import type { IApi } from '../types';
2
- declare const _default: (api: IApi) => void;
3
2
  export default _default;
3
+ declare function _default(api: IApi): void;
@@ -1,7 +1,7 @@
1
1
  import type { IApi } from 'umi';
2
+ export default _default;
2
3
  /**
3
4
  * plugin for register the doc side-effects webpack plugin
4
5
  * to avoid tree-shaking for .umi & .dumi/theme directory if package.json has sideEffects: false
5
6
  */
6
- declare const _default: (api: IApi) => void;
7
- export default _default;
7
+ declare function _default(api: IApi): void;
@@ -1,3 +1,3 @@
1
1
  import type { IApi } from '../types';
2
- declare const _default: (api: IApi) => void;
3
2
  export default _default;
3
+ declare function _default(api: IApi): void;
@@ -10,8 +10,8 @@ export interface IContentTab {
10
10
  export declare function isTabRouteFile(file: string): boolean;
11
11
  export declare function getTabKeyFromFile(file: string): string;
12
12
  export declare function getHostForTabRouteFile(file: string): string;
13
+ export default _default;
13
14
  /**
14
15
  * plugin for add conventional tab and plugin tab into page content
15
16
  */
16
- declare const _default: (api: IApi) => void;
17
- export default _default;
17
+ declare function _default(api: IApi): void;
@@ -1,3 +1,3 @@
1
1
  import type { IApi } from '../../types';
2
- declare const _default: (api: IApi) => void;
3
2
  export default _default;
3
+ declare function _default(api: IApi): void;
@@ -51,5 +51,5 @@ export interface IThemeLoadResult {
51
51
  */
52
52
  plugin?: string;
53
53
  }
54
- declare const _default: (dir: string) => IThemeLoadResult;
55
54
  export default _default;
55
+ declare function _default(dir: string): IThemeLoadResult;
@@ -62,8 +62,8 @@ export interface IMdTransformerResult {
62
62
  content: string;
63
63
  meta: Data;
64
64
  }
65
- declare const _default: (raw: string, opts: IMdTransformerOptions) => Promise<{
65
+ export default _default;
66
+ declare function _default(raw: string, opts: IMdTransformerOptions): Promise<{
66
67
  content: string;
67
68
  meta: Data;
68
69
  }>;
69
- export default _default;
package/dist/preset.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { IApi } from './types';
2
- declare const _default: (api: IApi) => {
2
+ export default _default;
3
+ declare function _default(api: IApi): {
3
4
  plugins: string[];
4
5
  };
5
- export default _default;
@@ -1,3 +1,3 @@
1
1
  import type { IApi } from './types';
2
- declare const _default: (api: IApi) => void;
3
2
  export default _default;
3
+ declare function _default(api: IApi): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dumi",
3
- "version": "2.4.34",
3
+ "version": "2.4.35",
4
4
  "description": "📖 Documentation Generator of React Component",
5
5
  "keywords": [
6
6
  "generator",
@@ -69,9 +69,9 @@
69
69
  "@swc/core": "1.9.2",
70
70
  "@types/hast": "^2.3.5",
71
71
  "@types/mdast": "^3.0.12",
72
- "@umijs/bundler-utils": "^4.6.66",
73
- "@umijs/core": "^4.6.66",
74
- "@umijs/utils": "^4.6.66",
72
+ "@umijs/bundler-utils": "^4.6.67",
73
+ "@umijs/core": "^4.6.67",
74
+ "@umijs/utils": "^4.6.67",
75
75
  "animated-scroll-to": "^2.3.0",
76
76
  "classnames": "2.3.2",
77
77
  "codesandbox-import-utils": "^2.2.3",
@@ -123,7 +123,7 @@
123
123
  "sass": "^1.64.1",
124
124
  "sitemap": "^7.1.1",
125
125
  "sucrase": "^3.34.0",
126
- "umi": "^4.6.66",
126
+ "umi": "^4.6.67",
127
127
  "unified": "^10.1.2",
128
128
  "unist-util-visit": "^4.1.2",
129
129
  "unist-util-visit-parents": "^5.1.3",
@@ -146,9 +146,9 @@
146
146
  "@types/react": "^18.2.17",
147
147
  "@types/react-copy-to-clipboard": "^5.0.4",
148
148
  "@types/react-dom": "^18.2.7",
149
- "@typescript/native-preview": "7.0.0-dev.20260609.1",
150
- "@umijs/lint": "^4.6.66",
151
- "@umijs/plugins": "4.6.66",
149
+ "@typescript/native-preview": "7.0.0-dev.20260623.1",
150
+ "@umijs/lint": "^4.6.67",
151
+ "@umijs/plugins": "4.6.67",
152
152
  "eslint": "^8.46.0",
153
153
  "esno": "^4.7.0",
154
154
  "fast-glob": "^3.3.1",
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps } from 'react';
2
2
  import React from 'react';
3
3
  import './index.less';
4
- declare const _default: (props: ComponentProps<'div'>) => React.JSX.Element;
5
4
  export default _default;
5
+ declare function _default(props: ComponentProps<'div'>): React.JSX.Element;