@cloudbase/weda-ui 3.3.1 → 3.3.3

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 (348) hide show
  1. package/dist/{src/configs → configs}/actions/showModal.json +0 -0
  2. package/dist/{src/configs → configs}/actions/showToast.json +0 -0
  3. package/dist/{src/configs → configs}/components/auth.json +0 -0
  4. package/dist/{src/configs → configs}/components/button.json +0 -0
  5. package/dist/{src/configs → configs}/components/calendar.json +0 -0
  6. package/dist/{src/configs → configs}/components/carousel.json +0 -0
  7. package/dist/{src/configs → configs}/components/chart/bar.json +0 -0
  8. package/dist/{src/configs → configs}/components/chart/line.json +0 -0
  9. package/dist/{src/configs → configs}/components/chart/pie.json +0 -0
  10. package/dist/{src/configs → configs}/components/chart/statisticsCard.json +0 -0
  11. package/dist/{src/configs → configs}/components/container.json +0 -0
  12. package/dist/{src/configs → configs}/components/dataView.json +0 -0
  13. package/dist/{src/configs → configs}/components/drawer.json +0 -0
  14. package/dist/{src/configs → configs}/components/form/checkbox.json +0 -0
  15. package/dist/{src/configs → configs}/components/form/departTreeSelect.json +0 -0
  16. package/dist/{src/configs → configs}/components/form/form.json +0 -0
  17. package/dist/{src/configs → configs}/components/form/input.json +0 -0
  18. package/dist/{src/configs → configs}/components/form/location.json +0 -0
  19. package/dist/{src/configs → configs}/components/form/radio.json +0 -0
  20. package/dist/{src/configs → configs}/components/form/richText.json +0 -0
  21. package/dist/{src/configs → configs}/components/form/select.json +0 -0
  22. package/dist/{src/configs → configs}/components/form/switch.json +0 -0
  23. package/dist/{src/configs → configs}/components/form/textarea.json +0 -0
  24. package/dist/{src/configs → configs}/components/form/tips.json +0 -0
  25. package/dist/{src/configs → configs}/components/form/uploader.json +0 -0
  26. package/dist/{src/configs → configs}/components/form/uploaderFile.json +0 -0
  27. package/dist/{src/configs → configs}/components/form/userTreeSelect.json +0 -0
  28. package/dist/{src/configs → configs}/components/formdetail.json +0 -0
  29. package/dist/{src/configs → configs}/components/graphicCard.json +0 -0
  30. package/dist/{src/configs → configs}/components/image.json +0 -0
  31. package/dist/{src/configs → configs}/components/link.json +0 -0
  32. package/dist/{src/configs → configs}/components/listView.json +0 -0
  33. package/dist/{src/configs → configs}/components/lottery.json +0 -0
  34. package/dist/{src/configs → configs}/components/modal.json +0 -0
  35. package/dist/{src/configs → configs}/components/navLayout.json +0 -0
  36. package/dist/{src/configs → configs}/components/navigationBar.json +0 -0
  37. package/dist/{src/configs → configs}/components/richtextview.json +0 -0
  38. package/dist/{src/configs → configs}/components/scrollVeiw.json +0 -0
  39. package/dist/{src/configs → configs}/components/slot.json +0 -0
  40. package/dist/{src/configs → configs}/components/swiper.json +0 -0
  41. package/dist/{src/configs → configs}/components/tabs.json +0 -0
  42. package/dist/{src/configs → configs}/components/text.json +0 -0
  43. package/dist/{src/configs → configs}/components/wedaVideo.json +0 -0
  44. package/dist/{src/configs → configs}/components/wxOpenApi/phone.json +0 -0
  45. package/dist/{src/configs → configs}/components/wxOpenApi/phoneCode.json +0 -0
  46. package/dist/{src/configs → configs}/components/wxOpenApi/share.json +0 -0
  47. package/dist/{src/configs → configs}/components/wxOpenApi/userInfo.json +0 -0
  48. package/dist/{src/configs → configs}/index.d.ts +0 -0
  49. package/dist/{src/configs → configs}/index.js +0 -0
  50. package/dist/{src/docs → docs}/common/format.d.ts +0 -0
  51. package/dist/{src/docs → docs}/common/format.js +0 -0
  52. package/dist/{src/docs → docs}/common/tableView.d.ts +0 -0
  53. package/dist/{src/docs → docs}/common/tableView.js +0 -0
  54. package/dist/{src/index.d.ts → index.d.ts} +0 -0
  55. package/dist/{src/index.js → index.js} +0 -0
  56. package/dist/{src/setupTests.d.ts → setupTests.d.ts} +0 -0
  57. package/dist/{src/setupTests.js → setupTests.js} +0 -0
  58. package/dist/{src/web → web}/actions/index.d.ts +0 -0
  59. package/dist/{src/web → web}/actions/index.js +0 -0
  60. package/dist/{src/web → web}/actions/showModal/index.d.ts +0 -0
  61. package/dist/{src/web → web}/actions/showModal/index.js +0 -0
  62. package/dist/{src/web → web}/actions/showToast/index.d.ts +0 -0
  63. package/dist/{src/web → web}/actions/showToast/index.js +0 -0
  64. package/dist/{src/web → web}/components/button/index.d.ts +0 -0
  65. package/dist/{src/web → web}/components/button/index.js +0 -0
  66. package/dist/{src/web → web}/components/calendar/index.d.ts +0 -0
  67. package/dist/{src/web → web}/components/calendar/index.js +37 -39
  68. package/dist/{src/web → web}/components/calendar/util.d.ts +0 -0
  69. package/dist/{src/web → web}/components/calendar/util.js +0 -0
  70. package/dist/{src/web → web}/components/carousel/index.d.ts +0 -0
  71. package/dist/{src/web → web}/components/carousel/index.js +62 -62
  72. package/dist/{src/web → web}/components/chart/bar/index.d.ts +0 -0
  73. package/dist/{src/web → web}/components/chart/bar/index.js +0 -4
  74. package/dist/{src/web → web}/components/chart/bar/index.old.d.ts +0 -0
  75. package/dist/{src/web → web}/components/chart/bar/index.old.js +0 -0
  76. package/dist/{src/web → web}/components/chart/common/Chart.d.ts +0 -1
  77. package/dist/{src/web → web}/components/chart/common/Chart.js +1 -9
  78. package/dist/{src/web → web}/components/chart/common/chart-custom-connector.d.ts +0 -0
  79. package/dist/{src/web → web}/components/chart/common/chart-custom-connector.js +1 -1
  80. package/dist/{src/web → web}/components/chart/common/chart-error.d.ts +0 -0
  81. package/dist/{src/web → web}/components/chart/common/chart-error.js +0 -0
  82. package/dist/{src/web → web}/components/chart/common/config/bar.d.ts +0 -0
  83. package/dist/{src/web → web}/components/chart/common/config/bar.js +0 -0
  84. package/dist/{src/web → web}/components/chart/common/config/global.d.ts +0 -0
  85. package/dist/{src/web → web}/components/chart/common/config/global.js +0 -0
  86. package/dist/{src/web → web}/components/chart/common/config/line.d.ts +0 -0
  87. package/dist/{src/web → web}/components/chart/common/config/line.js +0 -0
  88. package/dist/{src/web → web}/components/chart/common/config/pie.d.ts +0 -0
  89. package/dist/{src/web → web}/components/chart/common/config/pie.js +0 -0
  90. package/dist/{src/web → web}/components/chart/common/core/eChartBar.d.ts +0 -0
  91. package/dist/{src/web → web}/components/chart/common/core/eChartBar.js +0 -0
  92. package/dist/{src/web → web}/components/chart/common/core/eChartBase.d.ts +0 -0
  93. package/dist/{src/web → web}/components/chart/common/core/eChartBase.js +1 -1
  94. package/dist/{src/web → web}/components/chart/common/core/eChartLine.d.ts +0 -0
  95. package/dist/{src/web → web}/components/chart/common/core/eChartLine.js +0 -0
  96. package/dist/{src/web → web}/components/chart/common/core/eChartPie.d.ts +0 -0
  97. package/dist/{src/web → web}/components/chart/common/core/eChartPie.js +0 -0
  98. package/dist/{src/web → web}/components/chart/common/core/type.d.ts +0 -0
  99. package/dist/{src/web → web}/components/chart/common/core/type.js +0 -0
  100. package/dist/{src/web → web}/components/chart/common/data-transform.d.ts +0 -0
  101. package/dist/{src/web → web}/components/chart/common/data-transform.js +1 -1
  102. package/dist/{src/web → web}/components/chart/common/echarts.d.ts +0 -0
  103. package/dist/{src/web → web}/components/chart/common/echarts.js +0 -0
  104. package/dist/{src/web → web}/components/chart/common/useChart.d.ts +0 -0
  105. package/dist/{src/web → web}/components/chart/common/useChart.js +2 -11
  106. package/dist/{src/web → web}/components/chart/line/index.d.ts +0 -0
  107. package/dist/{src/web → web}/components/chart/line/index.js +0 -0
  108. package/dist/{src/web → web}/components/chart/line/index.old.d.ts +0 -0
  109. package/dist/{src/web → web}/components/chart/line/index.old.js +0 -0
  110. package/dist/{src/web → web}/components/chart/pie/index.d.ts +0 -0
  111. package/dist/{src/web → web}/components/chart/pie/index.js +0 -0
  112. package/dist/{src/web → web}/components/chart/pie/index.old.d.ts +0 -0
  113. package/dist/{src/web → web}/components/chart/pie/index.old.js +0 -0
  114. package/dist/{src/web → web}/components/chart/statisticsCard/index.d.ts +0 -0
  115. package/dist/{src/web → web}/components/chart/statisticsCard/index.js +0 -0
  116. package/dist/{src/web → web}/components/chart/statisticsCard/interface.d.ts +0 -0
  117. package/dist/{src/web → web}/components/chart/statisticsCard/interface.js +0 -0
  118. package/dist/{src/web → web}/components/common/error-boundary.d.ts +0 -0
  119. package/dist/{src/web → web}/components/common/error-boundary.js +0 -0
  120. package/dist/{src/web → web}/components/common/portal.d.ts +0 -0
  121. package/dist/{src/web → web}/components/common/portal.js +0 -0
  122. package/dist/{src/web → web}/components/common/use-loop-render-detect.d.ts +2 -2
  123. package/dist/{src/web → web}/components/common/use-loop-render-detect.js +7 -9
  124. package/dist/{src/web → web}/components/container/index.d.ts +0 -0
  125. package/dist/{src/web → web}/components/container/index.js +0 -0
  126. package/dist/{src/web → web}/components/dataView/index.d.ts +0 -0
  127. package/dist/{src/web → web}/components/dataView/index.js +0 -0
  128. package/dist/{src/web → web}/components/dataView/interface.d.ts +0 -0
  129. package/dist/{src/web → web}/components/dataView/interface.js +0 -0
  130. package/dist/{src/web → web}/components/drawer/index.d.ts +0 -0
  131. package/dist/{src/web → web}/components/drawer/index.js +0 -0
  132. package/dist/{src/web → web}/components/form/checkbox/index.d.ts +0 -0
  133. package/dist/{src/web → web}/components/form/checkbox/index.js +29 -29
  134. package/dist/{src/web → web}/components/form/enumSelect/MultipleSelect.d.ts +0 -0
  135. package/dist/{src/web → web}/components/form/enumSelect/MultipleSelect.js +0 -0
  136. package/dist/{src/web → web}/components/form/enumSelect/NormalSelect.d.ts +0 -0
  137. package/dist/{src/web → web}/components/form/enumSelect/NormalSelect.js +0 -0
  138. package/dist/{src/web → web}/components/form/enumSelect/SelectContainer.d.ts +0 -0
  139. package/dist/{src/web → web}/components/form/enumSelect/SelectContainer.js +0 -0
  140. package/dist/{src/web → web}/components/form/enumSelect/index.d.ts +0 -0
  141. package/dist/{src/web → web}/components/form/enumSelect/index.js +0 -0
  142. package/dist/{src/web → web}/components/form/enumSelect/props/defaultProps.d.ts +0 -0
  143. package/dist/{src/web → web}/components/form/enumSelect/props/defaultProps.js +0 -0
  144. package/dist/{src/web → web}/components/form/enumSelect/props/propsTypes.d.ts +0 -0
  145. package/dist/{src/web → web}/components/form/enumSelect/props/propsTypes.js +0 -0
  146. package/dist/{src/web → web}/components/form/form/index.d.ts +0 -0
  147. package/dist/{src/web → web}/components/form/form/index.js +1 -3
  148. package/dist/{src/web → web}/components/form/formcell/index.d.ts +0 -0
  149. package/dist/{src/web → web}/components/form/formcell/index.js +0 -0
  150. package/dist/{src/web → web}/components/form/input/index.d.ts +0 -0
  151. package/dist/{src/web → web}/components/form/input/index.js +0 -0
  152. package/dist/{src/web → web}/components/form/location/common/mapChoose.d.ts +0 -0
  153. package/dist/{src/web → web}/components/form/location/common/mapChoose.js +1 -2
  154. package/dist/{src/web → web}/components/form/location/common/mapView.d.ts +0 -0
  155. package/dist/{src/web → web}/components/form/location/common/mapView.js +1 -4
  156. package/dist/{src/web → web}/components/form/location/common/propsConfig.d.ts +0 -0
  157. package/dist/{src/web → web}/components/form/location/common/propsConfig.js +0 -0
  158. package/dist/{src/web → web}/components/form/location/common/selectModal.d.ts +0 -0
  159. package/dist/{src/web → web}/components/form/location/common/selectModal.js +0 -0
  160. package/dist/{src/web → web}/components/form/location/common/tmap.d.ts +0 -0
  161. package/dist/{src/web → web}/components/form/location/common/tmap.js +0 -0
  162. package/dist/{src/web → web}/components/form/location/common/useLocationInfo.d.ts +0 -0
  163. package/dist/{src/web → web}/components/form/location/common/useLocationInfo.js +0 -0
  164. package/dist/{src/web → web}/components/form/location/components/LocationH5/location.h5.d.ts +0 -0
  165. package/dist/{src/web → web}/components/form/location/components/LocationH5/location.h5.js +0 -0
  166. package/dist/{src/web → web}/components/form/location/components/LocationPC/Header.d.ts +0 -0
  167. package/dist/{src/web → web}/components/form/location/components/LocationPC/Header.js +0 -0
  168. package/dist/{src/web → web}/components/form/location/components/LocationPC/location.PC.d.ts +0 -0
  169. package/dist/{src/web → web}/components/form/location/components/LocationPC/location.PC.js +0 -4
  170. package/dist/{src/web → web}/components/form/location/constants.d.ts +0 -0
  171. package/dist/{src/web → web}/components/form/location/constants.js +0 -0
  172. package/dist/{src/web → web}/components/form/location/index.d.ts +0 -0
  173. package/dist/{src/web → web}/components/form/location/index.js +0 -0
  174. package/dist/{src/web → web}/components/form/radio/index.d.ts +0 -0
  175. package/dist/{src/web → web}/components/form/radio/index.js +3 -3
  176. package/dist/{src/web → web}/components/form/renderDecorator.d.ts +0 -0
  177. package/dist/{src/web → web}/components/form/renderDecorator.js +0 -0
  178. package/dist/{src/web → web}/components/form/select/allTimePicker/calendar.d.ts +0 -0
  179. package/dist/{src/web → web}/components/form/select/allTimePicker/calendar.js +0 -0
  180. package/dist/{src/web → web}/components/form/select/allTimePicker/dataUtils.d.ts +0 -0
  181. package/dist/{src/web → web}/components/form/select/allTimePicker/dataUtils.js +0 -0
  182. package/dist/{src/web → web}/components/form/select/allTimePicker/index.d.ts +0 -0
  183. package/dist/{src/web → web}/components/form/select/allTimePicker/index.js +0 -1
  184. package/dist/{src/web → web}/components/form/select/dropdown-select/ui.d.ts +0 -0
  185. package/dist/{src/web → web}/components/form/select/dropdown-select/ui.js +0 -0
  186. package/dist/{src/web → web}/components/form/select/h5.d.ts +0 -0
  187. package/dist/{src/web → web}/components/form/select/h5.js +4 -18
  188. package/dist/{src/web → web}/components/form/select/index.d.ts +0 -0
  189. package/dist/{src/web → web}/components/form/select/index.js +1 -8
  190. package/dist/{src/web → web}/components/form/select/region/index.d.ts +0 -0
  191. package/dist/{src/web → web}/components/form/select/region/index.js +0 -0
  192. package/dist/{src/web → web}/components/form/select/time.d.ts +0 -0
  193. package/dist/{src/web → web}/components/form/select/time.js +0 -0
  194. package/dist/{src/web → web}/components/form/select/use-options.d.ts +0 -0
  195. package/dist/{src/web → web}/components/form/select/use-options.js +1 -1
  196. package/dist/{src/web → web}/components/form/select/year.d.ts +0 -0
  197. package/dist/{src/web → web}/components/form/select/year.js +0 -0
  198. package/dist/{src/web → web}/components/form/switch/index.d.ts +0 -0
  199. package/dist/{src/web → web}/components/form/switch/index.js +0 -0
  200. package/dist/{src/web → web}/components/form/textarea/index.d.ts +0 -0
  201. package/dist/{src/web → web}/components/form/textarea/index.js +0 -0
  202. package/dist/{src/web → web}/components/form/tips/index.d.ts +0 -0
  203. package/dist/{src/web → web}/components/form/tips/index.js +0 -0
  204. package/dist/{src/web → web}/components/form/uploader/index.d.ts +0 -0
  205. package/dist/{src/web → web}/components/form/uploader/index.js +0 -0
  206. package/dist/{src/web → web}/components/form/uploader/uploader.h5.d.ts +0 -0
  207. package/dist/{src/web → web}/components/form/uploader/uploader.h5.js +2 -2
  208. package/dist/{src/web → web}/components/form/uploader/uploader.pc.d.ts +0 -0
  209. package/dist/{src/web → web}/components/form/uploader/uploader.pc.js +1 -1
  210. package/dist/{src/web → web}/components/form/uploaderFile/index.d.ts +0 -0
  211. package/dist/{src/web → web}/components/form/uploaderFile/index.js +0 -0
  212. package/dist/{src/web → web}/components/form/uploaderFile/uploadFile.h5.d.ts +0 -0
  213. package/dist/{src/web → web}/components/form/uploaderFile/uploadFile.h5.js +7 -9
  214. package/dist/{src/web → web}/components/form/uploaderFile/uploadFile.pc.d.ts +0 -0
  215. package/dist/{src/web → web}/components/form/uploaderFile/uploadFile.pc.js +6 -9
  216. package/dist/{src/web → web}/components/form/userOrgSelect/comTool.d.ts +0 -0
  217. package/dist/{src/web → web}/components/form/userOrgSelect/comTool.js +0 -0
  218. package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.d.ts +0 -0
  219. package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +0 -0
  220. package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.d.ts +0 -0
  221. package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +0 -0
  222. package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/index.d.ts +0 -0
  223. package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/index.js +0 -0
  224. package/dist/{src/web → web}/components/form/userOrgSelect/getUserService.d.ts +0 -0
  225. package/dist/{src/web → web}/components/form/userOrgSelect/getUserService.js +0 -0
  226. package/dist/{src/web → web}/components/form/userOrgSelect/index.d.ts +0 -0
  227. package/dist/{src/web → web}/components/form/userOrgSelect/index.js +0 -0
  228. package/dist/{src/web → web}/components/form/userOrgSelect/userTreeSelect.h5.d.ts +0 -0
  229. package/dist/{src/web → web}/components/form/userOrgSelect/userTreeSelect.h5.js +0 -0
  230. package/dist/{src/web → web}/components/form/userOrgSelect/userTreeSelect.pc.d.ts +0 -0
  231. package/dist/{src/web → web}/components/form/userOrgSelect/userTreeSelect.pc.js +0 -0
  232. package/dist/{src/web → web}/components/form/userOrgSelect/utils.d.ts +0 -0
  233. package/dist/{src/web → web}/components/form/userOrgSelect/utils.js +0 -0
  234. package/dist/{src/web → web}/components/formdetail/index.d.ts +0 -0
  235. package/dist/{src/web → web}/components/formdetail/index.js +10 -12
  236. package/dist/{src/web → web}/components/graphicCard/index.d.ts +0 -0
  237. package/dist/{src/web → web}/components/graphicCard/index.js +6 -5
  238. package/dist/{src/web → web}/components/image/image.d.ts +0 -0
  239. package/dist/{src/web → web}/components/image/image.js +0 -0
  240. package/dist/{src/web → web}/components/image/index.d.ts +0 -0
  241. package/dist/{src/web → web}/components/image/index.js +1 -1
  242. package/dist/{src/web → web}/components/index.d.ts +0 -0
  243. package/dist/{src/web → web}/components/index.js +0 -0
  244. package/dist/{src/web → web}/components/link/index.d.ts +0 -0
  245. package/dist/{src/web → web}/components/link/index.js +0 -0
  246. package/dist/{src/web → web}/components/listView/index.d.ts +0 -0
  247. package/dist/{src/web → web}/components/listView/index.js +0 -1
  248. package/dist/{src/web → web}/components/listView/interface.d.ts +0 -0
  249. package/dist/{src/web → web}/components/listView/interface.js +0 -0
  250. package/dist/{src/web → web}/components/lottery/index.d.ts +0 -0
  251. package/dist/{src/web → web}/components/lottery/index.js +16 -10
  252. package/dist/{src/web → web}/components/lottery/lotteryUtil.d.ts +0 -0
  253. package/dist/{src/web → web}/components/lottery/lotteryUtil.js +0 -0
  254. package/dist/{src/web → web}/components/modal/index.d.ts +0 -0
  255. package/dist/{src/web → web}/components/modal/index.js +0 -0
  256. package/dist/{src/web → web}/components/modal/modal.h5.d.ts +0 -0
  257. package/dist/{src/web → web}/components/modal/modal.h5.js +0 -0
  258. package/dist/{src/web → web}/components/modal/modal.pc.d.ts +0 -0
  259. package/dist/{src/web → web}/components/modal/modal.pc.js +0 -0
  260. package/dist/{src/web → web}/components/navLayout/index.d.ts +0 -0
  261. package/dist/{src/web → web}/components/navLayout/index.js +1 -1
  262. package/dist/{src/web → web}/components/navigationBar/common.d.ts +0 -0
  263. package/dist/{src/web → web}/components/navigationBar/common.js +0 -0
  264. package/dist/{src/web → web}/components/navigationBar/h5Menu.d.ts +0 -0
  265. package/dist/{src/web → web}/components/navigationBar/h5Menu.js +0 -0
  266. package/dist/{src/web → web}/components/navigationBar/horizontalMenu.d.ts +0 -0
  267. package/dist/{src/web → web}/components/navigationBar/horizontalMenu.js +1 -1
  268. package/dist/{src/web → web}/components/navigationBar/index.d.ts +0 -0
  269. package/dist/{src/web → web}/components/navigationBar/index.js +0 -0
  270. package/dist/{src/web → web}/components/navigationBar/verticalMenu.d.ts +0 -0
  271. package/dist/{src/web → web}/components/navigationBar/verticalMenu.js +0 -0
  272. package/dist/{src/web → web}/components/phone/index.d.ts +0 -0
  273. package/dist/{src/web → web}/components/phone/index.js +0 -0
  274. package/dist/{src/web → web}/components/phoneCode/index.d.ts +0 -0
  275. package/dist/{src/web → web}/components/phoneCode/index.js +0 -0
  276. package/dist/{src/web → web}/components/picker/datePicker.d.ts +0 -0
  277. package/dist/{src/web → web}/components/picker/datePicker.js +0 -0
  278. package/dist/{src/web → web}/components/picker/picker.d.ts +0 -0
  279. package/dist/{src/web → web}/components/picker/picker.js +0 -0
  280. package/dist/{src/web → web}/components/picker/timePicker.d.ts +0 -0
  281. package/dist/{src/web → web}/components/picker/timePicker.js +0 -0
  282. package/dist/{src/web → web}/components/richText/const.d.ts +0 -0
  283. package/dist/{src/web → web}/components/richText/const.js +0 -0
  284. package/dist/{src/web → web}/components/richText/index.d.ts +0 -0
  285. package/dist/{src/web → web}/components/richText/index.js +2 -1
  286. package/dist/{src/web → web}/components/richTextView/index.d.ts +0 -0
  287. package/dist/{src/web → web}/components/richTextView/index.js +18 -20
  288. package/dist/{src/web → web}/components/scrollView/index.d.ts +0 -1
  289. package/dist/{src/web → web}/components/scrollView/index.js +4 -6
  290. package/dist/{src/web → web}/components/share/index.d.ts +0 -0
  291. package/dist/{src/web → web}/components/share/index.js +0 -0
  292. package/dist/{src/web → web}/components/slot/index.d.ts +0 -0
  293. package/dist/{src/web → web}/components/slot/index.js +0 -0
  294. package/dist/{src/web → web}/components/swiper/index.d.ts +0 -0
  295. package/dist/{src/web → web}/components/swiper/index.js +62 -62
  296. package/dist/{src/web → web}/components/tabs/index.d.ts +0 -0
  297. package/dist/{src/web → web}/components/tabs/index.js +0 -0
  298. package/dist/{src/web → web}/components/tabs/tabs.h5.d.ts +0 -0
  299. package/dist/{src/web → web}/components/tabs/tabs.h5.js +0 -0
  300. package/dist/{src/web → web}/components/tabs/tabs.pc.d.ts +0 -0
  301. package/dist/{src/web → web}/components/tabs/tabs.pc.js +0 -0
  302. package/dist/{src/web → web}/components/text/index.d.ts +0 -0
  303. package/dist/{src/web → web}/components/text/index.js +8 -10
  304. package/dist/{src/web → web}/components/uploaderFileView/index.d.ts +0 -0
  305. package/dist/{src/web → web}/components/uploaderFileView/index.js +0 -0
  306. package/dist/{src/web → web}/components/uploaderView/index.d.ts +0 -0
  307. package/dist/{src/web → web}/components/uploaderView/index.js +1 -1
  308. package/dist/{src/web → web}/components/userInfo/index.d.ts +0 -0
  309. package/dist/{src/web → web}/components/userInfo/index.js +0 -0
  310. package/dist/{src/web → web}/components/wedaVideo/index.d.ts +0 -0
  311. package/dist/{src/web → web}/components/wedaVideo/index.js +2 -14
  312. package/dist/{src/web → web}/index.d.ts +0 -0
  313. package/dist/{src/web → web}/index.js +0 -0
  314. package/dist/{src/web → web}/utils/classnames.d.ts +0 -0
  315. package/dist/{src/web → web}/utils/classnames.js +0 -0
  316. package/dist/{src/web → web}/utils/console.d.ts +0 -0
  317. package/dist/{src/web → web}/utils/console.js +0 -0
  318. package/dist/{src/web → web}/utils/constant.d.ts +0 -0
  319. package/dist/{src/web → web}/utils/constant.js +0 -0
  320. package/dist/{src/web → web}/utils/debounce.d.ts +0 -0
  321. package/dist/{src/web → web}/utils/debounce.js +0 -0
  322. package/dist/{src/web → web}/utils/getLocalCounter.d.ts +0 -0
  323. package/dist/{src/web → web}/utils/getLocalCounter.js +0 -0
  324. package/dist/{src/web → web}/utils/isObjectEqual.d.ts +0 -0
  325. package/dist/{src/web → web}/utils/isObjectEqual.js +0 -0
  326. package/dist/{src/web → web}/utils/loading-fallback.d.ts +0 -0
  327. package/dist/{src/web → web}/utils/loading-fallback.js +0 -0
  328. package/dist/{src/web → web}/utils/lodash.d.ts +0 -0
  329. package/dist/{src/web → web}/utils/lodash.js +0 -0
  330. package/dist/{src/web → web}/utils/platform.d.ts +0 -0
  331. package/dist/{src/web → web}/utils/platform.js +0 -0
  332. package/dist/{src/web → web}/utils/tcb.d.ts +0 -0
  333. package/dist/{src/web → web}/utils/tcb.js +0 -0
  334. package/dist/web/utils/tmap.d.ts +3 -0
  335. package/dist/web/utils/tmap.js +21 -0
  336. package/dist/{src/web → web}/utils/use-cloud-id-temp-url.d.ts +0 -0
  337. package/dist/{src/web → web}/utils/use-cloud-id-temp-url.js +0 -0
  338. package/dist/{src/web → web}/utils/useSetState.d.ts +0 -0
  339. package/dist/{src/web → web}/utils/useSetState.js +0 -0
  340. package/dist/{src/web → web}/utils/useSyncValue.d.ts +0 -0
  341. package/dist/{src/web → web}/utils/useSyncValue.js +0 -1
  342. package/dist/{src/web → web}/utils/weui.d.ts +0 -0
  343. package/dist/{src/web → web}/utils/weui.js +0 -0
  344. package/package.json +22 -22
  345. package/dist/cypress/support/commands.d.ts +0 -1
  346. package/dist/cypress/support/commands.js +0 -40
  347. package/dist/cypress/support/e2e.d.ts +0 -24
  348. package/dist/cypress/support/e2e.js +0 -22
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { useState, useCallback, useEffect, useRef } from 'react';
2
+ import { useState, useEffect, useRef } from 'react';
3
3
  import classNames from '../../utils/classnames';
4
4
  import Swipe from 'react-easy-swipe';
5
5
  import { useDebouncedCallback, useEventListener, useResizeObserver, } from '@react-hookz/web';
@@ -12,15 +12,6 @@ export default function Swiper({ children, className, style, autoplay = true, ci
12
12
  const [swipeStyle, setSwipeStyle] = useState(null);
13
13
  const [height, setHeight] = useState(0);
14
14
  const { change = () => { } } = events;
15
- const setIndex = useCallback((index) => {
16
- if (index >= itemCount) {
17
- index = 0;
18
- }
19
- if (index < 0) {
20
- index = itemCount - 1;
21
- }
22
- setCurrentIndex(index);
23
- }, [itemCount]);
24
15
  useEffect(() => {
25
16
  if (autoplay) {
26
17
  // 自动切换
@@ -30,60 +21,10 @@ export default function Swiper({ children, className, style, autoplay = true, ci
30
21
  }, interval);
31
22
  return () => clearInterval(timer);
32
23
  }
33
- }, [currentIndex, autoplay, itemCount, interval, setIndex]);
24
+ }, [currentIndex, autoplay, itemCount]);
34
25
  // 触发切换
35
26
  const pre = useRef({ index: currentIndex }).current;
36
27
  useEffect(() => {
37
- // 设置容器样式、动画
38
- // TODO fix settimeout mess
39
- const updateSwipeStyle = (to, cur, length) => {
40
- // 最后向前到最开始
41
- if (to === 0 && cur === length - 1) {
42
- circular &&
43
- setSwipeStyle({
44
- transform: `translate3d(0, 0, 0)`,
45
- });
46
- // 不知道
47
- // eslint-disable-next-line rulesdir/no-timer
48
- setTimeout(() => {
49
- setSwipeStyle({
50
- transform: vertical
51
- ? `translate3d(0, -100%, 0)`
52
- : `translate3d(-100%, 0, 0)`,
53
- transitionDuration: `${duration}ms`,
54
- });
55
- }, 50);
56
- return;
57
- }
58
- // 第一个后退到最后
59
- if (to === length - 1 && cur === 0) {
60
- circular &&
61
- setSwipeStyle({
62
- transform: vertical
63
- ? `translate3d(0, -${(to + 2) * 100}%, 0)`
64
- : `translate3d(-${(to + 2) * 100}%, 0, 0)`,
65
- });
66
- // eslint-disable-next-line rulesdir/no-timer
67
- setTimeout(() => {
68
- setSwipeStyle({
69
- transform: vertical
70
- ? `translate3d(0, -${(to + 1) * 100}%, 0)`
71
- : `translate3d(-${(to + 1) * 100}%, 0, 0)`,
72
- transitionDuration: `${duration}ms`,
73
- });
74
- }, 50);
75
- return;
76
- }
77
- const style = {
78
- transform: vertical
79
- ? `translate3d(0, -${(to + 1) * 100}%, 0)`
80
- : `translate3d(-${(to + 1) * 100}%, 0, 0)`,
81
- };
82
- if (to !== cur) {
83
- style.transitionDuration = `${duration}ms`;
84
- }
85
- setSwipeStyle(style);
86
- };
87
28
  updateSwipeStyle(currentIndex, pre.index, itemCount);
88
29
  change({
89
30
  current: currentIndex,
@@ -91,7 +32,7 @@ export default function Swiper({ children, className, style, autoplay = true, ci
91
32
  return () => {
92
33
  pre.index = currentIndex;
93
34
  };
94
- }, [change, circular, currentIndex, duration, itemCount, pre, vertical]);
35
+ }, [currentIndex, vertical]);
95
36
  const outerWrapRef = useRef();
96
37
  useEventListener(outerWrapRef, 'load', (e) => {
97
38
  setHeight(e.target.clientHeight);
@@ -99,6 +40,65 @@ export default function Swiper({ children, className, style, autoplay = true, ci
99
40
  const itemsClone = React.Children.map(children, (x, i) => {
100
41
  return (React.createElement("div", { className: "g-swiper-item", "data-index": i }, x));
101
42
  });
43
+ const setIndex = (index) => {
44
+ if (index >= itemCount) {
45
+ index = 0;
46
+ }
47
+ if (index < 0) {
48
+ index = itemCount - 1;
49
+ }
50
+ setCurrentIndex(index);
51
+ };
52
+ // 设置容器样式、动画
53
+ // TODO fix settimeout mess
54
+ const updateSwipeStyle = (to, cur, length) => {
55
+ // 最后向前到最开始
56
+ if (to === 0 && cur === length - 1) {
57
+ circular &&
58
+ setSwipeStyle({
59
+ transform: `translate3d(0, 0, 0)`,
60
+ });
61
+ // 不知道
62
+ // eslint-disable-next-line rulesdir/no-timer
63
+ setTimeout(() => {
64
+ setSwipeStyle({
65
+ transform: vertical
66
+ ? `translate3d(0, -100%, 0)`
67
+ : `translate3d(-100%, 0, 0)`,
68
+ transitionDuration: `${duration}ms`,
69
+ });
70
+ }, 50);
71
+ return;
72
+ }
73
+ // 第一个后退到最后
74
+ if (to === length - 1 && cur === 0) {
75
+ circular &&
76
+ setSwipeStyle({
77
+ transform: vertical
78
+ ? `translate3d(0, -${(to + 2) * 100}%, 0)`
79
+ : `translate3d(-${(to + 2) * 100}%, 0, 0)`,
80
+ });
81
+ // eslint-disable-next-line rulesdir/no-timer
82
+ setTimeout(() => {
83
+ setSwipeStyle({
84
+ transform: vertical
85
+ ? `translate3d(0, -${(to + 1) * 100}%, 0)`
86
+ : `translate3d(-${(to + 1) * 100}%, 0, 0)`,
87
+ transitionDuration: `${duration}ms`,
88
+ });
89
+ }, 50);
90
+ return;
91
+ }
92
+ const style = {
93
+ transform: vertical
94
+ ? `translate3d(0, -${(to + 1) * 100}%, 0)`
95
+ : `translate3d(-${(to + 1) * 100}%, 0, 0)`,
96
+ };
97
+ if (to !== cur) {
98
+ style.transitionDuration = `${duration}ms`;
99
+ }
100
+ setSwipeStyle(style);
101
+ };
102
102
  return (React.createElement("div", { className: classNames('g-swiper weda-ui', className, {
103
103
  vertical: vertical,
104
104
  }), style: { height: height ? height : 'auto', ...style }, ref: outerWrapRef, id: id },
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -2,17 +2,15 @@ import * as React from 'react';
2
2
  import classNames from '../../utils/classnames';
3
3
  import './index.css';
4
4
  export default function Text({ text, maxLines, space, userSelect, style, className, events, id, level, contenteditable, onInput, onBlur, }) {
5
- const inlineStyle = React.useMemo(() => {
6
- const textStyle = {
7
- WebkitLineClamp: maxLines,
8
- whiteSpace: space ? 'pre-wrap' : 'pre-line',
9
- };
10
- if (!userSelect) {
11
- textStyle.userSelect = 'none';
12
- }
13
- return { ...textStyle, ...style };
14
- }, [maxLines, space, userSelect, style]);
5
+ const textStyle = {
6
+ WebkitLineClamp: maxLines,
7
+ whiteSpace: space ? 'pre-wrap' : 'pre-line',
8
+ };
9
+ if (!userSelect) {
10
+ textStyle.userSelect = 'none';
11
+ }
15
12
  const levelName = level === '0' || !level ? '' : `level_${level}`;
13
+ const inlineStyle = React.useMemo(() => ({ ...textStyle, ...style }), [textStyle, style]);
16
14
  return (React.createElement("p", {
17
15
  //@ts-expect-error contentEditable type def sucks
18
16
  contentEditable: contenteditable, onInput: onInput, onBlur: onBlur, style: inlineStyle, className: classNames('weda-text', 'weda-ui', className, levelName), id: id, onClick: (e) => events.tap({}, { originEvent: e }) }, text));
@@ -19,7 +19,7 @@ alt = '[加载失败]', gutter = 8, height = 100, width = 100, events = emptyObj
19
19
  const [errorList, setErrorList] = React.useState([]);
20
20
  React.useEffect(() => {
21
21
  events.load && events.load({ success: successList, error: errorList });
22
- }, [successList, errorList, events]);
22
+ }, [successList, errorList]);
23
23
  const boxStyle = {
24
24
  marginRight: gutter,
25
25
  marginBottom: gutter,
@@ -121,19 +121,7 @@ const WedaVideo = ({ className, style, id, videoDataSource, posterImage, autoPla
121
121
  setVideoModalStatus(true);
122
122
  });
123
123
  }
124
- }, [
125
- autoPlay,
126
- controlBarStatus,
127
- endTime,
128
- loopPlay,
129
- mutePlay,
130
- posterImage,
131
- realSrc,
132
- startTime,
133
- videoDataSource,
134
- videoRef,
135
- videoType,
136
- ]);
124
+ }, [videoRef]);
137
125
  useEffect(() => {
138
126
  // 切换视频源
139
127
  if (playerRef.current && videoType) {
@@ -146,7 +134,7 @@ const WedaVideo = ({ className, style, id, videoDataSource, posterImage, autoPla
146
134
  playerRef.current.src(srcOption);
147
135
  playerRef.current.load(realSrc);
148
136
  }
149
- }, [realSrc, videoType]);
137
+ }, [realSrc]);
150
138
  return (React.createElement(ConfigProvider, { classPrefix: "wedatea2td" },
151
139
  React.createElement("div", { className: cls, id: id, style: style, "data-testid": "wedaVideo" },
152
140
  React.createElement("div", { "data-vjs-player": true },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ export function getTMap(): any;
2
+ export function calculateDistance(latlng1: any, latlng2: any): number;
3
+ export const base64LocationIcon: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODQiIGhlaWdodD0iODgiIHZpZXdCb3g9IjAgMCA4NCA4OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgb3BhY2l0eT0iMC45OCIgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZGRkXzI0NDdfNTc0OSkiPgo8Y2lyY2xlIGN4PSI0MiIgY3k9IjM2IiByPSIxMiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8Y2lyY2xlIGN4PSI0MiIgY3k9IjM2IiByPSI3IiBmaWxsPSIjMDA1MkQ5Ii8+CjxkZWZzPgo8ZmlsdGVyIGlkPSJmaWx0ZXIwX2RkZF8yNDQ3XzU3NDkiIHg9IjAiIHk9IjAiIHdpZHRoPSI4NCIgaGVpZ2h0PSI4OCIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgo8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgo8ZmVDb2xvck1hdHJpeCBpbj0iU291cmNlQWxwaGEiIHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIgcmVzdWx0PSJoYXJkQWxwaGEiLz4KPGZlT2Zmc2V0IGR5PSI4Ii8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjUiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDggMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9ImVmZmVjdDFfZHJvcFNoYWRvd18yNDQ3XzU3NDkiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMTYiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMTIiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDQgMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzI0NDdfNTc0OSIgcmVzdWx0PSJlZmZlY3QyX2Ryb3BTaGFkb3dfMjQ0N181NzQ5Ii8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHk9IjYiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMTUiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDUgMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0iZWZmZWN0Ml9kcm9wU2hhZG93XzI0NDdfNTc0OSIgcmVzdWx0PSJlZmZlY3QzX2Ryb3BTaGFkb3dfMjQ0N181NzQ5Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0M19kcm9wU2hhZG93XzI0NDdfNTc0OSIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K";
@@ -0,0 +1,21 @@
1
+ export function getTMap() {
2
+ const TMap = window === null || window === void 0 ? void 0 : window.TMap;
3
+ return TMap;
4
+ }
5
+ export function calculateDistance(latlng1, latlng2) {
6
+ let lat1 = latlng1.latitude;
7
+ let lng1 = latlng1.longitude;
8
+ let lat2 = latlng2.latitude;
9
+ let lng2 = latlng2.longitude;
10
+ var radLat1 = (lat1 * Math.PI) / 180.0;
11
+ var radLat2 = (lat2 * Math.PI) / 180.0;
12
+ var a = radLat1 - radLat2;
13
+ var b = (lng1 * Math.PI) / 180.0 - (lng2 * Math.PI) / 180.0;
14
+ var s = 2 *
15
+ Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
16
+ Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
17
+ s = s * 6378.137; // EARTH_RADIUS;
18
+ s = Math.round(s * 10000) / 10000;
19
+ return s * 1000;
20
+ }
21
+ export const base64LocationIcon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODQiIGhlaWdodD0iODgiIHZpZXdCb3g9IjAgMCA4NCA4OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgb3BhY2l0eT0iMC45OCIgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZGRkXzI0NDdfNTc0OSkiPgo8Y2lyY2xlIGN4PSI0MiIgY3k9IjM2IiByPSIxMiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8Y2lyY2xlIGN4PSI0MiIgY3k9IjM2IiByPSI3IiBmaWxsPSIjMDA1MkQ5Ii8+CjxkZWZzPgo8ZmlsdGVyIGlkPSJmaWx0ZXIwX2RkZF8yNDQ3XzU3NDkiIHg9IjAiIHk9IjAiIHdpZHRoPSI4NCIgaGVpZ2h0PSI4OCIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgo8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgo8ZmVDb2xvck1hdHJpeCBpbj0iU291cmNlQWxwaGEiIHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIgcmVzdWx0PSJoYXJkQWxwaGEiLz4KPGZlT2Zmc2V0IGR5PSI4Ii8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjUiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDggMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0iQmFja2dyb3VuZEltYWdlRml4IiByZXN1bHQ9ImVmZmVjdDFfZHJvcFNoYWRvd18yNDQ3XzU3NDkiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMTYiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMTIiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDQgMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzI0NDdfNTc0OSIgcmVzdWx0PSJlZmZlY3QyX2Ryb3BTaGFkb3dfMjQ0N181NzQ5Ii8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHk9IjYiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMTUiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDUgMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0iZWZmZWN0Ml9kcm9wU2hhZG93XzI0NDdfNTc0OSIgcmVzdWx0PSJlZmZlY3QzX2Ryb3BTaGFkb3dfMjQ0N181NzQ5Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0M19kcm9wU2hhZG93XzI0NDdfNTc0OSIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K';
File without changes
File without changes
File without changes
@@ -7,7 +7,6 @@ export function useSyncValue(defaultValue, comparotor = Object.is) {
7
7
  if (!comparotor(prevValue, defaultValue)) {
8
8
  setStateValue(defaultValue);
9
9
  }
10
- // eslint-disable-next-line react-hooks/exhaustive-deps
11
10
  }, [defaultValue]);
12
11
  const setter = useCallback((next) => {
13
12
  setStateValue(next);
File without changes
File without changes
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@cloudbase/weda-ui",
3
- "version": "3.3.1",
4
- "main": "./dist/src/index.js",
5
- "module": "./dist/src/index",
3
+ "version": "3.3.3",
4
+ "main": "./dist/index.js",
5
+ "module": "./dist/index",
6
6
  "miniprogram": "mpdist",
7
7
  "engines": {
8
8
  "node": "^14.13.1 || >=16.0.0"
@@ -38,7 +38,7 @@
38
38
  "lint": "eslint --ext .js,.jsx,.ts,.tsx .",
39
39
  "lint:fix": "npm run lint -- --fix",
40
40
  "prepare": "husky install || true",
41
- "build-npm": "rimraf dist && mkdirp dist && cp -r src/web dist/ && cp -r src/configs dist/ && cp src/index.js dist/",
41
+ "build-npm": "rimraf dist && mkdir dist && cp -r src/web dist/ && cp -r src/configs dist/ && cp src/index.js dist/",
42
42
  "build-mp": "rimraf mpdist && cp -r src/mp mpdist",
43
43
  "clear:snap": "rimraf ./src/test/__snapshots__",
44
44
  "size": "npm run build:cli && size-limit",
@@ -95,45 +95,45 @@
95
95
  "@cypress/webpack-dev-server": "~2.0.0",
96
96
  "@istanbuljs/nyc-config-typescript": "^1.0.2",
97
97
  "@size-limit/preset-big-lib": "^7.0.8",
98
- "@storybook/addon-actions": "^6.5.12",
99
- "@storybook/addon-essentials": "^6.5.12",
100
- "@storybook/addon-links": "^6.5.12",
101
- "@storybook/addon-storyshots": "^6.5.12",
102
- "@storybook/builder-webpack5": "^6.5.12",
103
- "@storybook/manager-webpack5": "^6.5.12",
104
- "@storybook/react": "^6.5.12",
98
+ "@storybook/addon-actions": "^6.5.9",
99
+ "@storybook/addon-essentials": "^6.5.9",
100
+ "@storybook/addon-links": "^6.5.9",
101
+ "@storybook/addon-storyshots": "^6.5.9",
102
+ "@storybook/builder-webpack5": "^6.5.9",
103
+ "@storybook/manager-webpack5": "^6.5.9",
104
+ "@storybook/react": "^6.5.9",
105
105
  "@swc-node/jest": "^1.5.2",
106
- "@testing-library/jest-dom": "^5.16.5",
106
+ "@testing-library/jest-dom": "^5.16.4",
107
107
  "@testing-library/react": "^12.1.5",
108
108
  "@testing-library/react-hooks": "^8.0.1",
109
109
  "@types/jest": "^27.5.1",
110
110
  "@types/resize-observer-browser": "^0.1.7",
111
111
  "@types/testing-library__jest-dom": "^5.14.5",
112
- "@typescript-eslint/eslint-plugin": "^5.37.0",
113
- "@typescript-eslint/parser": "^5.37.0",
112
+ "@typescript-eslint/eslint-plugin": "^5.30.5",
113
+ "@typescript-eslint/parser": "^5.30.5",
114
114
  "babel-loader": "^8.2.5",
115
115
  "babel-plugin-istanbul": "^6.1.1",
116
116
  "cross-env": "^7.0.3",
117
117
  "cypress": "~10.3.0",
118
118
  "cypress-image-diff-js": "^1.20.0",
119
119
  "cypress-wait-until": "^1.7.2",
120
- "eslint": "^8.23.1",
120
+ "eslint": "^8.19.0",
121
121
  "eslint-config-prettier": "^8.5.0",
122
122
  "eslint-config-tencent": "^1.0.4",
123
- "eslint-import-resolver-typescript": "^3.5.1",
123
+ "eslint-import-resolver-typescript": "^3.2.4",
124
124
  "eslint-plugin-cypress": "^2.12.1",
125
125
  "eslint-plugin-import": "^2.26.0",
126
126
  "eslint-plugin-jest": "^26.5.3",
127
127
  "eslint-plugin-prettier": "^4.2.1",
128
- "eslint-plugin-react": "^7.31.8",
128
+ "eslint-plugin-react": "^7.30.1",
129
129
  "eslint-plugin-rulesdir": "^0.2.1",
130
- "eslint-plugin-storybook": "^0.6.4",
130
+ "eslint-plugin-storybook": "^0.5.13",
131
131
  "husky": "^8.0.1",
132
132
  "identity-obj-proxy": "^3.0.0",
133
133
  "jest": "^27.5.1",
134
134
  "jest-canvas-mock": "^2.4.0",
135
135
  "jest-environment-jsdom": "^27",
136
- "jest-preview": "^0.3.1",
136
+ "jest-preview": "^0.2.6",
137
137
  "miniprogram-simulate": "^1.5.7",
138
138
  "mkdirp": "^1.0.4",
139
139
  "mochawesome": "^7.1.3",
@@ -155,10 +155,10 @@
155
155
  "swc-plugin-coverage-instrument": "^0.0.7",
156
156
  "ts-loader": "^9.3.1",
157
157
  "ts-node": "^10.9.1",
158
- "typescript": "^4.8.3",
159
- "webpack": "^5.74.0",
158
+ "typescript": "^4.7.4",
159
+ "webpack": "^5.73.0",
160
160
  "webpack-cli": "^4.10.0",
161
- "webpack-dev-server": "^4.11.0",
161
+ "webpack-dev-server": "^4.9.3",
162
162
  "zx": "^5.2.0"
163
163
  },
164
164
  "nano-staged": {
@@ -1 +0,0 @@
1
- import 'cypress-wait-until';
@@ -1,40 +0,0 @@
1
- /// <reference types="cypress" />
2
- // ***********************************************
3
- // This example commands.ts shows you how to
4
- // create various custom commands and overwrite
5
- // existing commands.
6
- //
7
- // For more comprehensive examples of custom
8
- // commands please read more here:
9
- // https://on.cypress.io/custom-commands
10
- // ***********************************************
11
- //
12
- //
13
- // -- This is a parent command --
14
- // Cypress.Commands.add('login', (email, password) => { ... })
15
- //
16
- //
17
- // -- This is a child command --
18
- // Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
19
- //
20
- //
21
- // -- This is a dual command --
22
- // Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
23
- //
24
- //
25
- // -- This will overwrite an existing command --
26
- // Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
27
- //
28
- // declare global {
29
- // namespace Cypress {
30
- // interface Chainable {
31
- // login(email: string, password: string): Chainable<void>
32
- // drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
33
- // dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
34
- // visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
35
- // }
36
- // }
37
- // }
38
- const compareSnapshotCommand = require('cypress-image-diff-js/dist/command');
39
- compareSnapshotCommand();
40
- import 'cypress-wait-until';
@@ -1,24 +0,0 @@
1
- import './commands';
2
- import 'style-loader!css-loader!./global-app.css';
3
- declare global {
4
- namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * @param name The name of the snapshots that will be generated
8
- * @param testThreshold @default 0 A number between 0 and 1 that represents the allowed percentage of pixels that can be different between the two snapshots
9
- * @param retryOptions @default { limit: 0, timeout: Cypress.config('defaultCommandTimeout'), delay: Cypress.config('defaultCommandTimeout') / 5 }
10
- * @example cy.compareSnapshot('empty-canvas', 0.1)
11
- */
12
- compareSnapshot(name: string, testThreshold?: number, retryOptions?: {
13
- /**
14
- * The maximum number of retries
15
- */
16
- limit: number;
17
- /**
18
- * Delay before next iteration in ms
19
- */
20
- delay: number;
21
- }): Chainable<Element>;
22
- }
23
- }
24
- }
@@ -1,22 +0,0 @@
1
- // ***********************************************************
2
- // This example support/e2e.ts is processed and
3
- // loaded automatically before your test files.
4
- //
5
- // This is a great place to put global configuration and
6
- // behavior that modifies Cypress.
7
- //
8
- // You can change the location of this file or turn off
9
- // automatically serving support files with the
10
- // 'supportFile' configuration option.
11
- //
12
- // You can read more here:
13
- // https://on.cypress.io/configuration
14
- // ***********************************************************
15
- // Import commands.js using ES2015 syntax:
16
- import './commands';
17
- import 'style-loader!css-loader!./global-app.css';
18
- // Alternatively you can use CommonJS syntax:
19
- // require('./commands')
20
- after(() => {
21
- cy.task('generateReport');
22
- });