@micro-zoe/micro-app 1.0.0-rc.2 → 1.0.0-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micro-zoe/micro-app",
3
- "version": "1.0.0-rc.2",
3
+ "version": "1.0.0-rc.3",
4
4
  "description": "A lightweight, efficient and powerful micro front-end framework",
5
5
  "private": false,
6
6
  "main": "lib/index.min.js",
@@ -87,6 +87,8 @@ declare module '@micro-app/types' {
87
87
  escapeKeys: Set<PropertyKey>
88
88
  // Properties newly added to microAppWindow
89
89
  injectedKeys: Set<PropertyKey>
90
+ // sandbox ready state
91
+ sandboxReady: Promise<void>
90
92
  // proxy(microWindow)
91
93
  proxyWindow: WindowProxy
92
94
  // child window
@@ -108,6 +110,7 @@ declare module '@micro-app/types' {
108
110
  patchStaticElement (container: Element | ShadowRoot): void
109
111
  actionBeforeExecScripts (container: Element | ShadowRoot): void
110
112
  deleteIframeElement? (): void
113
+ setStaticAppState (state: string): void
111
114
  }
112
115
 
113
116
  type LinkSourceInfo = {
@@ -224,6 +227,9 @@ declare module '@micro-app/types' {
224
227
 
225
228
  // show app when connectedCallback with keep-alive
226
229
  showKeepAliveApp (container: HTMLElement | ShadowRoot): void
230
+
231
+ // get app lifecycle state
232
+ getLifeCycleState (): string
227
233
  }
228
234
 
229
235
  interface prefetchParam {
@@ -434,7 +440,7 @@ declare module '@micro-app/types' {
434
440
  replace?: boolean
435
441
  }
436
442
 
437
- type navigationMethod = (to: RouterTarget) => void
443
+ type navigationMethod = (to: RouterTarget) => Promise<void>
438
444
 
439
445
  interface AccurateGuard {
440
446
  [appName: string]: (to: GuardLocation, from: GuardLocation) => void