@mpxjs/webpack-plugin 2.9.66 → 2.9.67

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 (77) hide show
  1. package/lib/dependencies/RecordGlobalComponentsDependency.js +11 -12
  2. package/lib/dependencies/RecordRuntimeInfoDependency.js +1 -1
  3. package/lib/index.js +23 -7
  4. package/lib/json-compiler/index.js +2 -11
  5. package/lib/loader.js +24 -45
  6. package/lib/native-loader.js +49 -64
  7. package/lib/platform/json/wx/index.js +3 -10
  8. package/lib/platform/style/wx/index.js +15 -10
  9. package/lib/react/index.js +4 -3
  10. package/lib/react/processJSON.js +5 -13
  11. package/lib/react/processMainScript.js +7 -3
  12. package/lib/react/processScript.js +3 -4
  13. package/lib/react/processTemplate.js +2 -2
  14. package/lib/resolver/AddModePlugin.js +17 -4
  15. package/lib/runtime/components/react/dist/mpx-button.jsx +1 -1
  16. package/lib/runtime/components/react/dist/mpx-checkbox-group.jsx +30 -17
  17. package/lib/runtime/components/react/dist/mpx-checkbox.jsx +1 -1
  18. package/lib/runtime/components/react/dist/mpx-form.jsx +33 -24
  19. package/lib/runtime/components/react/dist/mpx-icon.jsx +1 -1
  20. package/lib/runtime/components/react/dist/mpx-image/index.jsx +1 -1
  21. package/lib/runtime/components/react/dist/mpx-input.jsx +44 -38
  22. package/lib/runtime/components/react/dist/mpx-label.jsx +10 -7
  23. package/lib/runtime/components/react/dist/mpx-movable-area.jsx +10 -17
  24. package/lib/runtime/components/react/dist/mpx-movable-view.jsx +378 -294
  25. package/lib/runtime/components/react/dist/mpx-navigator.jsx +1 -1
  26. package/lib/runtime/components/react/dist/mpx-radio-group.jsx +30 -17
  27. package/lib/runtime/components/react/dist/mpx-radio.jsx +1 -1
  28. package/lib/runtime/components/react/dist/mpx-root-portal.jsx +1 -1
  29. package/lib/runtime/components/react/dist/mpx-scroll-view.jsx +49 -29
  30. package/lib/runtime/components/react/dist/mpx-swiper/carouse.jsx +1 -1
  31. package/lib/runtime/components/react/dist/mpx-swiper/index.jsx +1 -1
  32. package/lib/runtime/components/react/dist/mpx-swiper-item.jsx +1 -1
  33. package/lib/runtime/components/react/dist/mpx-switch.jsx +8 -1
  34. package/lib/runtime/components/react/dist/mpx-text.jsx +1 -1
  35. package/lib/runtime/components/react/dist/mpx-textarea.jsx +1 -1
  36. package/lib/runtime/components/react/dist/mpx-view.jsx +1 -1
  37. package/lib/runtime/components/react/dist/mpx-web-view.jsx +1 -1
  38. package/lib/runtime/components/react/dist/useAnimationHooks.js +96 -8
  39. package/lib/runtime/components/react/dist/utils.jsx +12 -3
  40. package/lib/runtime/components/react/getInnerListeners.ts +1 -0
  41. package/lib/runtime/components/react/mpx-button.tsx +1 -1
  42. package/lib/runtime/components/react/mpx-checkbox-group.tsx +52 -29
  43. package/lib/runtime/components/react/mpx-checkbox.tsx +1 -1
  44. package/lib/runtime/components/react/mpx-form.tsx +42 -34
  45. package/lib/runtime/components/react/mpx-icon.tsx +1 -1
  46. package/lib/runtime/components/react/mpx-image/index.tsx +2 -3
  47. package/lib/runtime/components/react/mpx-input.tsx +68 -66
  48. package/lib/runtime/components/react/mpx-label.tsx +11 -8
  49. package/lib/runtime/components/react/mpx-movable-area.tsx +11 -19
  50. package/lib/runtime/components/react/mpx-movable-view.tsx +456 -334
  51. package/lib/runtime/components/react/mpx-navigator.tsx +1 -1
  52. package/lib/runtime/components/react/mpx-radio-group.tsx +55 -29
  53. package/lib/runtime/components/react/mpx-radio.tsx +1 -1
  54. package/lib/runtime/components/react/mpx-root-portal.tsx +1 -1
  55. package/lib/runtime/components/react/mpx-scroll-view.tsx +81 -36
  56. package/lib/runtime/components/react/mpx-swiper/carouse.tsx +2 -2
  57. package/lib/runtime/components/react/mpx-swiper/index.tsx +2 -1
  58. package/lib/runtime/components/react/mpx-swiper-item.tsx +1 -1
  59. package/lib/runtime/components/react/mpx-switch.tsx +10 -2
  60. package/lib/runtime/components/react/mpx-text.tsx +1 -1
  61. package/lib/runtime/components/react/mpx-textarea.tsx +1 -1
  62. package/lib/runtime/components/react/mpx-view.tsx +1 -1
  63. package/lib/runtime/components/react/mpx-web-view.tsx +1 -1
  64. package/lib/runtime/components/react/useAnimationHooks.ts +97 -13
  65. package/lib/runtime/components/react/useNodesRef.ts +1 -0
  66. package/lib/runtime/components/react/utils.tsx +18 -3
  67. package/lib/runtime/optionProcessorReact.js +0 -15
  68. package/lib/runtime/swanHelper.wxs +1 -1
  69. package/lib/style-compiler/index.js +1 -1
  70. package/lib/style-compiler/plugins/scope-id.js +1 -0
  71. package/lib/template-compiler/compiler.js +46 -16
  72. package/lib/template-compiler/index.js +4 -4
  73. package/lib/utils/pre-process-json.js +113 -0
  74. package/lib/web/index.js +5 -4
  75. package/lib/web/processJSON.js +5 -13
  76. package/lib/web/processTemplate.js +2 -2
  77. package/package.json +4 -4
@@ -12,7 +12,7 @@ module.exports = function (template, {
12
12
  srcMode,
13
13
  moduleId,
14
14
  ctorType,
15
- usingComponents,
15
+ usingComponentsInfo,
16
16
  componentGenerics
17
17
  }, callback) {
18
18
  const mpx = loaderContext.getMpx()
@@ -73,7 +73,7 @@ module.exports = function (template, {
73
73
  const { root, meta } = templateCompiler.parse(template.content, {
74
74
  warn,
75
75
  error,
76
- usingComponents,
76
+ usingComponentsInfo, // processTemplate中无其他地方使用,直接透传 string 类型
77
77
  hasComment,
78
78
  isNative,
79
79
  ctorType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.9.66",
3
+ "version": "2.9.67",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"
@@ -28,7 +28,7 @@
28
28
  "@better-scroll/wheel": "^2.5.1",
29
29
  "@better-scroll/zoom": "^2.5.1",
30
30
  "@mpxjs/template-engine": "^2.8.7",
31
- "@mpxjs/utils": "^2.9.65",
31
+ "@mpxjs/utils": "^2.9.67",
32
32
  "acorn": "^8.11.3",
33
33
  "acorn-walk": "^7.2.0",
34
34
  "async": "^2.6.0",
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "devDependencies": {
84
84
  "@ant-design/react-native": "^5.2.2",
85
- "@mpxjs/api-proxy": "^2.9.66",
85
+ "@mpxjs/api-proxy": "^2.9.67",
86
86
  "@types/babel-traverse": "^6.25.4",
87
87
  "@types/babel-types": "^7.0.4",
88
88
  "@types/react": "^18.2.79",
@@ -97,5 +97,5 @@
97
97
  "engines": {
98
98
  "node": ">=14.14.0"
99
99
  },
100
- "gitHead": "ff9eb06a3be28538870823cebf813ed56f39bbd7"
100
+ "gitHead": "b23d3850c16543c5998811b8d1d8e6ee7988c0f8"
101
101
  }