fcr-ui-scene 3.4.1 → 3.4.3
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.d.ts +40 -5
- package/lib/base.js +234 -22
- 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 +1 -1
- package/lib/creator.js +4 -9
- package/lib/electron/app.js +5 -4
- package/lib/electron/bootstrap-dev.js +0 -9
- package/lib/electron/bootstrap-sdk.js +10 -2
- package/lib/electron/injections.d.ts +2 -0
- package/lib/electron/injections.js +17 -7
- package/lib/electron/logger.d.ts +0 -4
- package/lib/electron/logger.js +2 -5
- package/lib/electron/main.js +1 -1
- package/lib/electron/plugins/devtool-shortcut.js +10 -1
- package/lib/electron/plugins/meeting-state.js +1 -1
- package/lib/electron/preload.js +3 -1
- package/lib/electron/tools.js +0 -4
- package/lib/electron/window.js +0 -2
- package/lib/fragments/control-bar/control-bar-store.d.ts +1 -0
- package/lib/fragments/control-bar/control-bar-store.js +9 -4
- 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/global.css +5 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +7 -4
- package/lib/login-confirm-dialog.d.ts +1 -0
- package/lib/login-confirm-dialog.js +7 -2
- 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/components/apps/app-item/index.css +1 -2
- package/lib/modules/action-bar/components/apps/app-item/index.d.ts +1 -10
- package/lib/modules/action-bar/components/apps/app-item/index.js +0 -2
- package/lib/modules/action-bar/components/apps/appitems.d.ts +1 -3
- package/lib/modules/action-bar/components/apps/appitems.js +2 -5
- package/lib/modules/action-bar/components/apps/index.css +2 -2
- package/lib/modules/action-bar/components/apps/index.js +2 -3
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -1
- package/lib/modules/action-bar/components/collapse/index.d.ts +8 -0
- package/lib/modules/action-bar/components/collapse/index.js +218 -0
- package/lib/modules/action-bar/components/interpreter/index.d.ts +1 -5
- package/lib/modules/action-bar/components/item/index.d.ts +9 -0
- package/lib/modules/action-bar/components/{item.js → item/index.js} +2 -4
- 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 +9 -26
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +1 -16
- package/lib/modules/action-bar/components/more/index.js +13 -9
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +1 -4
- package/lib/modules/action-bar/components/more/poppover-content.js +28 -9
- package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/interpreter/index.js +2 -1
- package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/virtual-image/index.js +1 -1
- package/lib/modules/action-bar/{notification-bar → components/notification-bar}/index.js +1 -3
- package/lib/modules/action-bar/components/participants/index.js +2 -2
- package/lib/modules/action-bar/components/placement/index.d.ts +4 -0
- package/lib/modules/action-bar/components/placement/index.js +18 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +1 -3
- package/lib/modules/action-bar/components/screen-share/submenu.js +25 -2
- package/lib/modules/action-bar/components/security/index.js +3 -1
- package/lib/modules/action-bar/components/smaller/index.d.ts +1 -0
- package/lib/modules/action-bar/components/smaller/index.js +52 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.d.ts +2 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.js +231 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.d.ts +3 -0
- package/lib/modules/action-bar/{trigger-output-language-room → components/trigger-subscribe-language}/guide-tooltip/index.js +14 -19
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.d.ts +5 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +206 -0
- package/lib/modules/action-bar/device/index.js +3 -1
- package/lib/modules/action-bar/enums.d.ts +23 -0
- package/lib/modules/action-bar/enums.js +35 -0
- package/lib/modules/action-bar/index.d.ts +36 -6
- package/lib/modules/action-bar/index.dev.d.ts +0 -1
- package/lib/modules/action-bar/index.dev.js +94 -121
- package/lib/modules/action-bar/index.js +46 -18
- package/lib/modules/action-bar/more/index.js +3 -6
- package/lib/modules/action-bar/screen-share/index.js +0 -5
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/smaller.js +2 -2
- package/lib/modules/action-bar/store.d.ts +84 -98
- package/lib/modules/action-bar/store.js +567 -713
- package/lib/modules/action-bar/switch-output-language-room/index.js +8 -2
- package/lib/modules/action-bar/types.d.ts +94 -0
- package/lib/modules/action-bar/view.d.ts +1 -2
- package/lib/modules/action-bar/view.js +11 -11
- package/lib/modules/audio-stream/index.d.ts +22 -10
- package/lib/modules/audio-stream/index.js +78 -85
- 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 +135 -0
- package/lib/modules/chat/chat-room-store.js +950 -0
- 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.d.ts +1 -0
- package/lib/modules/chat/components/chat-action/index.js +28 -0
- package/lib/modules/chat/components/chat-bar/index.css +85 -0
- package/lib/modules/chat/components/chat-bar/index.d.ts +3 -0
- package/lib/modules/chat/components/chat-bar/index.js +143 -0
- package/lib/modules/chat/components/chat-select/index.css +185 -0
- package/lib/modules/chat/components/chat-select/index.d.ts +3 -0
- package/lib/modules/chat/components/chat-select/index.js +234 -0
- package/lib/modules/chat/components/message-list/index.d.ts +4 -0
- package/lib/modules/chat/components/message-list/index.js +648 -0
- package/lib/modules/chat/index.d.ts +13 -5
- package/lib/modules/chat/index.dev.d.ts +0 -1
- package/lib/modules/chat/index.dev.js +71 -72
- package/lib/modules/chat/index.js +45 -22
- package/lib/modules/chat/message-list.js +1 -4
- package/lib/modules/chat/mock.d.ts +1 -1
- package/lib/modules/chat/store.d.ts +17 -162
- package/lib/modules/chat/store.js +95 -964
- package/lib/modules/chat/types.d.ts +70 -0
- package/lib/modules/chat/types.js +17 -0
- package/lib/modules/chat/view.d.ts +10 -0
- package/lib/modules/chat/view.js +368 -0
- package/lib/modules/components/device-control/components/audio-menu/index.js +4 -3
- package/lib/modules/components/device-control/components/microphone/index.js +7 -7
- package/lib/modules/components/device-control/components/video-menu/index.js +2 -1
- package/lib/modules/components/device-control/store.d.ts +11 -12
- package/lib/modules/components/device-control/store.js +46 -50
- package/lib/modules/components/leave-meeting/components/assign-host.d.ts +3 -0
- package/lib/modules/components/leave-meeting/components/assign-host.js +70 -0
- package/lib/modules/components/leave-meeting/components/index.css +125 -0
- package/lib/modules/components/leave-meeting/index.d.ts +4 -0
- package/lib/modules/components/leave-meeting/index.js +147 -0
- package/lib/modules/components/leave-meeting/store.d.ts +31 -0
- package/lib/modules/components/leave-meeting/store.js +290 -0
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +12 -10
- package/lib/modules/components/security-menu/index.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +35 -39
- package/lib/modules/components/tab-frame/index.d.ts +2 -2
- package/lib/modules/components/tab-frame/index.js +24 -7
- package/lib/modules/connection-gateway/components/computer/index.js +4 -4
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -1
- package/lib/modules/connection-gateway/components/phone/index.js +4 -3
- package/lib/modules/connection-gateway/enums.d.ts +4 -0
- package/lib/modules/connection-gateway/enums.js +12 -0
- package/lib/modules/connection-gateway/index.d.ts +13 -4
- package/lib/modules/connection-gateway/index.js +25 -15
- package/lib/modules/connection-gateway/store.d.ts +22 -18
- package/lib/modules/connection-gateway/store.js +60 -40
- package/lib/modules/connection-gateway/types.d.ts +4 -0
- package/lib/modules/connection-gateway/types.js +6 -0
- package/lib/modules/connection-gateway/view.js +2 -2
- package/lib/modules/control-bar/components/meeting-details/index.js +25 -28
- package/lib/modules/control-bar/components/more-actions/index.css +18 -0
- package/lib/modules/control-bar/components/more-actions/index.d.ts +1 -5
- package/lib/modules/control-bar/components/more-actions/index.js +48 -11
- package/lib/modules/control-bar/components/share-state-nav/index.d.ts +1 -7
- package/lib/modules/control-bar/components/share-state-nav/index.js +2 -1
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +1 -1
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +2 -2
- package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +1 -10
- package/lib/modules/control-bar/components/transfer-position-icon/index.js +7 -12
- package/lib/modules/control-bar/enums.d.ts +21 -0
- package/lib/modules/control-bar/enums.js +31 -0
- package/lib/modules/control-bar/index.d.ts +30 -7
- package/lib/modules/control-bar/index.js +46 -29
- package/lib/modules/control-bar/store.d.ts +38 -26
- package/lib/modules/control-bar/store.js +172 -286
- package/lib/modules/control-bar/types.d.ts +20 -0
- package/lib/modules/control-bar/types.js +6 -0
- package/lib/modules/control-bar/view.js +68 -36
- package/lib/modules/device-pretest/index.js +4 -4
- package/lib/modules/device-pretest/settings/beauty.js +2 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -1
- package/lib/modules/device-pretest/store.d.ts +8 -9
- package/lib/modules/device-pretest/store.js +51 -37
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +19 -10
- package/lib/modules/dialog/components/chat/index.js +2 -2
- package/lib/modules/dialog/components/confirm/index.js +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +8 -10
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +20 -7
- package/lib/modules/dialog/components/connection-gateway/tabs.d.ts +6 -0
- package/lib/modules/dialog/components/connection-gateway/tabs.js +44 -0
- package/lib/modules/dialog/components/control-bar/index.d.ts +5 -1
- package/lib/modules/dialog/components/control-bar/index.js +122 -9
- package/lib/modules/dialog/components/device-setting/electron.js +6 -2
- package/lib/modules/dialog/components/device-setting/index.js +2 -2
- package/lib/modules/dialog/components/dialog-container/component/body.js +75 -0
- package/lib/modules/{components → dialog/components}/dialog-container/index.css +6 -3
- package/lib/modules/{components → dialog/components}/dialog-container/index.d.ts +7 -2
- package/lib/modules/{components → dialog/components}/dialog-container/index.js +27 -25
- package/lib/modules/dialog/components/interpreter/electron.js +37 -0
- package/lib/modules/dialog/components/{Interpreter → interpreter}/index.js +2 -2
- package/lib/modules/dialog/components/invite/index.js +32 -7
- package/lib/modules/dialog/components/live-streaming/index.js +9 -5
- package/lib/modules/dialog/components/participant/electron.js +11 -5
- package/lib/modules/dialog/components/participant/index.js +4 -3
- 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 +9 -5
- package/lib/modules/dialog/components/system-preference/electron.js +1 -1
- package/lib/modules/dialog/components/system-preference/index.js +0 -2
- package/lib/modules/dialog/components/toast/index.js +1 -1
- package/lib/modules/dialog/components/video-window/index.d.ts +2 -0
- package/lib/modules/dialog/components/video-window/index.js +148 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -2
- package/lib/modules/dialog/dialogs.d.ts +2 -5
- package/lib/modules/dialog/dialogs.js +2 -157
- package/lib/modules/dialog/hooks/useElectron.d.ts +3 -25
- package/lib/modules/dialog/hooks/useElectron.js +90 -36
- package/lib/modules/dialog/index.d.ts +30 -4
- package/lib/modules/dialog/index.js +61 -7
- package/lib/modules/dialog/store.d.ts +46 -12
- package/lib/modules/dialog/store.js +121 -68
- package/lib/modules/dialog/types/index.d.ts +14 -3
- package/lib/modules/dialog/view.js +2 -1
- package/lib/modules/event-confirm/index.css +1 -1
- package/lib/modules/event-confirm/index.d.ts +13 -6
- package/lib/modules/event-confirm/index.js +28 -11
- package/lib/modules/event-confirm/store.d.ts +9 -3
- package/lib/modules/event-confirm/store.js +16 -10
- package/lib/modules/event-confirm/view.js +7 -6
- package/lib/modules/event-toast/index.d.ts +7 -6
- package/lib/modules/event-toast/index.js +19 -8
- package/lib/modules/event-toast/store.d.ts +8 -3
- package/lib/modules/event-toast/store.js +15 -8
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.js +5 -5
- package/lib/modules/{Interpreter → interpreter}/constant.d.ts +0 -4
- package/lib/modules/{Interpreter → interpreter}/constant.js +3 -45
- package/lib/modules/{Interpreter → interpreter}/dialog-content/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/dialog-content/index.js +4 -4
- package/lib/modules/interpreter/index.d.ts +15 -0
- package/lib/modules/{Interpreter → interpreter}/index.js +23 -8
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.d.ts +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.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.js +14 -18
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.js +2 -2
- package/lib/modules/interpreter/store.d.ts +50 -0
- package/lib/modules/interpreter/store.js +584 -0
- package/lib/modules/interpreter/type.d.ts +24 -0
- package/lib/modules/interpreter/type.js +12 -0
- package/lib/modules/{Interpreter → interpreter}/utils.d.ts +1 -5
- package/lib/modules/interpreter/utils.js +80 -0
- package/lib/modules/{Interpreter → interpreter}/view.js +19 -3
- package/lib/modules/invite/components/error-tips.d.ts +4 -0
- package/lib/modules/invite/components/error-tips.js +18 -0
- package/lib/modules/invite/components/pstn-invite.d.ts +2 -0
- package/lib/modules/invite/components/pstn-invite.js +288 -0
- package/lib/modules/invite/components/voip-invite.d.ts +1 -0
- package/lib/modules/invite/components/voip-invite.js +276 -0
- package/lib/modules/invite/enums.d.ts +22 -0
- package/lib/modules/invite/enums.js +34 -0
- package/lib/modules/invite/index.d.ts +7 -8
- package/lib/modules/invite/index.js +17 -15
- package/lib/modules/invite/store.d.ts +13 -26
- package/lib/modules/invite/store.js +62 -26
- package/lib/modules/invite/types.d.ts +14 -0
- package/lib/modules/invite/types.js +6 -0
- package/lib/modules/invite/view.d.ts +0 -4
- package/lib/modules/invite/view.js +7 -11
- package/lib/modules/invite/voip-invite.js +3 -3
- package/lib/modules/layout/components/Aside.js +34 -17
- package/lib/modules/layout/components/Carousel.js +3 -2
- package/lib/modules/layout/components/Gallery.js +3 -3
- package/lib/modules/layout/components/Layout.js +4 -7
- package/lib/modules/layout/components/index.d.ts +1 -1
- package/lib/modules/layout/components/index.js +4 -5
- package/lib/modules/layout/components/who-is-speaking.d.ts +2 -0
- package/lib/modules/layout/components/who-is-speaking.js +60 -0
- package/lib/modules/layout/index.d.ts +26 -4
- package/lib/modules/layout/index.dev.d.ts +0 -1
- package/lib/modules/layout/index.dev.js +312 -386
- package/lib/modules/layout/index.js +25 -10
- 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 +61 -71
- package/lib/modules/layout/store.js +311 -576
- package/lib/modules/layout/type.js +2 -0
- package/lib/modules/layout/video-window-datasource.js +0 -4
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +127 -2
- package/lib/modules/live-streaming/index.d.ts +15 -7
- package/lib/modules/live-streaming/index.dev.js +13 -13
- package/lib/modules/live-streaming/index.js +20 -15
- package/lib/modules/live-streaming/store.d.ts +21 -14
- package/lib/modules/live-streaming/store.js +83 -144
- package/lib/modules/live-streaming/view.js +2 -2
- package/lib/modules/notification/index.d.ts +9 -11
- package/lib/modules/notification/index.js +21 -14
- package/lib/modules/notification/interpreter-status/index.js +3 -3
- package/lib/modules/notification/store.d.ts +5 -11
- package/lib/modules/notification/store.js +12 -62
- package/lib/modules/notification/view.d.ts +5 -3
- package/lib/modules/notification/view.js +8 -5
- package/lib/modules/offscreen-pulling/index.js +1 -2
- 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/components/microphone-indicator/index.d.ts +6 -0
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.js +28 -0
- package/lib/modules/participant/components/attendee/components/user-avatar/index.d.ts +7 -0
- package/lib/modules/participant/components/attendee/components/user-avatar/index.js +39 -0
- package/lib/modules/participant/components/attendee/index.css +69 -0
- package/lib/modules/participant/components/attendee/index.d.ts +4 -0
- package/lib/modules/participant/components/attendee/index.js +334 -0
- package/lib/modules/participant/components/can-moveable/index.d.ts +1 -0
- package/lib/modules/participant/components/can-moveable/index.js +68 -0
- package/lib/modules/participant/components/drop-menu/index.js +8 -11
- package/lib/modules/participant/components/footer/buttons.d.ts +2 -3
- package/lib/modules/participant/components/footer/buttons.js +2 -3
- package/lib/modules/participant/components/footer/index.js +2 -2
- package/lib/modules/participant/components/mute-all/index.d.ts +3 -4
- package/lib/modules/participant/components/mute-all/index.js +31 -44
- package/lib/modules/participant/components/operate-waitingroom-member/index.d.ts +2 -0
- package/lib/modules/participant/components/operate-waitingroom-member/index.js +48 -0
- package/lib/modules/participant/components/participants/index.js +27 -51
- package/lib/modules/participant/components/user-action/index.d.ts +17 -0
- package/lib/modules/participant/components/user-action/index.js +167 -0
- package/lib/modules/participant/index.d.ts +34 -7
- package/lib/modules/participant/index.dev.d.ts +0 -1
- package/lib/modules/participant/index.dev.js +87 -116
- package/lib/modules/participant/index.js +39 -15
- package/lib/modules/participant/member-list-data-source.d.ts +4 -1
- package/lib/modules/participant/member-list-data-source.js +57 -33
- package/lib/modules/participant/store.d.ts +58 -25
- package/lib/modules/participant/store.js +321 -303
- package/lib/modules/participant/type.d.ts +45 -1
- package/lib/modules/participant/type.js +15 -1
- package/lib/modules/pc-audio-connect/index.css +12 -0
- package/lib/modules/pc-audio-connect/index.d.ts +22 -0
- package/lib/modules/pc-audio-connect/index.js +68 -0
- package/lib/modules/pc-audio-connect/store.d.ts +46 -0
- package/lib/modules/pc-audio-connect/store.js +300 -0
- package/lib/modules/pc-audio-connect/types.d.ts +0 -0
- package/lib/modules/pc-audio-connect/types.js +1 -0
- package/lib/modules/pc-audio-connect/view.d.ts +3 -0
- package/lib/modules/pc-audio-connect/view.js +66 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.css +36 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.d.ts +10 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +78 -0
- package/lib/modules/phone-audio-connect/components/calling/index.css +72 -0
- package/lib/modules/phone-audio-connect/components/calling/index.d.ts +7 -0
- package/lib/modules/phone-audio-connect/components/calling/index.js +58 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.css +10 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.d.ts +5 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.js +24 -0
- package/lib/modules/phone-audio-connect/components/useing/index.css +46 -0
- package/lib/modules/phone-audio-connect/components/useing/index.d.ts +3 -0
- package/lib/modules/phone-audio-connect/components/useing/index.js +36 -0
- package/lib/modules/phone-audio-connect/enums.d.ts +4 -0
- package/lib/modules/phone-audio-connect/enums.js +12 -0
- package/lib/modules/phone-audio-connect/index.css +56 -0
- package/lib/modules/phone-audio-connect/index.d.ts +16 -0
- package/lib/modules/phone-audio-connect/index.js +63 -0
- package/lib/modules/phone-audio-connect/store.d.ts +46 -0
- package/lib/modules/phone-audio-connect/store.js +317 -0
- package/lib/modules/phone-audio-connect/types.d.ts +4 -0
- package/lib/modules/phone-audio-connect/types.js +6 -0
- package/lib/modules/phone-audio-connect/view.d.ts +3 -0
- package/lib/modules/phone-audio-connect/view.js +185 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +6 -6
- package/lib/modules/setting/index.d.ts +25 -5
- package/lib/modules/setting/index.dev.d.ts +0 -1
- package/lib/modules/setting/index.dev.js +120 -81
- package/lib/modules/setting/index.js +35 -9
- package/lib/modules/setting/minutes-settings/minutes-settings.js +3 -2
- package/lib/modules/setting/state/index.js +3 -7
- package/lib/modules/setting/store.d.ts +48 -14
- package/lib/modules/setting/store.js +105 -118
- package/lib/modules/setting/translate-settings/translate-settings.js +4 -4
- package/lib/modules/setting/video-settings/video-settings-basic.js +19 -22
- package/lib/modules/setting/view.js +6 -35
- package/lib/modules/share-screen/components/selection/index.css +70 -0
- package/lib/modules/share-screen/components/selection/index.d.ts +2 -0
- package/lib/modules/share-screen/components/selection/index.js +267 -0
- package/lib/modules/share-screen/components/share-state-bar/index.css +76 -0
- package/lib/modules/share-screen/components/share-state-bar/index.d.ts +4 -0
- package/lib/modules/share-screen/components/share-state-bar/index.js +98 -0
- package/lib/modules/share-screen/index.d.ts +15 -18
- package/lib/modules/share-screen/index.dev.d.ts +0 -1
- package/lib/modules/share-screen/index.dev.js +90 -91
- package/lib/modules/share-screen/index.js +22 -22
- 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 +36 -32
- package/lib/modules/share-screen/store.js +249 -222
- package/lib/modules/share-screen/types.d.ts +27 -0
- package/lib/modules/share-screen/types.js +6 -0
- package/lib/modules/share-screen/view.js +1 -1
- package/lib/modules/sound-effect/index.d.ts +9 -4
- package/lib/modules/sound-effect/index.js +72 -41
- package/lib/modules/sound-effect/sound-effect-player.js +1 -1
- package/lib/modules/state-bar/index.d.ts +16 -13
- package/lib/modules/state-bar/index.dev.d.ts +0 -1
- package/lib/modules/state-bar/index.dev.js +78 -83
- package/lib/modules/state-bar/index.js +23 -7
- package/lib/modules/state-bar/layout-config.js +2 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/meeting-details.js +31 -24
- package/lib/modules/state-bar/meeting-network-state.js +1 -1
- package/lib/modules/state-bar/store.d.ts +20 -10
- package/lib/modules/state-bar/store.js +84 -88
- package/lib/modules/state-bar/view.js +2 -2
- package/lib/modules/video-window/deviceState/index.d.ts +2 -2
- package/lib/modules/video-window/deviceState/index.js +4 -6
- package/lib/modules/video-window/index.css +1 -4
- package/lib/modules/video-window/index.d.ts +33 -6
- package/lib/modules/video-window/index.js +63 -15
- package/lib/modules/video-window/members/index.css +1 -0
- package/lib/modules/video-window/members/index.js +27 -12
- package/lib/modules/video-window/store.d.ts +58 -27
- package/lib/modules/video-window/store.js +166 -165
- package/lib/modules/video-window/topControl/index.js +0 -2
- package/lib/modules/waiting-room-layout/index.d.ts +11 -4
- package/lib/modules/waiting-room-layout/index.js +26 -13
- package/lib/modules/waiting-room-layout/store.d.ts +6 -3
- package/lib/modules/waiting-room-layout/store.js +17 -15
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -4
- package/lib/modules/whiteboard/components/control-bar/store.js +8 -8
- 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 +20 -14
- package/lib/modules/whiteboard/index.js +250 -227
- package/lib/modules/whiteboard/view.d.ts +2 -0
- package/lib/modules/whiteboard/view.js +49 -0
- package/lib/plugins/browser-runtime-plugin.js +5 -1
- package/lib/providers/chat-provider.d.ts +71 -0
- package/lib/providers/chat-provider.js +91 -0
- package/lib/providers/device-privilege-provider.d.ts +52 -6
- package/lib/providers/device-privilege-provider.js +212 -185
- package/lib/providers/device-provider.d.ts +203 -45
- package/lib/providers/device-provider.js +486 -403
- package/lib/providers/device-stream-provider.d.ts +12 -13
- package/lib/providers/device-stream-provider.js +86 -194
- package/lib/providers/dialog-provider.d.ts +135 -0
- package/lib/providers/dialog-provider.js +202 -0
- package/lib/providers/event-provider.d.ts +1 -21
- package/lib/providers/event-provider.js +19 -59
- package/lib/providers/interpreter-provider.d.ts +218 -7
- package/lib/providers/interpreter-provider.js +1069 -81
- package/lib/providers/local-storage-provider.d.ts +9 -0
- package/lib/providers/message-provider.d.ts +69 -0
- package/lib/providers/message-provider.js +96 -0
- package/lib/providers/monitor-provider.d.ts +5 -0
- package/lib/providers/phone-audio-provider.d.ts +131 -0
- package/lib/providers/phone-audio-provider.js +512 -0
- package/lib/providers/privilege-provider.d.ts +325 -12
- package/lib/providers/privilege-provider.js +111 -299
- package/lib/providers/renderer-provider.d.ts +46 -4
- package/lib/providers/renderer-provider.js +57 -61
- package/lib/providers/room-provider.d.ts +113 -6
- package/lib/providers/room-provider.js +665 -88
- package/lib/providers/screen-share-provider.d.ts +65 -0
- package/lib/providers/screen-share-provider.js +237 -0
- package/lib/providers/session-provider.d.ts +30 -0
- package/lib/runtime.d.ts +2 -0
- package/lib/scenes/main-scene.d.ts +41 -3
- package/lib/scenes/main-scene.js +407 -248
- package/lib/scenes/waiting-scene.d.ts +34 -4
- package/lib/scenes/waiting-scene.js +163 -56
- package/lib/shared-data-source/chat-data.d.ts +14 -0
- package/lib/{common/remote-renderer.js → shared-data-source/chat-data.js} +67 -77
- package/lib/shared-data-source/device-privilege-data.d.ts +8 -0
- package/lib/shared-data-source/device-privilege-data.js +25 -0
- package/lib/shared-data-source/interpreter.d.ts +63 -0
- package/lib/shared-data-source/interpreter.js +246 -0
- package/lib/shared-data-source/layout-data.d.ts +29 -0
- package/lib/shared-data-source/layout-data.js +178 -0
- package/lib/shared-data-source/pin-data.d.ts +9 -0
- package/lib/shared-data-source/pin-data.js +24 -0
- package/lib/shared-data-source/setting.d.ts +32 -0
- package/lib/shared-data-source/setting.js +151 -0
- package/lib/shared-data-source/speaker-spotlight.d.ts +5 -0
- package/lib/shared-data-source/speaker-spotlight.js +15 -0
- package/lib/shared-data-source/video-window.d.ts +161 -0
- package/lib/shared-data-source/video-window.js +1198 -0
- package/lib/shared-data-source/waiting-room.d.ts +19 -0
- package/lib/shared-data-source/waiting-room.js +157 -0
- package/lib/translations/enUS.d.ts +48 -17
- package/lib/translations/enUS.js +67 -35
- package/lib/translations/zhCN.d.ts +48 -17
- package/lib/translations/zhCN.js +68 -36
- package/lib/type.d.ts +270 -25
- package/lib/type.js +81 -2
- package/lib/ui-manager.d.ts +20 -16
- package/lib/ui-manager.js +59 -795
- package/lib/ui-scene.d.ts +6 -1
- package/lib/ui-scene.js +371 -43
- package/lib/utilities/constant.d.ts +63 -86
- package/lib/utilities/constant.js +158 -175
- package/lib/utilities/copyText.js +8 -7
- package/lib/utilities/meeting-detail.d.ts +2 -0
- package/lib/utilities/meeting-detail.js +39 -0
- package/lib/utilities/privilege.d.ts +4 -0
- package/lib/utilities/privilege.js +29 -0
- package/lib/utilities/renderer-event.js +0 -2
- package/lib/utilities/renderer.js +0 -1
- package/lib/utilities/setting-config-storage.d.ts +12 -0
- package/lib/utilities/setting-config-storage.js +100 -0
- package/lib/utilities/tools.d.ts +35 -3
- package/lib/utilities/tools.js +103 -4
- package/lib/utilities/video-track-render-context.d.ts +3 -4
- package/lib/utilities/video-track-render-context.js +1 -1
- package/package.json +10 -5
- package/public/assets/full-screen-error-boundary-img.png +0 -0
- package/public/assets/leave-meeting.png +0 -0
- package/public/index.html +24 -14
- 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/electron/bootstrap.d.ts +0 -1
- package/lib/electron/bootstrap.js +0 -56
- package/lib/electron/dev.d.ts +0 -1
- package/lib/electron/dev.js +0 -51
- 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/Interpreter/index.d.ts +0 -8
- package/lib/modules/Interpreter/store.d.ts +0 -111
- package/lib/modules/Interpreter/store.js +0 -1601
- package/lib/modules/Interpreter/type.d.ts +0 -41
- package/lib/modules/Interpreter/type.js +0 -20
- package/lib/modules/Interpreter/utils.js +0 -139
- 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/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.d.ts +0 -14
- 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.js +0 -46
- package/lib/modules/dialog/components/Interpreter/electron.js +0 -31
- 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/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/{notification-bar → components/notification-bar/assets}/dome.png +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar/assets}/fcr_translateswitch.png +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/interpreter/index.css +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/interpreter/index.d.ts +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/virtual-image/index.css +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/virtual-image/index.d.ts +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/index.css +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/index.d.ts +0 -0
- /package/lib/modules/action-bar/{trigger-input-language-room → components/trigger-output-language}/fcr_translateswitch.png +0 -0
- /package/lib/modules/action-bar/{trigger-input-language-room → components/trigger-output-language}/index.css +0 -0
- /package/lib/modules/action-bar/{trigger-output-language-room → components/trigger-subscribe-language}/guide-tooltip/index.css +0 -0
- /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/{common/type.js → modules/action-bar/types.js} +0 -0
- /package/lib/modules/{components → dialog/components}/dialog-container/component/body.d.ts +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/electron.d.ts +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/{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.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}/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/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/option-Item.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.css +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}/view.d.ts +0 -0
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.MeetingDetails = void 0;
|
|
9
|
-
require("
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
require("core-js/modules/es.date.to-string.js");
|
|
10
11
|
require("core-js/modules/es.regexp.exec.js");
|
|
11
12
|
require("core-js/modules/es.string.replace.js");
|
|
12
13
|
require("core-js/modules/web.timers.js");
|
|
13
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
14
14
|
var _button = require("agora-ui-foundation/lib/components/button");
|
|
15
15
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
16
16
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
@@ -23,6 +23,7 @@ var _store = require("./store");
|
|
|
23
23
|
require("./meeting-detail.css");
|
|
24
24
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
25
25
|
var _meetingTime = require("../../hooks/meeting-time");
|
|
26
|
+
var _meetingDetail2 = require("../../utilities/meeting-detail");
|
|
26
27
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
28
|
var CopyState = /*#__PURE__*/function (CopyState) {
|
|
28
29
|
CopyState[CopyState["COPYINIT"] = 1] = "COPYINIT";
|
|
@@ -31,13 +32,25 @@ var CopyState = /*#__PURE__*/function (CopyState) {
|
|
|
31
32
|
CopyState[CopyState["FAILED"] = 4] = "FAILED";
|
|
32
33
|
return CopyState;
|
|
33
34
|
}(CopyState || {});
|
|
35
|
+
var isNextDayAfterDuration = function isNextDayAfterDuration(startTimeStamp, duration) {
|
|
36
|
+
var futureTimestamp = startTimeStamp + duration;
|
|
37
|
+
var currentDate = new Date(startTimeStamp);
|
|
38
|
+
var futureDate = new Date(futureTimestamp);
|
|
39
|
+
var currentYear = currentDate.getFullYear();
|
|
40
|
+
var currentMonth = currentDate.getMonth();
|
|
41
|
+
var currentDay = currentDate.getDate();
|
|
42
|
+
var futureYear = futureDate.getFullYear();
|
|
43
|
+
var futureMonth = futureDate.getMonth();
|
|
44
|
+
var futureDay = futureDate.getDate();
|
|
45
|
+
return futureYear > currentYear || futureYear === currentYear && futureMonth > currentMonth || futureYear === currentYear && futureMonth === currentMonth && futureDay > currentDay;
|
|
46
|
+
};
|
|
34
47
|
var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function () {
|
|
35
48
|
var t = (0, _i18n.useI18n)();
|
|
36
49
|
var copyTimer = null;
|
|
37
50
|
var _useState = (0, _react.useState)({
|
|
38
51
|
copyState: CopyState.COPYINIT,
|
|
39
52
|
copyIcon: _type.FcrIconType.FCR_LINK,
|
|
40
|
-
copyText: t('
|
|
53
|
+
copyText: t('fmt_popup_button_meetinginfor')
|
|
41
54
|
}),
|
|
42
55
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
43
56
|
copyInfoState = _useState2[0],
|
|
@@ -62,14 +75,8 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
62
75
|
}, []);
|
|
63
76
|
if (!roomInfo || !localUser) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
|
64
77
|
var displayMeetingId = (0, _tools.renderMeetingId)(meetingId, roomInfo.roomId);
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
reason2: roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomName,
|
|
68
|
-
// reason3: dayjs(scheduleInfo?.startTime ?? 0).format('YYYY-MM-DD HH:mm:ss'),
|
|
69
|
-
reason3: '',
|
|
70
|
-
reason4: shareLink,
|
|
71
|
-
reason5: !!password ? "".concat(t('fmt_meeting_creatpage_label_password'), ": ").concat(password) : ''
|
|
72
|
-
});
|
|
78
|
+
var duration = (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.duration) || 0;
|
|
79
|
+
var detailText = (0, _meetingDetail2.generateMeetingDetail)(localUser.userName, roomInfo.roomName, (0, _meetingDetail2.generateMeetingDuration)((scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) || 0, duration), shareLink, displayMeetingId, password !== null && password !== void 0 ? password : '');
|
|
73
80
|
function handleCopyMeetingId(copyContent) {
|
|
74
81
|
if (!copyContent) return;
|
|
75
82
|
var content = meetingId ? copyContent : copyContent.replace(/\s+/g, '');
|
|
@@ -111,7 +118,7 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
111
118
|
});
|
|
112
119
|
});
|
|
113
120
|
}
|
|
114
|
-
function handlerCopyMeetingDetail(
|
|
121
|
+
function handlerCopyMeetingDetail() {
|
|
115
122
|
if (copyInfoState.copyState !== CopyState.COPYINIT) {
|
|
116
123
|
return;
|
|
117
124
|
}
|
|
@@ -147,7 +154,7 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
147
154
|
setCopyInfoState({
|
|
148
155
|
copyState: CopyState.COPYINIT,
|
|
149
156
|
copyIcon: _type.FcrIconType.FCR_LINK,
|
|
150
|
-
copyText: t('
|
|
157
|
+
copyText: t('fmt_popup_button_meetinginfor')
|
|
151
158
|
});
|
|
152
159
|
}, 1000);
|
|
153
160
|
}
|
|
@@ -181,30 +188,32 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
181
188
|
size: 20
|
|
182
189
|
})
|
|
183
190
|
})]
|
|
184
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
191
|
+
}), !!password && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
185
192
|
className: "meeting-details__content-share-link",
|
|
186
193
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
187
|
-
children: t('
|
|
194
|
+
children: t('fmt_meeting_mainwindow_topbar_left_popup_label_meeting_password', {
|
|
195
|
+
reason1: ''
|
|
196
|
+
})
|
|
188
197
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
189
|
-
children:
|
|
198
|
+
children: password
|
|
190
199
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
191
200
|
onClick: function onClick() {
|
|
192
|
-
return
|
|
201
|
+
return handleCopyMeetingPassword(password !== null && password !== void 0 ? password : '');
|
|
193
202
|
},
|
|
194
203
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
195
204
|
type: _type.FcrIconType.FCR_COPY_ICON,
|
|
196
205
|
size: 20
|
|
197
206
|
})
|
|
198
207
|
})]
|
|
199
|
-
}),
|
|
208
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
200
209
|
className: "meeting-details__content-share-link",
|
|
201
210
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
202
|
-
children: t('
|
|
211
|
+
children: t('fmt_sharing_label_invitationlink')
|
|
203
212
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
204
|
-
children:
|
|
213
|
+
children: shareLink
|
|
205
214
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
206
215
|
onClick: function onClick() {
|
|
207
|
-
return
|
|
216
|
+
return handlerCopyMeetingShareLink(shareLink);
|
|
208
217
|
},
|
|
209
218
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
210
219
|
type: _type.FcrIconType.FCR_COPY_ICON,
|
|
@@ -217,9 +226,7 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
217
226
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_button.FcrButton, {
|
|
218
227
|
size: "XS",
|
|
219
228
|
shape: "rounded",
|
|
220
|
-
onClick:
|
|
221
|
-
return handlerCopyMeetingDetail(detailText);
|
|
222
|
-
},
|
|
229
|
+
onClick: handlerCopyMeetingDetail,
|
|
223
230
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
224
231
|
className: (0, _classnames["default"])({
|
|
225
232
|
'meeting-details__reset-icon': copyInfoState.copyState === CopyState.COPYING
|
|
@@ -95,7 +95,7 @@ var MeetingNetworkState = exports.MeetingNetworkState = (0, _mobxReact.observer)
|
|
|
95
95
|
onClick: function onClick() {
|
|
96
96
|
openDeviceSettingDialog({
|
|
97
97
|
activeTab: _store2.DeviceSettingTab.STATE,
|
|
98
|
-
highlightSelector: _constant.
|
|
98
|
+
highlightSelector: _constant.FcrUIHighlightElement.NETWORK_STATE
|
|
99
99
|
});
|
|
100
100
|
},
|
|
101
101
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { FcrRecordingState, FcrRoomInfo, FcrRoomSchedule, FcrUserInfo } from 'fcr-core/lib/type';
|
|
2
|
-
import {
|
|
2
|
+
import { FcrUIEventProvider } from '../../providers/event-provider';
|
|
3
3
|
import { DeviceSettingDialogConfig } from '../setting/store';
|
|
4
|
-
import {
|
|
5
|
-
import { FcrUISceneConfig } from '../../type';
|
|
4
|
+
import { FcrUISceneConfig, FcrUIToastParams } from '../../type';
|
|
6
5
|
import { FcrMainRoomControl, FcrWaitingRoomControl } from 'fcr-core/lib/room-control/type';
|
|
6
|
+
import { FcrUIPrivilegeProvider } from '../../providers/privilege-provider';
|
|
7
|
+
import { FcrUISharedLayoutDataSource } from '../../shared-data-source/layout-data';
|
|
8
|
+
import { FcrUIVideoWindowLayoutType } from '../layout/type';
|
|
9
|
+
import { FcrUIRoomProvider } from '../../providers/room-provider';
|
|
10
|
+
import { FcrUIVideoWindowDataSource } from '../../shared-data-source/video-window';
|
|
7
11
|
export type NetworkStatus = 'excellent' | 'average' | 'poor' | 'unknown';
|
|
8
12
|
export declare const GALLERY_MIN_SIZE = 825;
|
|
9
13
|
export default class StateBarStore {
|
|
@@ -13,6 +17,9 @@ export default class StateBarStore {
|
|
|
13
17
|
private _uiEventStore;
|
|
14
18
|
private _securityStore;
|
|
15
19
|
private _config;
|
|
20
|
+
private _roomProvider;
|
|
21
|
+
private _sharedLayoutDataSource;
|
|
22
|
+
private _sharedVideoWindowDataSource;
|
|
16
23
|
private _roomObserver;
|
|
17
24
|
accessor networkStatus: NetworkStatus;
|
|
18
25
|
accessor localUser: FcrUserInfo | undefined;
|
|
@@ -29,8 +36,6 @@ export default class StateBarStore {
|
|
|
29
36
|
};
|
|
30
37
|
accessor attendeeCount: number;
|
|
31
38
|
accessor asideOpenedItem: Set<string>;
|
|
32
|
-
accessor layoutSize: number;
|
|
33
|
-
accessor layoutView: 'speaker' | 'gallery';
|
|
34
39
|
accessor cloudRecordingState: FcrRecordingState;
|
|
35
40
|
accessor meetingId: string | undefined;
|
|
36
41
|
get isUserHost(): boolean;
|
|
@@ -40,22 +45,27 @@ export default class StateBarStore {
|
|
|
40
45
|
get hasStopLiveStreamingPermission(): boolean;
|
|
41
46
|
get hasGetLiveStreamingLinkPermission(): boolean;
|
|
42
47
|
get password(): string | undefined;
|
|
43
|
-
|
|
48
|
+
get layoutSize(): number;
|
|
49
|
+
get layoutView(): import("../../type").FcrUIVideoWindowLayoutType;
|
|
50
|
+
get asideLayout(): import("../../type").FcrUIUpdateAsideParams;
|
|
51
|
+
constructor({ roomControl, uiEventStore, securityStore, config, parameters, sharedLayoutDataSource, roomProvider, sharedVideoWindowDataSource, }: {
|
|
44
52
|
roomControl: FcrMainRoomControl | FcrWaitingRoomControl;
|
|
45
|
-
uiEventStore:
|
|
46
|
-
securityStore:
|
|
53
|
+
uiEventStore: FcrUIEventProvider;
|
|
54
|
+
securityStore: FcrUIPrivilegeProvider;
|
|
47
55
|
config: FcrUISceneConfig;
|
|
48
56
|
parameters?: Record<string, unknown>;
|
|
57
|
+
sharedLayoutDataSource: FcrUISharedLayoutDataSource;
|
|
58
|
+
roomProvider: FcrUIRoomProvider;
|
|
59
|
+
sharedVideoWindowDataSource: FcrUIVideoWindowDataSource;
|
|
49
60
|
});
|
|
50
61
|
isLockRoomEnabled(): boolean;
|
|
51
62
|
setNetworkStatus(networkStatus: NetworkStatus): void;
|
|
52
63
|
setLocalUser(localUser: FcrUserInfo): void;
|
|
53
64
|
setRoomInfo(roomInfo: FcrRoomInfo | undefined): void;
|
|
54
65
|
setScheduleInfo(scheduleInfo: FcrRoomSchedule): void;
|
|
55
|
-
toggleLayout(layout:
|
|
66
|
+
toggleLayout(layout: FcrUIVideoWindowLayoutType): void;
|
|
56
67
|
toggleLayoutBarLock(state: boolean): void;
|
|
57
68
|
openVideoWindowDialog(): void;
|
|
58
|
-
refreshLayoutSize(size: 16 | 25): void;
|
|
59
69
|
release(): void;
|
|
60
70
|
openDeviceSettingDialog(arg?: Partial<DeviceSettingDialogConfig>): void;
|
|
61
71
|
stopLiveStreamingDialog(): void;
|
|
@@ -45,7 +45,6 @@ require("core-js/modules/es.object.to-string.js");
|
|
|
45
45
|
require("core-js/modules/es.set.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.for-each.js");
|
|
49
48
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
50
49
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
51
50
|
require("core-js/modules/esnext.set.add-all.js");
|
|
@@ -86,12 +85,11 @@ var _store = require("../setting/store");
|
|
|
86
85
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
87
86
|
var _constant = require("../../utilities/constant");
|
|
88
87
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
89
|
-
var _components = require("../layout/components");
|
|
90
|
-
var _parameters = require("../../utilities/parameters");
|
|
91
88
|
var _type2 = require("fcr-core/lib/room-control/type");
|
|
92
89
|
var _react = require("react");
|
|
90
|
+
var _view = require("../layout/view");
|
|
93
91
|
var _StateBarStore;
|
|
94
|
-
var _initProto, _init_networkStatus, _init_localUser, _init_roomInfo, _init_scheduleInfo, _init_isLiveStreaming, _init_liveStreamingPlayUrl, _init_galleryWidth, _init_browserWidth, _init_networkStats, _init_attendeeCount, _init_asideOpenedItem,
|
|
92
|
+
var _initProto, _init_networkStatus, _init_localUser, _init_roomInfo, _init_scheduleInfo, _init_isLiveStreaming, _init_liveStreamingPlayUrl, _init_galleryWidth, _init_browserWidth, _init_networkStats, _init_attendeeCount, _init_asideOpenedItem, _init_cloudRecordingState, _init_meetingId, _setNetworkStatusDecs, _setLocalUserDecs, _setRoomInfoDecs, _setScheduleInfoDecs, _stopLiveStreamingDialogDecs, _uiEventsDecs, _setBrowserWidthDecs, _onNetworkStatsUpdatedDecs, _onLiveStreamingStateUpdatedDecs, _ref;
|
|
95
93
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
96
94
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
97
95
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -116,19 +114,19 @@ var _J = /*#__PURE__*/new WeakMap();
|
|
|
116
114
|
var _K = /*#__PURE__*/new WeakMap();
|
|
117
115
|
var _L = /*#__PURE__*/new WeakMap();
|
|
118
116
|
var _M = /*#__PURE__*/new WeakMap();
|
|
119
|
-
var _N = /*#__PURE__*/new WeakMap();
|
|
120
|
-
var _O = /*#__PURE__*/new WeakMap();
|
|
121
117
|
_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");
|
|
122
118
|
var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
123
119
|
function StateBarStore(_ref2) {
|
|
124
|
-
var
|
|
125
|
-
_this$_roomControl$ge,
|
|
120
|
+
var _this$_roomControl$ge,
|
|
126
121
|
_this = this;
|
|
127
122
|
var roomControl = _ref2.roomControl,
|
|
128
123
|
uiEventStore = _ref2.uiEventStore,
|
|
129
124
|
securityStore = _ref2.securityStore,
|
|
130
125
|
config = _ref2.config,
|
|
131
|
-
parameters = _ref2.parameters
|
|
126
|
+
parameters = _ref2.parameters,
|
|
127
|
+
sharedLayoutDataSource = _ref2.sharedLayoutDataSource,
|
|
128
|
+
roomProvider = _ref2.roomProvider,
|
|
129
|
+
sharedVideoWindowDataSource = _ref2.sharedVideoWindowDataSource;
|
|
132
130
|
(0, _classCallCheck2["default"])(this, StateBarStore);
|
|
133
131
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
134
132
|
(0, _defineProperty2["default"])(this, "_disposer", []);
|
|
@@ -153,21 +151,19 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
153
151
|
}));
|
|
154
152
|
_classPrivateFieldInitSpec(this, _J, _init_attendeeCount(this));
|
|
155
153
|
_classPrivateFieldInitSpec(this, _K, _init_asideOpenedItem(this, new Set()));
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
_classPrivateFieldInitSpec(this,
|
|
159
|
-
_classPrivateFieldInitSpec(this,
|
|
154
|
+
// @observable accessor layoutSize: number;
|
|
155
|
+
// @observable accessor layoutView: 'speaker' | 'gallery' = 'gallery';
|
|
156
|
+
_classPrivateFieldInitSpec(this, _L, _init_cloudRecordingState(this, _type.FcrRecordingState.Stopped));
|
|
157
|
+
_classPrivateFieldInitSpec(this, _M, _init_meetingId(this, undefined));
|
|
160
158
|
this._config = config;
|
|
161
159
|
this._roomControl = roomControl;
|
|
162
160
|
this._uiEventStore = uiEventStore;
|
|
163
161
|
this._securityStore = securityStore;
|
|
162
|
+
this._roomProvider = roomProvider;
|
|
164
163
|
this.attendeeCount = 0;
|
|
165
164
|
this.isLiveStreaming = this._roomControl.getLiveStreamingState() === _type.FcrLiveStreamingState.STARTED;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
defaultVideoGallerySize = Math.min(Math.max(defaultVideoGallerySize, 16), 25);
|
|
169
|
-
}
|
|
170
|
-
this.layoutSize = (_defaultVideoGalleryS = defaultVideoGallerySize) !== null && _defaultVideoGalleryS !== void 0 ? _defaultVideoGalleryS : 16;
|
|
165
|
+
this._sharedLayoutDataSource = sharedLayoutDataSource;
|
|
166
|
+
this._sharedVideoWindowDataSource = sharedVideoWindowDataSource;
|
|
171
167
|
this._roomControl.addObserver(this._roomObserver);
|
|
172
168
|
this._uiEventStore.addObserver({
|
|
173
169
|
onEvent: this._uiEvents.bind(this)
|
|
@@ -187,7 +183,23 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
187
183
|
return _this.isLiveStreaming;
|
|
188
184
|
}, this._setBrowserWidth()), (0, _mobx.reaction)(function () {
|
|
189
185
|
return _this.cloudRecordingState;
|
|
190
|
-
}, this._setBrowserWidth()),
|
|
186
|
+
}, this._setBrowserWidth()), (0, _mobx.reaction)(function () {
|
|
187
|
+
return _this.asideLayout;
|
|
188
|
+
}, function (asideLayout) {
|
|
189
|
+
if (asideLayout.participant) {
|
|
190
|
+
_this.asideOpenedItem.add('participant');
|
|
191
|
+
}
|
|
192
|
+
if (asideLayout.participant === false) {
|
|
193
|
+
_this.asideOpenedItem["delete"]('participant');
|
|
194
|
+
}
|
|
195
|
+
if (asideLayout.chat) {
|
|
196
|
+
_this.asideOpenedItem.add('chat');
|
|
197
|
+
}
|
|
198
|
+
if (asideLayout.chat === false) {
|
|
199
|
+
_this.asideOpenedItem["delete"]('chat');
|
|
200
|
+
}
|
|
201
|
+
_this._setBrowserWidth(window.innerWidth)(); // 打开或关闭边栏
|
|
202
|
+
}), resizeDispose);
|
|
191
203
|
}
|
|
192
204
|
return (0, _createClass2["default"])(StateBarStore, [{
|
|
193
205
|
key: "networkStatus",
|
|
@@ -278,7 +290,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
278
290
|
_classPrivateFieldSet(_K, this, v);
|
|
279
291
|
}
|
|
280
292
|
}, {
|
|
281
|
-
key: "
|
|
293
|
+
key: "cloudRecordingState",
|
|
282
294
|
get: function get() {
|
|
283
295
|
return _classPrivateFieldGet(_L, this);
|
|
284
296
|
},
|
|
@@ -286,29 +298,13 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
286
298
|
_classPrivateFieldSet(_L, this, v);
|
|
287
299
|
}
|
|
288
300
|
}, {
|
|
289
|
-
key: "
|
|
301
|
+
key: "meetingId",
|
|
290
302
|
get: function get() {
|
|
291
303
|
return _classPrivateFieldGet(_M, this);
|
|
292
304
|
},
|
|
293
305
|
set: function set(v) {
|
|
294
306
|
_classPrivateFieldSet(_M, this, v);
|
|
295
307
|
}
|
|
296
|
-
}, {
|
|
297
|
-
key: "cloudRecordingState",
|
|
298
|
-
get: function get() {
|
|
299
|
-
return _classPrivateFieldGet(_N, this);
|
|
300
|
-
},
|
|
301
|
-
set: function set(v) {
|
|
302
|
-
_classPrivateFieldSet(_N, this, v);
|
|
303
|
-
}
|
|
304
|
-
}, {
|
|
305
|
-
key: "meetingId",
|
|
306
|
-
get: function get() {
|
|
307
|
-
return _classPrivateFieldGet(_O, this);
|
|
308
|
-
},
|
|
309
|
-
set: function set(v) {
|
|
310
|
-
_classPrivateFieldSet(_O, this, v);
|
|
311
|
-
}
|
|
312
308
|
}, {
|
|
313
309
|
key: "isUserHost",
|
|
314
310
|
get: function get() {
|
|
@@ -347,6 +343,24 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
347
343
|
var _this$_roomControl$ge3;
|
|
348
344
|
return (_this$_roomControl$ge3 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge3 === void 0 ? void 0 : _this$_roomControl$ge3.password;
|
|
349
345
|
}
|
|
346
|
+
}, {
|
|
347
|
+
key: "layoutSize",
|
|
348
|
+
get: function get() {
|
|
349
|
+
var _this$_sharedLayoutDa;
|
|
350
|
+
return (_this$_sharedLayoutDa = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa === void 0 ? void 0 : _this$_sharedLayoutDa.layoutSize;
|
|
351
|
+
}
|
|
352
|
+
}, {
|
|
353
|
+
key: "layoutView",
|
|
354
|
+
get: function get() {
|
|
355
|
+
var _this$_sharedVideoWin;
|
|
356
|
+
return (_this$_sharedVideoWin = this._sharedVideoWindowDataSource) === null || _this$_sharedVideoWin === void 0 ? void 0 : _this$_sharedVideoWin.layoutType;
|
|
357
|
+
}
|
|
358
|
+
}, {
|
|
359
|
+
key: "asideLayout",
|
|
360
|
+
get: function get() {
|
|
361
|
+
var _this$_sharedLayoutDa2;
|
|
362
|
+
return (_this$_sharedLayoutDa2 = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa2 === void 0 ? void 0 : _this$_sharedLayoutDa2.asideLayout;
|
|
363
|
+
}
|
|
350
364
|
}, {
|
|
351
365
|
key: "isLockRoomEnabled",
|
|
352
366
|
value: function isLockRoomEnabled() {
|
|
@@ -387,25 +401,17 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
387
401
|
}, {
|
|
388
402
|
key: "toggleLayout",
|
|
389
403
|
value: function toggleLayout(layout) {
|
|
390
|
-
this.
|
|
391
|
-
layout: layout,
|
|
392
|
-
manual: true
|
|
393
|
-
});
|
|
404
|
+
this._sharedVideoWindowDataSource.setLayout(layout, true);
|
|
394
405
|
}
|
|
395
406
|
}, {
|
|
396
407
|
key: "toggleLayoutBarLock",
|
|
397
408
|
value: function toggleLayoutBarLock(state) {
|
|
398
|
-
this._uiEventStore.sendEvent(_constant.
|
|
409
|
+
this._uiEventStore.sendEvent(_constant.FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK, state);
|
|
399
410
|
}
|
|
400
411
|
}, {
|
|
401
412
|
key: "openVideoWindowDialog",
|
|
402
413
|
value: function openVideoWindowDialog() {
|
|
403
|
-
this._uiEventStore.openDialog(_constant.
|
|
404
|
-
}
|
|
405
|
-
}, {
|
|
406
|
-
key: "refreshLayoutSize",
|
|
407
|
-
value: function refreshLayoutSize(size) {
|
|
408
|
-
this.layoutSize = size;
|
|
414
|
+
this._uiEventStore.openDialog(_constant.FcrUIDialogKey.VIDEO_WINDOW);
|
|
409
415
|
}
|
|
410
416
|
}, {
|
|
411
417
|
key: "release",
|
|
@@ -418,7 +424,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
418
424
|
key: "openDeviceSettingDialog",
|
|
419
425
|
value: function openDeviceSettingDialog(arg) {
|
|
420
426
|
var activeTab = (arg === null || arg === void 0 ? void 0 : arg.activeTab) || _store.DeviceSettingTab.VIDEO;
|
|
421
|
-
var highlightSelector = (arg === null || arg === void 0 ? void 0 : arg.highlightSelector) || _constant.
|
|
427
|
+
var highlightSelector = (arg === null || arg === void 0 ? void 0 : arg.highlightSelector) || _constant.FcrUIHighlightElement.VIDEO_MAX_PERSON;
|
|
422
428
|
this._uiEventStore.openDeviceSettingDialog({
|
|
423
429
|
activeTab: activeTab,
|
|
424
430
|
highlightSelector: highlightSelector
|
|
@@ -427,27 +433,27 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
427
433
|
}, {
|
|
428
434
|
key: "stopLiveStreamingDialog",
|
|
429
435
|
value: function stopLiveStreamingDialog() {
|
|
430
|
-
this.
|
|
436
|
+
this._roomProvider.stopLiveStreaming();
|
|
431
437
|
}
|
|
432
438
|
}, {
|
|
433
439
|
key: "startCloudRecording",
|
|
434
440
|
value: function startCloudRecording() {
|
|
435
|
-
this.
|
|
441
|
+
this._roomProvider.startCloudRecording();
|
|
436
442
|
}
|
|
437
443
|
}, {
|
|
438
444
|
key: "pauseCloudRecording",
|
|
439
445
|
value: function pauseCloudRecording() {
|
|
440
|
-
this.
|
|
446
|
+
this._roomProvider.pauseCloudRecording();
|
|
441
447
|
}
|
|
442
448
|
}, {
|
|
443
449
|
key: "resumeCloudRecording",
|
|
444
450
|
value: function resumeCloudRecording() {
|
|
445
|
-
this.
|
|
451
|
+
this._roomProvider.resumeCloudRecording();
|
|
446
452
|
}
|
|
447
453
|
}, {
|
|
448
454
|
key: "stopCloudRecording",
|
|
449
455
|
value: function stopCloudRecording() {
|
|
450
|
-
this.
|
|
456
|
+
this._roomProvider.stopCloudRecording();
|
|
451
457
|
}
|
|
452
458
|
}, {
|
|
453
459
|
key: "getShareLink",
|
|
@@ -490,35 +496,27 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
490
496
|
}, {
|
|
491
497
|
key: "_uiEvents",
|
|
492
498
|
value: function _uiEvents(action, payload) {
|
|
493
|
-
if (action === _constant.
|
|
494
|
-
var _ref3 = payload,
|
|
495
|
-
size = _ref3.size;
|
|
496
|
-
this.refreshLayoutSize(size);
|
|
497
|
-
}
|
|
498
|
-
if (action === _constant.UIAction.LAYOUT_CHANGED) {
|
|
499
|
-
var _ref4 = payload,
|
|
500
|
-
layout = _ref4.layout;
|
|
501
|
-
this.layoutView = layout;
|
|
502
|
-
}
|
|
503
|
-
if (action === _constant.UIAction.ASIDE_WIDTH_CHANGED) {
|
|
499
|
+
if (action === _constant.FcrUIAction.ASIDE_WIDTH_CHANGED) {
|
|
504
500
|
this._setBrowserWidth(window.innerWidth, payload)(); // 拖动边栏
|
|
505
501
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
502
|
+
|
|
503
|
+
// if (action === FcrUIAction.UPDATE_ASIDE) {
|
|
504
|
+
// if (payload.participant) {
|
|
505
|
+
// this.asideOpenedItem.add('participant');
|
|
506
|
+
// }
|
|
507
|
+
// if (payload.participant === false) {
|
|
508
|
+
// this.asideOpenedItem.delete('participant');
|
|
509
|
+
// }
|
|
510
|
+
// if (payload.chat) {
|
|
511
|
+
// this.asideOpenedItem.add('chat');
|
|
512
|
+
// }
|
|
513
|
+
// if (payload.chat === false) {
|
|
514
|
+
// this.asideOpenedItem.delete('chat');
|
|
515
|
+
// }
|
|
516
|
+
// this._setBrowserWidth(window.innerWidth)(); // 打开或关闭边栏
|
|
517
|
+
// }
|
|
518
|
+
|
|
519
|
+
if (action === _constant.FcrUIAction.MAIN_LIST_LENGTH_CHANGED) {
|
|
522
520
|
this.attendeeCount = payload;
|
|
523
521
|
}
|
|
524
522
|
}
|
|
@@ -530,7 +528,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
530
528
|
var _e$target;
|
|
531
529
|
var offsetWidth = _this2.isLiveStreaming && _this2.cloudRecordingState !== _type.FcrRecordingState.Stopped ? 210 : 0; // 同时打开直播和云录制会导致状态栏拥挤,所以需要针对这个情况进行计算
|
|
532
530
|
var contain = (e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.innerWidth) || width || window.innerWidth;
|
|
533
|
-
var needSubstact = minus ||
|
|
531
|
+
var needSubstact = minus || _view.MinAsideWidth;
|
|
534
532
|
(0, _mobx.runInAction)(function () {
|
|
535
533
|
_this2.galleryWidth = minus && width ? width - offsetWidth - minus // 拖动侧边栏时的算法
|
|
536
534
|
: _this2.asideOpenedItem.has('chat') || _this2.asideOpenedItem.has('participant') ? contain - needSubstact - offsetWidth // 打开或关闭侧边栏时的算法
|
|
@@ -571,7 +569,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
571
569
|
}]);
|
|
572
570
|
}();
|
|
573
571
|
_StateBarStore = StateBarStore;
|
|
574
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_StateBarStore, [[_mobx.observable, 1, "networkStatus"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "scheduleInfo"], [_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, "
|
|
572
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_StateBarStore, [[_mobx.observable, 1, "networkStatus"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "scheduleInfo"], [_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.observable, 1, "meetingId"], [_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, "password"], [_decorator.bound, 2, "isLockRoomEnabled"], [_setNetworkStatusDecs, 18, "setNetworkStatus"], [_setLocalUserDecs, 18, "setLocalUser"], [_setRoomInfoDecs, 18, "setRoomInfo"], [_setScheduleInfoDecs, 18, "setScheduleInfo"], [_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"], [_uiEventsDecs, 18, "_uiEvents"], [_setBrowserWidthDecs, 18, "_setBrowserWidth"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLiveStreamingStateUpdatedDecs, 18, "_onLiveStreamingStateUpdated"]], []).e, 14);
|
|
575
573
|
_init_networkStatus = _applyDecs$e[0];
|
|
576
574
|
_init_localUser = _applyDecs$e[1];
|
|
577
575
|
_init_roomInfo = _applyDecs$e[2];
|
|
@@ -583,9 +581,7 @@ _init_browserWidth = _applyDecs$e[7];
|
|
|
583
581
|
_init_networkStats = _applyDecs$e[8];
|
|
584
582
|
_init_attendeeCount = _applyDecs$e[9];
|
|
585
583
|
_init_asideOpenedItem = _applyDecs$e[10];
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
_init_meetingId = _applyDecs$e[14];
|
|
590
|
-
_initProto = _applyDecs$e[15];
|
|
584
|
+
_init_cloudRecordingState = _applyDecs$e[11];
|
|
585
|
+
_init_meetingId = _applyDecs$e[12];
|
|
586
|
+
_initProto = _applyDecs$e[13];
|
|
591
587
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -71,10 +71,10 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
71
71
|
isFullScreen ? (0, _screen.enterFullScreen)() : (0, _screen.exitFullScreen)();
|
|
72
72
|
}, [isFullScreen]);
|
|
73
73
|
var screenHandler = function screenHandler(event) {
|
|
74
|
-
if (event.action === _constant.
|
|
74
|
+
if (event.action === _constant.FcrUIRendererEventAction.ENTER_FULL_SCREEN) {
|
|
75
75
|
setIsFullScreen(true);
|
|
76
76
|
}
|
|
77
|
-
if (event.action === _constant.
|
|
77
|
+
if (event.action === _constant.FcrUIRendererEventAction.LEAVE_FULL_SCREEN) {
|
|
78
78
|
setIsFullScreen(false);
|
|
79
79
|
}
|
|
80
80
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConnectionTabType } from './../type';
|
|
2
|
-
import {
|
|
2
|
+
import { FcrUIConnectType } from '../../../type';
|
|
3
3
|
interface DeviceStateProps {
|
|
4
|
-
connectType:
|
|
4
|
+
connectType: FcrUIConnectType;
|
|
5
5
|
openConnection: (type: ConnectionTabType) => void;
|
|
6
6
|
microphoneVolumeLevel: number;
|
|
7
7
|
enableMicrophone: (enable: boolean) => void;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.DeviceState = exports.AudioRecordinDeviceIcon = void 0;
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
8
|
var _mobxReact = require("mobx-react");
|
|
11
9
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
12
10
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
13
11
|
var _microphoneIndicator = require("agora-ui-foundation/lib/components/microphone-indicator");
|
|
14
|
-
var
|
|
12
|
+
var _type2 = require("../../../type");
|
|
15
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
14
|
var DeviceState = exports.DeviceState = (0, _mobxReact.observer)(function (_ref) {
|
|
17
15
|
var connectType = _ref.connectType,
|
|
@@ -20,7 +18,7 @@ var DeviceState = exports.DeviceState = (0, _mobxReact.observer)(function (_ref)
|
|
|
20
18
|
enableMicrophone = _ref.enableMicrophone,
|
|
21
19
|
microphoneEnabled = _ref.microphoneEnabled;
|
|
22
20
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
23
|
-
children: [connectType ===
|
|
21
|
+
children: [connectType === _type2.FcrUIConnectType.NONE && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
24
22
|
onClick: function onClick() {
|
|
25
23
|
return openConnection('computer');
|
|
26
24
|
},
|
|
@@ -32,7 +30,7 @@ var DeviceState = exports.DeviceState = (0, _mobxReact.observer)(function (_ref)
|
|
|
32
30
|
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
33
31
|
}
|
|
34
32
|
})
|
|
35
|
-
}), connectType ===
|
|
33
|
+
}), connectType === _type2.FcrUIConnectType.COMPUTER && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
36
34
|
onClick: function onClick() {
|
|
37
35
|
enableMicrophone(!microphoneEnabled);
|
|
38
36
|
},
|
|
@@ -40,7 +38,7 @@ var DeviceState = exports.DeviceState = (0, _mobxReact.observer)(function (_ref)
|
|
|
40
38
|
micEnabled: microphoneEnabled,
|
|
41
39
|
volume: microphoneVolumeLevel
|
|
42
40
|
})
|
|
43
|
-
}), connectType ===
|
|
41
|
+
}), connectType === _type2.FcrUIConnectType.PHONE && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
44
42
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
45
43
|
type: microphoneVolumeLevel > 20 ? _type.FcrIconType.FCR_PHONECALL3 : microphoneVolumeLevel > 10 ? _type.FcrIconType.FCR_PHONECALL2 : _type.FcrIconType.FCR_PHONECALL1,
|
|
46
44
|
size: 32,
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
html,
|
|
2
|
-
body {
|
|
3
|
-
background: transparent;
|
|
4
|
-
}
|
|
5
1
|
.fcr-video-window-dialog-wrapper {
|
|
6
2
|
display: flex;
|
|
7
3
|
flex-direction: column;
|
|
@@ -10,6 +6,7 @@ body {
|
|
|
10
6
|
box-sizing: border-box;
|
|
11
7
|
overflow: hidden;
|
|
12
8
|
}
|
|
9
|
+
|
|
13
10
|
.fcr-video-window-dialog-wrapper.electron {
|
|
14
11
|
border: none !important;
|
|
15
12
|
box-shadow: none !important;
|