fcr-ui-scene 3.2.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/electron/app.js +148 -0
- package/dist/electron/bootstrap-dev.js +51 -0
- package/dist/electron/bootstrap-sdk.js +56 -0
- package/dist/electron/default-options.js +25 -0
- package/dist/electron/env.js +13 -0
- package/dist/electron/index.js +20 -0
- package/dist/electron/injections.js +702 -0
- package/dist/electron/logger.js +66 -0
- package/dist/electron/main.js +67 -0
- package/dist/electron/plugins/meeting-state.js +39 -0
- package/dist/electron/plugins/screenshot.js +49 -0
- package/dist/electron/preload.js +36 -0
- package/dist/electron/tools.js +66 -0
- package/dist/electron/window.js +124 -0
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/common/device-store.d.ts +1 -1
- package/lib/common/device-store.js +11 -3
- package/lib/common/event-store.d.ts +17 -1
- package/lib/common/event-store.js +38 -5
- package/lib/common/room-store.d.ts +55 -0
- package/lib/common/room-store.js +395 -0
- package/lib/common/security-store.d.ts +14 -4
- package/lib/common/security-store.js +149 -30
- package/lib/creator.js +2 -0
- package/lib/electron/app.js +8 -0
- 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 +57 -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 +2 -1
- package/lib/electron/injections.js +6 -6
- package/lib/electron/main.js +4 -16
- 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/fragments/control-bar/control-bar-store.d.ts +34 -1
- package/lib/fragments/control-bar/control-bar-store.js +371 -79
- package/lib/fragments/control-bar/device/index.js +5 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +18 -0
- 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 +72 -37
- package/lib/fragments/control-bar/security-content/index.css +10 -0
- package/lib/fragments/control-bar/security-content/index.js +40 -18
- package/lib/fragments/control-bar/view.js +8 -2
- package/lib/login-confirm-dialog.d.ts +12 -0
- package/lib/login-confirm-dialog.js +80 -0
- package/lib/modules/Interpreter/add-button/index.css +4 -0
- package/lib/modules/Interpreter/add-button/index.d.ts +11 -0
- package/lib/modules/Interpreter/add-button/index.js +41 -0
- package/lib/modules/Interpreter/config.d.ts +16 -0
- package/lib/modules/Interpreter/config.js +17 -0
- package/lib/modules/Interpreter/constant.d.ts +44 -0
- package/lib/modules/Interpreter/constant.js +60 -0
- package/lib/modules/Interpreter/context.d.ts +2 -0
- package/lib/modules/Interpreter/context.js +9 -0
- package/lib/modules/Interpreter/dialog-content/index.css +33 -0
- package/lib/modules/Interpreter/dialog-content/index.d.ts +8 -0
- package/lib/modules/Interpreter/dialog-content/index.js +34 -0
- package/lib/modules/Interpreter/footer/components/interpreter-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +56 -0
- package/lib/modules/Interpreter/footer/components/set-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/footer/components/set-btn/index.js +46 -0
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +28 -0
- package/lib/modules/Interpreter/footer/index.css +10 -0
- package/lib/modules/Interpreter/footer/index.d.ts +3 -0
- package/lib/modules/Interpreter/footer/index.js +35 -0
- package/lib/modules/Interpreter/index.css +8 -0
- package/lib/modules/Interpreter/index.d.ts +21 -0
- package/lib/modules/Interpreter/index.js +110 -0
- package/lib/modules/Interpreter/interpreter-list/index.css +21 -0
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +3 -0
- package/lib/modules/Interpreter/interpreter-list/index.js +65 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +31 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +11 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +141 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +11 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +119 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +41 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +12 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +118 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +34 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +8 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +65 -0
- package/lib/modules/Interpreter/loading-wrapper/index.css +53 -0
- package/lib/modules/Interpreter/loading-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/loading-wrapper/index.js +28 -0
- package/lib/modules/Interpreter/store.d.ts +82 -0
- package/lib/modules/Interpreter/store.js +1382 -0
- package/lib/modules/Interpreter/view.d.ts +3 -0
- package/lib/modules/Interpreter/view.js +32 -0
- package/lib/modules/action-bar/Interpreter/index.d.ts +6 -0
- package/lib/modules/action-bar/Interpreter/index.js +44 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +5 -5
- package/lib/modules/action-bar/apps/appitems.d.ts +2 -0
- package/lib/modules/action-bar/apps/appitems.js +40 -0
- package/lib/modules/action-bar/apps/index.css +6 -0
- package/lib/modules/action-bar/apps/index.d.ts +4 -0
- package/lib/modules/action-bar/apps/index.js +58 -0
- package/lib/modules/action-bar/chat/index.js +5 -5
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.js +4 -4
- package/lib/modules/action-bar/index.css +59 -12
- package/lib/modules/action-bar/index.d.ts +3 -2
- package/lib/modules/action-bar/index.dev.js +1 -1
- package/lib/modules/action-bar/index.js +21 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -0
- package/lib/modules/action-bar/leave/assign-host.js +2 -4
- package/lib/modules/action-bar/leave/index.js +29 -6
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -0
- package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
- package/lib/modules/action-bar/more/poppover-content.js +4 -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 +16 -22
- package/lib/modules/action-bar/security/drop-menu.js +90 -13
- package/lib/modules/action-bar/store.d.ts +38 -6
- package/lib/modules/action-bar/store.js +487 -95
- package/lib/modules/action-bar/switch-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/switch-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/switch-input-language-room/index.d.ts +17 -0
- package/lib/modules/action-bar/switch-input-language-room/index.js +145 -0
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.d.ts +1 -0
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +197 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.css +18 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +8 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +59 -0
- package/lib/modules/action-bar/switch-output-language-room/index.d.ts +12 -0
- package/lib/modules/action-bar/switch-output-language-room/index.js +238 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +54 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.d.ts +8 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +94 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +8 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +4 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +31 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +71 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +82 -0
- package/lib/modules/action-bar/view.js +65 -42
- package/lib/modules/chat/chat-bar/index.js +39 -27
- package/lib/modules/chat/chat-select/index.css +14 -4
- package/lib/modules/chat/chat.d.ts +1 -2
- package/lib/modules/chat/chat.js +184 -105
- package/lib/modules/chat/index.css +49 -0
- package/lib/modules/chat/index.d.ts +2 -2
- package/lib/modules/chat/index.dev.js +1 -1
- package/lib/modules/chat/index.js +13 -8
- package/lib/modules/chat/message-list.js +59 -48
- package/lib/modules/chat/store.d.ts +48 -2
- package/lib/modules/chat/store.js +258 -45
- package/lib/modules/connection-gateway/index.d.ts +2 -1
- package/lib/modules/connection-gateway/store.d.ts +6 -3
- package/lib/modules/connection-gateway/store.js +5 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
- package/lib/modules/device-pretest/index.css +0 -4
- package/lib/modules/device-pretest/settings/beauty.js +17 -6
- package/lib/modules/device-pretest/store.js +7 -11
- package/lib/modules/dialog/components/Interpreter/electron.d.ts +2 -0
- package/lib/modules/dialog/components/Interpreter/electron.js +72 -0
- package/lib/modules/dialog/components/Interpreter/index.css +30 -0
- package/lib/modules/dialog/components/Interpreter/index.d.ts +4 -0
- package/lib/modules/dialog/components/Interpreter/index.js +61 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.css +36 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +3 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.js +47 -0
- package/lib/modules/dialog/components/chat/electron.js +2 -1
- package/lib/modules/dialog/components/confirm/electron.js +5 -3
- package/lib/modules/dialog/components/connection-gateway/electron.js +3 -1
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/device-setting/electron.js +3 -1
- package/lib/modules/dialog/components/device-setting/index.css +0 -1
- 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 +2 -1
- 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/switch-language-channels/electron.d.ts +2 -0
- package/lib/modules/dialog/components/switch-language-channels/electron.js +72 -0
- package/lib/modules/dialog/components/switch-language-channels/index.css +30 -0
- package/lib/modules/dialog/components/switch-language-channels/index.d.ts +4 -0
- package/lib/modules/dialog/components/switch-language-channels/index.js +63 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.css +36 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.d.ts +3 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.js +47 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -1
- package/lib/modules/dialog/dialogs.js +17 -13
- package/lib/modules/dialog/index.css +2 -0
- package/lib/modules/dialog/store.d.ts +4 -0
- package/lib/modules/dialog/store.js +16 -2
- 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/invite/index.css +4 -4
- package/lib/modules/invite/pstn-invite.js +1 -0
- package/lib/modules/layout/components/Gallery.js +7 -1
- package/lib/modules/layout/components/Layout.js +82 -57
- package/lib/modules/layout/components/index.css +33 -6
- package/lib/modules/layout/index.css +30 -0
- package/lib/modules/layout/member-window/index.js +9 -3
- package/lib/modules/layout/store.d.ts +19 -2
- package/lib/modules/layout/store.js +177 -70
- package/lib/modules/layout/video-window-datasource.d.ts +1 -1
- package/lib/modules/layout/video-window-datasource.js +1 -1
- package/lib/modules/live-streaming/index.dev.js +1 -1
- package/lib/modules/notification/context.d.ts +2 -0
- package/lib/modules/notification/context.js +9 -0
- package/lib/modules/notification/index.css +58 -0
- package/lib/modules/notification/index.d.ts +15 -0
- package/lib/modules/notification/index.js +51 -0
- package/lib/modules/notification/interpreter-status/index.css +72 -0
- package/lib/modules/notification/interpreter-status/index.d.ts +3 -0
- package/lib/modules/notification/interpreter-status/index.js +59 -0
- package/lib/modules/notification/store.d.ts +16 -0
- package/lib/modules/notification/store.js +127 -0
- package/lib/modules/notification/view.d.ts +10 -0
- package/lib/modules/notification/view.js +116 -0
- package/lib/modules/participant/attendee/index.d.ts +12 -3
- package/lib/modules/participant/attendee/index.js +132 -30
- package/lib/modules/participant/index.css +20 -0
- package/lib/modules/participant/index.d.ts +5 -2
- package/lib/modules/participant/index.dev.js +1 -1
- package/lib/modules/participant/index.js +27 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/store.d.ts +30 -5
- package/lib/modules/participant/store.js +347 -74
- package/lib/modules/participant/view.js +133 -34
- package/lib/modules/setting/index.css +1 -5
- package/lib/modules/setting/index.dev.js +1 -1
- package/lib/modules/setting/store.d.ts +2 -2
- package/lib/modules/setting/store.js +3 -8
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/setting/video-settings/index.css +9 -6
- package/lib/modules/share-screen/index.d.ts +2 -0
- package/lib/modules/share-screen/index.dev.js +3 -2
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/store.d.ts +6 -3
- package/lib/modules/share-screen/store.js +170 -129
- 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 +1 -1
- package/lib/modules/state-bar/meeting-detail.css +6 -4
- package/lib/modules/state-bar/meeting-details.js +32 -5
- 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 +3 -5
- package/lib/modules/state-bar/store.d.ts +5 -2
- package/lib/modules/state-bar/store.js +32 -5
- package/lib/modules/state-bar/view.js +7 -10
- package/lib/modules/video-window/index.css +1 -0
- package/lib/modules/video-window/store.d.ts +2 -2
- package/lib/modules/video-window/store.js +14 -11
- 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 +0 -6
- package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +6 -1
- package/lib/modules/whiteboard/components/progress/electron.js +2 -1
- 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 +20 -15
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +9 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +14 -10
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +3 -0
- package/lib/modules/whiteboard/context.d.ts +4 -0
- package/lib/modules/whiteboard/context.js +4 -2
- package/lib/modules/whiteboard/index.js +22 -6
- package/lib/plugins/browser-runtime-plugin.js +4 -1
- package/lib/plugins/module-dev-plugin.js +8 -6
- package/lib/runtime.d.ts +2 -1
- package/lib/translations/enUS.d.ts +449 -6
- package/lib/translations/enUS.js +485 -32
- package/lib/translations/zhCN.d.ts +447 -6
- package/lib/translations/zhCN.js +468 -17
- package/lib/type.d.ts +6 -2
- package/lib/ui-manager.d.ts +7 -3
- package/lib/ui-manager.js +576 -139
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +26 -21
- package/lib/utilities/constant.d.ts +43 -4
- package/lib/utilities/constant.js +41 -1
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +6 -2
- package/package.json +14 -14
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/login_confirm.png +0 -0
- package/public/index.html +34 -11
- package/dist/132.js +0 -2
- package/dist/132.js.LICENSE.txt +0 -311
- package/dist/651.js +0 -2
- package/dist/651.js.LICENSE.txt +0 -1
- package/dist/73.js +0 -1
- package/dist/index.html +0 -13
- package/dist/main.da7c203ab32d15742cfe.css +0 -11760
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -254
- package/dist/worker-entry.worker.js.LICENSE.txt +0 -13
- 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 -278
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -26,6 +27,8 @@ var _type2 = require("agora-edu-core/lib/type");
|
|
|
26
27
|
var _copyText = require("../../../utilities/copyText");
|
|
27
28
|
var _toast = require("agora-ui-foundation/lib/components/toast");
|
|
28
29
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
30
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
31
|
+
var _leaveMeeting = require("../../../modules/action-bar/leave/leave-meeting");
|
|
29
32
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
30
33
|
var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(function (props) {
|
|
31
34
|
var ref = (0, _react.useRef)(null);
|
|
@@ -41,7 +44,18 @@ var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(f
|
|
|
41
44
|
hasStartCloudRecordingPermission = _useContext.hasStartCloudRecordingPermission,
|
|
42
45
|
hasStartLiveStreamingPermission = _useContext.hasStartLiveStreamingPermission,
|
|
43
46
|
hasGetLiveStreamingUrlPermission = _useContext.hasGetLiveStreamingUrlPermission,
|
|
44
|
-
hasStopLiveStreamingPermission = _useContext.hasStopLiveStreamingPermission
|
|
47
|
+
hasStopLiveStreamingPermission = _useContext.hasStopLiveStreamingPermission,
|
|
48
|
+
setShowMeetingDetailPortal = _useContext.setShowMeetingDetailPortal,
|
|
49
|
+
setMeetingDetailPortalPosition = _useContext.setMeetingDetailPortalPosition,
|
|
50
|
+
localUserRole = _useContext.localUserRole,
|
|
51
|
+
hasAssignHostBeforeLeavingPermission = _useContext.hasAssignHostBeforeLeavingPermission,
|
|
52
|
+
isPstnUser = _useContext.isPstnUser,
|
|
53
|
+
remoteUsers = _useContext.remoteUsers,
|
|
54
|
+
hasEndRoomPermission = _useContext.hasEndRoomPermission,
|
|
55
|
+
sendLeave = _useContext.sendLeave,
|
|
56
|
+
sendEnd = _useContext.sendEnd,
|
|
57
|
+
keepPhoneAudioConnection = _useContext.keepPhoneAudioConnection,
|
|
58
|
+
sendAssign = _useContext.sendAssign;
|
|
45
59
|
var transI18n = (0, _i18n.useI18n)();
|
|
46
60
|
var onItemClick = function onItemClick(item) {
|
|
47
61
|
if (item.onClick) {
|
|
@@ -75,6 +89,7 @@ var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(f
|
|
|
75
89
|
children: transI18n('fmt_popup_button_endmeeting')
|
|
76
90
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
77
91
|
size: "S",
|
|
92
|
+
type: "secondary-bordered",
|
|
78
93
|
onClick: function onClick() {
|
|
79
94
|
_dialog.FcrDialogApi.close('leave-room');
|
|
80
95
|
window.runtime.browserWindow.setIgnoreMouseEvents(true, {
|
|
@@ -85,6 +100,7 @@ var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(f
|
|
|
85
100
|
children: transI18n('fmt_popup_button_leavemeeting')
|
|
86
101
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
87
102
|
size: "S",
|
|
103
|
+
type: "secondary-bordered",
|
|
88
104
|
onClick: function onClick() {
|
|
89
105
|
window.runtime.browserWindow.setIgnoreMouseEvents(true, {
|
|
90
106
|
forward: true
|
|
@@ -121,11 +137,15 @@ var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(f
|
|
|
121
137
|
})]
|
|
122
138
|
});
|
|
123
139
|
};
|
|
140
|
+
|
|
141
|
+
// 分割线
|
|
124
142
|
var moreOptions = [{
|
|
143
|
+
icon: _type.FcrIconType.FCR_WEB_CHAT,
|
|
125
144
|
text: transI18n('fmt_chat_label_chat'),
|
|
126
145
|
displayWhenNoPermission: 'hidden',
|
|
127
146
|
key: _constant.RendererEventAction.OPEN_CHAT,
|
|
128
|
-
hasPermission: hasChatPermission
|
|
147
|
+
hasPermission: hasChatPermission,
|
|
148
|
+
classNames: 'share-action-nav__media-list-item-with-divider'
|
|
129
149
|
}, {
|
|
130
150
|
icon: _type.FcrIconType.FCR_EMO,
|
|
131
151
|
text: transI18n('fmt_popup_label_expression'),
|
|
@@ -133,6 +153,8 @@ var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(f
|
|
|
133
153
|
key: 'emoji',
|
|
134
154
|
hasPermission: false
|
|
135
155
|
}, {
|
|
156
|
+
icon: _type.FcrIconType.FCR_CLOUDRECORD,
|
|
157
|
+
classNames: 'share-action-nav__media-list-item-with-divider',
|
|
136
158
|
text: transI18n('fmt_screenshare_controlbar_button_more_cloudRecord'),
|
|
137
159
|
displayWhenNoPermission: 'hidden',
|
|
138
160
|
key: cloudRecordingState === _type2.FcrRecordingState.Stopped ? _constant.RendererEventAction.CLOUD_RECORDING_START : _constant.RendererEventAction.CLOUD_RECORDING_STOP,
|
|
@@ -147,6 +169,7 @@ var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(f
|
|
|
147
169
|
// hasStartCloudRecordingPermission && cloudRecordingState === FcrRecordingState.Stopped,
|
|
148
170
|
// },
|
|
149
171
|
{
|
|
172
|
+
classNames: 'share-action-nav__media-list-item-with-divider',
|
|
150
173
|
icon: _type.FcrIconType.FCR_LIVE,
|
|
151
174
|
text: transI18n('fmt_screenshare_controlbar_button_more_live'),
|
|
152
175
|
displayWhenNoPermission: 'hidden',
|
|
@@ -158,14 +181,29 @@ var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(f
|
|
|
158
181
|
});
|
|
159
182
|
handleMoreClick(_constant.RendererEventAction.OPEN_LIVE_STEAMING_DIALOG);
|
|
160
183
|
}
|
|
184
|
+
}, {
|
|
185
|
+
icon: _type.FcrIconType.FCR_EXCLAMATIONMASK,
|
|
186
|
+
text: transI18n('fmt_popup_button_meetinginfor'),
|
|
187
|
+
classNames: 'share-action-nav__media-list-item-with-divider',
|
|
188
|
+
displayWhenNoPermission: 'hidden',
|
|
189
|
+
key: 'copyMeetingInfo',
|
|
190
|
+
hasPermission: true,
|
|
191
|
+
onClick: function onClick() {
|
|
192
|
+
closePopover();
|
|
193
|
+
var currentPopoverPosition = document.getElementsByClassName('share-action-nav__popover')[0].getBoundingClientRect();
|
|
194
|
+
setMeetingDetailPortalPosition(currentPopoverPosition.x || 0, currentPopoverPosition.y || 0);
|
|
195
|
+
setShowMeetingDetailPortal(true);
|
|
196
|
+
}
|
|
161
197
|
}, {
|
|
162
198
|
icon: _type.FcrIconType.FCR_SETTING,
|
|
199
|
+
classNames: 'share-action-nav__media-list-item-with-divider',
|
|
163
200
|
text: transI18n('fmt_screenshare_controlbar_button_more_setting'),
|
|
164
201
|
displayWhenNoPermission: 'hidden',
|
|
165
202
|
key: _constant.RendererEventAction.OPEN_SETTING,
|
|
166
203
|
hasPermission: true
|
|
167
204
|
}, {
|
|
168
205
|
icon: _type.FcrIconType.FCR_ATTACH,
|
|
206
|
+
classNames: 'share-action-nav__media-list-item-with-divider',
|
|
169
207
|
text: transI18n('fmt_live_label_copylink'),
|
|
170
208
|
displayWhenNoPermission: 'hidden',
|
|
171
209
|
key: 'copyLiveLink',
|
|
@@ -182,43 +220,40 @@ var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(f
|
|
|
182
220
|
});
|
|
183
221
|
}
|
|
184
222
|
}, {
|
|
185
|
-
icon: _type.FcrIconType.
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
hasPermission:
|
|
223
|
+
icon: _type.FcrIconType.FCR_ENDMEETING,
|
|
224
|
+
key: _constant.RendererEventAction.LEAVE_ROOM,
|
|
225
|
+
classNames: 'share-action-nav__popover-inner-content-leave-option',
|
|
226
|
+
text: isHost ? transI18n('fmt_popup_button_endmeeting') : transI18n('fmt_popup_button_leavemeeting'),
|
|
227
|
+
hasPermission: true,
|
|
190
228
|
onClick: function onClick() {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
229
|
+
window.runtime.browserWindow.setIgnoreMouseEvents(false);
|
|
230
|
+
_dialog.FcrDialogApi.info({
|
|
231
|
+
id: 'leave-room',
|
|
232
|
+
dialogProps: {
|
|
233
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_leaveMeeting.LeaveMeeting, {
|
|
234
|
+
setPopoverOpened: function setPopoverOpened(value) {
|
|
235
|
+
if (!value) {
|
|
236
|
+
_dialog.FcrDialogApi.close('leave-room');
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
localUserRole: localUserRole,
|
|
240
|
+
leave: sendLeave,
|
|
241
|
+
isLocked: false,
|
|
242
|
+
hasAssignHostBeforeLeavingPermission: hasAssignHostBeforeLeavingPermission,
|
|
243
|
+
hasEndRoomPermission: hasEndRoomPermission,
|
|
244
|
+
keepPhoneAudioConnection: keepPhoneAudioConnection,
|
|
245
|
+
isPstnUser: isPstnUser,
|
|
246
|
+
remoteUsers: remoteUsers,
|
|
247
|
+
end: sendEnd,
|
|
248
|
+
assignHost: sendAssign
|
|
249
|
+
}),
|
|
250
|
+
width: 255,
|
|
251
|
+
closable: false,
|
|
252
|
+
rootClassName: 'leave-room-dialog'
|
|
253
|
+
}
|
|
200
254
|
});
|
|
201
255
|
}
|
|
202
|
-
}
|
|
203
|
-
// {
|
|
204
|
-
// icon: FcrIconType.FCR_ENDMEETING,
|
|
205
|
-
// key: RendererEventAction.LEAVE_ROOM,
|
|
206
|
-
// text: isHost ? '结束会议' : '离开会议',
|
|
207
|
-
// hasPermission: true,
|
|
208
|
-
// onClick: () => {
|
|
209
|
-
// window.runtime.browserWindow.setIgnoreMouseEvents(false);
|
|
210
|
-
// FcrDialogApi.info({
|
|
211
|
-
// id: 'leave-room',
|
|
212
|
-
// dialogProps: {
|
|
213
|
-
// content: <LeaveRoomContent />,
|
|
214
|
-
// width: 256,
|
|
215
|
-
// closable: false,
|
|
216
|
-
// rootClassName: 'leave-room-dialog',
|
|
217
|
-
// },
|
|
218
|
-
// });
|
|
219
|
-
// },
|
|
220
|
-
// },
|
|
221
|
-
];
|
|
256
|
+
}];
|
|
222
257
|
(0, _react.useEffect)(function () {
|
|
223
258
|
function handleClickOutside(event) {
|
|
224
259
|
if (ref.current && !ref.current.contains(event.target)) {
|
|
@@ -239,7 +274,7 @@ var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(f
|
|
|
239
274
|
className: "share-action-nav__popover-inner-content share-action-nav__not-draggable",
|
|
240
275
|
children: moreOptionsFilter.map(function (item, index) {
|
|
241
276
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
242
|
-
className: "share-action-nav__media-list-group
|
|
277
|
+
className: (0, _classnames["default"])('share-action-nav__media-list-group', item.classNames),
|
|
243
278
|
onClick: function onClick(e) {
|
|
244
279
|
e.stopPropagation();
|
|
245
280
|
onItemClick(item);
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
.security-content .fcr-drop-menu-title {
|
|
10
10
|
text-align: left;
|
|
11
|
+
font-size: 500;
|
|
11
12
|
}
|
|
12
13
|
.security-content .fcr-checkbox-inner {
|
|
13
14
|
background-color: transparent;
|
|
@@ -21,4 +22,13 @@
|
|
|
21
22
|
.security-content .fcr-checkbox-label {
|
|
22
23
|
display: inline-block;
|
|
23
24
|
flex: 1;
|
|
25
|
+
font-weight: 500;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.security-content .fcr-checkbox path {
|
|
29
|
+
fill: var(--fcr_ui_scene_mainicon1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.fcr-drop-menu-option-primary:hover path {
|
|
33
|
+
fill: var(--fcr_ui_scene_ramp_brand6);
|
|
24
34
|
}
|
|
@@ -24,6 +24,8 @@ var SecurityContent = exports.SecurityContent = (0, _mobxReact.observer)(functio
|
|
|
24
24
|
isLockRoomEnabled = _useContext.isLockRoomEnabled,
|
|
25
25
|
allowShareScreen = _useContext.allowShareScreen,
|
|
26
26
|
updateAllowShareScreen = _useContext.updateAllowShareScreen,
|
|
27
|
+
allowBoardWrite = _useContext.allowBoardWrite,
|
|
28
|
+
updateBoardWriteEnabled = _useContext.updateBoardWriteEnabled,
|
|
27
29
|
allowChat = _useContext.allowChat,
|
|
28
30
|
updateAllowChat = _useContext.updateAllowChat,
|
|
29
31
|
allowUnmuteSelfAudio = _useContext.allowUnmuteSelfAudio,
|
|
@@ -35,7 +37,11 @@ var SecurityContent = exports.SecurityContent = (0, _mobxReact.observer)(functio
|
|
|
35
37
|
hasEnableStartAudioPermission = _useContext.hasEnableStartAudioPermission,
|
|
36
38
|
hasEnableChangeNamePermission = _useContext.hasEnableChangeNamePermission,
|
|
37
39
|
hasEnableStartVideoPermission = _useContext.hasEnableStartVideoPermission,
|
|
38
|
-
hasLockRoomPermission = _useContext.hasLockRoomPermission
|
|
40
|
+
hasLockRoomPermission = _useContext.hasLockRoomPermission,
|
|
41
|
+
hasAllowWriteBoardPermission = _useContext.hasAllowWriteBoardPermission,
|
|
42
|
+
hasWaitingRoomPermission = _useContext.hasWaitingRoomPermission,
|
|
43
|
+
updateWaitingRoomEnabled = _useContext.updateWaitingRoomEnabled,
|
|
44
|
+
isWaitingRoomEnabled = _useContext.isWaitingRoomEnabled;
|
|
39
45
|
var transI18n = (0, _i18n.useI18n)();
|
|
40
46
|
var allActions = [{
|
|
41
47
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
@@ -51,14 +57,15 @@ var SecurityContent = exports.SecurityContent = (0, _mobxReact.observer)(functio
|
|
|
51
57
|
}
|
|
52
58
|
}, {
|
|
53
59
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
54
|
-
checked:
|
|
60
|
+
checked: isWaitingRoomEnabled,
|
|
55
61
|
label: transI18n('fmt_security_options_activatewaitingroom'),
|
|
56
62
|
styleType: "white"
|
|
57
63
|
}),
|
|
58
64
|
key: 'enable_waiting_room',
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
65
|
+
hasPermission: hasWaitingRoomPermission,
|
|
66
|
+
onButtonClick: function onButtonClick() {
|
|
67
|
+
return updateWaitingRoomEnabled(!isWaitingRoomEnabled);
|
|
68
|
+
},
|
|
62
69
|
classNames: 'room-control-drop-with-under-line'
|
|
63
70
|
}, {
|
|
64
71
|
title: transI18n('fmt_screenshare_options_allow'),
|
|
@@ -68,7 +75,7 @@ var SecurityContent = exports.SecurityContent = (0, _mobxReact.observer)(functio
|
|
|
68
75
|
}, {
|
|
69
76
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
70
77
|
checked: allowShareScreen,
|
|
71
|
-
label: transI18n('
|
|
78
|
+
label: transI18n('fmt_screenshare_screen_and_board'),
|
|
72
79
|
styleType: "white"
|
|
73
80
|
}),
|
|
74
81
|
key: 'share_screen',
|
|
@@ -77,6 +84,16 @@ var SecurityContent = exports.SecurityContent = (0, _mobxReact.observer)(functio
|
|
|
77
84
|
onButtonClick: function onButtonClick() {
|
|
78
85
|
updateAllowShareScreen(!allowShareScreen);
|
|
79
86
|
}
|
|
87
|
+
}, {
|
|
88
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
89
|
+
checked: allowBoardWrite,
|
|
90
|
+
label: transI18n('fmt_screenshare_options_editable'),
|
|
91
|
+
styleType: "white"
|
|
92
|
+
}),
|
|
93
|
+
key: 'enable_whiteboard',
|
|
94
|
+
type: 'primary',
|
|
95
|
+
hasPermission: hasAllowWriteBoardPermission,
|
|
96
|
+
onButtonClick: updateBoardWriteEnabled
|
|
80
97
|
}, {
|
|
81
98
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
82
99
|
checked: allowChat,
|
|
@@ -124,18 +141,23 @@ var SecurityContent = exports.SecurityContent = (0, _mobxReact.observer)(functio
|
|
|
124
141
|
updateAllowUnmuteSelfVideo(!allowUnmuteSelfVideo);
|
|
125
142
|
},
|
|
126
143
|
classNames: 'room-control-drop-with-under-line'
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
144
|
+
}
|
|
145
|
+
// 功能没实现,暂时注释
|
|
146
|
+
// {
|
|
147
|
+
// title: (
|
|
148
|
+
// <FcrCheckbox
|
|
149
|
+
// checked={false}
|
|
150
|
+
// label={transI18n('fmt_security_options_removemultiple')}
|
|
151
|
+
// styleType="white"
|
|
152
|
+
// />
|
|
153
|
+
// ),
|
|
154
|
+
// key: 'remove_fcr-participants',
|
|
155
|
+
// type: 'danger',
|
|
156
|
+
// hasPermission: true,
|
|
157
|
+
// onButtonClick: () => {},
|
|
158
|
+
// classNames: 'room-control-drop-disable',
|
|
159
|
+
// },
|
|
160
|
+
];
|
|
139
161
|
var securityHasPermissionActions = allActions.filter(function (item) {
|
|
140
162
|
return item.hasPermission;
|
|
141
163
|
});
|
|
@@ -32,6 +32,7 @@ var _type = require("agora-edu-core/lib/type");
|
|
|
32
32
|
var _toast = require("agora-ui-foundation/lib/components/toast");
|
|
33
33
|
var _platform = require("../../utilities/platform");
|
|
34
34
|
var _type2 = require("../../modules/action-bar/type");
|
|
35
|
+
var _meetingDetailsPortal = _interopRequireDefault(require("./meeting-details/meeting-details-portal"));
|
|
35
36
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
36
37
|
var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function () {
|
|
37
38
|
var _screenBounds$availTo;
|
|
@@ -71,7 +72,9 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
71
72
|
screenBounds = _useContext.screenBounds,
|
|
72
73
|
connectType = _useContext.connectType,
|
|
73
74
|
phoneMicEnabled = _useContext.phoneMicEnabled,
|
|
74
|
-
hasSecurityPermission = _useContext.hasSecurityPermission
|
|
75
|
+
hasSecurityPermission = _useContext.hasSecurityPermission,
|
|
76
|
+
setShowMeetingDetailPortal = _useContext.setShowMeetingDetailPortal,
|
|
77
|
+
fetchLeavingRoomPropsAfterInit = _useContext.fetchLeavingRoomPropsAfterInit;
|
|
75
78
|
// 控制栏本身的高度
|
|
76
79
|
var NAV_HEIGHT = 84;
|
|
77
80
|
// 鼠标移开后自动隐藏的时间
|
|
@@ -184,6 +187,7 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
184
187
|
(0, _react.useEffect)(function () {
|
|
185
188
|
function handleBlur(event) {
|
|
186
189
|
setMoreVisible(false);
|
|
190
|
+
setShowMeetingDetailPortal(false);
|
|
187
191
|
setShowSecurityPopover(false);
|
|
188
192
|
}
|
|
189
193
|
window.addEventListener('blur', handleBlur);
|
|
@@ -193,6 +197,8 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
193
197
|
}, []);
|
|
194
198
|
(0, _react.useEffect)(function () {
|
|
195
199
|
window.runtime.browserWindow.setAlwaysOnTop(false);
|
|
200
|
+
/** control-bar初始化后补偿发起一次store数据同步 */
|
|
201
|
+
fetchLeavingRoomPropsAfterInit();
|
|
196
202
|
setTimeout(function () {
|
|
197
203
|
window.runtime.browserWindow.setAlwaysOnTop(true, 'screen-saver');
|
|
198
204
|
}, 500);
|
|
@@ -315,7 +321,7 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
315
321
|
onShareStateNavTransferPosition: handlerShareNavTransferPosition,
|
|
316
322
|
currentPosition: navCurrentPosition,
|
|
317
323
|
onStopShare: handlerStopShare
|
|
318
|
-
})]
|
|
324
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingDetailsPortal["default"], {})]
|
|
319
325
|
})
|
|
320
326
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
|
321
327
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type LoginConfirmDialogProps = {
|
|
3
|
+
title?: string;
|
|
4
|
+
desc: string;
|
|
5
|
+
id: string;
|
|
6
|
+
btnTxt: string;
|
|
7
|
+
isShowCoutDown?: boolean;
|
|
8
|
+
onConfirm?: () => void;
|
|
9
|
+
showImg?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const LoginConfirmDialog: React.FC<LoginConfirmDialogProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
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");
|
|
12
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
13
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
exports.LoginConfirmDialog = void 0;
|
|
18
|
+
require("core-js/modules/web.timers.js");
|
|
19
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
20
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
22
|
+
var _button = require("agora-ui-foundation/lib/components/button");
|
|
23
|
+
var _dialog = require("agora-ui-foundation/lib/components/dialog");
|
|
24
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
+
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); }
|
|
26
|
+
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; }
|
|
27
|
+
var LoginConfirmDialog = exports.LoginConfirmDialog = function LoginConfirmDialog(_ref) {
|
|
28
|
+
var title = _ref.title,
|
|
29
|
+
desc = _ref.desc,
|
|
30
|
+
id = _ref.id,
|
|
31
|
+
btnTxt = _ref.btnTxt,
|
|
32
|
+
isShowCoutDown = _ref.isShowCoutDown,
|
|
33
|
+
onConfirm = _ref.onConfirm,
|
|
34
|
+
_ref$showImg = _ref.showImg,
|
|
35
|
+
showImg = _ref$showImg === void 0 ? true : _ref$showImg;
|
|
36
|
+
var t = (0, _i18n.useI18n)();
|
|
37
|
+
var _useState = (0, _react.useState)(6),
|
|
38
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
39
|
+
countDown = _useState2[0],
|
|
40
|
+
setCountDown = _useState2[1];
|
|
41
|
+
(0, _react.useEffect)(function () {
|
|
42
|
+
var timer;
|
|
43
|
+
if (isShowCoutDown) {
|
|
44
|
+
timer = setInterval(function () {
|
|
45
|
+
if (countDown === 0) {
|
|
46
|
+
clearInterval(timer);
|
|
47
|
+
onConfirm && onConfirm();
|
|
48
|
+
_dialog.FcrDialogApi.close(id);
|
|
49
|
+
}
|
|
50
|
+
setCountDown(countDown - 1);
|
|
51
|
+
}, 1000);
|
|
52
|
+
}
|
|
53
|
+
return function () {
|
|
54
|
+
clearInterval(timer);
|
|
55
|
+
};
|
|
56
|
+
}, [countDown, isShowCoutDown]);
|
|
57
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
58
|
+
className: "login-confirm-dialog-content",
|
|
59
|
+
children: [showImg && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
60
|
+
className: "login-confirm-dialog-img"
|
|
61
|
+
}), title && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
62
|
+
className: "login-confirm-dialog-title",
|
|
63
|
+
children: title
|
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
65
|
+
className: "login-confirm-dialog-desc",
|
|
66
|
+
children: desc
|
|
67
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
68
|
+
className: "login-confirm-dialog-btn",
|
|
69
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_button.FcrButton, {
|
|
70
|
+
size: "S",
|
|
71
|
+
shape: "rounded",
|
|
72
|
+
onClick: function onClick() {
|
|
73
|
+
onConfirm && onConfirm();
|
|
74
|
+
_dialog.FcrDialogApi.close(id);
|
|
75
|
+
},
|
|
76
|
+
children: [btnTxt, isShowCoutDown && "(".concat(countDown, "s)")]
|
|
77
|
+
})
|
|
78
|
+
})]
|
|
79
|
+
});
|
|
80
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
export declare enum PositionType {
|
|
3
|
+
TOP = 0,
|
|
4
|
+
BOTTOM = 1
|
|
5
|
+
}
|
|
6
|
+
interface AddButtonProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
position?: PositionType;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: (props: AddButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.PositionType = void 0;
|
|
9
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
+
var _react = require("react");
|
|
11
|
+
var _mobxReact = require("mobx-react");
|
|
12
|
+
var _button = require("agora-ui-foundation/lib/components/button");
|
|
13
|
+
var _context = require("../context");
|
|
14
|
+
require("./index.css");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
var PositionType = exports.PositionType = /*#__PURE__*/function (PositionType) {
|
|
17
|
+
PositionType[PositionType["TOP"] = 0] = "TOP";
|
|
18
|
+
PositionType[PositionType["BOTTOM"] = 1] = "BOTTOM";
|
|
19
|
+
return PositionType;
|
|
20
|
+
}({});
|
|
21
|
+
var AddButton = function AddButton(props) {
|
|
22
|
+
var className = props.className,
|
|
23
|
+
_props$position = props.position,
|
|
24
|
+
position = _props$position === void 0 ? PositionType.BOTTOM : _props$position;
|
|
25
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
26
|
+
addInterpreterUsers = _useContext.addInterpreterUsers,
|
|
27
|
+
localInterpreterUsers = _useContext.localInterpreterUsers;
|
|
28
|
+
var disabled = localInterpreterUsers.length > 9;
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
30
|
+
shape: "rounded",
|
|
31
|
+
type: position == PositionType.TOP ? 'gray' : 'secondary-bordered',
|
|
32
|
+
size: "S",
|
|
33
|
+
className: (0, _classnames["default"])({
|
|
34
|
+
'fcr-simultaneous-interpretation__add-button__top': position === PositionType.TOP
|
|
35
|
+
}, className),
|
|
36
|
+
onClick: addInterpreterUsers,
|
|
37
|
+
disabled: disabled,
|
|
38
|
+
children: "+Add Interpreter".concat(disabled ? '(上限10个)' : '')
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
var _default = exports["default"] = (0, _mobxReact.observer)(AddButton);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const defaultCameraVideoEncoderConfig: {
|
|
2
|
+
dimensions: {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
};
|
|
6
|
+
frameRate: number;
|
|
7
|
+
bitrate: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const hdCameraVideoEncoderConfig: {
|
|
10
|
+
dimensions: {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
};
|
|
14
|
+
frameRate: number;
|
|
15
|
+
bitrate: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.hdCameraVideoEncoderConfig = exports.defaultCameraVideoEncoderConfig = void 0;
|
|
8
|
+
var _defaultConfig = require("../../utilities/default-config");
|
|
9
|
+
var defaultCameraVideoEncoderConfig = exports.defaultCameraVideoEncoderConfig = _defaultConfig.cameraVideoHighStreamEncoderLowConfig;
|
|
10
|
+
var hdCameraVideoEncoderConfig = exports.hdCameraVideoEncoderConfig = {
|
|
11
|
+
dimensions: {
|
|
12
|
+
width: 1920,
|
|
13
|
+
height: 1080
|
|
14
|
+
},
|
|
15
|
+
frameRate: 20,
|
|
16
|
+
bitrate: 2500
|
|
17
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { FcrInterpreterRoomControl, FcrLanguage } from 'fcr-core/lib/room-control/interpreter-control/types';
|
|
2
|
+
import { OptionsType } from '../action-bar/switch-input-language-room';
|
|
3
|
+
import { LanguageRoomOptionValue } from '../action-bar/switch-output-language-room';
|
|
4
|
+
export declare enum UpdateType {
|
|
5
|
+
JOIN = "join",
|
|
6
|
+
LEFT = "left",
|
|
7
|
+
LOADING = "loading"
|
|
8
|
+
}
|
|
9
|
+
export declare const CLOSE_ALL = "CLOSE_ALL";
|
|
10
|
+
export declare enum InterpreterItemType {
|
|
11
|
+
INTERPRETER = "userName",
|
|
12
|
+
OUTPUT_LANGUAGE = "targetLanguage",
|
|
13
|
+
INPUT_LANGUAGE = "sourceLanguage",
|
|
14
|
+
ID = "userId",
|
|
15
|
+
KEY = "randomKey"
|
|
16
|
+
}
|
|
17
|
+
export interface InitInterpreterItemModelType {
|
|
18
|
+
[InterpreterItemType.ID]: string;
|
|
19
|
+
[InterpreterItemType.KEY]: string;
|
|
20
|
+
[InterpreterItemType.INPUT_LANGUAGE]: FcrLanguage | undefined;
|
|
21
|
+
[InterpreterItemType.OUTPUT_LANGUAGE]: FcrLanguage | undefined;
|
|
22
|
+
}
|
|
23
|
+
export declare const initInterpreterItemModel: InitInterpreterItemModelType;
|
|
24
|
+
export interface LanguageRoomType {
|
|
25
|
+
control: FcrInterpreterRoomControl;
|
|
26
|
+
status: string;
|
|
27
|
+
roomId: string;
|
|
28
|
+
language: FcrLanguage;
|
|
29
|
+
}
|
|
30
|
+
export interface ChangeInputLanguageParams {
|
|
31
|
+
language: FcrLanguage;
|
|
32
|
+
options: OptionsType[];
|
|
33
|
+
callback?: (options: OptionsType[]) => void;
|
|
34
|
+
}
|
|
35
|
+
export interface ChangeOutputLanguageParams {
|
|
36
|
+
language: LanguageRoomOptionValue;
|
|
37
|
+
orgLanguage?: LanguageRoomOptionValue;
|
|
38
|
+
callback?: Function;
|
|
39
|
+
}
|
|
40
|
+
export declare const updateOutputLanguageList: ({ outputLanguageList, language, open, }: {
|
|
41
|
+
outputLanguageList: OptionsType[];
|
|
42
|
+
language: FcrLanguage;
|
|
43
|
+
open: boolean;
|
|
44
|
+
}) => OptionsType[];
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.array.filter.js");
|
|
5
|
+
require("core-js/modules/es.array.for-each.js");
|
|
6
|
+
require("core-js/modules/es.array.push.js");
|
|
7
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
8
|
+
require("core-js/modules/es.object.define-property.js");
|
|
9
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
|
+
require("core-js/modules/es.object.keys.js");
|
|
12
|
+
require("core-js/modules/es.object.to-string.js");
|
|
13
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
14
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
15
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
16
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
17
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
18
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
19
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
20
|
+
Object.defineProperty(exports, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
exports.updateOutputLanguageList = exports.initInterpreterItemModel = exports.UpdateType = exports.InterpreterItemType = exports.CLOSE_ALL = void 0;
|
|
24
|
+
require("core-js/modules/es.array.map.js");
|
|
25
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
26
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
27
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
28
|
+
var _switchInputLanguageRoom = require("../action-bar/switch-input-language-room");
|
|
29
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31
|
+
var UpdateType = exports.UpdateType = /*#__PURE__*/function (UpdateType) {
|
|
32
|
+
UpdateType["JOIN"] = "join";
|
|
33
|
+
UpdateType["LEFT"] = "left";
|
|
34
|
+
UpdateType["LOADING"] = "loading";
|
|
35
|
+
return UpdateType;
|
|
36
|
+
}({});
|
|
37
|
+
var CLOSE_ALL = exports.CLOSE_ALL = 'CLOSE_ALL';
|
|
38
|
+
var InterpreterItemType = exports.InterpreterItemType = /*#__PURE__*/function (InterpreterItemType) {
|
|
39
|
+
InterpreterItemType["INTERPRETER"] = "userName";
|
|
40
|
+
InterpreterItemType["OUTPUT_LANGUAGE"] = "targetLanguage";
|
|
41
|
+
InterpreterItemType["INPUT_LANGUAGE"] = "sourceLanguage";
|
|
42
|
+
InterpreterItemType["ID"] = "userId";
|
|
43
|
+
InterpreterItemType["KEY"] = "randomKey";
|
|
44
|
+
return InterpreterItemType;
|
|
45
|
+
}({});
|
|
46
|
+
var initInterpreterItemModel = exports.initInterpreterItemModel = (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, InterpreterItemType.INPUT_LANGUAGE, undefined), InterpreterItemType.OUTPUT_LANGUAGE, undefined), InterpreterItemType.ID, ''), InterpreterItemType.KEY, '');
|
|
47
|
+
var updateOutputLanguageList = exports.updateOutputLanguageList = function updateOutputLanguageList(_ref) {
|
|
48
|
+
var outputLanguageList = _ref.outputLanguageList,
|
|
49
|
+
language = _ref.language,
|
|
50
|
+
open = _ref.open;
|
|
51
|
+
return outputLanguageList.map(function (ele) {
|
|
52
|
+
if (ele.value === language) {
|
|
53
|
+
return _objectSpread(_objectSpread({}, ele), {}, {
|
|
54
|
+
openeState: open ? _switchInputLanguageRoom.OpeneStateType.OPEN : _switchInputLanguageRoom.OpeneStateType.CLOSE
|
|
55
|
+
});
|
|
56
|
+
} else {
|
|
57
|
+
return ele;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
};
|