@mpxjs/webpack-plugin 2.10.16-beta.4 → 2.10.16-beta.6

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 (201) hide show
  1. package/lib/config.js +60 -0
  2. package/lib/file-loader.js +13 -3
  3. package/lib/json-compiler/index.js +2 -2
  4. package/lib/loader.js +2 -2
  5. package/lib/platform/json/wx/index.js +6 -0
  6. package/lib/platform/template/wx/component-config/ad.js +5 -0
  7. package/lib/platform/template/wx/component-config/button.js +9 -2
  8. package/lib/platform/template/wx/component-config/camera.js +13 -3
  9. package/lib/platform/template/wx/component-config/canvas.js +8 -1
  10. package/lib/platform/template/wx/component-config/cover-image.js +7 -2
  11. package/lib/platform/template/wx/component-config/cover-view.js +3 -1
  12. package/lib/platform/template/wx/component-config/fix-component-name.js +2 -2
  13. package/lib/platform/template/wx/component-config/form.js +27 -2
  14. package/lib/platform/template/wx/component-config/image.js +5 -0
  15. package/lib/platform/template/wx/component-config/input.js +10 -0
  16. package/lib/platform/template/wx/component-config/label.js +10 -2
  17. package/lib/platform/template/wx/component-config/map.js +11 -0
  18. package/lib/platform/template/wx/component-config/movable-area.js +4 -1
  19. package/lib/platform/template/wx/component-config/movable-view.js +17 -2
  20. package/lib/platform/template/wx/component-config/navigator.js +26 -0
  21. package/lib/platform/template/wx/component-config/picker-view.js +12 -0
  22. package/lib/platform/template/wx/component-config/picker.js +3 -1
  23. package/lib/platform/template/wx/component-config/progress.js +11 -1
  24. package/lib/platform/template/wx/component-config/rich-text.js +5 -0
  25. package/lib/platform/template/wx/component-config/scroll-view.js +12 -1
  26. package/lib/platform/template/wx/component-config/slider.js +8 -0
  27. package/lib/platform/template/wx/component-config/swiper-item.js +5 -2
  28. package/lib/platform/template/wx/component-config/swiper.js +10 -0
  29. package/lib/platform/template/wx/component-config/text.js +5 -0
  30. package/lib/platform/template/wx/component-config/textarea.js +19 -2
  31. package/lib/platform/template/wx/component-config/unsupported.js +9 -0
  32. package/lib/platform/template/wx/component-config/video.js +10 -0
  33. package/lib/platform/template/wx/index.js +21 -1
  34. package/lib/runtime/components/react/context.ts +10 -6
  35. package/lib/runtime/components/react/dist/context.d.ts +75 -0
  36. package/lib/runtime/components/react/dist/context.d.ts.map +1 -0
  37. package/lib/runtime/components/react/dist/event.config.d.ts +8 -0
  38. package/lib/runtime/components/react/dist/event.config.d.ts.map +1 -0
  39. package/lib/runtime/components/react/dist/getInnerListeners.d.ts +8 -0
  40. package/lib/runtime/components/react/dist/getInnerListeners.d.ts.map +1 -0
  41. package/lib/runtime/components/react/dist/mpx-async-suspense.d.ts +13 -0
  42. package/lib/runtime/components/react/dist/mpx-async-suspense.d.ts.map +1 -0
  43. package/lib/runtime/components/react/dist/mpx-button.d.ts +69 -0
  44. package/lib/runtime/components/react/dist/mpx-button.d.ts.map +1 -0
  45. package/lib/runtime/components/react/dist/mpx-camera.d.ts +28 -0
  46. package/lib/runtime/components/react/dist/mpx-camera.d.ts.map +1 -0
  47. package/lib/runtime/components/react/dist/mpx-canvas/Bus.d.ts +24 -0
  48. package/lib/runtime/components/react/dist/mpx-canvas/Bus.d.ts.map +1 -0
  49. package/lib/runtime/components/react/dist/mpx-canvas/CanvasGradient.d.ts +8 -0
  50. package/lib/runtime/components/react/dist/mpx-canvas/CanvasGradient.d.ts.map +1 -0
  51. package/lib/runtime/components/react/dist/mpx-canvas/CanvasRenderingContext2D.d.ts +7 -0
  52. package/lib/runtime/components/react/dist/mpx-canvas/CanvasRenderingContext2D.d.ts.map +1 -0
  53. package/lib/runtime/components/react/dist/mpx-canvas/Image.d.ts +21 -0
  54. package/lib/runtime/components/react/dist/mpx-canvas/Image.d.ts.map +1 -0
  55. package/lib/runtime/components/react/dist/mpx-canvas/ImageData.d.ts +9 -0
  56. package/lib/runtime/components/react/dist/mpx-canvas/ImageData.d.ts.map +1 -0
  57. package/lib/runtime/components/react/dist/mpx-canvas/constructorsRegistry.d.ts +11 -0
  58. package/lib/runtime/components/react/dist/mpx-canvas/constructorsRegistry.d.ts.map +1 -0
  59. package/lib/runtime/components/react/dist/mpx-canvas/html.d.ts +3 -0
  60. package/lib/runtime/components/react/dist/mpx-canvas/html.d.ts.map +1 -0
  61. package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts +33 -0
  62. package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts.map +1 -0
  63. package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts +53 -0
  64. package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts.map +1 -0
  65. package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts +21 -0
  66. package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts.map +1 -0
  67. package/lib/runtime/components/react/dist/mpx-checkbox.d.ts +33 -0
  68. package/lib/runtime/components/react/dist/mpx-checkbox.d.ts.map +1 -0
  69. package/lib/runtime/components/react/dist/mpx-form.d.ts +28 -0
  70. package/lib/runtime/components/react/dist/mpx-form.d.ts.map +1 -0
  71. package/lib/runtime/components/react/dist/mpx-icon/index.d.ts +19 -0
  72. package/lib/runtime/components/react/dist/mpx-icon/index.d.ts.map +1 -0
  73. package/lib/runtime/components/react/dist/mpx-image.d.ts +22 -0
  74. package/lib/runtime/components/react/dist/mpx-image.d.ts.map +1 -0
  75. package/lib/runtime/components/react/dist/mpx-inline-text.d.ts +8 -0
  76. package/lib/runtime/components/react/dist/mpx-inline-text.d.ts.map +1 -0
  77. package/lib/runtime/components/react/dist/mpx-input.d.ts +50 -0
  78. package/lib/runtime/components/react/dist/mpx-input.d.ts.map +1 -0
  79. package/lib/runtime/components/react/dist/mpx-input.jsx +35 -9
  80. package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.d.ts +13 -0
  81. package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.d.ts.map +1 -0
  82. package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.jsx +46 -53
  83. package/lib/runtime/components/react/dist/mpx-label.d.ts +21 -0
  84. package/lib/runtime/components/react/dist/mpx-label.d.ts.map +1 -0
  85. package/lib/runtime/components/react/dist/mpx-movable-area.d.ts +21 -0
  86. package/lib/runtime/components/react/dist/mpx-movable-area.d.ts.map +1 -0
  87. package/lib/runtime/components/react/dist/mpx-movable-view.d.ts +66 -0
  88. package/lib/runtime/components/react/dist/mpx-movable-view.d.ts.map +1 -0
  89. package/lib/runtime/components/react/dist/mpx-nav.d.ts +9 -0
  90. package/lib/runtime/components/react/dist/mpx-nav.d.ts.map +1 -0
  91. package/lib/runtime/components/react/dist/mpx-nav.jsx +132 -0
  92. package/lib/runtime/components/react/dist/mpx-navigator.d.ts +10 -0
  93. package/lib/runtime/components/react/dist/mpx-navigator.d.ts.map +1 -0
  94. package/lib/runtime/components/react/dist/mpx-picker/date.d.ts +7 -0
  95. package/lib/runtime/components/react/dist/mpx-picker/date.d.ts.map +1 -0
  96. package/lib/runtime/components/react/dist/mpx-picker/dateData.d.ts +8 -0
  97. package/lib/runtime/components/react/dist/mpx-picker/dateData.d.ts.map +1 -0
  98. package/lib/runtime/components/react/dist/mpx-picker/index.d.ts +7 -0
  99. package/lib/runtime/components/react/dist/mpx-picker/index.d.ts.map +1 -0
  100. package/lib/runtime/components/react/dist/mpx-picker/multiSelector.d.ts +7 -0
  101. package/lib/runtime/components/react/dist/mpx-picker/multiSelector.d.ts.map +1 -0
  102. package/lib/runtime/components/react/dist/mpx-picker/region.d.ts +7 -0
  103. package/lib/runtime/components/react/dist/mpx-picker/region.d.ts.map +1 -0
  104. package/lib/runtime/components/react/dist/mpx-picker/regionData.d.ts +3 -0
  105. package/lib/runtime/components/react/dist/mpx-picker/regionData.d.ts.map +1 -0
  106. package/lib/runtime/components/react/dist/mpx-picker/selector.d.ts +7 -0
  107. package/lib/runtime/components/react/dist/mpx-picker/selector.d.ts.map +1 -0
  108. package/lib/runtime/components/react/dist/mpx-picker/time.d.ts +7 -0
  109. package/lib/runtime/components/react/dist/mpx-picker/time.d.ts.map +1 -0
  110. package/lib/runtime/components/react/dist/mpx-picker/type.d.ts +107 -0
  111. package/lib/runtime/components/react/dist/mpx-picker/type.d.ts.map +1 -0
  112. package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts +33 -0
  113. package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts.map +1 -0
  114. package/lib/runtime/components/react/dist/mpx-picker-view/index.jsx +1 -1
  115. package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.d.ts +9 -0
  116. package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.d.ts.map +1 -0
  117. package/lib/runtime/components/react/dist/mpx-picker-view-column/index.d.ts +24 -0
  118. package/lib/runtime/components/react/dist/mpx-picker-view-column/index.d.ts.map +1 -0
  119. package/lib/runtime/components/react/dist/mpx-picker-view-column/index.jsx +3 -12
  120. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.d.ts +15 -0
  121. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.d.ts.map +1 -0
  122. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.d.ts +14 -0
  123. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.d.ts.map +1 -0
  124. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewFaces.d.ts +17 -0
  125. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewFaces.d.ts.map +1 -0
  126. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewIndicator.d.ts +13 -0
  127. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewIndicator.d.ts.map +1 -0
  128. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewMask.d.ts +12 -0
  129. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewMask.d.ts.map +1 -0
  130. package/lib/runtime/components/react/dist/mpx-popup/index.d.ts +23 -0
  131. package/lib/runtime/components/react/dist/mpx-popup/index.d.ts.map +1 -0
  132. package/lib/runtime/components/react/dist/mpx-popup/popupBase.d.ts +17 -0
  133. package/lib/runtime/components/react/dist/mpx-popup/popupBase.d.ts.map +1 -0
  134. package/lib/runtime/components/react/dist/mpx-portal/index.d.ts +16 -0
  135. package/lib/runtime/components/react/dist/mpx-portal/index.d.ts.map +1 -0
  136. package/lib/runtime/components/react/dist/mpx-portal/portal-host.d.ts +30 -0
  137. package/lib/runtime/components/react/dist/mpx-portal/portal-host.d.ts.map +1 -0
  138. package/lib/runtime/components/react/dist/mpx-portal/portal-manager.d.ts +10 -0
  139. package/lib/runtime/components/react/dist/mpx-portal/portal-manager.d.ts.map +1 -0
  140. package/lib/runtime/components/react/dist/mpx-progress.d.ts +24 -0
  141. package/lib/runtime/components/react/dist/mpx-progress.d.ts.map +1 -0
  142. package/lib/runtime/components/react/dist/mpx-radio-group.d.ts +21 -0
  143. package/lib/runtime/components/react/dist/mpx-radio-group.d.ts.map +1 -0
  144. package/lib/runtime/components/react/dist/mpx-radio.d.ts +27 -0
  145. package/lib/runtime/components/react/dist/mpx-radio.d.ts.map +1 -0
  146. package/lib/runtime/components/react/dist/mpx-rich-text/html.d.ts +2 -0
  147. package/lib/runtime/components/react/dist/mpx-rich-text/html.d.ts.map +1 -0
  148. package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts +25 -0
  149. package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts.map +1 -0
  150. package/lib/runtime/components/react/dist/mpx-root-portal.d.ts +15 -0
  151. package/lib/runtime/components/react/dist/mpx-root-portal.d.ts.map +1 -0
  152. package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts +55 -0
  153. package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts.map +1 -0
  154. package/lib/runtime/components/react/dist/mpx-simple-text.d.ts +8 -0
  155. package/lib/runtime/components/react/dist/mpx-simple-text.d.ts.map +1 -0
  156. package/lib/runtime/components/react/dist/mpx-simple-view.d.ts +8 -0
  157. package/lib/runtime/components/react/dist/mpx-simple-view.d.ts.map +1 -0
  158. package/lib/runtime/components/react/dist/mpx-slider.d.ts +31 -0
  159. package/lib/runtime/components/react/dist/mpx-slider.d.ts.map +1 -0
  160. package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts +18 -0
  161. package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts.map +1 -0
  162. package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts +16 -0
  163. package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts.map +1 -0
  164. package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts +19 -0
  165. package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts.map +1 -0
  166. package/lib/runtime/components/react/dist/mpx-swiper.d.ts +53 -0
  167. package/lib/runtime/components/react/dist/mpx-swiper.d.ts.map +1 -0
  168. package/lib/runtime/components/react/dist/mpx-switch.d.ts +27 -0
  169. package/lib/runtime/components/react/dist/mpx-switch.d.ts.map +1 -0
  170. package/lib/runtime/components/react/dist/mpx-text.d.ts +23 -0
  171. package/lib/runtime/components/react/dist/mpx-text.d.ts.map +1 -0
  172. package/lib/runtime/components/react/dist/mpx-textarea.d.ts +8 -0
  173. package/lib/runtime/components/react/dist/mpx-textarea.d.ts.map +1 -0
  174. package/lib/runtime/components/react/dist/mpx-video.d.ts +102 -0
  175. package/lib/runtime/components/react/dist/mpx-video.d.ts.map +1 -0
  176. package/lib/runtime/components/react/dist/mpx-view.d.ts +35 -0
  177. package/lib/runtime/components/react/dist/mpx-view.d.ts.map +1 -0
  178. package/lib/runtime/components/react/dist/mpx-web-view.d.ts +23 -0
  179. package/lib/runtime/components/react/dist/mpx-web-view.d.ts.map +1 -0
  180. package/lib/runtime/components/react/dist/parser.d.ts +40 -0
  181. package/lib/runtime/components/react/dist/parser.d.ts.map +1 -0
  182. package/lib/runtime/components/react/dist/useAnimationHooks.d.ts +33 -0
  183. package/lib/runtime/components/react/dist/useAnimationHooks.d.ts.map +1 -0
  184. package/lib/runtime/components/react/dist/useNodesRef.d.ts +12 -0
  185. package/lib/runtime/components/react/dist/useNodesRef.d.ts.map +1 -0
  186. package/lib/runtime/components/react/dist/utils.d.ts +123 -0
  187. package/lib/runtime/components/react/dist/utils.d.ts.map +1 -0
  188. package/lib/runtime/components/react/mpx-camera.tsx +1 -1
  189. package/lib/runtime/components/react/mpx-input.tsx +41 -16
  190. package/lib/runtime/components/react/mpx-keyboard-avoiding-view.tsx +48 -58
  191. package/lib/runtime/components/react/mpx-nav.tsx +155 -0
  192. package/lib/runtime/components/react/mpx-picker-view/index.tsx +1 -1
  193. package/lib/runtime/components/react/mpx-picker-view-column/index.tsx +7 -13
  194. package/lib/runtime/components/react/types/common.d.ts +19 -0
  195. package/lib/runtime/stringify.wxs +2 -2
  196. package/lib/style-compiler/strip-conditional-loader.js +27 -4
  197. package/lib/template-compiler/bind-this.js +2 -2
  198. package/lib/template-compiler/compiler.js +18 -17
  199. package/lib/template-compiler/index.js +6 -6
  200. package/lib/utils/dom-tag-config.js +5 -5
  201. package/package.json +4 -1
@@ -11,6 +11,7 @@ module.exports = function ({ print }) {
11
11
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
12
12
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
13
13
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
14
+ const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
14
15
 
15
16
  return {
16
17
  test: TAG_NAME,
@@ -49,7 +50,8 @@ module.exports = function ({ print }) {
49
50
  qa: qaPropLog,
50
51
  ios: iosPropLog,
51
52
  android: androidPropLog,
52
- harmony: harmonyPropLog
53
+ harmony: harmonyPropLog,
54
+ ks: ksPropLog
53
55
  }
54
56
  ],
55
57
  event: [
@@ -10,6 +10,7 @@ module.exports = function ({ print }) {
10
10
  const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
11
11
  const jdEventLog = print({ platform: 'jd', tag: TAG_NAME, isError: false, type: 'event' })
12
12
  const qqPropLog = print({ platform: 'qq', tag: TAG_NAME, isError: false })
13
+ const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
13
14
 
14
15
  return {
15
16
  test: TAG_NAME,
@@ -55,6 +56,14 @@ module.exports = function ({ print }) {
55
56
  }
56
57
  obj.name = propsMap[obj.name]
57
58
  return obj
59
+ },
60
+ ks (obj) {
61
+ const propsMap = {
62
+ activeColor: 'active-color',
63
+ backgroundColor: 'background-color'
64
+ }
65
+ obj.name = propsMap[obj.name]
66
+ return obj
58
67
  }
59
68
  },
60
69
  {
@@ -76,7 +85,8 @@ module.exports = function ({ print }) {
76
85
  ali: aliEventLog,
77
86
  swan: baiduEventLog,
78
87
  tt: ttEventLog,
79
- jd: jdEventLog
88
+ jd: jdEventLog,
89
+ ks: ksEventLog
80
90
  }
81
91
  ]
82
92
  }
@@ -5,6 +5,7 @@ module.exports = function ({ print }) {
5
5
  const baiduPropLog = print({ platform: 'baidu', tag: TAG_NAME, isError: false })
6
6
  const ttPropLog = print({ platform: 'bytedance', tag: TAG_NAME, isError: false })
7
7
  const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
8
+ const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
8
9
 
9
10
  return {
10
11
  test: TAG_NAME,
@@ -35,6 +36,10 @@ module.exports = function ({ print }) {
35
36
  {
36
37
  test: /^(nodes)$/,
37
38
  jd: jdPropLog
39
+ },
40
+ {
41
+ test: /^(user-select)$/,
42
+ ks: ksPropLog
38
43
  }
39
44
  ]
40
45
  }
@@ -18,6 +18,8 @@ module.exports = function ({ print }) {
18
18
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
19
19
  const iosEventLog = print({ platform: 'ios', tag: TAG_NAME, isError: false, type: 'event' })
20
20
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
21
+ const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
22
+ const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
21
23
 
22
24
  return {
23
25
  test: TAG_NAME,
@@ -67,6 +69,10 @@ module.exports = function ({ print }) {
67
69
  {
68
70
  test: /^(refresher-default-style|refresher-background)$/,
69
71
  ios: iosPropLog
72
+ },
73
+ {
74
+ test: /^(scroll-into-view-offset|enable-back-to-top|enable-passive|refresher-enabled|refresher-threshold|refresher-default-style|refresher-background|refresher-triggered|bounces|fast-deceleration|enable-flex|enhanced|paging-enabled|using-sticky|type|associative-container|reverse|clip|enable-back-to-top|cache-extent|min-drag-distance|scroll-into-view-within-extent|scroll-into-view-alignment|padding|refresher-two-level-enabled|refresher-two-level-triggered|refresher-two-level-threshold|refresher-two-level-close-threshold|refresher-two-level-close-threshold|refresher-two-level-scroll-enabled|refresher-ballistic-refresh-enabled|refresher-two-level-pinned|scroll-anchoring)$/,
75
+ ks: ksPropLog
70
76
  }
71
77
  ],
72
78
  event: [
@@ -90,13 +96,18 @@ module.exports = function ({ print }) {
90
96
  ali: aliEventLog,
91
97
  tt: ttEventLog,
92
98
  qq: qqEventLog,
93
- swan: baiduEventLog
99
+ swan: baiduEventLog,
100
+ ks: ksEventLog
94
101
  },
95
102
  {
96
103
  test: /^(refresherpulling|refresherrestore|refresherabort)$/,
97
104
  android: androidEventLog,
98
105
  ios: iosEventLog,
99
106
  harmony: harmonyEventLog
107
+ },
108
+ {
109
+ test: /^(scrollstart|scrollend|refresherwillrefresh|refresherstatuschange)$/,
110
+ ks: ksEventLog
100
111
  }
101
112
  ]
102
113
  }
@@ -60,6 +60,14 @@ module.exports = function ({ print }) {
60
60
  }
61
61
  obj.name = propsMap[obj.name]
62
62
  return obj
63
+ },
64
+ ks (obj) {
65
+ const propsMap = {
66
+ activeColor: 'active-color',
67
+ backgroundColor: 'background-color'
68
+ }
69
+ obj.name = propsMap[obj.name]
70
+ return obj
63
71
  }
64
72
  }
65
73
  ]
@@ -9,6 +9,7 @@ module.exports = function ({ print }) {
9
9
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
10
10
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
11
11
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
12
+ const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
12
13
 
13
14
  return {
14
15
  test: TAG_NAME,
@@ -34,7 +35,8 @@ module.exports = function ({ print }) {
34
35
  ali: aliPropLog,
35
36
  ios: iosPropLog,
36
37
  android: androidPropLog,
37
- harmony: harmonyPropLog
38
+ harmony: harmonyPropLog,
39
+ ks: ksPropLog
38
40
  },
39
41
  {
40
42
  test: /^(skip-hidden-item-layout)$/,
@@ -42,7 +44,8 @@ module.exports = function ({ print }) {
42
44
  ali: aliPropLog,
43
45
  tt: ttPropLog,
44
46
  swan: baiduPropLog,
45
- qq: qqPropLog
47
+ qq: qqPropLog,
48
+ ks: ksPropLog
46
49
  }
47
50
  ]
48
51
  }
@@ -7,6 +7,7 @@ module.exports = function ({ print }) {
7
7
  const qqPropLog = print({ platform: 'qq', tag: TAG_NAME, isError: false })
8
8
  const ttPropLog = print({ platform: 'bytedance', tag: TAG_NAME, isError: false })
9
9
  const webPropLog = print({ platform: 'web', tag: TAG_NAME, isError: false })
10
+ const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
10
11
  const jdEventLog = print({ platform: 'jd', tag: TAG_NAME, isError: false, type: 'event' })
11
12
  const jdPropLog = print({ platform: 'jd', tag: TAG_NAME, isError: false })
12
13
  const qaPropLog = print({ platform: 'qa', tag: TAG_NAME, isError: false })
@@ -16,6 +17,7 @@ module.exports = function ({ print }) {
16
17
  const androidEventLog = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
17
18
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
18
19
  const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
20
+ const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
19
21
 
20
22
  return {
21
23
  test: TAG_NAME,
@@ -69,6 +71,10 @@ module.exports = function ({ print }) {
69
71
  ios: iosPropLog,
70
72
  android: androidPropLog,
71
73
  harmony: harmonyPropLog
74
+ },
75
+ {
76
+ test: /^(snap-to-edge|previous-margin|next-margin|display-multiple-items|direction|layout-type|transformer-type|indicator-type|indicator-margin|indicator-spacing|indicator-radius|indicator-width|indicator-height|indicator-alignment|indicator-offset|scroll-with-animation|cache-extent)$/,
77
+ ks: ksPropLog
72
78
  }
73
79
  ],
74
80
  event: [
@@ -95,6 +101,10 @@ module.exports = function ({ print }) {
95
101
  ios: iosEventLog,
96
102
  android: androidEventLog,
97
103
  harmony: harmonyEventLog
104
+ },
105
+ {
106
+ test: /^(onscrollstart|onscrollupdate|onscrollend)$/,
107
+ ks: ksEventLog
98
108
  }
99
109
  ]
100
110
  }
@@ -9,6 +9,7 @@ module.exports = function ({ print }) {
9
9
  const iosPropLog = print({ platform: 'ios', tag: TAG_NAME, isError: false })
10
10
  const androidPropLog = print({ platform: 'android', tag: TAG_NAME, isError: false })
11
11
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
12
+ const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
12
13
 
13
14
  return {
14
15
  test: TAG_NAME,
@@ -74,6 +75,10 @@ module.exports = function ({ print }) {
74
75
  el.isSimple = true
75
76
  return false
76
77
  }
78
+ },
79
+ {
80
+ test: /^(user-select|overflow|max-lines|decode)$/,
81
+ ks: ksPropLog
77
82
  }
78
83
  ]
79
84
  }
@@ -23,6 +23,8 @@ module.exports = function ({ print }) {
23
23
  const harmonyValueLogError = print({ platform: 'harmony', tag: TAG_NAME, isError: true, type: 'value' })
24
24
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
25
25
  const harmonyEventLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
26
+ const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
27
+ const ksEventLog = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
26
28
 
27
29
  return {
28
30
  test: TAG_NAME,
@@ -95,12 +97,17 @@ module.exports = function ({ print }) {
95
97
  ios: iosPropLog,
96
98
  android: androidPropLog,
97
99
  harmony: harmonyPropLog
100
+ },
101
+ {
102
+ test: /^(cursor-spacing|cursor|selection-start|selection-end|adjust-position|hold-keyboard|disable-default-padding|confirm-hold|adjust-keyboard-to|placeholder-class|show-confirm-bar)$/,
103
+ ks: ksPropLog
98
104
  }
99
105
  ],
100
106
  event: [
101
107
  {
102
108
  test: /^(confirm|linechange)$/,
103
- web: webEventLog
109
+ web: webEventLog,
110
+ ks: ksEventLog
104
111
  },
105
112
  {
106
113
  test: /^keyboardheightchange$/,
@@ -124,7 +131,17 @@ module.exports = function ({ print }) {
124
131
  test: /^keyboard.+$/,
125
132
  ios: iosEventLog,
126
133
  android: androidEventLog,
127
- harmony: harmonyEventLog
134
+ harmony: harmonyEventLog,
135
+ ks: ksEventLog
136
+ },
137
+ {
138
+ test: /^(selectionchange)$/,
139
+ ks: ksEventLog,
140
+ ali: aliEventLog,
141
+ jd: jdEventLog,
142
+ qq: qqEventLog,
143
+ tt: ttEventLog,
144
+ web: webEventLog
128
145
  }
129
146
  ]
130
147
  }
@@ -6,6 +6,8 @@ const BAIDU_UNSUPPORTED_TAG_NAME_ARR = ['functional-page-navigator', 'live-pushe
6
6
  const QQ_UNSUPPORTED_TAG_NAME_ARR = ['functional-page-navigator', 'official-account', 'editor']
7
7
  // 头条小程序不支持的标签集合
8
8
  const TT_UNSUPPORTED_TAG_NAME_ARR = ['movable-view', 'cover-image', 'cover-view', 'movable-area', 'open-data', 'official-account', 'editor', 'functional-page-navigator', 'audio', 'live-pusher']
9
+ // 快手小程序不支持的标签集合
10
+ const KS_UNSUPPORTED_TAG_NAME_ARR = ['match-media', 'page-container', 'root-portal', 'selection', 'functional-page-navigator', 'editor', 'editor-portal', 'keyboard-accessory', 'live-player', 'live-pusher', 'voip-room', 'channel-live', 'channel-video', 'ad-custom', 'official-account', 'official-account-publisher', 'open-data', 'store-coupon', 'store-gift', 'store-home', 'store-product']
9
11
  // 京东小程序不支持的标签集合
10
12
  const JD_UNSUPPORTED_TAG_NAME_ARR = ['functional-page-navigator', 'live-pusher', 'live-player', 'rich-text', 'audio', 'video', 'camera']
11
13
  // 快应用不支持的标签集合
@@ -22,6 +24,7 @@ module.exports = function ({ print }) {
22
24
  const baiduUnsupportedTagError = print({ platform: 'baidu', isError: true, type: 'tag' })
23
25
  const qqUnsupportedTagError = print({ platform: 'qq', isError: true, type: 'tag' })
24
26
  const ttUnsupportedTagError = print({ platform: 'bytedance', isError: true, type: 'tag' })
27
+ const ksUnsupportedTagError = print({ platform: 'ks', isError: true, type: 'tag' })
25
28
  const jdUnsupportedTagError = print({ platform: 'jd', isError: true, type: 'tag' })
26
29
  const qaUnsupportedTagError = print({ platform: 'qa', isError: true, type: 'tag' })
27
30
  const iosUnsupportedTagError = print({ platform: 'ios', isError: true, type: 'tag' })
@@ -32,6 +35,7 @@ module.exports = function ({ print }) {
32
35
  const baiduUnsupportedExp = new RegExp('^(' + BAIDU_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
33
36
  const qqUnsupportedExp = new RegExp('^(' + QQ_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
34
37
  const ttUnsupportedExp = new RegExp('^(' + TT_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
38
+ const ksUnsupportedExp = new RegExp('^(' + KS_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
35
39
  const jdUnsupportedExp = new RegExp('^(' + JD_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
36
40
  const qaUnsupportedExp = new RegExp('^(' + QA_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
37
41
  const iosUnsupportedExp = new RegExp('^(' + RN_UNSUPPORTED_TAG_NAME_ARR.join('|') + ')$')
@@ -59,6 +63,11 @@ module.exports = function ({ print }) {
59
63
  test: ttUnsupportedExp,
60
64
  tt: ttUnsupportedTagError
61
65
  },
66
+ {
67
+ supportedModes: ['ks'],
68
+ test: ksUnsupportedExp,
69
+ ks: ksUnsupportedTagError
70
+ },
62
71
  {
63
72
  supportedModes: ['jd'],
64
73
  test: jdUnsupportedExp,
@@ -17,6 +17,8 @@ module.exports = function ({ print }) {
17
17
  const androidEventLogError = print({ platform: 'android', tag: TAG_NAME, isError: false, type: 'event' })
18
18
  const harmonyPropLog = print({ platform: 'harmony', tag: TAG_NAME, isError: false })
19
19
  const harmonyEventLogError = print({ platform: 'harmony', tag: TAG_NAME, isError: false, type: 'event' })
20
+ const ksPropLog = print({ platform: 'ks', tag: TAG_NAME, isError: false })
21
+ const ksEventLogError = print({ platform: 'ks', tag: TAG_NAME, isError: false, type: 'event' })
20
22
  return {
21
23
  test: TAG_NAME,
22
24
  web (tag, { el }) {
@@ -74,6 +76,10 @@ module.exports = function ({ print }) {
74
76
  test: /^(duration|enable-danmu|danmu-btn|page-gesture|direction|show-progress|show-fullscreen-btn|show-center-play-btn|enable-progress-gesture|show-mute-btn|title|play-btn-position|enable-play-gesture|auto-pause-if-navigate|auto-pause-if-open-native|vslide-gesture|vslide-gesture-in-fullscreen|show-bottom-progress|ad-unit-id|poster-for-crawler|show-casting-button|picture-in-picture-mode|picture-in-picture-show-progress| picture-in-picture-init-position|enable-auto-rotation|show-snapshot-button|show-screen-lock-button|show-background-playback-button|background-poster|referrer-policy|is-live)$/,
75
77
  android: androidPropLog,
76
78
  harmony: harmonyPropLog
79
+ },
80
+ {
81
+ test: /^(duration|danmu-list|enable-danmu|danmu-btn|auto-pause-if-navigate|auto-pause-if-open-native|ad-unit-id|poster-for-crawler|picture-in-picture-mode|picture-in-picture-show-progress|picture-in-picture-init-position|enable-auto-rotation|show-snapshot-button|show-background-playback-button|background-poster|is-drm|is-live|provision-url|certificate-url|license-url|preferred-peak-bit-rate)$/,
82
+ ks: ksPropLog
77
83
  }
78
84
  ],
79
85
  event: [
@@ -117,6 +123,10 @@ module.exports = function ({ print }) {
117
123
  test: /^(progress|enterpictureinpicture|leavepictureinpicture|castinguserselect|castingstatechange|castinginterrupt)$/,
118
124
  android: androidEventLogError,
119
125
  harmony: harmonyEventLogError
126
+ },
127
+ {
128
+ test: /^(waiting|controlstoggle|enterpictureinpicture|leavepictureinpicture|seekcomplete|castinguserselect)$/,
129
+ ks: ksEventLogError
120
130
  }
121
131
  ]
122
132
  }
@@ -62,7 +62,7 @@ module.exports = function getSpec ({ warn, error }) {
62
62
  }
63
63
 
64
64
  const spec = {
65
- supportedModes: ['ali', 'swan', 'qq', 'tt', 'web', 'qa', 'jd', 'dd', 'ios', 'android', 'harmony'],
65
+ supportedModes: ['ali', 'swan', 'qq', 'tt', 'ks', 'web', 'qa', 'jd', 'dd', 'ios', 'android', 'harmony'],
66
66
  // props预处理
67
67
  preProps: [],
68
68
  // props后处理
@@ -325,6 +325,13 @@ module.exports = function getSpec ({ warn, error }) {
325
325
  value
326
326
  }
327
327
  },
328
+ ks ({ name, value }) {
329
+ const dir = this.test.exec(name)[1]
330
+ return {
331
+ name: 'ks:' + dir,
332
+ value
333
+ }
334
+ },
328
335
  dd ({ name, value }) {
329
336
  const dir = this.test.exec(name)[1]
330
337
  return {
@@ -413,6 +420,19 @@ module.exports = function getSpec ({ warn, error }) {
413
420
  value
414
421
  }
415
422
  },
423
+ ks ({ name, value }, { eventRules }) {
424
+ const match = this.test.exec(name)
425
+ const prefix = match[1]
426
+ const eventName = match[2]
427
+ const modifierStr = match[3] || ''
428
+ let rPrefix = runRules(spec.event.prefix, prefix, { mode: 'ks' })
429
+ const rEventName = runRules(eventRules, eventName, { mode: 'ks' })
430
+ if (rEventName.includes('-')) rPrefix += ':'
431
+ return {
432
+ name: rPrefix + rEventName + modifierStr,
433
+ value
434
+ }
435
+ },
416
436
  dd ({ name, value }, { eventRules }) {
417
437
  const match = this.test.exec(name)
418
438
  const prefix = match[1]
@@ -6,9 +6,13 @@ export type LabelContextValue = MutableRefObject<{
6
6
  triggerChange: (evt: NativeSyntheticEvent<TouchEvent>) => void
7
7
  }>
8
8
 
9
- export type KeyboardAvoidContextValue = MutableRefObject<
10
- { cursorSpacing: number, ref: MutableRefObject<any> } | null
11
- >
9
+ export type KeyboardAvoidContextValue = MutableRefObject<{
10
+ cursorSpacing: number
11
+ ref: MutableRefObject<any>
12
+ adjustPosition: boolean
13
+ keyboardHeight?: number
14
+ onKeyboardShow?: () => void
15
+ } | null>
12
16
 
13
17
  export interface GroupValue {
14
18
  [key: string]: { checked: boolean; setValue: Dispatch<SetStateAction<boolean>> }
@@ -37,13 +41,13 @@ export interface IntersectionObserver {
37
41
  }
38
42
 
39
43
  export interface PortalContextValue {
40
- mount: (children: React.ReactNode, key?: number | null, id?: number| null) => number| undefined
44
+ mount: (children: React.ReactNode, key?: number | null, id?: number | null) => number | undefined
41
45
  update: (key: number, children: React.ReactNode) => void
42
46
  unmount: (key: number) => void
43
47
  }
44
48
 
45
49
  export interface ScrollViewContextValue {
46
- gestureRef: React.RefObject<any> | null,
50
+ gestureRef: React.RefObject<any> | null
47
51
  scrollOffset: Animated.Value
48
52
  }
49
53
 
@@ -53,7 +57,7 @@ export interface RouteContextValue {
53
57
  }
54
58
 
55
59
  export interface StickyContextValue {
56
- registerStickyHeader: Function,
60
+ registerStickyHeader: Function
57
61
  unregisterStickyHeader: Function
58
62
  }
59
63
 
@@ -0,0 +1,75 @@
1
+ import { Dispatch, MutableRefObject, SetStateAction } from 'react';
2
+ import { NativeSyntheticEvent, Animated } from 'react-native';
3
+ export type LabelContextValue = MutableRefObject<{
4
+ triggerChange: (evt: NativeSyntheticEvent<TouchEvent>) => void;
5
+ }>;
6
+ export type KeyboardAvoidContextValue = MutableRefObject<{
7
+ cursorSpacing: number;
8
+ ref: MutableRefObject<any>;
9
+ adjustPosition: boolean;
10
+ keyboardHeight?: number;
11
+ onKeyboardShow?: () => void;
12
+ } | null>;
13
+ export interface GroupValue {
14
+ [key: string]: {
15
+ checked: boolean;
16
+ setValue: Dispatch<SetStateAction<boolean>>;
17
+ };
18
+ }
19
+ export interface GroupContextValue {
20
+ groupValue: GroupValue;
21
+ notifyChange: (evt: NativeSyntheticEvent<TouchEvent>) => void;
22
+ }
23
+ export interface FormFieldValue {
24
+ getValue: () => any;
25
+ resetValue: ({ newVal, type }: {
26
+ newVal?: any;
27
+ type?: string;
28
+ }) => void;
29
+ }
30
+ export interface FormContextValue {
31
+ formValuesMap: Map<string, FormFieldValue>;
32
+ submit: () => void;
33
+ reset: () => void;
34
+ }
35
+ export interface IntersectionObserver {
36
+ [key: number]: {
37
+ throttleMeasure: () => void;
38
+ };
39
+ }
40
+ export interface PortalContextValue {
41
+ mount: (children: React.ReactNode, key?: number | null, id?: number | null) => number | undefined;
42
+ update: (key: number, children: React.ReactNode) => void;
43
+ unmount: (key: number) => void;
44
+ }
45
+ export interface ScrollViewContextValue {
46
+ gestureRef: React.RefObject<any> | null;
47
+ scrollOffset: Animated.Value;
48
+ }
49
+ export interface RouteContextValue {
50
+ pageId: number;
51
+ navigation: Record<string, any>;
52
+ }
53
+ export interface StickyContextValue {
54
+ registerStickyHeader: Function;
55
+ unregisterStickyHeader: Function;
56
+ }
57
+ export declare const MovableAreaContext: import("react").Context<{
58
+ width: number;
59
+ height: number;
60
+ }>;
61
+ export declare const FormContext: import("react").Context<FormContextValue | null>;
62
+ export declare const CheckboxGroupContext: import("react").Context<GroupContextValue | null>;
63
+ export declare const RadioGroupContext: import("react").Context<GroupContextValue | null>;
64
+ export declare const LabelContext: import("react").Context<LabelContextValue | null>;
65
+ export declare const PickerContext: import("react").Context<null>;
66
+ export declare const VarContext: import("react").Context<{}>;
67
+ export declare const IntersectionObserverContext: import("react").Context<IntersectionObserver | null>;
68
+ export declare const RouteContext: import("react").Context<RouteContextValue | null>;
69
+ export declare const SwiperContext: import("react").Context<{}>;
70
+ export declare const KeyboardAvoidContext: import("react").Context<KeyboardAvoidContextValue | null>;
71
+ export declare const ScrollViewContext: import("react").Context<ScrollViewContextValue>;
72
+ export declare const PortalContext: import("react").Context<PortalContextValue>;
73
+ export declare const StickyContext: import("react").Context<StickyContextValue>;
74
+ export declare const ProviderContext: import("react").Context<null>;
75
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../context.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,8 @@
1
+ declare const eventConfigMap: {
2
+ [key: string]: {
3
+ bitFlag: string;
4
+ events: string[];
5
+ };
6
+ };
7
+ export default eventConfigMap;
8
+ //# sourceMappingURL=event.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.config.d.ts","sourceRoot":"","sources":["../event.config.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,cAAc,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;CAyB3E,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Props, RawConfig, RemoveProps, LayoutRef, ExtendedNativeTouchEvent } from './types/getInnerListeners';
2
+ export declare const getCustomEvent: (type: string | undefined, oe: any, { detail, layoutRef }: {
3
+ detail?: Record<string, unknown> | undefined;
4
+ layoutRef?: LayoutRef | undefined;
5
+ }, props?: Props) => any;
6
+ declare const useInnerProps: (props?: Props, userRemoveProps?: RemoveProps, rawConfig?: RawConfig) => Record<string, (e: ExtendedNativeTouchEvent) => void> & Omit<Props, string>;
7
+ export default useInnerProps;
8
+ //# sourceMappingURL=getInnerListeners.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getInnerListeners.d.ts","sourceRoot":"","sources":["../getInnerListeners.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,EAEL,SAAS,EAET,WAAW,EAEX,SAAS,EACT,wBAAwB,EAEzB,MAAM,2BAA2B,CAAA;AAsElC,eAAO,MAAM,cAAc,iCAErB,GAAG;;;WAKA,KAAK,QAgBb,CAAA;AAyID,QAAA,MAAM,aAAa,WACV,KAAK,6CAEA,SAAS,wBA8Dc,wBAAwB,KAAK,IAAI,uBA2BrE,CAAA;AACD,eAAe,aAAa,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { ComponentType, ReactNode } from 'react';
2
+ interface AsyncSuspenseProps {
3
+ type: 'component' | 'page';
4
+ chunkName: string;
5
+ moduleId: string;
6
+ innerProps: any;
7
+ getLoading?: () => ComponentType<unknown>;
8
+ getFallback?: () => ComponentType<unknown>;
9
+ getChildren: () => Promise<ReactNode>;
10
+ }
11
+ declare const AsyncSuspense: React.FC<AsyncSuspenseProps>;
12
+ export default AsyncSuspense;
13
+ //# sourceMappingURL=mpx-async-suspense.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mpx-async-suspense.d.ts","sourceRoot":"","sources":["../mpx-async-suspense.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,aAAa,EAAkC,SAAS,EAAiB,MAAM,OAAO,CAAA;AAiGzG,UAAU,kBAAkB;IAC1B,IAAI,EAAE,WAAW,GAAG,MAAM,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,aAAa,CAAC,OAAO,CAAC,CAAA;IACzC,WAAW,CAAC,EAAE,MAAM,aAAa,CAAC,OAAO,CAAC,CAAA;IAC1C,WAAW,EAAE,MAAM,OAAO,CAAC,SAAS,CAAC,CAAA;CACtC;AAID,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6E/C,CAAA;AAID,eAAe,aAAa,CAAA"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * ✔ size
3
+ * ✔ type
4
+ * ✔ plain
5
+ * ✔ disabled
6
+ * ✔ loading
7
+ * ✔ form-type
8
+ * - open-type: Partially. Only support `share`、`getUserInfo`
9
+ * ✔ hover-class: Convert hoverClass to hoverStyle.
10
+ * ✔ hover-style
11
+ * ✘ hover-stop-propagation
12
+ * ✔ hover-start-time
13
+ * ✔ hover-stay-time
14
+ * ✘ lang
15
+ * ✘ session-from
16
+ * ✘ send-message-title
17
+ * ✘ send-message-path
18
+ * ✘ send-message-img
19
+ * ✘ app-parameter
20
+ * ✘ show-message-card
21
+ * ✘ phone-number-no-quota-toast
22
+ * ✘ bindgetuserinfo
23
+ * ✘ bindcontact
24
+ * ✘ createliveactivity
25
+ * ✘ bindgetphonenumber
26
+ * ✘ bindgetphonenumber
27
+ * ✘ bindgetrealtimephonenumber
28
+ * ✘ binderror
29
+ * ✘ bindopensetting
30
+ * ✘ bindlaunchapp
31
+ * ✘ bindlaunchapp
32
+ * ✘ bindchooseavatar
33
+ * ✘ bindchooseavatar
34
+ * ✘ bindagreeprivacyauthorization
35
+ * ✔ bindtap
36
+ */
37
+ import { ReactNode } from 'react';
38
+ import { View, ViewStyle, TextStyle, NativeSyntheticEvent } from 'react-native';
39
+ import { HandlerRef } from './useNodesRef';
40
+ import type { ExtendedViewStyle } from './types/common';
41
+ export type Type = 'default' | 'primary' | 'warn';
42
+ export type OpenType = 'share' | 'getUserInfo';
43
+ export type OpenTypeEvent = 'onShareAppMessage' | 'onUserInfo';
44
+ export interface ButtonProps {
45
+ size?: string;
46
+ type?: Type;
47
+ plain?: boolean;
48
+ disabled?: boolean;
49
+ loading?: boolean;
50
+ 'hover-class'?: string;
51
+ 'hover-style'?: ExtendedViewStyle;
52
+ 'hover-start-time'?: number;
53
+ 'hover-stay-time'?: number;
54
+ 'open-type'?: OpenType;
55
+ 'form-type'?: 'submit' | 'reset';
56
+ 'enable-offset'?: boolean;
57
+ 'enable-var'?: boolean;
58
+ 'external-var-context'?: Record<string, any>;
59
+ 'parent-font-size'?: number;
60
+ 'parent-width'?: number;
61
+ 'parent-height'?: number;
62
+ style?: ViewStyle & TextStyle & Record<string, any>;
63
+ children: ReactNode;
64
+ bindgetuserinfo?: (userInfo: any) => void;
65
+ bindtap?: (evt: NativeSyntheticEvent<TouchEvent> | unknown) => void;
66
+ }
67
+ declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HandlerRef<View, ButtonProps>>>;
68
+ export default Button;
69
+ //# sourceMappingURL=mpx-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mpx-button.d.ts","sourceRoot":"","sources":["../mpx-button.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,EAAoC,SAAS,EAA+B,MAAM,OAAO,CAAA;AAChG,OAAO,EACL,IAAI,EAEJ,SAAS,EACT,SAAS,EAGT,oBAAoB,EAErB,MAAM,cAAc,CAAA;AAKrB,OAAoB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAGvD,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAA;AAOjD,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,aAAa,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,YAAY,CAAA;AAE9D,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,WAAW,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,sBAAsB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACnD,QAAQ,EAAE,SAAS,CAAA;IACnB,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAA;IACzC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,oBAAoB,CAAC,UAAU,CAAC,GAAG,OAAO,KAAK,IAAI,CAAA;CACpE;AA4GD,QAAA,MAAM,MAAM,uHAqOV,CAAA;AAIF,eAAe,MAAM,CAAA"}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { Camera } from 'react-native-vision-camera';
3
+ interface CameraProps {
4
+ mode?: 'normal' | 'scanCode';
5
+ resolution?: 'low' | 'medium' | 'high';
6
+ devicePosition?: 'front' | 'back';
7
+ flash?: 'auto' | 'on' | 'off';
8
+ frameSize?: 'small' | 'medium' | 'large';
9
+ style?: Record<string, any>;
10
+ bindstop?: () => void;
11
+ binderror?: (error: {
12
+ message: string;
13
+ }) => void;
14
+ bindinitdone?: (result: {
15
+ type: string;
16
+ data: string;
17
+ }) => void;
18
+ bindscancode?: (result: {
19
+ type: string;
20
+ data: string;
21
+ }) => void;
22
+ }
23
+ type HandlerRef<T, P> = {
24
+ current: T | null;
25
+ };
26
+ declare const _camera: React.ForwardRefExoticComponent<CameraProps & React.RefAttributes<HandlerRef<Camera, CameraProps>>>;
27
+ export default _camera;
28
+ //# sourceMappingURL=mpx-camera.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mpx-camera.d.ts","sourceRoot":"","sources":["../mpx-camera.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2E,MAAM,OAAO,CAAA;AAC/F,OAAO,EAAE,MAAM,EAAuE,MAAM,4BAA4B,CAAA;AAIxH,UAAU,WAAW;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;IAC5B,UAAU,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAA;IACtC,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK,CAAA;IAC7B,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAChD,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAC/D,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CAChE;AASD,KAAK,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI;IAEtB,OAAO,EAAE,CAAC,GAAG,IAAI,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,OAAO,qGAoIX,CAAA;AAIF,eAAe,OAAO,CAAA"}