@micro-zoe/micro-app 1.0.0-alpha.0 → 1.0.0-alpha.1
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 +268 -115
- 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 +15 -1
package/package.json
CHANGED
package/typings/global.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare module '@micro-app/types' {
|
|
|
15
15
|
useMemoryRouter: boolean,
|
|
16
16
|
defaultPage: string,
|
|
17
17
|
): void
|
|
18
|
-
stop (keepRouteState: boolean): void
|
|
18
|
+
stop (keepRouteState: boolean, clearEventSource: boolean): void
|
|
19
19
|
// record umd snapshot before the first execution of umdHookMount
|
|
20
20
|
recordUmdSnapshot (): void
|
|
21
21
|
// rebuild umd snapshot before remount umd app
|
|
@@ -24,6 +24,20 @@ declare module '@micro-app/types' {
|
|
|
24
24
|
removeRouteInfoForKeepAliveApp (): void
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
interface SandBoxAdapter {
|
|
28
|
+
// Variables that can only assigned to rawWindow
|
|
29
|
+
escapeSetterKeyList: PropertyKey[]
|
|
30
|
+
|
|
31
|
+
// Variables that can escape to rawWindow
|
|
32
|
+
staticEscapeProperties: PropertyKey[]
|
|
33
|
+
|
|
34
|
+
// Variables that scoped in child app
|
|
35
|
+
staticScopeProperties: PropertyKey[]
|
|
36
|
+
|
|
37
|
+
// adapter for react
|
|
38
|
+
// injectReactHRMProperty (): void
|
|
39
|
+
}
|
|
40
|
+
|
|
27
41
|
type sourceLinkInfo = {
|
|
28
42
|
code: string // code
|
|
29
43
|
placeholder?: Comment | null // placeholder comment
|