@tarojs/runtime 3.7.0-alpha.7 → 3.7.0-alpha.8

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.
@@ -3,6 +3,8 @@
3
3
  var shared = require('@tarojs/shared');
4
4
 
5
5
  var PROPERTY_THRESHOLD = 2046;
6
+ var TARO_RUNTIME = 'Taro runtime';
7
+ var HOOKS_APP_ID = 'taro-app';
6
8
  var SET_DATA = '小程序 setData';
7
9
  var PAGE_INIT = '页面初始化';
8
10
  var ROOT_STR = 'root';
@@ -35,6 +37,8 @@ var CONFIRM = 'confirm';
35
37
  var TIME_STAMP = 'timeStamp';
36
38
  var KEY_CODE = 'keyCode';
37
39
  var TOUCHMOVE = 'touchmove';
40
+ var DATE = 'Date';
41
+ var SET_TIMEOUT = 'setTimeout';
38
42
  var CATCHMOVE = 'catchMove';
39
43
  var CATCH_VIEW = 'catch-view';
40
44
  var COMMENT = 'comment';
@@ -50,13 +54,13 @@ var A = 'a';
50
54
  /**
51
55
  * 页面上下文切换时的行为
52
56
  */
53
- var CONTEXT_ACTIONS;
57
+ exports.CONTEXT_ACTIONS = void 0;
54
58
  (function (CONTEXT_ACTIONS) {
55
59
  CONTEXT_ACTIONS["INIT"] = "0";
56
60
  CONTEXT_ACTIONS["RESTORE"] = "1";
57
61
  CONTEXT_ACTIONS["RECOVER"] = "2";
58
62
  CONTEXT_ACTIONS["DESTORY"] = "3";
59
- })(CONTEXT_ACTIONS || (CONTEXT_ACTIONS = {}));
63
+ })(exports.CONTEXT_ACTIONS || (exports.CONTEXT_ACTIONS = {}));
60
64
 
61
65
  var observers = [];
62
66
  /**
@@ -287,6 +291,9 @@ function getComponentsAlias() {
287
291
  }
288
292
  return componentsAlias$1;
289
293
  }
294
+ function convertNumber2PX(value) {
295
+ return value + 'px';
296
+ }
290
297
 
291
298
  var ClassList = function ClassList(className, el) {
292
299
  var this$1$1 = this;
@@ -427,6 +434,7 @@ var componentsAlias;
427
434
  function hydrate(node) {
428
435
  var obj;
429
436
 
437
+ var _a;
430
438
  if (!componentsAlias) {
431
439
  // 初始化 componentsAlias
432
440
  componentsAlias = getComponentsAlias();
@@ -437,7 +445,7 @@ function hydrate(node) {
437
445
  }
438
446
  var nodeName = node.nodeName;
439
447
  if (isText(node)) {
440
- return ( obj = {}, obj["v" /* Shortcuts.Text */] = node.nodeValue, obj["nn" /* Shortcuts.NodeName */] = componentsAlias[nodeName]._num, obj );
448
+ return ( obj = {}, obj["v" /* Shortcuts.Text */] = node.nodeValue, obj["nn" /* Shortcuts.NodeName */] = ((_a = componentsAlias[nodeName]) === null || _a === void 0 ? void 0 : _a._num) || '8', obj );
441
449
  }
442
450
  var data = {};
443
451
  data["nn" /* Shortcuts.NodeName */] = nodeName;
@@ -2537,13 +2545,13 @@ TaroEvent.prototype.preventDefault = function preventDefault () {
2537
2545
  this.defaultPrevented = true;
2538
2546
  };
2539
2547
  prototypeAccessors$1.target.get = function () {
2540
- var _a, _b;
2548
+ var _a, _b, _c;
2541
2549
  var cacheTarget = this.cacheTarget;
2542
2550
  if (!cacheTarget) {
2543
2551
  var target = Object.create(((_a = this.mpEvent) === null || _a === void 0 ? void 0 : _a.target) || null);
2544
- var element = env.document.getElementById(target.id);
2552
+ var element = env.document.getElementById(((_b = target.dataset) === null || _b === void 0 ? void 0 : _b.sid) || target.id || null);
2545
2553
  target.dataset = element !== null ? element.dataset : shared.EMPTY_OBJ;
2546
- for (var key in (_b = this.mpEvent) === null || _b === void 0 ? void 0 : _b.detail) {
2554
+ for (var key in (_c = this.mpEvent) === null || _c === void 0 ? void 0 : _c.detail) {
2547
2555
  target[key] = this.mpEvent.detail[key];
2548
2556
  }
2549
2557
  this.cacheTarget = target;
@@ -2554,19 +2562,19 @@ prototypeAccessors$1.target.get = function () {
2554
2562
  }
2555
2563
  };
2556
2564
  prototypeAccessors$1.currentTarget.get = function () {
2557
- var _a, _b, _c, _d;
2565
+ var _a, _b, _c, _d, _e, _f, _g, _h;
2558
2566
  var cacheCurrentTarget = this.cacheCurrentTarget;
2559
2567
  if (!cacheCurrentTarget) {
2560
2568
  var doc = env.document;
2561
2569
  var currentTarget = Object.create(((_a = this.mpEvent) === null || _a === void 0 ? void 0 : _a.currentTarget) || null);
2562
- var element = doc.getElementById(currentTarget.id);
2563
- var targetElement = doc.getElementById(((_c = (_b = this.mpEvent) === null || _b === void 0 ? void 0 : _b.target) === null || _c === void 0 ? void 0 : _c.id) || null);
2570
+ var element = doc.getElementById(((_b = currentTarget.dataset) === null || _b === void 0 ? void 0 : _b.sid) || currentTarget.id || null);
2571
+ var targetElement = doc.getElementById(((_e = (_d = (_c = this.mpEvent) === null || _c === void 0 ? void 0 : _c.target) === null || _d === void 0 ? void 0 : _d.dataset) === null || _e === void 0 ? void 0 : _e.sid) || ((_g = (_f = this.mpEvent) === null || _f === void 0 ? void 0 : _f.target) === null || _g === void 0 ? void 0 : _g.id) || null);
2564
2572
  if (element === null || (element && element === targetElement)) {
2565
2573
  this.cacheCurrentTarget = this.target;
2566
2574
  return this.target;
2567
2575
  }
2568
2576
  currentTarget.dataset = element.dataset;
2569
- for (var key in (_d = this.mpEvent) === null || _d === void 0 ? void 0 : _d.detail) {
2577
+ for (var key in (_h = this.mpEvent) === null || _h === void 0 ? void 0 : _h.detail) {
2570
2578
  currentTarget[key] = this.mpEvent.detail[key];
2571
2579
  }
2572
2580
  this.cacheCurrentTarget = currentTarget;
@@ -3393,18 +3401,6 @@ var AnchorElement = /*@__PURE__*/(function (TaroElement) {
3393
3401
  return AnchorElement;
3394
3402
  }(TaroElement));
3395
3403
 
3396
- var CustomWrapperElement = /*@__PURE__*/(function (TaroElement) {
3397
- function CustomWrapperElement () {
3398
- TaroElement.apply(this, arguments);
3399
- }if ( TaroElement ) CustomWrapperElement.__proto__ = TaroElement;
3400
- CustomWrapperElement.prototype = Object.create( TaroElement && TaroElement.prototype );
3401
- CustomWrapperElement.prototype.constructor = CustomWrapperElement;
3402
-
3403
-
3404
-
3405
- return CustomWrapperElement;
3406
- }(TaroElement));
3407
-
3408
3404
  var TaroDocument = /*@__PURE__*/(function (TaroElement) {
3409
3405
  function TaroDocument() {
3410
3406
  TaroElement.call(this);
@@ -3431,9 +3427,6 @@ var TaroDocument = /*@__PURE__*/(function (TaroElement) {
3431
3427
  case nodeName === A:
3432
3428
  element = new AnchorElement();
3433
3429
  break;
3434
- case nodeName === CUSTOM_WRAPPER:
3435
- element = new CustomWrapperElement();
3436
- break;
3437
3430
  default:
3438
3431
  element = new TaroElement();
3439
3432
  break;
@@ -3578,17 +3571,17 @@ var History = /*@__PURE__*/(function (Events) {
3578
3571
  __classPrivateFieldGet(this$1$1, _History_instances, "m", _History_reset).call(this$1$1, href);
3579
3572
  }, null);
3580
3573
  // 切换上下文行为
3581
- this.on(CONTEXT_ACTIONS.INIT, function () {
3574
+ this.on(exports.CONTEXT_ACTIONS.INIT, function () {
3582
3575
  __classPrivateFieldGet(this$1$1, _History_instances, "m", _History_reset).call(this$1$1);
3583
3576
  }, null);
3584
- this.on(CONTEXT_ACTIONS.RESTORE, function (pageId) {
3577
+ this.on(exports.CONTEXT_ACTIONS.RESTORE, function (pageId) {
3585
3578
  cache$1.set(pageId, {
3586
3579
  location: __classPrivateFieldGet(this$1$1, _History_location, "f"),
3587
3580
  stack: __classPrivateFieldGet(this$1$1, _History_stack, "f").slice(),
3588
3581
  cur: __classPrivateFieldGet(this$1$1, _History_cur, "f")
3589
3582
  });
3590
3583
  }, null);
3591
- this.on(CONTEXT_ACTIONS.RECOVER, function (pageId) {
3584
+ this.on(exports.CONTEXT_ACTIONS.RECOVER, function (pageId) {
3592
3585
  if (cache$1.has(pageId)) {
3593
3586
  var ctx = cache$1.get(pageId);
3594
3587
  __classPrivateFieldSet(this$1$1, _History_location, ctx.location, "f");
@@ -3596,7 +3589,7 @@ var History = /*@__PURE__*/(function (Events) {
3596
3589
  __classPrivateFieldSet(this$1$1, _History_cur, ctx.cur, "f");
3597
3590
  }
3598
3591
  }, null);
3599
- this.on(CONTEXT_ACTIONS.DESTORY, function (pageId) {
3592
+ this.on(exports.CONTEXT_ACTIONS.DESTORY, function (pageId) {
3600
3593
  cache$1.delete(pageId);
3601
3594
  }, null);
3602
3595
  __classPrivateFieldGet(this, _History_instances, "m", _History_reset).call(this);
@@ -3706,15 +3699,15 @@ var Location = /*@__PURE__*/(function (Events) {
3706
3699
  __classPrivateFieldSet(this$1$1, _Location_noCheckUrl, false, "f");
3707
3700
  }, null);
3708
3701
  // 切换上下文行为
3709
- this.on(CONTEXT_ACTIONS.INIT, function () {
3702
+ this.on(exports.CONTEXT_ACTIONS.INIT, function () {
3710
3703
  __classPrivateFieldGet(this$1$1, _Location_instances, "m", _Location_reset).call(this$1$1);
3711
3704
  }, null);
3712
- this.on(CONTEXT_ACTIONS.RESTORE, function (pageId) {
3705
+ this.on(exports.CONTEXT_ACTIONS.RESTORE, function (pageId) {
3713
3706
  cache.set(pageId, {
3714
3707
  lastHref: this$1$1.href,
3715
3708
  });
3716
3709
  }, null);
3717
- this.on(CONTEXT_ACTIONS.RECOVER, function (pageId) {
3710
+ this.on(exports.CONTEXT_ACTIONS.RECOVER, function (pageId) {
3718
3711
  // 数据恢复时,不需要执行跳转
3719
3712
  if (cache.has(pageId)) {
3720
3713
  var ctx = cache.get(pageId);
@@ -3723,7 +3716,7 @@ var Location = /*@__PURE__*/(function (Events) {
3723
3716
  __classPrivateFieldSet(this$1$1, _Location_noCheckUrl, false, "f");
3724
3717
  }
3725
3718
  }, null);
3726
- this.on(CONTEXT_ACTIONS.DESTORY, function (pageId) {
3719
+ this.on(exports.CONTEXT_ACTIONS.DESTORY, function (pageId) {
3727
3720
  cache.delete(pageId);
3728
3721
  }, null);
3729
3722
  }
@@ -4024,24 +4017,24 @@ if (process.env.TARO_ENV && !shared.isWebPlatform()) {
4024
4017
  Window.prototype.initEvent = function initEvent () {
4025
4018
  var _location = this.location;
4026
4019
  var _history = this.history;
4027
- this.on(CONTEXT_ACTIONS.INIT, function (pageId) {
4020
+ this.on(exports.CONTEXT_ACTIONS.INIT, function (pageId) {
4028
4021
  // 页面onload,为该页面建立新的上下文信息
4029
- _location.trigger(CONTEXT_ACTIONS.INIT, pageId);
4022
+ _location.trigger(exports.CONTEXT_ACTIONS.INIT, pageId);
4030
4023
  }, null);
4031
- this.on(CONTEXT_ACTIONS.RECOVER, function (pageId) {
4024
+ this.on(exports.CONTEXT_ACTIONS.RECOVER, function (pageId) {
4032
4025
  // 页面onshow,恢复当前页面的上下文信息
4033
- _location.trigger(CONTEXT_ACTIONS.RECOVER, pageId);
4034
- _history.trigger(CONTEXT_ACTIONS.RECOVER, pageId);
4026
+ _location.trigger(exports.CONTEXT_ACTIONS.RECOVER, pageId);
4027
+ _history.trigger(exports.CONTEXT_ACTIONS.RECOVER, pageId);
4035
4028
  }, null);
4036
- this.on(CONTEXT_ACTIONS.RESTORE, function (pageId) {
4029
+ this.on(exports.CONTEXT_ACTIONS.RESTORE, function (pageId) {
4037
4030
  // 页面onhide,缓存当前页面的上下文信息
4038
- _location.trigger(CONTEXT_ACTIONS.RESTORE, pageId);
4039
- _history.trigger(CONTEXT_ACTIONS.RESTORE, pageId);
4031
+ _location.trigger(exports.CONTEXT_ACTIONS.RESTORE, pageId);
4032
+ _history.trigger(exports.CONTEXT_ACTIONS.RESTORE, pageId);
4040
4033
  }, null);
4041
- this.on(CONTEXT_ACTIONS.DESTORY, function (pageId) {
4034
+ this.on(exports.CONTEXT_ACTIONS.DESTORY, function (pageId) {
4042
4035
  // 页面onunload,清除当前页面的上下文信息
4043
- _location.trigger(CONTEXT_ACTIONS.DESTORY, pageId);
4044
- _history.trigger(CONTEXT_ACTIONS.DESTORY, pageId);
4036
+ _location.trigger(exports.CONTEXT_ACTIONS.DESTORY, pageId);
4037
+ _history.trigger(exports.CONTEXT_ACTIONS.DESTORY, pageId);
4045
4038
  }, null);
4046
4039
  };
4047
4040
  prototypeAccessors.document.get = function () {
@@ -4212,7 +4205,7 @@ function createPageConfig(component, pageName, data, pageConfig) {
4212
4205
  setCurrentRouter(this);
4213
4206
  // 初始化当前页面的上下文信息
4214
4207
  if (!isWeb) {
4215
- exports.window.trigger(CONTEXT_ACTIONS.INIT, $taroPath);
4208
+ exports.window.trigger(exports.CONTEXT_ACTIONS.INIT, $taroPath);
4216
4209
  }
4217
4210
  var mount = function () {
4218
4211
  Current.app.mount(component, $taroPath, function () {
@@ -4240,7 +4233,7 @@ function createPageConfig(component, pageName, data, pageConfig) {
4240
4233
  var $taroPath = this.$taroPath;
4241
4234
  // 销毁当前页面的上下文信息
4242
4235
  if (!isWeb) {
4243
- exports.window.trigger(CONTEXT_ACTIONS.DESTORY, $taroPath);
4236
+ exports.window.trigger(exports.CONTEXT_ACTIONS.DESTORY, $taroPath);
4244
4237
  }
4245
4238
  // 触发onUnload生命周期
4246
4239
  safeExecute($taroPath, ONUNLOAD);
@@ -4279,7 +4272,7 @@ function createPageConfig(component, pageName, data, pageConfig) {
4279
4272
  setCurrentRouter(this$1$1);
4280
4273
  // 恢复上下文信息
4281
4274
  if (!isWeb) {
4282
- exports.window.trigger(CONTEXT_ACTIONS.RECOVER, this$1$1.$taroPath);
4275
+ exports.window.trigger(exports.CONTEXT_ACTIONS.RECOVER, this$1$1.$taroPath);
4283
4276
  }
4284
4277
  // 触发生命周期
4285
4278
  safeExecute(this$1$1.$taroPath, ON_SHOW, options);
@@ -4290,7 +4283,7 @@ function createPageConfig(component, pageName, data, pageConfig) {
4290
4283
  config[ONHIDE] = function () {
4291
4284
  // 缓存当前页面上下文信息
4292
4285
  if (!isWeb) {
4293
- exports.window.trigger(CONTEXT_ACTIONS.RESTORE, this.$taroPath);
4286
+ exports.window.trigger(exports.CONTEXT_ACTIONS.RESTORE, this.$taroPath);
4294
4287
  }
4295
4288
  // 设置 Current 的 page 和 router
4296
4289
  if (Current.page === this) {
@@ -4303,11 +4296,24 @@ function createPageConfig(component, pageName, data, pageConfig) {
4303
4296
  eventCenter.trigger(getOnHideEventKey(id));
4304
4297
  };
4305
4298
  LIFECYCLES.forEach(function (lifecycle) {
4299
+ var isDefer = false;
4300
+ lifecycle = lifecycle.replace(/^defer:/, function () {
4301
+ isDefer = true;
4302
+ return '';
4303
+ });
4306
4304
  config[lifecycle] = function () {
4305
+ var arguments$1 = arguments;
4306
+ var this$1$1 = this;
4307
4307
  var i = arguments.length, argsArray = Array(i);
4308
4308
  while ( i-- ) argsArray[i] = arguments[i];
4309
4309
 
4310
- return safeExecute.apply(void 0, [ this.$taroPath, lifecycle ].concat( argsArray ));
4310
+ var exec = function () { return safeExecute.apply(void 0, [ this$1$1.$taroPath, lifecycle ].concat( arguments$1 )); };
4311
+ if (isDefer) {
4312
+ hasLoaded.then(exec);
4313
+ }
4314
+ else {
4315
+ return exec();
4316
+ }
4311
4317
  };
4312
4318
  });
4313
4319
  // onShareAppMessage 和 onShareTimeline 一样,会影响小程序右上方按钮的选项,因此不能默认注册。
@@ -4353,7 +4359,8 @@ function createComponentConfig(component, componentName, data) {
4353
4359
 
4354
4360
  var _a;
4355
4361
  perf.start(PAGE_INIT);
4356
- var path = getPath(id, { id: ((_a = this.getPageId) === null || _a === void 0 ? void 0 : _a.call(this)) || pageId() });
4362
+ this.pageIdCache = ((_a = this.getPageId) === null || _a === void 0 ? void 0 : _a.call(this)) || pageId();
4363
+ var path = getPath(id, { id: this.pageIdCache });
4357
4364
  Current.app.mount(component, path, function () {
4358
4365
  componentElement = env.document.getElementById(path);
4359
4366
  shared.ensure(componentElement !== null, '没有找到组件实例。');
@@ -4366,7 +4373,7 @@ function createComponentConfig(component, componentName, data) {
4366
4373
  });
4367
4374
  };
4368
4375
  config[DETACHED] = function () {
4369
- var path = getPath(id, { id: this.getPageId() });
4376
+ var path = getPath(id, { id: this.pageIdCache });
4370
4377
  Current.app.unmount(path, function () {
4371
4378
  instances.delete(path);
4372
4379
  if (componentElement) {
@@ -4483,37 +4490,99 @@ Object.defineProperty(exports, 'hooks', {
4483
4490
  enumerable: true,
4484
4491
  get: function () { return shared.hooks; }
4485
4492
  });
4493
+ exports.A = A;
4494
+ exports.APP = APP;
4495
+ exports.BEHAVIORS = BEHAVIORS;
4496
+ exports.BODY = BODY;
4497
+ exports.CATCHMOVE = CATCHMOVE;
4498
+ exports.CATCH_VIEW = CATCH_VIEW;
4499
+ exports.CHANGE = CHANGE;
4500
+ exports.CLASS = CLASS;
4501
+ exports.COMMENT = COMMENT;
4502
+ exports.CONFIRM = CONFIRM;
4503
+ exports.CONTAINER = CONTAINER;
4504
+ exports.CURRENT_TARGET = CURRENT_TARGET;
4505
+ exports.CUSTOM_WRAPPER = CUSTOM_WRAPPER;
4486
4506
  exports.Current = Current;
4507
+ exports.DATASET = DATASET;
4508
+ exports.DATE = DATE;
4509
+ exports.DOCUMENT_ELEMENT_NAME = DOCUMENT_ELEMENT_NAME;
4510
+ exports.DOCUMENT_FRAGMENT = DOCUMENT_FRAGMENT;
4511
+ exports.EVENT_CALLBACK_RESULT = EVENT_CALLBACK_RESULT;
4512
+ exports.EXTERNAL_CLASSES = EXTERNAL_CLASSES;
4513
+ exports.FOCUS = FOCUS;
4487
4514
  exports.FormElement = FormElement;
4515
+ exports.HEAD = HEAD;
4516
+ exports.HOOKS_APP_ID = HOOKS_APP_ID;
4517
+ exports.HTML = HTML;
4488
4518
  exports.History = History;
4519
+ exports.ID = ID;
4520
+ exports.INPUT = INPUT;
4521
+ exports.KEY_CODE = KEY_CODE;
4489
4522
  exports.Location = Location;
4490
4523
  exports.MutationObserver = MutationObserver;
4524
+ exports.OBJECT = OBJECT;
4525
+ exports.ON_HIDE = ON_HIDE;
4526
+ exports.ON_LOAD = ON_LOAD;
4527
+ exports.ON_READY = ON_READY;
4528
+ exports.ON_SHOW = ON_SHOW;
4529
+ exports.OPTIONS = OPTIONS;
4530
+ exports.PAGE_INIT = PAGE_INIT;
4531
+ exports.PROPERTY_THRESHOLD = PROPERTY_THRESHOLD;
4532
+ exports.PROPS = PROPS;
4533
+ exports.PURE_VIEW = PURE_VIEW;
4534
+ exports.ROOT_STR = ROOT_STR;
4535
+ exports.SET_DATA = SET_DATA;
4536
+ exports.SET_TIMEOUT = SET_TIMEOUT;
4537
+ exports.STATIC_VIEW = STATIC_VIEW;
4538
+ exports.STYLE = STYLE;
4491
4539
  exports.SVGElement = SVGElement;
4492
4540
  exports.Style = Style;
4541
+ exports.TARGET = TARGET;
4542
+ exports.TARO_RUNTIME = TARO_RUNTIME;
4543
+ exports.TIME_STAMP = TIME_STAMP;
4544
+ exports.TOUCHMOVE = TOUCHMOVE;
4545
+ exports.TYPE = TYPE;
4493
4546
  exports.TaroElement = TaroElement;
4494
4547
  exports.TaroEvent = TaroEvent;
4495
4548
  exports.TaroNode = TaroNode;
4496
4549
  exports.TaroRootElement = TaroRootElement;
4497
4550
  exports.TaroText = TaroText;
4551
+ exports.UID = UID;
4498
4552
  exports.URL = URL;
4499
4553
  exports.URLSearchParams = URLSearchParams;
4554
+ exports.VALUE = VALUE;
4555
+ exports.VIEW = VIEW;
4500
4556
  exports.addLeadingSlash = addLeadingSlash;
4501
4557
  exports.cancelAnimationFrame = _caf;
4558
+ exports.convertNumber2PX = convertNumber2PX;
4502
4559
  exports.createComponentConfig = createComponentConfig;
4503
4560
  exports.createEvent = createEvent;
4504
4561
  exports.createPageConfig = createPageConfig;
4505
4562
  exports.createRecursiveComponentConfig = createRecursiveComponentConfig;
4563
+ exports.customWrapperCache = customWrapperCache;
4564
+ exports.env = env;
4506
4565
  exports.eventCenter = eventCenter;
4507
4566
  exports.eventHandler = eventHandler;
4508
4567
  exports.eventSource = eventSource;
4568
+ exports.extend = extend;
4569
+ exports.getComponentsAlias = getComponentsAlias;
4509
4570
  exports.getComputedStyle = getComputedStyle;
4510
4571
  exports.getCurrentInstance = getCurrentInstance;
4572
+ exports.getOnHideEventKey = getOnHideEventKey;
4573
+ exports.getOnReadyEventKey = getOnReadyEventKey;
4574
+ exports.getOnShowEventKey = getOnShowEventKey;
4511
4575
  exports.getPageInstance = getPageInstance;
4512
4576
  exports.getPath = getPath;
4513
4577
  exports.history = history;
4514
4578
  exports.hydrate = hydrate;
4515
4579
  exports.incrementId = incrementId;
4516
4580
  exports.injectPageInstance = injectPageInstance;
4581
+ exports.isComment = isComment;
4582
+ exports.isElement = isElement;
4583
+ exports.isHasExtractProp = isHasExtractProp;
4584
+ exports.isParentBinded = isParentBinded;
4585
+ exports.isText = isText;
4517
4586
  exports.location = location;
4518
4587
  exports.navigator = nav;
4519
4588
  exports.nextTick = nextTick;
@@ -4522,4 +4591,5 @@ exports.parseUrl = parseUrl;
4522
4591
  exports.removePageInstance = removePageInstance;
4523
4592
  exports.requestAnimationFrame = _raf;
4524
4593
  exports.safeExecute = safeExecute;
4594
+ exports.shortcutAttr = shortcutAttr;
4525
4595
  exports.stringify = stringify;