@tarojs/runtime 3.5.0-beta.1 → 3.5.0-beta.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/dist/current.d.ts +1 -0
- package/dist/dom/element.d.ts +1 -1
- package/dist/dom/event.d.ts +2 -0
- package/dist/dom/node.d.ts +1 -5
- package/dist/dom/root.d.ts +1 -1
- package/dist/dom/style.d.ts +1 -0
- package/dist/dsl/instance.d.ts +4 -2
- package/dist/interface/hydrate.d.ts +1 -0
- package/dist/runtime.esm.js +239 -107
- package/dist/runtime.esm.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/current.d.ts
CHANGED
package/dist/dom/element.d.ts
CHANGED
|
@@ -33,6 +33,6 @@ export declare class TaroElement extends TaroNode {
|
|
|
33
33
|
getElementsByClassName(className: string): TaroElement[];
|
|
34
34
|
dispatchEvent(event: TaroEvent): boolean;
|
|
35
35
|
addEventListener(type: any, handler: any, options: any): void;
|
|
36
|
-
removeEventListener(type: any, handler: any): void;
|
|
36
|
+
removeEventListener(type: any, handler: any, sideEffect?: boolean): void;
|
|
37
37
|
static extend(methodName: string, options: Func | Record<string, any>): void;
|
|
38
38
|
}
|
package/dist/dom/event.d.ts
CHANGED
package/dist/dom/node.d.ts
CHANGED
|
@@ -17,12 +17,8 @@ export declare class TaroNode extends TaroEventTarget {
|
|
|
17
17
|
childNodes: TaroNode[];
|
|
18
18
|
constructor();
|
|
19
19
|
private hydrate;
|
|
20
|
-
/**
|
|
21
|
-
* like jQuery's $.empty()
|
|
22
|
-
*/
|
|
23
|
-
private _empty;
|
|
24
20
|
private updateChildNodes;
|
|
25
|
-
|
|
21
|
+
get _root(): TaroRootElement | null;
|
|
26
22
|
protected findIndex(refChild: TaroNode): number;
|
|
27
23
|
get _path(): string;
|
|
28
24
|
get nextSibling(): TaroNode | null;
|
package/dist/dom/root.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare class TaroRootElement extends TaroElement {
|
|
|
7
7
|
ctx: null | MpInstance;
|
|
8
8
|
constructor();
|
|
9
9
|
get _path(): string;
|
|
10
|
-
|
|
10
|
+
get _root(): TaroRootElement;
|
|
11
11
|
enqueueUpdate(payload: UpdatePayload): void;
|
|
12
12
|
performUpdate(initRender?: boolean, prerender?: Func): void;
|
|
13
13
|
enqueueUpdateCallback(cb: Func, ctx?: Record<string, any>): void;
|
package/dist/dom/style.d.ts
CHANGED
package/dist/dsl/instance.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import type { Component as Vue3Component } from '@vue/runtime-core';
|
|
1
2
|
import type { Component, ComponentClass } from 'react';
|
|
2
3
|
import VueCtor, { ComponentOptions, VNode } from 'vue';
|
|
3
|
-
import type { Component as Vue3Component } from '@vue/runtime-core';
|
|
4
4
|
import type { CombinedVueInstance } from 'vue/types/vue';
|
|
5
|
-
import type { Func, MpEvent } from '../interface';
|
|
6
5
|
import type { TaroElement } from '../dom/element';
|
|
6
|
+
import type { Func, MpEvent } from '../interface';
|
|
7
7
|
export interface Instance<T = Record<string, any>> extends Component<T>, Show, PageInstance {
|
|
8
8
|
tid?: string;
|
|
9
9
|
$forceUpdate?(): void;
|
|
@@ -53,6 +53,7 @@ export interface PageLifeCycle extends Show {
|
|
|
53
53
|
onPullIntercept?(): void;
|
|
54
54
|
onShareTimeline?(): void;
|
|
55
55
|
onAddToFavorites?(): void;
|
|
56
|
+
onSaveExitState?(): void;
|
|
56
57
|
eh?(event: MpEvent): void;
|
|
57
58
|
onLoad?(options: Record<string, unknown>, cb?: Func): void;
|
|
58
59
|
onUnload?(): void;
|
|
@@ -79,6 +80,7 @@ export interface AppInstance extends Show {
|
|
|
79
80
|
onShow?(options?: Record<string, unknown>): void;
|
|
80
81
|
unmount?(id: string): void;
|
|
81
82
|
unmount?(id: string, cb: () => void): void;
|
|
83
|
+
onError?(error: string): void;
|
|
82
84
|
onPageNotFound?(res: any): void;
|
|
83
85
|
taroGlobalData?: Record<any, any>;
|
|
84
86
|
}
|