@tarojs/runtime 4.0.0-beta.133 → 4.0.0-beta.134

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/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import env from "./env.js";
2
2
  export { hooks } from '@tarojs/shared';
3
- export { document } from "./bom/document.js";
4
- export { getComputedStyle } from "./bom/getComputedStyle.js";
3
+ export { taroDocumentProvider as document } from "./bom/document.js";
4
+ export { taroGetComputedStyleProvider as getComputedStyle } from "./bom/getComputedStyle.js";
5
5
  export { History } from "./bom/history.js";
6
6
  export { Location } from "./bom/location.js";
7
7
  export { nav as navigator } from "./bom/navigator.js";
8
8
  export { caf as cancelAnimationFrame, now, raf as requestAnimationFrame } from "./bom/raf.js";
9
- export { parseUrl, URL } from "./bom/URL.js";
9
+ export { parseUrl, TaroURLProvider as URL } from "./bom/URL.js";
10
10
  export { URLSearchParams } from "./bom/URLSearchParams.js";
11
- export { history, location, window } from "./bom/window.js";
11
+ export { taroHistoryProvider as history, taroLocationProvider as location, taroWindowProvider as window } from "./bom/window.js";
12
12
  export { TaroElement } from "./dom/element.js";
13
13
  export { createEvent, eventHandler, TaroEvent } from "./dom/event.js";
14
14
  export { FormElement } from "./dom/form.js";
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import './dom-external/index.js';
2
2
  export { default as env } from './env.js';
3
3
  export { Events, hooks } from '@tarojs/shared';
4
- export { document } from './bom/document.js';
5
- export { getComputedStyle } from './bom/getComputedStyle.js';
4
+ export { taroDocumentProvider as document } from './bom/document.js';
5
+ export { taroGetComputedStyleProvider as getComputedStyle } from './bom/getComputedStyle.js';
6
6
  export { History } from './bom/history.js';
7
7
  export { Location } from './bom/location.js';
8
8
  export { nav as navigator } from './bom/navigator.js';
9
9
  export { caf as cancelAnimationFrame, now, raf as requestAnimationFrame } from './bom/raf.js';
10
- export { URL, parseUrl } from './bom/URL.js';
10
+ export { TaroURLProvider as URL, parseUrl } from './bom/URL.js';
11
11
  export { URLSearchParams } from './bom/URLSearchParams.js';
12
- export { history, location, window } from './bom/window.js';
12
+ export { taroHistoryProvider as history, taroLocationProvider as location, taroWindowProvider as window } from './bom/window.js';
13
13
  export { TaroElement } from './dom/element.js';
14
14
  export { TaroEvent, createEvent, eventHandler } from './dom/event.js';
15
15
  export { FormElement } from './dom/form.js';
@@ -330,9 +330,11 @@ interface Env {
330
330
  document: TaroDocument;
331
331
  }
332
332
  declare const env: Env;
333
- declare const document: TaroDocument;
333
+ // Note: 小程序端 vite 打包成 commonjs,const document = xxx 会报错,所以把 document 改为 taroDocumentProvider
334
+ declare const taroDocumentProvider: TaroDocument;
334
335
  type TGetComputedStyle = typeof window.getComputedStyle | ((el: TaroElement) => Style);
335
- declare const getComputedStyle: TGetComputedStyle;
336
+ // Note: 小程序端 vite 打包成 commonjs,const getComputedStyle = xxx 会报错,所以把 GetComputedStyle 改为 taroGetComputedStyleProvider
337
+ declare const taroGetComputedStyleProvider: TGetComputedStyle;
336
338
  declare const eventCenter: Events;
337
339
  type EventsType = typeof Events;
338
340
  /**
@@ -462,7 +464,8 @@ declare class TaroURL {
462
464
  href: string;
463
465
  };
464
466
  }
465
- declare const URL: typeof TaroURL;
467
+ // Note: 小程序端 vite 打包成 commonjs,const URL = xxx 会报错,所以把 URL 改为 TaroURLProvider
468
+ declare const TaroURLProvider: typeof TaroURL;
466
469
  declare function parseUrl(url?: string): {
467
470
  href: string;
468
471
  origin: string;
@@ -492,9 +495,10 @@ declare class TaroWindow extends Events {
492
495
  setTimeout(...args: Parameters<typeof setTimeout>): NodeJS.Timeout;
493
496
  clearTimeout(...args: Parameters<typeof clearTimeout>): void;
494
497
  }
495
- declare const window: TaroWindow;
496
- declare const location: TaroLocation;
497
- declare const history: TaroHistory;
498
+ // Note: 小程序端 vite 打包成 commonjs,const window = xxx 会报错,所以把 window 改为 taroWindowProvider,location 和 history 同理
499
+ declare const taroWindowProvider: TaroWindow;
500
+ declare const taroLocationProvider: TaroLocation;
501
+ declare const taroHistoryProvider: TaroHistory;
498
502
  // for Vue3
499
503
  declare class SVGElement extends TaroElement {
500
504
  }
@@ -803,4 +807,4 @@ declare const getHomePage: (path?: string, basename?: string, customRoutes?: Rec
803
807
  declare const getCurrentPage: (routerMode?: string, basename?: string) => string;
804
808
  declare function handlePolyfill(): void;
805
809
  export { hooks } from '@tarojs/shared';
806
- 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, COMPILE_MODE, 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, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, perf, incrementId, isElement, isText, isComment, isHasExtractProp, isParentBinded, shortcutAttr, customWrapperCache, extend, getComponentsAlias, convertNumber2PX, throttle, debounce, addLeadingSlash, hasBasename, stripBasename, stripTrailing, stripSuffix, getHomePage, getCurrentPage, Instance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, Attributes, EventOptions, MpEvent, EventListenerOptions, AddEventListenerOptions, EventHandler, MpInstance, MiniElementData, MiniTextData, MiniData, HydratedData, UpdatePayloadValue, DataTree, UpdatePayload, Options$1 as Options, TFunc, PageConfig, handlePolyfill };
810
+ export { taroDocumentProvider as document, taroGetComputedStyleProvider as getComputedStyle, History, Location, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, parseUrl, TaroURLProvider as URL, URLSearchParams, taroHistoryProvider as history, taroLocationProvider as location, taroWindowProvider as 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, COMPILE_MODE, 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, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, perf, incrementId, isElement, isText, isComment, isHasExtractProp, isParentBinded, shortcutAttr, customWrapperCache, extend, getComponentsAlias, convertNumber2PX, throttle, debounce, addLeadingSlash, hasBasename, stripBasename, stripTrailing, stripSuffix, getHomePage, getCurrentPage, Instance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, Attributes, EventOptions, MpEvent, EventListenerOptions, AddEventListenerOptions, EventHandler, MpInstance, MiniElementData, MiniTextData, MiniData, HydratedData, UpdatePayloadValue, DataTree, UpdatePayload, Options$1 as Options, TFunc, PageConfig, handlePolyfill };
@@ -236,7 +236,8 @@ const env = {
236
236
  document: process.env.TARO_PLATFORM === 'web' ? document : EMPTY_OBJ
237
237
  };
238
238
 
239
- const getComputedStyle = process.env.TARO_PLATFORM === 'web' ? env.window.getComputedStyle : function (element) {
239
+ // Note: 小程序端 vite 打包成 commonjs,const getComputedStyle = xxx 会报错,所以把 GetComputedStyle 改为 taroGetComputedStyleProvider
240
+ const taroGetComputedStyleProvider = process.env.TARO_PLATFORM === 'web' ? env.window.getComputedStyle : function (element) {
240
241
  return element.style;
241
242
  };
242
243
 
@@ -427,11 +428,19 @@ const URLSearchParams = process.env.TARO_PLATFORM === 'web' ? env.window.URLSear
427
428
  for (let pairs = query.split('&'), i = 0, length = pairs.length; i < length; i++) {
428
429
  const value = pairs[i];
429
430
  const index = value.indexOf('=');
430
- if (index > -1) {
431
- appendTo(dict, decode(value.slice(0, index)), decode(value.slice(index + 1)));
431
+ // 针对不规范的 url 参数做容错处理,如:word=你%好
432
+ try {
433
+ if (index > -1) {
434
+ appendTo(dict, decode(value.slice(0, index)), decode(value.slice(index + 1)));
435
+ }
436
+ else if (value.length) {
437
+ appendTo(dict, decode(value), '');
438
+ }
432
439
  }
433
- else if (value.length) {
434
- appendTo(dict, decode(value), '');
440
+ catch (err) {
441
+ if (process.env.NODE_ENV !== 'production') {
442
+ console.warn(`[Taro warn] URL 参数 ${value} decode 异常`);
443
+ }
435
444
  }
436
445
  }
437
446
  }
@@ -650,7 +659,8 @@ class TaroURL {
650
659
  }
651
660
  }
652
661
  _TaroURL_hash = new WeakMap(), _TaroURL_hostname = new WeakMap(), _TaroURL_pathname = new WeakMap(), _TaroURL_port = new WeakMap(), _TaroURL_protocol = new WeakMap(), _TaroURL_search = new WeakMap();
653
- const URL = process.env.TARO_PLATFORM === 'web' ? env.window.URL : TaroURL;
662
+ // Note: 小程序端 vite 打包成 commonjs,const URL = xxx 会报错,所以把 URL 改为 TaroURLProvider
663
+ const TaroURLProvider = process.env.TARO_PLATFORM === 'web' ? env.window.URL : TaroURL;
654
664
  function parseUrl(url = '') {
655
665
  const result = {
656
666
  href: '',
@@ -723,7 +733,7 @@ class TaroLocation extends Events {
723
733
  super();
724
734
  _TaroLocation_instances.add(this);
725
735
  /* private property */
726
- _TaroLocation_url.set(this, new URL(INIT_URL));
736
+ _TaroLocation_url.set(this, new TaroURLProvider(INIT_URL));
727
737
  _TaroLocation_noCheckUrl.set(this, false);
728
738
  _TaroLocation_window.set(this, void 0);
729
739
  __classPrivateFieldSet(this, _TaroLocation_window, options.window, "f");
@@ -900,7 +910,7 @@ _TaroLocation_url = new WeakMap(), _TaroLocation_noCheckUrl = new WeakMap(), _Ta
900
910
  });
901
911
  const searchStr = searchArr.length > 0 ? '?' + searchArr.join('&') : '';
902
912
  const url = `${INIT_URL}${path.startsWith('/') ? path : '/' + path}${searchStr}`;
903
- __classPrivateFieldSet(this, _TaroLocation_url, new URL(url), "f");
913
+ __classPrivateFieldSet(this, _TaroLocation_url, new TaroURLProvider(url), "f");
904
914
  this.trigger('__reset_history__', this.href);
905
915
  }
906
916
  }, _TaroLocation_getPreValue = function _TaroLocation_getPreValue() {
@@ -983,12 +993,12 @@ let now;
983
993
  let lastTime = 0;
984
994
  // https://gist.github.com/paulirish/1579671
985
995
  // https://gist.github.com/jalbam/5fe05443270fa6d8136238ec72accbc0
986
- const _raf = typeof requestAnimationFrame !== 'undefined' && requestAnimationFrame !== null ? requestAnimationFrame : function (callback) {
996
+ const _raf = process.env.TARO_PLATFORM === 'web' ? requestAnimationFrame : function (callback) {
987
997
  const _now = now();
988
998
  const nextTime = Math.max(lastTime + 16, _now); // First time will execute it immediately but barely noticeable and performance is gained.
989
999
  return setTimeout(function () { callback(lastTime = nextTime); }, nextTime - _now);
990
1000
  };
991
- const _caf = typeof cancelAnimationFrame !== 'undefined' && cancelAnimationFrame !== null
1001
+ const _caf = process.env.TARO_PLATFORM === 'web'
992
1002
  ? cancelAnimationFrame
993
1003
  : function (seed) {
994
1004
  // fix https://github.com/NervJS/taro/issues/7749
@@ -1001,7 +1011,7 @@ class TaroWindow extends Events {
1001
1011
  this.navigator = nav;
1002
1012
  this.requestAnimationFrame = _raf;
1003
1013
  this.cancelAnimationFrame = _caf;
1004
- this.getComputedStyle = getComputedStyle;
1014
+ this.getComputedStyle = taroGetComputedStyleProvider;
1005
1015
  const globalProperties = [
1006
1016
  ...Object.getOwnPropertyNames(global || {}),
1007
1017
  ...Object.getOwnPropertySymbols(global || {})
@@ -1071,9 +1081,10 @@ class TaroWindow extends Events {
1071
1081
  return clearTimeout(...args);
1072
1082
  }
1073
1083
  }
1074
- const window$1 = process.env.TARO_PLATFORM === 'web' ? env.window : (env.window = new TaroWindow());
1075
- const location = window$1.location;
1076
- const history = window$1.history;
1084
+ // Note: 小程序端 vite 打包成 commonjs,const window = xxx 会报错,所以把 window 改为 taroWindowProvider,location history 同理
1085
+ const taroWindowProvider = process.env.TARO_PLATFORM === 'web' ? env.window : (env.window = new TaroWindow());
1086
+ const taroLocationProvider = taroWindowProvider.location;
1087
+ const taroHistoryProvider = taroWindowProvider.history;
1077
1088
 
1078
1089
  // export const removeLeadingSlash = (str = '') => str.replace(/^\.?\//, '')
1079
1090
  // export const removeTrailingSearch = (str = '') => str.replace(/\?[\s\S]*$/, '')
@@ -1090,8 +1101,8 @@ const getHomePage = (path = '', basename = '', customRoutes = {}, entryPagePath
1090
1101
  };
1091
1102
  const getCurrentPage = (routerMode = 'hash', basename = '/') => {
1092
1103
  const pagePath = routerMode === 'hash'
1093
- ? location.hash.slice(1).split('?')[0]
1094
- : location.pathname;
1104
+ ? taroLocationProvider.hash.slice(1).split('?')[0]
1105
+ : taroLocationProvider.pathname;
1095
1106
  return addLeadingSlash(stripBasename(pagePath, basename));
1096
1107
  };
1097
1108
 
@@ -3367,14 +3378,15 @@ class TaroEvent {
3367
3378
  this.defaultPrevented = true;
3368
3379
  }
3369
3380
  get target() {
3370
- var _a, _b, _c, _d;
3381
+ var _a, _b, _c, _d, _e;
3371
3382
  const cacheTarget = this.cacheTarget;
3372
3383
  if (!cacheTarget) {
3373
3384
  const target = Object.create(((_a = this.mpEvent) === null || _a === void 0 ? void 0 : _a.target) || null);
3385
+ const currentEle = env.document.getElementById(((_b = target.dataset) === null || _b === void 0 ? void 0 : _b.sid) || target.id || null);
3374
3386
  // Note:优先判断冒泡场景alipay的targetDataset的sid, 不然冒泡场景target属性吐出不对,其余拿取当前绑定id
3375
- const element = env.document.getElementById(((_b = target.targetDataset) === null || _b === void 0 ? void 0 : _b.sid) || ((_c = target.dataset) === null || _c === void 0 ? void 0 : _c.sid) || target.id || null);
3376
- target.dataset = element !== null ? element.dataset : EMPTY_OBJ;
3377
- for (const key in (_d = this.mpEvent) === null || _d === void 0 ? void 0 : _d.detail) {
3387
+ const element = env.document.getElementById(((_c = target.targetDataset) === null || _c === void 0 ? void 0 : _c.sid) || ((_d = target.dataset) === null || _d === void 0 ? void 0 : _d.sid) || target.id || null);
3388
+ target.dataset = Object.assign(Object.assign({}, (currentEle !== null ? currentEle.dataset : EMPTY_OBJ)), (element !== null ? element.dataset : EMPTY_OBJ));
3389
+ for (const key in (_e = this.mpEvent) === null || _e === void 0 ? void 0 : _e.detail) {
3378
3390
  target[key] = this.mpEvent.detail[key];
3379
3391
  }
3380
3392
  this.cacheTarget = target;
@@ -3911,7 +3923,8 @@ function createDocument() {
3911
3923
  doc.body = body;
3912
3924
  return doc;
3913
3925
  }
3914
- const document$1 = process.env.TARO_PLATFORM === 'web' ? env.document : (env.document = createDocument());
3926
+ // Note: 小程序端 vite 打包成 commonjs,const document = xxx 会报错,所以把 document 改为 taroDocumentProvider
3927
+ const taroDocumentProvider = process.env.TARO_PLATFORM === 'web' ? env.document : (env.document = createDocument());
3915
3928
 
3916
3929
  // for Vue3
3917
3930
  class SVGElement extends TaroElement {
@@ -4014,7 +4027,7 @@ function createPageConfig(component, pageName, data, pageConfig) {
4014
4027
  setCurrentRouter(this);
4015
4028
  // 初始化当前页面的上下文信息
4016
4029
  if (process.env.TARO_PLATFORM !== 'web') {
4017
- window$1.trigger(CONTEXT_ACTIONS.INIT, $taroPath);
4030
+ taroWindowProvider.trigger(CONTEXT_ACTIONS.INIT, $taroPath);
4018
4031
  }
4019
4032
  const mount = () => {
4020
4033
  Current.app.mount(component, $taroPath, () => {
@@ -4042,7 +4055,7 @@ function createPageConfig(component, pageName, data, pageConfig) {
4042
4055
  const $taroPath = this.$taroPath;
4043
4056
  // 销毁当前页面的上下文信息
4044
4057
  if (process.env.TARO_PLATFORM !== 'web') {
4045
- window$1.trigger(CONTEXT_ACTIONS.DESTORY, $taroPath);
4058
+ taroWindowProvider.trigger(CONTEXT_ACTIONS.DESTORY, $taroPath);
4046
4059
  }
4047
4060
  // 触发onUnload生命周期
4048
4061
  safeExecute($taroPath, ONUNLOAD);
@@ -4076,7 +4089,7 @@ function createPageConfig(component, pageName, data, pageConfig) {
4076
4089
  setCurrentRouter(this);
4077
4090
  // 恢复上下文信息
4078
4091
  if (process.env.TARO_PLATFORM !== 'web') {
4079
- window$1.trigger(CONTEXT_ACTIONS.RECOVER, this.$taroPath);
4092
+ taroWindowProvider.trigger(CONTEXT_ACTIONS.RECOVER, this.$taroPath);
4080
4093
  }
4081
4094
  // 触发生命周期
4082
4095
  safeExecute(this.$taroPath, ON_SHOW, options);
@@ -4087,7 +4100,7 @@ function createPageConfig(component, pageName, data, pageConfig) {
4087
4100
  [ONHIDE]() {
4088
4101
  // 缓存当前页面上下文信息
4089
4102
  if (process.env.TARO_PLATFORM !== 'web') {
4090
- window$1.trigger(CONTEXT_ACTIONS.RESTORE, this.$taroPath);
4103
+ taroWindowProvider.trigger(CONTEXT_ACTIONS.RESTORE, this.$taroPath);
4091
4104
  }
4092
4105
  // 设置 Current 的 page 和 router
4093
4106
  if (Current.page === this) {
@@ -5052,5 +5065,5 @@ if (process.env.SUPPORT_TARO_POLYFILL !== 'disabled' && process.env.TARO_PLATFOR
5052
5065
  handlePolyfill();
5053
5066
  }
5054
5067
 
5055
- export { A, APP, BEHAVIORS, BODY, CATCHMOVE, CATCH_VIEW, CHANGE, CLASS, COMMENT, COMPILE_MODE, 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$1 as 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, convertNumber2PX, createComponentConfig, createEvent, createPageConfig, createRecursiveComponentConfig, customWrapperCache, debounce, document$1 as document, env, eventCenter, eventHandler, eventSource, extend, getComponentsAlias, getComputedStyle, getCurrentInstance, getCurrentPage, getHomePage, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, handlePolyfill, hasBasename, history, hydrate, incrementId, injectPageInstance, isComment, isElement, isHasExtractProp, isParentBinded, isText, location, nav as navigator, nextTick, now, options, parseUrl, perf, removePageInstance, _raf as requestAnimationFrame, safeExecute, shortcutAttr, stringify, stripBasename, stripSuffix, stripTrailing, throttle, window$1 as window };
5068
+ export { A, APP, BEHAVIORS, BODY, CATCHMOVE, CATCH_VIEW, CHANGE, CLASS, COMMENT, COMPILE_MODE, 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$1 as 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, TaroURLProvider as URL, URLSearchParams, VALUE, VIEW, addLeadingSlash, _caf as cancelAnimationFrame, convertNumber2PX, createComponentConfig, createEvent, createPageConfig, createRecursiveComponentConfig, customWrapperCache, debounce, taroDocumentProvider as document, env, eventCenter, eventHandler, eventSource, extend, getComponentsAlias, taroGetComputedStyleProvider as getComputedStyle, getCurrentInstance, getCurrentPage, getHomePage, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, handlePolyfill, hasBasename, taroHistoryProvider as history, hydrate, incrementId, injectPageInstance, isComment, isElement, isHasExtractProp, isParentBinded, isText, taroLocationProvider as location, nav as navigator, nextTick, now, options, parseUrl, perf, removePageInstance, _raf as requestAnimationFrame, safeExecute, shortcutAttr, stringify, stripBasename, stripSuffix, stripTrailing, throttle, taroWindowProvider as window };
5056
5069
  //# sourceMappingURL=runtime.esm.js.map