fcr-ui-scene 3.4.5 → 3.5.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/lib/base.js +4 -1
- package/lib/creator.d.ts +4 -1
- package/lib/creator.js +66 -3
- package/lib/electron/app.js +0 -3
- package/lib/electron/bootstrap-dev.js +2 -0
- package/lib/electron/bootstrap-sdk.js +2 -0
- package/lib/electron/main.js +14 -3
- package/lib/electron/plugins/devtool-shortcut.js +5 -0
- package/lib/electron/plugins/screenshot.js +4 -1
- package/lib/modules/action-bar/components/apps/app-item/index.css +3 -3
- package/lib/modules/action-bar/components/apps/app-item/index.js +35 -24
- package/lib/modules/action-bar/components/apps/app-list.d.ts +3 -0
- package/lib/modules/action-bar/components/apps/app-list.js +45 -0
- package/lib/modules/action-bar/components/apps/index.css +1 -0
- package/lib/modules/action-bar/components/apps/index.js +7 -4
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +10 -2
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +10 -6
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +1 -1
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +2 -2
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +1 -1
- package/lib/modules/action-bar/components/apps/useInterpreter.js +6 -6
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +1 -1
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +2 -2
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +10 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.js +38 -0
- package/lib/modules/action-bar/components/chat/index.css +8 -0
- package/lib/modules/action-bar/components/chat/index.js +2 -1
- package/lib/modules/action-bar/components/collapse/index.d.ts +8 -6
- package/lib/modules/action-bar/components/collapse/index.js +60 -74
- package/lib/modules/action-bar/components/interpreter/index.js +3 -3
- package/lib/modules/action-bar/components/item/index.js +1 -1
- package/lib/modules/action-bar/components/more/index.js +13 -7
- package/lib/modules/action-bar/components/notification-bar/index.d.ts +1 -1
- package/lib/modules/action-bar/components/notification-bar/index.js +13 -6
- package/lib/modules/action-bar/components/participants/index.js +1 -1
- package/lib/modules/action-bar/components/screen-share/index.js +1 -1
- package/lib/modules/action-bar/components/screen-share/submenu.js +55 -18
- package/lib/modules/action-bar/components/security/index.js +8 -2
- package/lib/modules/action-bar/components/trigger-output-language/index.js +68 -55
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +35 -18
- package/lib/modules/action-bar/index.css +8 -0
- package/lib/modules/action-bar/index.d.ts +8 -0
- package/lib/modules/action-bar/index.js +6 -3
- package/lib/modules/action-bar/store.d.ts +37 -22
- package/lib/modules/action-bar/store.js +275 -375
- package/lib/modules/action-bar/types.d.ts +8 -13
- package/lib/modules/action-bar/view.js +3 -8
- package/lib/modules/audio-stream/index.d.ts +6 -1
- package/lib/modules/audio-stream/index.js +77 -11
- package/lib/modules/chat/chat-room-store.d.ts +4 -7
- package/lib/modules/chat/chat-room-store.js +39 -62
- package/lib/modules/chat/components/chat-action/index.js +2 -2
- package/lib/modules/chat/components/chat-bar/index.css +4 -0
- package/lib/modules/chat/components/chat-bar/index.d.ts +1 -1
- package/lib/modules/chat/components/chat-bar/index.js +18 -16
- package/lib/modules/chat/components/chat-select/index.js +16 -147
- package/lib/modules/chat/components/chat-select/select-input/index.d.ts +7 -0
- package/lib/modules/chat/components/chat-select/select-input/index.js +35 -0
- package/lib/modules/chat/components/chat-select/select-item/index.d.ts +12 -0
- package/lib/modules/chat/components/chat-select/select-item/index.js +153 -0
- package/lib/modules/chat/components/chat-tabs/index.d.ts +2 -0
- package/lib/modules/chat/components/chat-tabs/index.js +61 -0
- package/lib/modules/chat/components/message-list/chat-empty/index.d.ts +2 -0
- package/lib/modules/chat/components/message-list/chat-empty/index.js +26 -0
- package/lib/modules/chat/components/message-list/history-unread-message-button/index.d.ts +7 -0
- package/lib/modules/chat/components/message-list/history-unread-message-button/index.js +55 -0
- package/lib/modules/chat/components/message-list/index.d.ts +1 -1
- package/lib/modules/chat/components/message-list/index.js +55 -359
- package/lib/modules/chat/components/message-list/message-item/index.d.ts +15 -0
- package/lib/modules/chat/components/message-list/message-item/index.js +309 -0
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.d.ts +9 -0
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +67 -0
- package/lib/modules/chat/index.css +9 -0
- package/lib/modules/chat/index.d.ts +6 -0
- package/lib/modules/chat/index.js +4 -1
- package/lib/modules/chat/store.d.ts +17 -7
- package/lib/modules/chat/store.js +75 -72
- package/lib/modules/chat/types.d.ts +7 -7
- package/lib/modules/chat/types.js +2 -1
- package/lib/modules/chat/view.js +22 -102
- package/lib/modules/components/device-control/store.d.ts +4 -3
- package/lib/modules/components/device-control/store.js +13 -24
- package/lib/modules/components/leave-meeting/components/assign-host.js +17 -2
- package/lib/modules/components/leave-meeting/index.js +8 -7
- package/lib/modules/components/leave-meeting/store.d.ts +15 -7
- package/lib/modules/components/leave-meeting/store.js +116 -95
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +6 -0
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +36 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +40 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +170 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +11 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +105 -0
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.d.ts +9 -0
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +42 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +11 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +157 -0
- package/lib/modules/components/member-window/components/member-actions/components/share-status.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +34 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +16 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +130 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +12 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +57 -0
- package/lib/modules/components/member-window/components/member-actions/index.d.ts +3 -0
- package/lib/modules/components/member-window/components/member-actions/index.js +122 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +24 -0
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +21 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +77 -0
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +48 -0
- package/lib/modules/components/member-window/components/member-actions/store.js +307 -0
- package/lib/modules/components/member-window/components/member-board.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-board.js +63 -0
- package/lib/modules/components/member-window/components/mic-volume.d.ts +2 -0
- package/lib/modules/components/member-window/components/mic-volume.js +23 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +4 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +40 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +8 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +62 -0
- package/lib/modules/components/member-window/components/video-player/index.d.ts +9 -0
- package/lib/modules/components/member-window/components/video-player/index.js +38 -0
- package/lib/modules/components/member-window/index.css +22 -2
- package/lib/modules/components/member-window/index.d.ts +10 -75
- package/lib/modules/components/member-window/index.js +20 -738
- package/lib/modules/components/member-window/types.d.ts +79 -0
- package/lib/modules/components/member-window/types.js +6 -0
- package/lib/modules/components/security-menu/index.css +0 -2
- package/lib/modules/components/security-menu/index.d.ts +5 -1
- package/lib/modules/components/security-menu/index.js +37 -59
- package/lib/modules/connection-gateway/index.d.ts +6 -0
- package/lib/modules/connection-gateway/index.js +4 -1
- package/lib/modules/connection-gateway/store.d.ts +12 -3
- package/lib/modules/connection-gateway/store.js +29 -27
- package/lib/modules/control-bar/components/meeting-details/index.js +11 -17
- package/lib/modules/control-bar/components/more-actions/index.js +5 -4
- package/lib/modules/control-bar/components/share-state-nav/index.js +22 -10
- package/lib/modules/control-bar/index.css +1 -2
- package/lib/modules/control-bar/index.d.ts +14 -0
- package/lib/modules/control-bar/index.js +10 -4
- package/lib/modules/control-bar/store.d.ts +40 -20
- package/lib/modules/control-bar/store.js +156 -191
- package/lib/modules/control-bar/view.js +65 -25
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +1 -1
- package/lib/modules/dialog/components/control-bar/index.d.ts +1 -1
- package/lib/modules/dialog/components/control-bar/index.js +43 -43
- package/lib/modules/dialog/components/device-setting/index.js +2 -1
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +3 -2
- package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -0
- package/lib/modules/dialog/components/dialog-container/index.js +19 -13
- package/lib/modules/dialog/components/live-streaming/index.js +4 -2
- package/lib/modules/dialog/components/participant/index.js +2 -2
- package/lib/modules/dialog/components/share-screen-selection/index.js +3 -1
- package/lib/modules/dialog/components/system-preference/assets/bg1.png +0 -0
- package/lib/modules/dialog/components/system-preference/assets/bg2.png +0 -0
- package/lib/modules/dialog/components/system-preference/assets/fcr_png_host.png +0 -0
- package/lib/modules/dialog/components/system-preference/electron.js +6 -6
- package/lib/modules/dialog/components/system-preference/index.css +3 -0
- package/lib/modules/dialog/components/system-preference/index.d.ts +17 -2
- package/lib/modules/dialog/components/system-preference/index.js +47 -55
- package/lib/modules/dialog/components/video-window/index.d.ts +1 -1
- package/lib/modules/dialog/components/video-window/index.js +216 -101
- package/lib/modules/dialog/components/widget/electron.d.ts +5 -0
- package/lib/modules/dialog/components/widget/electron.js +37 -0
- package/lib/modules/dialog/components/widget/index.d.ts +6 -0
- package/lib/modules/dialog/components/widget/index.js +43 -0
- package/lib/modules/dialog/hooks/useElectron.d.ts +7 -0
- package/lib/modules/dialog/hooks/useElectron.js +226 -28
- package/lib/modules/dialog/index.css +1 -11
- package/lib/modules/dialog/index.d.ts +9 -6
- package/lib/modules/dialog/index.js +12 -12
- package/lib/modules/dialog/store.d.ts +26 -10
- package/lib/modules/dialog/store.js +151 -82
- package/lib/modules/dialog/type.d.ts +84 -0
- package/lib/modules/dialog/type.js +6 -0
- package/lib/modules/dialog/view.d.ts +1 -4
- package/lib/modules/dialog/view.js +12 -9
- package/lib/modules/event-confirm/index.css +11 -0
- package/lib/modules/event-confirm/index.d.ts +6 -0
- package/lib/modules/event-confirm/index.js +3 -2
- package/lib/modules/event-confirm/store.d.ts +10 -4
- package/lib/modules/event-confirm/store.js +91 -32
- package/lib/modules/event-confirm/view.js +63 -24
- package/lib/modules/event-toast/store.js +4 -2
- package/lib/modules/interpreter/action/edit-btn/index.js +5 -5
- package/lib/modules/interpreter/action/switch-btn/index.js +7 -7
- package/lib/modules/interpreter/index.d.ts +5 -1
- package/lib/modules/interpreter/index.js +4 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -3
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +6 -5
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/index.js +2 -2
- package/lib/modules/interpreter/store.d.ts +8 -5
- package/lib/modules/interpreter/store.js +90 -39
- package/lib/modules/interpreter/type.d.ts +5 -1
- package/lib/modules/interpreter/utils.d.ts +0 -1
- package/lib/modules/interpreter/utils.js +2 -23
- package/lib/modules/interpreter/view.js +2 -6
- package/lib/modules/invite/index.d.ts +4 -0
- package/lib/modules/invite/index.js +3 -1
- package/lib/modules/invite/store.d.ts +11 -2
- package/lib/modules/invite/store.js +27 -4
- package/lib/modules/layout/components/Aside.js +1 -1
- package/lib/modules/layout/components/Carousel.js +36 -14
- package/lib/modules/layout/components/Gallery.js +33 -11
- package/lib/modules/layout/index.css +2 -2
- package/lib/modules/layout/index.d.ts +6 -0
- package/lib/modules/layout/index.js +4 -1
- package/lib/modules/layout/store.d.ts +23 -10
- package/lib/modules/layout/store.js +185 -163
- package/lib/modules/layout/type.d.ts +2 -0
- package/lib/modules/live-streaming/index.d.ts +2 -0
- package/lib/modules/live-streaming/index.js +2 -2
- package/lib/modules/live-streaming/store.d.ts +4 -8
- package/lib/modules/live-streaming/store.js +9 -19
- package/lib/modules/notification/index.css +17 -0
- package/lib/modules/notification/store.js +4 -2
- package/lib/modules/notification/view.js +7 -2
- package/lib/modules/offscreen-pulling/index.d.ts +1 -0
- package/lib/modules/offscreen-pulling/index.js +4 -0
- package/lib/modules/participant/components/confirm-input/index.d.ts +6 -0
- package/lib/modules/participant/components/confirm-input/index.js +50 -0
- package/lib/modules/participant/components/mute-all/index.d.ts +3 -7
- package/lib/modules/participant/components/mute-all/index.js +21 -33
- package/lib/modules/participant/components/participants/components/footer/components/buttons.d.ts +6 -0
- package/lib/modules/participant/components/participants/components/footer/components/buttons.js +52 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +60 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +166 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +28 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +13 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +242 -0
- package/lib/modules/participant/components/participants/components/footer/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/index.js +48 -0
- package/lib/modules/participant/components/participants/components/merge/index.d.ts +11 -0
- package/lib/modules/participant/components/participants/components/merge/index.js +49 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +191 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +4 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +204 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +49 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +219 -0
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +70 -0
- package/lib/modules/participant/components/participants/components/participants/index.css +104 -0
- package/lib/modules/participant/components/participants/components/participants/index.d.ts +3 -0
- package/lib/modules/participant/components/participants/components/participants/index.js +110 -0
- package/lib/modules/participant/components/participants/components/render-tab/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/render-tab/index.js +49 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.d.ts +3 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +48 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.d.ts +6 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +28 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.d.ts +7 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +39 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +69 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +135 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.d.ts +7 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +31 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +12 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +82 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.d.ts +4 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +26 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +75 -0
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/render-user/index.js +21 -0
- package/lib/modules/participant/components/participants/index.js +18 -112
- package/lib/modules/participant/components/participants/types.d.ts +96 -0
- package/lib/modules/participant/components/participants/types.js +37 -0
- package/lib/modules/participant/index.css +3 -0
- package/lib/modules/participant/index.d.ts +12 -0
- package/lib/modules/participant/index.js +7 -1
- package/lib/modules/participant/member-list-data-source.d.ts +2 -2
- package/lib/modules/participant/member-list-data-source.js +11 -17
- package/lib/modules/participant/store.d.ts +44 -37
- package/lib/modules/participant/store.js +527 -536
- package/lib/modules/participant/type.d.ts +2 -9
- package/lib/modules/pc-audio-connect/store.d.ts +1 -1
- package/lib/modules/pc-audio-connect/store.js +9 -6
- package/lib/modules/setting/audio-settings/audio-settings.js +5 -4
- package/lib/modules/setting/audio-settings/index.css +11 -2
- package/lib/modules/setting/config.js +1 -1
- package/lib/modules/setting/store.d.ts +1 -0
- package/lib/modules/setting/store.js +20 -2
- package/lib/modules/setting/video-settings/index.css +12 -17
- package/lib/modules/setting/video-settings/video-settings-basic.js +40 -44
- package/lib/modules/share-screen/components/selection/index.js +70 -80
- package/lib/modules/share-screen/index.d.ts +6 -1
- package/lib/modules/share-screen/index.js +4 -1
- package/lib/modules/share-screen/store.d.ts +37 -33
- package/lib/modules/share-screen/store.js +330 -438
- package/lib/modules/sound-effect/sound-effect-player.d.ts +0 -4
- package/lib/modules/sound-effect/sound-effect-player.js +4 -4
- package/lib/modules/state-bar/index.css +2 -15
- package/lib/modules/state-bar/index.d.ts +10 -0
- package/lib/modules/state-bar/index.js +6 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -17
- package/lib/modules/state-bar/meeting-details.js +12 -24
- package/lib/modules/state-bar/meeting-time.js +5 -10
- package/lib/modules/state-bar/store.d.ts +31 -8
- package/lib/modules/state-bar/store.js +146 -100
- package/lib/modules/state-bar/view.js +63 -32
- package/lib/modules/video-window/components/deviceState/index.d.ts +7 -0
- package/lib/modules/video-window/components/deviceState/index.js +75 -0
- package/lib/modules/video-window/components/members/index.css +51 -0
- package/lib/modules/video-window/components/members/index.d.ts +2 -0
- package/lib/modules/video-window/components/members/index.js +131 -0
- package/lib/modules/video-window/components/speaking/index.css +86 -0
- package/lib/modules/video-window/components/speaking/index.d.ts +3 -0
- package/lib/modules/video-window/components/speaking/index.js +48 -0
- package/lib/modules/video-window/components/topControl/index.css +35 -0
- package/lib/modules/video-window/components/topControl/index.d.ts +3 -0
- package/lib/modules/video-window/components/topControl/index.js +79 -0
- package/lib/modules/video-window/index.d.ts +7 -0
- package/lib/modules/video-window/index.js +14 -20
- package/lib/modules/video-window/store.d.ts +19 -88
- package/lib/modules/video-window/store.js +98 -365
- package/lib/modules/video-window/type.d.ts +40 -4
- package/lib/modules/video-window/type.js +4 -4
- package/lib/modules/video-window/view.js +11 -23
- package/lib/modules/whiteboard/index.d.ts +1 -0
- package/lib/modules/whiteboard/index.js +7 -4
- package/lib/modules/widget/index.css +17 -0
- package/lib/modules/widget/index.d.ts +10 -0
- package/lib/modules/widget/index.js +114 -0
- package/lib/modules/widget/sdk.d.ts +30 -0
- package/lib/modules/widget/sdk.js +224 -0
- package/lib/modules/widget/store.d.ts +14 -0
- package/lib/modules/widget/store.js +28 -0
- package/lib/modules/widget/type.d.ts +156 -0
- package/lib/modules/widget/type.js +6 -0
- package/lib/modules/widget/view.d.ts +2 -0
- package/lib/modules/widget/view.js +47 -0
- package/lib/modules/widget/web-widget.d.ts +29 -0
- package/lib/modules/widget/web-widget.js +234 -0
- package/lib/providers/ability-provider.d.ts +24 -0
- package/lib/providers/ability-provider.js +38 -0
- package/lib/providers/chat-provider.d.ts +16 -9
- package/lib/providers/chat-provider.js +76 -8
- package/lib/providers/device-privilege-provider.d.ts +5 -1
- package/lib/providers/device-privilege-provider.js +21 -1
- package/lib/providers/device-provider.js +5 -2
- package/lib/providers/device-stream-provider.d.ts +15 -3
- package/lib/providers/device-stream-provider.js +118 -34
- package/lib/providers/dialog-provider.d.ts +9 -8
- package/lib/providers/dialog-provider.js +8 -4
- package/lib/providers/event-provider.js +4 -2
- package/lib/providers/interpreter-provider.d.ts +7 -26
- package/lib/providers/interpreter-provider.js +473 -706
- package/lib/providers/local-storage-provider.d.ts +6 -1
- package/lib/providers/local-storage-provider.js +15 -2
- package/lib/providers/message-provider.js +4 -2
- package/lib/providers/phone-audio-provider.js +24 -18
- package/lib/providers/privilege-provider.d.ts +13 -12
- package/lib/providers/privilege-provider.js +19 -11
- package/lib/providers/renderer-provider.d.ts +5 -0
- package/lib/providers/renderer-provider.js +8 -1
- package/lib/providers/room-provider.d.ts +7 -17
- package/lib/providers/room-provider.js +113 -161
- package/lib/providers/screen-share-provider.d.ts +19 -0
- package/lib/providers/screen-share-provider.js +102 -10
- package/lib/providers/widget-provider.d.ts +52 -0
- package/lib/providers/widget-provider.js +171 -0
- package/lib/scenes/main-scene.d.ts +11 -0
- package/lib/scenes/main-scene.js +60 -33
- package/lib/scenes/waiting-scene.d.ts +9 -0
- package/lib/scenes/waiting-scene.js +27 -26
- package/lib/schema.d.ts +114 -0
- package/lib/schema.js +77 -0
- package/lib/shared-data-source/chat-data.d.ts +11 -0
- package/lib/shared-data-source/chat-data.js +17 -6
- package/lib/shared-data-source/interpreter.d.ts +34 -21
- package/lib/shared-data-source/interpreter.js +104 -103
- package/lib/shared-data-source/meeting-time.d.ts +68 -0
- package/lib/shared-data-source/meeting-time.js +299 -0
- package/lib/shared-data-source/member-data.d.ts +126 -0
- package/lib/shared-data-source/member-data.js +451 -0
- package/lib/shared-data-source/pin-data.d.ts +8 -4
- package/lib/shared-data-source/pin-data.js +92 -4
- package/lib/shared-data-source/security-data.d.ts +35 -0
- package/lib/shared-data-source/security-data.js +156 -0
- package/lib/shared-data-source/setting.d.ts +3 -1
- package/lib/shared-data-source/setting.js +12 -1
- package/lib/shared-data-source/video-window.d.ts +7 -8
- package/lib/shared-data-source/video-window.js +97 -94
- package/lib/shared-data-source/waiting-room.d.ts +29 -2
- package/lib/shared-data-source/waiting-room.js +103 -39
- package/lib/translations/enUS.d.ts +25 -12
- package/lib/translations/enUS.js +47 -68
- package/lib/translations/zhCN.d.ts +26 -12
- package/lib/translations/zhCN.js +63 -83
- package/lib/type.d.ts +64 -48
- package/lib/type.js +14 -1
- package/lib/ui-manager.d.ts +3 -2
- package/lib/ui-manager.js +8 -7
- package/lib/ui-scene.d.ts +7 -1
- package/lib/ui-scene.js +187 -97
- package/lib/utilities/constant.d.ts +7 -3
- package/lib/utilities/constant.js +4 -0
- package/lib/utilities/default-config.d.ts +5 -1
- package/lib/utilities/default-config.js +28 -2
- package/lib/utilities/logger.d.ts +8 -0
- package/lib/utilities/logger.js +42 -0
- package/lib/utilities/meeting-detail.js +11 -10
- package/lib/utilities/parameters.d.ts +4 -0
- package/lib/utilities/parameters.js +13 -1
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +4 -1
- package/lib/utilities/tools.d.ts +7 -6
- package/lib/utilities/tools.js +2 -6
- package/lib/utilities/validate-params.d.ts +2 -0
- package/lib/utilities/validate-params.js +16 -0
- package/lib/waiting-room-control-manager.d.ts +28 -0
- package/lib/waiting-room-control-manager.js +212 -0
- package/lib/widget-sdk.d.ts +2 -0
- package/lib/widget-sdk.js +13 -0
- package/package.json +7 -6
- package/public/index.html +12 -6
|
@@ -80,7 +80,6 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
80
80
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
81
81
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
82
82
|
var _type = require("fcr-core/lib/type");
|
|
83
|
-
var _logger = require("agora-foundation/lib/logger");
|
|
84
83
|
var _mobx = require("mobx");
|
|
85
84
|
var _store = require("../setting/store");
|
|
86
85
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
@@ -89,8 +88,10 @@ var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
|
89
88
|
var _type2 = require("fcr-core/lib/room-control/type");
|
|
90
89
|
var _react = require("react");
|
|
91
90
|
var _view = require("../layout/view");
|
|
91
|
+
var _logger = require("../../utilities/logger");
|
|
92
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
92
93
|
var _StateBarStore;
|
|
93
|
-
var _initProto, _init_networkStatus,
|
|
94
|
+
var _initProto, _init_networkStatus, _init_roomInfo, _init_isLiveStreaming, _init_liveStreamingPlayUrl, _init_galleryWidth, _init_browserWidth, _init_networkStats, _init_attendeeCount, _init_asideOpenedItem, _init_cloudRecordingState, _setNetworkStatusDecs, _setRoomInfoDecs, _stopLiveStreamingDialogDecs, _uiEventsDecs, _setBrowserWidthDecs, _onNetworkStatsUpdatedDecs, _onLiveStreamingStateUpdatedDecs, _ref;
|
|
94
95
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
95
96
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
96
97
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -112,14 +113,10 @@ var _G = /*#__PURE__*/new WeakMap();
|
|
|
112
113
|
var _H = /*#__PURE__*/new WeakMap();
|
|
113
114
|
var _I = /*#__PURE__*/new WeakMap();
|
|
114
115
|
var _J = /*#__PURE__*/new WeakMap();
|
|
115
|
-
|
|
116
|
-
var _L = /*#__PURE__*/new WeakMap();
|
|
117
|
-
var _M = /*#__PURE__*/new WeakMap();
|
|
118
|
-
_ref = (_setNetworkStatusDecs = [_mobx.action, _mobx.action.bound], _setLocalUserDecs = [_mobx.action, _mobx.action.bound], _setRoomInfoDecs = [_mobx.action, _mobx.action.bound], _setScheduleInfoDecs = [_mobx.action, _mobx.action.bound], _stopLiveStreamingDialogDecs = [_mobx.action, _mobx.action.bound], _uiEventsDecs = [_mobx.action, _mobx.action.bound], _setBrowserWidthDecs = [_mobx.action, _mobx.action.bound], _onNetworkStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
116
|
+
_ref = (_setNetworkStatusDecs = [_mobx.action, _mobx.action.bound], _setRoomInfoDecs = [_mobx.action, _mobx.action.bound], _stopLiveStreamingDialogDecs = [_mobx.action, _mobx.action.bound], _uiEventsDecs = [_mobx.action, _mobx.action.bound], _setBrowserWidthDecs = [_mobx.action, _mobx.action.bound], _onNetworkStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
119
117
|
var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
120
118
|
function StateBarStore(_ref2) {
|
|
121
|
-
var _this
|
|
122
|
-
_this = this;
|
|
119
|
+
var _this = this;
|
|
123
120
|
var roomControl = _ref2.roomControl,
|
|
124
121
|
uiEventStore = _ref2.uiEventStore,
|
|
125
122
|
securityStore = _ref2.securityStore,
|
|
@@ -127,9 +124,16 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
127
124
|
parameters = _ref2.parameters,
|
|
128
125
|
sharedLayoutDataSource = _ref2.sharedLayoutDataSource,
|
|
129
126
|
roomProvider = _ref2.roomProvider,
|
|
130
|
-
sharedVideoWindowDataSource = _ref2.sharedVideoWindowDataSource
|
|
127
|
+
sharedVideoWindowDataSource = _ref2.sharedVideoWindowDataSource,
|
|
128
|
+
messageProvider = _ref2.messageProvider,
|
|
129
|
+
sharedMemberDataSource = _ref2.sharedMemberDataSource,
|
|
130
|
+
localStorageProvider = _ref2.localStorageProvider,
|
|
131
|
+
abilityProvider = _ref2.abilityProvider,
|
|
132
|
+
sharedMeetingTimeDataSource = _ref2.sharedMeetingTimeDataSource;
|
|
131
133
|
(0, _classCallCheck2["default"])(this, StateBarStore);
|
|
132
|
-
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.
|
|
134
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
135
|
+
prefix: 'StateBarStore'
|
|
136
|
+
})));
|
|
133
137
|
(0, _defineProperty2["default"])(this, "_disposer", []);
|
|
134
138
|
(0, _defineProperty2["default"])(this, "_roomObserver", {
|
|
135
139
|
onNetworkQualityUpdated: this._onNetworkQualityUpdated.bind(this),
|
|
@@ -138,24 +142,21 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
138
142
|
onCloudRecordingStateUpdated: this._onCloudRecordingStateUpdated.bind(this)
|
|
139
143
|
});
|
|
140
144
|
_classPrivateFieldInitSpec(this, _A, _init_networkStatus(this, 'unknown'));
|
|
141
|
-
_classPrivateFieldInitSpec(this, _B,
|
|
142
|
-
_classPrivateFieldInitSpec(this, _C,
|
|
143
|
-
_classPrivateFieldInitSpec(this, _D,
|
|
144
|
-
_classPrivateFieldInitSpec(this, _E,
|
|
145
|
-
_classPrivateFieldInitSpec(this, _F,
|
|
146
|
-
_classPrivateFieldInitSpec(this, _G,
|
|
147
|
-
_classPrivateFieldInitSpec(this, _H, _init_browserWidth(this, window.innerWidth));
|
|
148
|
-
_classPrivateFieldInitSpec(this, _I, _init_networkStats(this, {
|
|
145
|
+
_classPrivateFieldInitSpec(this, _B, _init_roomInfo(this, undefined));
|
|
146
|
+
_classPrivateFieldInitSpec(this, _C, _init_isLiveStreaming(this, false));
|
|
147
|
+
_classPrivateFieldInitSpec(this, _D, _init_liveStreamingPlayUrl(this, ''));
|
|
148
|
+
_classPrivateFieldInitSpec(this, _E, _init_galleryWidth(this, window.innerWidth));
|
|
149
|
+
_classPrivateFieldInitSpec(this, _F, _init_browserWidth(this, window.innerWidth));
|
|
150
|
+
_classPrivateFieldInitSpec(this, _G, _init_networkStats(this, {
|
|
149
151
|
uplinkPacketLossRate: '-',
|
|
150
152
|
downlinkPacketLossRate: '-',
|
|
151
153
|
networkDelay: '-'
|
|
152
154
|
}));
|
|
153
|
-
_classPrivateFieldInitSpec(this,
|
|
154
|
-
_classPrivateFieldInitSpec(this,
|
|
155
|
+
_classPrivateFieldInitSpec(this, _H, _init_attendeeCount(this));
|
|
156
|
+
_classPrivateFieldInitSpec(this, _I, _init_asideOpenedItem(this, new Set()));
|
|
155
157
|
// @observable accessor layoutSize: number;
|
|
156
158
|
// @observable accessor layoutView: 'speaker' | 'gallery' = 'gallery';
|
|
157
|
-
_classPrivateFieldInitSpec(this,
|
|
158
|
-
_classPrivateFieldInitSpec(this, _M, _init_meetingId(this, undefined));
|
|
159
|
+
_classPrivateFieldInitSpec(this, _J, _init_cloudRecordingState(this, _type.FcrRecordingState.Stopped));
|
|
159
160
|
this._config = config;
|
|
160
161
|
this._roomControl = roomControl;
|
|
161
162
|
this._uiEventStore = uiEventStore;
|
|
@@ -163,9 +164,17 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
163
164
|
this._roomProvider = roomProvider;
|
|
164
165
|
this.attendeeCount = 0;
|
|
165
166
|
this.isLiveStreaming = this._roomControl.getLiveStreamingState() === _type.FcrLiveStreamingState.STARTED;
|
|
167
|
+
if (this.isLiveStreaming) {
|
|
168
|
+
this.liveStreamingPlayUrl = this._roomControl.getLiveStreamingConfig().pullStreamingUrl;
|
|
169
|
+
}
|
|
166
170
|
this._sharedLayoutDataSource = sharedLayoutDataSource;
|
|
167
171
|
this._sharedVideoWindowDataSource = sharedVideoWindowDataSource;
|
|
172
|
+
this._sharedMeetingTimeDataSource = sharedMeetingTimeDataSource;
|
|
173
|
+
this._messageProvider = messageProvider;
|
|
174
|
+
this._sharedMemberDataSource = sharedMemberDataSource;
|
|
175
|
+
this._localStorageProvider = localStorageProvider;
|
|
168
176
|
this._roomControl.addObserver(this._roomObserver);
|
|
177
|
+
this._abilityProvider = abilityProvider;
|
|
169
178
|
this._uiEventStore.addObserver({
|
|
170
179
|
onEvent: this._uiEvents.bind(this)
|
|
171
180
|
});
|
|
@@ -173,7 +182,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
173
182
|
this.toggleLayout = this.toggleLayout.bind(this);
|
|
174
183
|
this.toggleLayoutBarLock = this.toggleLayoutBarLock.bind(this);
|
|
175
184
|
this.openVideoWindowDialog = this.openVideoWindowDialog.bind(this);
|
|
176
|
-
this.
|
|
185
|
+
this.cloudRecordingState = this._roomControl.getCloudRecordingState();
|
|
177
186
|
this._initRoomInfo();
|
|
178
187
|
var resizeHandler = this._setBrowserWidth();
|
|
179
188
|
window.addEventListener('resize', resizeHandler);
|
|
@@ -211,7 +220,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
211
220
|
_classPrivateFieldSet(_A, this, v);
|
|
212
221
|
}
|
|
213
222
|
}, {
|
|
214
|
-
key: "
|
|
223
|
+
key: "roomInfo",
|
|
215
224
|
get: function get() {
|
|
216
225
|
return _classPrivateFieldGet(_B, this);
|
|
217
226
|
},
|
|
@@ -219,7 +228,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
219
228
|
_classPrivateFieldSet(_B, this, v);
|
|
220
229
|
}
|
|
221
230
|
}, {
|
|
222
|
-
key: "
|
|
231
|
+
key: "isLiveStreaming",
|
|
223
232
|
get: function get() {
|
|
224
233
|
return _classPrivateFieldGet(_C, this);
|
|
225
234
|
},
|
|
@@ -227,7 +236,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
227
236
|
_classPrivateFieldSet(_C, this, v);
|
|
228
237
|
}
|
|
229
238
|
}, {
|
|
230
|
-
key: "
|
|
239
|
+
key: "liveStreamingPlayUrl",
|
|
231
240
|
get: function get() {
|
|
232
241
|
return _classPrivateFieldGet(_D, this);
|
|
233
242
|
},
|
|
@@ -235,7 +244,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
235
244
|
_classPrivateFieldSet(_D, this, v);
|
|
236
245
|
}
|
|
237
246
|
}, {
|
|
238
|
-
key: "
|
|
247
|
+
key: "galleryWidth",
|
|
239
248
|
get: function get() {
|
|
240
249
|
return _classPrivateFieldGet(_E, this);
|
|
241
250
|
},
|
|
@@ -243,7 +252,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
243
252
|
_classPrivateFieldSet(_E, this, v);
|
|
244
253
|
}
|
|
245
254
|
}, {
|
|
246
|
-
key: "
|
|
255
|
+
key: "browserWidth",
|
|
247
256
|
get: function get() {
|
|
248
257
|
return _classPrivateFieldGet(_F, this);
|
|
249
258
|
},
|
|
@@ -251,7 +260,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
251
260
|
_classPrivateFieldSet(_F, this, v);
|
|
252
261
|
}
|
|
253
262
|
}, {
|
|
254
|
-
key: "
|
|
263
|
+
key: "networkStats",
|
|
255
264
|
get: function get() {
|
|
256
265
|
return _classPrivateFieldGet(_G, this);
|
|
257
266
|
},
|
|
@@ -259,7 +268,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
259
268
|
_classPrivateFieldSet(_G, this, v);
|
|
260
269
|
}
|
|
261
270
|
}, {
|
|
262
|
-
key: "
|
|
271
|
+
key: "attendeeCount",
|
|
263
272
|
get: function get() {
|
|
264
273
|
return _classPrivateFieldGet(_H, this);
|
|
265
274
|
},
|
|
@@ -267,7 +276,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
267
276
|
_classPrivateFieldSet(_H, this, v);
|
|
268
277
|
}
|
|
269
278
|
}, {
|
|
270
|
-
key: "
|
|
279
|
+
key: "asideOpenedItem",
|
|
271
280
|
get: function get() {
|
|
272
281
|
return _classPrivateFieldGet(_I, this);
|
|
273
282
|
},
|
|
@@ -275,7 +284,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
275
284
|
_classPrivateFieldSet(_I, this, v);
|
|
276
285
|
}
|
|
277
286
|
}, {
|
|
278
|
-
key: "
|
|
287
|
+
key: "cloudRecordingState",
|
|
279
288
|
get: function get() {
|
|
280
289
|
return _classPrivateFieldGet(_J, this);
|
|
281
290
|
},
|
|
@@ -283,45 +292,25 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
283
292
|
_classPrivateFieldSet(_J, this, v);
|
|
284
293
|
}
|
|
285
294
|
}, {
|
|
286
|
-
key: "
|
|
287
|
-
get: function get() {
|
|
288
|
-
return _classPrivateFieldGet(_K, this);
|
|
289
|
-
},
|
|
290
|
-
set: function set(v) {
|
|
291
|
-
_classPrivateFieldSet(_K, this, v);
|
|
292
|
-
}
|
|
293
|
-
}, {
|
|
294
|
-
key: "cloudRecordingState",
|
|
295
|
+
key: "localUser",
|
|
295
296
|
get: function get() {
|
|
296
|
-
return
|
|
297
|
-
},
|
|
298
|
-
set: function set(v) {
|
|
299
|
-
_classPrivateFieldSet(_L, this, v);
|
|
300
|
-
}
|
|
301
|
-
}, {
|
|
302
|
-
key: "meetingId",
|
|
303
|
-
get: function get() {
|
|
304
|
-
return _classPrivateFieldGet(_M, this);
|
|
305
|
-
},
|
|
306
|
-
set: function set(v) {
|
|
307
|
-
_classPrivateFieldSet(_M, this, v);
|
|
297
|
+
return this._sharedMemberDataSource.localUser;
|
|
308
298
|
}
|
|
309
299
|
}, {
|
|
310
300
|
key: "isUserHost",
|
|
311
301
|
get: function get() {
|
|
312
|
-
|
|
313
|
-
return ((_this$localUser = this.localUser) === null || _this$localUser === void 0 ? void 0 : _this$localUser.userRole) === _type.FcrUserRole.HOST;
|
|
302
|
+
return this._sharedMemberDataSource.isLocalUserHost;
|
|
314
303
|
}
|
|
315
304
|
}, {
|
|
316
305
|
key: "shouldShowMeetingTime",
|
|
317
306
|
get: function get() {
|
|
318
|
-
return this.scheduleInfo && this.scheduleInfo.duration;
|
|
307
|
+
return Boolean(this.scheduleInfo && this.scheduleInfo.duration > 0);
|
|
319
308
|
}
|
|
320
309
|
}, {
|
|
321
310
|
key: "isMainRoom",
|
|
322
311
|
get: function get() {
|
|
323
|
-
var _this$_roomControl$
|
|
324
|
-
return ((_this$_roomControl$
|
|
312
|
+
var _this$_roomControl$ge;
|
|
313
|
+
return ((_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType) === _type2.FcrRoomType.Mainroom;
|
|
325
314
|
}
|
|
326
315
|
}, {
|
|
327
316
|
key: "hasStartCloudRecordingPermission",
|
|
@@ -338,11 +327,31 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
338
327
|
get: function get() {
|
|
339
328
|
return this._securityStore.hasGetLiveStreamingLinkPermission();
|
|
340
329
|
}
|
|
330
|
+
}, {
|
|
331
|
+
key: "totalHourText",
|
|
332
|
+
get: function get() {
|
|
333
|
+
return this._sharedMeetingTimeDataSource.totalHourText;
|
|
334
|
+
}
|
|
335
|
+
}, {
|
|
336
|
+
key: "totalMinuteText",
|
|
337
|
+
get: function get() {
|
|
338
|
+
return this._sharedMeetingTimeDataSource.totalMinuteText;
|
|
339
|
+
}
|
|
340
|
+
}, {
|
|
341
|
+
key: "meetingTimeStatus",
|
|
342
|
+
get: function get() {
|
|
343
|
+
return this._sharedMeetingTimeDataSource.status;
|
|
344
|
+
}
|
|
345
|
+
}, {
|
|
346
|
+
key: "meetingTime",
|
|
347
|
+
get: function get() {
|
|
348
|
+
return this._sharedMeetingTimeDataSource.meetingTime;
|
|
349
|
+
}
|
|
341
350
|
}, {
|
|
342
351
|
key: "password",
|
|
343
352
|
get: function get() {
|
|
344
|
-
var _this$_roomControl$
|
|
345
|
-
return (_this$_roomControl$
|
|
353
|
+
var _this$_roomControl$ge2;
|
|
354
|
+
return (_this$_roomControl$ge2 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge2 === void 0 ? void 0 : _this$_roomControl$ge2.password;
|
|
346
355
|
}
|
|
347
356
|
}, {
|
|
348
357
|
key: "layoutSize",
|
|
@@ -362,6 +371,29 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
362
371
|
var _this$_sharedLayoutDa2;
|
|
363
372
|
return (_this$_sharedLayoutDa2 = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa2 === void 0 ? void 0 : _this$_sharedLayoutDa2.asideLayout;
|
|
364
373
|
}
|
|
374
|
+
}, {
|
|
375
|
+
key: "isRoomDetailSupported",
|
|
376
|
+
get: function get() {
|
|
377
|
+
return this._abilityProvider.isRoomDetailSupported();
|
|
378
|
+
}
|
|
379
|
+
}, {
|
|
380
|
+
key: "roomId",
|
|
381
|
+
get: function get() {
|
|
382
|
+
var _this$_roomControl;
|
|
383
|
+
return (_this$_roomControl = this._roomControl) === null || _this$_roomControl === void 0 || (_this$_roomControl = _this$_roomControl.getRoomInfo()) === null || _this$_roomControl === void 0 ? void 0 : _this$_roomControl.roomId;
|
|
384
|
+
}
|
|
385
|
+
}, {
|
|
386
|
+
key: "meetingId",
|
|
387
|
+
get: function get() {
|
|
388
|
+
var _ref3;
|
|
389
|
+
var mainRoomControl = this._roomControl;
|
|
390
|
+
return (_ref3 = mainRoomControl === null || mainRoomControl === void 0 ? void 0 : mainRoomControl.getRoomPropertiesByKeyPath('meetingId')) !== null && _ref3 !== void 0 ? _ref3 : this.roomId;
|
|
391
|
+
}
|
|
392
|
+
}, {
|
|
393
|
+
key: "scheduleInfo",
|
|
394
|
+
get: function get() {
|
|
395
|
+
return this._roomControl.getRoomSchedule();
|
|
396
|
+
}
|
|
365
397
|
}, {
|
|
366
398
|
key: "isLockRoomEnabled",
|
|
367
399
|
value: function isLockRoomEnabled() {
|
|
@@ -372,15 +404,6 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
372
404
|
value: function setNetworkStatus(networkStatus) {
|
|
373
405
|
this.networkStatus = networkStatus;
|
|
374
406
|
}
|
|
375
|
-
}, {
|
|
376
|
-
key: "setLocalUser",
|
|
377
|
-
value: function setLocalUser(localUser) {
|
|
378
|
-
if (!this.localUser) {
|
|
379
|
-
this.localUser = localUser;
|
|
380
|
-
} else {
|
|
381
|
-
Object.assign(this.localUser, localUser);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
407
|
}, {
|
|
385
408
|
key: "setRoomInfo",
|
|
386
409
|
value: function setRoomInfo(roomInfo) {
|
|
@@ -390,15 +413,6 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
390
413
|
Object.assign(this.roomInfo, roomInfo);
|
|
391
414
|
}
|
|
392
415
|
}
|
|
393
|
-
}, {
|
|
394
|
-
key: "setScheduleInfo",
|
|
395
|
-
value: function setScheduleInfo(scheduleInfo) {
|
|
396
|
-
if (!this.scheduleInfo) {
|
|
397
|
-
this.scheduleInfo = scheduleInfo;
|
|
398
|
-
} else {
|
|
399
|
-
Object.assign(this.scheduleInfo, scheduleInfo);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
416
|
}, {
|
|
403
417
|
key: "toggleLayout",
|
|
404
418
|
value: function toggleLayout(layout) {
|
|
@@ -459,11 +473,11 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
459
473
|
}, {
|
|
460
474
|
key: "getShareLink",
|
|
461
475
|
value: function getShareLink() {
|
|
462
|
-
var _this$roomInfo, _this$roomInfo2, _this$
|
|
476
|
+
var _this$roomInfo, _this$roomInfo2, _this$localUser, _this$roomInfo3;
|
|
463
477
|
var info = {
|
|
464
478
|
roomId: (_this$roomInfo = this.roomInfo) === null || _this$roomInfo === void 0 ? void 0 : _this$roomInfo.roomId,
|
|
465
479
|
roomName: (_this$roomInfo2 = this.roomInfo) === null || _this$roomInfo2 === void 0 ? void 0 : _this$roomInfo2.roomName,
|
|
466
|
-
userName: (_this$
|
|
480
|
+
userName: (_this$localUser = this.localUser) === null || _this$localUser === void 0 ? void 0 : _this$localUser.userName
|
|
467
481
|
};
|
|
468
482
|
var baseLink = "".concat((_this$roomInfo3 = this.roomInfo) === null || _this$roomInfo3 === void 0 ? void 0 : _this$roomInfo3.inviteLink);
|
|
469
483
|
return baseLink;
|
|
@@ -473,6 +487,16 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
473
487
|
value: function showToast(params) {
|
|
474
488
|
this._uiEventStore.showToast(params);
|
|
475
489
|
}
|
|
490
|
+
}, {
|
|
491
|
+
key: "showNotification",
|
|
492
|
+
value: function showNotification(params) {
|
|
493
|
+
this._messageProvider.showNotification(params);
|
|
494
|
+
}
|
|
495
|
+
}, {
|
|
496
|
+
key: "closeNotification",
|
|
497
|
+
value: function closeNotification(key) {
|
|
498
|
+
this._messageProvider.closeNotification(key);
|
|
499
|
+
}
|
|
476
500
|
}, {
|
|
477
501
|
key: "_onNetworkQualityUpdated",
|
|
478
502
|
value: function _onNetworkQualityUpdated(_roomId, event) {
|
|
@@ -553,36 +577,58 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
553
577
|
}, {
|
|
554
578
|
key: "_onCloudRecordingStateUpdated",
|
|
555
579
|
value: function _onCloudRecordingStateUpdated(roomId, state) {
|
|
580
|
+
if (state === _type.FcrRecordingState.Starting) {
|
|
581
|
+
this._messageProvider.showToast({
|
|
582
|
+
type: 'normal',
|
|
583
|
+
message: (0, _i18n.transI18n)('fmt_record_tips_Cloudrecording_Start')
|
|
584
|
+
});
|
|
585
|
+
} else if (state === _type.FcrRecordingState.Started) {
|
|
586
|
+
this._messageProvider.showToast({
|
|
587
|
+
type: 'normal',
|
|
588
|
+
message: (0, _i18n.transI18n)('fmt_localrecord_tips_already_start')
|
|
589
|
+
});
|
|
590
|
+
} else if (state === _type.FcrRecordingState.Paused) {
|
|
591
|
+
this._messageProvider.showToast({
|
|
592
|
+
type: 'normal',
|
|
593
|
+
message: (0, _i18n.transI18n)('fmt_record_toast_record_paused')
|
|
594
|
+
});
|
|
595
|
+
} else if (state === _type.FcrRecordingState.Stopped) {
|
|
596
|
+
this._messageProvider.showToast({
|
|
597
|
+
type: 'normal',
|
|
598
|
+
message: (0, _i18n.transI18n)('fmt_record_record_stoped')
|
|
599
|
+
});
|
|
600
|
+
}
|
|
556
601
|
this.cloudRecordingState = state;
|
|
557
602
|
}
|
|
558
603
|
}, {
|
|
559
604
|
key: "_initRoomInfo",
|
|
560
605
|
value: function _initRoomInfo() {
|
|
561
|
-
var _this$_roomControl$ge4;
|
|
562
606
|
var info = this._roomControl.getRoomInfo();
|
|
563
|
-
this.meetingId = this._roomControl.getRoomPropertiesByKeyPath('meetingId');
|
|
564
607
|
this.setRoomInfo(info);
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
608
|
+
}
|
|
609
|
+
}, {
|
|
610
|
+
key: "meetingTimeKey",
|
|
611
|
+
get: function get() {
|
|
612
|
+
return "enter-room-".concat(this.roomId);
|
|
613
|
+
}
|
|
614
|
+
}, {
|
|
615
|
+
key: "getLocalMeetingTime",
|
|
616
|
+
value: function getLocalMeetingTime() {
|
|
617
|
+
return this._localStorageProvider.read(this.meetingTimeKey);
|
|
569
618
|
}
|
|
570
619
|
}]);
|
|
571
620
|
}();
|
|
572
621
|
_StateBarStore = StateBarStore;
|
|
573
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_StateBarStore, [[_mobx.observable, 1, "networkStatus"], [_mobx.observable, 1, "
|
|
622
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_StateBarStore, [[_mobx.observable, 1, "networkStatus"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "isLiveStreaming"], [_mobx.observable, 1, "liveStreamingPlayUrl"], [_mobx.observable, 1, "galleryWidth"], [_mobx.observable, 1, "browserWidth"], [_mobx.observable, 1, "networkStats"], [_mobx.observable, 1, "attendeeCount"], [_mobx.observable, 1, "asideOpenedItem"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.computed, 3, "localUser"], [_mobx.computed, 3, "isUserHost"], [_mobx.computed, 3, "shouldShowMeetingTime"], [_mobx.computed, 3, "isMainRoom"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingLinkPermission"], [_mobx.computed, 3, "totalHourText"], [_mobx.computed, 3, "totalMinuteText"], [_mobx.computed, 3, "meetingTimeStatus"], [_mobx.computed, 3, "meetingTime"], [_mobx.computed, 3, "password"], [_mobx.computed, 3, "roomId"], [_mobx.computed, 3, "meetingId"], [_mobx.computed, 3, "scheduleInfo"], [_decorator.bound, 2, "isLockRoomEnabled"], [_setNetworkStatusDecs, 18, "setNetworkStatus"], [_setRoomInfoDecs, 18, "setRoomInfo"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_stopLiveStreamingDialogDecs, 18, "stopLiveStreamingDialog"], [_decorator.bound, 2, "startCloudRecording"], [_decorator.bound, 2, "pauseCloudRecording"], [_decorator.bound, 2, "resumeCloudRecording"], [_decorator.bound, 2, "stopCloudRecording"], [_decorator.bound, 2, "getShareLink"], [_decorator.bound, 2, "showToast"], [_decorator.bound, 2, "showNotification"], [_decorator.bound, 2, "closeNotification"], [_uiEventsDecs, 18, "_uiEvents"], [_setBrowserWidthDecs, 18, "_setBrowserWidth"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLiveStreamingStateUpdatedDecs, 18, "_onLiveStreamingStateUpdated"], [_decorator.bound, 2, "getLocalMeetingTime"]], []).e, 11);
|
|
574
623
|
_init_networkStatus = _applyDecs$e[0];
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
_init_cloudRecordingState = _applyDecs$e[11];
|
|
586
|
-
_init_meetingId = _applyDecs$e[12];
|
|
587
|
-
_initProto = _applyDecs$e[13];
|
|
624
|
+
_init_roomInfo = _applyDecs$e[1];
|
|
625
|
+
_init_isLiveStreaming = _applyDecs$e[2];
|
|
626
|
+
_init_liveStreamingPlayUrl = _applyDecs$e[3];
|
|
627
|
+
_init_galleryWidth = _applyDecs$e[4];
|
|
628
|
+
_init_browserWidth = _applyDecs$e[5];
|
|
629
|
+
_init_networkStats = _applyDecs$e[6];
|
|
630
|
+
_init_attendeeCount = _applyDecs$e[7];
|
|
631
|
+
_init_asideOpenedItem = _applyDecs$e[8];
|
|
632
|
+
_init_cloudRecordingState = _applyDecs$e[9];
|
|
633
|
+
_initProto = _applyDecs$e[10];
|
|
588
634
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -21,6 +21,7 @@ var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
|
21
21
|
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
22
22
|
var _networkQuality = require("./network-quality");
|
|
23
23
|
var _layoutConfig = require("./layout-config");
|
|
24
|
+
var _meetingTime = require("./meeting-time");
|
|
24
25
|
var _react = require("react");
|
|
25
26
|
var _copyText = require("../../utilities/copyText");
|
|
26
27
|
var _tools = require("../../utilities/tools");
|
|
@@ -36,6 +37,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
36
37
|
var _type3 = require("fcr-core/lib/room-control/type");
|
|
37
38
|
var _rendererEvent = require("../../utilities/renderer-event");
|
|
38
39
|
var _constant = require("../../utilities/constant");
|
|
40
|
+
var _type4 = require("../../type");
|
|
39
41
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
40
42
|
var MyFcrToolTip = exports.MyFcrToolTip = function MyFcrToolTip(props) {
|
|
41
43
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
@@ -61,7 +63,10 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
61
63
|
galleryWidth = _useContext.galleryWidth,
|
|
62
64
|
isMainRoom = _useContext.isMainRoom,
|
|
63
65
|
meetingId = _useContext.meetingId,
|
|
64
|
-
showToast = _useContext.showToast
|
|
66
|
+
showToast = _useContext.showToast,
|
|
67
|
+
showNotification = _useContext.showNotification,
|
|
68
|
+
closeNotification = _useContext.closeNotification,
|
|
69
|
+
isRoomDetailSupported = _useContext.isRoomDetailSupported;
|
|
65
70
|
var _useState = (0, _react.useState)(false),
|
|
66
71
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
67
72
|
isFullScreen = _useState2[0],
|
|
@@ -69,6 +74,16 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
69
74
|
var displayMeetingId = meetingId ? (0, _tools.renderMeetingId)(meetingId, (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId) || '') : (0, _tools.renderMeetingId)(meetingId, (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId) || '').replace(/\s+/g, '');
|
|
70
75
|
(0, _react.useEffect)(function () {
|
|
71
76
|
isFullScreen ? (0, _screen.enterFullScreen)() : (0, _screen.exitFullScreen)();
|
|
77
|
+
if (isFullScreen) {
|
|
78
|
+
showNotification({
|
|
79
|
+
type: _type4.FcrUINotificationContentType.TOAST,
|
|
80
|
+
placement: 'bottom',
|
|
81
|
+
onClose: function onClose() {
|
|
82
|
+
closeNotification(_type4.FcrUINotificationContentType.TOAST);
|
|
83
|
+
},
|
|
84
|
+
data: '点击键盘ESC 可退出全屏'
|
|
85
|
+
});
|
|
86
|
+
}
|
|
72
87
|
}, [isFullScreen]);
|
|
73
88
|
var screenHandler = function screenHandler(event) {
|
|
74
89
|
if (event.action === _constant.FcrUIRendererEventAction.ENTER_FULL_SCREEN) {
|
|
@@ -84,6 +99,17 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
84
99
|
(0, _rendererEvent.removeEventListener)(screenHandler);
|
|
85
100
|
};
|
|
86
101
|
}, []);
|
|
102
|
+
var handleKeydown = function handleKeydown(event) {
|
|
103
|
+
if (event.key === 'Escape') {
|
|
104
|
+
isFullScreen && setIsFullScreen(false);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
(0, _react.useEffect)(function () {
|
|
108
|
+
document.addEventListener('keydown', handleKeydown);
|
|
109
|
+
return function () {
|
|
110
|
+
document.removeEventListener('keydown', handleKeydown);
|
|
111
|
+
};
|
|
112
|
+
}, [isFullScreen]);
|
|
87
113
|
var onMeetingIdCopy = function onMeetingIdCopy() {
|
|
88
114
|
if (!displayMeetingId) return;
|
|
89
115
|
(0, _copyText.copyText)(displayMeetingId).then(function () {
|
|
@@ -132,42 +158,47 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
132
158
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_networkQuality.NetworkQuality, {})
|
|
133
159
|
})
|
|
134
160
|
})
|
|
135
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
161
|
+
}), isRoomDetailSupported && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
162
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
163
|
+
src: _stepGradient["default"],
|
|
164
|
+
alt: "step divider",
|
|
165
|
+
className: ns.e('step-divider')
|
|
166
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
|
|
167
|
+
content: t('fmt_information_options_sharedetail'),
|
|
168
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
169
|
+
trigger: "click",
|
|
170
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingDetails.MeetingDetails, {}),
|
|
171
|
+
placement: "bottomLeft",
|
|
172
|
+
onVisibleChange: toggleLayoutBarLock,
|
|
173
|
+
overlayClassName: ns.e('popover'),
|
|
174
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
175
|
+
className: (0, _classnames["default"])(ns.e('info-detail'), (0, _defineProperty2["default"])({}, ns.e('inwaitingroom-disable-action'), (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomType) === _type3.FcrRoomType.Waitingroom)),
|
|
176
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
177
|
+
type: _type.FcrIconType.FCR_V2_TANHAO_ALART,
|
|
178
|
+
className: ns.e('info-detail-icon'),
|
|
179
|
+
size: 20
|
|
180
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
181
|
+
className: ns.e('lock-meeting-text'),
|
|
182
|
+
children: t('fmt_meetingInfo_label')
|
|
183
|
+
})]
|
|
184
|
+
})
|
|
157
185
|
})
|
|
158
|
-
})
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
})
|
|
186
|
+
}), galleryWidth >= _store.GALLERY_MIN_SIZE && /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
|
|
187
|
+
content: t('fmt_information_label_clicktocopy'),
|
|
188
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
189
|
+
className: ns.e('info-meeting-id'),
|
|
190
|
+
onClick: onMeetingIdCopy,
|
|
191
|
+
children: displayMeetingId
|
|
192
|
+
})
|
|
193
|
+
})]
|
|
166
194
|
})]
|
|
167
195
|
}), isLiveStreaming && /*#__PURE__*/(0, _jsxRuntime.jsx)(_liveStreamingState.LiveStreamingState, {})]
|
|
168
196
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
169
197
|
className: ns.e('right-nav'),
|
|
170
|
-
children: [isRecording && /*#__PURE__*/(0, _jsxRuntime.jsx)(_recording.Recording, {}),
|
|
198
|
+
children: [isRecording && /*#__PURE__*/(0, _jsxRuntime.jsx)(_recording.Recording, {}), isMainRoom && shouldShowMeetingTime && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
199
|
+
className: ns.e('time'),
|
|
200
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingTime.MeetingTime, {})
|
|
201
|
+
}), attendeeCount > 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
|
|
171
202
|
content: t('fmt_statusbar_label_switchlayout'),
|
|
172
203
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
173
204
|
className: ns.e('layout'),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DeviceStateProps } from '../../type';
|
|
2
|
+
export declare const DeviceState: ({ connectType, openConnection, microphoneVolumeLevel, enableMicrophone, microphoneEnabled, }: DeviceStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const AudioRecordinDeviceIcon: ({ size, micEnabled, volume, }: {
|
|
4
|
+
size?: number;
|
|
5
|
+
micEnabled?: boolean;
|
|
6
|
+
volume?: number;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|