@micro-zoe/micro-app 1.0.0-beta.1 → 1.0.0-beta.3
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/lib/index.d.ts +1 -1
- package/lib/index.esm.js +1647 -1523
- package/lib/index.esm.js.map +1 -1
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.map +1 -1
- package/lib/index.umd.js +1 -1
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/typings/global.d.ts +10 -16
package/package.json
CHANGED
package/typings/global.d.ts
CHANGED
|
@@ -32,25 +32,11 @@ declare module '@micro-app/types' {
|
|
|
32
32
|
args: any[],
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
interface
|
|
36
|
-
umdMode: boolean,
|
|
37
|
-
isPrerender: boolean,
|
|
38
|
-
keepAlive: boolean,
|
|
39
|
-
destroy: boolean,
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
interface EffectController {
|
|
35
|
+
interface CommonEffectHook {
|
|
43
36
|
reset(): void
|
|
44
37
|
record(): void
|
|
45
38
|
rebuild(): void
|
|
46
|
-
release(
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface CommonIframeEffect {
|
|
50
|
-
reset(): void
|
|
51
|
-
record(): void
|
|
52
|
-
rebuild(): void
|
|
53
|
-
release(umdMode?: boolean, preRender?: boolean): void
|
|
39
|
+
release(clearTimer?: boolean): void
|
|
54
40
|
}
|
|
55
41
|
|
|
56
42
|
interface SandBoxStartParams {
|
|
@@ -69,6 +55,7 @@ declare module '@micro-app/types' {
|
|
|
69
55
|
}
|
|
70
56
|
|
|
71
57
|
interface releaseGlobalEffectParams {
|
|
58
|
+
umdMode?: boolean,
|
|
72
59
|
clearData?: boolean,
|
|
73
60
|
isPrerender?: boolean,
|
|
74
61
|
keepAlive?: boolean,
|
|
@@ -205,8 +192,15 @@ declare module '@micro-app/types' {
|
|
|
205
192
|
// get app state
|
|
206
193
|
getAppState (): string
|
|
207
194
|
|
|
195
|
+
// get keep-alive state
|
|
208
196
|
getKeepAliveState(): string | null
|
|
209
197
|
|
|
198
|
+
// is app unmounted
|
|
199
|
+
isUnmounted (): boolean
|
|
200
|
+
|
|
201
|
+
// is app already hidden
|
|
202
|
+
isHidden (): boolean
|
|
203
|
+
|
|
210
204
|
// actions for completely destroy
|
|
211
205
|
actionsForCompletelyDestroy (): void
|
|
212
206
|
|