@micro-zoe/micro-app 1.0.0-beta.2 → 1.0.0-beta.4
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 +432 -241
- 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 +8 -0
package/package.json
CHANGED
package/typings/global.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ declare module '@micro-app/types' {
|
|
|
52
52
|
keepRouteState: boolean
|
|
53
53
|
destroy: boolean
|
|
54
54
|
clearData: boolean
|
|
55
|
+
useMemoryRouter: boolean
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
interface releaseGlobalEffectParams {
|
|
@@ -192,8 +193,15 @@ declare module '@micro-app/types' {
|
|
|
192
193
|
// get app state
|
|
193
194
|
getAppState (): string
|
|
194
195
|
|
|
196
|
+
// get keep-alive state
|
|
195
197
|
getKeepAliveState(): string | null
|
|
196
198
|
|
|
199
|
+
// is app unmounted
|
|
200
|
+
isUnmounted (): boolean
|
|
201
|
+
|
|
202
|
+
// is app already hidden
|
|
203
|
+
isHidden (): boolean
|
|
204
|
+
|
|
197
205
|
// actions for completely destroy
|
|
198
206
|
actionsForCompletelyDestroy (): void
|
|
199
207
|
|