@rsmax/wechat 1.0.1
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/CHANGELOG.md +6 -0
- package/README.md +3 -0
- package/cjs/api/index.d.ts +281 -0
- package/cjs/api/index.js +282 -0
- package/cjs/hostComponents/Ad/index.d.ts +18 -0
- package/cjs/hostComponents/Ad/index.js +9 -0
- package/cjs/hostComponents/Ad/node.d.ts +11 -0
- package/cjs/hostComponents/Ad/node.js +14 -0
- package/cjs/hostComponents/AdCustom/index.d.ts +17 -0
- package/cjs/hostComponents/AdCustom/index.js +9 -0
- package/cjs/hostComponents/AdCustom/node.d.ts +8 -0
- package/cjs/hostComponents/AdCustom/node.js +11 -0
- package/cjs/hostComponents/Audio/index.d.ts +2 -0
- package/cjs/hostComponents/Audio/index.js +6 -0
- package/cjs/hostComponents/Audio/node.d.ts +18 -0
- package/cjs/hostComponents/Audio/node.js +21 -0
- package/cjs/hostComponents/Button/index.d.ts +223 -0
- package/cjs/hostComponents/Button/index.js +14 -0
- package/cjs/hostComponents/Button/node.d.ts +48 -0
- package/cjs/hostComponents/Button/node.js +51 -0
- package/cjs/hostComponents/Camera/index.d.ts +26 -0
- package/cjs/hostComponents/Camera/index.js +15 -0
- package/cjs/hostComponents/Camera/node.d.ts +15 -0
- package/cjs/hostComponents/Camera/node.js +18 -0
- package/cjs/hostComponents/Canvas/index.d.ts +16 -0
- package/cjs/hostComponents/Canvas/index.js +11 -0
- package/cjs/hostComponents/Canvas/node.d.ts +21 -0
- package/cjs/hostComponents/Canvas/node.js +24 -0
- package/cjs/hostComponents/ChannelLive/index.d.ts +26 -0
- package/cjs/hostComponents/ChannelLive/index.js +12 -0
- package/cjs/hostComponents/ChannelLive/node.d.ts +2 -0
- package/cjs/hostComponents/ChannelLive/node.js +5 -0
- package/cjs/hostComponents/ChannelVideo/index.d.ts +34 -0
- package/cjs/hostComponents/ChannelVideo/index.js +16 -0
- package/cjs/hostComponents/ChannelVideo/node.d.ts +4 -0
- package/cjs/hostComponents/ChannelVideo/node.js +7 -0
- package/cjs/hostComponents/Checkbox/index.d.ts +17 -0
- package/cjs/hostComponents/Checkbox/index.js +13 -0
- package/cjs/hostComponents/Checkbox/node.d.ts +13 -0
- package/cjs/hostComponents/Checkbox/node.js +16 -0
- package/cjs/hostComponents/CheckboxGroup/index.d.ts +13 -0
- package/cjs/hostComponents/CheckboxGroup/index.js +8 -0
- package/cjs/hostComponents/CheckboxGroup/node.d.ts +9 -0
- package/cjs/hostComponents/CheckboxGroup/node.js +12 -0
- package/cjs/hostComponents/CoverImage/index.d.ts +14 -0
- package/cjs/hostComponents/CoverImage/index.js +8 -0
- package/cjs/hostComponents/CoverImage/node.d.ts +12 -0
- package/cjs/hostComponents/CoverImage/node.js +15 -0
- package/cjs/hostComponents/CoverView/index.d.ts +11 -0
- package/cjs/hostComponents/CoverView/index.js +8 -0
- package/cjs/hostComponents/CoverView/node.d.ts +11 -0
- package/cjs/hostComponents/CoverView/node.js +14 -0
- package/cjs/hostComponents/Editor/index.d.ts +28 -0
- package/cjs/hostComponents/Editor/index.js +14 -0
- package/cjs/hostComponents/Editor/node.d.ts +17 -0
- package/cjs/hostComponents/Editor/node.js +20 -0
- package/cjs/hostComponents/Form/index.d.ts +16 -0
- package/cjs/hostComponents/Form/index.js +12 -0
- package/cjs/hostComponents/Form/node.d.ts +11 -0
- package/cjs/hostComponents/Form/node.js +14 -0
- package/cjs/hostComponents/FunctionalPageNavigator/index.d.ts +20 -0
- package/cjs/hostComponents/FunctionalPageNavigator/index.js +11 -0
- package/cjs/hostComponents/FunctionalPageNavigator/node.d.ts +8 -0
- package/cjs/hostComponents/FunctionalPageNavigator/node.js +11 -0
- package/cjs/hostComponents/Icon/index.d.ts +14 -0
- package/cjs/hostComponents/Icon/index.js +11 -0
- package/cjs/hostComponents/Icon/node.d.ts +10 -0
- package/cjs/hostComponents/Icon/node.js +13 -0
- package/cjs/hostComponents/Image/index.d.ts +57 -0
- package/cjs/hostComponents/Image/index.js +14 -0
- package/cjs/hostComponents/Image/node.d.ts +19 -0
- package/cjs/hostComponents/Image/node.js +22 -0
- package/cjs/hostComponents/Input/index.d.ts +138 -0
- package/cjs/hostComponents/Input/index.js +25 -0
- package/cjs/hostComponents/Input/node.d.ts +34 -0
- package/cjs/hostComponents/Input/node.js +37 -0
- package/cjs/hostComponents/KeyboardAccessory/index.d.ts +7 -0
- package/cjs/hostComponents/KeyboardAccessory/index.js +8 -0
- package/cjs/hostComponents/KeyboardAccessory/node.d.ts +2 -0
- package/cjs/hostComponents/KeyboardAccessory/node.js +5 -0
- package/cjs/hostComponents/Label/index.d.ts +10 -0
- package/cjs/hostComponents/Label/index.js +8 -0
- package/cjs/hostComponents/Label/node.d.ts +10 -0
- package/cjs/hostComponents/Label/node.js +13 -0
- package/cjs/hostComponents/LivePlayer/index.d.ts +46 -0
- package/cjs/hostComponents/LivePlayer/index.js +21 -0
- package/cjs/hostComponents/LivePlayer/node.d.ts +26 -0
- package/cjs/hostComponents/LivePlayer/node.js +29 -0
- package/cjs/hostComponents/LivePusher/index.d.ts +102 -0
- package/cjs/hostComponents/LivePusher/index.js +35 -0
- package/cjs/hostComponents/LivePusher/node.d.ts +43 -0
- package/cjs/hostComponents/LivePusher/node.js +46 -0
- package/cjs/hostComponents/Map/index.d.ts +80 -0
- package/cjs/hostComponents/Map/index.js +26 -0
- package/cjs/hostComponents/Map/node.d.ts +52 -0
- package/cjs/hostComponents/Map/node.js +55 -0
- package/cjs/hostComponents/MatchMedia/index.d.ts +22 -0
- package/cjs/hostComponents/MatchMedia/index.js +8 -0
- package/cjs/hostComponents/MatchMedia/node.d.ts +10 -0
- package/cjs/hostComponents/MatchMedia/node.js +13 -0
- package/cjs/hostComponents/MovableArea/index.d.ts +10 -0
- package/cjs/hostComponents/MovableArea/index.js +11 -0
- package/cjs/hostComponents/MovableArea/node.d.ts +10 -0
- package/cjs/hostComponents/MovableArea/node.js +13 -0
- package/cjs/hostComponents/MovableView/index.d.ts +44 -0
- package/cjs/hostComponents/MovableView/index.js +21 -0
- package/cjs/hostComponents/MovableView/node.d.ts +27 -0
- package/cjs/hostComponents/MovableView/node.js +30 -0
- package/cjs/hostComponents/NavigationBar/index.d.ts +21 -0
- package/cjs/hostComponents/NavigationBar/index.js +14 -0
- package/cjs/hostComponents/NavigationBar/node.d.ts +9 -0
- package/cjs/hostComponents/NavigationBar/node.js +12 -0
- package/cjs/hostComponents/Navigator/index.d.ts +38 -0
- package/cjs/hostComponents/Navigator/index.js +17 -0
- package/cjs/hostComponents/Navigator/node.d.ts +23 -0
- package/cjs/hostComponents/Navigator/node.js +26 -0
- package/cjs/hostComponents/OfficialAccount/index.d.ts +12 -0
- package/cjs/hostComponents/OfficialAccount/index.js +8 -0
- package/cjs/hostComponents/OfficialAccount/node.d.ts +5 -0
- package/cjs/hostComponents/OfficialAccount/node.js +8 -0
- package/cjs/hostComponents/OpenData/index.d.ts +20 -0
- package/cjs/hostComponents/OpenData/index.js +11 -0
- package/cjs/hostComponents/OpenData/node.d.ts +6 -0
- package/cjs/hostComponents/OpenData/node.js +5 -0
- package/cjs/hostComponents/PageContainer/index.d.ts +40 -0
- package/cjs/hostComponents/PageContainer/index.js +17 -0
- package/cjs/hostComponents/PageContainer/node.d.ts +19 -0
- package/cjs/hostComponents/PageContainer/node.js +22 -0
- package/cjs/hostComponents/PageMeta/index.d.ts +37 -0
- package/cjs/hostComponents/PageMeta/index.js +12 -0
- package/cjs/hostComponents/PageMeta/node.d.ts +17 -0
- package/cjs/hostComponents/PageMeta/node.js +20 -0
- package/cjs/hostComponents/Picker/index.d.ts +75 -0
- package/cjs/hostComponents/Picker/index.js +16 -0
- package/cjs/hostComponents/Picker/node.d.ts +23 -0
- package/cjs/hostComponents/Picker/node.js +26 -0
- package/cjs/hostComponents/PickerView/index.d.ts +25 -0
- package/cjs/hostComponents/PickerView/index.js +8 -0
- package/cjs/hostComponents/PickerView/node.d.ts +18 -0
- package/cjs/hostComponents/PickerView/node.js +21 -0
- package/cjs/hostComponents/PickerViewColumn/index.d.ts +7 -0
- package/cjs/hostComponents/PickerViewColumn/index.js +8 -0
- package/cjs/hostComponents/PickerViewColumn/node.d.ts +2 -0
- package/cjs/hostComponents/PickerViewColumn/node.js +5 -0
- package/cjs/hostComponents/Progress/index.d.ts +34 -0
- package/cjs/hostComponents/Progress/index.js +20 -0
- package/cjs/hostComponents/Progress/node.d.ts +19 -0
- package/cjs/hostComponents/Progress/node.js +22 -0
- package/cjs/hostComponents/Radio/index.d.ts +17 -0
- package/cjs/hostComponents/Radio/index.js +13 -0
- package/cjs/hostComponents/Radio/node.d.ts +12 -0
- package/cjs/hostComponents/Radio/node.js +15 -0
- package/cjs/hostComponents/RadioGroup/index.d.ts +11 -0
- package/cjs/hostComponents/RadioGroup/index.js +8 -0
- package/cjs/hostComponents/RadioGroup/node.d.ts +9 -0
- package/cjs/hostComponents/RadioGroup/node.js +12 -0
- package/cjs/hostComponents/RichText/index.d.ts +12 -0
- package/cjs/hostComponents/RichText/index.js +11 -0
- package/cjs/hostComponents/RichText/node.d.ts +17 -0
- package/cjs/hostComponents/RichText/node.js +20 -0
- package/cjs/hostComponents/RootPortal/index.d.ts +20 -0
- package/cjs/hostComponents/RootPortal/index.js +8 -0
- package/cjs/hostComponents/RootPortal/node.d.ts +17 -0
- package/cjs/hostComponents/RootPortal/node.js +20 -0
- package/cjs/hostComponents/ScrollView/index.d.ts +67 -0
- package/cjs/hostComponents/ScrollView/index.js +25 -0
- package/cjs/hostComponents/ScrollView/node.d.ts +44 -0
- package/cjs/hostComponents/ScrollView/node.js +47 -0
- package/cjs/hostComponents/ShareElement/index.d.ts +14 -0
- package/cjs/hostComponents/ShareElement/index.js +11 -0
- package/cjs/hostComponents/ShareElement/node.d.ts +7 -0
- package/cjs/hostComponents/ShareElement/node.js +10 -0
- package/cjs/hostComponents/Slider/index.d.ts +37 -0
- package/cjs/hostComponents/Slider/index.js +22 -0
- package/cjs/hostComponents/Slider/node.d.ts +23 -0
- package/cjs/hostComponents/Slider/node.js +26 -0
- package/cjs/hostComponents/Snapshot/index.d.ts +16 -0
- package/cjs/hostComponents/Snapshot/index.js +8 -0
- package/cjs/hostComponents/Snapshot/node.d.ts +13 -0
- package/cjs/hostComponents/Snapshot/node.js +16 -0
- package/cjs/hostComponents/Swiper/index.d.ts +44 -0
- package/cjs/hostComponents/Swiper/index.js +25 -0
- package/cjs/hostComponents/Swiper/node.d.ts +27 -0
- package/cjs/hostComponents/Swiper/node.js +30 -0
- package/cjs/hostComponents/SwiperItem/index.d.ts +10 -0
- package/cjs/hostComponents/SwiperItem/index.js +8 -0
- package/cjs/hostComponents/SwiperItem/node.d.ts +9 -0
- package/cjs/hostComponents/SwiperItem/node.js +12 -0
- package/cjs/hostComponents/Switch/index.d.ts +19 -0
- package/cjs/hostComponents/Switch/index.js +14 -0
- package/cjs/hostComponents/Switch/node.d.ts +13 -0
- package/cjs/hostComponents/Switch/node.js +16 -0
- package/cjs/hostComponents/Text/index.d.ts +23 -0
- package/cjs/hostComponents/Text/index.js +13 -0
- package/cjs/hostComponents/Text/node.d.ts +13 -0
- package/cjs/hostComponents/Text/node.js +16 -0
- package/cjs/hostComponents/Textarea/index.d.ts +46 -0
- package/cjs/hostComponents/Textarea/index.js +25 -0
- package/cjs/hostComponents/Textarea/node.d.ts +37 -0
- package/cjs/hostComponents/Textarea/node.js +40 -0
- package/cjs/hostComponents/Video/index.d.ts +103 -0
- package/cjs/hostComponents/Video/index.js +60 -0
- package/cjs/hostComponents/Video/node.d.ts +56 -0
- package/cjs/hostComponents/Video/node.js +59 -0
- package/cjs/hostComponents/View/index.d.ts +28 -0
- package/cjs/hostComponents/View/index.js +14 -0
- package/cjs/hostComponents/View/node.d.ts +28 -0
- package/cjs/hostComponents/View/node.js +31 -0
- package/cjs/hostComponents/VoipRoom/index.d.ts +17 -0
- package/cjs/hostComponents/VoipRoom/index.js +13 -0
- package/cjs/hostComponents/VoipRoom/node.d.ts +7 -0
- package/cjs/hostComponents/VoipRoom/node.js +10 -0
- package/cjs/hostComponents/WebView/index.d.ts +16 -0
- package/cjs/hostComponents/WebView/index.js +8 -0
- package/cjs/hostComponents/WebView/node.d.ts +7 -0
- package/cjs/hostComponents/WebView/node.js +10 -0
- package/cjs/hostComponents/index.d.ts +53 -0
- package/cjs/hostComponents/index.js +69 -0
- package/cjs/hostComponents/node.d.ts +2 -0
- package/cjs/hostComponents/node.js +133 -0
- package/cjs/index.d.ts +3 -0
- package/cjs/index.js +19 -0
- package/cjs/node/index.d.ts +3 -0
- package/cjs/node/index.js +56 -0
- package/cjs/types/component.d.ts +80 -0
- package/cjs/types/component.js +2 -0
- package/cjs/types/config.d.ts +345 -0
- package/cjs/types/config.js +2 -0
- package/cjs/types/index.d.ts +2 -0
- package/cjs/types/index.js +17 -0
- package/esm/api/index.d.ts +281 -0
- package/esm/api/index.js +274 -0
- package/esm/hostComponents/Ad/index.d.ts +18 -0
- package/esm/hostComponents/Ad/index.js +6 -0
- package/esm/hostComponents/Ad/node.d.ts +11 -0
- package/esm/hostComponents/Ad/node.js +11 -0
- package/esm/hostComponents/AdCustom/index.d.ts +17 -0
- package/esm/hostComponents/AdCustom/index.js +6 -0
- package/esm/hostComponents/AdCustom/node.d.ts +8 -0
- package/esm/hostComponents/AdCustom/node.js +8 -0
- package/esm/hostComponents/Audio/index.d.ts +2 -0
- package/esm/hostComponents/Audio/index.js +3 -0
- package/esm/hostComponents/Audio/node.d.ts +18 -0
- package/esm/hostComponents/Audio/node.js +18 -0
- package/esm/hostComponents/Button/index.d.ts +223 -0
- package/esm/hostComponents/Button/index.js +11 -0
- package/esm/hostComponents/Button/node.d.ts +48 -0
- package/esm/hostComponents/Button/node.js +48 -0
- package/esm/hostComponents/Camera/index.d.ts +26 -0
- package/esm/hostComponents/Camera/index.js +12 -0
- package/esm/hostComponents/Camera/node.d.ts +15 -0
- package/esm/hostComponents/Camera/node.js +15 -0
- package/esm/hostComponents/Canvas/index.d.ts +16 -0
- package/esm/hostComponents/Canvas/index.js +8 -0
- package/esm/hostComponents/Canvas/node.d.ts +21 -0
- package/esm/hostComponents/Canvas/node.js +21 -0
- package/esm/hostComponents/ChannelLive/index.d.ts +26 -0
- package/esm/hostComponents/ChannelLive/index.js +9 -0
- package/esm/hostComponents/ChannelLive/node.d.ts +2 -0
- package/esm/hostComponents/ChannelLive/node.js +2 -0
- package/esm/hostComponents/ChannelVideo/index.d.ts +34 -0
- package/esm/hostComponents/ChannelVideo/index.js +13 -0
- package/esm/hostComponents/ChannelVideo/node.d.ts +4 -0
- package/esm/hostComponents/ChannelVideo/node.js +4 -0
- package/esm/hostComponents/Checkbox/index.d.ts +17 -0
- package/esm/hostComponents/Checkbox/index.js +10 -0
- package/esm/hostComponents/Checkbox/node.d.ts +13 -0
- package/esm/hostComponents/Checkbox/node.js +13 -0
- package/esm/hostComponents/CheckboxGroup/index.d.ts +13 -0
- package/esm/hostComponents/CheckboxGroup/index.js +5 -0
- package/esm/hostComponents/CheckboxGroup/node.d.ts +9 -0
- package/esm/hostComponents/CheckboxGroup/node.js +9 -0
- package/esm/hostComponents/CoverImage/index.d.ts +14 -0
- package/esm/hostComponents/CoverImage/index.js +5 -0
- package/esm/hostComponents/CoverImage/node.d.ts +12 -0
- package/esm/hostComponents/CoverImage/node.js +12 -0
- package/esm/hostComponents/CoverView/index.d.ts +11 -0
- package/esm/hostComponents/CoverView/index.js +5 -0
- package/esm/hostComponents/CoverView/node.d.ts +11 -0
- package/esm/hostComponents/CoverView/node.js +11 -0
- package/esm/hostComponents/Editor/index.d.ts +28 -0
- package/esm/hostComponents/Editor/index.js +11 -0
- package/esm/hostComponents/Editor/node.d.ts +17 -0
- package/esm/hostComponents/Editor/node.js +17 -0
- package/esm/hostComponents/Form/index.d.ts +16 -0
- package/esm/hostComponents/Form/index.js +9 -0
- package/esm/hostComponents/Form/node.d.ts +11 -0
- package/esm/hostComponents/Form/node.js +11 -0
- package/esm/hostComponents/FunctionalPageNavigator/index.d.ts +20 -0
- package/esm/hostComponents/FunctionalPageNavigator/index.js +8 -0
- package/esm/hostComponents/FunctionalPageNavigator/node.d.ts +8 -0
- package/esm/hostComponents/FunctionalPageNavigator/node.js +8 -0
- package/esm/hostComponents/Icon/index.d.ts +14 -0
- package/esm/hostComponents/Icon/index.js +8 -0
- package/esm/hostComponents/Icon/node.d.ts +10 -0
- package/esm/hostComponents/Icon/node.js +10 -0
- package/esm/hostComponents/Image/index.d.ts +57 -0
- package/esm/hostComponents/Image/index.js +11 -0
- package/esm/hostComponents/Image/node.d.ts +19 -0
- package/esm/hostComponents/Image/node.js +19 -0
- package/esm/hostComponents/Input/index.d.ts +138 -0
- package/esm/hostComponents/Input/index.js +22 -0
- package/esm/hostComponents/Input/node.d.ts +34 -0
- package/esm/hostComponents/Input/node.js +34 -0
- package/esm/hostComponents/KeyboardAccessory/index.d.ts +7 -0
- package/esm/hostComponents/KeyboardAccessory/index.js +5 -0
- package/esm/hostComponents/KeyboardAccessory/node.d.ts +2 -0
- package/esm/hostComponents/KeyboardAccessory/node.js +2 -0
- package/esm/hostComponents/Label/index.d.ts +10 -0
- package/esm/hostComponents/Label/index.js +5 -0
- package/esm/hostComponents/Label/node.d.ts +10 -0
- package/esm/hostComponents/Label/node.js +10 -0
- package/esm/hostComponents/LivePlayer/index.d.ts +46 -0
- package/esm/hostComponents/LivePlayer/index.js +18 -0
- package/esm/hostComponents/LivePlayer/node.d.ts +26 -0
- package/esm/hostComponents/LivePlayer/node.js +26 -0
- package/esm/hostComponents/LivePusher/index.d.ts +102 -0
- package/esm/hostComponents/LivePusher/index.js +32 -0
- package/esm/hostComponents/LivePusher/node.d.ts +43 -0
- package/esm/hostComponents/LivePusher/node.js +43 -0
- package/esm/hostComponents/Map/index.d.ts +80 -0
- package/esm/hostComponents/Map/index.js +23 -0
- package/esm/hostComponents/Map/node.d.ts +52 -0
- package/esm/hostComponents/Map/node.js +52 -0
- package/esm/hostComponents/MatchMedia/index.d.ts +22 -0
- package/esm/hostComponents/MatchMedia/index.js +5 -0
- package/esm/hostComponents/MatchMedia/node.d.ts +10 -0
- package/esm/hostComponents/MatchMedia/node.js +10 -0
- package/esm/hostComponents/MovableArea/index.d.ts +10 -0
- package/esm/hostComponents/MovableArea/index.js +8 -0
- package/esm/hostComponents/MovableArea/node.d.ts +10 -0
- package/esm/hostComponents/MovableArea/node.js +10 -0
- package/esm/hostComponents/MovableView/index.d.ts +44 -0
- package/esm/hostComponents/MovableView/index.js +18 -0
- package/esm/hostComponents/MovableView/node.d.ts +27 -0
- package/esm/hostComponents/MovableView/node.js +27 -0
- package/esm/hostComponents/NavigationBar/index.d.ts +21 -0
- package/esm/hostComponents/NavigationBar/index.js +11 -0
- package/esm/hostComponents/NavigationBar/node.d.ts +9 -0
- package/esm/hostComponents/NavigationBar/node.js +9 -0
- package/esm/hostComponents/Navigator/index.d.ts +38 -0
- package/esm/hostComponents/Navigator/index.js +14 -0
- package/esm/hostComponents/Navigator/node.d.ts +23 -0
- package/esm/hostComponents/Navigator/node.js +23 -0
- package/esm/hostComponents/OfficialAccount/index.d.ts +12 -0
- package/esm/hostComponents/OfficialAccount/index.js +5 -0
- package/esm/hostComponents/OfficialAccount/node.d.ts +5 -0
- package/esm/hostComponents/OfficialAccount/node.js +5 -0
- package/esm/hostComponents/OpenData/index.d.ts +20 -0
- package/esm/hostComponents/OpenData/index.js +8 -0
- package/esm/hostComponents/OpenData/node.d.ts +6 -0
- package/esm/hostComponents/OpenData/node.js +2 -0
- package/esm/hostComponents/PageContainer/index.d.ts +40 -0
- package/esm/hostComponents/PageContainer/index.js +14 -0
- package/esm/hostComponents/PageContainer/node.d.ts +19 -0
- package/esm/hostComponents/PageContainer/node.js +19 -0
- package/esm/hostComponents/PageMeta/index.d.ts +37 -0
- package/esm/hostComponents/PageMeta/index.js +9 -0
- package/esm/hostComponents/PageMeta/node.d.ts +17 -0
- package/esm/hostComponents/PageMeta/node.js +17 -0
- package/esm/hostComponents/Picker/index.d.ts +75 -0
- package/esm/hostComponents/Picker/index.js +13 -0
- package/esm/hostComponents/Picker/node.d.ts +23 -0
- package/esm/hostComponents/Picker/node.js +23 -0
- package/esm/hostComponents/PickerView/index.d.ts +25 -0
- package/esm/hostComponents/PickerView/index.js +5 -0
- package/esm/hostComponents/PickerView/node.d.ts +18 -0
- package/esm/hostComponents/PickerView/node.js +18 -0
- package/esm/hostComponents/PickerViewColumn/index.d.ts +7 -0
- package/esm/hostComponents/PickerViewColumn/index.js +5 -0
- package/esm/hostComponents/PickerViewColumn/node.d.ts +2 -0
- package/esm/hostComponents/PickerViewColumn/node.js +2 -0
- package/esm/hostComponents/Progress/index.d.ts +34 -0
- package/esm/hostComponents/Progress/index.js +17 -0
- package/esm/hostComponents/Progress/node.d.ts +19 -0
- package/esm/hostComponents/Progress/node.js +19 -0
- package/esm/hostComponents/Radio/index.d.ts +17 -0
- package/esm/hostComponents/Radio/index.js +10 -0
- package/esm/hostComponents/Radio/node.d.ts +12 -0
- package/esm/hostComponents/Radio/node.js +12 -0
- package/esm/hostComponents/RadioGroup/index.d.ts +11 -0
- package/esm/hostComponents/RadioGroup/index.js +5 -0
- package/esm/hostComponents/RadioGroup/node.d.ts +9 -0
- package/esm/hostComponents/RadioGroup/node.js +9 -0
- package/esm/hostComponents/RichText/index.d.ts +12 -0
- package/esm/hostComponents/RichText/index.js +8 -0
- package/esm/hostComponents/RichText/node.d.ts +17 -0
- package/esm/hostComponents/RichText/node.js +17 -0
- package/esm/hostComponents/RootPortal/index.d.ts +20 -0
- package/esm/hostComponents/RootPortal/index.js +5 -0
- package/esm/hostComponents/RootPortal/node.d.ts +17 -0
- package/esm/hostComponents/RootPortal/node.js +17 -0
- package/esm/hostComponents/ScrollView/index.d.ts +67 -0
- package/esm/hostComponents/ScrollView/index.js +22 -0
- package/esm/hostComponents/ScrollView/node.d.ts +44 -0
- package/esm/hostComponents/ScrollView/node.js +44 -0
- package/esm/hostComponents/ShareElement/index.d.ts +14 -0
- package/esm/hostComponents/ShareElement/index.js +8 -0
- package/esm/hostComponents/ShareElement/node.d.ts +7 -0
- package/esm/hostComponents/ShareElement/node.js +7 -0
- package/esm/hostComponents/Slider/index.d.ts +37 -0
- package/esm/hostComponents/Slider/index.js +19 -0
- package/esm/hostComponents/Slider/node.d.ts +23 -0
- package/esm/hostComponents/Slider/node.js +23 -0
- package/esm/hostComponents/Snapshot/index.d.ts +16 -0
- package/esm/hostComponents/Snapshot/index.js +5 -0
- package/esm/hostComponents/Snapshot/node.d.ts +13 -0
- package/esm/hostComponents/Snapshot/node.js +13 -0
- package/esm/hostComponents/Swiper/index.d.ts +44 -0
- package/esm/hostComponents/Swiper/index.js +22 -0
- package/esm/hostComponents/Swiper/node.d.ts +27 -0
- package/esm/hostComponents/Swiper/node.js +27 -0
- package/esm/hostComponents/SwiperItem/index.d.ts +10 -0
- package/esm/hostComponents/SwiperItem/index.js +5 -0
- package/esm/hostComponents/SwiperItem/node.d.ts +9 -0
- package/esm/hostComponents/SwiperItem/node.js +9 -0
- package/esm/hostComponents/Switch/index.d.ts +19 -0
- package/esm/hostComponents/Switch/index.js +11 -0
- package/esm/hostComponents/Switch/node.d.ts +13 -0
- package/esm/hostComponents/Switch/node.js +13 -0
- package/esm/hostComponents/Text/index.d.ts +23 -0
- package/esm/hostComponents/Text/index.js +10 -0
- package/esm/hostComponents/Text/node.d.ts +13 -0
- package/esm/hostComponents/Text/node.js +13 -0
- package/esm/hostComponents/Textarea/index.d.ts +46 -0
- package/esm/hostComponents/Textarea/index.js +22 -0
- package/esm/hostComponents/Textarea/node.d.ts +37 -0
- package/esm/hostComponents/Textarea/node.js +37 -0
- package/esm/hostComponents/Video/index.d.ts +103 -0
- package/esm/hostComponents/Video/index.js +54 -0
- package/esm/hostComponents/Video/node.d.ts +56 -0
- package/esm/hostComponents/Video/node.js +56 -0
- package/esm/hostComponents/View/index.d.ts +28 -0
- package/esm/hostComponents/View/index.js +11 -0
- package/esm/hostComponents/View/node.d.ts +28 -0
- package/esm/hostComponents/View/node.js +28 -0
- package/esm/hostComponents/VoipRoom/index.d.ts +17 -0
- package/esm/hostComponents/VoipRoom/index.js +10 -0
- package/esm/hostComponents/VoipRoom/node.d.ts +7 -0
- package/esm/hostComponents/VoipRoom/node.js +7 -0
- package/esm/hostComponents/WebView/index.d.ts +16 -0
- package/esm/hostComponents/WebView/index.js +5 -0
- package/esm/hostComponents/WebView/node.d.ts +7 -0
- package/esm/hostComponents/WebView/node.js +7 -0
- package/esm/hostComponents/index.d.ts +53 -0
- package/esm/hostComponents/index.js +53 -0
- package/esm/hostComponents/node.d.ts +2 -0
- package/esm/hostComponents/node.js +108 -0
- package/esm/index.d.ts +3 -0
- package/esm/index.js +3 -0
- package/esm/node/index.d.ts +3 -0
- package/esm/node/index.js +28 -0
- package/esm/types/component.d.ts +80 -0
- package/esm/types/component.js +1 -0
- package/esm/types/config.d.ts +345 -0
- package/esm/types/config.js +1 -0
- package/esm/types/index.d.ts +2 -0
- package/esm/types/index.js +1 -0
- package/node.js +1 -0
- package/package.json +36 -0
- package/templates/base.ejs +55 -0
- package/templates/children.ejs +30 -0
- package/templates/component.ejs +44 -0
- package/templates/page.ejs +3 -0
- package/vitest.config.js +7 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
src: string;
|
|
7
|
+
duration: string;
|
|
8
|
+
controls: string;
|
|
9
|
+
danmuList: string;
|
|
10
|
+
danmuBtn: string;
|
|
11
|
+
enableDanmu: string;
|
|
12
|
+
autoplay: string;
|
|
13
|
+
loop: string;
|
|
14
|
+
muted: string;
|
|
15
|
+
initialTime: string;
|
|
16
|
+
pageGesture: string;
|
|
17
|
+
direction: string;
|
|
18
|
+
showProgress: string;
|
|
19
|
+
showFullscreenBtn: string;
|
|
20
|
+
showPlayBtn: string;
|
|
21
|
+
showCenterPlayBtn: string;
|
|
22
|
+
enableProgressGesture: string;
|
|
23
|
+
showScreenLockButton: string;
|
|
24
|
+
objectFit: string;
|
|
25
|
+
poster: string;
|
|
26
|
+
showMuteBtn: string;
|
|
27
|
+
title: string;
|
|
28
|
+
playBtnPosition: string;
|
|
29
|
+
posterForCrawler: string;
|
|
30
|
+
showCastingButton: string;
|
|
31
|
+
pictureInPictureMode: string;
|
|
32
|
+
pictureInPictureShowProgress: string;
|
|
33
|
+
enableAutoRotation: string;
|
|
34
|
+
showSnapshotButton: string;
|
|
35
|
+
showBackgroundPlaybackButton: string;
|
|
36
|
+
backgroundPoster: string;
|
|
37
|
+
enablePlayGesture: string;
|
|
38
|
+
autoPauseIfNavigate: string;
|
|
39
|
+
autoPauseIfOpenNative: string;
|
|
40
|
+
vslideGesture: string;
|
|
41
|
+
vslideGestureInFullscreen: string;
|
|
42
|
+
onPlay: string;
|
|
43
|
+
onPause: string;
|
|
44
|
+
onEnded: string;
|
|
45
|
+
onTimeUpdate: string;
|
|
46
|
+
onFullScreenChange: string;
|
|
47
|
+
onWaiting: string;
|
|
48
|
+
onError: string;
|
|
49
|
+
onProgress: string;
|
|
50
|
+
onLoadedMetaData: string;
|
|
51
|
+
onControlsToggle: string;
|
|
52
|
+
onEnterPictureInPicture: string;
|
|
53
|
+
onLeavePictureInPicture: string;
|
|
54
|
+
onSeekComplete: string;
|
|
55
|
+
};
|
|
56
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
animation: 'animation',
|
|
6
|
+
src: 'src',
|
|
7
|
+
duration: 'duration',
|
|
8
|
+
controls: 'controls',
|
|
9
|
+
danmuList: 'danmu-list',
|
|
10
|
+
danmuBtn: 'danmu-btn',
|
|
11
|
+
enableDanmu: 'enable-danmu',
|
|
12
|
+
autoplay: 'autoplay',
|
|
13
|
+
loop: 'loop',
|
|
14
|
+
muted: 'muted',
|
|
15
|
+
initialTime: 'initial-time',
|
|
16
|
+
pageGesture: 'page-gesture',
|
|
17
|
+
direction: 'direction',
|
|
18
|
+
showProgress: 'show-progress',
|
|
19
|
+
showFullscreenBtn: 'show-fullscreen-btn',
|
|
20
|
+
showPlayBtn: 'show-play-btn',
|
|
21
|
+
showCenterPlayBtn: 'show-center-play-btn',
|
|
22
|
+
enableProgressGesture: 'enable-progress-gesture',
|
|
23
|
+
showScreenLockButton: 'show-screen-lock-button',
|
|
24
|
+
objectFit: 'object-fit',
|
|
25
|
+
poster: 'poster',
|
|
26
|
+
showMuteBtn: 'show-mute-btn',
|
|
27
|
+
title: 'title',
|
|
28
|
+
playBtnPosition: 'play-btn-position',
|
|
29
|
+
posterForCrawler: 'poster-for-crawler',
|
|
30
|
+
showCastingButton: 'show-casting-button',
|
|
31
|
+
pictureInPictureMode: 'picture-in-picture-mode',
|
|
32
|
+
pictureInPictureShowProgress: 'picture-in-picture-show-progress',
|
|
33
|
+
enableAutoRotation: 'enable-auto-rotation',
|
|
34
|
+
showSnapshotButton: 'show-snapshot-button',
|
|
35
|
+
showBackgroundPlaybackButton: 'show-background-playback-button',
|
|
36
|
+
backgroundPoster: 'background-poster',
|
|
37
|
+
enablePlayGesture: 'enable-play-gesture',
|
|
38
|
+
autoPauseIfNavigate: 'auto-pause-if-navigate',
|
|
39
|
+
autoPauseIfOpenNative: 'auto-pause-if-open-native',
|
|
40
|
+
vslideGesture: 'vslide-gesture',
|
|
41
|
+
vslideGestureInFullscreen: 'vslide-gesture-in-fullscreen',
|
|
42
|
+
onPlay: 'bindplay',
|
|
43
|
+
onPause: 'bindpause',
|
|
44
|
+
onEnded: 'bindended',
|
|
45
|
+
onTimeUpdate: 'bindtimeupdate',
|
|
46
|
+
onFullScreenChange: 'bindfullscreenchange',
|
|
47
|
+
onWaiting: 'bindwaiting',
|
|
48
|
+
onError: 'binderror',
|
|
49
|
+
onProgress: 'bindprogress',
|
|
50
|
+
onLoadedMetaData: 'bindloadedmetadata',
|
|
51
|
+
onControlsToggle: 'bindcontrolstoggle',
|
|
52
|
+
onEnterPictureInPicture: 'bindenterpictureinpicture',
|
|
53
|
+
onLeavePictureInPicture: 'bindleavepictureinpicture',
|
|
54
|
+
onSeekComplete: 'bindseekcomplete',
|
|
55
|
+
};
|
|
56
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps, TouchEvent } from '../../types/component';
|
|
3
|
+
export interface ViewProps extends BaseProps {
|
|
4
|
+
slot?: string;
|
|
5
|
+
/** 指定按下去的样式类。当为 "none" 时,没有点击态效果 1.0.0 */
|
|
6
|
+
hoverClassName?: string;
|
|
7
|
+
/** 指定是否阻止本节点的祖先节点出现点击态 1.5.0 */
|
|
8
|
+
hoverStopPropagation?: boolean;
|
|
9
|
+
/** (default: 50) 按住后多久出现点击态,单位毫秒 1.0.0 */
|
|
10
|
+
hoverStartTime?: number;
|
|
11
|
+
/** (default: 400) 手指松开后点击态保留时间,单位毫秒 1.0.0 */
|
|
12
|
+
hoverStayTime?: number;
|
|
13
|
+
disableScroll?: boolean;
|
|
14
|
+
onTouchStart?: (event: TouchEvent) => any;
|
|
15
|
+
onTouchMove?: (event: TouchEvent) => any;
|
|
16
|
+
onTouchEnd?: (event: TouchEvent) => any;
|
|
17
|
+
onTouchCancel?: (event: TouchEvent) => any;
|
|
18
|
+
onLongClick?: (event: TouchEvent) => any;
|
|
19
|
+
onTransitionEnd?: (event: any) => any;
|
|
20
|
+
onAnimationIteration?: (event: any) => any;
|
|
21
|
+
onAnimationStart?: (event: any) => any;
|
|
22
|
+
onAnimationEnd?: (event: any) => any;
|
|
23
|
+
catchTouchMove?: boolean | ((event: TouchEvent) => any);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/view.html
|
|
27
|
+
*/
|
|
28
|
+
export declare const View: React.ComponentType<ViewProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/view.html
|
|
4
|
+
*/
|
|
5
|
+
export const View = createHostComponent('view');
|
|
6
|
+
View.defaultProps = {
|
|
7
|
+
hoverClassName: 'none',
|
|
8
|
+
hoverStopPropagation: false,
|
|
9
|
+
hoverStartTime: 50,
|
|
10
|
+
hoverStayTime: 400,
|
|
11
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
disableScroll: string;
|
|
4
|
+
hoverClass: string;
|
|
5
|
+
hoverClassName: string;
|
|
6
|
+
hoverStartTime: string;
|
|
7
|
+
hoverStayTime: string;
|
|
8
|
+
hidden: string;
|
|
9
|
+
className: string;
|
|
10
|
+
style: string;
|
|
11
|
+
animation: string;
|
|
12
|
+
hoverStopPropagation: string;
|
|
13
|
+
onTap: string;
|
|
14
|
+
onClick: string;
|
|
15
|
+
onTouchStart: string;
|
|
16
|
+
onTouchMove: string;
|
|
17
|
+
onTouchEnd: string;
|
|
18
|
+
onTouchCancel: string;
|
|
19
|
+
onLongTap: string;
|
|
20
|
+
onLongClick: string;
|
|
21
|
+
onLongPress: string;
|
|
22
|
+
onTransitionEnd: string;
|
|
23
|
+
onAnimationIteration: string;
|
|
24
|
+
onAnimationStart: string;
|
|
25
|
+
onAnimationEnd: string;
|
|
26
|
+
catchTouchMove: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
disableScroll: 'disable-scroll',
|
|
4
|
+
hoverClass: 'hover-class',
|
|
5
|
+
hoverClassName: 'hover-class',
|
|
6
|
+
hoverStartTime: 'hover-start-time',
|
|
7
|
+
hoverStayTime: 'hover-stay-time',
|
|
8
|
+
hidden: 'hidden',
|
|
9
|
+
className: 'class',
|
|
10
|
+
style: 'style',
|
|
11
|
+
animation: 'animation',
|
|
12
|
+
hoverStopPropagation: 'hover-stop-propagation',
|
|
13
|
+
onTap: 'bindtap',
|
|
14
|
+
onClick: 'bindtap',
|
|
15
|
+
onTouchStart: 'bindtouchstart',
|
|
16
|
+
onTouchMove: 'bindtouchmove',
|
|
17
|
+
onTouchEnd: 'bindtouchend',
|
|
18
|
+
onTouchCancel: 'bindtouchcancel',
|
|
19
|
+
onLongTap: 'bindlongtap',
|
|
20
|
+
onLongClick: 'bindlongtap',
|
|
21
|
+
onLongPress: 'bindlongpress',
|
|
22
|
+
onTransitionEnd: 'bindtransitionend',
|
|
23
|
+
onAnimationIteration: 'bindanimationiteration',
|
|
24
|
+
onAnimationStart: 'bindanimationstart',
|
|
25
|
+
onAnimationEnd: 'bindanimationend',
|
|
26
|
+
catchTouchMove: 'catchtouchmove',
|
|
27
|
+
};
|
|
28
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface VoipRoomProps extends BaseProps {
|
|
4
|
+
/** 进入房间用户的 openid 2.11.0 */
|
|
5
|
+
openId: string;
|
|
6
|
+
/** 对话窗口类型,自身传入 camera,其它用户传入 video 2.11.0 */
|
|
7
|
+
mode?: 'camera' | 'video';
|
|
8
|
+
/** 仅在 mode 为 camera 时有效,前置或后置,值为front, back 2.11.0 */
|
|
9
|
+
devicePosition?: 'front' | 'back';
|
|
10
|
+
/** 创建对话窗口失败时触发 2.11.0 */
|
|
11
|
+
onError?: (event: GenericEvent) => any;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 多人音视频对话。需用户授权 scope.camera、scope.record。
|
|
15
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/voip-room.html
|
|
16
|
+
*/
|
|
17
|
+
export declare const VoipRoom: React.ComponentType<VoipRoomProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* 多人音视频对话。需用户授权 scope.camera、scope.record。
|
|
4
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/voip-room.html
|
|
5
|
+
*/
|
|
6
|
+
export const VoipRoom = createHostComponent('voip-room');
|
|
7
|
+
VoipRoom.defaultProps = {
|
|
8
|
+
mode: 'camera',
|
|
9
|
+
devicePosition: 'front',
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface WebViewProps extends BaseProps {
|
|
4
|
+
/** webview 指向网页的链接。可打开关联的公众号的文章,其它网页需登录小程序管理后台配置业务域名。 1.6.4 */
|
|
5
|
+
src?: string;
|
|
6
|
+
/** 网页向小程序 postMessage 时,会在特定时机(小程序后退、组件销毁、分享)触发并收到消息。e.detail = { data },data是多次 postMessage 的参数组成的数组 1.6.4 */
|
|
7
|
+
onMessage?: (event: GenericEvent) => any;
|
|
8
|
+
/** 页加载成功时候触发此事件。e.detail = { src } 1.6.4 */
|
|
9
|
+
onLoad?: (event: GenericEvent) => any;
|
|
10
|
+
/** 页加载失败的时候触发此事件。e.detail = { src } 1.6.4 */
|
|
11
|
+
onError?: (event: GenericEvent) => any;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
15
|
+
*/
|
|
16
|
+
export declare const WebView: React.ComponentType<WebViewProps>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export * from './View';
|
|
2
|
+
export * from './Input';
|
|
3
|
+
export * from './Textarea';
|
|
4
|
+
export * from './Video';
|
|
5
|
+
export * from './Swiper';
|
|
6
|
+
export * from './ScrollView';
|
|
7
|
+
export * from './SwiperItem';
|
|
8
|
+
export * from './MovableView';
|
|
9
|
+
export * from './MovableArea';
|
|
10
|
+
export * from './CoverView';
|
|
11
|
+
export * from './CoverImage';
|
|
12
|
+
export * from './ChannelLive';
|
|
13
|
+
export * from './ChannelVideo';
|
|
14
|
+
export * from './Icon';
|
|
15
|
+
export * from './Text';
|
|
16
|
+
export * from './RichText';
|
|
17
|
+
export * from './Progress';
|
|
18
|
+
export * from './Button';
|
|
19
|
+
export * from './CheckboxGroup';
|
|
20
|
+
export * from './Checkbox';
|
|
21
|
+
export * from './Form';
|
|
22
|
+
export * from './Label';
|
|
23
|
+
export * from './Picker';
|
|
24
|
+
export * from './PickerView';
|
|
25
|
+
export * from './PickerViewColumn';
|
|
26
|
+
export * from './RadioGroup';
|
|
27
|
+
export * from './Radio';
|
|
28
|
+
export * from './Slider';
|
|
29
|
+
export * from './Switch';
|
|
30
|
+
export * from './Navigator';
|
|
31
|
+
export * from './Image';
|
|
32
|
+
export * from './LivePlayer';
|
|
33
|
+
export * from './LivePusher';
|
|
34
|
+
export * from './Map';
|
|
35
|
+
export * from './Canvas';
|
|
36
|
+
export * from './OpenData';
|
|
37
|
+
export * from './OfficialAccount';
|
|
38
|
+
export * from './Editor';
|
|
39
|
+
export * from './Audio';
|
|
40
|
+
export * from './Ad';
|
|
41
|
+
export * from './WebView';
|
|
42
|
+
export * from './FunctionalPageNavigator';
|
|
43
|
+
export * from './Camera';
|
|
44
|
+
export * from './MatchMedia';
|
|
45
|
+
export * from './PageContainer';
|
|
46
|
+
export * from './ShareElement';
|
|
47
|
+
export * from './Snapshot';
|
|
48
|
+
export * from './KeyboardAccessory';
|
|
49
|
+
export * from './VoipRoom';
|
|
50
|
+
export * from './RootPortal';
|
|
51
|
+
export * from './AdCustom';
|
|
52
|
+
export * from './PageMeta';
|
|
53
|
+
export * from './NavigationBar';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export * from './View';
|
|
2
|
+
export * from './Input';
|
|
3
|
+
export * from './Textarea';
|
|
4
|
+
export * from './Video';
|
|
5
|
+
export * from './Swiper';
|
|
6
|
+
export * from './ScrollView';
|
|
7
|
+
export * from './SwiperItem';
|
|
8
|
+
export * from './MovableView';
|
|
9
|
+
export * from './MovableArea';
|
|
10
|
+
export * from './CoverView';
|
|
11
|
+
export * from './CoverImage';
|
|
12
|
+
export * from './ChannelLive';
|
|
13
|
+
export * from './ChannelVideo';
|
|
14
|
+
export * from './Icon';
|
|
15
|
+
export * from './Text';
|
|
16
|
+
export * from './RichText';
|
|
17
|
+
export * from './Progress';
|
|
18
|
+
export * from './Button';
|
|
19
|
+
export * from './CheckboxGroup';
|
|
20
|
+
export * from './Checkbox';
|
|
21
|
+
export * from './Form';
|
|
22
|
+
export * from './Label';
|
|
23
|
+
export * from './Picker';
|
|
24
|
+
export * from './PickerView';
|
|
25
|
+
export * from './PickerViewColumn';
|
|
26
|
+
export * from './RadioGroup';
|
|
27
|
+
export * from './Radio';
|
|
28
|
+
export * from './Slider';
|
|
29
|
+
export * from './Switch';
|
|
30
|
+
export * from './Navigator';
|
|
31
|
+
export * from './Image';
|
|
32
|
+
export * from './LivePlayer';
|
|
33
|
+
export * from './LivePusher';
|
|
34
|
+
export * from './Map';
|
|
35
|
+
export * from './Canvas';
|
|
36
|
+
export * from './OpenData';
|
|
37
|
+
export * from './OfficialAccount';
|
|
38
|
+
export * from './Editor';
|
|
39
|
+
export * from './Audio';
|
|
40
|
+
export * from './Ad';
|
|
41
|
+
export * from './WebView';
|
|
42
|
+
export * from './FunctionalPageNavigator';
|
|
43
|
+
export * from './Camera';
|
|
44
|
+
export * from './MatchMedia';
|
|
45
|
+
export * from './PageContainer';
|
|
46
|
+
export * from './ShareElement';
|
|
47
|
+
export * from './Snapshot';
|
|
48
|
+
export * from './KeyboardAccessory';
|
|
49
|
+
export * from './VoipRoom';
|
|
50
|
+
export * from './RootPortal';
|
|
51
|
+
export * from './AdCustom';
|
|
52
|
+
export * from './PageMeta';
|
|
53
|
+
export * from './NavigationBar';
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as ad from './Ad/node';
|
|
2
|
+
import * as audio from './Audio/node';
|
|
3
|
+
import * as button from './Button/node';
|
|
4
|
+
import * as camera from './Camera/node';
|
|
5
|
+
import * as canvas from './Canvas/node';
|
|
6
|
+
import * as checkboxGroup from './CheckboxGroup/node';
|
|
7
|
+
import * as checkbox from './Checkbox/node';
|
|
8
|
+
import * as coverImage from './CoverImage/node';
|
|
9
|
+
import * as coverView from './CoverView/node';
|
|
10
|
+
import * as editor from './Editor/node';
|
|
11
|
+
import * as form from './Form/node';
|
|
12
|
+
import * as functionalPageNavigator from './FunctionalPageNavigator/node';
|
|
13
|
+
import * as icon from './Icon/node';
|
|
14
|
+
import * as image from './Image/node';
|
|
15
|
+
import * as input from './Input/node';
|
|
16
|
+
import * as label from './Label/node';
|
|
17
|
+
import * as livePlayer from './LivePlayer/node';
|
|
18
|
+
import * as livePusher from './LivePusher/node';
|
|
19
|
+
import * as map from './Map/node';
|
|
20
|
+
import * as movableArea from './MovableArea/node';
|
|
21
|
+
import * as movableView from './MovableView/node';
|
|
22
|
+
import * as navigator from './Navigator/node';
|
|
23
|
+
import * as officialAccount from './OfficialAccount/node';
|
|
24
|
+
import * as openData from './OpenData/node';
|
|
25
|
+
import * as pickerViewColumn from './PickerViewColumn/node';
|
|
26
|
+
import * as pickerView from './PickerView/node';
|
|
27
|
+
import * as picker from './Picker/node';
|
|
28
|
+
import * as progress from './Progress/node';
|
|
29
|
+
import * as radioGroup from './RadioGroup/node';
|
|
30
|
+
import * as radio from './Radio/node';
|
|
31
|
+
import * as richText from './RichText/node';
|
|
32
|
+
import * as scrollView from './ScrollView/node';
|
|
33
|
+
import * as slider from './Slider/node';
|
|
34
|
+
import * as swiperItem from './SwiperItem/node';
|
|
35
|
+
import * as swiper from './Swiper/node';
|
|
36
|
+
import * as switchComponent from './Switch/node';
|
|
37
|
+
import * as text from './Text/node';
|
|
38
|
+
import * as textarea from './Textarea/node';
|
|
39
|
+
import * as video from './Video/node';
|
|
40
|
+
import * as view from './View/node';
|
|
41
|
+
import * as webView from './WebView/node';
|
|
42
|
+
import * as matchMedia from './MatchMedia/node';
|
|
43
|
+
import * as pageContainer from './PageContainer/node';
|
|
44
|
+
import * as shareElement from './ShareElement/node';
|
|
45
|
+
import * as keyboardAccessory from './KeyboardAccessory/node';
|
|
46
|
+
import * as voipRoom from './VoipRoom/node';
|
|
47
|
+
import * as adCustom from './AdCustom/node';
|
|
48
|
+
import * as pageMeta from './PageMeta/node';
|
|
49
|
+
import * as navigationBar from './NavigationBar/node';
|
|
50
|
+
import * as rootPortal from './RootPortal/node';
|
|
51
|
+
import * as channelLive from './ChannelLive';
|
|
52
|
+
import * as channelVideo from './ChannelVideo';
|
|
53
|
+
import * as snapshot from './Snapshot';
|
|
54
|
+
const hostComponents = new Map();
|
|
55
|
+
hostComponents.set('ad', ad);
|
|
56
|
+
hostComponents.set('audio', audio);
|
|
57
|
+
hostComponents.set('button', button);
|
|
58
|
+
hostComponents.set('camera', camera);
|
|
59
|
+
hostComponents.set('canvas', canvas);
|
|
60
|
+
hostComponents.set('checkbox-group', checkboxGroup);
|
|
61
|
+
hostComponents.set('checkbox', checkbox);
|
|
62
|
+
hostComponents.set('cover-image', coverImage);
|
|
63
|
+
hostComponents.set('cover-view', coverView);
|
|
64
|
+
hostComponents.set('editor', editor);
|
|
65
|
+
hostComponents.set('form', form);
|
|
66
|
+
hostComponents.set('functional-page-navigator', functionalPageNavigator);
|
|
67
|
+
hostComponents.set('icon', icon);
|
|
68
|
+
hostComponents.set('image', image);
|
|
69
|
+
hostComponents.set('input', input);
|
|
70
|
+
hostComponents.set('label', label);
|
|
71
|
+
hostComponents.set('live-player', livePlayer);
|
|
72
|
+
hostComponents.set('live-pusher', livePusher);
|
|
73
|
+
hostComponents.set('map', map);
|
|
74
|
+
hostComponents.set('movable-area', movableArea);
|
|
75
|
+
hostComponents.set('movable-view', movableView);
|
|
76
|
+
hostComponents.set('navigator', navigator);
|
|
77
|
+
hostComponents.set('official-account', officialAccount);
|
|
78
|
+
hostComponents.set('open-data', openData);
|
|
79
|
+
hostComponents.set('picker-view-column', pickerViewColumn);
|
|
80
|
+
hostComponents.set('picker-view', pickerView);
|
|
81
|
+
hostComponents.set('picker', picker);
|
|
82
|
+
hostComponents.set('progress', progress);
|
|
83
|
+
hostComponents.set('radio-group', radioGroup);
|
|
84
|
+
hostComponents.set('radio', radio);
|
|
85
|
+
hostComponents.set('rich-text', richText);
|
|
86
|
+
hostComponents.set('scroll-view', scrollView);
|
|
87
|
+
hostComponents.set('slider', slider);
|
|
88
|
+
hostComponents.set('swiper-item', swiperItem);
|
|
89
|
+
hostComponents.set('swiper', swiper);
|
|
90
|
+
hostComponents.set('switch', switchComponent);
|
|
91
|
+
hostComponents.set('text', text);
|
|
92
|
+
hostComponents.set('textarea', textarea);
|
|
93
|
+
hostComponents.set('video', video);
|
|
94
|
+
hostComponents.set('view', view);
|
|
95
|
+
hostComponents.set('web-view', webView);
|
|
96
|
+
hostComponents.set('match-media', matchMedia);
|
|
97
|
+
hostComponents.set('page-container', pageContainer);
|
|
98
|
+
hostComponents.set('share-element', shareElement);
|
|
99
|
+
hostComponents.set('keyboard-accessory', keyboardAccessory);
|
|
100
|
+
hostComponents.set('voip-room', voipRoom);
|
|
101
|
+
hostComponents.set('ad-custom', adCustom);
|
|
102
|
+
hostComponents.set('page-meta', pageMeta);
|
|
103
|
+
hostComponents.set('navigation-bar', navigationBar);
|
|
104
|
+
hostComponents.set('root-portal', rootPortal);
|
|
105
|
+
hostComponents.set('channel-live', channelLive);
|
|
106
|
+
hostComponents.set('channel-video', channelVideo);
|
|
107
|
+
hostComponents.set('snapshot', snapshot);
|
|
108
|
+
export default hostComponents;
|
package/esm/index.d.ts
ADDED
package/esm/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as path from 'path';
|
|
2
|
+
import hostComponents from '../hostComponents/node';
|
|
3
|
+
const EJS_TPL_ROOT = path.join(__dirname, '../../templates');
|
|
4
|
+
const plugin = () => {
|
|
5
|
+
return {
|
|
6
|
+
meta: {
|
|
7
|
+
global: 'wx',
|
|
8
|
+
template: {
|
|
9
|
+
extension: '.wxml',
|
|
10
|
+
tag: 'import',
|
|
11
|
+
src: 'src',
|
|
12
|
+
},
|
|
13
|
+
style: '.wxss',
|
|
14
|
+
jsHelper: {
|
|
15
|
+
extension: '.wxs',
|
|
16
|
+
tag: 'wxs',
|
|
17
|
+
src: 'src',
|
|
18
|
+
},
|
|
19
|
+
ejs: {
|
|
20
|
+
base: path.join(EJS_TPL_ROOT, 'base.ejs'),
|
|
21
|
+
page: path.join(EJS_TPL_ROOT, 'page.ejs'),
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
hostComponents,
|
|
25
|
+
skipHostComponents: ['swiper-item'],
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default plugin;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/** 微信内置组件公共属性 */
|
|
3
|
+
export interface BaseProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** 自定义属性: 组件上触发的事件时,会发送给事件处理函数 */
|
|
6
|
+
readonly dataset?: DOMStringMap;
|
|
7
|
+
/** 组件的唯一标示: 保持整个页面唯一 */
|
|
8
|
+
id?: string;
|
|
9
|
+
/** 组件的样式类: 在对应的 WXSS 中定义的样式类 */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** 组件的内联样式: 可以动态设置的内联样式 */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** 组件是否显示: 所有组件默认显示 */
|
|
14
|
+
hidden?: boolean;
|
|
15
|
+
/** 动画对象: 由`wx.createAnimation`创建 */
|
|
16
|
+
animation?: Array<Record<string, any>>;
|
|
17
|
+
/** 点击时触发 */
|
|
18
|
+
onTap?: (event: TouchEvent) => void;
|
|
19
|
+
/** 点击时触发 */
|
|
20
|
+
onClick?: (event: TouchEvent) => void;
|
|
21
|
+
/** 手指触摸动作开始 */
|
|
22
|
+
onTouchStart?: (event: TouchEvent) => void;
|
|
23
|
+
/** 手指触摸后移动 */
|
|
24
|
+
onTouchMove?: (event: TouchEvent) => void;
|
|
25
|
+
/** 手指触摸动作被打断,如来电提醒,弹窗 */
|
|
26
|
+
onTouchCancel?: (event: TouchEvent) => void;
|
|
27
|
+
/** 手指触摸动作结束 */
|
|
28
|
+
onTouchEnd?: (event: TouchEvent) => void;
|
|
29
|
+
/** 手指触摸后,超过350ms再离开,如果指定了事件回调函数并触发了这个事件,tap事件将不被触发 */
|
|
30
|
+
onLongPress?: (event: TouchEvent) => void;
|
|
31
|
+
/** 手指触摸后,超过350ms再离开(推荐使用longpress事件代替) */
|
|
32
|
+
onLongTap?: (event: TouchEvent) => void;
|
|
33
|
+
/** 会在 WXSS transition 或 wx.createAnimation 动画结束后触发 */
|
|
34
|
+
onTransitionEnd?: (event: GenericEvent) => void;
|
|
35
|
+
/** 会在一个 WXSS animation 动画开始时触发 */
|
|
36
|
+
onAnimationStart?: (event: GenericEvent) => void;
|
|
37
|
+
/** 会在一个 WXSS animation 一次迭代结束时触发 */
|
|
38
|
+
onAnimationiteration?: (event: GenericEvent) => void;
|
|
39
|
+
/** 会在一个 WXSS animation 动画完成时触发 */
|
|
40
|
+
onAnimationEnd?: (event: GenericEvent) => void;
|
|
41
|
+
/** 在支持 3D Touch 的 iPhone 设备,重按时会触发 */
|
|
42
|
+
onTouchForceChange?: (event: TouchEvent) => void;
|
|
43
|
+
/** 点击时触发同时阻止事件冒泡 */
|
|
44
|
+
catchClick?: (event: any) => any;
|
|
45
|
+
}
|
|
46
|
+
interface Target {
|
|
47
|
+
/** 事件源组件的id */
|
|
48
|
+
id: string;
|
|
49
|
+
/** 事件源组件上的 `dataset` 自定义属性组成的集合 */
|
|
50
|
+
dataset: any;
|
|
51
|
+
}
|
|
52
|
+
/** 基础事件对象属性列表 */
|
|
53
|
+
export interface BaseEvent {
|
|
54
|
+
/** 事件类型 */
|
|
55
|
+
type: string;
|
|
56
|
+
/** 页面打开到触发事件所经过的毫秒数 */
|
|
57
|
+
timeStamp: number;
|
|
58
|
+
/** 触发事件的源组件 */
|
|
59
|
+
target: Target;
|
|
60
|
+
/**
|
|
61
|
+
* 当前组件的一些属性值集合
|
|
62
|
+
* @特殊事件 canvas 中的触摸事件不可冒泡,所以没有 currentTarget
|
|
63
|
+
*/
|
|
64
|
+
currentTarget: Target;
|
|
65
|
+
/** 事件标记数据 */
|
|
66
|
+
mark: any;
|
|
67
|
+
}
|
|
68
|
+
/** 自定义事件对象属性列表 */
|
|
69
|
+
export interface GenericEvent<Detail = any> extends BaseEvent {
|
|
70
|
+
/** 额外的信息 */
|
|
71
|
+
detail: Detail;
|
|
72
|
+
}
|
|
73
|
+
/** 触摸事件对象属性列表 */
|
|
74
|
+
export interface TouchEvent<T = Touch> extends BaseEvent {
|
|
75
|
+
/** 触摸事件,当前停留在屏幕中的触摸点信息的数组 */
|
|
76
|
+
touches: T[];
|
|
77
|
+
/** 触摸事件,当前变化的触摸点信息的数组 */
|
|
78
|
+
changedTouches: T[];
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|