@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micro-zoe/micro-app",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.1",
4
4
  "description": "A lightweight, efficient and powerful micro front-end framework",
5
5
  "private": false,
6
6
  "main": "lib/index.min.js",
@@ -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