@micro-zoe/micro-app 1.0.0-rc.3 → 1.0.0-rc.4

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 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 includes(target: unknown[], searchElement: unknown, fromIndex?: number): boolean;
162
163
  /**
163
164
  * format error log
164
165
  * @param msg message
@@ -239,21 +240,14 @@ declare module '@micro-zoe/micro-app/libs/utils' {
239
240
  */
240
241
  export function promiseRequestIdle(callback: CallableFunction): Promise<void>;
241
242
  export function setCurrentAppName(appName: string | null): void;
242
- export function throttleDeferForSetAppName(appName: string): void;
243
243
  export function getCurrentAppName(): string | null;
244
- export function removeDomScope(): void;
244
+ export function removeDomScope(force?: boolean): void;
245
+ export function throttleDeferForSetAppName(appName: string): void;
245
246
  export function isSafari(): boolean;
246
247
  /**
247
248
  * Create pure elements
248
249
  */
249
250
  export function pureCreateElement<K extends keyof MicroAppElementTagNameMap>(tagName: K, options?: ElementCreationOptions): MicroAppElementTagNameMap[K];
250
- /**
251
- * clone origin elements to target
252
- * @param origin Cloned element
253
- * @param target Accept cloned elements
254
- * @param deep deep clone or transfer dom
255
- */
256
- export function cloneContainer<T extends Element | ShadowRoot, Q extends Element | ShadowRoot>(target: Q, origin: T, deep: boolean): Q;
257
251
  export function isInvalidQuerySelectorKey(key: string): boolean;
258
252
  export function isUniqueElement(key: string): boolean;
259
253
  /**