@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.
- package/dist/bom/window.d.ts +0 -2
- package/dist/constants/index.d.ts +0 -9
- package/dist/dsl/instance.d.ts +0 -1
- package/dist/index.d.ts +1 -2
- package/dist/runtime.esm.d.ts +1 -18
- package/dist/runtime.esm.js +15 -691
- package/dist/runtime.esm.js.map +1 -1
- package/package.json +3 -6
- package/dist/bom/URLSearchParams.d.ts +0 -14
- package/dist/bom/history.d.ts +0 -29
- package/dist/bom/location.d.ts +0 -36
- package/dist/utils/cache.d.ts +0 -12
package/dist/bom/window.d.ts
CHANGED
|
@@ -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
|
-
}
|
package/dist/dsl/instance.d.ts
CHANGED
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 {
|
|
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';
|
package/dist/runtime.esm.d.ts
CHANGED
|
@@ -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,
|
|
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 };
|