fcr-ui-scene 3.4.4 → 3.5.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/lib/base.js +4 -4
- package/lib/common/device-store.d.ts +3 -2
- package/lib/common/device-store.js +174 -194
- package/lib/common/device-stream-store.d.ts +27 -7
- package/lib/common/device-stream-store.js +190 -176
- package/lib/common/event-store.d.ts +4 -13
- package/lib/common/event-store.js +7 -18
- package/lib/common/room-store.js +6 -6
- package/lib/common/security-store.d.ts +19 -9
- package/lib/common/security-store.js +27 -39
- package/lib/creator.d.ts +4 -1
- package/lib/creator.js +66 -3
- package/lib/electron/app.js +0 -5
- package/lib/electron/bootstrap-dev.js +2 -2
- package/lib/electron/bootstrap-sdk.js +2 -2
- package/lib/electron/injections.js +0 -5
- 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/electron/tools.js +0 -4
- package/lib/electron/window.js +0 -2
- package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +45 -1
- package/lib/fragments/control-bar/control-bar-store.js +465 -83
- package/lib/fragments/control-bar/device/index.js +5 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +24 -0
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +31 -12
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +117 -16
- package/lib/fragments/control-bar/more-actions/index.css +53 -0
- package/lib/fragments/control-bar/more-actions/index.js +73 -38
- package/lib/fragments/control-bar/security-content/index.css +75 -0
- package/lib/fragments/control-bar/security-content/index.js +105 -19
- package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
- package/lib/fragments/control-bar/view.js +23 -8
- package/lib/fragments/live-streaming/store.d.ts +1 -1
- package/lib/fragments/live-streaming/store.js +1 -1
- package/lib/fragments/live-streaming/view.js +4 -2
- package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
- package/lib/fragments/share-screen-selection/selection-store.js +1 -1
- package/lib/fragments/share-screen-selection/view.js +20 -20
- package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
- package/lib/fragments/toolbar/components/pen-picker.js +1 -1
- package/lib/fragments/toolbar/components/shape-picker.js +1 -1
- package/lib/fragments/toolbar/components/wrapper.js +1 -1
- package/lib/fragments/toolbar/hooks.js +1 -1
- package/lib/fragments/toolbar/store.d.ts +1 -1
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +11 -11
- package/lib/modules/action-bar/apps/useInterpreter.js +2 -4
- package/lib/modules/action-bar/chat/index.js +8 -8
- 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 -26
- package/lib/modules/action-bar/components/apps/app-list.d.ts +3 -0
- package/lib/{electron/dev.js → modules/action-bar/components/apps/app-list.js} +22 -31
- package/lib/modules/action-bar/components/apps/appitems.js +2 -5
- 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 -7
- 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 +4 -1
- package/lib/modules/action-bar/components/apps/useWidgetList.js +8 -12
- 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 -78
- package/lib/modules/action-bar/components/interpreter/index.js +3 -3
- package/lib/modules/action-bar/components/item/index.js +1 -3
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +1 -8
- package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +0 -2
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +1 -16
- package/lib/modules/action-bar/components/more/index.js +13 -7
- package/lib/modules/action-bar/components/more/poppover-content.js +0 -4
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +2 -1
- package/lib/modules/action-bar/components/notification-bar/index.d.ts +1 -1
- package/lib/modules/action-bar/components/notification-bar/index.js +13 -8
- 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 +53 -18
- package/lib/modules/action-bar/components/security/index.js +8 -2
- package/lib/modules/action-bar/components/trigger-output-language/index.js +66 -56
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +35 -21
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.js +25 -25
- 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/leave/assign-host.d.ts +3 -0
- package/lib/modules/action-bar/leave/assign-host.js +2 -4
- package/lib/modules/action-bar/leave/index.css +10 -0
- package/lib/modules/action-bar/leave/index.js +84 -34
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +13 -1
- package/lib/modules/action-bar/leave/leave-meeting.js +37 -19
- package/lib/modules/action-bar/live-streaming/index.js +3 -3
- package/lib/modules/action-bar/more/index.js +5 -5
- package/lib/modules/action-bar/more/poppover-content.js +37 -16
- package/lib/modules/action-bar/participants/index.css +12 -0
- package/lib/modules/action-bar/participants/index.js +23 -16
- package/lib/modules/action-bar/record/index.js +4 -4
- package/lib/modules/action-bar/screen-share/index.js +9 -5
- package/lib/modules/action-bar/screen-share/submenu.js +20 -26
- package/lib/modules/action-bar/security/drop-menu.js +137 -22
- package/lib/modules/action-bar/security/index.js +11 -5
- package/lib/modules/action-bar/settings/index.js +4 -4
- package/lib/modules/action-bar/smaller.js +2 -2
- package/lib/modules/action-bar/store.d.ts +37 -22
- package/lib/modules/action-bar/store.js +275 -379
- package/lib/modules/action-bar/switch-output-language-room/index.js +8 -2
- 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 -14
- package/lib/modules/chat/chat-bar/index.css +0 -5
- package/lib/modules/chat/chat-bar/index.js +14 -16
- package/lib/modules/chat/chat-room-store.d.ts +4 -7
- package/lib/modules/chat/chat-room-store.js +39 -66
- package/lib/modules/chat/chat-select/index.css +3 -6
- package/lib/modules/chat/chat-select/index.js +1 -15
- package/lib/modules/chat/chat.js +6 -7
- 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 -18
- package/lib/modules/chat/components/chat-select/index.js +16 -148
- package/lib/modules/chat/components/chat-select/select-item/index.js +2 -5
- package/lib/modules/chat/components/message-list/index.d.ts +1 -1
- package/lib/modules/chat/components/message-list/index.js +55 -360
- package/lib/modules/chat/components/message-list/message-item/index.js +36 -8
- 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/message-list.js +1 -4
- package/lib/modules/chat/store.d.ts +17 -7
- package/lib/modules/chat/store.js +75 -73
- package/lib/modules/chat/types.d.ts +7 -7
- package/lib/modules/chat/types.js +2 -1
- package/lib/modules/chat/view.js +22 -106
- package/lib/modules/components/device-control/components/audio-menu/index.js +2 -1
- package/lib/modules/components/device-control/components/video-menu/index.js +2 -1
- package/lib/modules/components/device-control/store.d.ts +4 -3
- package/lib/modules/components/device-control/store.js +13 -25
- 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 +115 -96
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +29 -31
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +3 -1
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +0 -1
- package/lib/modules/components/member-window/components/member-actions/index.js +0 -1
- package/lib/modules/components/member-window/components/member-actions/store.js +2 -1
- package/lib/modules/components/member-window/components/video-player/index.js +0 -2
- 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 +1 -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 +38 -63
- package/lib/modules/components/tab-frame/index.js +0 -4
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -1
- package/lib/modules/connection-gateway/components/phone/index.js +2 -1
- 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 -31
- package/lib/modules/control-bar/components/meeting-details/index.js +11 -17
- package/lib/modules/control-bar/components/more-actions/index.js +5 -6
- 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 -6
- package/lib/modules/control-bar/store.d.ts +40 -20
- package/lib/modules/control-bar/store.js +156 -192
- package/lib/modules/control-bar/view.js +64 -26
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +1 -1
- package/lib/modules/device-pretest/settings/beauty.js +2 -1
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -1
- package/lib/modules/device-pretest/store.js +0 -2
- package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +38 -68
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/control-bar/index.js +1 -0
- 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 -4
- 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/remove-admit-waiting-room/electron.js +6 -3
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +14 -4
- package/lib/modules/dialog/components/share-screen-selection/index.js +3 -1
- 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 +48 -59
- package/lib/modules/dialog/components/video-window/index.d.ts +1 -1
- package/lib/modules/dialog/components/video-window/index.js +214 -101
- package/lib/modules/dialog/components/widget/electron.js +4 -8
- package/lib/modules/dialog/components/widget/index.js +4 -2
- package/lib/modules/dialog/hooks/useElectron.d.ts +7 -0
- package/lib/modules/dialog/hooks/useElectron.js +209 -17
- package/lib/modules/dialog/index.css +1 -11
- package/lib/modules/dialog/index.d.ts +9 -6
- package/lib/modules/dialog/index.js +12 -14
- package/lib/modules/dialog/store.d.ts +26 -10
- package/lib/modules/dialog/store.js +150 -85
- package/lib/modules/dialog/view.d.ts +1 -4
- package/lib/modules/dialog/view.js +14 -10
- 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 -35
- package/lib/modules/event-confirm/view.js +65 -29
- package/lib/modules/event-toast/store.js +4 -4
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.js +5 -5
- package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.js +7 -7
- package/lib/modules/{Interpreter → interpreter}/constant.d.ts +0 -4
- package/lib/modules/{Interpreter → interpreter}/constant.js +3 -45
- package/lib/modules/{Interpreter → interpreter}/index.d.ts +5 -1
- package/lib/modules/{Interpreter → interpreter}/index.js +4 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.js +5 -8
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +0 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.js +6 -9
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/store.d.ts +8 -5
- package/lib/modules/{Interpreter → interpreter}/store.js +90 -44
- package/lib/modules/{Interpreter → interpreter}/type.d.ts +5 -1
- package/lib/modules/{Interpreter → interpreter}/utils.d.ts +0 -1
- package/lib/modules/{Interpreter → interpreter}/utils.js +2 -23
- package/lib/modules/{Interpreter → interpreter}/view.js +2 -6
- package/lib/modules/invite/enums.js +1 -0
- 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 +28 -5
- package/lib/modules/invite/voip-invite.js +3 -3
- package/lib/modules/layout/components/Aside.js +1 -1
- package/lib/modules/layout/components/Carousel.js +38 -15
- package/lib/modules/layout/components/Gallery.js +35 -13
- package/lib/modules/layout/components/Layout.js +4 -7
- package/lib/modules/layout/components/index.js +0 -1
- 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/member-window/index.css +9 -22
- package/lib/modules/layout/member-window/index.d.ts +1 -1
- package/lib/modules/layout/member-window/index.js +26 -27
- package/lib/modules/layout/store.d.ts +23 -10
- package/lib/modules/layout/store.js +184 -166
- package/lib/modules/layout/type.d.ts +2 -0
- package/lib/modules/layout/type.js +2 -0
- package/lib/modules/layout/video-window-datasource.js +0 -4
- 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 -20
- package/lib/modules/notification/index.css +17 -0
- package/lib/modules/notification/interpreter-status/index.js +2 -1
- 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 -1
- package/lib/modules/participant/attendee/index.css +51 -0
- package/lib/modules/participant/attendee/index.d.ts +5 -8
- package/lib/modules/participant/attendee/index.js +15 -64
- package/lib/modules/participant/components/attendee/index.js +0 -3
- package/lib/modules/participant/components/confirm-input/index.d.ts +1 -1
- package/lib/modules/participant/components/confirm-input/index.js +3 -2
- package/lib/modules/participant/components/drop-menu/index.js +0 -3
- 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/drop-menu/index.js +1 -4
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +1 -1
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +1 -1
- package/lib/modules/participant/components/participants/components/footer/index.js +3 -2
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +0 -2
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +0 -2
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +0 -2
- package/lib/modules/participant/components/participants/components/participants/index.js +0 -2
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +0 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +0 -2
- package/lib/modules/participant/components/participants/index.js +18 -112
- package/lib/modules/participant/components/user-action/index.js +0 -2
- package/lib/modules/participant/index.css +3 -0
- package/lib/modules/participant/index.d.ts +12 -0
- package/lib/modules/participant/index.js +7 -3
- package/lib/modules/participant/member-list-data-source.d.ts +2 -2
- package/lib/modules/participant/member-list-data-source.js +11 -20
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/store.d.ts +44 -36
- package/lib/modules/participant/store.js +527 -535
- 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 -7
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +2 -1
- package/lib/modules/phone-audio-connect/store.js +0 -3
- package/lib/modules/phone-audio-connect/view.js +2 -1
- package/lib/modules/setting/audio-settings/audio-settings.js +6 -5
- package/lib/modules/setting/audio-settings/index.css +11 -2
- package/lib/modules/setting/config.js +1 -1
- package/lib/modules/setting/minutes-settings/minutes-settings.js +2 -1
- package/lib/modules/setting/state/index.js +0 -4
- package/lib/modules/setting/store.d.ts +1 -0
- package/lib/modules/setting/store.js +24 -10
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- 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 +71 -81
- package/lib/modules/share-screen/index.d.ts +6 -1
- package/lib/modules/share-screen/index.js +4 -1
- package/lib/modules/share-screen/selection/index.css +0 -2
- package/lib/modules/share-screen/selection/index.js +97 -83
- package/lib/modules/share-screen/store.d.ts +37 -33
- package/lib/modules/share-screen/store.js +311 -429
- package/lib/modules/sound-effect/index.js +0 -1
- 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/layout-config.js +2 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -18
- package/lib/modules/state-bar/meeting-details.js +10 -23
- package/lib/modules/state-bar/meeting-time.js +5 -10
- package/lib/modules/state-bar/store.d.ts +30 -7
- package/lib/modules/state-bar/store.js +145 -100
- package/lib/modules/state-bar/view.js +63 -32
- package/lib/modules/video-window/components/members/index.js +5 -3
- package/lib/modules/video-window/components/topControl/index.js +0 -2
- package/lib/modules/video-window/index.d.ts +7 -0
- package/lib/modules/video-window/index.js +14 -20
- package/lib/modules/video-window/members/index.js +2 -1
- package/lib/modules/video-window/store.d.ts +19 -88
- package/lib/modules/video-window/store.js +98 -369
- package/lib/modules/video-window/topControl/index.js +0 -2
- 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/components/switch-theme/index.js +0 -2
- package/lib/modules/whiteboard/components/switch-theme/item.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/index.js +1 -4
- package/lib/modules/whiteboard/index.d.ts +1 -0
- package/lib/modules/whiteboard/index.js +7 -8
- package/lib/modules/widget/sdk.d.ts +1 -1
- package/lib/modules/widget/sdk.js +5 -2
- package/lib/modules/widget/type.d.ts +6 -5
- package/lib/modules/widget/web-widget.js +5 -5
- package/lib/providers/ability-provider.js +4 -2
- 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 -3
- package/lib/providers/device-provider.js +5 -7
- package/lib/providers/device-stream-provider.d.ts +15 -3
- package/lib/providers/device-stream-provider.js +116 -35
- package/lib/providers/dialog-provider.d.ts +9 -8
- package/lib/providers/dialog-provider.js +8 -6
- package/lib/providers/event-provider.js +4 -4
- package/lib/providers/interpreter-provider.d.ts +7 -26
- package/lib/providers/interpreter-provider.js +473 -709
- 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 -4
- package/lib/providers/phone-audio-provider.js +24 -21
- package/lib/providers/privilege-provider.d.ts +13 -12
- package/lib/providers/privilege-provider.js +19 -15
- package/lib/providers/renderer-provider.d.ts +5 -0
- package/lib/providers/renderer-provider.js +8 -2
- package/lib/providers/room-provider.d.ts +7 -17
- package/lib/providers/room-provider.js +113 -164
- package/lib/providers/screen-share-provider.d.ts +19 -0
- package/lib/providers/screen-share-provider.js +100 -11
- package/lib/providers/widget-provider.d.ts +14 -6
- package/lib/providers/widget-provider.js +11 -8
- package/lib/scenes/main-scene.d.ts +11 -0
- package/lib/scenes/main-scene.js +60 -35
- package/lib/scenes/waiting-scene.d.ts +9 -0
- package/lib/scenes/waiting-scene.js +27 -26
- package/lib/shared-data-source/chat-data.d.ts +11 -0
- package/lib/shared-data-source/chat-data.js +17 -8
- package/lib/shared-data-source/interpreter.d.ts +34 -21
- package/lib/shared-data-source/interpreter.js +103 -104
- package/lib/shared-data-source/layout-data.js +1 -4
- 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.js +4 -6
- package/lib/shared-data-source/pin-data.d.ts +8 -4
- package/lib/shared-data-source/pin-data.js +91 -4
- package/lib/shared-data-source/security-data.d.ts +35 -0
- package/lib/{common/remote-renderer.js → shared-data-source/security-data.js} +88 -71
- package/lib/shared-data-source/setting.d.ts +3 -1
- package/lib/shared-data-source/setting.js +12 -3
- package/lib/shared-data-source/video-window.d.ts +7 -8
- package/lib/shared-data-source/video-window.js +97 -98
- package/lib/shared-data-source/waiting-room.d.ts +29 -2
- package/lib/shared-data-source/waiting-room.js +102 -40
- package/lib/translations/enUS.d.ts +25 -12
- package/lib/translations/enUS.js +49 -34
- package/lib/translations/zhCN.d.ts +25 -12
- package/lib/translations/zhCN.js +63 -48
- package/lib/type.d.ts +64 -48
- package/lib/type.js +28 -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 -98
- package/lib/utilities/constant.d.ts +5 -2
- package/lib/utilities/constant.js +10 -0
- package/lib/utilities/default-config.d.ts +5 -1
- package/lib/utilities/default-config.js +28 -2
- package/lib/utilities/logger.js +0 -1
- 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/privilege.js +0 -2
- package/lib/utilities/renderer-event.js +0 -2
- package/lib/utilities/renderer.js +0 -1
- package/lib/utilities/setting-config-storage.js +0 -2
- package/lib/utilities/tools.d.ts +7 -6
- package/lib/utilities/tools.js +2 -9
- package/lib/waiting-room-control-manager.d.ts +28 -0
- package/lib/waiting-room-control-manager.js +210 -0
- package/package.json +7 -6
- package/public/index.html +7 -1
- package/installer/icons/icon.png +0 -0
- package/lib/ scenes/base.d.ts +0 -10
- package/lib/ scenes/base.js +0 -75
- package/lib/ scenes/main-scene.d.ts +0 -43
- package/lib/ scenes/main-scene.js +0 -368
- package/lib/ scenes/waiting-scene.d.ts +0 -31
- package/lib/ scenes/waiting-scene.js +0 -119
- package/lib/common/remote-renderer.d.ts +0 -15
- package/lib/common/type.d.ts +0 -8
- package/lib/common/type.js +0 -6
- package/lib/electron/bootstrap.d.ts +0 -1
- package/lib/electron/bootstrap.js +0 -56
- package/lib/electron/dev.d.ts +0 -1
- package/lib/error-fallback.css +0 -62
- package/lib/error-fallback.d.ts +0 -2
- package/lib/error-fallback.js +0 -19
- package/lib/modules/Interpreter/context.d.ts +0 -2
- package/lib/modules/Interpreter/context.js +0 -9
- package/lib/modules/action-bar/components/device/index.css +0 -162
- package/lib/modules/action-bar/components/device/index.d.ts +0 -8
- package/lib/modules/action-bar/components/device/index.js +0 -611
- package/lib/modules/action-bar/components/item.d.ts +0 -27
- package/lib/modules/action-bar/components/item.js +0 -164
- package/lib/modules/action-bar/components/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/index.css +0 -86
- package/lib/modules/action-bar/components/trigger-input-language-room/index.d.ts +0 -3
- package/lib/modules/action-bar/components/trigger-input-language-room/index.js +0 -215
- package/lib/modules/action-bar/components/trigger-output-language-room/constant.d.ts +0 -10
- package/lib/modules/action-bar/components/trigger-output-language-room/constant.js +0 -8
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.css +0 -22
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.d.ts +0 -3
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.js +0 -75
- package/lib/modules/action-bar/components/trigger-output-language-room/index.d.ts +0 -8
- package/lib/modules/action-bar/components/trigger-output-language-room/index.js +0 -98
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.d.ts +0 -5
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.js +0 -66
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.d.ts +0 -5
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.js +0 -37
- package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.d.ts +0 -12
- package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.js +0 -138
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +0 -58
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +0 -8
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +0 -100
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +0 -56
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +0 -5
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +0 -33
- package/lib/modules/action-bar/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/notification-bar/index.css +0 -74
- package/lib/modules/action-bar/notification-bar/index.d.ts +0 -2
- package/lib/modules/action-bar/notification-bar/index.js +0 -99
- package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.css +0 -86
- package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +0 -15
- package/lib/modules/action-bar/trigger-input-language-room/index.js +0 -220
- package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +0 -10
- package/lib/modules/action-bar/trigger-output-language-room/constant.js +0 -8
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +0 -22
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +0 -14
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +0 -75
- package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +0 -4
- package/lib/modules/action-bar/trigger-output-language-room/index.js +0 -98
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +0 -5
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +0 -66
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +0 -5
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +0 -36
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +0 -12
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +0 -138
- package/lib/modules/components/dialog-container/component/body.d.ts +0 -7
- package/lib/modules/components/dialog-container/component/body.js +0 -46
- package/lib/modules/components/dialog-container/index.css +0 -78
- package/lib/modules/components/dialog-container/index.d.ts +0 -11
- package/lib/modules/components/dialog-container/index.js +0 -110
- package/lib/modules/dialog/components/Interpreter/user-queue/index.css +0 -36
- package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +0 -3
- package/lib/modules/dialog/components/Interpreter/user-queue/index.js +0 -47
- package/lib/modules/notification/context.d.ts +0 -2
- package/lib/modules/notification/context.js +0 -9
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -278
- package/lib/modules/participant/components/attendee/components/interpreter-tag/index.d.ts +0 -3
- package/lib/modules/participant/components/attendee/components/interpreter-tag/index.js +0 -48
- package/lib/modules/participant/components/drop-menu/util.d.ts +0 -5
- package/lib/modules/participant/components/drop-menu/util.js +0 -28
- package/lib/modules/participant/components/participants/render-tab/index.d.ts +0 -2
- package/lib/modules/participant/components/participants/render-tab/index.js +0 -49
- package/lib/modules/participant/components/participants/render-user/index.d.ts +0 -5
- package/lib/modules/participant/components/participants/render-user/index.js +0 -21
- package/lib/modules/participant/components/user-action/audio-button/index.d.ts +0 -7
- package/lib/modules/participant/components/user-action/audio-button/index.js +0 -31
- package/lib/modules/participant/components/user-action/move-actions-popover/index.d.ts +0 -12
- package/lib/modules/participant/components/user-action/move-actions-popover/index.js +0 -82
- package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.d.ts +0 -4
- package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.js +0 -26
- package/lib/scenes/base.d.ts +0 -10
- package/lib/scenes/base.js +0 -75
- package/lib/ui-node.d.ts +0 -25
- package/lib/ui-node.js +0 -156
- /package/lib/modules/action-bar/{Interpreter → interpreter}/index.d.ts +0 -0
- /package/lib/modules/action-bar/{Interpreter → interpreter}/index.js +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/electron.d.ts +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/electron.js +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.css +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.d.ts +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/add-button/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/add-button/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/add-button/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/config.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/config.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/interpreter-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/interpreter-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/set-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/set-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/type.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/view.d.ts +0 -0
|
@@ -19,6 +19,7 @@ export interface FcrUIVideoWindowData {
|
|
|
19
19
|
hasLoopbackAudioStream: boolean;
|
|
20
20
|
hasVideoStream: boolean;
|
|
21
21
|
hasScreenSharing: boolean;
|
|
22
|
+
hasLoopbackSharing: boolean;
|
|
22
23
|
audioStreamConnectorType: FcrRoomConnectorType;
|
|
23
24
|
videoStreamConnectorType: FcrRoomConnectorType;
|
|
24
25
|
userId: string;
|
|
@@ -30,6 +31,7 @@ export interface FcrUIVideoWindowData {
|
|
|
30
31
|
ownerRoleType: FcrUserRole;
|
|
31
32
|
sortingPriority: number;
|
|
32
33
|
phoneMicEnabled?: boolean;
|
|
34
|
+
hasBoardSharing: boolean;
|
|
33
35
|
}
|
|
34
36
|
export declare const VideoRatio: number;
|
|
35
37
|
export declare enum FcrUIVideoWindowMainSortingPriority {
|
|
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.VideoRatio = exports.GalleryMaxSize = exports.FcrUIWindowType = exports.FcrUIVideoWindowMainSortingPriority = exports.FcrUIVideoWindowLayoutType = exports.FcrUIVideoWindowFoldSortingPriority = void 0;
|
|
8
8
|
var FcrUIVideoWindowLayoutType = exports.FcrUIVideoWindowLayoutType = /*#__PURE__*/function (FcrUIVideoWindowLayoutType) {
|
|
9
|
+
/** Show a carousel on top and a big video on the rest of the screen. */
|
|
9
10
|
FcrUIVideoWindowLayoutType["Speaker"] = "speaker";
|
|
11
|
+
/** Show videos in grid, filling the screen. */
|
|
10
12
|
FcrUIVideoWindowLayoutType["Gallery"] = "gallery";
|
|
11
13
|
return FcrUIVideoWindowLayoutType;
|
|
12
14
|
}({});
|
|
@@ -45,10 +45,6 @@ require("core-js/modules/es.object.assign.js");
|
|
|
45
45
|
require("core-js/modules/es.object.to-string.js");
|
|
46
46
|
require("core-js/modules/es.string.iterator.js");
|
|
47
47
|
require("core-js/modules/es.weak-map.js");
|
|
48
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
49
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
50
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
51
|
-
require("core-js/modules/esnext.async-iterator.some.js");
|
|
52
48
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
53
49
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
54
50
|
require("core-js/modules/esnext.iterator.find.js");
|
|
@@ -5,6 +5,7 @@ import { FcrUIMainRoomControlProvider, FcrUIRoomProvider } from '../../providers
|
|
|
5
5
|
import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
6
6
|
import { FcrUIMessageProvider } from '../../providers/message-provider';
|
|
7
7
|
import { FcrUIVideoWindowDataSource } from '../../shared-data-source/video-window';
|
|
8
|
+
import { FcrUIMemberSharedDataSource } from '../../shared-data-source/member-data';
|
|
8
9
|
export declare class LiveStreamingUIModule extends UIModule {
|
|
9
10
|
private _store;
|
|
10
11
|
mainRoomControlProvider?: FcrUIMainRoomControlProvider;
|
|
@@ -14,6 +15,7 @@ export declare class LiveStreamingUIModule extends UIModule {
|
|
|
14
15
|
dialogProvider?: FcrUIDialogProvider;
|
|
15
16
|
messageProvider?: FcrUIMessageProvider;
|
|
16
17
|
sharedVideoWindowDataSource?: FcrUIVideoWindowDataSource;
|
|
18
|
+
sharedMemberDataSource?: FcrUIMemberSharedDataSource;
|
|
17
19
|
onNodeWillActive(): void;
|
|
18
20
|
nodeWillInactive(): void;
|
|
19
21
|
getComponent(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -43,9 +43,9 @@ var LiveStreamingUIModule = exports.LiveStreamingUIModule = /*#__PURE__*/functio
|
|
|
43
43
|
roomControl: (_this$mainRoomControl = this.mainRoomControlProvider) === null || _this$mainRoomControl === void 0 ? void 0 : _this$mainRoomControl.mainRoomControl,
|
|
44
44
|
dialogProvider: this.dialogProvider,
|
|
45
45
|
messageProvider: this.messageProvider,
|
|
46
|
-
sharedLayoutDataSource: this.sharedLayoutDataSource,
|
|
47
46
|
roomProvider: this.roomProvider,
|
|
48
|
-
sharedVideoWindowDataSource: this.sharedVideoWindowDataSource
|
|
47
|
+
sharedVideoWindowDataSource: this.sharedVideoWindowDataSource,
|
|
48
|
+
sharedMemberDataSource: this.sharedMemberDataSource
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
}, {
|
|
@@ -1,41 +1,37 @@
|
|
|
1
1
|
import { FcrLiveStreamingState } from 'fcr-core/lib/type';
|
|
2
2
|
import { FcrBaseRoomControl } from 'fcr-core/lib/room-control/type';
|
|
3
|
-
import { FcrUISharedLayoutDataSource } from '../../shared-data-source/layout-data';
|
|
4
3
|
import { FcrUIRoomProvider } from '../../providers/room-provider';
|
|
5
4
|
import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
6
5
|
import { FcrUIMessageProvider } from '../../providers/message-provider';
|
|
7
6
|
import { FcrUIVideoWindowDataSource } from '../../shared-data-source/video-window';
|
|
7
|
+
import { FcrUIMemberSharedDataSource } from '../../shared-data-source/member-data';
|
|
8
8
|
export default class LiveStreamingStore {
|
|
9
9
|
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
10
10
|
accessor isStartError: boolean;
|
|
11
11
|
private _roomControl;
|
|
12
|
-
private _userControl;
|
|
13
12
|
private _disposers;
|
|
14
|
-
private _isHost;
|
|
15
|
-
private _sharedLayoutDataSource;
|
|
16
13
|
private _roomProvider;
|
|
17
14
|
private _dialogProvider;
|
|
18
15
|
private _messageProvider;
|
|
19
16
|
private _sharedVideoWindowDataSource;
|
|
20
|
-
private
|
|
17
|
+
private _sharedMemberDataSource;
|
|
21
18
|
get liveStreamingState(): FcrLiveStreamingState;
|
|
22
19
|
get videoStreamingUrl(): string;
|
|
23
20
|
get videoStreamingKey(): string;
|
|
24
21
|
get playUrl(): string;
|
|
25
|
-
constructor({ roomControl,
|
|
22
|
+
constructor({ roomControl, roomProvider, dialogProvider, messageProvider, sharedVideoWindowDataSource, sharedMemberDataSource, }: {
|
|
26
23
|
roomControl: FcrBaseRoomControl;
|
|
27
|
-
sharedLayoutDataSource: FcrUISharedLayoutDataSource;
|
|
28
24
|
sharedVideoWindowDataSource: FcrUIVideoWindowDataSource;
|
|
29
25
|
roomProvider: FcrUIRoomProvider;
|
|
30
26
|
dialogProvider: FcrUIDialogProvider;
|
|
31
27
|
messageProvider: FcrUIMessageProvider;
|
|
28
|
+
sharedMemberDataSource: FcrUIMemberSharedDataSource;
|
|
32
29
|
});
|
|
33
30
|
release(): void;
|
|
34
31
|
closeLiveStreaming(): void;
|
|
35
32
|
get _layoutView(): import("../../type").FcrUIVideoWindowLayoutType;
|
|
36
33
|
onLiveButtonClick(videoSteamingUrl: string, videoStreamingKey: string, playUrl: string): Promise<void>;
|
|
37
34
|
private _startLiveStreaming;
|
|
38
|
-
private _onUserInfoUpdated;
|
|
39
35
|
private _updateLiveStreamingLayout;
|
|
40
36
|
}
|
|
41
37
|
export declare const StoreContext: import("react").Context<LiveStreamingStore>;
|
|
@@ -43,7 +43,6 @@ require("core-js/modules/es.array.push.js");
|
|
|
43
43
|
require("core-js/modules/es.object.to-string.js");
|
|
44
44
|
require("core-js/modules/es.string.iterator.js");
|
|
45
45
|
require("core-js/modules/es.weak-map.js");
|
|
46
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
47
46
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
48
47
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
49
48
|
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
@@ -58,9 +57,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
58
57
|
var _type = require("fcr-core/lib/type");
|
|
59
58
|
var _mobx = require("mobx");
|
|
60
59
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
61
|
-
var _logger = require("agora-foundation/lib/logger");
|
|
62
60
|
var _react = require("react");
|
|
63
61
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
62
|
+
var _logger = require("../../utilities/logger");
|
|
64
63
|
var _LiveStreamingStore;
|
|
65
64
|
var _initProto, _init_isStartError, _onLiveButtonClickDecs, _startLiveStreamingDecs, _ref;
|
|
66
65
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
@@ -79,27 +78,23 @@ var LiveStreamingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
79
78
|
function LiveStreamingStore(_ref2) {
|
|
80
79
|
var _this = this;
|
|
81
80
|
var roomControl = _ref2.roomControl,
|
|
82
|
-
sharedLayoutDataSource = _ref2.sharedLayoutDataSource,
|
|
83
81
|
roomProvider = _ref2.roomProvider,
|
|
84
82
|
dialogProvider = _ref2.dialogProvider,
|
|
85
83
|
messageProvider = _ref2.messageProvider,
|
|
86
|
-
sharedVideoWindowDataSource = _ref2.sharedVideoWindowDataSource
|
|
84
|
+
sharedVideoWindowDataSource = _ref2.sharedVideoWindowDataSource,
|
|
85
|
+
sharedMemberDataSource = _ref2.sharedMemberDataSource;
|
|
87
86
|
(0, _classCallCheck2["default"])(this, LiveStreamingStore);
|
|
88
|
-
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.
|
|
87
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
88
|
+
prefix: 'LiveStreamingStore'
|
|
89
|
+
})));
|
|
89
90
|
_classPrivateFieldInitSpec(this, _A, _init_isStartError(this, false));
|
|
90
91
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
91
|
-
(0, _defineProperty2["default"])(this, "_userObserver", {
|
|
92
|
-
onUserInfoUpdated: this._onUserInfoUpdated
|
|
93
|
-
});
|
|
94
92
|
this._roomControl = roomControl;
|
|
95
|
-
this._userControl = roomControl.getUserControl();
|
|
96
|
-
this._isHost = this._userControl.getLocalUser().userRole === _type.FcrUserRole.HOST;
|
|
97
93
|
this._roomProvider = roomProvider;
|
|
98
94
|
this._dialogProvider = dialogProvider;
|
|
99
95
|
this._messageProvider = messageProvider;
|
|
100
|
-
this._sharedLayoutDataSource = sharedLayoutDataSource;
|
|
101
96
|
this._sharedVideoWindowDataSource = sharedVideoWindowDataSource;
|
|
102
|
-
this.
|
|
97
|
+
this._sharedMemberDataSource = sharedMemberDataSource;
|
|
103
98
|
this._disposers.push((0, _mobx.reaction)(function () {
|
|
104
99
|
var _this$_sharedVideoWin;
|
|
105
100
|
return (_this$_sharedVideoWin = _this._sharedVideoWindowDataSource) === null || _this$_sharedVideoWin === void 0 ? void 0 : _this$_sharedVideoWin.layoutType;
|
|
@@ -143,7 +138,6 @@ var LiveStreamingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
143
138
|
return disposer();
|
|
144
139
|
});
|
|
145
140
|
this._disposers = [];
|
|
146
|
-
this._userControl.removeObserver(this._userObserver);
|
|
147
141
|
}
|
|
148
142
|
}, {
|
|
149
143
|
key: "closeLiveStreaming",
|
|
@@ -230,15 +224,10 @@ var LiveStreamingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
230
224
|
}
|
|
231
225
|
return _startLiveStreaming;
|
|
232
226
|
}()
|
|
233
|
-
}, {
|
|
234
|
-
key: "_onUserInfoUpdated",
|
|
235
|
-
value: function _onUserInfoUpdated(roomId, event) {
|
|
236
|
-
this._isHost = this._userControl.getLocalUser().userRole === _type.FcrUserRole.HOST;
|
|
237
|
-
}
|
|
238
227
|
}, {
|
|
239
228
|
key: "_updateLiveStreamingLayout",
|
|
240
229
|
value: function _updateLiveStreamingLayout() {
|
|
241
|
-
if (!this.
|
|
230
|
+
if (!this._sharedMemberDataSource.isLocalUserHost) {
|
|
242
231
|
return;
|
|
243
232
|
}
|
|
244
233
|
if (this.liveStreamingState !== _type.FcrLiveStreamingState.STARTED) {
|
|
@@ -249,7 +238,7 @@ var LiveStreamingStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
249
238
|
}]);
|
|
250
239
|
}();
|
|
251
240
|
_LiveStreamingStore = LiveStreamingStore;
|
|
252
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LiveStreamingStore, [[_mobx.observable, 1, "isStartError"], [_onLiveButtonClickDecs, 18, "onLiveButtonClick"], [_startLiveStreamingDecs, 18, "_startLiveStreaming"], [_decorator.bound, 2, "
|
|
241
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LiveStreamingStore, [[_mobx.observable, 1, "isStartError"], [_onLiveButtonClickDecs, 18, "onLiveButtonClick"], [_startLiveStreamingDecs, 18, "_startLiveStreaming"], [_decorator.bound, 2, "_updateLiveStreamingLayout"]], []).e, 2);
|
|
253
242
|
_init_isStartError = _applyDecs$e[0];
|
|
254
243
|
_initProto = _applyDecs$e[1];
|
|
255
244
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -58,3 +58,20 @@
|
|
|
58
58
|
font-size: 12px;
|
|
59
59
|
cursor: pointer;
|
|
60
60
|
}
|
|
61
|
+
|
|
62
|
+
.fcr-notification_bottom {
|
|
63
|
+
left: 50%;
|
|
64
|
+
transform: translateX(-50%);
|
|
65
|
+
bottom: 0;
|
|
66
|
+
}
|
|
67
|
+
.fcr-notification_bottom .rc-notification-notice-wrapper {
|
|
68
|
+
transform: translate3d(0px, 0px, 0px) !important;
|
|
69
|
+
top: unset;
|
|
70
|
+
bottom: 59px;
|
|
71
|
+
background-color: transparent;
|
|
72
|
+
box-shadow: none;
|
|
73
|
+
}
|
|
74
|
+
.fcr-notification_bottom .rc-notification-notice-content {
|
|
75
|
+
padding: 0;
|
|
76
|
+
text-align: center;
|
|
77
|
+
}
|
|
@@ -8,7 +8,8 @@ exports.InterpreterStatus = void 0;
|
|
|
8
8
|
require("core-js/modules/es.array.concat.js");
|
|
9
9
|
require("core-js/modules/es.array.join.js");
|
|
10
10
|
require("core-js/modules/es.array.map.js");
|
|
11
|
-
require("core-js/modules/
|
|
11
|
+
require("core-js/modules/es.object.to-string.js");
|
|
12
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
12
13
|
require("core-js/modules/esnext.iterator.map.js");
|
|
13
14
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
14
15
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
@@ -45,9 +45,9 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
45
45
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
46
46
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
47
47
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
48
|
-
var _logger = require("agora-foundation/lib/logger");
|
|
49
48
|
var _mobx = require("mobx");
|
|
50
49
|
var _react = require("react");
|
|
50
|
+
var _logger = require("../../utilities/logger");
|
|
51
51
|
var _NotificationStore;
|
|
52
52
|
var _initProto;
|
|
53
53
|
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
@@ -59,7 +59,9 @@ var NotificationStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
59
59
|
function NotificationStore(_ref) {
|
|
60
60
|
var sharedWaitingRoomDataSource = _ref.sharedWaitingRoomDataSource;
|
|
61
61
|
(0, _classCallCheck2["default"])(this, NotificationStore);
|
|
62
|
-
(0, _defineProperty2["default"])(this, "logger", (_initProto(this), (0, _logger.
|
|
62
|
+
(0, _defineProperty2["default"])(this, "logger", (_initProto(this), (0, _logger.createLogger)({
|
|
63
|
+
prefix: 'NotificationStore'
|
|
64
|
+
})));
|
|
63
65
|
this._sharedWaitingRoomDataSource = sharedWaitingRoomDataSource;
|
|
64
66
|
}
|
|
65
67
|
return (0, _createClass2["default"])(NotificationStore, [{
|
|
@@ -29,6 +29,7 @@ var _button = require("agora-ui-foundation/lib/components/button");
|
|
|
29
29
|
var _interpreterStatus = require("./interpreter-status");
|
|
30
30
|
require("./index.css");
|
|
31
31
|
var _type2 = require("../../type");
|
|
32
|
+
var _notificationToast = _interopRequireDefault(require("agora-ui-foundation/lib/components/notification-toast"));
|
|
32
33
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
34
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
34
35
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -76,11 +77,15 @@ var Content = (0, _mobxReact.observer)(function (_ref) {
|
|
|
76
77
|
})]
|
|
77
78
|
});
|
|
78
79
|
});
|
|
79
|
-
var ContentMap = (0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _type2.FcrUINotificationContentType.WAITING_ROOM, Content), _type2.FcrUINotificationContentType.INTERPRETER_STATUS, _interpreterStatus.InterpreterStatus);
|
|
80
|
+
var ContentMap = (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _type2.FcrUINotificationContentType.WAITING_ROOM, Content), _type2.FcrUINotificationContentType.INTERPRETER_STATUS, _interpreterStatus.InterpreterStatus), _type2.FcrUINotificationContentType.TOAST, _notificationToast["default"]);
|
|
80
81
|
var View = exports.View = function View(_ref2) {
|
|
81
82
|
var uiEventStore = _ref2.uiEventStore,
|
|
82
83
|
messageProvider = _ref2.messageProvider;
|
|
83
|
-
var _useFcrNotification = (0, _notification["default"])(
|
|
84
|
+
var _useFcrNotification = (0, _notification["default"])({
|
|
85
|
+
className: function className(placement) {
|
|
86
|
+
return "fcr-notification_".concat(placement);
|
|
87
|
+
}
|
|
88
|
+
}),
|
|
84
89
|
_useFcrNotification2 = (0, _slicedToArray2["default"])(_useFcrNotification, 2),
|
|
85
90
|
notification = _useFcrNotification2[0],
|
|
86
91
|
contextHolder = _useFcrNotification2[1];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UIModule } from '../../base';
|
|
2
2
|
import { FcrStreamControl, FcrUserControl } from 'fcr-core';
|
|
3
3
|
export declare class OffscreenPullingUIModule extends UIModule {
|
|
4
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
4
5
|
private _streamControl;
|
|
5
6
|
private _userControl;
|
|
6
7
|
private _streamObserver;
|
|
@@ -15,7 +15,6 @@ require("core-js/modules/es.map.js");
|
|
|
15
15
|
require("core-js/modules/es.object.to-string.js");
|
|
16
16
|
require("core-js/modules/es.parse-int.js");
|
|
17
17
|
require("core-js/modules/es.string.iterator.js");
|
|
18
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
19
18
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
20
19
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
21
20
|
require("core-js/modules/esnext.map.delete-all.js");
|
|
@@ -42,6 +41,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
42
41
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
43
42
|
var _base = require("../../base");
|
|
44
43
|
var _fcrCore = require("fcr-core");
|
|
44
|
+
var _logger = require("../../utilities/logger");
|
|
45
45
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
46
46
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
47
47
|
var OffscreenPullingUIModule = exports.OffscreenPullingUIModule = /*#__PURE__*/function (_UIModule) {
|
|
@@ -54,6 +54,9 @@ var OffscreenPullingUIModule = exports.OffscreenPullingUIModule = /*#__PURE__*/f
|
|
|
54
54
|
pullingStreamType = _ref.pullingStreamType;
|
|
55
55
|
(0, _classCallCheck2["default"])(this, OffscreenPullingUIModule);
|
|
56
56
|
_this = _callSuper(this, OffscreenPullingUIModule, [null, null]);
|
|
57
|
+
(0, _defineProperty2["default"])(_this, "logger", (0, _logger.createLogger)({
|
|
58
|
+
prefix: 'OffscreenPullingUIModule'
|
|
59
|
+
}));
|
|
57
60
|
(0, _defineProperty2["default"])(_this, "_pullingStreamMap", new Map());
|
|
58
61
|
_this._streamControl = streamControl;
|
|
59
62
|
_this._userControl = userControl;
|
|
@@ -16,3 +16,54 @@
|
|
|
16
16
|
max-width: 300px;
|
|
17
17
|
padding: 0;
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
.operate-waiting-room-dialog-content {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
background: white;
|
|
26
|
+
padding: 20px;
|
|
27
|
+
border-radius: 20px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.operate-waiting-room-dialog-title {
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
margin-bottom: 10px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.operate-waiting-room-dialog-tooltip {
|
|
37
|
+
margin-bottom: 10px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.operate-waiting-room-dialog-confirm {
|
|
41
|
+
display: flex;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.operate-waiting-room-dialog-btns {
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: space-between;
|
|
47
|
+
width: 100%;
|
|
48
|
+
margin-top: 10px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.operate-waiting-room-dialog-btns .fcr-button-normal {
|
|
52
|
+
width: 48%;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.operate-waiting-room-dialog-btns .fcr-button-white {
|
|
56
|
+
background-color: var(--fcr_ui_scene_btn2);
|
|
57
|
+
color: var(--fcr_ui_scene_icontext2);
|
|
58
|
+
width: 48%;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.operate-waiting-room-dialog-btns .fcr-button-white:hover {
|
|
62
|
+
background-color: var(--fcr_ui_scene_btn2) !important;
|
|
63
|
+
color: var(--fcr_ui_scene_icontext2) !important;
|
|
64
|
+
width: 48%;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.operate-waiting-room-dialog-btns .fcr-button-danger {
|
|
68
|
+
width: 48%;
|
|
69
|
+
}
|
|
@@ -2,21 +2,18 @@ import { ParticipantActionType, User } from 'agora-ui-foundation/lib/components/
|
|
|
2
2
|
import { FcrUserRole } from '../../../type';
|
|
3
3
|
import './index.css';
|
|
4
4
|
import { FcrPrivilegeUserRole } from 'fcr-core';
|
|
5
|
-
import { DialogKey } from '../../../utilities/constant';
|
|
6
5
|
import { FcrInterpreterUserInfo, FcrLanguage } from 'fcr-core/lib/room-control/interpreter-control/types';
|
|
7
6
|
import { FcrUserKickedOutType } from 'fcr-core/lib/room-control/user-control/type';
|
|
7
|
+
import { FcrRoomType } from 'fcr-core/lib/room-control/type';
|
|
8
|
+
import './index.css';
|
|
8
9
|
export type OperateWaitingRoomMemberDialogProps = {
|
|
9
10
|
type: 'remove' | 'removeAll' | 'admitAll';
|
|
10
11
|
tooltip: string;
|
|
11
12
|
title: string;
|
|
12
13
|
userId?: string;
|
|
14
|
+
onChecked?: (value: boolean) => void;
|
|
13
15
|
};
|
|
14
|
-
export declare const
|
|
15
|
-
remove: DialogKey;
|
|
16
|
-
removeAll: DialogKey;
|
|
17
|
-
admitAll: DialogKey;
|
|
18
|
-
};
|
|
19
|
-
export declare const OperateWaitingRoomMemberDialog: ({ type, tooltip, title, userId, }: OperateWaitingRoomMemberDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const OperateWaitingRoomMemberDialog: ({ type, tooltip, onChecked, }: OperateWaitingRoomMemberDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
17
|
interface ParticipantAttendeeProps extends User {
|
|
21
18
|
onParticipantsButtonClick: (action: ParticipantActionType, userId: string, type?: FcrUserKickedOutType | undefined) => void;
|
|
22
19
|
currentPerspectiveType?: 'host' | 'attendee' | 'cohost';
|
|
@@ -28,7 +25,7 @@ interface ParticipantAttendeeProps extends User {
|
|
|
28
25
|
hasMutePermission: (role: FcrPrivilegeUserRole | FcrUserRole) => boolean;
|
|
29
26
|
hasUnmutePermission: (role: FcrPrivilegeUserRole | FcrUserRole) => boolean;
|
|
30
27
|
hasRequestStartAudioPermission: (role: FcrPrivilegeUserRole | FcrUserRole) => boolean;
|
|
31
|
-
activeTab:
|
|
28
|
+
activeTab: FcrRoomType;
|
|
32
29
|
moveToMainRoomByUserIds: (userId: string[]) => void;
|
|
33
30
|
interpreterUsers?: FcrInterpreterUserInfo[] | null;
|
|
34
31
|
interpreterState: boolean;
|
|
@@ -9,8 +9,6 @@ require("core-js/modules/es.object.define-property.js");
|
|
|
9
9
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
10
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
11
|
require("core-js/modules/es.object.keys.js");
|
|
12
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
13
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
14
12
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
15
13
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
16
14
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
@@ -18,10 +16,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
18
16
|
Object.defineProperty(exports, "__esModule", {
|
|
19
17
|
value: true
|
|
20
18
|
});
|
|
21
|
-
exports.
|
|
19
|
+
exports.ParticipantAttendee = exports.OperateWaitingRoomMemberDialog = void 0;
|
|
22
20
|
require("core-js/modules/es.array.find.js");
|
|
23
21
|
require("core-js/modules/es.object.to-string.js");
|
|
24
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
25
22
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
26
23
|
require("core-js/modules/esnext.iterator.find.js");
|
|
27
24
|
require("core-js/modules/web.timers.js");
|
|
@@ -46,47 +43,26 @@ require("./index.css");
|
|
|
46
43
|
var _helper = require("agora-ui-foundation/lib/components/avatar/helper");
|
|
47
44
|
var _fcrCore = require("fcr-core");
|
|
48
45
|
var _participantsMore = require("agora-ui-foundation/lib/components/participants/participants-more");
|
|
49
|
-
var _constant = require("../../../utilities/constant");
|
|
50
46
|
var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
|
|
51
|
-
var _button = require("agora-ui-foundation/lib/components/button");
|
|
52
47
|
var _useLanguageConfig = require("../../interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig");
|
|
53
|
-
var _type3 = require("fcr-core/lib/room-control/user-control/type");
|
|
54
48
|
var _useClickAnywhere = require("agora-ui-foundation/lib/hooks/use-click-anywhere");
|
|
55
49
|
var _useElectron = require("../../dialog/hooks/useElectron");
|
|
50
|
+
var _type3 = require("fcr-core/lib/room-control/type");
|
|
56
51
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
57
52
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
58
53
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
59
|
-
var WaitingRoomDialogKeyMap = exports.WaitingRoomDialogKeyMap = {
|
|
60
|
-
remove: _constant.DialogKey.WAITING_ROOM_SINGLE_REMOVE,
|
|
61
|
-
removeAll: _constant.DialogKey.WAITING_ROOM_ALL_REMOVE,
|
|
62
|
-
admitAll: _constant.DialogKey.WAITING_ROOM_ALL_ADMIT
|
|
63
|
-
};
|
|
64
54
|
var OperateWaitingRoomMemberDialog = exports.OperateWaitingRoomMemberDialog = function OperateWaitingRoomMemberDialog(_ref) {
|
|
65
55
|
var type = _ref.type,
|
|
66
56
|
tooltip = _ref.tooltip,
|
|
67
|
-
|
|
68
|
-
userId = _ref.userId;
|
|
57
|
+
onChecked = _ref.onChecked;
|
|
69
58
|
var t = (0, _i18n.useI18n)();
|
|
70
59
|
var _useState = (0, _react.useState)(false),
|
|
71
60
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
72
61
|
isChecked = _useState2[0],
|
|
73
62
|
setIsChecked = _useState2[1];
|
|
74
|
-
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
75
|
-
removeWaitingRoomUser = _useContext.removeWaitingRoomUser,
|
|
76
|
-
moveToMainRoomAllMember = _useContext.moveToMainRoomAllMember,
|
|
77
|
-
kickOutWaitingRoomAllMember = _useContext.kickOutWaitingRoomAllMember,
|
|
78
|
-
closeRemoveAdmitWaitingRoomDialog = _useContext.closeRemoveAdmitWaitingRoomDialog;
|
|
79
|
-
var buttonTextMap = {
|
|
80
|
-
removeAll: t('fmt_waitingroom_sidebar_button_removeall'),
|
|
81
|
-
admitAll: t('fmt_waitingroom_sidebar_button_admitall'),
|
|
82
|
-
remove: t('fmt_waitingroom_sidebar_popup_button_remove')
|
|
83
|
-
};
|
|
84
63
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
85
64
|
className: "operate-waiting-room-dialog-content",
|
|
86
65
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
87
|
-
className: "operate-waiting-room-dialog-title",
|
|
88
|
-
children: title
|
|
89
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
90
66
|
className: "operate-waiting-room-dialog-tooltip",
|
|
91
67
|
children: tooltip
|
|
92
68
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -94,7 +70,10 @@ var OperateWaitingRoomMemberDialog = exports.OperateWaitingRoomMemberDialog = fu
|
|
|
94
70
|
children: type === 'admitAll' ? null : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
95
71
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
96
72
|
checked: isChecked,
|
|
97
|
-
onChange:
|
|
73
|
+
onChange: function onChange(value) {
|
|
74
|
+
setIsChecked(value);
|
|
75
|
+
onChecked && onChecked(value);
|
|
76
|
+
},
|
|
98
77
|
size: "small",
|
|
99
78
|
styleType: "white"
|
|
100
79
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -104,34 +83,6 @@ var OperateWaitingRoomMemberDialog = exports.OperateWaitingRoomMemberDialog = fu
|
|
|
104
83
|
children: t('fmt_waitingroom_sidebar_popup_option_notagain')
|
|
105
84
|
})]
|
|
106
85
|
})
|
|
107
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
108
|
-
className: "operate-waiting-room-dialog-btns",
|
|
109
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
110
|
-
size: "S",
|
|
111
|
-
shape: "rounded",
|
|
112
|
-
styleType: "white",
|
|
113
|
-
onClick: function onClick() {
|
|
114
|
-
closeRemoveAdmitWaitingRoomDialog(WaitingRoomDialogKeyMap[type]);
|
|
115
|
-
},
|
|
116
|
-
children: t('fmt_waitingroom_sidebar_popup_button_cancel')
|
|
117
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
118
|
-
size: "S",
|
|
119
|
-
shape: "rounded",
|
|
120
|
-
styleType: type === 'admitAll' ? 'normal' : 'danger',
|
|
121
|
-
onClick: function onClick() {
|
|
122
|
-
if (type === 'remove') {
|
|
123
|
-
removeWaitingRoomUser(userId, isChecked ? _type3.FcrUserKickedOutType.Forever : _type3.FcrUserKickedOutType.Once);
|
|
124
|
-
}
|
|
125
|
-
if (type === 'removeAll') {
|
|
126
|
-
kickOutWaitingRoomAllMember(isChecked ? _type3.FcrUserKickedOutType.Forever : _type3.FcrUserKickedOutType.Once);
|
|
127
|
-
}
|
|
128
|
-
if (type === 'admitAll') {
|
|
129
|
-
moveToMainRoomAllMember();
|
|
130
|
-
}
|
|
131
|
-
closeRemoveAdmitWaitingRoomDialog(WaitingRoomDialogKeyMap[type]);
|
|
132
|
-
},
|
|
133
|
-
children: buttonTextMap[type]
|
|
134
|
-
})]
|
|
135
86
|
})]
|
|
136
87
|
});
|
|
137
88
|
};
|
|
@@ -274,14 +225,14 @@ var ParticipantAttendee = exports.ParticipantAttendee = (0, _mobxReact.observer)
|
|
|
274
225
|
var timeoutId = (0, _react.useRef)();
|
|
275
226
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
276
227
|
className: "attendee__user-action attendee__user-action-host ".concat(isShowDropMenu ? 'attendee__user-action-hovered' : ''),
|
|
277
|
-
children: [isShowActionAudio && activeTab ===
|
|
228
|
+
children: [isShowActionAudio && activeTab === _type3.FcrRoomType.Mainroom && /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.FcrActionButton, {
|
|
278
229
|
size: "small",
|
|
279
230
|
onClick: handleAudioButtonClick,
|
|
280
231
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
281
232
|
className: hasAudio ? 'attendee__danger-operate' : 'attendee__normal-operate',
|
|
282
233
|
children: t(actionAudioTag)
|
|
283
234
|
})
|
|
284
|
-
}), activeTab ===
|
|
235
|
+
}), activeTab === _type3.FcrRoomType.Waitingroom && /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.FcrActionButton, {
|
|
285
236
|
size: "small",
|
|
286
237
|
onClick: function onClick() {
|
|
287
238
|
return moveToMainRoomByUserIds([userId]);
|
|
@@ -326,7 +277,7 @@ var ParticipantAttendee = exports.ParticipantAttendee = (0, _mobxReact.observer)
|
|
|
326
277
|
hasAudio: hasAudio,
|
|
327
278
|
userName: userName,
|
|
328
279
|
audioDeviceType: audioDeviceType,
|
|
329
|
-
hideActions: activeTab ===
|
|
280
|
+
hideActions: activeTab === _type3.FcrRoomType.Mainroom ? mainRoomParticipateActionsNeedHiden : waitingRoomParticipateActionsNeedHiden
|
|
330
281
|
}))
|
|
331
282
|
}),
|
|
332
283
|
placement: "bottomRight",
|
|
@@ -416,12 +367,12 @@ var ParticipantAttendee = exports.ParticipantAttendee = (0, _mobxReact.observer)
|
|
|
416
367
|
colors: {
|
|
417
368
|
iconPrimary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
418
369
|
}
|
|
419
|
-
}), audioDeviceType !== 'none' && activeTab ===
|
|
370
|
+
}), audioDeviceType !== 'none' && activeTab === _type3.FcrRoomType.Mainroom && /*#__PURE__*/(0, _jsxRuntime.jsx)(MicrophoneIndicator, {
|
|
420
371
|
audioDeviceType: audioDeviceType,
|
|
421
372
|
hasAudio: hasAudio,
|
|
422
373
|
isLocal: !!isMe,
|
|
423
374
|
userId: userId
|
|
424
|
-
}), videoDeviceType !== 'none' && activeTab ===
|
|
375
|
+
}), videoDeviceType !== 'none' && activeTab === _type3.FcrRoomType.Mainroom && /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
|
|
425
376
|
isCameraMuted: !hasVideo,
|
|
426
377
|
size: 28,
|
|
427
378
|
renderIconType: 'surface'
|
|
@@ -434,9 +385,9 @@ var MicrophoneIndicator = (0, _mobxReact.observer)(function (_ref2) {
|
|
|
434
385
|
hasAudio = _ref2.hasAudio,
|
|
435
386
|
isLocal = _ref2.isLocal,
|
|
436
387
|
userId = _ref2.userId;
|
|
437
|
-
var
|
|
438
|
-
audioVolumeMap =
|
|
439
|
-
localMicVolume =
|
|
388
|
+
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
389
|
+
audioVolumeMap = _useContext.audioVolumeMap,
|
|
390
|
+
localMicVolume = _useContext.localMicVolume;
|
|
440
391
|
var volume = isLocal ? localMicVolume : audioVolumeMap.get(userId);
|
|
441
392
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_microphoneState.MicrophoneState, {
|
|
442
393
|
isMicrophoneMuted: !hasAudio,
|
|
@@ -9,8 +9,6 @@ require("core-js/modules/es.object.define-property.js");
|
|
|
9
9
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
10
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
11
|
require("core-js/modules/es.object.keys.js");
|
|
12
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
13
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
14
12
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
15
13
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
16
14
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
@@ -21,7 +19,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21
19
|
exports.ParticipantAttendee = void 0;
|
|
22
20
|
require("core-js/modules/es.array.find.js");
|
|
23
21
|
require("core-js/modules/es.object.to-string.js");
|
|
24
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
25
22
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
26
23
|
require("core-js/modules/esnext.iterator.find.js");
|
|
27
24
|
require("core-js/modules/web.timers.js");
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
10
|
+
require("core-js/modules/es.regexp.test.js");
|
|
9
11
|
require("core-js/modules/es.string.trim.js");
|
|
10
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
13
|
var _input = require("agora-ui-foundation/lib/components/input");
|
|
@@ -26,12 +28,11 @@ function ConfirmInput(props) {
|
|
|
26
28
|
onChange(name);
|
|
27
29
|
}, [name]);
|
|
28
30
|
function handleNameChange(name) {
|
|
29
|
-
setName(name.trim());
|
|
31
|
+
type === 'number' ? (/^\d+$/.test(name) || name === '') && setName(name.trim()) : setName(name.trim());
|
|
30
32
|
}
|
|
31
33
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32
34
|
className: "participants-container-rename",
|
|
33
35
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_input.FcrInput, {
|
|
34
|
-
type: type,
|
|
35
36
|
autoFocus: true,
|
|
36
37
|
style: {
|
|
37
38
|
flex: 1
|