@micro-zoe/micro-app 1.0.0-rc.19 → 1.0.0-rc.20
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.esm.js +53 -10
- 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 -2
- package/typings/global.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micro-zoe/micro-app",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.20",
|
|
4
4
|
"description": "A lightweight, efficient and powerful micro front-end framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "lib/index.min.js",
|
|
@@ -126,7 +126,6 @@
|
|
|
126
126
|
"node-fetch": "~2.6.1",
|
|
127
127
|
"npm-run-all": "~4.1.5",
|
|
128
128
|
"pretty-bytes": "~5.5.0",
|
|
129
|
-
"react": "~17.0.2",
|
|
130
129
|
"rollup": "~2.35.1",
|
|
131
130
|
"rollup-plugin-terser": "~7.0.2",
|
|
132
131
|
"ts-jest": "~26.5.6",
|
package/typings/global.d.ts
CHANGED
|
@@ -188,6 +188,7 @@ declare module '@micro-app/types' {
|
|
|
188
188
|
routerMode: string // virtual router mode
|
|
189
189
|
isPrefetch: boolean // whether prefetch app, default is false
|
|
190
190
|
isPrerender: boolean
|
|
191
|
+
isReloading?: boolean
|
|
191
192
|
prefetchLevel?: number
|
|
192
193
|
// defaultPage: string // default page when mount
|
|
193
194
|
// baseroute: string // route prefix, default is ''
|
|
@@ -311,6 +312,7 @@ declare module '@micro-app/types' {
|
|
|
311
312
|
loader?: (code: string, url: string) => string
|
|
312
313
|
// html processor
|
|
313
314
|
processHtml?: (code: string, url: string) => string
|
|
315
|
+
aHrefResolver?: (hrefValue: string, appName: string, appUrl: string) => string
|
|
314
316
|
}>
|
|
315
317
|
}
|
|
316
318
|
}
|