fcr-ui-scene 3.1.1 → 3.3.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/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/base.d.ts +0 -1
- package/lib/base.js +16 -0
- package/lib/common/device-store.d.ts +4 -5
- package/lib/common/device-store.js +178 -86
- package/lib/common/device-stream-store.d.ts +3 -2
- package/lib/common/device-stream-store.js +94 -72
- package/lib/common/event-store.d.ts +20 -3
- package/lib/common/event-store.js +43 -5
- package/lib/common/security-store.d.ts +16 -16
- package/lib/common/security-store.js +278 -124
- package/lib/electron/app.js +13 -5
- package/lib/electron/bootstrap-dev.d.ts +1 -0
- package/lib/electron/bootstrap-dev.js +51 -0
- package/lib/electron/bootstrap-sdk.d.ts +1 -0
- package/lib/electron/bootstrap-sdk.js +56 -0
- package/lib/electron/bootstrap.d.ts +1 -0
- package/lib/electron/bootstrap.js +56 -0
- package/lib/electron/default-options.js +1 -1
- package/lib/electron/dev.d.ts +1 -0
- package/lib/electron/dev.js +51 -0
- package/lib/electron/injections.d.ts +3 -4
- package/lib/electron/injections.js +46 -33
- package/lib/electron/logger.d.ts +6 -0
- package/lib/electron/logger.js +66 -0
- package/lib/electron/main.js +15 -11
- package/lib/electron/plugins/meeting-state.d.ts +2 -0
- package/lib/electron/plugins/meeting-state.js +39 -0
- package/lib/electron/preload.js +2 -1
- package/lib/electron/tools.js +9 -0
- package/lib/electron/window.d.ts +1 -1
- package/lib/electron/window.js +14 -2
- package/lib/fragments/control-bar/context.d.ts +0 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
- package/lib/fragments/control-bar/control-bar-store.js +394 -81
- package/lib/fragments/control-bar/device/index.js +12 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +19 -1
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
- package/lib/fragments/control-bar/more-actions/index.css +53 -0
- package/lib/fragments/control-bar/more-actions/index.js +77 -37
- package/lib/fragments/control-bar/security-content/index.css +10 -0
- package/lib/fragments/control-bar/security-content/index.js +43 -18
- package/lib/fragments/control-bar/view.js +8 -2
- package/lib/fragments/live-streaming/context.d.ts +0 -1
- package/lib/fragments/live-streaming/store.js +27 -17
- package/lib/fragments/share-screen-selection/context.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.js +34 -33
- package/lib/fragments/share-screen-selection/view.js +7 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +4 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +5 -1
- package/lib/fragments/toolbar/components/color-picker.js +3 -1
- package/lib/fragments/toolbar/components/eraser-picker.js +4 -13
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +5 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +2 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +2 -0
- package/lib/fragments/toolbar/components/shape-picker.js +2 -0
- package/lib/fragments/toolbar/hooks.d.ts +1 -1
- package/lib/fragments/toolbar/hooks.js +13 -8
- package/lib/fragments/toolbar/store.d.ts +4 -4
- package/lib/fragments/toolbar/store.js +20 -2
- package/lib/fragments/toolbar/view.js +2 -0
- package/lib/global.d.ts +1 -0
- package/lib/hooks/meeting-time.d.ts +2 -2
- package/lib/login-confirm-dialog.d.ts +12 -0
- package/lib/login-confirm-dialog.js +80 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +14 -5
- package/lib/modules/action-bar/chat/index.js +6 -6
- package/lib/modules/action-bar/context.d.ts +0 -1
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.d.ts +2 -2
- package/lib/modules/action-bar/device/index.js +6 -4
- package/lib/modules/action-bar/index.css +63 -12
- package/lib/modules/action-bar/index.d.ts +3 -2
- package/lib/modules/action-bar/index.dev.js +8 -7
- package/lib/modules/action-bar/index.js +21 -0
- package/lib/modules/action-bar/item-placement.d.ts +1 -2
- package/lib/modules/action-bar/item.js +5 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -1
- package/lib/modules/action-bar/leave/assign-host.js +7 -7
- package/lib/modules/action-bar/leave/index.js +35 -7
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -1
- package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
- package/lib/modules/action-bar/more/poppover-content.d.ts +0 -1
- package/lib/modules/action-bar/more/poppover-content.js +14 -4
- package/lib/modules/action-bar/participants/index.css +12 -0
- package/lib/modules/action-bar/participants/index.js +21 -14
- package/lib/modules/action-bar/screen-share/index.js +5 -1
- package/lib/modules/action-bar/screen-share/submenu.js +17 -22
- package/lib/modules/action-bar/security/drop-menu.js +124 -14
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/settings/index.js +1 -1
- package/lib/modules/action-bar/store.d.ts +45 -21
- package/lib/modules/action-bar/store.js +544 -134
- package/lib/modules/action-bar/view.js +65 -42
- package/lib/modules/audio-stream/index.js +12 -6
- package/lib/modules/chat/chat-bar/index.js +46 -27
- package/lib/modules/chat/chat-select/index.css +19 -4
- package/lib/modules/chat/chat-select/index.d.ts +0 -1
- package/lib/modules/chat/chat-select/index.js +29 -3
- package/lib/modules/chat/chat.d.ts +2 -3
- package/lib/modules/chat/chat.js +210 -107
- package/lib/modules/chat/contex.d.ts +0 -1
- package/lib/modules/chat/demo-wrapper.d.ts +0 -1
- package/lib/modules/chat/index.css +49 -0
- package/lib/modules/chat/index.d.ts +3 -3
- package/lib/modules/chat/index.dev.js +4 -4
- package/lib/modules/chat/index.js +32 -11
- package/lib/modules/chat/message-list.js +81 -49
- package/lib/modules/chat/store.d.ts +50 -4
- package/lib/modules/chat/store.js +303 -124
- package/lib/modules/chat/util.js +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -0
- package/lib/modules/connection-gateway/components/phone/index.js +2 -0
- package/lib/modules/connection-gateway/index.d.ts +3 -2
- package/lib/modules/connection-gateway/index.js +2 -0
- package/lib/modules/connection-gateway/store.d.ts +6 -4
- package/lib/modules/connection-gateway/store.js +46 -15
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +1 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -2
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +0 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
- package/lib/modules/device-pretest/context.d.ts +0 -1
- package/lib/modules/device-pretest/index.css +0 -4
- package/lib/modules/device-pretest/index.d.ts +0 -1
- package/lib/modules/device-pretest/index.js +2 -1
- package/lib/modules/device-pretest/settings/beauty.js +19 -6
- package/lib/modules/device-pretest/settings/video-effect.d.ts +0 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -0
- package/lib/modules/device-pretest/store.js +34 -19
- package/lib/modules/dialog/components/chat/electron.js +3 -2
- package/lib/modules/dialog/components/chat/index.js +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +7 -5
- package/lib/modules/dialog/components/confirm/index.js +16 -2
- package/lib/modules/dialog/components/connection-gateway/electron.js +4 -2
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/device-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/device-setting/electron.js +74 -0
- package/lib/modules/dialog/components/device-setting/index.css +26 -0
- package/lib/modules/dialog/components/device-setting/index.d.ts +4 -0
- package/lib/modules/dialog/components/device-setting/index.js +60 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
- package/lib/modules/dialog/components/participant/electron.js +8 -2
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/components/whiteboard/index.js +2 -1
- package/lib/modules/dialog/context.d.ts +0 -1
- package/lib/modules/dialog/dialogs.d.ts +0 -2
- package/lib/modules/dialog/dialogs.js +62 -103
- package/lib/modules/dialog/index.css +7 -6
- package/lib/modules/dialog/index.d.ts +1 -1
- package/lib/modules/dialog/index.js +17 -0
- package/lib/modules/dialog/store.d.ts +6 -2
- package/lib/modules/dialog/store.js +52 -9
- package/lib/modules/dialog/view.js +2 -0
- package/lib/modules/event-notification/context.d.ts +2 -0
- package/lib/modules/event-notification/context.js +9 -0
- package/lib/modules/event-notification/index.css +58 -0
- package/lib/modules/event-notification/index.d.ts +13 -0
- package/lib/modules/event-notification/index.js +48 -0
- package/lib/modules/event-notification/store.d.ts +17 -0
- package/lib/modules/event-notification/store.js +133 -0
- package/lib/modules/event-notification/view.d.ts +5 -0
- package/lib/modules/event-notification/view.js +114 -0
- package/lib/modules/event-toast/context.d.ts +0 -1
- package/lib/modules/event-toast/store.js +16 -0
- package/lib/modules/invite/context.d.ts +0 -1
- package/lib/modules/invite/index.css +4 -4
- package/lib/modules/invite/index.d.ts +2 -2
- package/lib/modules/invite/pstn-invite.js +4 -1
- package/lib/modules/invite/store.d.ts +2 -2
- package/lib/modules/invite/store.js +27 -7
- package/lib/modules/invite/voip-invite.d.ts +0 -1
- package/lib/modules/invite/voip-invite.js +1 -1
- package/lib/modules/layout/components/Aside.d.ts +0 -1
- package/lib/modules/layout/components/Aside.js +4 -1
- package/lib/modules/layout/components/Carousel.js +6 -5
- package/lib/modules/layout/components/Gallery.js +16 -9
- package/lib/modules/layout/components/Layout.js +82 -57
- package/lib/modules/layout/components/index.css +42 -5
- package/lib/modules/layout/components/index.js +3 -0
- package/lib/modules/layout/context.d.ts +0 -1
- package/lib/modules/layout/index.css +30 -0
- package/lib/modules/layout/index.dev.js +11 -11
- package/lib/modules/layout/index.js +0 -6
- package/lib/modules/layout/member-window/index.css +5 -5
- package/lib/modules/layout/member-window/index.d.ts +7 -7
- package/lib/modules/layout/member-window/index.js +59 -13
- package/lib/modules/layout/store.d.ts +61 -50
- package/lib/modules/layout/store.js +517 -342
- package/lib/modules/layout/type.d.ts +2 -1
- package/lib/modules/layout/video-window-datasource.d.ts +14 -8
- package/lib/modules/layout/video-window-datasource.js +129 -78
- package/lib/modules/live-streaming/context.d.ts +0 -1
- package/lib/modules/live-streaming/index.d.ts +2 -2
- package/lib/modules/live-streaming/index.dev.js +5 -4
- package/lib/modules/live-streaming/store.d.ts +2 -2
- package/lib/modules/live-streaming/store.js +32 -11
- package/lib/modules/participant/attendee/index.d.ts +12 -3
- package/lib/modules/participant/attendee/index.js +142 -30
- package/lib/modules/participant/context.d.ts +0 -1
- package/lib/modules/participant/index.css +20 -0
- package/lib/modules/participant/index.d.ts +5 -2
- package/lib/modules/participant/index.dev.js +14 -12
- package/lib/modules/participant/index.js +27 -0
- package/lib/modules/participant/member-list-data-source.d.ts +3 -3
- package/lib/modules/participant/member-list-data-source.js +29 -3
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +35 -1
- package/lib/modules/participant/store.d.ts +59 -34
- package/lib/modules/participant/store.js +541 -222
- package/lib/modules/participant/view.d.ts +6 -6
- package/lib/modules/participant/view.js +138 -34
- package/lib/modules/setting/audio-settings/audio-settings.js +16 -12
- package/lib/modules/setting/audio-settings/index.css +2 -2
- package/lib/modules/setting/context.d.ts +0 -1
- package/lib/modules/setting/general-settings/general-settings.js +2 -1
- package/lib/modules/setting/general-settings/index.css +2 -2
- package/lib/modules/setting/index.css +1 -5
- package/lib/modules/setting/index.d.ts +2 -2
- package/lib/modules/setting/index.dev.js +14 -12
- package/lib/modules/setting/index.js +16 -0
- package/lib/modules/setting/minutes-settings/index.css +65 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.d.ts +4 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.js +159 -0
- package/lib/modules/setting/state/index.css +0 -4
- package/lib/modules/setting/state/index.js +11 -1
- package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib/modules/setting/store.d.ts +7 -5
- package/lib/modules/setting/store.js +69 -46
- package/lib/modules/setting/translate-settings/index.css +45 -0
- package/lib/modules/setting/translate-settings/language-select.d.ts +12 -0
- package/lib/modules/setting/translate-settings/language-select.js +50 -0
- package/lib/modules/setting/translate-settings/translate-settings.d.ts +4 -0
- package/lib/modules/setting/translate-settings/translate-settings.js +139 -0
- package/lib/modules/setting/video-settings/index.css +15 -6
- package/lib/modules/setting/video-settings/video-settings-basic.js +3 -2
- package/lib/modules/setting/video-settings/video-settings.js +5 -1
- package/lib/modules/setting/view.js +34 -2
- package/lib/modules/share-screen/index.d.ts +4 -2
- package/lib/modules/share-screen/index.dev.js +17 -14
- package/lib/modules/share-screen/index.js +2 -0
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +44 -6
- package/lib/modules/share-screen/share-state-bar/index.css +49 -11
- package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -1
- package/lib/modules/share-screen/share-state-bar/index.js +51 -20
- package/lib/modules/share-screen/store.d.ts +23 -13
- package/lib/modules/share-screen/store.js +733 -606
- package/lib/modules/state-bar/context.d.ts +0 -1
- package/lib/modules/state-bar/index.css +2 -2
- package/lib/modules/state-bar/index.d.ts +2 -2
- package/lib/modules/state-bar/index.dev.js +12 -10
- package/lib/modules/state-bar/layout-config.js +2 -0
- package/lib/modules/state-bar/live-streaming-state.js +3 -0
- package/lib/modules/state-bar/meeting-detail.css +6 -4
- package/lib/modules/state-bar/meeting-details.js +29 -3
- package/lib/modules/state-bar/meeting-network-state.css +14 -3
- package/lib/modules/state-bar/meeting-network-state.js +10 -4
- package/lib/modules/state-bar/recording.js +9 -11
- package/lib/modules/state-bar/store.d.ts +7 -5
- package/lib/modules/state-bar/store.js +68 -8
- package/lib/modules/state-bar/view.js +4 -8
- package/lib/modules/video-window/context.d.ts +0 -1
- package/lib/modules/video-window/deviceState/index.d.ts +3 -3
- package/lib/modules/video-window/index.css +1 -0
- package/lib/modules/video-window/members/index.js +7 -4
- package/lib/modules/video-window/store.d.ts +5 -4
- package/lib/modules/video-window/store.js +49 -17
- package/lib/modules/video-window/topControl/index.js +7 -0
- package/lib/modules/video-window/view.js +2 -0
- package/lib/modules/waiting-room-layout/context.d.ts +2 -0
- package/lib/modules/waiting-room-layout/context.js +9 -0
- package/lib/modules/waiting-room-layout/index.css +71 -0
- package/lib/modules/waiting-room-layout/index.d.ts +8 -0
- package/lib/modules/waiting-room-layout/index.js +47 -0
- package/lib/modules/waiting-room-layout/store.d.ts +30 -0
- package/lib/modules/waiting-room-layout/store.js +189 -0
- package/lib/modules/waiting-room-layout/type.d.ts +0 -0
- package/lib/modules/waiting-room-layout/type.js +1 -0
- package/lib/modules/waiting-room-layout/view.d.ts +3 -0
- package/lib/modules/waiting-room-layout/view.js +67 -0
- package/lib/modules/whiteboard/app.js +2 -8
- package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +29 -29
- package/lib/modules/whiteboard/components/loading/index.js +2 -2
- package/lib/modules/whiteboard/components/multi-window/index.js +8 -3
- package/lib/modules/whiteboard/components/pagination/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +3 -2
- package/lib/modules/whiteboard/components/progress/style.css +4 -3
- package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.js +29 -17
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +11 -2
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +21 -20
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +11 -9
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +18 -12
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +16 -11
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +8 -7
- package/lib/modules/whiteboard/components/toolbar/store.js +25 -4
- package/lib/modules/whiteboard/context.d.ts +7 -3
- package/lib/modules/whiteboard/context.js +6 -4
- package/lib/modules/whiteboard/index.d.ts +6 -8
- package/lib/modules/whiteboard/index.js +310 -255
- package/lib/modules/whiteboard/type.d.ts +4 -12
- package/lib/modules/whiteboard/type.js +6 -16
- package/lib/modules/whiteboard/utils.d.ts +1 -0
- package/lib/modules/whiteboard/utils.js +12 -1
- package/lib/plugins/browser-runtime-plugin.js +2 -1
- package/lib/plugins/module-dev-plugin.js +12 -10
- package/lib/plugins/multi-lang-plugin.d.ts +1 -5
- package/lib/plugins/multi-lang-plugin.js +2 -0
- package/lib/runtime.d.ts +3 -5
- package/lib/translations/enUS.d.ts +590 -0
- package/lib/translations/enUS.js +608 -6
- package/lib/translations/zhCN.d.ts +588 -0
- package/lib/translations/zhCN.js +604 -4
- package/lib/type.d.ts +6 -2
- package/lib/ui-manager.d.ts +7 -3
- package/lib/ui-manager.js +597 -143
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +32 -22
- package/lib/utilities/board-context.d.ts +0 -1
- package/lib/utilities/constant.d.ts +47 -5
- package/lib/utilities/constant.js +44 -1
- package/lib/utilities/copyText.js +1 -1
- package/lib/utilities/extract.js +26 -3
- package/lib/utilities/hooks.js +2 -0
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/renderer-event.js +28 -0
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +15 -6
- package/lib/utilities/tools.js +5 -2
- package/lib/utilities/ui-resources.d.ts +2 -2
- package/lib/utilities/ui-resources.js +20 -3
- package/lib/utilities/video-track-render-context.d.ts +0 -1
- package/package.json +17 -16
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/login_confirm.png +0 -0
- package/public/index.html +29 -11
- package/lib/modules/device-pretest/settings/index.css +0 -15
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -275
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
.fcr-state-bar__meeting-info-drop .fcr-drop-menu {
|
|
487
487
|
width: 100%;
|
|
488
488
|
border: 1px solid var(--fcr_ui_scene_line1);
|
|
489
|
-
box-shadow:
|
|
489
|
+
box-shadow: var(--fcr_web_light_dropup_m);
|
|
490
490
|
}
|
|
491
491
|
.fcr-state-bar__meeting-info-drop .fcr-drop-menu-option-text {
|
|
492
492
|
overflow: hidden;
|
|
@@ -527,7 +527,7 @@
|
|
|
527
527
|
.fcr-state-bar__meeting-info-drop .fcr-drop-menu {
|
|
528
528
|
width: 100%;
|
|
529
529
|
border: 1px solid var(--fcr_ui_scene_line1);
|
|
530
|
-
box-shadow:
|
|
530
|
+
box-shadow: var(--fcr_web_light_dropup_m);
|
|
531
531
|
}
|
|
532
532
|
.fcr-state-bar__meeting-info-drop .fcr-drop-menu-option-text {
|
|
533
533
|
overflow: hidden;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { UIModule } from '../../base';
|
|
2
2
|
import './index.css';
|
|
3
|
-
import { FcrMainRoomControl } from 'agora-edu-core';
|
|
4
3
|
import { FcrUIEventStore } from '../../common/event-store';
|
|
5
4
|
import { FcrSecurityStore } from '../../common/security-store';
|
|
6
5
|
import { FcrUISceneConfig } from '../../type';
|
|
6
|
+
import { FcrMainRoomControl, FcrWaitingRoomControl } from 'agora-edu-core/lib/room-control/type';
|
|
7
7
|
export declare class StateBarUIModule extends UIModule {
|
|
8
8
|
private _store;
|
|
9
9
|
constructor({ roomControl, uiEventStore, securityStore, config, }: {
|
|
10
|
-
roomControl: FcrMainRoomControl;
|
|
10
|
+
roomControl: FcrMainRoomControl | FcrWaitingRoomControl;
|
|
11
11
|
uiEventStore: FcrUIEventStore;
|
|
12
12
|
securityStore: FcrSecurityStore;
|
|
13
13
|
config: FcrUISceneConfig;
|
|
@@ -16,7 +16,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
var App = (0, _root.hot)(function () {
|
|
17
17
|
return null;
|
|
18
18
|
});
|
|
19
|
-
_reactDom["default"].render(
|
|
19
|
+
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(App, {}), document.querySelector('#root'));
|
|
20
20
|
var Layout = function Layout(props) {
|
|
21
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
22
22
|
style: {
|
|
@@ -26,25 +26,27 @@ var Layout = function Layout(props) {
|
|
|
26
26
|
children: props.children
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
window.__DEV_ENGINE_IS_READY__.then(
|
|
30
|
-
var engine, roomId, roomControl, uiEventStore, securityStore, uiModule, App;
|
|
29
|
+
window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
30
|
+
var engine, roomId, token, roomControl, uiEventStore, securityStore, uiModule, App;
|
|
31
31
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
32
32
|
while (1) switch (_context.prev = _context.next) {
|
|
33
33
|
case 0:
|
|
34
34
|
engine = window.__DEV_ENGINE__;
|
|
35
35
|
roomId = window.__DEV_ROOM_ID__;
|
|
36
|
-
|
|
36
|
+
token = window.__DEV_USER_TOKEN__;
|
|
37
|
+
_context.next = 5;
|
|
37
38
|
return engine.login();
|
|
38
|
-
case
|
|
39
|
-
roomControl = engine.
|
|
40
|
-
_context.next =
|
|
39
|
+
case 5:
|
|
40
|
+
roomControl = engine.createMainRoomControl(roomId);
|
|
41
|
+
_context.next = 8;
|
|
41
42
|
return roomControl.join({
|
|
42
43
|
userRole: _type.FcrUserRole.HOST,
|
|
43
44
|
userName: 'test-user',
|
|
45
|
+
roomToken: token,
|
|
44
46
|
streamLatency: _type.FcrStreamLatencyLevel.ULTRA_LOW,
|
|
45
47
|
createStreamConfigs: []
|
|
46
48
|
});
|
|
47
|
-
case
|
|
49
|
+
case 8:
|
|
48
50
|
setInterval(function () {
|
|
49
51
|
//@ts-ignore
|
|
50
52
|
roomControl._observable.notifyObservers('onNetworkStatsUpdated', roomId, {
|
|
@@ -71,10 +73,10 @@ window.__DEV_ENGINE_IS_READY__.then( /*#__PURE__*/(0, _asyncToGenerator2["defaul
|
|
|
71
73
|
}, []);
|
|
72
74
|
return uiModule.getComponent();
|
|
73
75
|
});
|
|
74
|
-
_reactDom["default"].render(
|
|
76
|
+
_reactDom["default"].render(/*#__PURE__*/(0, _jsxRuntime.jsx)(Layout, {
|
|
75
77
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(App, {})
|
|
76
78
|
}), document.querySelector('#root'));
|
|
77
|
-
case
|
|
79
|
+
case 14:
|
|
78
80
|
case "end":
|
|
79
81
|
return _context.stop();
|
|
80
82
|
}
|
|
@@ -8,6 +8,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.LayoutConfig = void 0;
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
require("core-js/modules/es.array.map.js");
|
|
11
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
12
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
11
13
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
12
14
|
var _mobxReact = require("mobx-react");
|
|
13
15
|
var _useNamespace = require("../../utilities/useNamespace");
|
|
@@ -8,6 +8,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.LiveStreamingState = void 0;
|
|
9
9
|
require("core-js/modules/es.array.filter.js");
|
|
10
10
|
require("core-js/modules/es.object.to-string.js");
|
|
11
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
12
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
13
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
11
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
15
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
13
16
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
@@ -18,15 +18,17 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.meeting-details__content {
|
|
21
|
-
margin-top:
|
|
21
|
+
margin-top: 12px;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.meeting-details__content-meeting-subject {
|
|
25
25
|
font-size: 12px;
|
|
26
|
-
font-weight:
|
|
26
|
+
font-weight: 600;
|
|
27
27
|
color: var(--fcr_ui_scene_icontext1, #ffffff);
|
|
28
28
|
word-break: break-all;
|
|
29
29
|
text-align: left;
|
|
30
|
+
min-height: 32px;
|
|
31
|
+
line-height: 32px;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
.meeting-details__content-meeting-id,
|
|
@@ -78,8 +80,8 @@
|
|
|
78
80
|
.meeting-details__content-meeting-id > div > svg:hover,
|
|
79
81
|
.meeting-details__content-code > div > svg:hover,
|
|
80
82
|
.meeting-details__content-share-link > div > svg:hover {
|
|
81
|
-
background-color: var(--fcr_web_ui_scene_hover
|
|
82
|
-
fill: var(--
|
|
83
|
+
background-color: var(--fcr_web_ui_scene_hover);
|
|
84
|
+
fill: var(--fcr_web_ui_scene_mainicon2);
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
.meeting-details__footer {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.MeetingDetails = void 0;
|
|
9
|
+
require("core-js/modules/es.array.concat.js");
|
|
9
10
|
require("core-js/modules/es.regexp.exec.js");
|
|
10
11
|
require("core-js/modules/es.string.replace.js");
|
|
11
12
|
var _button = require("agora-ui-foundation/lib/components/button");
|
|
@@ -27,17 +28,20 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
27
28
|
localUser = _useContext.localUser,
|
|
28
29
|
roomInfo = _useContext.roomInfo,
|
|
29
30
|
scheduleInfo = _useContext.scheduleInfo,
|
|
30
|
-
getShareLink = _useContext.getShareLink
|
|
31
|
+
getShareLink = _useContext.getShareLink,
|
|
32
|
+
password = _useContext.password,
|
|
33
|
+
toastCopyInfo = _useContext.toastCopyInfo;
|
|
31
34
|
var shareLink = (0, _react.useMemo)(function () {
|
|
32
35
|
return getShareLink();
|
|
33
36
|
}, []);
|
|
34
37
|
if (!roomInfo || !localUser) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
|
35
38
|
var displayMeetingId = roomInfo.roomId.replace(/(.{3})/g, '$1 ');
|
|
36
|
-
var detailText = t('
|
|
39
|
+
var detailText = t('fmt_link_invitation', {
|
|
37
40
|
reason1: localUser.userName,
|
|
38
41
|
reason2: roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomName,
|
|
39
42
|
reason3: (0, _dayjs["default"])((_scheduleInfo$startTi = scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) !== null && _scheduleInfo$startTi !== void 0 ? _scheduleInfo$startTi : 0).format('YYYY-MM-DD HH:mm:ss'),
|
|
40
|
-
reason4: shareLink
|
|
43
|
+
reason4: shareLink,
|
|
44
|
+
reason5: !!password ? "".concat(t('fmt_meeting_creatpage_label_password'), ": ").concat(password) : ''
|
|
41
45
|
});
|
|
42
46
|
function handleCopyMeetingId(meetingId) {
|
|
43
47
|
(0, _copyText.copyText)(meetingId).then(function () {
|
|
@@ -56,6 +60,13 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
56
60
|
});
|
|
57
61
|
});
|
|
58
62
|
}
|
|
63
|
+
function handleCopyMeetingPassword(password) {
|
|
64
|
+
(0, _copyText.copyText)(password).then(function () {
|
|
65
|
+
toastCopyInfo('info', t('fmt_uimanager_tips_passwordcopied'));
|
|
66
|
+
})["catch"](function () {
|
|
67
|
+
toastCopyInfo('warn', t('fmt_settings_tips_passwordcopyfailed'));
|
|
68
|
+
});
|
|
69
|
+
}
|
|
59
70
|
function handlerCopyMeetingShareLink(shareLink) {
|
|
60
71
|
(0, _copyText.copyText)(shareLink).then(function () {
|
|
61
72
|
_toast.FcrToastApi.open({
|
|
@@ -130,6 +141,21 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
130
141
|
size: 22
|
|
131
142
|
})
|
|
132
143
|
})]
|
|
144
|
+
}), !!password && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
145
|
+
className: "meeting-details__content-share-link",
|
|
146
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
147
|
+
children: t('fmt_meeting_creatpage_label_password')
|
|
148
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
149
|
+
children: password
|
|
150
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
151
|
+
onClick: function onClick() {
|
|
152
|
+
return handleCopyMeetingPassword(password !== null && password !== void 0 ? password : '');
|
|
153
|
+
},
|
|
154
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
155
|
+
type: _type.FcrIconType.FCR_COPY,
|
|
156
|
+
size: 22
|
|
157
|
+
})
|
|
158
|
+
})]
|
|
133
159
|
})]
|
|
134
160
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
135
161
|
className: "meeting-details__footer",
|
|
@@ -11,18 +11,28 @@
|
|
|
11
11
|
.meeting-network-state__connection {
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
|
+
align-items: start;
|
|
14
15
|
border-radius: var(--fcr_cornerradius_l, 8px);
|
|
15
|
-
padding: 18px 15px;
|
|
16
|
+
padding: 18px 15px 20px 15px;
|
|
16
17
|
background-color: var(--fcr_web_ui_scene_fill4_popup, #43434e);
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.meeting-network-state__connection > label {
|
|
20
21
|
font-size: 14px;
|
|
22
|
+
height: 30px;
|
|
23
|
+
line-height: 30px;
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.meeting-network-state__connection .meeting-network-state_text {
|
|
28
|
+
vertical-align: middle;
|
|
21
29
|
}
|
|
22
30
|
|
|
23
31
|
.meeting-network-state__connection > span {
|
|
24
|
-
margin-top:
|
|
32
|
+
margin-top: 6px;
|
|
25
33
|
font-size: 22px;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
height: 24px;
|
|
26
36
|
}
|
|
27
37
|
|
|
28
38
|
.meeting-network-state__connection > span.excellent {
|
|
@@ -47,7 +57,7 @@
|
|
|
47
57
|
}
|
|
48
58
|
|
|
49
59
|
.meeting-network-state__loss-rate {
|
|
50
|
-
margin-bottom: 10px;
|
|
60
|
+
/* margin-bottom: 10px; */
|
|
51
61
|
}
|
|
52
62
|
|
|
53
63
|
.meeting-network-state__delay,
|
|
@@ -87,6 +97,7 @@
|
|
|
87
97
|
.meeting-network-state__loss-rate__value > div {
|
|
88
98
|
display: flex;
|
|
89
99
|
line-height: 32px;
|
|
100
|
+
text-align: left;
|
|
90
101
|
}
|
|
91
102
|
|
|
92
103
|
.meeting-network-state__loss-rate__value > div > span:first-child {
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.MeetingNetworkState = void 0;
|
|
8
|
+
require("core-js/modules/es.array.concat.js");
|
|
8
9
|
var _react = require("react");
|
|
9
10
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
10
11
|
var _mobxReact = require("mobx-react");
|
|
@@ -51,16 +52,21 @@ var MeetingNetworkState = exports.MeetingNetworkState = (0, _mobxReact.observer)
|
|
|
51
52
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
52
53
|
children: t('fmt_networkstatus_window_title')
|
|
53
54
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
54
|
-
className:
|
|
55
|
-
children: [
|
|
55
|
+
className: networkStatus,
|
|
56
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
57
|
+
className: "meeting-network-state_text",
|
|
58
|
+
children: [networkStatusData.text, " "]
|
|
59
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
60
|
+
children: networkStatusData.icon
|
|
61
|
+
})]
|
|
56
62
|
})]
|
|
57
63
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
58
64
|
className: "meeting-network-state__delay",
|
|
59
65
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
60
66
|
children: t('fmt_networkstatus_window_latency')
|
|
61
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
67
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
62
68
|
className: "meeting-network-state__delay__value",
|
|
63
|
-
children:
|
|
69
|
+
children: "".concat(networkStats.networkDelay, " ").concat(t('fmt_statusbar_label_millisecond'))
|
|
64
70
|
})]
|
|
65
71
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
66
72
|
className: "meeting-network-state__loss-rate",
|
|
@@ -20,7 +20,7 @@ var _context = require("./context");
|
|
|
20
20
|
var _store = require("./store");
|
|
21
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
22
|
var colors = {
|
|
23
|
-
iconPrimary: '
|
|
23
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext2)'
|
|
24
24
|
};
|
|
25
25
|
var Recording = exports.Recording = (0, _mobxReact.observer)(function () {
|
|
26
26
|
var t = (0, _i18n.useI18n)();
|
|
@@ -43,7 +43,7 @@ var Recording = exports.Recording = (0, _mobxReact.observer)(function () {
|
|
|
43
43
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
44
44
|
type: _type2.FcrIconType.FCR_CLOUDRECORD,
|
|
45
45
|
colors: {
|
|
46
|
-
iconPrimary: galleryWidth < _store.GALLERY_MIN_SIZE ? '' : '
|
|
46
|
+
iconPrimary: galleryWidth < _store.GALLERY_MIN_SIZE ? '' : 'var(--fcr_ui_scene_icontext2)'
|
|
47
47
|
}
|
|
48
48
|
}), galleryWidth >= _store.GALLERY_MIN_SIZE && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
49
49
|
className: ns.e('record-text'),
|
|
@@ -53,9 +53,7 @@ var Recording = exports.Recording = (0, _mobxReact.observer)(function () {
|
|
|
53
53
|
className: ns.e('record-tag'),
|
|
54
54
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
55
55
|
type: _type2.FcrIconType.FCR_CLOUDRECORD,
|
|
56
|
-
colors:
|
|
57
|
-
iconPrimary: 'currentColor'
|
|
58
|
-
}
|
|
56
|
+
colors: colors
|
|
59
57
|
}), galleryWidth >= _store.GALLERY_MIN_SIZE && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
60
58
|
className: ns.e('record-text'),
|
|
61
59
|
children: "REC"
|
|
@@ -100,11 +98,11 @@ var Recording = exports.Recording = (0, _mobxReact.observer)(function () {
|
|
|
100
98
|
if (!hasStartCloudRecordingPermission && (isPaused || isStarting)) {
|
|
101
99
|
return null;
|
|
102
100
|
}
|
|
103
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
104
|
-
|
|
105
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
106
|
-
|
|
107
|
-
children:
|
|
108
|
-
})
|
|
101
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
102
|
+
className: ns.e('record'),
|
|
103
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
104
|
+
content: isPaused ? t('fmt_statusbar_label_cloudrecordingpaused') : isStarting ? t('fmt_record_tips_Cloudrecording_Start') : t('fmt_record_tips_Cloudrecording_inprogress'),
|
|
105
|
+
children: tag
|
|
106
|
+
}), galleryWidth >= _store.GALLERY_MIN_SIZE && buttons]
|
|
109
107
|
});
|
|
110
108
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FcrRecordingState, FcrRoomInfo, FcrScheduleInfo, FcrUserInfo } from 'agora-edu-core/lib/type';
|
|
1
|
+
import { FcrRecordingState, FcrRoomInfo, FcrRoomSchedule, FcrUserInfo } from 'agora-edu-core/lib/type';
|
|
3
2
|
import { FcrUIEventStore } from '../../common/event-store';
|
|
4
3
|
import { DeviceSettingDialogConfig } from '../setting/store';
|
|
5
4
|
import { FcrSecurityStore } from '../../common/security-store';
|
|
6
5
|
import { FcrUISceneConfig } from '../../type';
|
|
6
|
+
import { FcrMainRoomControl, FcrWaitingRoomControl } from 'agora-edu-core/lib/room-control/type';
|
|
7
7
|
export type NetworkStatus = 'excellent' | 'average' | 'poor' | 'unknown';
|
|
8
8
|
export declare const GALLERY_MIN_SIZE = 825;
|
|
9
9
|
export default class StateBarStore {
|
|
@@ -17,7 +17,7 @@ export default class StateBarStore {
|
|
|
17
17
|
accessor networkStatus: NetworkStatus;
|
|
18
18
|
accessor localUser: FcrUserInfo | undefined;
|
|
19
19
|
accessor roomInfo: FcrRoomInfo | undefined;
|
|
20
|
-
accessor scheduleInfo:
|
|
20
|
+
accessor scheduleInfo: FcrRoomSchedule | undefined;
|
|
21
21
|
accessor isLiveStreaming: boolean;
|
|
22
22
|
accessor liveStreamingPlayUrl: string;
|
|
23
23
|
accessor galleryWidth: number;
|
|
@@ -37,8 +37,9 @@ export default class StateBarStore {
|
|
|
37
37
|
get hasStartCloudRecordingPermission(): boolean;
|
|
38
38
|
get hasStopLiveStreamingPermission(): boolean;
|
|
39
39
|
get hasGetLiveStreamingLinkPermission(): boolean;
|
|
40
|
+
get password(): string | undefined;
|
|
40
41
|
constructor({ roomControl, uiEventStore, securityStore, config, }: {
|
|
41
|
-
roomControl: FcrMainRoomControl;
|
|
42
|
+
roomControl: FcrMainRoomControl | FcrWaitingRoomControl;
|
|
42
43
|
uiEventStore: FcrUIEventStore;
|
|
43
44
|
securityStore: FcrSecurityStore;
|
|
44
45
|
config: FcrUISceneConfig;
|
|
@@ -47,7 +48,7 @@ export default class StateBarStore {
|
|
|
47
48
|
setNetworkStatus(networkStatus: NetworkStatus): void;
|
|
48
49
|
setLocalUser(localUser: FcrUserInfo): void;
|
|
49
50
|
setRoomInfo(roomInfo: FcrRoomInfo | undefined): void;
|
|
50
|
-
setScheduleInfo(scheduleInfo:
|
|
51
|
+
setScheduleInfo(scheduleInfo: FcrRoomSchedule): void;
|
|
51
52
|
toggleLayout(layout: 'speaker' | 'gallery'): void;
|
|
52
53
|
toggleLayoutBarLock(state: boolean): void;
|
|
53
54
|
openVideoWindowDialog(): void;
|
|
@@ -60,6 +61,7 @@ export default class StateBarStore {
|
|
|
60
61
|
resumeCloudRecording(): void;
|
|
61
62
|
stopCloudRecording(): void;
|
|
62
63
|
getShareLink(): string;
|
|
64
|
+
toastCopyInfo(type: 'error' | 'warn' | 'info' | 'normal', content: string): void;
|
|
63
65
|
private _onNetworkQualityUpdated;
|
|
64
66
|
private _uiEvents;
|
|
65
67
|
private _setBrowserWidth;
|
|
@@ -12,6 +12,22 @@ require("core-js/modules/es.number.constructor.js");
|
|
|
12
12
|
require("core-js/modules/es.object.create.js");
|
|
13
13
|
require("core-js/modules/es.object.define-property.js");
|
|
14
14
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
15
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
16
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
17
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
18
|
+
require("core-js/modules/esnext.map.every.js");
|
|
19
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
20
|
+
require("core-js/modules/esnext.map.find.js");
|
|
21
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
22
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
23
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
24
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
25
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
26
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
27
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
28
|
+
require("core-js/modules/esnext.map.some.js");
|
|
29
|
+
require("core-js/modules/esnext.map.update.js");
|
|
30
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
15
31
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
16
32
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
17
33
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -34,6 +50,34 @@ require("core-js/modules/es.set.js");
|
|
|
34
50
|
require("core-js/modules/es.string.includes.js");
|
|
35
51
|
require("core-js/modules/es.string.iterator.js");
|
|
36
52
|
require("core-js/modules/es.weak-map.js");
|
|
53
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
54
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
55
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
56
|
+
require("core-js/modules/esnext.set.add-all.js");
|
|
57
|
+
require("core-js/modules/esnext.set.delete-all.js");
|
|
58
|
+
require("core-js/modules/esnext.set.difference.v2.js");
|
|
59
|
+
require("core-js/modules/esnext.set.difference.js");
|
|
60
|
+
require("core-js/modules/esnext.set.every.js");
|
|
61
|
+
require("core-js/modules/esnext.set.filter.js");
|
|
62
|
+
require("core-js/modules/esnext.set.find.js");
|
|
63
|
+
require("core-js/modules/esnext.set.intersection.v2.js");
|
|
64
|
+
require("core-js/modules/esnext.set.intersection.js");
|
|
65
|
+
require("core-js/modules/esnext.set.is-disjoint-from.v2.js");
|
|
66
|
+
require("core-js/modules/esnext.set.is-disjoint-from.js");
|
|
67
|
+
require("core-js/modules/esnext.set.is-subset-of.v2.js");
|
|
68
|
+
require("core-js/modules/esnext.set.is-subset-of.js");
|
|
69
|
+
require("core-js/modules/esnext.set.is-superset-of.v2.js");
|
|
70
|
+
require("core-js/modules/esnext.set.is-superset-of.js");
|
|
71
|
+
require("core-js/modules/esnext.set.join.js");
|
|
72
|
+
require("core-js/modules/esnext.set.map.js");
|
|
73
|
+
require("core-js/modules/esnext.set.reduce.js");
|
|
74
|
+
require("core-js/modules/esnext.set.some.js");
|
|
75
|
+
require("core-js/modules/esnext.set.symmetric-difference.v2.js");
|
|
76
|
+
require("core-js/modules/esnext.set.symmetric-difference.js");
|
|
77
|
+
require("core-js/modules/esnext.set.union.v2.js");
|
|
78
|
+
require("core-js/modules/esnext.set.union.js");
|
|
79
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
80
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
37
81
|
require("core-js/modules/web.btoa.js");
|
|
38
82
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
39
83
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
@@ -54,8 +98,8 @@ var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
|
54
98
|
var _components = require("../layout/components");
|
|
55
99
|
var _StateBarStore;
|
|
56
100
|
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_layoutSize, _init_layoutView, _init_cloudRecordingState, _setNetworkStatusDecs, _setLocalUserDecs, _setRoomInfoDecs, _setScheduleInfoDecs, _stopLiveStreamingDialogDecs, _uiEventsDecs, _setBrowserWidthDecs, _onNetworkStatsUpdatedDecs, _onLiveStreamingStateUpdatedDecs, _ref;
|
|
57
|
-
function _classPrivateFieldInitSpec(
|
|
58
|
-
function _checkPrivateRedeclaration(
|
|
101
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
102
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
59
103
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
60
104
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
61
105
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
@@ -276,6 +320,12 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
276
320
|
get: function get() {
|
|
277
321
|
return this._securityStore.hasGetLiveStreamingLinkPermission();
|
|
278
322
|
}
|
|
323
|
+
}, {
|
|
324
|
+
key: "password",
|
|
325
|
+
get: function get() {
|
|
326
|
+
var _this$_roomControl$ge2;
|
|
327
|
+
return (_this$_roomControl$ge2 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge2 === void 0 ? void 0 : _this$_roomControl$ge2.password;
|
|
328
|
+
}
|
|
279
329
|
}, {
|
|
280
330
|
key: "isLockRoomEnabled",
|
|
281
331
|
value: function isLockRoomEnabled() {
|
|
@@ -317,7 +367,8 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
317
367
|
key: "toggleLayout",
|
|
318
368
|
value: function toggleLayout(layout) {
|
|
319
369
|
this._uiEventStore.toggleLayout({
|
|
320
|
-
layout: layout
|
|
370
|
+
layout: layout,
|
|
371
|
+
manual: true
|
|
321
372
|
});
|
|
322
373
|
}
|
|
323
374
|
}, {
|
|
@@ -394,6 +445,14 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
394
445
|
}
|
|
395
446
|
return "".concat(baseLink, "?").concat(strArgs);
|
|
396
447
|
}
|
|
448
|
+
}, {
|
|
449
|
+
key: "toastCopyInfo",
|
|
450
|
+
value: function toastCopyInfo(type, content) {
|
|
451
|
+
this._uiEventStore.showToast({
|
|
452
|
+
type: type,
|
|
453
|
+
message: content
|
|
454
|
+
});
|
|
455
|
+
}
|
|
397
456
|
}, {
|
|
398
457
|
key: "_onNetworkQualityUpdated",
|
|
399
458
|
value: function _onNetworkQualityUpdated(_roomId, event) {
|
|
@@ -408,6 +467,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
408
467
|
case 3:
|
|
409
468
|
case 4:
|
|
410
469
|
case 5:
|
|
470
|
+
case 6:
|
|
411
471
|
this.setNetworkStatus('poor');
|
|
412
472
|
break;
|
|
413
473
|
default:
|
|
@@ -486,18 +546,18 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
486
546
|
}, {
|
|
487
547
|
key: "_initRoomInfo",
|
|
488
548
|
value: function _initRoomInfo() {
|
|
489
|
-
var _this$_roomControl$
|
|
549
|
+
var _this$_roomControl$ge3;
|
|
490
550
|
var info = this._roomControl.getRoomInfo();
|
|
491
551
|
this.setRoomInfo(info);
|
|
492
|
-
var user = (_this$_roomControl$
|
|
552
|
+
var user = (_this$_roomControl$ge3 = this._roomControl.getUserControl()) === null || _this$_roomControl$ge3 === void 0 ? void 0 : _this$_roomControl$ge3.getLocalUser();
|
|
493
553
|
this.setLocalUser(user);
|
|
494
|
-
var scheduleInfo = this._roomControl.
|
|
495
|
-
this.setScheduleInfo(scheduleInfo);
|
|
554
|
+
var scheduleInfo = this._roomControl.getRoomSchedule();
|
|
555
|
+
scheduleInfo && this.setScheduleInfo(scheduleInfo);
|
|
496
556
|
}
|
|
497
557
|
}]);
|
|
498
558
|
}();
|
|
499
559
|
_StateBarStore = StateBarStore;
|
|
500
|
-
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, "layoutSize"], [_mobx.observable, 1, "layoutView"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.computed, 3, "isUserHost"], [_mobx.computed, 3, "shouldShowMeetingTime"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingLinkPermission"], [_decorator.bound, 2, "isLockRoomEnabled"], [_setNetworkStatusDecs, 18, "setNetworkStatus"], [_setLocalUserDecs, 18, "setLocalUser"], [_setRoomInfoDecs, 18, "setRoomInfo"], [_setScheduleInfoDecs, 18, "setScheduleInfo"], [_mobx.action, 2, "refreshLayoutSize"], [_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"], [_uiEventsDecs, 18, "_uiEvents"], [_setBrowserWidthDecs, 18, "_setBrowserWidth"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLiveStreamingStateUpdatedDecs, 18, "_onLiveStreamingStateUpdated"]], []).e, 15);
|
|
560
|
+
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, "layoutSize"], [_mobx.observable, 1, "layoutView"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.computed, 3, "isUserHost"], [_mobx.computed, 3, "shouldShowMeetingTime"], [_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"], [_mobx.action, 2, "refreshLayoutSize"], [_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, "toastCopyInfo"], [_uiEventsDecs, 18, "_uiEvents"], [_setBrowserWidthDecs, 18, "_setBrowserWidth"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLiveStreamingStateUpdatedDecs, 18, "_onLiveStreamingStateUpdated"]], []).e, 15);
|
|
501
561
|
_init_networkStatus = _applyDecs$e[0];
|
|
502
562
|
_init_localUser = _applyDecs$e[1];
|
|
503
563
|
_init_roomInfo = _applyDecs$e[2];
|
|
@@ -12,7 +12,6 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
|
12
12
|
var _mobxReact = require("mobx-react");
|
|
13
13
|
require("./index.css");
|
|
14
14
|
var _useNamespace = require("../../utilities/useNamespace");
|
|
15
|
-
var _stateBarLogo = _interopRequireDefault(require("../../../public/assets/state-bar-logo.png"));
|
|
16
15
|
var _stepGradient = _interopRequireDefault(require("../../../public/assets/step-gradient.svg"));
|
|
17
16
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
18
17
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
@@ -37,7 +36,7 @@ var MyFcrToolTip = exports.MyFcrToolTip = function MyFcrToolTip(props) {
|
|
|
37
36
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
38
37
|
content: props.content,
|
|
39
38
|
trigger: "hover",
|
|
40
|
-
placement:
|
|
39
|
+
placement: props.placement || 'bottom',
|
|
41
40
|
mouseEnterDelay: 0,
|
|
42
41
|
children: props.children
|
|
43
42
|
});
|
|
@@ -68,7 +67,7 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
68
67
|
(0, _copyText.copyText)(roomInfo.roomId).then(function () {
|
|
69
68
|
_toast.FcrToastApi.open({
|
|
70
69
|
toastProps: {
|
|
71
|
-
type: '
|
|
70
|
+
type: 'normal',
|
|
72
71
|
content: t('fmt_information_tips_beencopied')
|
|
73
72
|
}
|
|
74
73
|
});
|
|
@@ -86,11 +85,7 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
86
85
|
className: ns.b(),
|
|
87
86
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
88
87
|
className: ns.e('left-nav'),
|
|
89
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
90
|
-
src: _stateBarLogo["default"],
|
|
91
|
-
alt: "logo",
|
|
92
|
-
className: ns.e('logo')
|
|
93
|
-
}), isLockRoomEnabled() && /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
|
|
88
|
+
children: [isLockRoomEnabled() && /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
|
|
94
89
|
content: "".concat(t('fmt_role_host')).concat(t('fmt_information_tips_lockedbyhost', {
|
|
95
90
|
reason1: isUserHost ? t('fmt_participant_label_Me') : ''
|
|
96
91
|
}), ")"),
|
|
@@ -164,6 +159,7 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
164
159
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_layoutConfig.LayoutConfig, {})
|
|
165
160
|
})
|
|
166
161
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
|
|
162
|
+
placement: "left",
|
|
167
163
|
content: isFullScreen ? t('fmt_statusbar_label_exitfullscreen') : t('fmt_statusbar_label_fullscreen'),
|
|
168
164
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
169
165
|
className: ns.e('full-screen'),
|
|
@@ -8,8 +8,8 @@ interface DeviceStateProps {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const DeviceState: ({ connectType, openConnection, microphoneVolumeLevel, enableMicrophone, microphoneEnabled, }: DeviceStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export declare const AudioRecordinDeviceIcon: ({ size, micEnabled, volume, }: {
|
|
11
|
-
size?: number
|
|
12
|
-
micEnabled?: boolean
|
|
13
|
-
volume?: number
|
|
11
|
+
size?: number;
|
|
12
|
+
micEnabled?: boolean;
|
|
13
|
+
volume?: number;
|
|
14
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|