@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/lib/index.d.ts +10 -1
- package/lib/index.esm.js +247 -122
- 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 +7 -1
package/package.json
CHANGED
package/typings/global.d.ts
CHANGED
|
@@ -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
|