@trtc/calls-uikit-vue2 4.1.0
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/README-zh_CN.md +83 -0
- package/README.md +89 -0
- package/debug/GenerateTestUserSig-es.js +26 -0
- package/debug/lib-generate-test-usersig-es.min.js +2 -0
- package/package.json +42 -0
- package/src/Components/TUICallKit.vue +334 -0
- package/src/Components/assets/MicrophoneVolume/desktop/mic-off.svg +5 -0
- package/src/Components/assets/MicrophoneVolume/desktop/mic-on.svg +5 -0
- package/src/Components/assets/base/close.svg +1 -0
- package/src/Components/assets/base/error.svg +1 -0
- package/src/Components/assets/base/info.svg +1 -0
- package/src/Components/assets/base/loading-circle.svg +1 -0
- package/src/Components/assets/base/success.svg +1 -0
- package/src/Components/assets/base/waring.svg +1 -0
- package/src/Components/assets/button/accept.svg +1 -0
- package/src/Components/assets/button/background-blur-close.svg +1 -0
- package/src/Components/assets/button/background-blur-open.svg +1 -0
- package/src/Components/assets/button/camera-close.svg +1 -0
- package/src/Components/assets/button/camera-open.svg +1 -0
- package/src/Components/assets/button/desktop/arrow.png +0 -0
- package/src/Components/assets/button/desktop/fullScreen.svg +4 -0
- package/src/Components/assets/button/desktop/inviteUser.svg +1 -0
- package/src/Components/assets/button/desktop/minimize.svg +6 -0
- package/src/Components/assets/button/hangup.svg +1 -0
- package/src/Components/assets/button/microphone-close.svg +1 -0
- package/src/Components/assets/button/microphone-open.svg +1 -0
- package/src/Components/assets/button/mobile/down.svg +1 -0
- package/src/Components/assets/button/mobile/inviteUser.svg +1 -0
- package/src/Components/assets/button/mobile/minimize.svg +1 -0
- package/src/Components/assets/button/mobile/switch-camera.svg +1 -0
- package/src/Components/assets/button/mobile/up.svg +1 -0
- package/src/Components/assets/button/speaker-close.svg +1 -0
- package/src/Components/assets/button/speaker-open.svg +1 -0
- package/src/Components/assets/button/switch-audio.svg +1 -0
- package/src/Components/assets/common/arrows.svg +1 -0
- package/src/Components/assets/common/call.svg +1 -0
- package/src/Components/assets/common/close.svg +1 -0
- package/src/Components/assets/common/defaultAvatar.svg +1 -0
- package/src/Components/assets/common/loading-audio.svg +1 -0
- package/src/Components/assets/common/loading-video.png +0 -0
- package/src/Components/assets/common/microphone-volumn-close.svg +1 -0
- package/src/Components/assets/desktop/acceptAudio.svg +4 -0
- package/src/Components/assets/desktop/acceptVideo.svg +8 -0
- package/src/Components/assets/desktop/arrow.png +0 -0
- package/src/Components/assets/desktop/camera-false.svg +5 -0
- package/src/Components/assets/desktop/camera.svg +6 -0
- package/src/Components/assets/desktop/floatCallEnd.svg +3 -0
- package/src/Components/assets/desktop/floatFullScreen.svg +3 -0
- package/src/Components/assets/desktop/floatMicrophone.svg +4 -0
- package/src/Components/assets/desktop/floatMicrophoneClosed.svg +3 -0
- package/src/Components/assets/desktop/fullScreen.svg +4 -0
- package/src/Components/assets/desktop/hangup.svg +4 -0
- package/src/Components/assets/desktop/invite_user.svg +5 -0
- package/src/Components/assets/desktop/microphone-false.svg +8 -0
- package/src/Components/assets/desktop/microphone.svg +9 -0
- package/src/Components/assets/desktop/minimize.svg +6 -0
- package/src/Components/assets/desktop/permission/index.ts +11 -0
- package/src/Components/assets/desktop/permission/mac/permit-en.jpg +0 -0
- package/src/Components/assets/desktop/permission/mac/permit-zh.jpg +0 -0
- package/src/Components/assets/desktop/permission/win/permit-en.png +0 -0
- package/src/Components/assets/desktop/permission/win/permit-zh.png +0 -0
- package/src/Components/assets/desktop/switchScreen.svg +5 -0
- package/src/Components/assets/desktop/trans.svg +6 -0
- package/src/Components/assets/floatingWindow/desktop/floatCallEnd.svg +3 -0
- package/src/Components/assets/floatingWindow/desktop/floatFullScreen.svg +3 -0
- package/src/Components/assets/floatingWindow/desktop/floatMicrophone.svg +4 -0
- package/src/Components/assets/floatingWindow/desktop/floatMicrophoneClosed.svg +3 -0
- package/src/Components/assets/floatingWindow/mobile/camera-close.svg +1 -0
- package/src/Components/assets/floatingWindow/mobile/camera-open.svg +1 -0
- package/src/Components/assets/floatingWindow/mobile/earphone.svg +1 -0
- package/src/Components/assets/floatingWindow/mobile/microphone-close.svg +1 -0
- package/src/Components/assets/floatingWindow/mobile/microphone-open.svg +1 -0
- package/src/Components/assets/mobile/accept.png +0 -0
- package/src/Components/assets/mobile/audio-false.png +0 -0
- package/src/Components/assets/mobile/audio-true.png +0 -0
- package/src/Components/assets/mobile/camera-false.png +0 -0
- package/src/Components/assets/mobile/camera-true.png +0 -0
- package/src/Components/assets/mobile/default_avatar.png +0 -0
- package/src/Components/assets/mobile/hangup.png +0 -0
- package/src/Components/assets/mobile/loading.png +0 -0
- package/src/Components/assets/mobile/phone_dialing.mp3 +0 -0
- package/src/Components/assets/mobile/phone_ringing.mp3 +0 -0
- package/src/Components/assets/mobile/speaker-false.png +0 -0
- package/src/Components/assets/mobile/speaker-true.png +0 -0
- package/src/Components/assets/mobile/switch_camera.png +0 -0
- package/src/Components/assets/mobile/swtich-camera.png +0 -0
- package/src/Components/assets/mobile/trans.png +0 -0
- package/src/Components/assets/permission/desktop/index.ts +11 -0
- package/src/Components/assets/permission/desktop/mac/permit-en.jpg +0 -0
- package/src/Components/assets/permission/desktop/mac/permit-zh.jpg +0 -0
- package/src/Components/assets/permission/desktop/win/permit-en.png +0 -0
- package/src/Components/assets/permission/desktop/win/permit-zh.png +0 -0
- package/src/Components/assets/streamInfo/mobile/mic-off-h5.svg +1 -0
- package/src/Components/assets/streamInfo/mobile/mic-on-h5.svg +1 -0
- package/src/Components/assets/streamInfo/mobile/microphone-close-group.svg +1 -0
- package/src/Components/assets/streamInfo/mobile/microphone-close-single.svg +1 -0
- package/src/Components/assets/streamInfo/mobile/volumn.svg +1 -0
- package/src/Components/assets/streamInfo/networkStatus.png +0 -0
- package/src/Components/components/GroupCall/BackGround/BackGround.vue +20 -0
- package/src/Components/components/GroupCall/BtnOperate/BtnOperate.vue +116 -0
- package/src/Components/components/GroupCall/BtnOperate/style/desktop.scss +60 -0
- package/src/Components/components/GroupCall/BtnOperate/style/index.scss +2 -0
- package/src/Components/components/GroupCall/BtnOperate/style/mobile.scss +39 -0
- package/src/Components/components/GroupCall/GroupCall.vue +129 -0
- package/src/Components/components/GroupCall/InviteInfo/InviteInfo.vue +116 -0
- package/src/Components/components/GroupCall/InviteInfo/mobile/InviteCallee.vue +120 -0
- package/src/Components/components/GroupCall/MediaContainer/MediaContainer.vue +267 -0
- package/src/Components/components/GroupCall/MediaContainer/StreamLoading/StreamLoading.vue +22 -0
- package/src/Components/components/GroupCall/PusherPlayer/PusherPlayer.vue +67 -0
- package/src/Components/components/GroupCall/PusherPlayer/deskTop/RemoteStreamList.vue +483 -0
- package/src/Components/components/GroupCall/PusherPlayer/mobile/RemoteStreamList.vue +151 -0
- package/src/Components/components/GroupCall/PusherPlayer/wechat/RemoteStreamList.vue +299 -0
- package/src/Components/components/SingleCall/BtnOperate/BtnOperate.vue +126 -0
- package/src/Components/components/SingleCall/BtnOperate/style/desktop.scss +60 -0
- package/src/Components/components/SingleCall/BtnOperate/style/index.scss +2 -0
- package/src/Components/components/SingleCall/BtnOperate/style/mobile.scss +39 -0
- package/src/Components/components/SingleCall/InviteInfo/InviteInfo.vue +161 -0
- package/src/Components/components/SingleCall/InviteInfo/mobile/SingleAudio.vue +69 -0
- package/src/Components/components/SingleCall/InviteInfo/mobile/SingleVideo.vue +67 -0
- package/src/Components/components/SingleCall/InviteInfo/style/desktop.sass +0 -0
- package/src/Components/components/SingleCall/InviteInfo/style/mobile.sass +0 -0
- package/src/Components/components/SingleCall/MediaContainer/MediaContainer.vue +165 -0
- package/src/Components/components/SingleCall/PusherPlayer/PusherPlayer.vue +215 -0
- package/src/Components/components/SingleCall/PusherPlayer/WeChatStream.vue +53 -0
- package/src/Components/components/SingleCall/PusherPlayer/wechat/Player.vue +110 -0
- package/src/Components/components/SingleCall/PusherPlayer/wechat/Pusher.vue +113 -0
- package/src/Components/components/SingleCall/SingleCall.vue +28 -0
- package/src/Components/components/SingleCall/hooks/useGetLargeViewName.ts +32 -0
- package/src/Components/components/base/Avatar/Avatar.ts +38 -0
- package/src/Components/components/base/Avatar/Avatar.vue +53 -0
- package/src/Components/components/base/Avatar/style/Avatar.scss +40 -0
- package/src/Components/components/base/Button/Button.ts +60 -0
- package/src/Components/components/base/Button/Button.vue +61 -0
- package/src/Components/components/base/Button/style/Button.scss +42 -0
- package/src/Components/components/base/Grid/Grid.ts +26 -0
- package/src/Components/components/base/Grid/Grid.vue +40 -0
- package/src/Components/components/base/Grid/GridItem/GridItem.vue +81 -0
- package/src/Components/components/base/Grid/GridItem/style/GridItem.scss +13 -0
- package/src/Components/components/base/Icon/Icon.ts +9 -0
- package/src/Components/components/base/Icon/Icon.vue +21 -0
- package/src/Components/components/base/Layout/Col/Col.ts +23 -0
- package/src/Components/components/base/Layout/Col/Col.vue +46 -0
- package/src/Components/components/base/Layout/Col/style/Col.scss +9 -0
- package/src/Components/components/base/Layout/Row/Row.ts +23 -0
- package/src/Components/components/base/Layout/Row/Row.vue +38 -0
- package/src/Components/components/base/Layout/Row/style/Row.scss +10 -0
- package/src/Components/components/base/Layout/constant.ts +1 -0
- package/src/Components/components/base/Loading/Circle/Circle.ts +13 -0
- package/src/Components/components/base/Loading/Circle/Circle.vue +36 -0
- package/src/Components/components/base/Loading/Circle/style/Circle.scss +26 -0
- package/src/Components/components/base/Loading/Dot/Dot.ts +13 -0
- package/src/Components/components/base/Loading/Dot/Dot.vue +44 -0
- package/src/Components/components/base/Loading/Dot/style/Dot.scss +61 -0
- package/src/Components/components/base/Loading/Loading.ts +29 -0
- package/src/Components/components/base/Loading/Loading.vue +36 -0
- package/src/Components/components/base/Loading/style/Loading.scss +18 -0
- package/src/Components/components/base/Message/Message.ts +117 -0
- package/src/Components/components/base/Message/Message.vue +60 -0
- package/src/Components/components/base/Message/style/Message.scss +49 -0
- package/src/Components/components/base/MessageGroup/MessageGroup.vue +37 -0
- package/src/Components/components/base/Overlay/Overlay.ts +46 -0
- package/src/Components/components/base/Overlay/Overlay.vue +75 -0
- package/src/Components/components/base/Overlay/style/Overlay.scss +40 -0
- package/src/Components/components/base/Popover/Popover.ts +36 -0
- package/src/Components/components/base/Popover/Popover.vue +44 -0
- package/src/Components/components/base/Popover/PopoverWeb/PopoverWeb.vue +110 -0
- package/src/Components/components/base/Popover/PopoverWx/PopoverWx.vue +15 -0
- package/src/Components/components/base/Popover/style/Popover.scss +30 -0
- package/src/Components/components/base/Popover/utils/calculatePosition.ts +50 -0
- package/src/Components/components/base/Portal/Portal.ts +14 -0
- package/src/Components/components/base/Portal/Portal.vue +26 -0
- package/src/Components/components/base/Portal/miniprogram/Portal.vue +20 -0
- package/src/Components/components/base/Portal/vue2/Portal.vue +53 -0
- package/src/Components/components/base/Portal/vue3/Portal.vue +19 -0
- package/src/Components/components/base/TKImage/TKImage.ts +34 -0
- package/src/Components/components/base/TKImage/TKImage.vue +77 -0
- package/src/Components/components/base/TKImage/style/TKImage.scss +20 -0
- package/src/Components/components/base/TKText/TKText.ts +24 -0
- package/src/Components/components/base/TKText/TKText.vue +43 -0
- package/src/Components/components/base/TKText/style/TKText.scss +19 -0
- package/src/Components/components/base/ToggleWindow/ToggleWindow.ts +19 -0
- package/src/Components/components/base/ToggleWindow/ToggleWindow.vue +46 -0
- package/src/Components/components/base/ToggleWindow/ToggleWindowItem/ToggleWindowItem.ts +5 -0
- package/src/Components/components/base/ToggleWindow/ToggleWindowItem/ToggleWindowItem.vue +62 -0
- package/src/Components/components/base/ToggleWindow/ToggleWindowItem/style/ToggleWindowItem.scss +38 -0
- package/src/Components/components/base/ToggleWindow/constant.ts +1 -0
- package/src/Components/components/base/ToggleWindow/style/ToggleWindow.scss +7 -0
- package/src/Components/components/base/assets/message/close.svg +5 -0
- package/src/Components/components/base/assets/message/error.svg +1 -0
- package/src/Components/components/base/assets/message/info.svg +1 -0
- package/src/Components/components/base/assets/message/success.svg +1 -0
- package/src/Components/components/base/assets/message/warning.svg +1 -0
- package/src/Components/components/base/constants/index.ts +8 -0
- package/src/Components/components/base/hooks/useListenerEvent.ts +36 -0
- package/src/Components/components/base/hooks/useOnClickOutSide.ts +27 -0
- package/src/Components/components/base/styles/common.scss +43 -0
- package/src/Components/components/base/styles/var.scss +132 -0
- package/src/Components/components/base/util/checkEnv.ts +51 -0
- package/src/Components/components/base/util/checkVueVersion.ts +11 -0
- package/src/Components/components/base/util/classNames.ts +34 -0
- package/src/Components/components/base/util/filterObject.ts +11 -0
- package/src/Components/components/base/util/index.ts +10 -0
- package/src/Components/components/common/AudioStream/AudioStream.ts +29 -0
- package/src/Components/components/common/AudioStream/AudioStream.vue +65 -0
- package/src/Components/components/common/Button/Accept.vue +66 -0
- package/src/Components/components/common/Button/Camera.vue +115 -0
- package/src/Components/components/common/Button/FullScreen.vue +32 -0
- package/src/Components/components/common/Button/Hangup.vue +57 -0
- package/src/Components/components/common/Button/InviteUser.vue +52 -0
- package/src/Components/components/common/Button/Microphone.vue +109 -0
- package/src/Components/components/common/Button/Minimize.vue +41 -0
- package/src/Components/components/common/Button/Reject.vue +52 -0
- package/src/Components/components/common/Button/Speaker.vue +98 -0
- package/src/Components/components/common/Button/SwitchAudioCall.vue +86 -0
- package/src/Components/components/common/Button/SwitchCamera.vue +58 -0
- package/src/Components/components/common/Button/Timer.vue +19 -0
- package/src/Components/components/common/Button/ToggleButtonPanel.vue +44 -0
- package/src/Components/components/common/Button/ToggleSize.vue +50 -0
- package/src/Components/components/common/Button/VirtualBackground.vue +76 -0
- package/src/Components/components/common/Button/hooks/useConfig.ts +33 -0
- package/src/Components/components/common/Button/props/Button.ts +15 -0
- package/src/Components/components/common/Button/style/common.scss +5 -0
- package/src/Components/components/common/Button/style/desktop.scss +49 -0
- package/src/Components/components/common/Button/style/index.scss +2 -0
- package/src/Components/components/common/Button/style/mobile.scss +63 -0
- package/src/Components/components/common/ButtonPanel/ButtonPanel.vue +238 -0
- package/src/Components/components/common/ButtonPanel/config/InitConfig.ts +252 -0
- package/src/Components/components/common/ButtonPanel/config/VirtualBackgroundMobileConfig.ts +29 -0
- package/src/Components/components/common/ButtonPanel/hooks/useButtonPanelLayout.ts +63 -0
- package/src/Components/components/common/DeviceSelect/DeviceSelect.ts +11 -0
- package/src/Components/components/common/DeviceSelect/DeviceSelect.vue +158 -0
- package/src/Components/components/common/FloatWindow/FloatWindow.vue +68 -0
- package/src/Components/components/common/FloatWindow/desktop/FloatWindow.vue +106 -0
- package/src/Components/components/common/FloatWindow/mobile/FloatWindow.vue +28 -0
- package/src/Components/components/common/FloatWindow/mobile/FloatWindowGroupCall.vue +141 -0
- package/src/Components/components/common/FloatWindow/mobile/FloatWindowSingleCall.vue +109 -0
- package/src/Components/components/common/JoinGroupCard/JoinGroupCard.vue +51 -0
- package/src/Components/components/common/JoinGroupCard/desktop/JoinGroupCard.scss +80 -0
- package/src/Components/components/common/JoinGroupCard/desktop/JoinGroupCard.vue +57 -0
- package/src/Components/components/common/JoinGroupCard/mobile/JoinGroupCard.scss +60 -0
- package/src/Components/components/common/JoinGroupCard/mobile/JoinGroupCard.vue +65 -0
- package/src/Components/components/common/MicVolume/MicVolume.vue +37 -0
- package/src/Components/components/common/MicVolume/MicVolumeClosed.vue +11 -0
- package/src/Components/components/common/MicrophoneVolume/MicrophoneVolume.ts +10 -0
- package/src/Components/components/common/MicrophoneVolume/MicrophoneVolume.vue +61 -0
- package/src/Components/components/common/OverlayStream/OverlayStream.ts +102 -0
- package/src/Components/components/common/OverlayStream/OverlayStream.vue +108 -0
- package/src/Components/components/common/OverlayStream/style/OverlayStream.scss +12 -0
- package/src/Components/components/common/OverlayStream/style/mobile.scss +32 -0
- package/src/Components/components/common/OverlayStream/style/pc.scss +21 -0
- package/src/Components/components/common/PermitTip/CloseIcon.vue +3 -0
- package/src/Components/components/common/PermitTip/PermitTip.ts +37 -0
- package/src/Components/components/common/PermitTip/PermitTip.vue +62 -0
- package/src/Components/components/common/PermitTip/SystemPermitTip.vue +160 -0
- package/src/Components/components/common/Player/Player.ts +18 -0
- package/src/Components/components/common/Player/Player.vue +59 -0
- package/src/Components/components/common/Player/WeChatPlayer/WeChatPlayer.vue +101 -0
- package/src/Components/components/common/Player/WeChatPlayer/style/index.scss +38 -0
- package/src/Components/components/common/Popover/Popover.vue +85 -0
- package/src/Components/components/common/Pusher/Pusher.ts +18 -0
- package/src/Components/components/common/Pusher/Pusher.vue +78 -0
- package/src/Components/components/common/Pusher/WeChatPusher/WeChatPusher.vue +70 -0
- package/src/Components/components/common/Pusher/WeChatPusher/style/index.scss +37 -0
- package/src/Components/components/common/SelectUser/SelectUser.vue +74 -0
- package/src/Components/components/common/SelectUser/components/Dialog/TDialog.vue +94 -0
- package/src/Components/components/common/SelectUser/components/Dialog/style/color.css +43 -0
- package/src/Components/components/common/SelectUser/components/Dialog/style/dialog.css +3 -0
- package/src/Components/components/common/SelectUser/components/Dialog/style/h5.css +49 -0
- package/src/Components/components/common/SelectUser/components/Dialog/style/web.css +55 -0
- package/src/Components/components/common/SelectUser/components/Icon/TIcon.vue +44 -0
- package/src/Components/components/common/SelectUser/components/Icon/style/icon.css +6 -0
- package/src/Components/components/common/SelectUser/components/Transfer/TTransfer.vue +304 -0
- package/src/Components/components/common/SelectUser/components/Transfer/icon/back.svg +16 -0
- package/src/Components/components/common/SelectUser/components/Transfer/icon/cancel.svg +23 -0
- package/src/Components/components/common/SelectUser/components/Transfer/icon/selected.svg +27 -0
- package/src/Components/components/common/SelectUser/components/Transfer/style/color.css +64 -0
- package/src/Components/components/common/SelectUser/components/Transfer/style/h5.css +86 -0
- package/src/Components/components/common/SelectUser/components/Transfer/style/transfer.css +17 -0
- package/src/Components/components/common/SelectUser/components/Transfer/style/web.css +146 -0
- package/src/Components/components/common/SelectUser/index.ts +12 -0
- package/src/Components/components/common/Swiper/Swiper.vue +145 -0
- package/src/Components/components/common/Swiper/SwiperSlider.vue +55 -0
- package/src/Components/components/common/Swiper/index.ts +10 -0
- package/src/Components/components/common/Swiper/useSlide.ts +56 -0
- package/src/Components/components/common/Swiper/useSwiperSliders.ts +34 -0
- package/src/Components/components/common/SwiperWx/Swiper.vue +123 -0
- package/src/Components/components/common/SwiperWx/SwiperSlider.vue +87 -0
- package/src/Components/components/common/SwiperWx/index.ts +5 -0
- package/src/Components/components/common/SwiperWx/useSlide.ts +60 -0
- package/src/Components/components/common/SwiperWx/useSwiperSliders.ts +23 -0
- package/src/Components/components/common/TKStreamInfo/StreamInfo.ts +34 -0
- package/src/Components/components/common/TKStreamInfo/StreamInfoMobile.vue +82 -0
- package/src/Components/components/common/TKStreamInfo/StreamInfoPC.vue +58 -0
- package/src/Components/components/common/TKStreamInfo/TKStreamInfo.vue +47 -0
- package/src/Components/components/common/Timer/Timer.ts +14 -0
- package/src/Components/components/common/Timer/Timer.vue +24 -0
- package/src/Components/components/common/Tip/Tip.ts +5 -0
- package/src/Components/components/common/Tip/Tip.vue +67 -0
- package/src/Components/components/common/Toast/Toast.ts +87 -0
- package/src/Components/components/common/Toast/Toast.vue +133 -0
- package/src/Components/components/common/Toast/index.ts +6 -0
- package/src/Components/components/common/Toast/type.ts +16 -0
- package/src/Components/components/common/TopBar/TopBar.ts +8 -0
- package/src/Components/components/common/TopBar/TopBar.vue +120 -0
- package/src/Components/components/common/Waiting/Waiting.vue +126 -0
- package/src/Components/components/config/button/ClosedPanelUI.ts +109 -0
- package/src/Components/components/config/button/DefaultUI.ts +550 -0
- package/src/Components/components/config/button/index.ts +2 -0
- package/src/Components/context/ButtonPanelContext.ts +6 -0
- package/src/Components/context/CallInfoContext.ts +15 -0
- package/src/Components/context/CallerUserInfoContext.ts +9 -0
- package/src/Components/context/CustomUIConfigContext.ts +1 -0
- package/src/Components/context/FloatWindowContext.ts +5 -0
- package/src/Components/context/FocusItemContext.ts +1 -0
- package/src/Components/context/IsClickableContext.ts +1 -0
- package/src/Components/context/PopoverContext.ts +1 -0
- package/src/Components/context/TranslateContext.ts +1 -0
- package/src/Components/context/UserInfoContextExcludeVolume.ts +8 -0
- package/src/Components/context/index.ts +10 -0
- package/src/Components/hooks/index.ts +22 -0
- package/src/Components/hooks/useButtonPanelStatus.ts +6 -0
- package/src/Components/hooks/useCallDuration.ts +32 -0
- package/src/Components/hooks/useCallInfoContext.ts +6 -0
- package/src/Components/hooks/useCallerUserInfoContext.ts +6 -0
- package/src/Components/hooks/useCustomUI.ts +7 -0
- package/src/Components/hooks/useCustomUIButtonConfig.ts +96 -0
- package/src/Components/hooks/useDeviceList.ts +51 -0
- package/src/Components/hooks/useFloatWindowContext.ts +6 -0
- package/src/Components/hooks/useFocusContext.ts +6 -0
- package/src/Components/hooks/useGetVolumeMap.ts +59 -0
- package/src/Components/hooks/useGroupCallLayout.ts +142 -0
- package/src/Components/hooks/useIsClickableContext.ts +6 -0
- package/src/Components/hooks/useJoinGroupCall.ts +69 -0
- package/src/Components/hooks/useNetWorkStatus.ts +30 -0
- package/src/Components/hooks/usePlayer.ts +32 -0
- package/src/Components/hooks/usePopover.ts +6 -0
- package/src/Components/hooks/useTip.ts +42 -0
- package/src/Components/hooks/useTranslate.ts +7 -0
- package/src/Components/hooks/useUserInfoContextExcludeVolume.ts +6 -0
- package/src/Components/hooks/useViewBackgroundConfig.ts +12 -0
- package/src/Components/util/deepClone.ts +15 -0
- package/src/Components/util/findValues.ts +21 -0
- package/src/Components/util/index.ts +6 -0
- package/src/Components/util/isEmpty.ts +15 -0
- package/src/Components/util/isEqual.ts +40 -0
- package/src/Components/util/isObject.ts +3 -0
- package/src/Components/util/stringToPath.ts +78 -0
- package/src/Components/util/toggleScreen.ts +10 -0
- package/src/Components/util/uiConfig.ts +74 -0
- package/src/TUICallService/CallService/UIDesign.ts +174 -0
- package/src/TUICallService/CallService/bellContext.ts +88 -0
- package/src/TUICallService/CallService/chatCombine.ts +313 -0
- package/src/TUICallService/CallService/engineEventHandler.ts +404 -0
- package/src/TUICallService/CallService/index.ts +797 -0
- package/src/TUICallService/CallService/miniProgram.ts +65 -0
- package/src/TUICallService/CallService/utils.ts +281 -0
- package/src/TUICallService/TUIGlobal/tuiGlobal.ts +43 -0
- package/src/TUICallService/TUIStore/callStore.ts +93 -0
- package/src/TUICallService/TUIStore/tuiStore.ts +167 -0
- package/src/TUICallService/assets/phone_dialing.mp3 +0 -0
- package/src/TUICallService/assets/phone_ringing.mp3 +0 -0
- package/src/TUICallService/const/call.ts +157 -0
- package/src/TUICallService/const/error.ts +20 -0
- package/src/TUICallService/const/index.ts +103 -0
- package/src/TUICallService/const/log.ts +9 -0
- package/src/TUICallService/index.ts +37 -0
- package/src/TUICallService/interface/ICallService.ts +70 -0
- package/src/TUICallService/interface/ICallStore.ts +55 -0
- package/src/TUICallService/interface/ITUIGlobal.ts +36 -0
- package/src/TUICallService/interface/ITUIStore.ts +87 -0
- package/src/TUICallService/interface/index.ts +4 -0
- package/src/TUICallService/locales/en.ts +135 -0
- package/src/TUICallService/locales/index.ts +61 -0
- package/src/TUICallService/locales/ja_JP.ts +134 -0
- package/src/TUICallService/locales/zh-cn.ts +130 -0
- package/src/TUICallService/serve/callManager.ts +109 -0
- package/src/TUICallService/utils/common-utils.ts +269 -0
- package/src/TUICallService/utils/decorators/promise-retry.ts +51 -0
- package/src/TUICallService/utils/env.ts +51 -0
- package/src/TUICallService/utils/index.ts +32 -0
- package/src/TUICallService/utils/is-empty.ts +31 -0
- package/src/TUICallService/utils/retry.ts +88 -0
- package/src/TUICallService/utils/timer.ts +162 -0
- package/src/TUICallService/utils/validate/avoidRepeatedCall.ts +39 -0
- package/src/TUICallService/utils/validate/index.ts +7 -0
- package/src/TUICallService/utils/validate/validateConfig.ts +203 -0
- package/src/TUICallService/utils/validate/validateParams.ts +88 -0
- package/src/TUICallService/utils/validate/validateStatus.ts +26 -0
- package/src/adapter-vue.ts +4 -0
- package/src/index.ts +65 -0
- package/tuicall-uikit-vue2.es.js +12469 -0
- package/tuicall-uikit-vue2.umd.js +102 -0
- package/types/Components/assets/desktop/permission/index.d.ts +5 -0
- package/types/Components/assets/permission/desktop/index.d.ts +5 -0
- package/types/Components/components/SingleCall/hooks/useGetLargeViewName.d.ts +2 -0
- package/types/Components/components/base/Avatar/Avatar.d.ts +34 -0
- package/types/Components/components/base/Button/Button.d.ts +56 -0
- package/types/Components/components/base/Grid/Grid.d.ts +23 -0
- package/types/Components/components/base/Icon/Icon.d.ts +9 -0
- package/types/Components/components/base/Layout/Col/Col.d.ts +20 -0
- package/types/Components/components/base/Layout/Row/Row.d.ts +20 -0
- package/types/Components/components/base/Layout/constant.d.ts +1 -0
- package/types/Components/components/base/Loading/Circle/Circle.d.ts +13 -0
- package/types/Components/components/base/Loading/Dot/Dot.d.ts +13 -0
- package/types/Components/components/base/Loading/Loading.d.ts +26 -0
- package/types/Components/components/base/Message/Message.d.ts +50 -0
- package/types/Components/components/base/Overlay/Overlay.d.ts +45 -0
- package/types/Components/components/base/Popover/Popover.d.ts +34 -0
- package/types/Components/components/base/Popover/utils/calculatePosition.d.ts +4 -0
- package/types/Components/components/base/Portal/Portal.d.ts +14 -0
- package/types/Components/components/base/TKImage/TKImage.d.ts +33 -0
- package/types/Components/components/base/TKText/TKText.d.ts +24 -0
- package/types/Components/components/base/ToggleWindow/ToggleWindow.d.ts +18 -0
- package/types/Components/components/base/ToggleWindow/ToggleWindowItem/ToggleWindowItem.d.ts +5 -0
- package/types/Components/components/base/ToggleWindow/constant.d.ts +1 -0
- package/types/Components/components/base/constants/index.d.ts +7 -0
- package/types/Components/components/base/hooks/useListenerEvent.d.ts +13 -0
- package/types/Components/components/base/hooks/useOnClickOutSide.d.ts +1 -0
- package/types/Components/components/base/util/checkEnv.d.ts +10 -0
- package/types/Components/components/base/util/checkVueVersion.d.ts +4 -0
- package/types/Components/components/base/util/classNames.d.ts +1 -0
- package/types/Components/components/base/util/filterObject.d.ts +1 -0
- package/types/Components/components/base/util/index.d.ts +5 -0
- package/types/Components/components/common/AudioStream/AudioStream.d.ts +29 -0
- package/types/Components/components/common/Button/hooks/useConfig.d.ts +2 -0
- package/types/Components/components/common/Button/props/Button.d.ts +15 -0
- package/types/Components/components/common/ButtonPanel/config/InitConfig.d.ts +89 -0
- package/types/Components/components/common/ButtonPanel/config/VirtualBackgroundMobileConfig.d.ts +66 -0
- package/types/Components/components/common/ButtonPanel/hooks/useButtonPanelLayout.d.ts +4 -0
- package/types/Components/components/common/DeviceSelect/DeviceSelect.d.ts +11 -0
- package/types/Components/components/common/MicrophoneVolume/MicrophoneVolume.d.ts +10 -0
- package/types/Components/components/common/OverlayStream/OverlayStream.d.ts +92 -0
- package/types/Components/components/common/PermitTip/PermitTip.d.ts +3 -0
- package/types/Components/components/common/Player/Player.d.ts +18 -0
- package/types/Components/components/common/Pusher/Pusher.d.ts +18 -0
- package/types/Components/components/common/SelectUser/index.d.ts +6 -0
- package/types/Components/components/common/Swiper/index.d.ts +7 -0
- package/types/Components/components/common/Swiper/useSlide.d.ts +7 -0
- package/types/Components/components/common/Swiper/useSwiperSliders.d.ts +1 -0
- package/types/Components/components/common/SwiperWx/index.d.ts +4 -0
- package/types/Components/components/common/SwiperWx/useSlide.d.ts +9 -0
- package/types/Components/components/common/SwiperWx/useSwiperSliders.d.ts +1 -0
- package/types/Components/components/common/TKStreamInfo/StreamInfo.d.ts +34 -0
- package/types/Components/components/common/Timer/Timer.d.ts +14 -0
- package/types/Components/components/common/Tip/Tip.d.ts +5 -0
- package/types/Components/components/common/Toast/Toast.d.ts +4 -0
- package/types/Components/components/common/Toast/index.d.ts +2 -0
- package/types/Components/components/common/Toast/type.d.ts +16 -0
- package/types/Components/components/common/TopBar/TopBar.d.ts +8 -0
- package/types/Components/components/config/button/ClosedPanelUI.d.ts +3380 -0
- package/types/Components/components/config/button/DefaultUI.d.ts +14751 -0
- package/types/Components/components/config/button/index.d.ts +2 -0
- package/types/Components/context/ButtonPanelContext.d.ts +4 -0
- package/types/Components/context/CallInfoContext.d.ts +13 -0
- package/types/Components/context/CallerUserInfoContext.d.ts +8 -0
- package/types/Components/context/CustomUIConfigContext.d.ts +1 -0
- package/types/Components/context/FloatWindowContext.d.ts +4 -0
- package/types/Components/context/FocusItemContext.d.ts +1 -0
- package/types/Components/context/IsClickableContext.d.ts +1 -0
- package/types/Components/context/PopoverContext.d.ts +1 -0
- package/types/Components/context/TranslateContext.d.ts +1 -0
- package/types/Components/context/UserInfoContextExcludeVolume.d.ts +6 -0
- package/types/Components/context/index.d.ts +10 -0
- package/types/Components/hooks/index.d.ts +20 -0
- package/types/Components/hooks/useButtonPanelStatus.d.ts +2 -0
- package/types/Components/hooks/useCallDuration.d.ts +3 -0
- package/types/Components/hooks/useCallInfoContext.d.ts +2 -0
- package/types/Components/hooks/useCallerUserInfoContext.d.ts +2 -0
- package/types/Components/hooks/useCustomUI.d.ts +3 -0
- package/types/Components/hooks/useCustomUIButtonConfig.d.ts +1 -0
- package/types/Components/hooks/useDeviceList.d.ts +7 -0
- package/types/Components/hooks/useFloatWindowContext.d.ts +2 -0
- package/types/Components/hooks/useFocusContext.d.ts +1 -0
- package/types/Components/hooks/useGetVolumeMap.d.ts +1 -0
- package/types/Components/hooks/useGroupCallLayout.d.ts +1 -0
- package/types/Components/hooks/useIsClickableContext.d.ts +2 -0
- package/types/Components/hooks/useJoinGroupCall.d.ts +9 -0
- package/types/Components/hooks/useNetWorkStatus.d.ts +3 -0
- package/types/Components/hooks/usePlayer.d.ts +1 -0
- package/types/Components/hooks/usePopover.d.ts +2 -0
- package/types/Components/hooks/useTip.d.ts +5 -0
- package/types/Components/hooks/useTranslate.d.ts +2 -0
- package/types/Components/hooks/useUserInfoContextExcludeVolume.d.ts +2 -0
- package/types/Components/hooks/useViewBackgroundConfig.d.ts +1 -0
- package/types/Components/util/deepClone.d.ts +1 -0
- package/types/Components/util/findValues.d.ts +1 -0
- package/types/Components/util/index.d.ts +6 -0
- package/types/Components/util/isEmpty.d.ts +1 -0
- package/types/Components/util/isEqual.d.ts +1 -0
- package/types/Components/util/isObject.d.ts +1 -0
- package/types/Components/util/stringToPath.d.ts +12 -0
- package/types/Components/util/toggleScreen.d.ts +1 -0
- package/types/Components/util/uiConfig.d.ts +3 -0
- package/types/TUICallService/CallService/UIDesign.d.ts +28 -0
- package/types/TUICallService/CallService/bellContext.d.ts +19 -0
- package/types/TUICallService/CallService/chatCombine.d.ts +50 -0
- package/types/TUICallService/CallService/engineEventHandler.d.ts +35 -0
- package/types/TUICallService/CallService/index.d.ts +98 -0
- package/types/TUICallService/CallService/miniProgram.d.ts +7 -0
- package/types/TUICallService/CallService/utils.d.ts +42 -0
- package/types/TUICallService/TUIGlobal/tuiGlobal.d.ts +21 -0
- package/types/TUICallService/TUIStore/callStore.d.ts +10 -0
- package/types/TUICallService/TUIStore/tuiStore.d.ts +57 -0
- package/types/TUICallService/const/call.d.ts +141 -0
- package/types/TUICallService/const/error.d.ts +2 -0
- package/types/TUICallService/const/index.d.ts +27 -0
- package/types/TUICallService/const/log.d.ts +7 -0
- package/types/TUICallService/index.d.ts +5 -0
- package/types/TUICallService/interface/ICallService.d.ts +69 -0
- package/types/TUICallService/interface/ICallStore.d.ts +47 -0
- package/types/TUICallService/interface/ITUIGlobal.d.ts +36 -0
- package/types/TUICallService/interface/ITUIStore.d.ts +83 -0
- package/types/TUICallService/interface/index.d.ts +4 -0
- package/types/TUICallService/locales/en.d.ts +128 -0
- package/types/TUICallService/locales/index.d.ts +10 -0
- package/types/TUICallService/locales/ja_JP.d.ts +127 -0
- package/types/TUICallService/locales/zh-cn.d.ts +123 -0
- package/types/TUICallService/serve/callManager.d.ts +11 -0
- package/types/TUICallService/utils/common-utils.d.ts +62 -0
- package/types/TUICallService/utils/decorators/promise-retry.d.ts +32 -0
- package/types/TUICallService/utils/env.d.ts +10 -0
- package/types/TUICallService/utils/index.d.ts +2 -0
- package/types/TUICallService/utils/is-empty.d.ts +2 -0
- package/types/TUICallService/utils/retry.d.ts +36 -0
- package/types/TUICallService/utils/timer.d.ts +64 -0
- package/types/TUICallService/utils/validate/avoidRepeatedCall.d.ts +10 -0
- package/types/TUICallService/utils/validate/index.d.ts +2 -0
- package/types/TUICallService/utils/validate/validateConfig.d.ts +188 -0
- package/types/TUICallService/utils/validate/validateParams.d.ts +1 -0
- package/types/TUICallService/utils/validate/validateStatus.d.ts +5 -0
- package/types/adapter-vue.d.ts +2 -0
- package/types/index.d.ts +11 -0
- package/types/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export declare const ja_JP: {
|
|
2
|
+
hangup: string;
|
|
3
|
+
reject: string;
|
|
4
|
+
accept: string;
|
|
5
|
+
camera: string;
|
|
6
|
+
microphone: string;
|
|
7
|
+
speaker: string;
|
|
8
|
+
'virtual-background': string;
|
|
9
|
+
'other side reject call': string;
|
|
10
|
+
'reject call': string;
|
|
11
|
+
cancel: string;
|
|
12
|
+
'other side line busy': string;
|
|
13
|
+
'in busy': string;
|
|
14
|
+
'call timeout': string;
|
|
15
|
+
'end call': string;
|
|
16
|
+
'caller calling message': string;
|
|
17
|
+
'callee calling video message': string;
|
|
18
|
+
'callee calling audio message': string;
|
|
19
|
+
'no microphone access': string;
|
|
20
|
+
'no camera access': string;
|
|
21
|
+
'invite member': string;
|
|
22
|
+
'browser-authorization': string;
|
|
23
|
+
'mac-privacy': string;
|
|
24
|
+
'win-privacy': string;
|
|
25
|
+
'mac-preferences': string;
|
|
26
|
+
'win-preferences': string;
|
|
27
|
+
'Please enter userID': string;
|
|
28
|
+
'View more': string;
|
|
29
|
+
'people selected': string;
|
|
30
|
+
'Select all': string;
|
|
31
|
+
Cancel: string;
|
|
32
|
+
Done: string;
|
|
33
|
+
'exist group call': string;
|
|
34
|
+
"Video call": string;
|
|
35
|
+
"Voice call": string;
|
|
36
|
+
"Call End": string;
|
|
37
|
+
"Switch audio call": string;
|
|
38
|
+
"Switch video call": string;
|
|
39
|
+
"Call duration": string;
|
|
40
|
+
"Call Cancel": string;
|
|
41
|
+
"Other Side Cancel": string;
|
|
42
|
+
Decline: string;
|
|
43
|
+
"Other Side Decline": string;
|
|
44
|
+
"No answer": string;
|
|
45
|
+
"Other Side No Answer": string;
|
|
46
|
+
Answered: string;
|
|
47
|
+
"Other Side Line Busy": string;
|
|
48
|
+
"Line Busy": string;
|
|
49
|
+
'open camera': string;
|
|
50
|
+
'close camera': string;
|
|
51
|
+
'open microphone': string;
|
|
52
|
+
'close microphone': string;
|
|
53
|
+
'camera enabled': string;
|
|
54
|
+
'camera disabled': string;
|
|
55
|
+
'microphone enabled': string;
|
|
56
|
+
'microphone disabled': string;
|
|
57
|
+
'speaker enabled': string;
|
|
58
|
+
'speaker disabled': string;
|
|
59
|
+
'open speaker': string;
|
|
60
|
+
'close speaker': string;
|
|
61
|
+
'wait to be called': string;
|
|
62
|
+
answered: string;
|
|
63
|
+
'people in the call': string;
|
|
64
|
+
'failed to obtain speakers': string;
|
|
65
|
+
'you have a new call': string;
|
|
66
|
+
'switch camera': string;
|
|
67
|
+
join: string;
|
|
68
|
+
'people on the call': string;
|
|
69
|
+
"Supports a maximum of 9 people for simultaneous calls": string;
|
|
70
|
+
you: string;
|
|
71
|
+
"The network is poor during your current call": string;
|
|
72
|
+
"The other user network is poor during the current call": string;
|
|
73
|
+
"TUICallKit init is not complete": string;
|
|
74
|
+
timeout: string;
|
|
75
|
+
'kick out': string;
|
|
76
|
+
'Invited group call': string;
|
|
77
|
+
'Those involved': string;
|
|
78
|
+
call: string;
|
|
79
|
+
'video-call': string;
|
|
80
|
+
'audio-call': string;
|
|
81
|
+
search: string;
|
|
82
|
+
'search-result': string;
|
|
83
|
+
'Wechat scan right QR code': string;
|
|
84
|
+
'Use-phone-and-computer': string;
|
|
85
|
+
'Scan the QR code above': string;
|
|
86
|
+
'no-user': string;
|
|
87
|
+
'member-not-added': string;
|
|
88
|
+
'not-login': string;
|
|
89
|
+
'login-status-expire': string;
|
|
90
|
+
'experience-multi-call': string;
|
|
91
|
+
'not-support-multi-call': string;
|
|
92
|
+
'input-phone-userID': string;
|
|
93
|
+
userID: string;
|
|
94
|
+
'already-enter': string;
|
|
95
|
+
waiting: string;
|
|
96
|
+
'camera-opened': string;
|
|
97
|
+
'camera-closed': string;
|
|
98
|
+
'microphone-opened': string;
|
|
99
|
+
'microphone-closed': string;
|
|
100
|
+
'image-resolution': string;
|
|
101
|
+
'default-image-resolution': string;
|
|
102
|
+
'invited-person': string;
|
|
103
|
+
'video-to-audio': string;
|
|
104
|
+
me: string;
|
|
105
|
+
'be-rejected': string;
|
|
106
|
+
'be-no-response': string;
|
|
107
|
+
'be-line-busy': string;
|
|
108
|
+
'be-canceled': string;
|
|
109
|
+
'voice-call-end': string;
|
|
110
|
+
'video-call-end': string;
|
|
111
|
+
'method-call-failed': string;
|
|
112
|
+
'failed-to-obtain-permission': string;
|
|
113
|
+
'environment-detection-failed': string;
|
|
114
|
+
'switchToAudioCall-call-failed': string;
|
|
115
|
+
'switchToVideoCall-call-failed': string;
|
|
116
|
+
'microphone-unavailable': string;
|
|
117
|
+
'camera-unavailable': string;
|
|
118
|
+
'ban-device': string;
|
|
119
|
+
'not-supported-webrtc': string;
|
|
120
|
+
'blacklist-user-tips': string;
|
|
121
|
+
'is-already-calling': string;
|
|
122
|
+
'need-init': string;
|
|
123
|
+
"can't call yourself": string;
|
|
124
|
+
'accept-error': string;
|
|
125
|
+
'accept-device-error': string;
|
|
126
|
+
'call-error': string;
|
|
127
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export declare const zh: {
|
|
2
|
+
hangup: string;
|
|
3
|
+
reject: string;
|
|
4
|
+
accept: string;
|
|
5
|
+
camera: string;
|
|
6
|
+
microphone: string;
|
|
7
|
+
speaker: string;
|
|
8
|
+
'open camera': string;
|
|
9
|
+
'close camera': string;
|
|
10
|
+
'open microphone': string;
|
|
11
|
+
'close microphone': string;
|
|
12
|
+
'video-to-audio': string;
|
|
13
|
+
'virtual-background': string;
|
|
14
|
+
'other side reject call': string;
|
|
15
|
+
'reject call': string;
|
|
16
|
+
cancel: string;
|
|
17
|
+
'other side line busy': string;
|
|
18
|
+
'in busy': string;
|
|
19
|
+
'call timeout': string;
|
|
20
|
+
'end call': string;
|
|
21
|
+
'caller calling message': string;
|
|
22
|
+
'callee calling video message': string;
|
|
23
|
+
'callee calling audio message': string;
|
|
24
|
+
'no microphone access': string;
|
|
25
|
+
'no camera access': string;
|
|
26
|
+
'invite member': string;
|
|
27
|
+
'Invited group call': string;
|
|
28
|
+
'Those involved': string;
|
|
29
|
+
waiting: string;
|
|
30
|
+
me: string;
|
|
31
|
+
'browser-authorization': string;
|
|
32
|
+
'mac-privacy': string;
|
|
33
|
+
'win-privacy': string;
|
|
34
|
+
'mac-preferences': string;
|
|
35
|
+
'win-preferences': string;
|
|
36
|
+
'Please enter userID': string;
|
|
37
|
+
'View more': string;
|
|
38
|
+
'people selected': string;
|
|
39
|
+
'Select all': string;
|
|
40
|
+
Cancel: string;
|
|
41
|
+
Done: string;
|
|
42
|
+
'exist group call': string;
|
|
43
|
+
'camera enabled': string;
|
|
44
|
+
'camera disabled': string;
|
|
45
|
+
'microphone enabled': string;
|
|
46
|
+
'microphone disabled': string;
|
|
47
|
+
'speaker enabled': string;
|
|
48
|
+
'speaker disabled': string;
|
|
49
|
+
'open speaker': string;
|
|
50
|
+
'close speaker': string;
|
|
51
|
+
'wait to be called': string;
|
|
52
|
+
answered: string;
|
|
53
|
+
'people in the call': string;
|
|
54
|
+
'failed to obtain speakers': string;
|
|
55
|
+
'you have a new call': string;
|
|
56
|
+
'switch camera': string;
|
|
57
|
+
join: string;
|
|
58
|
+
'people on the call': string;
|
|
59
|
+
"Supports a maximum of 9 people for simultaneous calls": string;
|
|
60
|
+
you: string;
|
|
61
|
+
"The network is poor during your current call": string;
|
|
62
|
+
"The other user network is poor during the current call": string;
|
|
63
|
+
"TUICallKit init is not complete": string;
|
|
64
|
+
"Video call": string;
|
|
65
|
+
"Voice call": string;
|
|
66
|
+
"Call End": string;
|
|
67
|
+
"Switch voice call": string;
|
|
68
|
+
"Switch video call": string;
|
|
69
|
+
"Call duration": string;
|
|
70
|
+
"Call Cancel": string;
|
|
71
|
+
"Other Side Cancel": string;
|
|
72
|
+
Decline: string;
|
|
73
|
+
"Other Side Decline": string;
|
|
74
|
+
"No answer": string;
|
|
75
|
+
"Other Side No Answer": string;
|
|
76
|
+
Answered: string;
|
|
77
|
+
"Other Side Line Busy": string;
|
|
78
|
+
"Line Busy": string;
|
|
79
|
+
timeout: string;
|
|
80
|
+
'kick out': string;
|
|
81
|
+
call: string;
|
|
82
|
+
'video-call': string;
|
|
83
|
+
'audio-call': string;
|
|
84
|
+
search: string;
|
|
85
|
+
'search-result': string;
|
|
86
|
+
'Wechat scan right QR code': string;
|
|
87
|
+
'Use-phone-and-computer': string;
|
|
88
|
+
'Scan the QR code above': string;
|
|
89
|
+
'no-user': string;
|
|
90
|
+
'member-not-added': string;
|
|
91
|
+
'not-login': string;
|
|
92
|
+
'login-status-expire': string;
|
|
93
|
+
'experience-multi-call': string;
|
|
94
|
+
'not-support-multi-call': string;
|
|
95
|
+
'input-phone-userID': string;
|
|
96
|
+
userID: string;
|
|
97
|
+
'already-enter': string;
|
|
98
|
+
'image-resolution': string;
|
|
99
|
+
'default-image-resolution': string;
|
|
100
|
+
'invited-person': string;
|
|
101
|
+
'be-rejected': string;
|
|
102
|
+
'be-no-response': string;
|
|
103
|
+
'be-line-busy': string;
|
|
104
|
+
'be-canceled': string;
|
|
105
|
+
'voice-call-end': string;
|
|
106
|
+
'video-call-end': string;
|
|
107
|
+
'method-call-failed': string;
|
|
108
|
+
'failed-to-obtain-permission': string;
|
|
109
|
+
'environment-detection-failed': string;
|
|
110
|
+
'switchToAudioCall-call-failed': string;
|
|
111
|
+
'switchToVideoCall-call-failed': string;
|
|
112
|
+
'microphone-unavailable': string;
|
|
113
|
+
'camera-unavailable': string;
|
|
114
|
+
'ban-device': string;
|
|
115
|
+
'not-supported-webrtc': string;
|
|
116
|
+
'blacklist-user-tips': string;
|
|
117
|
+
'is-already-calling': string;
|
|
118
|
+
'need-init': string;
|
|
119
|
+
"can't call yourself": string;
|
|
120
|
+
'accept-error': string;
|
|
121
|
+
'accept-device-error': string;
|
|
122
|
+
'call-error': string;
|
|
123
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class CallManager {
|
|
2
|
+
private _globalCallPagePath;
|
|
3
|
+
init(params: any): Promise<void>;
|
|
4
|
+
private _watchTUIStore;
|
|
5
|
+
private _unwatchTUIStore;
|
|
6
|
+
private _handleCallStatusChange;
|
|
7
|
+
private _handleCallStatusToCalling;
|
|
8
|
+
private _handleCallStatusToIdle;
|
|
9
|
+
getRoute(): any;
|
|
10
|
+
destroyed(): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const isUndefined: (input: any) => boolean;
|
|
2
|
+
export declare const isPlainObject: (input: any) => boolean;
|
|
3
|
+
export declare const isArray: (input: any) => boolean;
|
|
4
|
+
export declare const isPrivateKey: (key: string) => boolean;
|
|
5
|
+
export declare const isUrl: (url: string) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* 检测input类型是否为string
|
|
8
|
+
* @param {*} input 任意类型的输入
|
|
9
|
+
* @returns {Boolean} true->string / false->not a string
|
|
10
|
+
*/
|
|
11
|
+
export declare const isString: (input: any) => boolean;
|
|
12
|
+
export declare const isBoolean: (input: any) => boolean;
|
|
13
|
+
export declare const isNumber: (input: any) => boolean;
|
|
14
|
+
export declare function formatTime(secondTime: number): string;
|
|
15
|
+
export declare function formatTimeInverse(stringTime: string): number;
|
|
16
|
+
export declare function isJSON(str: string): boolean;
|
|
17
|
+
export declare const JSONToObject: (str: string) => any;
|
|
18
|
+
/**
|
|
19
|
+
* 重试函数, catch 时,重试
|
|
20
|
+
* @param {Promise} promise 需重试的函数
|
|
21
|
+
* @param {number} num 需要重试的次数
|
|
22
|
+
* @param {number} time 间隔时间(s)
|
|
23
|
+
* @returns {Promise<any>} im 接口的 response 原样返回
|
|
24
|
+
*/
|
|
25
|
+
export declare const retryPromise: (promise: Promise<any>, num?: number, time?: number) => Promise<any>;
|
|
26
|
+
/**
|
|
27
|
+
* web call engine 重复调用时的错误, 这种错误在 TUICallKit 应该忽略
|
|
28
|
+
* @param {any} error 错误信息
|
|
29
|
+
* @returns {Boolean}
|
|
30
|
+
*/
|
|
31
|
+
export declare function handleRepeatedCallError(error: any): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 设备无权限时的错误处理
|
|
34
|
+
* @param {any} error 错误信息
|
|
35
|
+
* @returns {Boolean}
|
|
36
|
+
*/
|
|
37
|
+
export declare function handleNoDevicePermissionError(error: any): boolean;
|
|
38
|
+
export declare function performanceNow(): number;
|
|
39
|
+
/**
|
|
40
|
+
* 检测input类型是否为function
|
|
41
|
+
* @param {*} input 任意类型的输入
|
|
42
|
+
* @returns {Boolean} true->input is a function
|
|
43
|
+
*/
|
|
44
|
+
export declare const isFunction: (input: any) => boolean;
|
|
45
|
+
export declare const getLanguage: () => string;
|
|
46
|
+
export declare function noop(e: any): void;
|
|
47
|
+
/**
|
|
48
|
+
* Get the object type string
|
|
49
|
+
* @param {*} input 任意类型的输入
|
|
50
|
+
* @returns {String} the object type string
|
|
51
|
+
*/
|
|
52
|
+
export declare const getType: (input: any) => any;
|
|
53
|
+
export declare function modifyObjectKey(obj: any, oldKey: any, newKey: any): any;
|
|
54
|
+
/**
|
|
55
|
+
* interpolate function
|
|
56
|
+
* @param {string} str - 'hello {{name}}'
|
|
57
|
+
* @param {object} data - { name: 'sam' }
|
|
58
|
+
* @returns {string} 'hello sam'
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
export declare function interpolate(str: any, data: any): any;
|
|
62
|
+
export declare function initBrowserCloseDetection(callback: Function): void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 异步函数重试 Interface
|
|
3
|
+
* @param {number} [retries = 5] 重试次数
|
|
4
|
+
* @param {number} [timeout = 2000] 重试间隔时间
|
|
5
|
+
* @param {Function=} onError 重试错误回调
|
|
6
|
+
* @param {Function=} onRetrying 重试回调
|
|
7
|
+
* @param {Function=} onRetryFailed 重试失败回调
|
|
8
|
+
*/
|
|
9
|
+
interface IPromiseRetryDecoratorSettings {
|
|
10
|
+
retries?: number;
|
|
11
|
+
timeout?: number;
|
|
12
|
+
onError?: Function;
|
|
13
|
+
onRetrying?: Function;
|
|
14
|
+
onRetryFailed?: Function;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 装饰器函数:给异步函数增加重试
|
|
18
|
+
* @param {Object} settings 入参
|
|
19
|
+
* @returns {Function}
|
|
20
|
+
* @example
|
|
21
|
+
* class LocalStream {
|
|
22
|
+
* @promiseRetryDecorator({
|
|
23
|
+
* retries: 10,
|
|
24
|
+
* timeout: 3000,
|
|
25
|
+
* onRetryFailed: function(error) {
|
|
26
|
+
* }
|
|
27
|
+
* })
|
|
28
|
+
* async recoverCapture(options) {}
|
|
29
|
+
* }
|
|
30
|
+
*/
|
|
31
|
+
export default function promiseRetryDecorator(settings: IPromiseRetryDecoratorSettings): (target: any, name: any, descriptor: any) => any;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const IN_WX_MINI_APP: boolean;
|
|
2
|
+
export declare const IN_UNI_NATIVE_APP: boolean;
|
|
3
|
+
export declare const IN_MINI_APP: boolean;
|
|
4
|
+
export declare const IN_UNI_APP: boolean;
|
|
5
|
+
export declare const IN_BROWSER: boolean;
|
|
6
|
+
export declare const APP_NAMESPACE: any;
|
|
7
|
+
export declare const IS_H5: boolean;
|
|
8
|
+
export declare const IS_PC: boolean;
|
|
9
|
+
export declare const IS_WIN: any;
|
|
10
|
+
export declare const IS_MAC: any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 给异步函数封装重试逻辑
|
|
3
|
+
* @param {Object} options 重试逻辑入参
|
|
4
|
+
* @param {Object} options.retryFunction 需要封装的异步函数
|
|
5
|
+
* @param {Object} options.settings 重试属性
|
|
6
|
+
* @param {Number} [options.settings.retries = 5] 重试次数
|
|
7
|
+
* @param {Number} [options.settings.timeout = 1000] 重试间隔
|
|
8
|
+
* @param {onErrorCallback} options.onError 重试错误回调
|
|
9
|
+
* @param {onRetryingCallback} [options.onRetrying] 重试后的回调
|
|
10
|
+
* @param {Object} options.context 上下文,可选
|
|
11
|
+
* @returns {Function} 封装后的函数
|
|
12
|
+
* @example
|
|
13
|
+
* const getUserMedia = promiseRetry({
|
|
14
|
+
* retryFunction: getUserMedia_,
|
|
15
|
+
* settings: { retries: 5, timeout: 2000 },
|
|
16
|
+
* onError: (error, retry, reject) => {
|
|
17
|
+
* if (error.name === 'NotReadableError') {
|
|
18
|
+
* retry();
|
|
19
|
+
* } else {
|
|
20
|
+
* reject(error);
|
|
21
|
+
* }
|
|
22
|
+
* },
|
|
23
|
+
* onRetrying: retryCount => {
|
|
24
|
+
* console.warn(`getUserMedia NotReadableError observed, retrying [${retryCount}/5]`);
|
|
25
|
+
* }
|
|
26
|
+
* });
|
|
27
|
+
*/
|
|
28
|
+
declare function promiseRetry({ retryFunction, settings, onError, onRetrying, onRetryFailed, context }: {
|
|
29
|
+
retryFunction: any;
|
|
30
|
+
settings: any;
|
|
31
|
+
onError: any;
|
|
32
|
+
onRetrying: any;
|
|
33
|
+
onRetryFailed: any;
|
|
34
|
+
context: any;
|
|
35
|
+
}): (...args: any[]) => Promise<unknown>;
|
|
36
|
+
export default promiseRetry;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* 定时器,功能:
|
|
4
|
+
* 1. 支持定时执行回调 [1,n] 次,用于常规延迟、定时操作
|
|
5
|
+
* @example
|
|
6
|
+
* // 默认嵌套执行,count=0 无限次
|
|
7
|
+
* timer.run(callback, {delay: 2000});
|
|
8
|
+
* // count=1 等同于 原始setTimeout
|
|
9
|
+
* timer.run(callback, {delay: 2000, count:0});
|
|
10
|
+
* 2. 支持 RAF 执行回调,用于小流渲染,audio音量获取等任务,需要渲染频率稳定,支持页面退后台后,用 setTimeout 接管,最短 1s 执行一次
|
|
11
|
+
* @example
|
|
12
|
+
* // 默认60fps,可以根据单位时长换算,默认开启后台执行
|
|
13
|
+
* timer.run('raf', callback, {fps: 60});
|
|
14
|
+
* // 设置执行次数
|
|
15
|
+
* timer.run('raf', callback, {fps: 60, count: 300, backgroundTask: false});
|
|
16
|
+
* 3. 支持空闲任务执行回调, requestIdleCallback 在帧渲染的空闲时间执行任务,可以用于 storage 写入等低优先级的任务
|
|
17
|
+
* @example
|
|
18
|
+
* // 支持原生setInterval 但不推荐使用,定时任务推荐用 timeout
|
|
19
|
+
* timer.run('interval', callback, {delay:2000, count:10})
|
|
20
|
+
*/
|
|
21
|
+
declare class Timer {
|
|
22
|
+
static taskMap: Map<any, any>;
|
|
23
|
+
static currentTaskID: number;
|
|
24
|
+
static generateTaskID(): number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @param {string} taskName 'interval' 'timeout'
|
|
28
|
+
* @param {function} callback
|
|
29
|
+
* @param {object} options include:
|
|
30
|
+
* @param {number} options.delay millisecond
|
|
31
|
+
* @param {number} options.count 定时器回调执行次数,0 无限次 or n次
|
|
32
|
+
* @param {boolean} options.backgroundTask 在页面静默后是否继续执行定时器
|
|
33
|
+
*/
|
|
34
|
+
static run(taskName: any, callback: any, options: any): any;
|
|
35
|
+
/**
|
|
36
|
+
* 定时循环执行回调函数
|
|
37
|
+
* 可以指定循环的时间间隔
|
|
38
|
+
* 可以指定循环次数
|
|
39
|
+
* @param {object} taskItem
|
|
40
|
+
* @param {function} callback
|
|
41
|
+
* @param {*} delay
|
|
42
|
+
* @param {*} count
|
|
43
|
+
* @returns ID
|
|
44
|
+
*/
|
|
45
|
+
static interval(taskItem: any): NodeJS.Timer;
|
|
46
|
+
/**
|
|
47
|
+
* 延迟执行回调
|
|
48
|
+
* count = 0,循环
|
|
49
|
+
* count = n, 执行n次
|
|
50
|
+
* @param {object} taskItem
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
static timeout(taskItem: any): NodeJS.Timeout;
|
|
54
|
+
static hasTask(taskID: any): boolean;
|
|
55
|
+
static clearTask(taskID: any): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* 1. 如果已移除出定时队列,退出当前任务
|
|
58
|
+
* 2. 如果当前任务已满足次数限制,则退出当前任务
|
|
59
|
+
* @param {object} taskItem
|
|
60
|
+
* @returns
|
|
61
|
+
*/
|
|
62
|
+
static isBreakLoop(taskItem: any): boolean;
|
|
63
|
+
}
|
|
64
|
+
export default Timer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 装饰器:阻止函数重复调用
|
|
3
|
+
* @export
|
|
4
|
+
* @param {Object} options 入参
|
|
5
|
+
* @param {Function} options.fn 函数
|
|
6
|
+
* @param {Object} options.context 上下文对象
|
|
7
|
+
* @param {String} options.name 函数名
|
|
8
|
+
* @returns {Function} 封装后的函数
|
|
9
|
+
*/
|
|
10
|
+
export declare function avoidRepeatedCall(): (target: any, name: string, descriptor: any) => any;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { VideoResolution, VideoDisplayMode } from "../../const/index";
|
|
2
|
+
export declare const VALIDATE_PARAMS: {
|
|
3
|
+
init: {
|
|
4
|
+
SDKAppID: {
|
|
5
|
+
required: boolean;
|
|
6
|
+
rules: any[];
|
|
7
|
+
allowEmpty: boolean;
|
|
8
|
+
};
|
|
9
|
+
userID: {
|
|
10
|
+
required: boolean;
|
|
11
|
+
rules: any[];
|
|
12
|
+
allowEmpty: boolean;
|
|
13
|
+
};
|
|
14
|
+
userSig: {
|
|
15
|
+
required: boolean;
|
|
16
|
+
rules: any[];
|
|
17
|
+
allowEmpty: boolean;
|
|
18
|
+
};
|
|
19
|
+
tim: {
|
|
20
|
+
required: boolean;
|
|
21
|
+
rules: any[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
call: {
|
|
25
|
+
userID: {
|
|
26
|
+
required: boolean;
|
|
27
|
+
rules: any[];
|
|
28
|
+
allowEmpty: boolean;
|
|
29
|
+
};
|
|
30
|
+
type: {
|
|
31
|
+
required: boolean;
|
|
32
|
+
rules: any[];
|
|
33
|
+
range: number[];
|
|
34
|
+
allowEmpty: boolean;
|
|
35
|
+
};
|
|
36
|
+
roomID: {
|
|
37
|
+
required: boolean;
|
|
38
|
+
rules: any[];
|
|
39
|
+
range: string;
|
|
40
|
+
allowEmpty: boolean;
|
|
41
|
+
};
|
|
42
|
+
strRoomID: {
|
|
43
|
+
required: boolean;
|
|
44
|
+
rules: any[];
|
|
45
|
+
allowEmpty: boolean;
|
|
46
|
+
};
|
|
47
|
+
userData: {
|
|
48
|
+
required: boolean;
|
|
49
|
+
rules: any[];
|
|
50
|
+
allowEmpty: boolean;
|
|
51
|
+
};
|
|
52
|
+
timeout: {
|
|
53
|
+
required: boolean;
|
|
54
|
+
rules: any[];
|
|
55
|
+
allowEmpty: boolean;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
groupCall: {
|
|
59
|
+
userIDList: {
|
|
60
|
+
required: boolean;
|
|
61
|
+
rules: any[];
|
|
62
|
+
allowEmpty: boolean;
|
|
63
|
+
};
|
|
64
|
+
type: {
|
|
65
|
+
required: boolean;
|
|
66
|
+
rules: any[];
|
|
67
|
+
range: number[];
|
|
68
|
+
allowEmpty: boolean;
|
|
69
|
+
};
|
|
70
|
+
groupID: {
|
|
71
|
+
required: boolean;
|
|
72
|
+
rules: any[];
|
|
73
|
+
allowEmpty: boolean;
|
|
74
|
+
};
|
|
75
|
+
roomID: {
|
|
76
|
+
required: boolean;
|
|
77
|
+
rules: any[];
|
|
78
|
+
range: string;
|
|
79
|
+
allowEmpty: boolean;
|
|
80
|
+
};
|
|
81
|
+
strRoomID: {
|
|
82
|
+
required: boolean;
|
|
83
|
+
rules: any[];
|
|
84
|
+
allowEmpty: boolean;
|
|
85
|
+
};
|
|
86
|
+
timeout: {
|
|
87
|
+
required: boolean;
|
|
88
|
+
rules: any[];
|
|
89
|
+
allowEmpty: boolean;
|
|
90
|
+
};
|
|
91
|
+
userData: {
|
|
92
|
+
required: boolean;
|
|
93
|
+
rules: any[];
|
|
94
|
+
allowEmpty: boolean;
|
|
95
|
+
};
|
|
96
|
+
offlinePushInfo: {
|
|
97
|
+
required: boolean;
|
|
98
|
+
rules: any[];
|
|
99
|
+
allowEmpty: boolean;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
joinInGroupCall: {
|
|
103
|
+
type: {
|
|
104
|
+
required: boolean;
|
|
105
|
+
rules: any[];
|
|
106
|
+
range: number[];
|
|
107
|
+
allowEmpty: boolean;
|
|
108
|
+
};
|
|
109
|
+
groupID: {
|
|
110
|
+
required: boolean;
|
|
111
|
+
rules: any[];
|
|
112
|
+
allowEmpty: boolean;
|
|
113
|
+
};
|
|
114
|
+
roomID: {
|
|
115
|
+
required: boolean;
|
|
116
|
+
rules: any[];
|
|
117
|
+
allowEmpty: boolean;
|
|
118
|
+
};
|
|
119
|
+
strRoomID: {
|
|
120
|
+
required: boolean;
|
|
121
|
+
rules: any[];
|
|
122
|
+
allowEmpty: boolean;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
inviteUser: {
|
|
126
|
+
userIDList: {
|
|
127
|
+
required: boolean;
|
|
128
|
+
rules: any[];
|
|
129
|
+
allowEmpty: boolean;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
setSelfInfo: {
|
|
133
|
+
nickName: {
|
|
134
|
+
required: boolean;
|
|
135
|
+
rules: any[];
|
|
136
|
+
allowEmpty: boolean;
|
|
137
|
+
};
|
|
138
|
+
avatar: {
|
|
139
|
+
required: boolean;
|
|
140
|
+
rules: any[];
|
|
141
|
+
allowEmpty: boolean;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
enableFloatWindow: {
|
|
145
|
+
key: string;
|
|
146
|
+
required: boolean;
|
|
147
|
+
rules: any[];
|
|
148
|
+
allowEmpty: boolean;
|
|
149
|
+
}[];
|
|
150
|
+
enableAIVoice: {
|
|
151
|
+
key: string;
|
|
152
|
+
required: boolean;
|
|
153
|
+
rules: any[];
|
|
154
|
+
allowEmpty: boolean;
|
|
155
|
+
}[];
|
|
156
|
+
enableMuteMode: {
|
|
157
|
+
key: string;
|
|
158
|
+
required: boolean;
|
|
159
|
+
rules: any[];
|
|
160
|
+
allowEmpty: boolean;
|
|
161
|
+
}[];
|
|
162
|
+
setCallingBell: {
|
|
163
|
+
key: string;
|
|
164
|
+
required: boolean;
|
|
165
|
+
rules: any[];
|
|
166
|
+
allowEmpty: boolean;
|
|
167
|
+
}[];
|
|
168
|
+
setLanguage: {
|
|
169
|
+
key: string;
|
|
170
|
+
required: boolean;
|
|
171
|
+
rules: any[];
|
|
172
|
+
allowEmpty: boolean;
|
|
173
|
+
}[];
|
|
174
|
+
setVideoDisplayMode: {
|
|
175
|
+
key: string;
|
|
176
|
+
required: boolean;
|
|
177
|
+
rules: any[];
|
|
178
|
+
range: VideoDisplayMode[];
|
|
179
|
+
allowEmpty: boolean;
|
|
180
|
+
}[];
|
|
181
|
+
setVideoResolution: {
|
|
182
|
+
key: string;
|
|
183
|
+
required: boolean;
|
|
184
|
+
rules: any[];
|
|
185
|
+
range: VideoResolution[];
|
|
186
|
+
allowEmpty: boolean;
|
|
187
|
+
}[];
|
|
188
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function paramValidate(config: any): (target: any, propertyName: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|