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
|
@@ -6,6 +6,8 @@ require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
|
6
6
|
require("core-js/modules/es.object.to-string.js");
|
|
7
7
|
require("core-js/modules/es.string.iterator.js");
|
|
8
8
|
require("core-js/modules/es.weak-map.js");
|
|
9
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
10
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
9
11
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
10
12
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
11
13
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
@@ -101,7 +103,7 @@ var PSTNInvite = exports.PSTNInvite = (0, _mobxReact.observer)(function () {
|
|
|
101
103
|
});
|
|
102
104
|
});
|
|
103
105
|
}, []);
|
|
104
|
-
var handlepstnCall = (0, _react.useCallback)(
|
|
106
|
+
var handlepstnCall = (0, _react.useCallback)(/*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
105
107
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
106
108
|
while (1) switch (_context.prev = _context.next) {
|
|
107
109
|
case 0:
|
|
@@ -265,6 +267,7 @@ var PSTNInvite = exports.PSTNInvite = (0, _mobxReact.observer)(function () {
|
|
|
265
267
|
type: "secondary-bordered",
|
|
266
268
|
size: "XS",
|
|
267
269
|
onClick: handleCopyMeetingDetail,
|
|
270
|
+
className: "invite__pstn-invite-copyinfo",
|
|
268
271
|
children: transI18n('fmt_popup_button_meetinginfor')
|
|
269
272
|
})]
|
|
270
273
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FcrRoomControl } from 'agora-edu-core/lib/room-control';
|
|
2
1
|
import { FcrUIEventStore } from '../../common/event-store';
|
|
3
2
|
import { UIAction } from '../../utilities/constant';
|
|
4
3
|
import { FcrIPConnectorSessionType, FcrRoomConnectorIpInfo, FcrRoomConnectorPhoneInfo, FcrRoomConnectorPhoneRegion } from 'agora-edu-core/lib/room-control/room-connector-control/type';
|
|
4
|
+
import { FcrBaseRoomControl } from 'agora-edu-core/lib/room-control/type';
|
|
5
5
|
export declare enum InviteStatus {
|
|
6
6
|
DEFAULT = 0,
|
|
7
7
|
CALLING = 1,
|
|
@@ -42,7 +42,7 @@ export default class InviteStore {
|
|
|
42
42
|
private _voipSessionId;
|
|
43
43
|
private _roomConnectorObserver;
|
|
44
44
|
constructor({ roomControl, uiEventStore, }: {
|
|
45
|
-
roomControl:
|
|
45
|
+
roomControl: FcrBaseRoomControl;
|
|
46
46
|
uiEventStore: FcrUIEventStore;
|
|
47
47
|
});
|
|
48
48
|
openInviteDialog(): void;
|
|
@@ -14,6 +14,22 @@ require("core-js/modules/es.number.constructor.js");
|
|
|
14
14
|
require("core-js/modules/es.object.create.js");
|
|
15
15
|
require("core-js/modules/es.object.define-property.js");
|
|
16
16
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
17
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
18
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
19
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
20
|
+
require("core-js/modules/esnext.map.every.js");
|
|
21
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
22
|
+
require("core-js/modules/esnext.map.find.js");
|
|
23
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
24
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
25
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
26
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
27
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
28
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
29
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
30
|
+
require("core-js/modules/esnext.map.some.js");
|
|
31
|
+
require("core-js/modules/esnext.map.update.js");
|
|
32
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
17
33
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
34
|
var _typeof3 = require("@babel/runtime/helpers/typeof");
|
|
19
35
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -29,6 +45,10 @@ require("core-js/modules/es.function.bind.js");
|
|
|
29
45
|
require("core-js/modules/es.object.to-string.js");
|
|
30
46
|
require("core-js/modules/es.string.iterator.js");
|
|
31
47
|
require("core-js/modules/es.weak-map.js");
|
|
48
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
49
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
50
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
51
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
32
52
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
33
53
|
require("core-js/modules/web.timers.js");
|
|
34
54
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
@@ -42,8 +62,8 @@ var _constant = require("../../utilities/constant");
|
|
|
42
62
|
var _type = require("agora-edu-core/lib/room-control/room-connector-control/type");
|
|
43
63
|
var _InviteStore;
|
|
44
64
|
var _initProto, _init_InviteStatus, _init_isPstnCalling, _init_isVoipCalling, _init_ipInfo, _init_phoneInfo, _init_calledPstnInfo, _init_calledVoipInfo, _getRoomConnectorIpInfoDecs, _getRoomConnectorPhoneInfoDecs, _startSessionByPhoneDecs, _startSessionByVoipDecs, _handleErrorDecs, _updateInviteStatusDecs, _stopSessionDecs, _resetpstnStatusDecs, _resetVoipStatusDecs, _handlePhoneConnectorSessionStateUpdatedDecs, _handleIPConnectorSessionStateUpdatedDecs, _onUiEventDecs, _ref;
|
|
45
|
-
function _classPrivateFieldInitSpec(
|
|
46
|
-
function _checkPrivateRedeclaration(
|
|
65
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
66
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
47
67
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
48
68
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
49
69
|
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"); }
|
|
@@ -187,7 +207,7 @@ var InviteStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
187
207
|
}, {
|
|
188
208
|
key: "_getRoomConnectorIpInfo",
|
|
189
209
|
value: function () {
|
|
190
|
-
var _getRoomConnectorIpInfo2 = (0, _asyncToGenerator2["default"])(
|
|
210
|
+
var _getRoomConnectorIpInfo2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
191
211
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
192
212
|
while (1) switch (_context.prev = _context.next) {
|
|
193
213
|
case 0:
|
|
@@ -209,7 +229,7 @@ var InviteStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
209
229
|
}, {
|
|
210
230
|
key: "_getRoomConnectorPhoneInfo",
|
|
211
231
|
value: function () {
|
|
212
|
-
var _getRoomConnectorPhoneInfo2 = (0, _asyncToGenerator2["default"])(
|
|
232
|
+
var _getRoomConnectorPhoneInfo2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
213
233
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
214
234
|
while (1) switch (_context2.prev = _context2.next) {
|
|
215
235
|
case 0:
|
|
@@ -243,7 +263,7 @@ var InviteStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
243
263
|
}, {
|
|
244
264
|
key: "startSessionByPhone",
|
|
245
265
|
value: function () {
|
|
246
|
-
var _startSessionByPhone = (0, _asyncToGenerator2["default"])(
|
|
266
|
+
var _startSessionByPhone = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(_ref3) {
|
|
247
267
|
var phoneNumber, userName, zone;
|
|
248
268
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
249
269
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -284,7 +304,7 @@ var InviteStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
284
304
|
}, {
|
|
285
305
|
key: "startSessionByVoip",
|
|
286
306
|
value: function () {
|
|
287
|
-
var _startSessionByVoip = (0, _asyncToGenerator2["default"])(
|
|
307
|
+
var _startSessionByVoip = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(address, ipType) {
|
|
288
308
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
289
309
|
while (1) switch (_context4.prev = _context4.next) {
|
|
290
310
|
case 0:
|
|
@@ -339,7 +359,7 @@ var InviteStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
339
359
|
}, {
|
|
340
360
|
key: "stopSession",
|
|
341
361
|
value: function () {
|
|
342
|
-
var _stopSession = (0, _asyncToGenerator2["default"])(
|
|
362
|
+
var _stopSession = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(type) {
|
|
343
363
|
var sessionId, res;
|
|
344
364
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
345
365
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -86,7 +86,7 @@ var VoipInvite = exports.VoipInvite = (0, _mobxReact.observer)(function () {
|
|
|
86
86
|
setIsLoading(false);
|
|
87
87
|
};
|
|
88
88
|
var handleEndCallVoip = /*#__PURE__*/function () {
|
|
89
|
-
var _ref2 = (0, _asyncToGenerator2["default"])(
|
|
89
|
+
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
90
90
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
91
91
|
while (1) switch (_context.prev = _context.next) {
|
|
92
92
|
case 0:
|
|
@@ -17,9 +17,9 @@ var _windowHeader = require("agora-ui-foundation/lib/components/window-header");
|
|
|
17
17
|
var _hooks = require("../../../utilities/hooks");
|
|
18
18
|
var _context = require("../context");
|
|
19
19
|
var _utils = require("./utils");
|
|
20
|
-
var _type2 = require("agora-edu-core/lib/type");
|
|
21
20
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
22
21
|
var _iconButton = require("agora-ui-foundation/lib/components/icon-button");
|
|
22
|
+
var _type2 = require("agora-edu-core/lib/room-control/chatroom-control/type");
|
|
23
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
24
|
var minHeight = 350;
|
|
25
25
|
var DividerHeight = 16;
|
|
@@ -86,6 +86,8 @@ var Aside = exports.Aside = (0, _mobxReact.observer)(function (_ref) {
|
|
|
86
86
|
flex: 1
|
|
87
87
|
},
|
|
88
88
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_windowHeader.FcrWindowHeader, {
|
|
89
|
+
showClose: false // 在 Aside 中有自定义的按钮样式,不用 header 中的关闭按钮
|
|
90
|
+
,
|
|
89
91
|
title: "".concat(transI18n('fmt_role_participant'), "(").concat(participantCount, ")"),
|
|
90
92
|
type: _windowHeader.WindowType.MODAL,
|
|
91
93
|
onTypeChange: moveParticipantFromAsideToDialog,
|
|
@@ -108,6 +110,7 @@ var Aside = exports.Aside = (0, _mobxReact.observer)(function (_ref) {
|
|
|
108
110
|
flex: 1
|
|
109
111
|
},
|
|
110
112
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_windowHeader.FcrWindowHeader, {
|
|
113
|
+
showClose: false,
|
|
111
114
|
title: chatRoomState === _type2.FcrChatRoomConnectionState.Connected ? transI18n('fmt_chat_label_chat') : transI18n('fmt_aside_status_connecting'),
|
|
112
115
|
onTypeChange: moveChatFromAsideToDialog,
|
|
113
116
|
onClose: closeAsideChat,
|
|
@@ -8,6 +8,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.Carousel = void 0;
|
|
9
9
|
require("core-js/modules/es.array.map.js");
|
|
10
10
|
require("core-js/modules/es.array.slice.js");
|
|
11
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
12
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
11
13
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
15
|
var _mobxReact = require("mobx-react");
|
|
@@ -23,6 +25,7 @@ var _type3 = require("agora-rte-sdk/lib/core/rtc/type");
|
|
|
23
25
|
var _agoraEduCore = require("agora-edu-core");
|
|
24
26
|
var _boardContext = _interopRequireDefault(require("../../../utilities/board-context"));
|
|
25
27
|
var _muteAction = require("../../../utilities/mute-action");
|
|
28
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
26
29
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
30
|
// import { UserWindow, UserWindowActions } from './UserWindow';
|
|
28
31
|
|
|
@@ -56,9 +59,6 @@ var Carousel = exports.Carousel = (0, _mobxReact.observer)(function () {
|
|
|
56
59
|
whiteboard = _useContext.whiteboard,
|
|
57
60
|
toggleMainStream = _useContext.toggleMainStream,
|
|
58
61
|
hasPinnedStream = _useContext.hasPinnedStream,
|
|
59
|
-
streamControl = _useContext.streamControl,
|
|
60
|
-
deviceStore = _useContext.deviceStore,
|
|
61
|
-
documentVisible = _useContext.documentVisible,
|
|
62
62
|
getAllowedOperations = _useContext.getAllowedOperations,
|
|
63
63
|
setVideoOrientation = _useContext.setVideoOrientation,
|
|
64
64
|
hasUnmutePermission = _useContext.hasUnmutePermission,
|
|
@@ -162,7 +162,7 @@ var Carousel = exports.Carousel = (0, _mobxReact.observer)(function () {
|
|
|
162
162
|
width: fullWidth,
|
|
163
163
|
gap: Gap
|
|
164
164
|
},
|
|
165
|
-
children:
|
|
165
|
+
children: carouselList.slice(page * itemsPerPage, (page + 1) * itemsPerPage).map(function (windowData) {
|
|
166
166
|
var isScreenSharing = windowData.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN;
|
|
167
167
|
var isBoard = windowData.type === _type2.FcrUIWindowType.BOARD;
|
|
168
168
|
var showActionBottomLabel = carouselList.length > 1 && windowData.isSpeakerSpotlight;
|
|
@@ -210,7 +210,8 @@ var Carousel = exports.Carousel = (0, _mobxReact.observer)(function () {
|
|
|
210
210
|
openPrivateChat: openPrivateChat,
|
|
211
211
|
windowSize: "normal",
|
|
212
212
|
windowData: windowData,
|
|
213
|
-
iconSize: 16
|
|
213
|
+
iconSize: 16,
|
|
214
|
+
showRotation: (0, _env.isElectron)()
|
|
214
215
|
}),
|
|
215
216
|
videoRenderMode: _type3.AgoraRtcRenderMode.FIT,
|
|
216
217
|
videoStreamType: _type3.AgoraRtcVideoStreamType.LOW_STREAM,
|
|
@@ -28,8 +28,11 @@ require("core-js/modules/es.array.map.js");
|
|
|
28
28
|
require("core-js/modules/es.array.push.js");
|
|
29
29
|
require("core-js/modules/es.array.slice.js");
|
|
30
30
|
require("core-js/modules/es.array.unshift.js");
|
|
31
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
32
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
31
33
|
var _mobxReact = require("mobx-react");
|
|
32
34
|
var _react = require("react");
|
|
35
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
33
36
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
34
37
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
35
38
|
var _hooks = require("../../../utilities/hooks");
|
|
@@ -44,10 +47,11 @@ var _screen = require("../../../utilities/screen");
|
|
|
44
47
|
var _button = require("agora-ui-foundation/lib/components/button");
|
|
45
48
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
46
49
|
var _muteAction = require("../../../utilities/mute-action");
|
|
50
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
47
51
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
48
|
-
function _createForOfIteratorHelper(
|
|
49
|
-
function _unsupportedIterableToArray(
|
|
50
|
-
function _arrayLikeToArray(
|
|
52
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
53
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
54
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
51
55
|
var MinVideoWidth = 192;
|
|
52
56
|
var MinVideoHeight = 114;
|
|
53
57
|
var PaddingX = 25;
|
|
@@ -92,6 +96,7 @@ var Gallery = exports.Gallery = (0, _mobxReact.observer)(function () {
|
|
|
92
96
|
layout = _useContext.layout,
|
|
93
97
|
galleryMaxSize = _useContext.galleryMaxSize,
|
|
94
98
|
galleryList = _useContext.galleryList,
|
|
99
|
+
participantCount = _useContext.participantCount,
|
|
95
100
|
addPin = _useContext.addPin,
|
|
96
101
|
hasMutePermission = _useContext.hasMutePermission,
|
|
97
102
|
openPrivateChat = _useContext.openPrivateChat,
|
|
@@ -103,9 +108,6 @@ var Gallery = exports.Gallery = (0, _mobxReact.observer)(function () {
|
|
|
103
108
|
toggleMainStream = _useContext.toggleMainStream,
|
|
104
109
|
hasPinnedStream = _useContext.hasPinnedStream,
|
|
105
110
|
currentShareData = _useContext.currentShareData,
|
|
106
|
-
streamControl = _useContext.streamControl,
|
|
107
|
-
deviceStore = _useContext.deviceStore,
|
|
108
|
-
documentVisible = _useContext.documentVisible,
|
|
109
111
|
getAllowedOperations = _useContext.getAllowedOperations,
|
|
110
112
|
setVideoOrientation = _useContext.setVideoOrientation,
|
|
111
113
|
hasUnmutePermission = _useContext.hasUnmutePermission,
|
|
@@ -217,7 +219,7 @@ var Gallery = exports.Gallery = (0, _mobxReact.observer)(function () {
|
|
|
217
219
|
style: {
|
|
218
220
|
gap: Gap
|
|
219
221
|
},
|
|
220
|
-
children:
|
|
222
|
+
children: row.map(function (windowData) {
|
|
221
223
|
var size = galleryList.length === 1 ? {
|
|
222
224
|
width: bounds.width,
|
|
223
225
|
height: bounds.height - paddingY + 20
|
|
@@ -232,8 +234,12 @@ var Gallery = exports.Gallery = (0, _mobxReact.observer)(function () {
|
|
|
232
234
|
var _actionMute = (0, _muteAction.actionMute)(windowData.isMySelf, windowData.hasMicrophoneAudioStream, muteAudioPermission, startAudioPermission, requestStartAudioPermission),
|
|
233
235
|
isShowActionAudio = _actionMute.isShowActionAudio,
|
|
234
236
|
actionAudioTag = _actionMute.actionAudioTag;
|
|
237
|
+
var cls = (0, _classnames["default"])('fcr-layout-content-gallery-row-item', {
|
|
238
|
+
'fcr-layout-content-gallery-row-noborder': participantCount == 1 && galleryList.length == 1,
|
|
239
|
+
'fcr-layout-content-gallery-row-onlyone': galleryList.length == 1
|
|
240
|
+
});
|
|
235
241
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
236
|
-
className:
|
|
242
|
+
className: cls,
|
|
237
243
|
style: {
|
|
238
244
|
width: size.width,
|
|
239
245
|
height: size.height
|
|
@@ -274,7 +280,8 @@ var Gallery = exports.Gallery = (0, _mobxReact.observer)(function () {
|
|
|
274
280
|
openPrivateChat: openPrivateChat,
|
|
275
281
|
windowSize: "large",
|
|
276
282
|
windowData: windowData,
|
|
277
|
-
iconSize: 24
|
|
283
|
+
iconSize: 24,
|
|
284
|
+
showRotation: (0, _env.isElectron)()
|
|
278
285
|
}),
|
|
279
286
|
videoRenderMode: _type3.AgoraRtcRenderMode.FIT,
|
|
280
287
|
videoStreamType: videoStreamType,
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
3
4
|
require("core-js/modules/es.object.define-property.js");
|
|
5
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
6
|
+
require("core-js/modules/es.object.to-string.js");
|
|
7
|
+
require("core-js/modules/es.string.iterator.js");
|
|
8
|
+
require("core-js/modules/es.weak-map.js");
|
|
9
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
10
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
11
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
4
12
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
13
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
14
|
Object.defineProperty(exports, "__esModule", {
|
|
6
15
|
value: true
|
|
7
16
|
});
|
|
@@ -9,7 +18,7 @@ exports.MinAsideWidth = exports.Layout = void 0;
|
|
|
9
18
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
19
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
20
|
var _mobxReact = require("mobx-react");
|
|
12
|
-
var _react = require("react");
|
|
21
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
22
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
14
23
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
15
24
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
@@ -20,29 +29,36 @@ var _Aside = require("./Aside");
|
|
|
20
29
|
var _Carousel = require("./Carousel");
|
|
21
30
|
var _Gallery = require("./Gallery");
|
|
22
31
|
var _utils = require("./utils");
|
|
32
|
+
var _watermark = require("agora-ui-foundation/lib/components/watermark");
|
|
23
33
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
34
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
35
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
24
36
|
var MinAsideWidth = exports.MinAsideWidth = 320;
|
|
25
37
|
var MaxAsideWidth = 460; // 20240620 设计同步
|
|
26
38
|
var AsideOverflow = 100;
|
|
27
39
|
var Layout = exports.Layout = (0, _mobxReact.observer)(function () {
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
actionBar =
|
|
31
|
-
layers =
|
|
32
|
-
layout =
|
|
33
|
-
aside =
|
|
34
|
-
barHovering =
|
|
35
|
-
setHoveringHandler =
|
|
36
|
-
resetLockTimer =
|
|
37
|
-
setHoveringLeaveHandler =
|
|
38
|
-
asideWidth =
|
|
39
|
-
chatAction =
|
|
40
|
-
barHidden =
|
|
41
|
-
isRobot =
|
|
40
|
+
var layoutStore = (0, _react.useContext)(_context.StoreContext);
|
|
41
|
+
var stateBar = layoutStore.stateBar,
|
|
42
|
+
actionBar = layoutStore.actionBar,
|
|
43
|
+
layers = layoutStore.layers,
|
|
44
|
+
layout = layoutStore.layout,
|
|
45
|
+
aside = layoutStore.aside,
|
|
46
|
+
barHovering = layoutStore.barHovering,
|
|
47
|
+
setHoveringHandler = layoutStore.setHoveringHandler,
|
|
48
|
+
resetLockTimer = layoutStore.resetLockTimer,
|
|
49
|
+
setHoveringLeaveHandler = layoutStore.setHoveringLeaveHandler,
|
|
50
|
+
asideWidth = layoutStore.asideWidth,
|
|
51
|
+
chatAction = layoutStore.chatAction,
|
|
52
|
+
barHidden = layoutStore.barHidden,
|
|
53
|
+
isRobot = layoutStore.isRobot,
|
|
54
|
+
getWaterMarkContent = layoutStore.getWaterMarkContent,
|
|
55
|
+
isMulti = layoutStore.isMulti,
|
|
56
|
+
isWaterMarkEnabled = layoutStore.isWaterMarkEnabled;
|
|
42
57
|
var _useDelayedMeasure = (0, _hooks.useDelayedMeasure)(),
|
|
43
58
|
_useDelayedMeasure2 = (0, _slicedToArray2["default"])(_useDelayedMeasure, 2),
|
|
44
|
-
|
|
59
|
+
_ref = _useDelayedMeasure2[0],
|
|
45
60
|
bounds = _useDelayedMeasure2[1];
|
|
61
|
+
var getContainer;
|
|
46
62
|
var onDragHandler = (0, _react.useCallback)(function (event) {
|
|
47
63
|
event.preventDefault();
|
|
48
64
|
var handler = event.currentTarget;
|
|
@@ -75,50 +91,59 @@ var Layout = exports.Layout = (0, _mobxReact.observer)(function () {
|
|
|
75
91
|
var cls = (0, _classnames["default"])('fcr-layout-content-bar fcr-layout-content-bottom', {
|
|
76
92
|
'fcr-layout-content-bar--hidden': barHidden
|
|
77
93
|
});
|
|
78
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
94
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_watermark.WaterMark, {
|
|
95
|
+
content: isWaterMarkEnabled ? [getWaterMarkContent()] : [],
|
|
96
|
+
width: isMulti ? 120 : bounds.width,
|
|
97
|
+
height: isMulti ? 64 : bounds.height,
|
|
98
|
+
multiLine: Boolean(isMulti),
|
|
99
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
100
|
+
className: (0, _classnames["default"])('fcr-layout', "fcr-layout-".concat(layout), {
|
|
101
|
+
'fcr-layout-hovering': barHovering
|
|
102
|
+
}),
|
|
103
|
+
onMouseEnter: setHoveringHandler,
|
|
104
|
+
onMouseLeave: setHoveringLeaveHandler,
|
|
105
|
+
onMouseMove: setHoveringHandler,
|
|
106
|
+
ref: function ref(node) {
|
|
107
|
+
getContainer = node;
|
|
108
|
+
_ref(node);
|
|
90
109
|
},
|
|
91
|
-
children: [
|
|
92
|
-
className: "fcr-layout-content
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
})
|
|
99
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Carousel.Carousel, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CarouselExpandButton, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(WhoIsSpeaking, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Gallery.Gallery, {}), !isRobot && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
100
|
-
className: cls,
|
|
101
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
102
|
-
className: "fcr-layout-content-bar-body",
|
|
110
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
111
|
+
className: "fcr-layout-content",
|
|
112
|
+
style: {
|
|
113
|
+
width: bounds.width - asideWidth
|
|
114
|
+
},
|
|
115
|
+
children: [!isRobot && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
116
|
+
className: "fcr-layout-content-bar fcr-layout-content-top",
|
|
103
117
|
onMouseEnter: resetLockTimer,
|
|
104
118
|
onMouseLeave: setHoveringHandler,
|
|
105
|
-
children:
|
|
106
|
-
|
|
119
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
120
|
+
className: "fcr-layout-content-bar-body",
|
|
121
|
+
children: stateBar
|
|
122
|
+
})
|
|
123
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Carousel.Carousel, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CarouselExpandButton, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(WhoIsSpeaking, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Gallery.Gallery, {}), !isRobot && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
124
|
+
className: cls,
|
|
125
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
126
|
+
className: "fcr-layout-content-bar-body",
|
|
127
|
+
onMouseEnter: resetLockTimer,
|
|
128
|
+
onMouseLeave: setHoveringHandler,
|
|
129
|
+
children: actionBar
|
|
130
|
+
})
|
|
131
|
+
})]
|
|
132
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Aside.Aside, {
|
|
133
|
+
width: aside ? asideWidth : 0,
|
|
134
|
+
onDragHandler: onDragHandler,
|
|
135
|
+
chatAction: chatAction
|
|
136
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
137
|
+
className: "fcr-layer",
|
|
138
|
+
children: layers
|
|
107
139
|
})]
|
|
108
|
-
})
|
|
109
|
-
width: aside ? asideWidth : 0,
|
|
110
|
-
onDragHandler: onDragHandler,
|
|
111
|
-
chatAction: chatAction
|
|
112
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
113
|
-
className: "fcr-layer",
|
|
114
|
-
children: layers
|
|
115
|
-
})]
|
|
140
|
+
})
|
|
116
141
|
});
|
|
117
142
|
});
|
|
118
143
|
var CarouselExpandButton = (0, _mobxReact.observer)(function () {
|
|
119
|
-
var
|
|
120
|
-
collapsed =
|
|
121
|
-
toggleCollapsed =
|
|
144
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
145
|
+
collapsed = _useContext.collapsed,
|
|
146
|
+
toggleCollapsed = _useContext.toggleCollapsed;
|
|
122
147
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
123
148
|
className: (0, _classnames["default"])('fcr-layout-content-expand', {
|
|
124
149
|
'fcr-layout-content-collapsed': collapsed
|
|
@@ -140,10 +165,10 @@ var CarouselExpandButton = (0, _mobxReact.observer)(function () {
|
|
|
140
165
|
});
|
|
141
166
|
var WhoIsSpeaking = (0, _mobxReact.observer)(function () {
|
|
142
167
|
var t = (0, _i18n.useI18n)();
|
|
143
|
-
var
|
|
144
|
-
layout =
|
|
145
|
-
collapsed =
|
|
146
|
-
findSpotlightUser =
|
|
168
|
+
var _useContext2 = (0, _react.useContext)(_context.StoreContext),
|
|
169
|
+
layout = _useContext2.layout,
|
|
170
|
+
collapsed = _useContext2.collapsed,
|
|
171
|
+
findSpotlightUser = _useContext2.findSpotlightUser;
|
|
147
172
|
var userName = findSpotlightUser === null || findSpotlightUser === void 0 ? void 0 : findSpotlightUser.userName;
|
|
148
173
|
var active = userName && layout === _type2.FcrUIVideoWindowLayoutType.Speaker && collapsed;
|
|
149
174
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|