@tarojs/runtime 3.6.0-canary.1 → 3.6.0-canary.10
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/dom/event.d.ts +1 -0
- package/dist/dsl/instance.d.ts +1 -0
- package/dist/runtime.esm.d.ts +3 -0
- package/dist/runtime.esm.js +4 -2
- package/dist/runtime.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/dom/event.d.ts
CHANGED
package/dist/dsl/instance.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export interface AppInstance extends Show {
|
|
|
78
78
|
onError?(error: string): void;
|
|
79
79
|
onLaunch?(options?: Record<string, unknown>): void;
|
|
80
80
|
onPageNotFound?(res: any): void;
|
|
81
|
+
onUnhandledRejection?(error: any): void;
|
|
81
82
|
onShow?(options?: Record<string, unknown>): void;
|
|
82
83
|
unmount?(id: string, cb?: () => void): void;
|
|
83
84
|
taroGlobalData?: Record<any, any>;
|
package/dist/runtime.esm.d.ts
CHANGED
|
@@ -112,6 +112,8 @@ declare class TaroEvent {
|
|
|
112
112
|
_stop: boolean;
|
|
113
113
|
_end: boolean;
|
|
114
114
|
defaultPrevented: boolean;
|
|
115
|
+
// Mouse Event botton property, it's used in 3rd lib, like react-router. default 0 in general
|
|
116
|
+
button: number;
|
|
115
117
|
// timestamp can either be hi-res ( relative to page load) or low-res (relative to UNIX epoch)
|
|
116
118
|
// here use hi-res timestamp
|
|
117
119
|
timeStamp: number;
|
|
@@ -503,6 +505,7 @@ interface AppInstance extends Show {
|
|
|
503
505
|
onError?(error: string): void;
|
|
504
506
|
onLaunch?(options?: Record<string, unknown>): void;
|
|
505
507
|
onPageNotFound?(res: any): void;
|
|
508
|
+
onUnhandledRejection?(error: any): void;
|
|
506
509
|
onShow?(options?: Record<string, unknown>): void;
|
|
507
510
|
unmount?(id: string, cb?: () => void): void;
|
|
508
511
|
taroGlobalData?: Record<any, any>;
|
package/dist/runtime.esm.js
CHANGED
|
@@ -2345,6 +2345,8 @@ class TaroEvent {
|
|
|
2345
2345
|
this._stop = false;
|
|
2346
2346
|
this._end = false;
|
|
2347
2347
|
this.defaultPrevented = false;
|
|
2348
|
+
// Mouse Event botton property, it's used in 3rd lib, like react-router. default 0 in general
|
|
2349
|
+
this.button = 0;
|
|
2348
2350
|
// timestamp can either be hi-res ( relative to page load) or low-res (relative to UNIX epoch)
|
|
2349
2351
|
// here use hi-res timestamp
|
|
2350
2352
|
this.timeStamp = Date.now();
|
|
@@ -3667,7 +3669,7 @@ function createPageConfig(component, pageName, data, pageConfig) {
|
|
|
3667
3669
|
setCurrentRouter(this);
|
|
3668
3670
|
// 初始化当前页面的上下文信息
|
|
3669
3671
|
if (process.env.TARO_ENV !== 'h5') {
|
|
3670
|
-
window$1.trigger(CONTEXT_ACTIONS.INIT,
|
|
3672
|
+
window$1.trigger(CONTEXT_ACTIONS.INIT, $taroPath);
|
|
3671
3673
|
}
|
|
3672
3674
|
const mount = () => {
|
|
3673
3675
|
Current.app.mount(component, $taroPath, () => {
|
|
@@ -3850,7 +3852,7 @@ function createRecursiveComponentConfig(componentName) {
|
|
|
3850
3852
|
i: {
|
|
3851
3853
|
type: Object,
|
|
3852
3854
|
value: {
|
|
3853
|
-
["nn" /* Shortcuts.NodeName */]: getComponentsAlias()[VIEW]._num
|
|
3855
|
+
["nn" /* Shortcuts.NodeName */]: getComponentsAlias$1(internalComponents)[VIEW]._num
|
|
3854
3856
|
}
|
|
3855
3857
|
},
|
|
3856
3858
|
l: {
|