@micro-zoe/micro-app 1.0.0-alpha.0 → 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/lib/index.d.ts +13 -7
- package/lib/index.esm.js +806 -397
- 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 +65 -9
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, MicroAppConfigType, lifeCyclesType, plugins, fetchType, Router } from '@micro-app/types';
|
|
14
|
+
import type { OptionsType, MicroAppConfigType, lifeCyclesType, plugins, fetchType, Router, appName } 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
|
/**
|
|
@@ -19,7 +19,7 @@ declare module '@micro-zoe/micro-app/micro_app' {
|
|
|
19
19
|
* @param excludeHiddenApp exclude hidden keep-alive app, default is false
|
|
20
20
|
* @returns active apps
|
|
21
21
|
*/
|
|
22
|
-
export function getActiveApps(excludeHiddenApp?: boolean):
|
|
22
|
+
export function getActiveApps(excludeHiddenApp?: boolean): appName[];
|
|
23
23
|
export function getAllApps(): string[];
|
|
24
24
|
type unmountAppOptions = {
|
|
25
25
|
destroy?: boolean;
|
|
@@ -38,9 +38,12 @@ declare module '@micro-zoe/micro-app/micro_app' {
|
|
|
38
38
|
shadowDOM?: boolean;
|
|
39
39
|
destroy?: boolean;
|
|
40
40
|
inline?: boolean;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
'disable-scopecss'?: boolean;
|
|
42
|
+
'disable-sandbox'?: boolean;
|
|
43
|
+
'disable-memory-router'?: boolean;
|
|
44
|
+
'keep-router-state'?: boolean;
|
|
45
|
+
'hidden-router'?: boolean;
|
|
46
|
+
esmodule?: boolean;
|
|
44
47
|
ssr?: boolean;
|
|
45
48
|
lifeCycles?: lifeCyclesType;
|
|
46
49
|
plugins?: plugins;
|
|
@@ -102,10 +105,13 @@ declare module '@micro-zoe/micro-app/libs/utils' {
|
|
|
102
105
|
export function isBoolean(target: unknown): target is boolean;
|
|
103
106
|
export function isFunction(target: unknown): target is Function;
|
|
104
107
|
export function isPlainObject(target: unknown): target is Record<PropertyKey, unknown>;
|
|
108
|
+
export function isObject(target: unknown): target is Object;
|
|
105
109
|
export function isPromise(target: unknown): target is Promise<unknown>;
|
|
106
|
-
export function isBoundFunction(target: unknown):
|
|
110
|
+
export function isBoundFunction(target: unknown): boolean;
|
|
111
|
+
export function isConstructor(target: unknown): boolean;
|
|
107
112
|
export function isShadowRoot(target: unknown): target is ShadowRoot;
|
|
108
113
|
export function isURL(target: unknown): target is URL;
|
|
114
|
+
export function isProxyDocument(target: unknown): target is Document;
|
|
109
115
|
/**
|
|
110
116
|
* format error log
|
|
111
117
|
* @param msg message
|
|
@@ -127,7 +133,7 @@ declare module '@micro-zoe/micro-app/libs/utils' {
|
|
|
127
133
|
/**
|
|
128
134
|
* create URL as MicroLocation
|
|
129
135
|
*/
|
|
130
|
-
export const createURL: (
|
|
136
|
+
export const createURL: (path: string | URL, base?: string | undefined) => MicroLocation;
|
|
131
137
|
/**
|
|
132
138
|
* Add address protocol
|
|
133
139
|
* @param url address
|