@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.h5.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.h5.js
CHANGED
|
@@ -236,9 +236,6 @@ function getComponentsAlias() {
|
|
|
236
236
|
}
|
|
237
237
|
return componentsAlias$1;
|
|
238
238
|
}
|
|
239
|
-
function convertNumber2PX(value) {
|
|
240
|
-
return value + 'px';
|
|
241
|
-
}
|
|
242
239
|
|
|
243
240
|
class ClassList {
|
|
244
241
|
constructor(className, el) {
|
|
@@ -3321,18 +3318,14 @@ exports.VALUE = VALUE;
|
|
|
3321
3318
|
exports.VIEW = VIEW;
|
|
3322
3319
|
exports.addLeadingSlash = addLeadingSlash;
|
|
3323
3320
|
exports.cancelAnimationFrame = _caf;
|
|
3324
|
-
exports.convertNumber2PX = convertNumber2PX;
|
|
3325
3321
|
exports.createComponentConfig = createComponentConfig;
|
|
3326
3322
|
exports.createEvent = createEvent;
|
|
3327
3323
|
exports.createPageConfig = createPageConfig;
|
|
3328
3324
|
exports.createRecursiveComponentConfig = createRecursiveComponentConfig;
|
|
3329
|
-
exports.customWrapperCache = customWrapperCache;
|
|
3330
3325
|
exports.env = env;
|
|
3331
3326
|
exports.eventCenter = eventCenter;
|
|
3332
3327
|
exports.eventHandler = eventHandler;
|
|
3333
3328
|
exports.eventSource = eventSource;
|
|
3334
|
-
exports.extend = extend;
|
|
3335
|
-
exports.getComponentsAlias = getComponentsAlias;
|
|
3336
3329
|
exports.getComputedStyle = getComputedStyle;
|
|
3337
3330
|
exports.getCurrentInstance = getCurrentInstance;
|
|
3338
3331
|
exports.getOnHideEventKey = getOnHideEventKey;
|
|
@@ -3344,11 +3337,6 @@ exports.history = history;
|
|
|
3344
3337
|
exports.hydrate = hydrate;
|
|
3345
3338
|
exports.incrementId = incrementId;
|
|
3346
3339
|
exports.injectPageInstance = injectPageInstance;
|
|
3347
|
-
exports.isComment = isComment;
|
|
3348
|
-
exports.isElement = isElement;
|
|
3349
|
-
exports.isHasExtractProp = isHasExtractProp;
|
|
3350
|
-
exports.isParentBinded = isParentBinded;
|
|
3351
|
-
exports.isText = isText;
|
|
3352
3340
|
exports.location = location;
|
|
3353
3341
|
exports.navigator = nav;
|
|
3354
3342
|
exports.nextTick = nextTick;
|
|
@@ -3357,5 +3345,4 @@ exports.parseUrl = parseUrl;
|
|
|
3357
3345
|
exports.removePageInstance = removePageInstance;
|
|
3358
3346
|
exports.requestAnimationFrame = _raf;
|
|
3359
3347
|
exports.safeExecute = safeExecute;
|
|
3360
|
-
exports.shortcutAttr = shortcutAttr;
|
|
3361
3348
|
exports.stringify = stringify;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/runtime",
|
|
3
|
-
"version": "3.7.0-
|
|
3
|
+
"version": "3.7.0-beta.1",
|
|
4
4
|
"description": "taro runtime for mini apps.",
|
|
5
5
|
"main:h5": "dist/runtime.h5.js",
|
|
6
6
|
"main": "dist/runtime.esm.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"lodash-es": "4.17.21",
|
|
23
|
-
"@tarojs/shared": "3.7.0-
|
|
23
|
+
"@tarojs/shared": "3.7.0-beta.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@rollup/plugin-buble": "^0.21.3",
|