@tarojs/runtime 4.0.10 → 4.0.12

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.
Files changed (72) hide show
  1. package/dist/bom/URL.d.ts +6 -3
  2. package/dist/bom/URLSearchParams.d.ts +2 -1
  3. package/dist/bom/document.d.ts +3 -2
  4. package/dist/bom/getComputedStyle.d.ts +5 -4
  5. package/dist/bom/history.d.ts +7 -5
  6. package/dist/bom/location.d.ts +5 -3
  7. package/dist/bom/navigator.d.ts +2 -1
  8. package/dist/bom/raf.d.ts +2 -2
  9. package/dist/bom/window.d.ts +9 -8
  10. package/dist/constants/index.d.ts +53 -52
  11. package/dist/current.d.ts +5 -5
  12. package/dist/dom/anchor-element.d.ts +3 -2
  13. package/dist/dom/class-list.d.ts +3 -2
  14. package/dist/dom/document.d.ts +10 -6
  15. package/dist/dom/element.d.ts +7 -6
  16. package/dist/dom/event-source.d.ts +3 -3
  17. package/dist/dom/event-target.d.ts +3 -2
  18. package/dist/dom/event.d.ts +6 -5
  19. package/dist/dom/form.d.ts +4 -3
  20. package/dist/dom/node.d.ts +39 -8
  21. package/dist/dom/root.d.ts +4 -3
  22. package/dist/dom/style.d.ts +3 -2
  23. package/dist/dom/svg.d.ts +3 -2
  24. package/dist/dom/text.d.ts +4 -3
  25. package/dist/dom/transfer.d.ts +3 -2
  26. package/dist/dom/tree.d.ts +3 -3
  27. package/dist/dom-external/element.d.ts +4 -3
  28. package/dist/dom-external/inner-html/html.d.ts +3 -2
  29. package/dist/dom-external/inner-html/parser.d.ts +7 -7
  30. package/dist/dom-external/inner-html/scaner.d.ts +3 -3
  31. package/dist/dom-external/inner-html/style.d.ts +3 -3
  32. package/dist/dom-external/inner-html/tags.d.ts +6 -5
  33. package/dist/dom-external/inner-html/utils.d.ts +2 -1
  34. package/dist/dom-external/mutation-observer/implements.d.ts +25 -6
  35. package/dist/dom-external/mutation-observer/index.d.ts +5 -6
  36. package/dist/dom-external/node.d.ts +6 -5
  37. package/dist/dsl/common.d.ts +15 -14
  38. package/dist/dsl/common.js +6 -3
  39. package/dist/dsl/common.js.map +1 -1
  40. package/dist/emitter/emitter.d.ts +2 -2
  41. package/dist/env.d.ts +2 -2
  42. package/dist/hydrate.d.ts +5 -4
  43. package/dist/index-26658829.d.ts +23 -0
  44. package/dist/index.cjs.d.ts +813 -0
  45. package/dist/index.cjs.js +10 -7
  46. package/dist/index.cjs.js.map +1 -1
  47. package/dist/index.d.ts +32 -33
  48. package/dist/{dsl/instance.d.ts → instance-530729bd.d.ts} +14 -13
  49. package/dist/next-tick.d.ts +3 -2
  50. package/dist/{dom/node_types.d.ts → node_types-9ac5b4dd.d.ts} +2 -1
  51. package/dist/{interface/options.d.ts → options-530729bd.d.ts} +5 -4
  52. package/dist/options.d.ts +3 -2
  53. package/dist/perf.d.ts +2 -2
  54. package/dist/polyfill/array.d.ts +3 -2
  55. package/dist/polyfill/intersection-observer.d.ts +2 -1
  56. package/dist/polyfill/object.d.ts +4 -3
  57. package/dist/{dom-external/mutation-observer/record.d.ts → record-32b054d8.d.ts} +4 -3
  58. package/dist/runtime.esm.d.ts +813 -0
  59. package/dist/runtime.esm.js +6 -3
  60. package/dist/runtime.esm.js.map +1 -1
  61. package/dist/utils/cache.d.ts +2 -1
  62. package/dist/utils/index.d.ts +18 -17
  63. package/dist/utils/lodash.d.ts +3 -2
  64. package/dist/utils/router.d.ts +8 -7
  65. package/package.json +4 -4
  66. package/dist/interface/element.d.ts +0 -4
  67. package/dist/interface/event-target.d.ts +0 -11
  68. package/dist/interface/event.d.ts +0 -15
  69. package/dist/interface/hydrate.d.ts +0 -29
  70. package/dist/interface/index.d.ts +0 -7
  71. package/dist/interface/node.d.ts +0 -7
  72. package/dist/interface/utils.d.ts +0 -2
package/dist/index.cjs.js CHANGED
@@ -4259,6 +4259,11 @@ function createRecursiveComponentConfig(componentName) {
4259
4259
  }
4260
4260
  }
4261
4261
  : shared.EMPTY_OBJ;
4262
+ // 不同平台的个性化配置
4263
+ const extraOptions = {};
4264
+ if (process.env.TARO_ENV === 'jd') {
4265
+ extraOptions.addGlobalClass = true;
4266
+ }
4262
4267
  return shared.hooks.call('modifyRecursiveComponentConfig', Object.assign({ properties: {
4263
4268
  i: {
4264
4269
  type: Object,
@@ -4270,9 +4275,7 @@ function createRecursiveComponentConfig(componentName) {
4270
4275
  type: String,
4271
4276
  value: ''
4272
4277
  }
4273
- }, options: {
4274
- virtualHost: !isCustomWrapper
4275
- }, methods: {
4278
+ }, options: Object.assign(Object.assign({}, extraOptions), { virtualHost: !isCustomWrapper }), methods: {
4276
4279
  eh: eventHandler
4277
4280
  } }, lifeCycles), { isCustomWrapper });
4278
4281
  }
@@ -5087,12 +5090,12 @@ if (process.env.SUPPORT_TARO_POLYFILL !== 'disabled' && process.env.TARO_PLATFOR
5087
5090
  }
5088
5091
 
5089
5092
  Object.defineProperty(exports, "Events", {
5090
- enumerable: true,
5091
- get: function () { return shared.Events; }
5093
+ enumerable: true,
5094
+ get: function () { return shared.Events; }
5092
5095
  });
5093
5096
  Object.defineProperty(exports, "hooks", {
5094
- enumerable: true,
5095
- get: function () { return shared.hooks; }
5097
+ enumerable: true,
5098
+ get: function () { return shared.hooks; }
5096
5099
  });
5097
5100
  exports.A = A;
5098
5101
  exports.APP = APP;