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
|
@@ -22,59 +22,82 @@ var _mobxReact = require("mobx-react");
|
|
|
22
22
|
var _context = require("./context");
|
|
23
23
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
toggleFold =
|
|
32
|
-
|
|
33
|
-
setShowArrow = _useContext.setShowArrow,
|
|
34
|
-
showArrow = _useContext.showArrow;
|
|
25
|
+
/**
|
|
26
|
+
* @param toggleFold 用于点击折叠底部操作栏
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
var ToggleToolbarBtn = function ToggleToolbarBtn(_ref) {
|
|
30
|
+
var className = _ref.className,
|
|
31
|
+
toggleFold = _ref.toggleFold,
|
|
32
|
+
mouseLeaveFn = _ref.mouseLeaveFn;
|
|
35
33
|
var transI18n = (0, _i18n.useI18n)();
|
|
36
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
37
|
-
className: (0, _classnames["default"])('fcr-action-bar',
|
|
38
|
-
'fcr-action-bar-fold-style': folded
|
|
39
|
-
}),
|
|
40
|
-
onMouseEnter: function onMouseEnter() {
|
|
41
|
-
setShowArrow(true);
|
|
42
|
-
},
|
|
34
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
|
+
className: (0, _classnames["default"])('fcr-action-bar--fold-wrap', className),
|
|
43
36
|
onMouseLeave: function onMouseLeave() {
|
|
44
|
-
|
|
37
|
+
return mouseLeaveFn();
|
|
45
38
|
},
|
|
46
|
-
children:
|
|
47
|
-
className: "fcr-action-bar--fold-hotarea"
|
|
48
|
-
}), !folded && showArrow && /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
49
|
-
placement: "top",
|
|
39
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
50
40
|
content: transI18n('fmt_settings_options_toolbarcollapse'),
|
|
51
41
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
52
|
-
className: "fcr-action-bar--fold",
|
|
53
|
-
onClick:
|
|
42
|
+
className: "fcr-action-bar--fold-btn",
|
|
43
|
+
onClick: function onClick() {
|
|
44
|
+
return toggleFold();
|
|
45
|
+
},
|
|
54
46
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
47
|
+
className: "fcr-action-bar--fold",
|
|
55
48
|
type: _type.FcrIconType.FCR_DROPDOWN,
|
|
56
49
|
colors: {
|
|
57
|
-
iconPrimary: '
|
|
50
|
+
iconPrimary: '#4262ff99'
|
|
58
51
|
}
|
|
59
52
|
})
|
|
60
53
|
})
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
var FcrActionBar = exports.FcrActionBar = (0, _mobxReact.observer)(function (props) {
|
|
58
|
+
var _useState = (0, _react.useState)(false),
|
|
59
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
60
|
+
opened = _useState2[0],
|
|
61
|
+
setOpenState = _useState2[1];
|
|
62
|
+
var _useContext = (0, _react.useContext)(_context.ActionBarContext),
|
|
63
|
+
folded = _useContext.folded,
|
|
64
|
+
setShowArrow = _useContext.setShowArrow,
|
|
65
|
+
showArrow = _useContext.showArrow,
|
|
66
|
+
toggleFold = _useContext.toggleFold,
|
|
67
|
+
isMainRoom = _useContext.isMainRoom;
|
|
68
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
69
|
+
children: [!folded && showArrow ? /*#__PURE__*/(0, _jsxRuntime.jsx)(ToggleToolbarBtn, {
|
|
70
|
+
toggleFold: toggleFold,
|
|
71
|
+
mouseLeaveFn: function mouseLeaveFn() {
|
|
72
|
+
setShowArrow(false);
|
|
73
|
+
}
|
|
74
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
75
|
+
className: "fcr-action-bar--fold-hotarea"
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
77
|
+
className: (0, _classnames["default"])('fcr-action-bar', {
|
|
78
|
+
'fcr-action-bar-fold-style': folded
|
|
79
|
+
}),
|
|
80
|
+
onMouseEnter: function onMouseEnter() {
|
|
81
|
+
setShowArrow(true);
|
|
82
|
+
},
|
|
83
|
+
children: folded ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_smaller.SmallerActionbar, {}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
84
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_itemPlacement.ActionBarItemPlacement, {
|
|
85
|
+
placement: "left",
|
|
86
|
+
children: !opened && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
87
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_device.MicrophoneDevice, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_device.CameraDevice, {})]
|
|
88
|
+
})
|
|
89
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_itemPlacement.ActionBarItemPlacement, {
|
|
90
|
+
placement: "mid",
|
|
91
|
+
children: !opened && isMainRoom && /*#__PURE__*/(0, _jsxRuntime.jsx)(_actionBarCollapesItems.ActionBarCollapseItems, {
|
|
92
|
+
children: _actionBarCollapesItems.midActionOrderMap
|
|
93
|
+
})
|
|
94
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_itemPlacement.ActionBarItemPlacement, {
|
|
95
|
+
placement: "right",
|
|
96
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_leave.End, {
|
|
97
|
+
onPopoverChanged: setOpenState
|
|
98
|
+
})
|
|
99
|
+
})]
|
|
100
|
+
})
|
|
78
101
|
})]
|
|
79
102
|
});
|
|
80
103
|
});
|
|
@@ -72,9 +72,12 @@ var MessageBar = exports.MessageBar = (0, _mobxReact.observer)(function (_ref) {
|
|
|
72
72
|
setTips(selectedUserId === _store.USER_ALL ? t('fmt_chat_labels_sendto') : t('fmt_chats_label_privatechat'));
|
|
73
73
|
}, [selectedUserId]);
|
|
74
74
|
var _useContext = (0, _react.useContext)(_contex.StoreContext),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
chatRoomStores = _useContext.chatRoomStores,
|
|
76
|
+
activeTabIndex = _useContext.activeTabIndex;
|
|
77
|
+
var _ref2 = chatRoomStores[activeTabIndex],
|
|
78
|
+
chatLevel = _ref2.chatLevel,
|
|
79
|
+
privateTargetUser = _ref2.privateTargetUser,
|
|
80
|
+
localIsManager = _ref2.localIsManager;
|
|
78
81
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
79
82
|
className: cls,
|
|
80
83
|
style: _objectSpread({}, styles),
|
|
@@ -99,32 +102,41 @@ var MessageBar = exports.MessageBar = (0, _mobxReact.observer)(function (_ref) {
|
|
|
99
102
|
selectedUid: selectedUserId,
|
|
100
103
|
onSelect: handleSelected
|
|
101
104
|
}),
|
|
102
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
backgroundColor: 'var(--fcr_web_ui_scene_fill2)'
|
|
107
|
-
},
|
|
108
|
-
txt: /*#__PURE__*/(0, _jsxRuntime.jsx)(_iconText.IconText, {
|
|
109
|
-
classnames: {
|
|
110
|
-
'fcr-break-one-line fcr-word-break': true,
|
|
111
|
-
'fcr-msg-bar-break-max-width': true
|
|
105
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
106
|
+
onClick: function onClick() {
|
|
107
|
+
if ((users === null || users === void 0 ? void 0 : users.length) <= 1) {
|
|
108
|
+
return;
|
|
112
109
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
121
|
-
},
|
|
122
|
-
iconTransform: popoverOpened,
|
|
123
|
-
enable: true,
|
|
124
|
-
onClick: function onClick() {
|
|
125
|
-
setPopoverOpened(!popoverOpened);
|
|
110
|
+
setPopoverOpened(!popoverOpened);
|
|
111
|
+
},
|
|
112
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_textBubble.TextBubble, {
|
|
113
|
+
styles: {
|
|
114
|
+
padding: '4px 1px 4px 4px',
|
|
115
|
+
borderRadius: 6,
|
|
116
|
+
backgroundColor: 'var(--fcr_web_ui_scene_fill2)'
|
|
126
117
|
},
|
|
127
|
-
|
|
118
|
+
txt: /*#__PURE__*/(0, _jsxRuntime.jsx)(_iconText.IconText, {
|
|
119
|
+
classnames: {
|
|
120
|
+
'fcr-break-one-line fcr-word-break': true,
|
|
121
|
+
'fcr-msg-bar-break-max-width': true
|
|
122
|
+
}
|
|
123
|
+
// TODO: 当选中的 uid 为 None 时,需要提示选择管理员
|
|
124
|
+
,
|
|
125
|
+
txt: privateTargetUser.userId === _store.USER_NONE && !localIsManager ? t('fmt_chat_tips_selecthost') : (_users$find$userName = (_users$find = users.find(function (user) {
|
|
126
|
+
return user.userId === selectedUserId;
|
|
127
|
+
})) === null || _users$find === void 0 ? void 0 : _users$find.userName) !== null && _users$find$userName !== void 0 ? _users$find$userName : _store.USER_ALL,
|
|
128
|
+
icon: _type.FcrIconType.FCR_DROPDOWN,
|
|
129
|
+
colors: {
|
|
130
|
+
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
131
|
+
},
|
|
132
|
+
iconTransform: popoverOpened,
|
|
133
|
+
enable: true,
|
|
134
|
+
isHideIcon: (users === null || users === void 0 ? void 0 : users.length) <= 1,
|
|
135
|
+
onClick: function onClick() {
|
|
136
|
+
setPopoverOpened(!popoverOpened);
|
|
137
|
+
},
|
|
138
|
+
iconReverse: true
|
|
139
|
+
})
|
|
128
140
|
})
|
|
129
141
|
})
|
|
130
142
|
})]
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
.leave-container {
|
|
2
2
|
position: relative;
|
|
3
|
-
padding: 20px;
|
|
3
|
+
padding: 8px 20px 20px;
|
|
4
4
|
max-height: 368px;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
.fcr-dialog-body .leave-container {
|
|
8
|
+
position: relative;
|
|
9
|
+
max-height: 368px;
|
|
10
|
+
padding: 0px;
|
|
11
|
+
}
|
|
12
|
+
|
|
7
13
|
.leave-confirm {
|
|
8
14
|
width: 100%;
|
|
9
15
|
height: 36px;
|
|
@@ -58,16 +64,17 @@
|
|
|
58
64
|
align-items: center;
|
|
59
65
|
cursor: pointer;
|
|
60
66
|
width: 215px !important;
|
|
61
|
-
|
|
67
|
+
border-radius: var(--fcr_cornerradius_l);
|
|
68
|
+
}
|
|
69
|
+
.candidate-container-selected:hover,
|
|
70
|
+
.candidate-container:hover {
|
|
62
71
|
background: var(--fcr_web_ui_scene_hover);
|
|
63
|
-
border-radius: var(--fcr_cornerradius_s);
|
|
64
72
|
}
|
|
65
73
|
|
|
66
74
|
.candidate-avatar {
|
|
67
75
|
width: 26px;
|
|
68
76
|
height: 26px;
|
|
69
77
|
border-radius: var(--fcr_cornerradius_s);
|
|
70
|
-
|
|
71
78
|
background: var(--for_head5);
|
|
72
79
|
display: flex;
|
|
73
80
|
justify-content: center;
|
|
@@ -80,6 +87,9 @@
|
|
|
80
87
|
font-weight: 700;
|
|
81
88
|
line-height: 14px;
|
|
82
89
|
}
|
|
90
|
+
.candidate-avatar .fcr-avatar {
|
|
91
|
+
border-radius: var(--fcr_cornerradius_m);
|
|
92
|
+
}
|
|
83
93
|
|
|
84
94
|
.candidate-avatar-all {
|
|
85
95
|
background: var(--for_head1);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export declare const Chat: ({ updateReadIndex, sendMsg, userId: localUserId,
|
|
1
|
+
export declare const Chat: ({ updateReadIndex, sendMsg, userId: localUserId, singling, handleClickUploadImage, }: {
|
|
2
2
|
updateReadIndex: (data?: {
|
|
3
3
|
index: number;
|
|
4
4
|
msgId: string;
|
|
5
5
|
}) => void;
|
|
6
6
|
sendMsg: (msg: string) => void;
|
|
7
7
|
userId: string;
|
|
8
|
-
isHost: boolean;
|
|
9
8
|
singling?: boolean;
|
|
10
9
|
handleClickUploadImage: () => void;
|
|
11
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
package/lib/modules/chat/chat.js
CHANGED
|
@@ -62,12 +62,15 @@ var _copyText = require("../../utilities/copyText");
|
|
|
62
62
|
var _chatManager = require("agora-ui-foundation/lib/components/chat-manager");
|
|
63
63
|
var _type2 = require("agora-edu-core/lib/room-control/chatroom-control/type");
|
|
64
64
|
var _agoraEduCore = require("agora-edu-core");
|
|
65
|
+
var _tabs = require("agora-ui-foundation/lib/components/tabs");
|
|
66
|
+
var _constant = require("../../utilities/constant");
|
|
67
|
+
var _fcr_chat_reddot = _interopRequireDefault(require("../../../public/assets/fcr_chat_reddot.svg"));
|
|
65
68
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
66
69
|
var Chat = exports.Chat = (0, _mobxReact.observer)(function (_ref) {
|
|
70
|
+
var _chatRoomStores$RoomT, _chatRoomStores$RoomT2, _chatRoomStores$RoomT3, _chatRoomStores$RoomT4, _chatRoomStores$RoomT5, _chatRoomStores$RoomT6;
|
|
67
71
|
var updateReadIndex = _ref.updateReadIndex,
|
|
68
72
|
sendMsg = _ref.sendMsg,
|
|
69
73
|
localUserId = _ref.userId,
|
|
70
|
-
isHost = _ref.isHost,
|
|
71
74
|
singling = _ref.singling,
|
|
72
75
|
handleClickUploadImage = _ref.handleClickUploadImage;
|
|
73
76
|
var t = (0, _i18n.useI18n)();
|
|
@@ -82,20 +85,29 @@ var Chat = exports.Chat = (0, _mobxReact.observer)(function (_ref) {
|
|
|
82
85
|
forbiddenTxt = defaultProps.forbiddenTxt,
|
|
83
86
|
errorMsg = defaultProps.errorMsg;
|
|
84
87
|
var _useContext = (0, _react.useContext)(_contex.StoreContext),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
chatRoomStores = _useContext.chatRoomStores,
|
|
89
|
+
hasWaitingRoomPermission = _useContext.hasWaitingRoomPermission,
|
|
90
|
+
activeTabIndex = _useContext.activeTabIndex,
|
|
91
|
+
handlerActiveTab = _useContext.handlerActiveTab;
|
|
92
|
+
var _ref2 = chatRoomStores[activeTabIndex],
|
|
93
|
+
setTargetUser = _ref2.setTargetUser,
|
|
94
|
+
privateTargetUser = _ref2.privateTargetUser,
|
|
95
|
+
remoteUsers = _ref2.remoteUsers,
|
|
96
|
+
targetUserIsOnline = _ref2.targetUserIsOnline,
|
|
97
|
+
localIsManager = _ref2.localIsManager,
|
|
98
|
+
chatLevel = _ref2.chatLevel,
|
|
99
|
+
messageList = _ref2.messageList,
|
|
100
|
+
textMsg = _ref2.textMsg,
|
|
101
|
+
updateChatTextMsg = _ref2.updateChatTextMsg,
|
|
102
|
+
privateTargetList = _ref2.privateTargetList,
|
|
103
|
+
resetTargetUser = _ref2.resetTargetUser,
|
|
104
|
+
handleToast = _ref2.handleToast,
|
|
105
|
+
chatRoomState = _ref2.chatRoomState,
|
|
106
|
+
isHost = _ref2.isHost,
|
|
107
|
+
hasChatPermission = _ref2.hasChatPermission,
|
|
108
|
+
hasChatSendPrivatePermission = _ref2.hasChatSendPrivatePermission,
|
|
109
|
+
filterChatMember = _ref2.filterChatMember,
|
|
110
|
+
hasSendMessagePermission = _ref2.hasSendMessagePermission;
|
|
99
111
|
var handleTargetChange = function handleTargetChange(user) {
|
|
100
112
|
setTargetUser(user);
|
|
101
113
|
};
|
|
@@ -117,7 +129,7 @@ var Chat = exports.Chat = (0, _mobxReact.observer)(function (_ref) {
|
|
|
117
129
|
setTargetList = _useState8[1];
|
|
118
130
|
(0, _react.useEffect)(function () {
|
|
119
131
|
var _users$;
|
|
120
|
-
var users = (0, _toConsumableArray2["default"])(
|
|
132
|
+
var users = (0, _toConsumableArray2["default"])(remoteUsers);
|
|
121
133
|
if (((_users$ = users[0]) === null || _users$ === void 0 ? void 0 : _users$.userId) === _store.USER_ALL) {
|
|
122
134
|
if (chatLevel !== 'everyone' && chatLevel !== 'public' && !localIsManager) {
|
|
123
135
|
users.shift();
|
|
@@ -148,10 +160,11 @@ var Chat = exports.Chat = (0, _mobxReact.observer)(function (_ref) {
|
|
|
148
160
|
return u.userId === user.userId;
|
|
149
161
|
})) !== null && _remoteUsers$find !== void 0 ? _remoteUsers$find : user;
|
|
150
162
|
});
|
|
163
|
+
users = filterChatMember((0, _toConsumableArray2["default"])(users));
|
|
151
164
|
setTargetList((0, _toConsumableArray2["default"])(users));
|
|
152
|
-
}, [
|
|
165
|
+
}, [chatLevel, remoteUsers]);
|
|
153
166
|
var handleMultiCopyMsg = /*#__PURE__*/function () {
|
|
154
|
-
var
|
|
167
|
+
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
155
168
|
var msgHandled, msgIndex;
|
|
156
169
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
157
170
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -186,7 +199,7 @@ var Chat = exports.Chat = (0, _mobxReact.observer)(function (_ref) {
|
|
|
186
199
|
}, _callee);
|
|
187
200
|
}));
|
|
188
201
|
return function handleMultiCopyMsg() {
|
|
189
|
-
return
|
|
202
|
+
return _ref3.apply(this, arguments);
|
|
190
203
|
};
|
|
191
204
|
}();
|
|
192
205
|
(0, _react.useEffect)(function () {
|
|
@@ -209,107 +222,173 @@ var Chat = exports.Chat = (0, _mobxReact.observer)(function (_ref) {
|
|
|
209
222
|
}
|
|
210
223
|
});
|
|
211
224
|
};
|
|
212
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
})
|
|
241
|
-
|
|
225
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
226
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
227
|
+
className: "chat-tabs-container",
|
|
228
|
+
children: chatRoomStores[_constant.RoomType.WAITING_ROOM] && chatRoomStores[_constant.RoomType.MAIN_ROOM] && chatRoomStores[_constant.RoomType.WAITING_ROOM].userCount > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_tabs.FcrTabs, {
|
|
229
|
+
items: [{
|
|
230
|
+
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
231
|
+
className: "chat-container-icon",
|
|
232
|
+
children: [((_chatRoomStores$RoomT = chatRoomStores[_constant.RoomType.MAIN_ROOM]) === null || _chatRoomStores$RoomT === void 0 ? void 0 : _chatRoomStores$RoomT.unReadMsgCount) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
233
|
+
className: "fcr-action-bar-chat-unread-count",
|
|
234
|
+
children: ((_chatRoomStores$RoomT2 = chatRoomStores[_constant.RoomType.MAIN_ROOM]) === null || _chatRoomStores$RoomT2 === void 0 ? void 0 : _chatRoomStores$RoomT2.unReadMsgCount) > 99 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
235
|
+
src: _fcr_chat_reddot["default"]
|
|
236
|
+
}) : (_chatRoomStores$RoomT3 = chatRoomStores[_constant.RoomType.MAIN_ROOM]) === null || _chatRoomStores$RoomT3 === void 0 ? void 0 : _chatRoomStores$RoomT3.unReadMsgCount
|
|
237
|
+
}), t('fmt_waitingroom_sidebar_chat_label_meeting', {
|
|
238
|
+
reason1: chatRoomStores[_constant.RoomType.MAIN_ROOM].userCount
|
|
239
|
+
})]
|
|
240
|
+
}),
|
|
241
|
+
key: _constant.RoomType.MAIN_ROOM
|
|
242
|
+
}, {
|
|
243
|
+
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
244
|
+
className: "chat-container-icon",
|
|
245
|
+
children: [((_chatRoomStores$RoomT4 = chatRoomStores[_constant.RoomType.WAITING_ROOM]) === null || _chatRoomStores$RoomT4 === void 0 ? void 0 : _chatRoomStores$RoomT4.unReadMsgCount) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
246
|
+
className: "fcr-action-bar-chat-unread-count",
|
|
247
|
+
children: ((_chatRoomStores$RoomT5 = chatRoomStores[_constant.RoomType.WAITING_ROOM]) === null || _chatRoomStores$RoomT5 === void 0 ? void 0 : _chatRoomStores$RoomT5.unReadMsgCount) > 99 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
248
|
+
src: _fcr_chat_reddot["default"]
|
|
249
|
+
}) : (_chatRoomStores$RoomT6 = chatRoomStores[_constant.RoomType.WAITING_ROOM]) === null || _chatRoomStores$RoomT6 === void 0 ? void 0 : _chatRoomStores$RoomT6.unReadMsgCount
|
|
250
|
+
}), t('fmt_waitingroom_sidebar_label_waiting', {
|
|
251
|
+
reason1: chatRoomStores[_constant.RoomType.WAITING_ROOM].userCount
|
|
252
|
+
})]
|
|
253
|
+
}),
|
|
254
|
+
key: _constant.RoomType.WAITING_ROOM
|
|
255
|
+
}],
|
|
256
|
+
activeKey: activeTabIndex,
|
|
257
|
+
onChange: function onChange(key) {
|
|
258
|
+
handlerActiveTab(key);
|
|
242
259
|
}
|
|
243
|
-
|
|
260
|
+
}) : null
|
|
261
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_chatWrapper.ChatWrapper, {
|
|
262
|
+
styles: styles,
|
|
263
|
+
errorMsg: errorMsg,
|
|
264
|
+
forbiddenTxt: forbiddenTxt,
|
|
265
|
+
singling: singling,
|
|
266
|
+
forbidden: !localIsManager && !hasChatPermission && !hasChatSendPrivatePermission,
|
|
267
|
+
isHost: isHost,
|
|
268
|
+
handMsg: function handMsg(msg) {
|
|
269
|
+
if (chatRoomState !== _type2.FcrChatRoomConnectionState.Connected) {
|
|
244
270
|
handleToast({
|
|
245
|
-
id: 'send-msg-
|
|
271
|
+
id: 'send-msg-offline',
|
|
246
272
|
toastProps: {
|
|
247
|
-
type: '
|
|
248
|
-
content: t('
|
|
273
|
+
type: 'error',
|
|
274
|
+
content: t('fmt_chat_tips_Networkconnect'),
|
|
249
275
|
size: 'small'
|
|
250
276
|
}
|
|
251
277
|
});
|
|
252
|
-
resetTargetUser();
|
|
253
278
|
return;
|
|
254
279
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
280
|
+
if (!localIsManager) {
|
|
281
|
+
if (privateTargetUser.userId === _store.USER_NONE) {
|
|
282
|
+
handleToast({
|
|
283
|
+
id: 'send-msg-to-none',
|
|
284
|
+
toastProps: {
|
|
285
|
+
type: 'normal',
|
|
286
|
+
content: t('fmt_chat_tips_selectchat'),
|
|
287
|
+
size: 'small'
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// if (
|
|
294
|
+
// chatLevel === 'no_one' ||
|
|
295
|
+
// (chatLevel !== 'everyone' &&
|
|
296
|
+
// privateTargetUser.userId !== USER_ALL &&
|
|
297
|
+
// !isManager(privateTargetUser.userRole))
|
|
298
|
+
// ) {
|
|
299
|
+
// handleToast({
|
|
300
|
+
// id: 'send-msg-to-none',
|
|
301
|
+
// toastProps: {
|
|
302
|
+
// type: 'normal',
|
|
303
|
+
// content: t('fmt_chat_tips_permissionchange'),
|
|
304
|
+
// size: 'small',
|
|
305
|
+
// },
|
|
306
|
+
// });
|
|
307
|
+
// resetTargetUser();
|
|
308
|
+
// return;
|
|
309
|
+
// }
|
|
310
|
+
|
|
311
|
+
if (privateTargetUser.userId === _store.USER_ALL && !hasSendMessagePermission()) {
|
|
312
|
+
handleToast({
|
|
313
|
+
id: 'send-msg-to-none',
|
|
314
|
+
toastProps: {
|
|
315
|
+
type: 'normal',
|
|
316
|
+
content: t('fmt_chat_tips_permissionchange'),
|
|
317
|
+
size: 'small'
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
return;
|
|
321
|
+
} else if (privateTargetUser.userId !== _store.USER_ALL && !hasChatSendPrivatePermission) {
|
|
322
|
+
handleToast({
|
|
323
|
+
id: 'send-msg-to-none',
|
|
324
|
+
toastProps: {
|
|
325
|
+
type: 'normal',
|
|
326
|
+
content: t('fmt_chat_tips_permissionchange'),
|
|
327
|
+
size: 'small'
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
resetTargetUser();
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
290
333
|
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
334
|
+
sendMsg(msg);
|
|
335
|
+
},
|
|
336
|
+
handleClickUploadImage: handleClickUploadImage,
|
|
337
|
+
msgBarElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chatBar.MessageBar, {
|
|
338
|
+
selectedUserId: privateTargetUser.userId,
|
|
339
|
+
users: targetList,
|
|
340
|
+
onTargetChange: handleTargetChange,
|
|
341
|
+
title: chatSelectNoTitle ? undefined : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
342
|
+
className: "assign-host-title",
|
|
343
|
+
children: chatLevel === 'public' ? t('fmt_chat_option_onlypublic') : t('fmt_chat_option_onlyprivate')
|
|
344
|
+
})
|
|
345
|
+
}),
|
|
346
|
+
targetUserIsOnline: targetUserIsOnline,
|
|
347
|
+
privateTarget: privateTargetUser.userId,
|
|
348
|
+
selectTargetNickname: privateTargetUser.userName,
|
|
299
349
|
multiSelectActive: multiSelectActive,
|
|
300
|
-
copyMap: copyMap,
|
|
301
|
-
setCopyMap: setCopyMap,
|
|
302
350
|
selectCnt: selectCnt,
|
|
303
|
-
|
|
304
|
-
|
|
351
|
+
onSelectCancel: function onSelectCancel() {
|
|
352
|
+
resetMultiSelectStates();
|
|
353
|
+
},
|
|
354
|
+
onSelectConfirm: /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
355
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
356
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
357
|
+
case 0:
|
|
358
|
+
_context2.next = 2;
|
|
359
|
+
return handleMultiCopyMsg();
|
|
360
|
+
case 2:
|
|
361
|
+
resetMultiSelectStates();
|
|
362
|
+
copyTips();
|
|
363
|
+
case 4:
|
|
364
|
+
case "end":
|
|
365
|
+
return _context2.stop();
|
|
366
|
+
}
|
|
367
|
+
}, _callee2);
|
|
368
|
+
})),
|
|
369
|
+
defaultMsg: textMsg,
|
|
370
|
+
updateChatTextMsg: updateChatTextMsg,
|
|
371
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_messageList.MessageList, {
|
|
372
|
+
updateReadMsgIndex: updateReadIndex,
|
|
373
|
+
userId: localUserId,
|
|
374
|
+
setMultiSelectActive: setMultiSelectActive,
|
|
375
|
+
multiSelectActive: multiSelectActive,
|
|
376
|
+
copyMap: copyMap,
|
|
377
|
+
setCopyMap: setCopyMap,
|
|
378
|
+
selectCnt: selectCnt,
|
|
379
|
+
copyTips: copyTips
|
|
380
|
+
})
|
|
381
|
+
})]
|
|
305
382
|
});
|
|
306
383
|
});
|
|
307
384
|
var ChatAction = exports.ChatAction = (0, _mobxReact.observer)(function () {
|
|
308
385
|
var _useContext2 = (0, _react.useContext)(_contex.StoreContext),
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
386
|
+
chatRoomStores = _useContext2.chatRoomStores;
|
|
387
|
+
var _ref5 = chatRoomStores[_constant.RoomType.MAIN_ROOM],
|
|
388
|
+
isHostOrCoHost = _ref5.isHostOrCoHost,
|
|
389
|
+
setAllowChat = _ref5.setAllowChat,
|
|
390
|
+
setAllowChatWithPayload = _ref5.setAllowChatWithPayload,
|
|
391
|
+
chatLevel = _ref5.chatLevel;
|
|
313
392
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_chatManager.ChatManager, {
|
|
314
393
|
isManager: isHostOrCoHost,
|
|
315
394
|
setAllowChat: setAllowChat,
|