@micro-zoe/micro-app 1.0.0-alpha.2 → 1.0.0-alpha.3

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.2",
3
+ "version": "1.0.0-alpha.3",
4
4
  "description": "A lightweight, efficient and powerful micro front-end framework",
5
5
  "private": false,
6
6
  "main": "lib/index.min.js",
@@ -77,6 +77,7 @@ declare module '@micro-app/types' {
77
77
  useMemoryRouter: boolean // whether use memoryRouter, default is true
78
78
  baseroute: string // route prefix, default is ''
79
79
  keepRouteState: boolean // keep route state when unmount, default is false
80
+ hiddenRouter: boolean // hide router info of child from browser url
80
81
  source: sourceType // sources of css, js, html
81
82
  sandBox: SandBoxInterface | null // sandbox
82
83
  umdMode: boolean // is umd mode
@@ -98,6 +99,7 @@ declare module '@micro-app/types' {
98
99
  baseroute?: string,
99
100
  keepRouteState?: boolean,
100
101
  defaultPage?: string,
102
+ hiddenRouter?: boolean
101
103
  ): void
102
104
 
103
105
  // unmount app
@@ -138,10 +140,13 @@ declare module '@micro-app/types' {
138
140
  type prefetchParam = {
139
141
  name: string,
140
142
  url: string,
143
+ // old config 👇
141
144
  disableScopecss?: boolean
142
145
  disableSandbox?: boolean
143
- disableMemoryRouter?: boolean
144
- shadowDOM?: boolean
146
+ // old config 👆
147
+ 'disable-scopecss'?: boolean
148
+ 'disable-sandbox'?: boolean
149
+ 'disable-memory-router'?: boolean
145
150
  }
146
151
 
147
152
  // prefetch params
@@ -193,13 +198,20 @@ declare module '@micro-app/types' {
193
198
 
194
199
  type OptionsType = {
195
200
  tagName?: string
196
- shadowDOM?: boolean
197
- destroy?: boolean
198
- inline?: boolean
201
+ 'shadowDOM'?: boolean
202
+ 'destroy'?: boolean
203
+ 'inline'?: boolean
204
+ // old config 👇
199
205
  disableScopecss?: boolean
200
206
  disableSandbox?: boolean
201
- disableMemoryRouter?: boolean
202
- ssr?: boolean
207
+ // old config 👆
208
+ 'disable-scopecss'?: boolean
209
+ 'disable-sandbox'?: boolean
210
+ 'disable-memory-router'?: boolean
211
+ 'keep-router-state'?: boolean
212
+ 'hidden-router'?: boolean
213
+ 'esmodule'?: boolean
214
+ 'ssr'?: boolean
203
215
  lifeCycles?: lifeCyclesType
204
216
  preFetchApps?: prefetchParamList
205
217
  plugins?: plugins