@micro-zoe/micro-app 1.0.0-rc.1 → 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 +24 -1
- package/lib/index.esm.js +462 -303
- 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 -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 {
|
|
@@ -349,6 +355,7 @@ declare module '@micro-app/types' {
|
|
|
349
355
|
globalAssets?: globalAssetsType,
|
|
350
356
|
excludeAssetFilter?: (assetUrl: string) => boolean
|
|
351
357
|
getRootElementParentNode?: (node: Node, appName: AppName) => void
|
|
358
|
+
customProxyDocumentProps?: Map<string | number | symbol, (value: unknown) => void>
|
|
352
359
|
}
|
|
353
360
|
|
|
354
361
|
// MicroApp config
|
|
@@ -433,7 +440,7 @@ declare module '@micro-app/types' {
|
|
|
433
440
|
replace?: boolean
|
|
434
441
|
}
|
|
435
442
|
|
|
436
|
-
type navigationMethod = (to: RouterTarget) => void
|
|
443
|
+
type navigationMethod = (to: RouterTarget) => Promise<void>
|
|
437
444
|
|
|
438
445
|
interface AccurateGuard {
|
|
439
446
|
[appName: string]: (to: GuardLocation, from: GuardLocation) => void
|