@modern-js/devtools-kit 2.41.0 → 2.42.1
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/client.d.ts +25 -25
- package/dist/constants.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/logo.d.ts +1 -1
- package/dist/mount-point.d.ts +5 -5
- package/dist/server.d.ts +14 -14
- package/dist/utils.d.ts +1 -1
- package/package.json +11 -11
package/dist/client.d.ts
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { Entrypoint } from '@modern-js/types/cli';
|
|
2
2
|
import { FileSystemRoutes } from './server';
|
|
3
3
|
export interface ClientFunctions {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
refresh: () => void;
|
|
5
|
+
updateFileSystemRoutes: (param: {
|
|
6
|
+
entrypoint: Entrypoint;
|
|
7
|
+
routes: FileSystemRoutes;
|
|
8
|
+
}) => void;
|
|
9
9
|
}
|
|
10
10
|
export declare class NameDefinition {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
formalName: string;
|
|
12
|
+
casualName: string;
|
|
13
|
+
prefixName: string;
|
|
14
14
|
}
|
|
15
15
|
export interface ShortenAlias {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
replace: string | RegExp;
|
|
17
|
+
to: string;
|
|
18
18
|
}
|
|
19
19
|
export declare class PackageDefinition {
|
|
20
|
-
|
|
20
|
+
appTools: string;
|
|
21
21
|
}
|
|
22
22
|
export declare class AssetDefinition {
|
|
23
|
-
|
|
23
|
+
logo: string;
|
|
24
24
|
}
|
|
25
25
|
export declare class AnnouncementDefinition {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
src: string;
|
|
27
|
+
fallback: string;
|
|
28
28
|
}
|
|
29
29
|
export declare class ClientDefinition {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
name: NameDefinition;
|
|
31
|
+
packages: PackageDefinition;
|
|
32
|
+
assets: AssetDefinition;
|
|
33
|
+
announcement: AnnouncementDefinition;
|
|
34
34
|
}
|
|
35
35
|
export interface IframeTabView {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
type: 'iframe';
|
|
37
|
+
src: string;
|
|
38
38
|
}
|
|
39
39
|
export type CustomTabView = IframeTabView;
|
|
40
40
|
export interface CustomTab {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
41
|
+
name: string;
|
|
42
|
+
title: string;
|
|
43
|
+
view: CustomTabView;
|
|
44
|
+
icon?: string;
|
|
45
|
+
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ROUTE_BASENAME = "/__devtools";
|
|
1
|
+
export declare const ROUTE_BASENAME = "/__devtools";
|
package/dist/index.d.ts
CHANGED
package/dist/logo.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
declare const _default: string;
|
|
2
|
-
export default _default;
|
|
2
|
+
export default _default;
|
package/dist/mount-point.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ClientDefinition } from './client';
|
|
2
2
|
export interface MountPointFunctions {
|
|
3
|
-
|
|
3
|
+
getLocation: () => string;
|
|
4
4
|
}
|
|
5
5
|
export interface SetupClientParams {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
6
|
+
endpoint: string;
|
|
7
|
+
dataSource: string;
|
|
8
|
+
def: ClientDefinition;
|
|
9
|
+
}
|
package/dist/server.d.ts
CHANGED
|
@@ -17,17 +17,17 @@ export type NormalizedBuilderConfig = NormalizedWebpackBuilderConfig | Normalize
|
|
|
17
17
|
export type AppContext = Omit<IAppContext, 'builder' | 'serverInternalPlugins'>;
|
|
18
18
|
export type FileSystemRoutes = RouteLegacy[] | (NestedRouteForCli | PageRoute)[];
|
|
19
19
|
export interface ServerFunctions {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
20
|
+
getFrameworkConfig: () => Promise<FrameworkConfig>;
|
|
21
|
+
getTransformedFrameworkConfig: () => Promise<TransformedFrameworkConfig>;
|
|
22
|
+
getBuilderConfig: () => Promise<BuilderConfig>;
|
|
23
|
+
getTransformedBuilderConfig: () => Promise<NormalizedBuilderConfig>;
|
|
24
|
+
getBundlerConfigs: () => Promise<BundlerConfig[]>;
|
|
25
|
+
getTransformedBundlerConfigs: () => Promise<BundlerConfig[]>;
|
|
26
|
+
getAppContext: () => Promise<AppContext>;
|
|
27
|
+
getFileSystemRoutes: (entryName: string) => Promise<FileSystemRoutes>;
|
|
28
|
+
getBuilderContext: () => Promise<BuilderContext>;
|
|
29
|
+
getDependencies: () => Promise<Record<string, string>>;
|
|
30
|
+
getCompileTimeCost: () => Promise<number>;
|
|
31
|
+
getClientDefinition: () => Promise<ClientDefinition>;
|
|
32
|
+
echo: (content: string) => string;
|
|
33
|
+
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ShortenAlias } from './client';
|
|
2
|
-
export declare function applyShortenAliases(resource: string, aliases?: ShortenAlias[]): string;
|
|
2
|
+
export declare function applyShortenAliases(resource: string, aliases?: ShortenAlias[]): string;
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"modern",
|
|
19
19
|
"modern.js"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.
|
|
21
|
+
"version": "2.42.1",
|
|
22
22
|
"jsnext:source": "./src/index.ts",
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
24
24
|
"main": "./dist/index.js",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"ufo": "^1.3.0",
|
|
49
49
|
"ws": "^8.13.0",
|
|
50
|
-
"@modern-js/types": "2.
|
|
51
|
-
"@modern-js/utils": "2.
|
|
50
|
+
"@modern-js/types": "2.42.1",
|
|
51
|
+
"@modern-js/utils": "2.42.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@swc/helpers": "0.5.3",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"react": "~18.2.0",
|
|
58
58
|
"type-fest": "^4.1.0",
|
|
59
59
|
"typescript": "^5",
|
|
60
|
-
"@modern-js/app-tools": "2.
|
|
61
|
-
"@modern-js/builder-
|
|
62
|
-
"@modern-js/builder-
|
|
63
|
-
"@modern-js/builder-
|
|
64
|
-
"@modern-js/core": "2.
|
|
65
|
-
"@modern-js/module-tools": "2.
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
60
|
+
"@modern-js/app-tools": "2.42.1",
|
|
61
|
+
"@modern-js/builder-webpack-provider": "2.42.1",
|
|
62
|
+
"@modern-js/builder-rspack-provider": "2.42.1",
|
|
63
|
+
"@modern-js/builder-shared": "2.42.1",
|
|
64
|
+
"@modern-js/core": "2.42.1",
|
|
65
|
+
"@modern-js/module-tools": "2.42.1",
|
|
66
|
+
"@modern-js/types": "2.42.1",
|
|
67
|
+
"@scripts/build": "2.42.1"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "~18.2.0"
|