@tarojs/runtime 4.0.10 → 4.0.11

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
@@ -4258,6 +4258,11 @@ function createRecursiveComponentConfig(componentName) {
4258
4258
  }
4259
4259
  }
4260
4260
  : EMPTY_OBJ;
4261
+ // 不同平台的个性化配置
4262
+ const extraOptions = {};
4263
+ if (process.env.TARO_ENV === 'jd') {
4264
+ extraOptions.addGlobalClass = true;
4265
+ }
4261
4266
  return hooks.call('modifyRecursiveComponentConfig', Object.assign({ properties: {
4262
4267
  i: {
4263
4268
  type: Object,
@@ -4269,9 +4274,7 @@ function createRecursiveComponentConfig(componentName) {
4269
4274
  type: String,
4270
4275
  value: ''
4271
4276
  }
4272
- }, options: {
4273
- virtualHost: !isCustomWrapper
4274
- }, methods: {
4277
+ }, options: Object.assign(Object.assign({}, extraOptions), { virtualHost: !isCustomWrapper }), methods: {
4275
4278
  eh: eventHandler
4276
4279
  } }, lifeCycles), { isCustomWrapper });
4277
4280
  }