@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.
- package/dist/{src/configs → configs}/actions/showModal.json +0 -0
- package/dist/{src/configs → configs}/actions/showToast.json +0 -0
- package/dist/{src/configs → configs}/components/auth.json +0 -0
- package/dist/{src/configs → configs}/components/button.json +0 -0
- package/dist/{src/configs → configs}/components/calendar.json +0 -0
- package/dist/{src/configs → configs}/components/carousel.json +0 -0
- package/dist/{src/configs → configs}/components/chart/bar.json +0 -0
- package/dist/{src/configs → configs}/components/chart/line.json +0 -0
- package/dist/{src/configs → configs}/components/chart/pie.json +0 -0
- package/dist/{src/configs → configs}/components/chart/statisticsCard.json +0 -0
- package/dist/{src/configs → configs}/components/container.json +0 -0
- package/dist/{src/configs → configs}/components/dataView.json +0 -0
- package/dist/{src/configs → configs}/components/drawer.json +0 -0
- package/dist/{src/configs → configs}/components/form/checkbox.json +0 -0
- package/dist/{src/configs → configs}/components/form/departTreeSelect.json +0 -0
- package/dist/{src/configs → configs}/components/form/form.json +0 -0
- package/dist/{src/configs → configs}/components/form/input.json +0 -0
- package/dist/{src/configs → configs}/components/form/location.json +0 -0
- package/dist/{src/configs → configs}/components/form/radio.json +0 -0
- package/dist/{src/configs → configs}/components/form/richText.json +0 -0
- package/dist/{src/configs → configs}/components/form/select.json +0 -0
- package/dist/{src/configs → configs}/components/form/switch.json +0 -0
- package/dist/{src/configs → configs}/components/form/textarea.json +0 -0
- package/dist/{src/configs → configs}/components/form/tips.json +0 -0
- package/dist/{src/configs → configs}/components/form/uploader.json +0 -0
- package/dist/{src/configs → configs}/components/form/uploaderFile.json +0 -0
- package/dist/{src/configs → configs}/components/form/userTreeSelect.json +0 -0
- package/dist/{src/configs → configs}/components/formdetail.json +0 -0
- package/dist/{src/configs → configs}/components/graphicCard.json +0 -0
- package/dist/{src/configs → configs}/components/image.json +0 -0
- package/dist/{src/configs → configs}/components/link.json +0 -0
- package/dist/{src/configs → configs}/components/listView.json +0 -0
- package/dist/{src/configs → configs}/components/lottery.json +0 -0
- package/dist/{src/configs → configs}/components/modal.json +0 -0
- package/dist/{src/configs → configs}/components/navLayout.json +0 -0
- package/dist/{src/configs → configs}/components/navigationBar.json +0 -0
- package/dist/{src/configs → configs}/components/richtextview.json +0 -0
- package/dist/{src/configs → configs}/components/scrollVeiw.json +0 -0
- package/dist/{src/configs → configs}/components/slot.json +0 -0
- package/dist/{src/configs → configs}/components/swiper.json +0 -0
- package/dist/{src/configs → configs}/components/tabs.json +0 -0
- package/dist/{src/configs → configs}/components/text.json +0 -0
- package/dist/{src/configs → configs}/components/wedaVideo.json +0 -0
- package/dist/{src/configs → configs}/components/wxOpenApi/phone.json +0 -0
- package/dist/{src/configs → configs}/components/wxOpenApi/phoneCode.json +0 -0
- package/dist/{src/configs → configs}/components/wxOpenApi/share.json +0 -0
- package/dist/{src/configs → configs}/components/wxOpenApi/userInfo.json +0 -0
- package/dist/{src/configs → configs}/index.d.ts +0 -0
- package/dist/{src/configs → configs}/index.js +0 -0
- package/dist/{src/docs → docs}/common/format.d.ts +0 -0
- package/dist/{src/docs → docs}/common/format.js +0 -0
- package/dist/{src/docs → docs}/common/tableView.d.ts +0 -0
- package/dist/{src/docs → docs}/common/tableView.js +0 -0
- package/dist/{src/index.d.ts → index.d.ts} +0 -0
- package/dist/{src/index.js → index.js} +0 -0
- package/dist/{src/setupTests.d.ts → setupTests.d.ts} +0 -0
- package/dist/{src/setupTests.js → setupTests.js} +0 -0
- package/dist/{src/web → web}/actions/index.d.ts +0 -0
- package/dist/{src/web → web}/actions/index.js +0 -0
- package/dist/{src/web → web}/actions/showModal/index.d.ts +0 -0
- package/dist/{src/web → web}/actions/showModal/index.js +0 -0
- package/dist/{src/web → web}/actions/showToast/index.d.ts +0 -0
- package/dist/{src/web → web}/actions/showToast/index.js +0 -0
- package/dist/{src/web → web}/components/button/index.d.ts +0 -0
- package/dist/{src/web → web}/components/button/index.js +0 -0
- package/dist/{src/web → web}/components/calendar/index.d.ts +0 -0
- package/dist/{src/web → web}/components/calendar/index.js +37 -39
- package/dist/{src/web → web}/components/calendar/util.d.ts +0 -0
- package/dist/{src/web → web}/components/calendar/util.js +0 -0
- package/dist/{src/web → web}/components/carousel/index.d.ts +0 -0
- package/dist/{src/web → web}/components/carousel/index.js +62 -62
- package/dist/{src/web → web}/components/chart/bar/index.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/bar/index.js +0 -4
- package/dist/{src/web → web}/components/chart/bar/index.old.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/bar/index.old.js +0 -0
- package/dist/{src/web → web}/components/chart/common/Chart.d.ts +0 -1
- package/dist/{src/web → web}/components/chart/common/Chart.js +1 -9
- package/dist/{src/web → web}/components/chart/common/chart-custom-connector.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/chart-custom-connector.js +1 -1
- package/dist/{src/web → web}/components/chart/common/chart-error.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/chart-error.js +0 -0
- package/dist/{src/web → web}/components/chart/common/config/bar.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/config/bar.js +0 -0
- package/dist/{src/web → web}/components/chart/common/config/global.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/config/global.js +0 -0
- package/dist/{src/web → web}/components/chart/common/config/line.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/config/line.js +0 -0
- package/dist/{src/web → web}/components/chart/common/config/pie.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/config/pie.js +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartBar.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartBar.js +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartBase.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartBase.js +1 -1
- package/dist/{src/web → web}/components/chart/common/core/eChartLine.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartLine.js +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartPie.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/core/eChartPie.js +0 -0
- package/dist/{src/web → web}/components/chart/common/core/type.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/core/type.js +0 -0
- package/dist/{src/web → web}/components/chart/common/data-transform.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/data-transform.js +1 -1
- package/dist/{src/web → web}/components/chart/common/echarts.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/echarts.js +0 -0
- package/dist/{src/web → web}/components/chart/common/useChart.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/common/useChart.js +2 -11
- package/dist/{src/web → web}/components/chart/line/index.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/line/index.js +0 -0
- package/dist/{src/web → web}/components/chart/line/index.old.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/line/index.old.js +0 -0
- package/dist/{src/web → web}/components/chart/pie/index.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/pie/index.js +0 -0
- package/dist/{src/web → web}/components/chart/pie/index.old.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/pie/index.old.js +0 -0
- package/dist/{src/web → web}/components/chart/statisticsCard/index.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/statisticsCard/index.js +0 -0
- package/dist/{src/web → web}/components/chart/statisticsCard/interface.d.ts +0 -0
- package/dist/{src/web → web}/components/chart/statisticsCard/interface.js +0 -0
- package/dist/{src/web → web}/components/common/error-boundary.d.ts +0 -0
- package/dist/{src/web → web}/components/common/error-boundary.js +0 -0
- package/dist/{src/web → web}/components/common/portal.d.ts +0 -0
- package/dist/{src/web → web}/components/common/portal.js +0 -0
- package/dist/{src/web → web}/components/common/use-loop-render-detect.d.ts +2 -2
- package/dist/{src/web → web}/components/common/use-loop-render-detect.js +7 -9
- package/dist/{src/web → web}/components/container/index.d.ts +0 -0
- package/dist/{src/web → web}/components/container/index.js +0 -0
- package/dist/{src/web → web}/components/dataView/index.d.ts +0 -0
- package/dist/{src/web → web}/components/dataView/index.js +0 -0
- package/dist/{src/web → web}/components/dataView/interface.d.ts +0 -0
- package/dist/{src/web → web}/components/dataView/interface.js +0 -0
- package/dist/{src/web → web}/components/drawer/index.d.ts +0 -0
- package/dist/{src/web → web}/components/drawer/index.js +0 -0
- package/dist/{src/web → web}/components/form/checkbox/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/checkbox/index.js +29 -29
- package/dist/{src/web → web}/components/form/enumSelect/MultipleSelect.d.ts +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/MultipleSelect.js +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/NormalSelect.d.ts +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/NormalSelect.js +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/SelectContainer.d.ts +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/SelectContainer.js +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/index.js +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/props/defaultProps.d.ts +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/props/defaultProps.js +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/props/propsTypes.d.ts +0 -0
- package/dist/{src/web → web}/components/form/enumSelect/props/propsTypes.js +0 -0
- package/dist/{src/web → web}/components/form/form/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/form/index.js +1 -3
- package/dist/{src/web → web}/components/form/formcell/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/formcell/index.js +0 -0
- package/dist/{src/web → web}/components/form/input/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/input/index.js +0 -0
- package/dist/{src/web → web}/components/form/location/common/mapChoose.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/common/mapChoose.js +1 -2
- package/dist/{src/web → web}/components/form/location/common/mapView.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/common/mapView.js +1 -4
- package/dist/{src/web → web}/components/form/location/common/propsConfig.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/common/propsConfig.js +0 -0
- package/dist/{src/web → web}/components/form/location/common/selectModal.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/common/selectModal.js +0 -0
- package/dist/{src/web → web}/components/form/location/common/tmap.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/common/tmap.js +0 -0
- package/dist/{src/web → web}/components/form/location/common/useLocationInfo.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/common/useLocationInfo.js +0 -0
- package/dist/{src/web → web}/components/form/location/components/LocationH5/location.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/components/LocationH5/location.h5.js +0 -0
- package/dist/{src/web → web}/components/form/location/components/LocationPC/Header.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/components/LocationPC/Header.js +0 -0
- package/dist/{src/web → web}/components/form/location/components/LocationPC/location.PC.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/components/LocationPC/location.PC.js +0 -4
- package/dist/{src/web → web}/components/form/location/constants.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/constants.js +0 -0
- package/dist/{src/web → web}/components/form/location/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/location/index.js +0 -0
- package/dist/{src/web → web}/components/form/radio/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/radio/index.js +3 -3
- package/dist/{src/web → web}/components/form/renderDecorator.d.ts +0 -0
- package/dist/{src/web → web}/components/form/renderDecorator.js +0 -0
- package/dist/{src/web → web}/components/form/select/allTimePicker/calendar.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/allTimePicker/calendar.js +0 -0
- package/dist/{src/web → web}/components/form/select/allTimePicker/dataUtils.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/allTimePicker/dataUtils.js +0 -0
- package/dist/{src/web → web}/components/form/select/allTimePicker/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/allTimePicker/index.js +0 -1
- package/dist/{src/web → web}/components/form/select/dropdown-select/ui.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/dropdown-select/ui.js +0 -0
- package/dist/{src/web → web}/components/form/select/h5.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/h5.js +4 -18
- package/dist/{src/web → web}/components/form/select/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/index.js +1 -8
- package/dist/{src/web → web}/components/form/select/region/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/region/index.js +0 -0
- package/dist/{src/web → web}/components/form/select/time.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/time.js +0 -0
- package/dist/{src/web → web}/components/form/select/use-options.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/use-options.js +1 -1
- package/dist/{src/web → web}/components/form/select/year.d.ts +0 -0
- package/dist/{src/web → web}/components/form/select/year.js +0 -0
- package/dist/{src/web → web}/components/form/switch/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/switch/index.js +0 -0
- package/dist/{src/web → web}/components/form/textarea/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/textarea/index.js +0 -0
- package/dist/{src/web → web}/components/form/tips/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/tips/index.js +0 -0
- package/dist/{src/web → web}/components/form/uploader/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/uploader/index.js +0 -0
- package/dist/{src/web → web}/components/form/uploader/uploader.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/form/uploader/uploader.h5.js +2 -2
- package/dist/{src/web → web}/components/form/uploader/uploader.pc.d.ts +0 -0
- package/dist/{src/web → web}/components/form/uploader/uploader.pc.js +1 -1
- package/dist/{src/web → web}/components/form/uploaderFile/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/uploaderFile/index.js +0 -0
- package/dist/{src/web → web}/components/form/uploaderFile/uploadFile.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/form/uploaderFile/uploadFile.h5.js +7 -9
- package/dist/{src/web → web}/components/form/uploaderFile/uploadFile.pc.d.ts +0 -0
- package/dist/{src/web → web}/components/form/uploaderFile/uploadFile.pc.js +6 -9
- package/dist/{src/web → web}/components/form/userOrgSelect/comTool.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/comTool.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/departTreeSelect/index.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/getUserService.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/getUserService.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/index.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/index.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/userTreeSelect.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/userTreeSelect.h5.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/userTreeSelect.pc.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/userTreeSelect.pc.js +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/utils.d.ts +0 -0
- package/dist/{src/web → web}/components/form/userOrgSelect/utils.js +0 -0
- package/dist/{src/web → web}/components/formdetail/index.d.ts +0 -0
- package/dist/{src/web → web}/components/formdetail/index.js +10 -12
- package/dist/{src/web → web}/components/graphicCard/index.d.ts +0 -0
- package/dist/{src/web → web}/components/graphicCard/index.js +6 -5
- package/dist/{src/web → web}/components/image/image.d.ts +0 -0
- package/dist/{src/web → web}/components/image/image.js +0 -0
- package/dist/{src/web → web}/components/image/index.d.ts +0 -0
- package/dist/{src/web → web}/components/image/index.js +1 -1
- package/dist/{src/web → web}/components/index.d.ts +0 -0
- package/dist/{src/web → web}/components/index.js +0 -0
- package/dist/{src/web → web}/components/link/index.d.ts +0 -0
- package/dist/{src/web → web}/components/link/index.js +0 -0
- package/dist/{src/web → web}/components/listView/index.d.ts +0 -0
- package/dist/{src/web → web}/components/listView/index.js +0 -1
- package/dist/{src/web → web}/components/listView/interface.d.ts +0 -0
- package/dist/{src/web → web}/components/listView/interface.js +0 -0
- package/dist/{src/web → web}/components/lottery/index.d.ts +0 -0
- package/dist/{src/web → web}/components/lottery/index.js +16 -10
- package/dist/{src/web → web}/components/lottery/lotteryUtil.d.ts +0 -0
- package/dist/{src/web → web}/components/lottery/lotteryUtil.js +0 -0
- package/dist/{src/web → web}/components/modal/index.d.ts +0 -0
- package/dist/{src/web → web}/components/modal/index.js +0 -0
- package/dist/{src/web → web}/components/modal/modal.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/modal/modal.h5.js +0 -0
- package/dist/{src/web → web}/components/modal/modal.pc.d.ts +0 -0
- package/dist/{src/web → web}/components/modal/modal.pc.js +0 -0
- package/dist/{src/web → web}/components/navLayout/index.d.ts +0 -0
- package/dist/{src/web → web}/components/navLayout/index.js +1 -1
- package/dist/{src/web → web}/components/navigationBar/common.d.ts +0 -0
- package/dist/{src/web → web}/components/navigationBar/common.js +0 -0
- package/dist/{src/web → web}/components/navigationBar/h5Menu.d.ts +0 -0
- package/dist/{src/web → web}/components/navigationBar/h5Menu.js +0 -0
- package/dist/{src/web → web}/components/navigationBar/horizontalMenu.d.ts +0 -0
- package/dist/{src/web → web}/components/navigationBar/horizontalMenu.js +1 -1
- package/dist/{src/web → web}/components/navigationBar/index.d.ts +0 -0
- package/dist/{src/web → web}/components/navigationBar/index.js +0 -0
- package/dist/{src/web → web}/components/navigationBar/verticalMenu.d.ts +0 -0
- package/dist/{src/web → web}/components/navigationBar/verticalMenu.js +0 -0
- package/dist/{src/web → web}/components/phone/index.d.ts +0 -0
- package/dist/{src/web → web}/components/phone/index.js +0 -0
- package/dist/{src/web → web}/components/phoneCode/index.d.ts +0 -0
- package/dist/{src/web → web}/components/phoneCode/index.js +0 -0
- package/dist/{src/web → web}/components/picker/datePicker.d.ts +0 -0
- package/dist/{src/web → web}/components/picker/datePicker.js +0 -0
- package/dist/{src/web → web}/components/picker/picker.d.ts +0 -0
- package/dist/{src/web → web}/components/picker/picker.js +0 -0
- package/dist/{src/web → web}/components/picker/timePicker.d.ts +0 -0
- package/dist/{src/web → web}/components/picker/timePicker.js +0 -0
- package/dist/{src/web → web}/components/richText/const.d.ts +0 -0
- package/dist/{src/web → web}/components/richText/const.js +0 -0
- package/dist/{src/web → web}/components/richText/index.d.ts +0 -0
- package/dist/{src/web → web}/components/richText/index.js +2 -1
- package/dist/{src/web → web}/components/richTextView/index.d.ts +0 -0
- package/dist/{src/web → web}/components/richTextView/index.js +18 -20
- package/dist/{src/web → web}/components/scrollView/index.d.ts +0 -1
- package/dist/{src/web → web}/components/scrollView/index.js +4 -6
- package/dist/{src/web → web}/components/share/index.d.ts +0 -0
- package/dist/{src/web → web}/components/share/index.js +0 -0
- package/dist/{src/web → web}/components/slot/index.d.ts +0 -0
- package/dist/{src/web → web}/components/slot/index.js +0 -0
- package/dist/{src/web → web}/components/swiper/index.d.ts +0 -0
- package/dist/{src/web → web}/components/swiper/index.js +62 -62
- package/dist/{src/web → web}/components/tabs/index.d.ts +0 -0
- package/dist/{src/web → web}/components/tabs/index.js +0 -0
- package/dist/{src/web → web}/components/tabs/tabs.h5.d.ts +0 -0
- package/dist/{src/web → web}/components/tabs/tabs.h5.js +0 -0
- package/dist/{src/web → web}/components/tabs/tabs.pc.d.ts +0 -0
- package/dist/{src/web → web}/components/tabs/tabs.pc.js +0 -0
- package/dist/{src/web → web}/components/text/index.d.ts +0 -0
- package/dist/{src/web → web}/components/text/index.js +8 -10
- package/dist/{src/web → web}/components/uploaderFileView/index.d.ts +0 -0
- package/dist/{src/web → web}/components/uploaderFileView/index.js +0 -0
- package/dist/{src/web → web}/components/uploaderView/index.d.ts +0 -0
- package/dist/{src/web → web}/components/uploaderView/index.js +1 -1
- package/dist/{src/web → web}/components/userInfo/index.d.ts +0 -0
- package/dist/{src/web → web}/components/userInfo/index.js +0 -0
- package/dist/{src/web → web}/components/wedaVideo/index.d.ts +0 -0
- package/dist/{src/web → web}/components/wedaVideo/index.js +2 -14
- package/dist/{src/web → web}/index.d.ts +0 -0
- package/dist/{src/web → web}/index.js +0 -0
- package/dist/{src/web → web}/utils/classnames.d.ts +0 -0
- package/dist/{src/web → web}/utils/classnames.js +0 -0
- package/dist/{src/web → web}/utils/console.d.ts +0 -0
- package/dist/{src/web → web}/utils/console.js +0 -0
- package/dist/{src/web → web}/utils/constant.d.ts +0 -0
- package/dist/{src/web → web}/utils/constant.js +0 -0
- package/dist/{src/web → web}/utils/debounce.d.ts +0 -0
- package/dist/{src/web → web}/utils/debounce.js +0 -0
- package/dist/{src/web → web}/utils/getLocalCounter.d.ts +0 -0
- package/dist/{src/web → web}/utils/getLocalCounter.js +0 -0
- package/dist/{src/web → web}/utils/isObjectEqual.d.ts +0 -0
- package/dist/{src/web → web}/utils/isObjectEqual.js +0 -0
- package/dist/{src/web → web}/utils/loading-fallback.d.ts +0 -0
- package/dist/{src/web → web}/utils/loading-fallback.js +0 -0
- package/dist/{src/web → web}/utils/lodash.d.ts +0 -0
- package/dist/{src/web → web}/utils/lodash.js +0 -0
- package/dist/{src/web → web}/utils/platform.d.ts +0 -0
- package/dist/{src/web → web}/utils/platform.js +0 -0
- package/dist/{src/web → web}/utils/tcb.d.ts +0 -0
- package/dist/{src/web → web}/utils/tcb.js +0 -0
- package/dist/web/utils/tmap.d.ts +3 -0
- package/dist/web/utils/tmap.js +21 -0
- package/dist/{src/web → web}/utils/use-cloud-id-temp-url.d.ts +0 -0
- package/dist/{src/web → web}/utils/use-cloud-id-temp-url.js +0 -0
- package/dist/{src/web → web}/utils/useSetState.d.ts +0 -0
- package/dist/{src/web → web}/utils/useSetState.js +0 -0
- package/dist/{src/web → web}/utils/useSyncValue.d.ts +0 -0
- package/dist/{src/web → web}/utils/useSyncValue.js +0 -1
- package/dist/{src/web → web}/utils/weui.d.ts +0 -0
- package/dist/{src/web → web}/utils/weui.js +0 -0
- package/package.json +22 -22
- package/dist/cypress/support/commands.d.ts +0 -1
- package/dist/cypress/support/commands.js +0 -40
- package/dist/cypress/support/e2e.d.ts +0 -24
- package/dist/cypress/support/e2e.js +0 -22
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useState,
|
|
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
|
|
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
|
-
}, [
|
|
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
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|
|
22
|
+
}, [successList, errorList]);
|
|
23
23
|
const boxStyle = {
|
|
24
24
|
marginRight: gutter,
|
|
25
25
|
marginBottom: gutter,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|
|
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
|
|
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,PHN2ZyB3aWR0aD0iODQiIGhlaWdodD0iODgiIHZpZXdCb3g9IjAgMCA4NCA4OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4K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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+CjxkZWZzPgo8ZmlsdGVyIGlkPSJmaWx0ZXIwX2RkZF8yNDQ3XzU3NDkiIHg9IjAiIHk9IjAiIHdpZHRoPSI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XzI0NDdfNTc0OSIgcmVzdWx0PSJlZmZlY3QyX2Ryb3BTaGFkb3dfMjQ0N181NzQ5Ii8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHk9IjYiLz4KPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMTUiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDUgMCIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluMj0iZWZmZWN0Ml9kcm9wU2hhZG93XzI0NDdfNTc0OSIgcmVzdWx0PSJlZmZlY3QzX2Ryb3BTaGFkb3dfMjQ0N181NzQ5Ii8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0M19kcm9wU2hhZG93XzI0NDdfNTc0OSIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPC9kZWZzPgo8L3N2Zz4K';
|
|
File without changes
|
|
File without changes
|
|
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.
|
|
4
|
-
"main": "./dist/
|
|
5
|
-
"module": "./dist/
|
|
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 &&
|
|
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.
|
|
99
|
-
"@storybook/addon-essentials": "^6.5.
|
|
100
|
-
"@storybook/addon-links": "^6.5.
|
|
101
|
-
"@storybook/addon-storyshots": "^6.5.
|
|
102
|
-
"@storybook/builder-webpack5": "^6.5.
|
|
103
|
-
"@storybook/manager-webpack5": "^6.5.
|
|
104
|
-
"@storybook/react": "^6.5.
|
|
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.
|
|
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.
|
|
113
|
-
"@typescript-eslint/parser": "^5.
|
|
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.
|
|
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.
|
|
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.
|
|
128
|
+
"eslint-plugin-react": "^7.30.1",
|
|
129
129
|
"eslint-plugin-rulesdir": "^0.2.1",
|
|
130
|
-
"eslint-plugin-storybook": "^0.
|
|
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.
|
|
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.
|
|
159
|
-
"webpack": "^5.
|
|
158
|
+
"typescript": "^4.7.4",
|
|
159
|
+
"webpack": "^5.73.0",
|
|
160
160
|
"webpack-cli": "^4.10.0",
|
|
161
|
-
"webpack-dev-server": "^4.
|
|
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
|
-
});
|