@tarojs/runtime 3.5.7-alpha.9 → 3.5.8

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.
@@ -1,4 +1,2 @@
1
1
  declare let window: any;
2
- export declare const location: any;
3
- export declare const history: any;
4
2
  export { window };
@@ -45,12 +45,3 @@ export declare const ON_HIDE = "onHide";
45
45
  export declare const OPTIONS = "options";
46
46
  export declare const EXTERNAL_CLASSES = "externalClasses";
47
47
  export declare const BEHAVIORS = "behaviors";
48
- /**
49
- * 页面上下文切换时的行为
50
- */
51
- export declare enum CONTEXT_ACTIONS {
52
- INIT = "0",
53
- RECOVER = "1",
54
- RESTORE = "2",
55
- DESTORY = "3"
56
- }
@@ -81,6 +81,5 @@ export interface AppInstance extends Show {
81
81
  onShow?(options?: Record<string, unknown>): void;
82
82
  unmount?(id: string, cb?: () => void): void;
83
83
  taroGlobalData?: Record<any, any>;
84
- config?: Record<any, any>;
85
84
  }
86
85
  export {};
package/dist/index.d.ts CHANGED
@@ -4,8 +4,7 @@ export { document } from './bom/document';
4
4
  export { getComputedStyle } from './bom/getComputedStyle';
5
5
  export { nav as navigator } from './bom/navigator';
6
6
  export { caf as cancelAnimationFrame, now, raf as requestAnimationFrame } from './bom/raf';
7
- export { URLSearchParams } from './bom/URLSearchParams';
8
- export { history, location, window } from './bom/window';
7
+ export { window } from './bom/window';
9
8
  export { TaroElement } from './dom/element';
10
9
  export { createEvent, eventHandler, TaroEvent } from './dom/event';
11
10
  export { FormElement } from './dom/form';
@@ -325,23 +325,7 @@ declare let now: () => number;
325
325
  // https://gist.github.com/jalbam/5fe05443270fa6d8136238ec72accbc0
326
326
  declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timeout);
327
327
  declare const _caf: typeof cancelAnimationFrame;
328
- declare class URLSearchParams {
329
- #private;
330
- constructor(query: any);
331
- append(name: string, value: string): void;
332
- delete(name: string): void;
333
- get(name: string): any;
334
- getAll(name: string): any;
335
- has(name: string): boolean;
336
- keys(): string[];
337
- set(name: string, value: string): void;
338
- forEach(callback: any, thisArg: any): void;
339
- toJSON(): {};
340
- toString(): string;
341
- }
342
328
  declare let window: any;
343
- declare const location: any;
344
- declare const history: any;
345
329
  // for Vue3
346
330
  declare class SVGElement extends TaroElement {
347
331
  }
@@ -506,7 +490,6 @@ interface AppInstance extends Show {
506
490
  onShow?(options?: Record<string, unknown>): void;
507
491
  unmount?(id: string, cb?: () => void): void;
508
492
  taroGlobalData?: Record<any, any>;
509
- config?: Record<any, any>;
510
493
  }
511
494
  interface Router {
512
495
  params: Record<string, unknown>;
@@ -552,4 +535,4 @@ declare const nextTick: (cb: Func, ctx?: Record<string, any>) => void;
552
535
  declare const options: Options;
553
536
  declare const incrementId: () => () => string;
554
537
  export { hooks } from '@tarojs/shared';
555
- export { document, getComputedStyle, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getPageInstance, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, incrementId, Instance, VueAppInstance, VueInstance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, Attributes, EventOptions, MpEvent, EventListenerOptions, AddEventListenerOptions, EventHandler, MpInstance, MiniElementData, MiniData, HydratedData, UpdatePayloadValue, DataTree, UpdatePayload, Options, Func, Ctx };
538
+ export { document, getComputedStyle, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getPageInstance, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, incrementId, Instance, VueAppInstance, VueInstance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, Attributes, EventOptions, MpEvent, EventListenerOptions, AddEventListenerOptions, EventHandler, MpInstance, MiniElementData, MiniData, HydratedData, UpdatePayloadValue, DataTree, UpdatePayload, Options, Func, Ctx };