@modern-js/plugin-garfish 2.65.5 → 2.66.0
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/types/cli/code.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AppTools, AppToolsContext, AppToolsFeatureHooks, NormalizedConfig } from '@modern-js/app-tools';
|
|
2
2
|
import type { Entrypoint } from '@modern-js/types';
|
|
3
3
|
export declare const ENTRY_BOOTSTRAP_FILE_NAME = "bootstrap.jsx";
|
|
4
|
-
export declare const generateCode: (entrypoints: Entrypoint[], appContext: AppToolsContext<
|
|
4
|
+
export declare const generateCode: (entrypoints: Entrypoint[], appContext: AppToolsContext<"shared">, config: NormalizedConfig<AppTools>, hooks: AppToolsFeatureHooks<"shared">) => Promise<void>;
|
|
@@ -8,5 +8,5 @@ export declare const externals: {
|
|
|
8
8
|
export type LifeCycle = CliHookCallbacks;
|
|
9
9
|
type NonInValidAble<T> = T extends null | undefined | false ? never : T;
|
|
10
10
|
export declare function getDefaultMicroFrontedConfig(microFrontend: NonInValidAble<NonNullable<UseConfig['deploy']>['microFrontend']>): any;
|
|
11
|
-
export declare const garfishPlugin: () => CliPluginFuture<AppTools<
|
|
11
|
+
export declare const garfishPlugin: () => CliPluginFuture<AppTools<"shared">>;
|
|
12
12
|
export default garfishPlugin;
|
|
@@ -4,8 +4,8 @@ export declare const index: ({ srcDirectory, internalSrcAlias, metaName, entry,
|
|
|
4
4
|
metaName: string;
|
|
5
5
|
entry: string;
|
|
6
6
|
entryName: string;
|
|
7
|
-
customEntry?: boolean
|
|
8
|
-
customBootstrap?: string | false
|
|
9
|
-
mountId?: string
|
|
10
|
-
appendCode?: string[]
|
|
7
|
+
customEntry?: boolean;
|
|
8
|
+
customBootstrap?: string | false;
|
|
9
|
+
mountId?: string;
|
|
10
|
+
appendCode?: string[];
|
|
11
11
|
}) => string;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="src/global" />
|
|
3
1
|
import { type RenderFunc } from '@meta/runtime/browser';
|
|
4
2
|
import type { Root } from 'react-dom/client';
|
|
5
3
|
export declare function createProvider(id?: string, { customBootstrap, beforeRender, }?: {
|
|
@@ -13,7 +11,7 @@ export declare function createProvider(id?: string, { customBootstrap, beforeRen
|
|
|
13
11
|
basename: string;
|
|
14
12
|
dom: HTMLElement;
|
|
15
13
|
props: any;
|
|
16
|
-
appName?: string
|
|
14
|
+
appName?: string;
|
|
17
15
|
}): Promise<void>;
|
|
18
16
|
destroy({ dom }: {
|
|
19
17
|
dom: HTMLElement;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.66.0",
|
|
19
19
|
"jsnext:source": "./src/cli/index.ts",
|
|
20
20
|
"types": "./dist/types/cli/index.d.ts",
|
|
21
21
|
"typesVersions": {
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
"debug": "4.3.7",
|
|
70
70
|
"garfish": "^1.8.1",
|
|
71
71
|
"react-loadable": "^5.5.0",
|
|
72
|
-
"@modern-js/
|
|
73
|
-
"@modern-js/runtime-utils": "2.
|
|
74
|
-
"@modern-js/
|
|
72
|
+
"@modern-js/plugin-v2": "2.66.0",
|
|
73
|
+
"@modern-js/runtime-utils": "2.66.0",
|
|
74
|
+
"@modern-js/utils": "2.66.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@modern-js/runtime": "^2.
|
|
77
|
+
"@modern-js/runtime": "^2.66.0",
|
|
78
78
|
"react": ">=17",
|
|
79
79
|
"react-dom": ">=17"
|
|
80
80
|
},
|
|
@@ -93,13 +93,13 @@
|
|
|
93
93
|
"react-dom": "^18.3.1",
|
|
94
94
|
"react-router-dom": "6.27.0",
|
|
95
95
|
"typescript": "^5",
|
|
96
|
-
"@modern-js/app-tools": "2.
|
|
97
|
-
"@modern-js/
|
|
98
|
-
"@modern-js/
|
|
99
|
-
"@modern-js/
|
|
100
|
-
"@modern-js/types": "2.
|
|
101
|
-
"@scripts/build": "2.
|
|
102
|
-
"@scripts/jest-config": "2.
|
|
96
|
+
"@modern-js/app-tools": "2.66.0",
|
|
97
|
+
"@modern-js/core": "2.66.0",
|
|
98
|
+
"@modern-js/runtime": "2.66.0",
|
|
99
|
+
"@modern-js/plugin-router-v5": "2.66.0",
|
|
100
|
+
"@modern-js/types": "2.66.0",
|
|
101
|
+
"@scripts/build": "2.66.0",
|
|
102
|
+
"@scripts/jest-config": "2.66.0"
|
|
103
103
|
},
|
|
104
104
|
"sideEffects": false,
|
|
105
105
|
"publishConfig": {
|