@tarojs/runtime 3.7.0-alpha.8 → 3.7.0-beta.1
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/runtime.cjs.d.ts +1 -19
- package/dist/runtime.cjs.js +0 -13
- package/dist/runtime.esm.d.ts +1 -19
- package/dist/runtime.esm.js +1 -4
- package/dist/runtime.esm.js.map +1 -1
- package/dist/runtime.h5.d.ts +1 -19
- package/dist/runtime.h5.js +0 -13
- package/package.json +2 -2
package/dist/runtime.cjs.d.ts
CHANGED
|
@@ -776,23 +776,5 @@ declare function hydrate(node: TaroElement | TaroText): MiniData;
|
|
|
776
776
|
declare const nextTick: (cb: Func, ctx?: Record<string, any>) => void;
|
|
777
777
|
declare const options: Options;
|
|
778
778
|
declare const incrementId: () => () => string;
|
|
779
|
-
declare function isElement(node: TaroNode): node is TaroElement;
|
|
780
|
-
declare function isText(node: TaroNode): node is TaroText;
|
|
781
|
-
declare function isComment(node: TaroNode): boolean;
|
|
782
|
-
declare function isHasExtractProp(el: TaroElement): boolean;
|
|
783
|
-
/**
|
|
784
|
-
* 往上寻找组件树直到 root,寻找是否有祖先组件绑定了同类型的事件
|
|
785
|
-
* @param node 当前组件
|
|
786
|
-
* @param type 事件类型
|
|
787
|
-
*/
|
|
788
|
-
declare function isParentBinded(node: TaroElement | null, type: string): boolean;
|
|
789
|
-
declare function shortcutAttr(key: string): string;
|
|
790
|
-
declare const customWrapperCache: Map<string, Record<string, any>>;
|
|
791
|
-
interface Ctor {
|
|
792
|
-
new (...args: any[]): any;
|
|
793
|
-
}
|
|
794
|
-
declare function extend(ctor: Ctor, methodName: string, options: Func | Record<string, any>): void;
|
|
795
|
-
declare function getComponentsAlias(): any;
|
|
796
|
-
declare function convertNumber2PX(value: number): string;
|
|
797
779
|
export { hooks } from '@tarojs/shared';
|
|
798
|
-
export { document, getComputedStyle, History, Location, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, parseUrl, URL, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, env, PROPERTY_THRESHOLD, TARO_RUNTIME, HOOKS_APP_ID, SET_DATA, PAGE_INIT, ROOT_STR, HTML, HEAD, BODY, APP, CONTAINER, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, ID, UID, CLASS, STYLE, FOCUS, VIEW, STATIC_VIEW, PURE_VIEW, PROPS, DATASET, OBJECT, VALUE, INPUT, CHANGE, CUSTOM_WRAPPER, TARGET, CURRENT_TARGET, TYPE, CONFIRM, TIME_STAMP, KEY_CODE, TOUCHMOVE, DATE, SET_TIMEOUT, CATCHMOVE, CATCH_VIEW, COMMENT, ON_LOAD, ON_READY, ON_SHOW, ON_HIDE, OPTIONS, EXTERNAL_CLASSES, EVENT_CALLBACK_RESULT, BEHAVIORS, A, CONTEXT_ACTIONS, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, incrementId,
|
|
780
|
+
export { document, getComputedStyle, History, Location, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, parseUrl, URL, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, env, PROPERTY_THRESHOLD, TARO_RUNTIME, HOOKS_APP_ID, SET_DATA, PAGE_INIT, ROOT_STR, HTML, HEAD, BODY, APP, CONTAINER, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, ID, UID, CLASS, STYLE, FOCUS, VIEW, STATIC_VIEW, PURE_VIEW, PROPS, DATASET, OBJECT, VALUE, INPUT, CHANGE, CUSTOM_WRAPPER, TARGET, CURRENT_TARGET, TYPE, CONFIRM, TIME_STAMP, KEY_CODE, TOUCHMOVE, DATE, SET_TIMEOUT, CATCHMOVE, CATCH_VIEW, COMMENT, ON_LOAD, ON_READY, ON_SHOW, ON_HIDE, OPTIONS, EXTERNAL_CLASSES, EVENT_CALLBACK_RESULT, BEHAVIORS, A, CONTEXT_ACTIONS, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, 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$0 as Options, Func, Ctx };
|
package/dist/runtime.cjs.js
CHANGED
|
@@ -291,9 +291,6 @@ function getComponentsAlias() {
|
|
|
291
291
|
}
|
|
292
292
|
return componentsAlias$1;
|
|
293
293
|
}
|
|
294
|
-
function convertNumber2PX(value) {
|
|
295
|
-
return value + 'px';
|
|
296
|
-
}
|
|
297
294
|
|
|
298
295
|
var ClassList = function ClassList(className, el) {
|
|
299
296
|
var this$1$1 = this;
|
|
@@ -4555,18 +4552,14 @@ exports.VALUE = VALUE;
|
|
|
4555
4552
|
exports.VIEW = VIEW;
|
|
4556
4553
|
exports.addLeadingSlash = addLeadingSlash;
|
|
4557
4554
|
exports.cancelAnimationFrame = _caf;
|
|
4558
|
-
exports.convertNumber2PX = convertNumber2PX;
|
|
4559
4555
|
exports.createComponentConfig = createComponentConfig;
|
|
4560
4556
|
exports.createEvent = createEvent;
|
|
4561
4557
|
exports.createPageConfig = createPageConfig;
|
|
4562
4558
|
exports.createRecursiveComponentConfig = createRecursiveComponentConfig;
|
|
4563
|
-
exports.customWrapperCache = customWrapperCache;
|
|
4564
4559
|
exports.env = env;
|
|
4565
4560
|
exports.eventCenter = eventCenter;
|
|
4566
4561
|
exports.eventHandler = eventHandler;
|
|
4567
4562
|
exports.eventSource = eventSource;
|
|
4568
|
-
exports.extend = extend;
|
|
4569
|
-
exports.getComponentsAlias = getComponentsAlias;
|
|
4570
4563
|
exports.getComputedStyle = getComputedStyle;
|
|
4571
4564
|
exports.getCurrentInstance = getCurrentInstance;
|
|
4572
4565
|
exports.getOnHideEventKey = getOnHideEventKey;
|
|
@@ -4578,11 +4571,6 @@ exports.history = history;
|
|
|
4578
4571
|
exports.hydrate = hydrate;
|
|
4579
4572
|
exports.incrementId = incrementId;
|
|
4580
4573
|
exports.injectPageInstance = injectPageInstance;
|
|
4581
|
-
exports.isComment = isComment;
|
|
4582
|
-
exports.isElement = isElement;
|
|
4583
|
-
exports.isHasExtractProp = isHasExtractProp;
|
|
4584
|
-
exports.isParentBinded = isParentBinded;
|
|
4585
|
-
exports.isText = isText;
|
|
4586
4574
|
exports.location = location;
|
|
4587
4575
|
exports.navigator = nav;
|
|
4588
4576
|
exports.nextTick = nextTick;
|
|
@@ -4591,5 +4579,4 @@ exports.parseUrl = parseUrl;
|
|
|
4591
4579
|
exports.removePageInstance = removePageInstance;
|
|
4592
4580
|
exports.requestAnimationFrame = _raf;
|
|
4593
4581
|
exports.safeExecute = safeExecute;
|
|
4594
|
-
exports.shortcutAttr = shortcutAttr;
|
|
4595
4582
|
exports.stringify = stringify;
|
package/dist/runtime.esm.d.ts
CHANGED
|
@@ -776,23 +776,5 @@ declare function hydrate(node: TaroElement | TaroText): MiniData;
|
|
|
776
776
|
declare const nextTick: (cb: Func, ctx?: Record<string, any>) => void;
|
|
777
777
|
declare const options: Options;
|
|
778
778
|
declare const incrementId: () => () => string;
|
|
779
|
-
declare function isElement(node: TaroNode): node is TaroElement;
|
|
780
|
-
declare function isText(node: TaroNode): node is TaroText;
|
|
781
|
-
declare function isComment(node: TaroNode): boolean;
|
|
782
|
-
declare function isHasExtractProp(el: TaroElement): boolean;
|
|
783
|
-
/**
|
|
784
|
-
* 往上寻找组件树直到 root,寻找是否有祖先组件绑定了同类型的事件
|
|
785
|
-
* @param node 当前组件
|
|
786
|
-
* @param type 事件类型
|
|
787
|
-
*/
|
|
788
|
-
declare function isParentBinded(node: TaroElement | null, type: string): boolean;
|
|
789
|
-
declare function shortcutAttr(key: string): string;
|
|
790
|
-
declare const customWrapperCache: Map<string, Record<string, any>>;
|
|
791
|
-
interface Ctor {
|
|
792
|
-
new (...args: any[]): any;
|
|
793
|
-
}
|
|
794
|
-
declare function extend(ctor: Ctor, methodName: string, options: Func | Record<string, any>): void;
|
|
795
|
-
declare function getComponentsAlias(): any;
|
|
796
|
-
declare function convertNumber2PX(value: number): string;
|
|
797
779
|
export { hooks } from '@tarojs/shared';
|
|
798
|
-
export { document, getComputedStyle, History, Location, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, parseUrl, URL, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, env, PROPERTY_THRESHOLD, TARO_RUNTIME, HOOKS_APP_ID, SET_DATA, PAGE_INIT, ROOT_STR, HTML, HEAD, BODY, APP, CONTAINER, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, ID, UID, CLASS, STYLE, FOCUS, VIEW, STATIC_VIEW, PURE_VIEW, PROPS, DATASET, OBJECT, VALUE, INPUT, CHANGE, CUSTOM_WRAPPER, TARGET, CURRENT_TARGET, TYPE, CONFIRM, TIME_STAMP, KEY_CODE, TOUCHMOVE, DATE, SET_TIMEOUT, CATCHMOVE, CATCH_VIEW, COMMENT, ON_LOAD, ON_READY, ON_SHOW, ON_HIDE, OPTIONS, EXTERNAL_CLASSES, EVENT_CALLBACK_RESULT, BEHAVIORS, A, CONTEXT_ACTIONS, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, incrementId,
|
|
780
|
+
export { document, getComputedStyle, History, Location, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, parseUrl, URL, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, env, PROPERTY_THRESHOLD, TARO_RUNTIME, HOOKS_APP_ID, SET_DATA, PAGE_INIT, ROOT_STR, HTML, HEAD, BODY, APP, CONTAINER, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, ID, UID, CLASS, STYLE, FOCUS, VIEW, STATIC_VIEW, PURE_VIEW, PROPS, DATASET, OBJECT, VALUE, INPUT, CHANGE, CUSTOM_WRAPPER, TARGET, CURRENT_TARGET, TYPE, CONFIRM, TIME_STAMP, KEY_CODE, TOUCHMOVE, DATE, SET_TIMEOUT, CATCHMOVE, CATCH_VIEW, COMMENT, ON_LOAD, ON_READY, ON_SHOW, ON_HIDE, OPTIONS, EXTERNAL_CLASSES, EVENT_CALLBACK_RESULT, BEHAVIORS, A, CONTEXT_ACTIONS, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, 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$0 as Options, Func, Ctx };
|
package/dist/runtime.esm.js
CHANGED
|
@@ -286,9 +286,6 @@ function getComponentsAlias() {
|
|
|
286
286
|
}
|
|
287
287
|
return componentsAlias$1;
|
|
288
288
|
}
|
|
289
|
-
function convertNumber2PX(value) {
|
|
290
|
-
return value + 'px';
|
|
291
|
-
}
|
|
292
289
|
|
|
293
290
|
class ClassList {
|
|
294
291
|
constructor(className, el) {
|
|
@@ -4234,5 +4231,5 @@ const nextTick = (cb, ctx) => {
|
|
|
4234
4231
|
next();
|
|
4235
4232
|
};
|
|
4236
4233
|
|
|
4237
|
-
export { A, APP, BEHAVIORS, BODY, CATCHMOVE, CATCH_VIEW, CHANGE, CLASS, COMMENT, CONFIRM, CONTAINER, CONTEXT_ACTIONS, CURRENT_TARGET, CUSTOM_WRAPPER, Current, DATASET, DATE, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, EVENT_CALLBACK_RESULT, EXTERNAL_CLASSES, FOCUS, FormElement, HEAD, HOOKS_APP_ID, HTML, History, ID, INPUT, KEY_CODE, Location, MutationObserver, OBJECT, ON_HIDE, ON_LOAD, ON_READY, ON_SHOW, OPTIONS, PAGE_INIT, PROPERTY_THRESHOLD, PROPS, PURE_VIEW, ROOT_STR, SET_DATA, SET_TIMEOUT, STATIC_VIEW, STYLE, SVGElement, Style, TARGET, TARO_RUNTIME, TIME_STAMP, TOUCHMOVE, TYPE, TaroElement, TaroEvent, TaroNode, TaroRootElement, TaroText, UID, URL, URLSearchParams, VALUE, VIEW, addLeadingSlash, _caf as cancelAnimationFrame,
|
|
4234
|
+
export { A, APP, BEHAVIORS, BODY, CATCHMOVE, CATCH_VIEW, CHANGE, CLASS, COMMENT, CONFIRM, CONTAINER, CONTEXT_ACTIONS, CURRENT_TARGET, CUSTOM_WRAPPER, Current, DATASET, DATE, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, EVENT_CALLBACK_RESULT, EXTERNAL_CLASSES, FOCUS, FormElement, HEAD, HOOKS_APP_ID, HTML, History, ID, INPUT, KEY_CODE, Location, MutationObserver, OBJECT, ON_HIDE, ON_LOAD, ON_READY, ON_SHOW, OPTIONS, PAGE_INIT, PROPERTY_THRESHOLD, PROPS, PURE_VIEW, ROOT_STR, SET_DATA, SET_TIMEOUT, STATIC_VIEW, STYLE, SVGElement, Style, TARGET, TARO_RUNTIME, TIME_STAMP, TOUCHMOVE, TYPE, TaroElement, TaroEvent, TaroNode, TaroRootElement, TaroText, UID, URL, URLSearchParams, VALUE, VIEW, addLeadingSlash, _caf as cancelAnimationFrame, createComponentConfig, createEvent, createPageConfig, createRecursiveComponentConfig, document$1 as document, env, eventCenter, eventHandler, eventSource, getComputedStyle, getCurrentInstance, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, history, hydrate, incrementId, injectPageInstance, location, nav as navigator, nextTick, now, options, parseUrl, removePageInstance, _raf as requestAnimationFrame, safeExecute, stringify, window$1 as window };
|
|
4238
4235
|
//# sourceMappingURL=runtime.esm.js.map
|