@micro-zoe/micro-app 1.0.0-beta.5 → 1.0.0-beta.6
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 +2 -2
- package/lib/index.d.ts +3 -3
- package/lib/index.esm.js +2983 -2889
- 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 +3 -3
- package/typings/global.d.ts +51 -32
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ It is the lowest cost framework for accessing micro front-end, and provides a se
|
|
|
35
35
|
micro-app has no restrictions on the front-end framework, and any framework can be used as a base application to embed any type of micro application of the framework.
|
|
36
36
|
|
|
37
37
|
# How to use
|
|
38
|
-
##
|
|
38
|
+
## Base application
|
|
39
39
|
**1、Install**
|
|
40
40
|
```bash
|
|
41
41
|
yarn add @micro-zoe/micro-app
|
|
@@ -58,7 +58,7 @@ microApp.start()
|
|
|
58
58
|
</template>
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
##
|
|
61
|
+
## Sub application
|
|
62
62
|
**Set cross-domain support in the headers of webpack-dev-server**
|
|
63
63
|
```js
|
|
64
64
|
devServer: {
|
package/lib/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare module '@micro-zoe/micro-app' {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
declare module '@micro-zoe/micro-app/micro_app' {
|
|
14
|
-
import
|
|
14
|
+
import { OptionsType, MicroAppBaseType, Router, AppName, Func, lifeCyclesType, MicroAppConfig, GetActiveAppsParam } from '@micro-app/types';
|
|
15
15
|
import preFetch from '@micro-zoe/micro-app/prefetch';
|
|
16
16
|
import { EventCenterForBaseApp } from '@micro-zoe/micro-app/interact';
|
|
17
17
|
/**
|
|
@@ -78,7 +78,7 @@ declare module '@micro-zoe/micro-app/micro_app' {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
declare module '@micro-zoe/micro-app/prefetch' {
|
|
81
|
-
import
|
|
81
|
+
import { prefetchParamList, globalAssetsType } from '@micro-app/types';
|
|
82
82
|
/**
|
|
83
83
|
* preFetch([
|
|
84
84
|
* {
|
|
@@ -109,7 +109,7 @@ declare module '@micro-zoe/micro-app/prefetch' {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
declare module '@micro-zoe/micro-app/libs/utils' {
|
|
112
|
-
import
|
|
112
|
+
import { Func, LocationQueryObject, MicroLocation, AttrsType, fiberTasks, MicroAppElementTagNameMap } from '@micro-app/types';
|
|
113
113
|
export const version = "__MICRO_APP_VERSION__";
|
|
114
114
|
export const isBrowser: boolean;
|
|
115
115
|
export const globalThis: any;
|