@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
package/esm/api/index.js
ADDED
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { promisify } from '@rsmax/framework-shared';
|
|
2
|
+
export const canIUse = wx.canIUse;
|
|
3
|
+
export const base64ToArrayBuffer = wx.base64ToArrayBuffer;
|
|
4
|
+
export const arrayBufferToBase64 = wx.arrayBufferToBase64;
|
|
5
|
+
export const getSystemInfoSync = wx.getSystemInfoSync;
|
|
6
|
+
export const getSystemInfo = promisify(wx.getSystemInfo);
|
|
7
|
+
export const getUpdateManager = wx.getUpdateManager;
|
|
8
|
+
export const getLaunchOptionsSync = wx.getLaunchOptionsSync;
|
|
9
|
+
export const onPageNotFound = wx.onPageNotFound;
|
|
10
|
+
export const onError = wx.onError;
|
|
11
|
+
export const onAudioInterruptionEnd = wx.onAudioInterruptionEnd;
|
|
12
|
+
export const onAppShow = wx.onAppShow;
|
|
13
|
+
export const onAppHide = wx.onAppHide;
|
|
14
|
+
export const offPageNotFound = wx.offPageNotFound;
|
|
15
|
+
export const offError = wx.offError;
|
|
16
|
+
export const offAudioInterruptionEnd = wx.offAudioInterruptionEnd;
|
|
17
|
+
export const offAudioInterruptionBegin = wx.offAudioInterruptionBegin;
|
|
18
|
+
export const offAppShow = wx.offAppShow;
|
|
19
|
+
export const offAppHide = wx.offAppHide;
|
|
20
|
+
export const setEnableDebug = promisify(wx.setEnableDebug);
|
|
21
|
+
export const getLogManager = wx.getLogManager;
|
|
22
|
+
export const switchTab = promisify(wx.switchTab);
|
|
23
|
+
export const reLaunch = promisify(wx.reLaunch);
|
|
24
|
+
export const redirectTo = promisify(wx.redirectTo);
|
|
25
|
+
export const navigateTo = promisify(wx.navigateTo);
|
|
26
|
+
export const navigateBack = promisify(wx.navigateBack);
|
|
27
|
+
export const showToast = promisify(wx.showToast);
|
|
28
|
+
export const showModal = promisify(wx.showModal);
|
|
29
|
+
export const showLoading = promisify(wx.showLoading);
|
|
30
|
+
export const showActionSheet = promisify(wx.showActionSheet);
|
|
31
|
+
export const hideToast = promisify(wx.hideToast);
|
|
32
|
+
export const hideLoading = promisify(wx.hideLoading);
|
|
33
|
+
export const showNavigationBarLoading = promisify(wx.showNavigationBarLoading);
|
|
34
|
+
export const setNavigationBarTitle = promisify(wx.setNavigationBarTitle);
|
|
35
|
+
export const setNavigationBarColor = promisify(wx.setNavigationBarColor);
|
|
36
|
+
export const hideNavigationBarLoading = promisify(wx.hideNavigationBarLoading);
|
|
37
|
+
export const setBackgroundTextStyle = promisify(wx.setBackgroundTextStyle);
|
|
38
|
+
export const setBackgroundColor = promisify(wx.setBackgroundColor);
|
|
39
|
+
export const showTabBarRedDot = promisify(wx.showTabBarRedDot);
|
|
40
|
+
export const showTabBar = promisify(wx.showTabBar);
|
|
41
|
+
export const setTabBarStyle = promisify(wx.setTabBarStyle);
|
|
42
|
+
export const setTabBarItem = promisify(wx.setTabBarItem);
|
|
43
|
+
export const setTabBarBadge = promisify(wx.setTabBarBadge);
|
|
44
|
+
export const removeTabBarBadge = promisify(wx.removeTabBarBadge);
|
|
45
|
+
export const hideTabBarRedDot = promisify(wx.hideTabBarRedDot);
|
|
46
|
+
export const hideTabBar = promisify(wx.hideTabBar);
|
|
47
|
+
export const loadFontFace = promisify(wx.loadFontFace);
|
|
48
|
+
export const stopPullDownRefresh = promisify(wx.stopPullDownRefresh);
|
|
49
|
+
export const startPullDownRefresh = promisify(wx.startPullDownRefresh);
|
|
50
|
+
export const pageScrollTo = promisify(wx.pageScrollTo);
|
|
51
|
+
export const createAnimation = wx.createAnimation;
|
|
52
|
+
export const setTopBarText = promisify(wx.setTopBarText);
|
|
53
|
+
export const nextTick = wx.nextTick;
|
|
54
|
+
export const getMenuButtonBoundingClientRect = wx.getMenuButtonBoundingClientRect;
|
|
55
|
+
export const onWindowResize = wx.onWindowResize;
|
|
56
|
+
export const offWindowResize = wx.offWindowResize;
|
|
57
|
+
export const onKeyboardHeightChange = wx.onKeyboardHeightChange;
|
|
58
|
+
export const offKeyboardHeightChange = wx.offKeyboardHeightChange;
|
|
59
|
+
export const getSelectedTextRange = wx.getSelectedTextRange;
|
|
60
|
+
export const request = promisify(wx.request);
|
|
61
|
+
export const downloadFile = promisify(wx.downloadFile);
|
|
62
|
+
export const uploadFile = promisify(wx.uploadFile);
|
|
63
|
+
export const sendSocketMessage = promisify(wx.sendSocketMessage);
|
|
64
|
+
export const onSocketOpen = wx.onSocketOpen;
|
|
65
|
+
export const onSocketMessage = wx.onSocketMessage;
|
|
66
|
+
export const onSocketError = wx.onSocketError;
|
|
67
|
+
export const onSocketClose = wx.onSocketClose;
|
|
68
|
+
export const connectSocket = wx.connectSocket;
|
|
69
|
+
export const closeSocket = promisify(wx.closeSocket);
|
|
70
|
+
export const stopLocalServiceDiscovery = promisify(wx.stopLocalServiceDiscovery);
|
|
71
|
+
export const startLocalServiceDiscovery = promisify(wx.startLocalServiceDiscovery);
|
|
72
|
+
export const onLocalServiceResolveFail = wx.onLocalServiceResolveFail;
|
|
73
|
+
export const onLocalServiceLost = wx.onLocalServiceLost;
|
|
74
|
+
export const onLocalServiceFound = wx.onLocalServiceFound;
|
|
75
|
+
export const onLocalServiceDiscoveryStop = wx.onLocalServiceDiscoveryStop;
|
|
76
|
+
export const offLocalServiceResolveFail = wx.offLocalServiceResolveFail;
|
|
77
|
+
export const offLocalServiceLost = wx.offLocalServiceLost;
|
|
78
|
+
export const offLocalServiceFound = wx.offLocalServiceFound;
|
|
79
|
+
export const offLocalServiceDiscoveryStop = wx.offLocalServiceDiscoveryStop;
|
|
80
|
+
export const createUDPSocket = wx.createUDPSocket;
|
|
81
|
+
export const setStorageSync = wx.setStorageSync;
|
|
82
|
+
export const setStorage = promisify(wx.setStorage);
|
|
83
|
+
export const removeStorageSync = wx.removeStorageSync;
|
|
84
|
+
export const removeStorage = promisify(wx.removeStorage);
|
|
85
|
+
export const getStorageSync = wx.getStorageSync;
|
|
86
|
+
export const getStorageInfoSync = wx.getStorageInfoSync;
|
|
87
|
+
export const getStorageInfo = promisify(wx.getStorageInfo);
|
|
88
|
+
export const getStorage = promisify(wx.getStorage);
|
|
89
|
+
export const clearStorageSync = wx.clearStorageSync;
|
|
90
|
+
export const clearStorage = promisify(wx.clearStorage);
|
|
91
|
+
export const createMapContext = wx.createMapContext;
|
|
92
|
+
export const saveImageToPhotosAlbum = promisify(wx.saveImageToPhotosAlbum);
|
|
93
|
+
export const previewImage = promisify(wx.previewImage);
|
|
94
|
+
export const previewMedia = promisify(wx.previewMedia);
|
|
95
|
+
export const getImageInfo = promisify(wx.getImageInfo);
|
|
96
|
+
export const compressImage = promisify(wx.compressImage);
|
|
97
|
+
export const chooseMessageFile = promisify(wx.chooseMessageFile);
|
|
98
|
+
export const chooseImage = promisify(wx.chooseImage);
|
|
99
|
+
export const saveVideoToPhotosAlbum = promisify(wx.saveVideoToPhotosAlbum);
|
|
100
|
+
export const createVideoContext = wx.createVideoContext;
|
|
101
|
+
export const chooseVideo = promisify(wx.chooseVideo);
|
|
102
|
+
export const chooseMedia = promisify(wx.chooseMedia);
|
|
103
|
+
export const stopVoice = promisify(wx.stopVoice);
|
|
104
|
+
export const setInnerAudioOption = promisify(wx.setInnerAudioOption);
|
|
105
|
+
export const playVoice = promisify(wx.playVoice);
|
|
106
|
+
export const pauseVoice = promisify(wx.pauseVoice);
|
|
107
|
+
export const getAvailableAudioSources = promisify(wx.getAvailableAudioSources);
|
|
108
|
+
export const createInnerAudioContext = wx.createInnerAudioContext;
|
|
109
|
+
export const createAudioContext = wx.createAudioContext;
|
|
110
|
+
export const stopBackgroundAudio = promisify(wx.stopBackgroundAudio);
|
|
111
|
+
export const seekBackgroundAudio = promisify(wx.seekBackgroundAudio);
|
|
112
|
+
export const playBackgroundAudio = promisify(wx.playBackgroundAudio);
|
|
113
|
+
export const pauseBackgroundAudio = promisify(wx.pauseBackgroundAudio);
|
|
114
|
+
export const onBackgroundAudioStop = wx.onBackgroundAudioStop;
|
|
115
|
+
export const onBackgroundAudioPlay = wx.onBackgroundAudioPlay;
|
|
116
|
+
export const onBackgroundAudioPause = wx.onBackgroundAudioPause;
|
|
117
|
+
export const getBackgroundAudioPlayerState = promisify(wx.getBackgroundAudioPlayerState);
|
|
118
|
+
export const getBackgroundAudioManager = wx.getBackgroundAudioManager;
|
|
119
|
+
export const createLivePusherContext = wx.createLivePusherContext;
|
|
120
|
+
export const createLivePlayerContext = wx.createLivePlayerContext;
|
|
121
|
+
export const stopRecord = promisify(wx.stopRecord);
|
|
122
|
+
export const startRecord = promisify(wx.startRecord);
|
|
123
|
+
export const getRecorderManager = wx.getRecorderManager;
|
|
124
|
+
export const createCameraContext = wx.createCameraContext;
|
|
125
|
+
export const stopLocationUpdate = promisify(wx.stopLocationUpdate);
|
|
126
|
+
export const startLocationUpdateBackground = promisify(wx.startLocationUpdateBackground);
|
|
127
|
+
export const startLocationUpdate = promisify(wx.startLocationUpdate);
|
|
128
|
+
export const openLocation = promisify(wx.openLocation);
|
|
129
|
+
export const onLocationChange = wx.onLocationChange;
|
|
130
|
+
export const getLocation = promisify(wx.getLocation);
|
|
131
|
+
export const chooseLocation = promisify(wx.chooseLocation);
|
|
132
|
+
export const updateShareMenu = promisify(wx.updateShareMenu);
|
|
133
|
+
export const showShareMenu = promisify(wx.showShareMenu);
|
|
134
|
+
export const hideShareMenu = promisify(wx.hideShareMenu);
|
|
135
|
+
export const getShareInfo = promisify(wx.getShareInfo);
|
|
136
|
+
export const createOffscreenCanvas = wx.createOffscreenCanvas;
|
|
137
|
+
export const createCanvasContext = wx.createCanvasContext;
|
|
138
|
+
export const canvasToTempFilePath = promisify(wx.canvasToTempFilePath);
|
|
139
|
+
export const canvasPutImageData = promisify(wx.canvasPutImageData);
|
|
140
|
+
export const canvasGetImageData = promisify(wx.canvasGetImageData);
|
|
141
|
+
export const getFileSystemManager = promisify(wx.getFileSystemManager);
|
|
142
|
+
export const openDocument = promisify(wx.openDocument);
|
|
143
|
+
export const login = promisify(wx.login);
|
|
144
|
+
export const checkSession = promisify(wx.checkSession);
|
|
145
|
+
export const navigateToMiniProgram = promisify(wx.navigateToMiniProgram);
|
|
146
|
+
export const navigateBackMiniProgram = promisify(wx.navigateBackMiniProgram);
|
|
147
|
+
export const getAccountInfoSync = wx.getAccountInfoSync;
|
|
148
|
+
export const getUserInfo = promisify(wx.getUserInfo);
|
|
149
|
+
export const reportMonitor = wx.reportMonitor;
|
|
150
|
+
export const reportAnalytics = wx.reportAnalytics;
|
|
151
|
+
export const requestPayment = promisify(wx.requestPayment);
|
|
152
|
+
export const authorize = promisify(wx.authorize);
|
|
153
|
+
export const openSetting = promisify(wx.openSetting);
|
|
154
|
+
export const getSetting = promisify(wx.getSetting);
|
|
155
|
+
export const chooseAddress = promisify(wx.chooseAddress);
|
|
156
|
+
export const openCard = promisify(wx.openCard);
|
|
157
|
+
export const addCard = promisify(wx.addCard);
|
|
158
|
+
export const chooseInvoiceTitle = promisify(wx.chooseInvoiceTitle);
|
|
159
|
+
export const chooseInvoice = promisify(wx.chooseInvoice);
|
|
160
|
+
export const startSoterAuthentication = promisify(wx.startSoterAuthentication);
|
|
161
|
+
export const checkIsSupportSoterAuthentication = promisify(wx.checkIsSupportSoterAuthentication);
|
|
162
|
+
export const checkIsSoterEnrolledInDevice = promisify(wx.checkIsSoterEnrolledInDevice);
|
|
163
|
+
export const getWeRunData = promisify(wx.getWeRunData);
|
|
164
|
+
export const stopBeaconDiscovery = promisify(wx.stopBeaconDiscovery);
|
|
165
|
+
export const startBeaconDiscovery = promisify(wx.startBeaconDiscovery);
|
|
166
|
+
export const onBeaconUpdate = wx.onBeaconUpdate;
|
|
167
|
+
export const offBeaconUpdate = wx.offBeaconUpdate;
|
|
168
|
+
export const onBeaconServiceChange = wx.onBeaconServiceChange;
|
|
169
|
+
export const offBeaconServiceChange = wx.offBeaconServiceChange;
|
|
170
|
+
export const getBeacons = promisify(wx.getBeacons);
|
|
171
|
+
export const stopWifi = promisify(wx.stopWifi);
|
|
172
|
+
export const startWifi = promisify(wx.startWifi);
|
|
173
|
+
export const setWifiList = promisify(wx.setWifiList);
|
|
174
|
+
export const onWifiConnected = wx.onWifiConnected;
|
|
175
|
+
export const offWifiConnected = wx.offWifiConnected;
|
|
176
|
+
export const onGetWifiList = wx.onGetWifiList;
|
|
177
|
+
export const offGetWifiList = wx.offGetWifiList;
|
|
178
|
+
export const getWifiList = promisify(wx.getWifiList);
|
|
179
|
+
export const getConnectedWifi = promisify(wx.getConnectedWifi);
|
|
180
|
+
export const connectWifi = promisify(wx.connectWifi);
|
|
181
|
+
export const addPhoneContact = promisify(wx.addPhoneContact);
|
|
182
|
+
export const writeBLECharacteristicValue = promisify(wx.writeBLECharacteristicValue);
|
|
183
|
+
export const readBLECharacteristicValue = promisify(wx.readBLECharacteristicValue);
|
|
184
|
+
export const onBLEConnectionStateChange = wx.onBLEConnectionStateChange;
|
|
185
|
+
export const offBLEConnectionStateChange = wx.offBLEConnectionStateChange;
|
|
186
|
+
export const onBLECharacteristicValueChange = wx.onBLECharacteristicValueChange;
|
|
187
|
+
export const offBLECharacteristicValueChange = wx.offBLECharacteristicValueChange;
|
|
188
|
+
export const notifyBLECharacteristicValueChange = promisify(wx.notifyBLECharacteristicValueChange);
|
|
189
|
+
export const getBLEDeviceServices = promisify(wx.getBLEDeviceServices);
|
|
190
|
+
export const getBLEDeviceCharacteristics = promisify(wx.getBLEDeviceCharacteristics);
|
|
191
|
+
export const createBLEConnection = promisify(wx.createBLEConnection);
|
|
192
|
+
export const closeBLEConnection = promisify(wx.closeBLEConnection);
|
|
193
|
+
export const stopBluetoothDevicesDiscovery = promisify(wx.stopBluetoothDevicesDiscovery);
|
|
194
|
+
export const startBluetoothDevicesDiscovery = promisify(wx.startBluetoothDevicesDiscovery);
|
|
195
|
+
export const openBluetoothAdapter = wx.openBluetoothAdapter;
|
|
196
|
+
export const onBluetoothDeviceFound = wx.onBluetoothDeviceFound;
|
|
197
|
+
export const offBluetoothDeviceFound = wx.offBluetoothDeviceFound;
|
|
198
|
+
export const onBluetoothAdapterStateChange = wx.onBluetoothAdapterStateChange;
|
|
199
|
+
export const offBluetoothAdapterStateChange = wx.offBluetoothAdapterStateChange;
|
|
200
|
+
export const getConnectedBluetoothDevices = promisify(wx.getConnectedBluetoothDevices);
|
|
201
|
+
export const getBluetoothDevices = promisify(wx.getBluetoothDevices);
|
|
202
|
+
export const getBluetoothAdapterState = promisify(wx.getBluetoothAdapterState);
|
|
203
|
+
export const closeBluetoothAdapter = promisify(wx.closeBluetoothAdapter);
|
|
204
|
+
export const getBatteryInfoSync = wx.getBatteryInfoSync;
|
|
205
|
+
export const getBatteryInfo = promisify(wx.getBatteryInfo);
|
|
206
|
+
export const setClipboardData = promisify(wx.setClipboardData);
|
|
207
|
+
export const getClipboardData = promisify(wx.getClipboardData);
|
|
208
|
+
export const stopHCE = promisify(wx.stopHCE);
|
|
209
|
+
export const startHCE = promisify(wx.startHCE);
|
|
210
|
+
export const sendHCEMessage = promisify(wx.sendHCEMessage);
|
|
211
|
+
export const onHCEMessage = wx.onHCEMessage;
|
|
212
|
+
export const offHCEMessage = wx.offHCEMessage;
|
|
213
|
+
export const getHCEState = promisify(wx.getHCEState);
|
|
214
|
+
export const onNetworkStatusChange = wx.onNetworkStatusChange;
|
|
215
|
+
export const offNetworkStatusChange = wx.offNetworkStatusChange;
|
|
216
|
+
export const getNetworkType = promisify(wx.getNetworkType);
|
|
217
|
+
export const setScreenBrightness = promisify(wx.setScreenBrightness);
|
|
218
|
+
export const setKeepScreenOn = promisify(wx.setKeepScreenOn);
|
|
219
|
+
export const onUserCaptureScreen = wx.onUserCaptureScreen;
|
|
220
|
+
export const offUserCaptureScreen = wx.offUserCaptureScreen;
|
|
221
|
+
export const getScreenBrightness = promisify(wx.getScreenBrightness);
|
|
222
|
+
export const makePhoneCall = promisify(wx.makePhoneCall);
|
|
223
|
+
export const stopAccelerometer = promisify(wx.stopAccelerometer);
|
|
224
|
+
export const startAccelerometer = promisify(wx.startAccelerometer);
|
|
225
|
+
export const onAccelerometerChange = wx.onAccelerometerChange;
|
|
226
|
+
export const offAccelerometerChange = wx.offAccelerometerChange;
|
|
227
|
+
export const stopCompass = promisify(wx.stopCompass);
|
|
228
|
+
export const startCompass = promisify(wx.startCompass);
|
|
229
|
+
export const onCompassChange = wx.onCompassChange;
|
|
230
|
+
export const offCompassChange = wx.offCompassChange;
|
|
231
|
+
export const stopDeviceMotionListening = promisify(wx.stopDeviceMotionListening);
|
|
232
|
+
export const startDeviceMotionListening = promisify(wx.startDeviceMotionListening);
|
|
233
|
+
export const onDeviceMotionChange = wx.onDeviceMotionChange;
|
|
234
|
+
export const offDeviceMotionChange = wx.offDeviceMotionChange;
|
|
235
|
+
export const stopGyroscope = promisify(wx.stopGyroscope);
|
|
236
|
+
export const startGyroscope = promisify(wx.startGyroscope);
|
|
237
|
+
export const onGyroscopeChange = wx.onGyroscopeChange;
|
|
238
|
+
export const offGyroscopeChange = wx.offGyroscopeChange;
|
|
239
|
+
export const onMemoryWarning = wx.onMemoryWarning;
|
|
240
|
+
export const offMemoryWarning = wx.offMemoryWarning;
|
|
241
|
+
export const scanCode = promisify(wx.scanCode);
|
|
242
|
+
export const vibrateShort = promisify(wx.vibrateShort);
|
|
243
|
+
export const vibrateLong = promisify(wx.vibrateLong);
|
|
244
|
+
export const createWorker = wx.createWorker;
|
|
245
|
+
export const getExtConfigSync = wx.getExtConfigSync;
|
|
246
|
+
export const getExtConfig = promisify(wx.getExtConfig);
|
|
247
|
+
export const createSelectorQuery = wx.createSelectorQuery;
|
|
248
|
+
export const createIntersectionObserver = wx.createIntersectionObserver;
|
|
249
|
+
export const createRewardedVideoAd = wx.createRewardedVideoAd;
|
|
250
|
+
export const createInterstitialAd = wx.createInterstitialAd;
|
|
251
|
+
export const cloud = wx.cloud;
|
|
252
|
+
export const requestSubscribeMessage = promisify(wx.requestSubscribeMessage);
|
|
253
|
+
export const hideHomeButton = promisify(wx.hideHomeButton);
|
|
254
|
+
export const getRealtimeLogManager = wx.getRealtimeLogManager;
|
|
255
|
+
export const hideKeyboard = promisify(wx.hideKeyboard);
|
|
256
|
+
export const getUserProfile = promisify(wx.getUserProfile);
|
|
257
|
+
export const showShareImageMenu = promisify(wx.showShareImageMenu);
|
|
258
|
+
export const shareVideoMessage = promisify(wx.shareVideoMessage);
|
|
259
|
+
export const shareFileMessage = promisify(wx.shareFileMessage);
|
|
260
|
+
export const onCopyUrl = promisify(wx.onCopyUrl);
|
|
261
|
+
export const offCopyUrl = promisify(wx.offCopyUrl);
|
|
262
|
+
export const authPrivateMessage = promisify(wx.authPrivateMessage);
|
|
263
|
+
export const openCustomerServiceChat = wx.openCustomerServiceChat;
|
|
264
|
+
export const getGroupEnterInfo = wx.getGroupEnterInfo;
|
|
265
|
+
export const reserveChannelsLive = wx.reserveChannelsLive;
|
|
266
|
+
export const openChannelsLive = wx.openChannelsLive;
|
|
267
|
+
export const openChannelsActivity = wx.openChannelsActivity;
|
|
268
|
+
export const getChannelsLiveNoticeInfo = wx.getChannelsLiveNoticeInfo;
|
|
269
|
+
export const getChannelsLiveInfo = wx.getChannelsLiveInfo;
|
|
270
|
+
export const chooseLicensePlate = wx.chooseLicensePlate;
|
|
271
|
+
export const shareToWeRun = promisify(wx.shareToWeRun);
|
|
272
|
+
export const showRedPackage = promisify(wx.showRedPackage);
|
|
273
|
+
export const addVideoToFavorites = wx.addVideoToFavorites;
|
|
274
|
+
export const addFileToFavorites = wx.addFileToFavorites;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface AdProps extends BaseProps {
|
|
4
|
+
/** 广告单元id,可在小程序管理后台的流量主模块新建 1.9.94; */
|
|
5
|
+
unitId: string;
|
|
6
|
+
/** 广告自动刷新的间隔时间,单位为秒,参数值必须大于等于30(该参数不传入时 Banner 广告不会自动刷新) 2.3.1 */
|
|
7
|
+
adIntervals?: number;
|
|
8
|
+
/** 广告加载成功的回调 2.2.1 */
|
|
9
|
+
onLoad?: (event: GenericEvent) => any;
|
|
10
|
+
/** 广告加载失败的回调,event.detail = {errCode: 1002} 2.2.1 */
|
|
11
|
+
onError?: (event: GenericEvent) => any;
|
|
12
|
+
/** 广告关闭的回调 2.6.5 */
|
|
13
|
+
onClose?: (event: GenericEvent) => any;
|
|
14
|
+
/** 广告类型,默认为展示banner,可通过设置该属性为video展示视频广告, grid为格子广告 2.8.0 **/
|
|
15
|
+
adType?: string;
|
|
16
|
+
adTheme?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const Ad: React.ComponentType<AdProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
unitId: 'unit-id',
|
|
3
|
+
adIntervals: 'ad-intervals',
|
|
4
|
+
onLoad: 'bindload',
|
|
5
|
+
onError: 'binderror',
|
|
6
|
+
onClose: 'bindclose',
|
|
7
|
+
animation: 'animation',
|
|
8
|
+
adType: 'ad-type',
|
|
9
|
+
adTheme: 'ad-theme',
|
|
10
|
+
};
|
|
11
|
+
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 AdCustomProps extends BaseProps {
|
|
4
|
+
/** 广告单元id,可在小程序管理后台的流量主模块新建 2.10.4; */
|
|
5
|
+
unitId: string;
|
|
6
|
+
/** 广告自动刷新的间隔时间,单位为秒,参数值必须大于等于30(该参数不传入时 Banner 广告不会自动刷新) 2.10.4 */
|
|
7
|
+
AdIntervals?: number;
|
|
8
|
+
/** 广告加载成功的回调 2.10.4 */
|
|
9
|
+
onLoad?: (event: GenericEvent) => any;
|
|
10
|
+
/** 广告加载失败的回调,event.detail = {errCode: 1002} 2.10.4 */
|
|
11
|
+
onError?: (event: GenericEvent) => any;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 原生模版广告
|
|
15
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/ad-custom.html
|
|
16
|
+
*/
|
|
17
|
+
export declare const AdCustom: React.ComponentType<AdCustomProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
id: string;
|
|
3
|
+
className: string;
|
|
4
|
+
style: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
src: string;
|
|
7
|
+
loop: string;
|
|
8
|
+
controls: string;
|
|
9
|
+
poster: string;
|
|
10
|
+
name: string;
|
|
11
|
+
author: string;
|
|
12
|
+
onError: string;
|
|
13
|
+
onPlay: string;
|
|
14
|
+
onPause: string;
|
|
15
|
+
onTimeUpdate: string;
|
|
16
|
+
onEnded: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const alias = {
|
|
2
|
+
id: 'id',
|
|
3
|
+
className: 'class',
|
|
4
|
+
style: 'style',
|
|
5
|
+
animation: 'animation',
|
|
6
|
+
src: 'src',
|
|
7
|
+
loop: 'loop',
|
|
8
|
+
controls: 'controls',
|
|
9
|
+
poster: 'poster',
|
|
10
|
+
name: 'name',
|
|
11
|
+
author: 'author',
|
|
12
|
+
onError: 'binderror',
|
|
13
|
+
onPlay: 'bindplay',
|
|
14
|
+
onPause: 'bindpause',
|
|
15
|
+
onTimeUpdate: 'bindtimeupdate',
|
|
16
|
+
onEnded: 'bindended',
|
|
17
|
+
};
|
|
18
|
+
export const props = Object.values(alias);
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
|
+
export interface ButtonProps extends BaseProps {
|
|
4
|
+
/**
|
|
5
|
+
* 1.0.0
|
|
6
|
+
* default 默认大小
|
|
7
|
+
* mini 小尺寸
|
|
8
|
+
*/
|
|
9
|
+
size?: 'default' | 'mini';
|
|
10
|
+
/**
|
|
11
|
+
* 1.0.0
|
|
12
|
+
* primary 绿色
|
|
13
|
+
* default 白色
|
|
14
|
+
* warn 红色
|
|
15
|
+
*/
|
|
16
|
+
type?: 'primary' | 'default' | 'warn';
|
|
17
|
+
/**
|
|
18
|
+
* 1.0.0
|
|
19
|
+
* 按钮是否镂空,背景色透明
|
|
20
|
+
*/
|
|
21
|
+
plain?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 1.0.0
|
|
24
|
+
* 是否禁用
|
|
25
|
+
*/
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 1.0.0
|
|
29
|
+
* 名称前是否带 loading 图标
|
|
30
|
+
*/
|
|
31
|
+
loading?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 1.0.0
|
|
34
|
+
* submit 提交表单
|
|
35
|
+
* reset 重置表单
|
|
36
|
+
*/
|
|
37
|
+
formType?: 'submit' | 'reset';
|
|
38
|
+
/**
|
|
39
|
+
* - 微信小程序 & QQ 小程序
|
|
40
|
+
* contact 打开客服会话,如果用户在会话中点击消息卡片后返回小程序,可以从 bindcontact 回调中获得具体信息 1.1.0
|
|
41
|
+
* share 触发用户转发,使用前建议先阅读使用指引 1.2.0
|
|
42
|
+
* getPhoneNumber 获取用户手机号,可以从 bindgetphonenumber 回调中获取到用户信息 1.2.0
|
|
43
|
+
* getUserInfo 获取用户信息,可以从 bindgetuserinfo 回调中获取到用户信息 1.3.0
|
|
44
|
+
* launchApp 打开 App,可以通过 app-parameter 属性设定向 App 传的参数 1.9.5
|
|
45
|
+
* openSetting 打开授权设置页 2.0.7
|
|
46
|
+
* feedback 打开“意见反馈”页面,用户可提交反馈内容并上传日志,开发者可以登录小程序管理后台后进入左侧菜单“客服反馈”页面获取到反馈内容 2.1.0
|
|
47
|
+
*
|
|
48
|
+
* - QQ 小程序
|
|
49
|
+
* openGroupProfile 呼起群资料卡页面,可以通过 group-id 属性设定需要打开的群资料卡的群号,同时 app.json 中必须配置 groupIdList(数量不超过 10 个),表明可以打开群资料卡的群号 1.4.7
|
|
50
|
+
* addFriend 添加好友,对方需要通过该小程序进行授权,允许被加好友后才能调用成功 1.0.0
|
|
51
|
+
* addColorSign 添加彩签,点击后添加状态有用户提示,无回调 1.10.0
|
|
52
|
+
* openPublicProfile 打开公众号资料卡,可以通过 public-id 属性设定需要打开的公众号资料卡的号码,同时 app.json 中必须配置 publicIdList(目前只能配置 1 个),表明可以打开的公众号资料卡的号码 1.12.0
|
|
53
|
+
* addGroupApp 添加群应用(只有管理员或群主有权操作,建议先调用 qq.getGroupInfo 获取当前用户是否为管理员,如果是管理员才显示该按钮),添加后给 button 绑定 bindaddgroupapp 事件接收回调数据 1.16.0
|
|
54
|
+
* shareMessageToFriend 在自定义开放数据域组件中,向指定好友发起分享 1.17.0
|
|
55
|
+
* addToFavorites 收藏当前页面,点击按钮后会触发 Page.onAddToFavorites 方法 1.19.0
|
|
56
|
+
*/
|
|
57
|
+
openType?: 'contact' | 'share' | 'getPhoneNumber' | 'getUserInfo' | 'launchApp' | 'openSetting' | 'feedback' | 'openGroupProfile' | 'addFriend' | 'addColorSign' | 'openPublicProfile' | 'addGroupApp' | 'shareMessageToFriend' | 'addToFavorites' | 'chooseAvatar';
|
|
58
|
+
/**
|
|
59
|
+
* 1.0.0
|
|
60
|
+
* 指定按钮按下去的样式类。当 hover-class="none" 时,没有点击态效果
|
|
61
|
+
*/
|
|
62
|
+
hoverClassName?: string;
|
|
63
|
+
/**
|
|
64
|
+
* 1.5.0
|
|
65
|
+
* 指定是否阻止本节点的祖先节点出现点击态
|
|
66
|
+
*/
|
|
67
|
+
hoverStopPropagation?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* 1.0.0
|
|
70
|
+
* 按住后多久出现点击态,单位毫秒
|
|
71
|
+
*/
|
|
72
|
+
hoverStartTime?: number;
|
|
73
|
+
/**
|
|
74
|
+
* 1.0.0
|
|
75
|
+
* 手指松开后点击态保留时间,单位毫秒
|
|
76
|
+
*/
|
|
77
|
+
hoverStayTime?: number;
|
|
78
|
+
/**
|
|
79
|
+
* 1.3.0
|
|
80
|
+
* en 英文
|
|
81
|
+
* zh_CN 简体中文
|
|
82
|
+
* zh_TW 繁体中文
|
|
83
|
+
*/
|
|
84
|
+
lang?: 'en' | 'zh_CN' | 'zh_TW';
|
|
85
|
+
/**
|
|
86
|
+
* 1.4.0
|
|
87
|
+
* 会话来源,open-type="contact"时有效
|
|
88
|
+
*/
|
|
89
|
+
sessionFrom?: string;
|
|
90
|
+
/**
|
|
91
|
+
* 1.5.0
|
|
92
|
+
* 会话内消息卡片标题,open-type="contact"时有效
|
|
93
|
+
*/
|
|
94
|
+
sendMessageTitle?: string;
|
|
95
|
+
/**
|
|
96
|
+
* 1.5.0
|
|
97
|
+
* 会话内消息卡片点击跳转小程序路径,open-type="contact"时有效
|
|
98
|
+
*/
|
|
99
|
+
sendMessagePath?: string;
|
|
100
|
+
/**
|
|
101
|
+
* 1.5.0
|
|
102
|
+
* 会话内消息卡片图片,open-type="contact"时有效
|
|
103
|
+
*/
|
|
104
|
+
sendMessageImg?: string;
|
|
105
|
+
/**
|
|
106
|
+
* 1.9.5
|
|
107
|
+
* 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效
|
|
108
|
+
*/
|
|
109
|
+
appParameter?: string;
|
|
110
|
+
/**
|
|
111
|
+
* QQ 小程序 1.0.0
|
|
112
|
+
* 打开 APP 时,应用的包名(Android)
|
|
113
|
+
*/
|
|
114
|
+
appPackageName?: string;
|
|
115
|
+
/**
|
|
116
|
+
* QQ 小程序 1.0.0
|
|
117
|
+
* 打开 APP 时,应用的 Bundle ID(iOS)
|
|
118
|
+
*/
|
|
119
|
+
appBundleID?: string;
|
|
120
|
+
/**
|
|
121
|
+
* QQ 小程序 1.0.0
|
|
122
|
+
* 打开 APP 时,应用在 QQ 互联中的 AppID
|
|
123
|
+
*/
|
|
124
|
+
appConnectID?: string;
|
|
125
|
+
/**
|
|
126
|
+
* QQ 小程序 1.0.0
|
|
127
|
+
* 添加好友时,对方的 openid
|
|
128
|
+
*/
|
|
129
|
+
openId?: string;
|
|
130
|
+
/**
|
|
131
|
+
* QQ 小程序 1.0.0
|
|
132
|
+
* 打开群资料卡时,传递的群号
|
|
133
|
+
*/
|
|
134
|
+
groupId?: string;
|
|
135
|
+
/**
|
|
136
|
+
* QQ 小程序 1.12.0
|
|
137
|
+
* 打开公众号资料卡时,传递的号码
|
|
138
|
+
*/
|
|
139
|
+
publicId?: string;
|
|
140
|
+
/**
|
|
141
|
+
* QQ 小程序 1.4.4
|
|
142
|
+
* 分享类型集合,标志位形式
|
|
143
|
+
*/
|
|
144
|
+
shareType?: number;
|
|
145
|
+
/**
|
|
146
|
+
* QQ 小程序 1.15.0
|
|
147
|
+
* 分享类型集合,数组形式
|
|
148
|
+
*/
|
|
149
|
+
shareMode?: Array<'qq' | 'qzone' | 'quickToDialog' | 'wechatFriends' | 'wechatMoment' | 'recentContacts'>;
|
|
150
|
+
/**
|
|
151
|
+
* QQ 小程序 1.17.0
|
|
152
|
+
* 发送对象的 FriendInfo
|
|
153
|
+
*/
|
|
154
|
+
shareMessageFriendInfo?: any;
|
|
155
|
+
/**
|
|
156
|
+
* QQ 小程序 1.17.0
|
|
157
|
+
* 转发标题,不传则默认使用当前小程序的昵称。
|
|
158
|
+
*/
|
|
159
|
+
shareMessageTitle?: string;
|
|
160
|
+
/**
|
|
161
|
+
* QQ 小程序 1.17.0
|
|
162
|
+
* 转发显示图片的链接,可以是网络图片路径(仅 QQ CDN 域名路径)或本地图片文件路径或相对代码包根目录的图片文件路径。显示图片长宽比是 5:4
|
|
163
|
+
*/
|
|
164
|
+
shareMessageImg?: string;
|
|
165
|
+
/**
|
|
166
|
+
* 1.5.0
|
|
167
|
+
* 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,
|
|
168
|
+
* 用户点击后可以快速发送小程序消息,open-type="contact"时有效
|
|
169
|
+
*/
|
|
170
|
+
showMessageCard?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* 1.3.0
|
|
173
|
+
* 用户点击该按钮时,会返回获取到的用户信息,回调的detail数据与wx.getUserInfo返回的一致,
|
|
174
|
+
* open-type="getUserInfo"时有效
|
|
175
|
+
*/
|
|
176
|
+
onGetUserInfo?: (event: GenericEvent) => any;
|
|
177
|
+
/**
|
|
178
|
+
* 1.5.0
|
|
179
|
+
* 客服消息回调,open-type="contact"时有效
|
|
180
|
+
*/
|
|
181
|
+
onContact?: (event: GenericEvent) => any;
|
|
182
|
+
/**
|
|
183
|
+
* 1.2.0
|
|
184
|
+
* 获取用户手机号回调,open-type=getPhoneNumber时有效
|
|
185
|
+
*/
|
|
186
|
+
onGetPhoneNumber?: (event: GenericEvent) => any;
|
|
187
|
+
/**
|
|
188
|
+
* 1.9.5
|
|
189
|
+
* 当使用开放能力时,发生错误的回调,open-type=launchApp时有效
|
|
190
|
+
*/
|
|
191
|
+
onError?: (event: GenericEvent) => any;
|
|
192
|
+
/**
|
|
193
|
+
* 2.0.7
|
|
194
|
+
* 在打开授权设置页后回调,open-type=openSetting时有效
|
|
195
|
+
*/
|
|
196
|
+
onOpenSetting?: (event: GenericEvent) => any;
|
|
197
|
+
/**
|
|
198
|
+
* 2.4.4
|
|
199
|
+
* 打开 APP 成功的回调,open-type=launchApp时有效
|
|
200
|
+
*/
|
|
201
|
+
onLaunchApp?: (event: GenericEvent) => any;
|
|
202
|
+
/**
|
|
203
|
+
* QQ 小程序 1.0.0
|
|
204
|
+
* 添加好友的回调
|
|
205
|
+
*/
|
|
206
|
+
onAddFriend?: (event: GenericEvent) => any;
|
|
207
|
+
/**
|
|
208
|
+
* QQ 小程序 1.16.0
|
|
209
|
+
* 添加群应用的回调
|
|
210
|
+
*/
|
|
211
|
+
onAddGroupApp?: (event: GenericEvent) => any;
|
|
212
|
+
/**
|
|
213
|
+
* 2.21.2
|
|
214
|
+
* 头像昵称填写
|
|
215
|
+
* https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/userProfile.html
|
|
216
|
+
*/
|
|
217
|
+
onChooseAvatar?: (event: GenericEvent) => any;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/button.html
|
|
221
|
+
* https://q.qq.com/wiki/develop/miniprogram/component/form/button.html
|
|
222
|
+
*/
|
|
223
|
+
export declare const Button: React.ComponentType<ButtonProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createHostComponent } from '@rsmax/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* https://developers.weixin.qq.com/miniprogram/dev/component/button.html
|
|
4
|
+
* https://q.qq.com/wiki/develop/miniprogram/component/form/button.html
|
|
5
|
+
*/
|
|
6
|
+
export const Button = createHostComponent('button');
|
|
7
|
+
Button.defaultProps = {
|
|
8
|
+
hoverClassName: 'button-hover',
|
|
9
|
+
hoverStartTime: 20,
|
|
10
|
+
hoverStayTime: 70,
|
|
11
|
+
};
|