@micro-zoe/micro-app 1.0.0-rc.4 → 1.0.0-rc.5
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 +5 -1
- package/lib/index.esm.js +390 -277
- 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 +8 -8
package/lib/index.d.ts
CHANGED
|
@@ -159,6 +159,7 @@ declare module '@micro-zoe/micro-app/libs/utils' {
|
|
|
159
159
|
export function isBaseElement(target: unknown): target is HTMLBaseElement;
|
|
160
160
|
export function isMicroAppBody(target: unknown): target is HTMLElement;
|
|
161
161
|
export function isProxyDocument(target: unknown): target is Document;
|
|
162
|
+
export function isTargetExtension(path: string, suffix: string): boolean;
|
|
162
163
|
export function includes(target: unknown[], searchElement: unknown, fromIndex?: number): boolean;
|
|
163
164
|
/**
|
|
164
165
|
* format error log
|
|
@@ -206,7 +207,9 @@ declare module '@micro-zoe/micro-app/libs/utils' {
|
|
|
206
207
|
*/
|
|
207
208
|
export function formatAppName(name: string | null): string;
|
|
208
209
|
/**
|
|
209
|
-
* Get valid address, such as
|
|
210
|
+
* Get valid address, such as
|
|
211
|
+
* 1. https://domain/xx/xx.html to https://domain/xx/
|
|
212
|
+
* 2. https://domain/xx to https://domain/xx/
|
|
210
213
|
* @param url app.url
|
|
211
214
|
*/
|
|
212
215
|
export function getEffectivePath(url: string): string;
|
|
@@ -326,6 +329,7 @@ declare module '@micro-zoe/micro-app/libs/utils' {
|
|
|
326
329
|
* @returns HTMLElement
|
|
327
330
|
*/
|
|
328
331
|
export function getBaseHTMLElement(): BaseHTMLElementType;
|
|
332
|
+
export function formatEventType(type: string, appName: string): string;
|
|
329
333
|
export {};
|
|
330
334
|
}
|
|
331
335
|
|