@micro-zoe/micro-app 1.0.0-beta.4 → 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 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
- ## base application
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
- ## micro application
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 type { OptionsType, MicroAppBaseType, Router, AppName, Func, lifeCyclesType, MicroAppConfig, GetActiveAppsParam } from '@micro-app/types';
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 type { prefetchParamList, globalAssetsType } from '@micro-app/types';
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 type { Func, LocationQueryObject, MicroLocation, AttrsType, fiberTasks } from '@micro-app/types';
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;
@@ -236,7 +236,7 @@ declare module '@micro-zoe/micro-app/libs/utils' {
236
236
  /**
237
237
  * Create pure elements
238
238
  */
239
- export function pureCreateElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
239
+ export function pureCreateElement<K extends keyof MicroAppElementTagNameMap>(tagName: K, options?: ElementCreationOptions): MicroAppElementTagNameMap[K];
240
240
  /**
241
241
  * clone origin elements to target
242
242
  * @param origin Cloned element