@micro-zoe/micro-app 0.7.0 → 0.8.2
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/README.md +1 -1
- package/README.zh-cn.md +1 -1
- package/lib/index.d.ts +12 -8
- package/lib/index.esm.js +2349 -2141
- 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 +3 -2
package/README.md
CHANGED
|
@@ -152,7 +152,7 @@ For more commands, see [DEVELP](https://github.com/micro-zoe/micro-app/blob/mast
|
|
|
152
152
|
</details>
|
|
153
153
|
|
|
154
154
|
# Contributors
|
|
155
|
-
<a href="https://github.com/micro-zoe/micro-app/graphs/contributors"><img src="
|
|
155
|
+
<a href="https://github.com/micro-zoe/micro-app/graphs/contributors"><img src="https://micro-zoe.com/contributors.svg?height=55&people=11" /></a>
|
|
156
156
|
<!-- opencollective is inaccurate -->
|
|
157
157
|
<!-- <a href="https://github.com/micro-zoe/micro-app/graphs/contributors"><img src="https://opencollective.com/micro-app/contributors.svg?width=890&button=false" /></a> -->
|
|
158
158
|
|
package/README.zh-cn.md
CHANGED
|
@@ -153,7 +153,7 @@ yarn start # 访问 http://localhost:3000
|
|
|
153
153
|
</details>
|
|
154
154
|
|
|
155
155
|
# 贡献者们
|
|
156
|
-
<a href="https://github.com/micro-zoe/micro-app/graphs/contributors"><img src="
|
|
156
|
+
<a href="https://github.com/micro-zoe/micro-app/graphs/contributors"><img src="https://micro-zoe.com/contributors.svg?height=55&people=11" /></a>
|
|
157
157
|
<!-- opencollective is inaccurate -->
|
|
158
158
|
<!-- <a href="https://github.com/micro-zoe/micro-app/graphs/contributors"><img src="https://opencollective.com/micro-app/contributors.svg?width=890&button=false" /></a> -->
|
|
159
159
|
|
package/lib/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ declare module '@micro-zoe/micro-app/micro_app' {
|
|
|
16
16
|
import { EventCenterForBaseApp } from '@micro-zoe/micro-app/interact';
|
|
17
17
|
/**
|
|
18
18
|
* if app not prefetch & not unmount, then app is active
|
|
19
|
-
* @param excludeHiddenApp exclude hidden keep-alive app
|
|
19
|
+
* @param excludeHiddenApp exclude hidden keep-alive app, default is false
|
|
20
20
|
* @returns active apps
|
|
21
21
|
*/
|
|
22
22
|
export function getActiveApps(excludeHiddenApp?: boolean): string[];
|
|
@@ -26,7 +26,7 @@ declare module '@micro-zoe/micro-app/micro_app' {
|
|
|
26
26
|
clearAliveState?: boolean;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* unmount app by
|
|
29
|
+
* unmount app by appName
|
|
30
30
|
* @param appName
|
|
31
31
|
* @param options unmountAppParams
|
|
32
32
|
* @returns Promise<void>
|
|
@@ -148,9 +148,9 @@ declare module '@micro-zoe/micro-app/libs/utils' {
|
|
|
148
148
|
/**
|
|
149
149
|
* Get the folder where the link resource is located,
|
|
150
150
|
* which is used to complete the relative address in the css
|
|
151
|
-
* @param
|
|
151
|
+
* @param linkPath full link address
|
|
152
152
|
*/
|
|
153
|
-
export function getLinkFileDir(
|
|
153
|
+
export function getLinkFileDir(linkPath: string): string;
|
|
154
154
|
/**
|
|
155
155
|
* promise stream
|
|
156
156
|
* @param promiseList promise list
|
|
@@ -186,6 +186,10 @@ declare module '@micro-zoe/micro-app/libs/utils' {
|
|
|
186
186
|
* @param target app container
|
|
187
187
|
*/
|
|
188
188
|
export function getRootContainer(target: HTMLElement | ShadowRoot): HTMLElement;
|
|
189
|
+
/**
|
|
190
|
+
* trim start & end
|
|
191
|
+
*/
|
|
192
|
+
export function trim(str: string): string;
|
|
189
193
|
}
|
|
190
194
|
|
|
191
195
|
declare module '@micro-zoe/micro-app/interact' {
|
|
@@ -284,14 +288,14 @@ declare module '@micro-zoe/micro-app/interact' {
|
|
|
284
288
|
}
|
|
285
289
|
/**
|
|
286
290
|
* Record UMD function before exec umdHookMount
|
|
287
|
-
* @param
|
|
291
|
+
* @param microAppEventCenter
|
|
288
292
|
*/
|
|
289
|
-
export function recordDataCenterSnapshot(
|
|
293
|
+
export function recordDataCenterSnapshot(microAppEventCenter: EventCenterForMicroApp): void;
|
|
290
294
|
/**
|
|
291
295
|
* Rebind the UMD function of the record before remount
|
|
292
|
-
* @param
|
|
296
|
+
* @param microAppEventCenter instance of EventCenterForMicroApp
|
|
293
297
|
*/
|
|
294
|
-
export function rebuildDataCenterSnapshot(
|
|
298
|
+
export function rebuildDataCenterSnapshot(microAppEventCenter: EventCenterForMicroApp): void;
|
|
295
299
|
export {};
|
|
296
300
|
}
|
|
297
301
|
|