fcr-ui-scene 3.1.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/base.d.ts +0 -1
- package/lib/base.js +16 -0
- package/lib/common/device-store.d.ts +4 -5
- package/lib/common/device-store.js +178 -86
- package/lib/common/device-stream-store.d.ts +3 -2
- package/lib/common/device-stream-store.js +94 -72
- package/lib/common/event-store.d.ts +20 -3
- package/lib/common/event-store.js +43 -5
- package/lib/common/security-store.d.ts +16 -16
- package/lib/common/security-store.js +278 -124
- package/lib/electron/app.js +13 -5
- package/lib/electron/bootstrap-dev.d.ts +1 -0
- package/lib/electron/bootstrap-dev.js +51 -0
- package/lib/electron/bootstrap-sdk.d.ts +1 -0
- package/lib/electron/bootstrap-sdk.js +56 -0
- package/lib/electron/bootstrap.d.ts +1 -0
- package/lib/electron/bootstrap.js +56 -0
- package/lib/electron/default-options.js +1 -1
- package/lib/electron/dev.d.ts +1 -0
- package/lib/electron/dev.js +51 -0
- package/lib/electron/injections.d.ts +3 -4
- package/lib/electron/injections.js +46 -33
- package/lib/electron/logger.d.ts +6 -0
- package/lib/electron/logger.js +66 -0
- package/lib/electron/main.js +15 -11
- package/lib/electron/plugins/meeting-state.d.ts +2 -0
- package/lib/electron/plugins/meeting-state.js +39 -0
- package/lib/electron/preload.js +2 -1
- package/lib/electron/tools.js +9 -0
- package/lib/electron/window.d.ts +1 -1
- package/lib/electron/window.js +14 -2
- package/lib/fragments/control-bar/context.d.ts +0 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
- package/lib/fragments/control-bar/control-bar-store.js +394 -81
- package/lib/fragments/control-bar/device/index.js +12 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +19 -1
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
- package/lib/fragments/control-bar/more-actions/index.css +53 -0
- package/lib/fragments/control-bar/more-actions/index.js +77 -37
- package/lib/fragments/control-bar/security-content/index.css +10 -0
- package/lib/fragments/control-bar/security-content/index.js +43 -18
- package/lib/fragments/control-bar/view.js +8 -2
- package/lib/fragments/live-streaming/context.d.ts +0 -1
- package/lib/fragments/live-streaming/store.js +27 -17
- package/lib/fragments/share-screen-selection/context.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.js +34 -33
- package/lib/fragments/share-screen-selection/view.js +7 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +4 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +5 -1
- package/lib/fragments/toolbar/components/color-picker.js +3 -1
- package/lib/fragments/toolbar/components/eraser-picker.js +4 -13
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +5 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +2 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +2 -0
- package/lib/fragments/toolbar/components/shape-picker.js +2 -0
- package/lib/fragments/toolbar/hooks.d.ts +1 -1
- package/lib/fragments/toolbar/hooks.js +13 -8
- package/lib/fragments/toolbar/store.d.ts +4 -4
- package/lib/fragments/toolbar/store.js +20 -2
- package/lib/fragments/toolbar/view.js +2 -0
- package/lib/global.d.ts +1 -0
- package/lib/hooks/meeting-time.d.ts +2 -2
- package/lib/login-confirm-dialog.d.ts +12 -0
- package/lib/login-confirm-dialog.js +80 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +14 -5
- package/lib/modules/action-bar/chat/index.js +6 -6
- package/lib/modules/action-bar/context.d.ts +0 -1
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.d.ts +2 -2
- package/lib/modules/action-bar/device/index.js +6 -4
- package/lib/modules/action-bar/index.css +63 -12
- package/lib/modules/action-bar/index.d.ts +3 -2
- package/lib/modules/action-bar/index.dev.js +8 -7
- package/lib/modules/action-bar/index.js +21 -0
- package/lib/modules/action-bar/item-placement.d.ts +1 -2
- package/lib/modules/action-bar/item.js +5 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -1
- package/lib/modules/action-bar/leave/assign-host.js +7 -7
- package/lib/modules/action-bar/leave/index.js +35 -7
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -1
- package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
- package/lib/modules/action-bar/more/poppover-content.d.ts +0 -1
- package/lib/modules/action-bar/more/poppover-content.js +14 -4
- package/lib/modules/action-bar/participants/index.css +12 -0
- package/lib/modules/action-bar/participants/index.js +21 -14
- package/lib/modules/action-bar/screen-share/index.js +5 -1
- package/lib/modules/action-bar/screen-share/submenu.js +17 -22
- package/lib/modules/action-bar/security/drop-menu.js +124 -14
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/settings/index.js +1 -1
- package/lib/modules/action-bar/store.d.ts +45 -21
- package/lib/modules/action-bar/store.js +544 -134
- package/lib/modules/action-bar/view.js +65 -42
- package/lib/modules/audio-stream/index.js +12 -6
- package/lib/modules/chat/chat-bar/index.js +46 -27
- package/lib/modules/chat/chat-select/index.css +19 -4
- package/lib/modules/chat/chat-select/index.d.ts +0 -1
- package/lib/modules/chat/chat-select/index.js +29 -3
- package/lib/modules/chat/chat.d.ts +2 -3
- package/lib/modules/chat/chat.js +210 -107
- package/lib/modules/chat/contex.d.ts +0 -1
- package/lib/modules/chat/demo-wrapper.d.ts +0 -1
- package/lib/modules/chat/index.css +49 -0
- package/lib/modules/chat/index.d.ts +3 -3
- package/lib/modules/chat/index.dev.js +4 -4
- package/lib/modules/chat/index.js +32 -11
- package/lib/modules/chat/message-list.js +81 -49
- package/lib/modules/chat/store.d.ts +50 -4
- package/lib/modules/chat/store.js +303 -124
- package/lib/modules/chat/util.js +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -0
- package/lib/modules/connection-gateway/components/phone/index.js +2 -0
- package/lib/modules/connection-gateway/index.d.ts +3 -2
- package/lib/modules/connection-gateway/index.js +2 -0
- package/lib/modules/connection-gateway/store.d.ts +6 -4
- package/lib/modules/connection-gateway/store.js +46 -15
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +1 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -2
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +0 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
- package/lib/modules/device-pretest/context.d.ts +0 -1
- package/lib/modules/device-pretest/index.css +0 -4
- package/lib/modules/device-pretest/index.d.ts +0 -1
- package/lib/modules/device-pretest/index.js +2 -1
- package/lib/modules/device-pretest/settings/beauty.js +19 -6
- package/lib/modules/device-pretest/settings/video-effect.d.ts +0 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -0
- package/lib/modules/device-pretest/store.js +34 -19
- package/lib/modules/dialog/components/chat/electron.js +3 -2
- package/lib/modules/dialog/components/chat/index.js +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +7 -5
- package/lib/modules/dialog/components/confirm/index.js +16 -2
- package/lib/modules/dialog/components/connection-gateway/electron.js +4 -2
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/device-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/device-setting/electron.js +74 -0
- package/lib/modules/dialog/components/device-setting/index.css +26 -0
- package/lib/modules/dialog/components/device-setting/index.d.ts +4 -0
- package/lib/modules/dialog/components/device-setting/index.js +60 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
- package/lib/modules/dialog/components/participant/electron.js +8 -2
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/components/whiteboard/index.js +2 -1
- package/lib/modules/dialog/context.d.ts +0 -1
- package/lib/modules/dialog/dialogs.d.ts +0 -2
- package/lib/modules/dialog/dialogs.js +62 -103
- package/lib/modules/dialog/index.css +7 -6
- package/lib/modules/dialog/index.d.ts +1 -1
- package/lib/modules/dialog/index.js +17 -0
- package/lib/modules/dialog/store.d.ts +6 -2
- package/lib/modules/dialog/store.js +52 -9
- package/lib/modules/dialog/view.js +2 -0
- package/lib/modules/event-notification/context.d.ts +2 -0
- package/lib/modules/event-notification/context.js +9 -0
- package/lib/modules/event-notification/index.css +58 -0
- package/lib/modules/event-notification/index.d.ts +13 -0
- package/lib/modules/event-notification/index.js +48 -0
- package/lib/modules/event-notification/store.d.ts +17 -0
- package/lib/modules/event-notification/store.js +133 -0
- package/lib/modules/event-notification/view.d.ts +5 -0
- package/lib/modules/event-notification/view.js +114 -0
- package/lib/modules/event-toast/context.d.ts +0 -1
- package/lib/modules/event-toast/store.js +16 -0
- package/lib/modules/invite/context.d.ts +0 -1
- package/lib/modules/invite/index.css +4 -4
- package/lib/modules/invite/index.d.ts +2 -2
- package/lib/modules/invite/pstn-invite.js +4 -1
- package/lib/modules/invite/store.d.ts +2 -2
- package/lib/modules/invite/store.js +27 -7
- package/lib/modules/invite/voip-invite.d.ts +0 -1
- package/lib/modules/invite/voip-invite.js +1 -1
- package/lib/modules/layout/components/Aside.d.ts +0 -1
- package/lib/modules/layout/components/Aside.js +4 -1
- package/lib/modules/layout/components/Carousel.js +6 -5
- package/lib/modules/layout/components/Gallery.js +16 -9
- package/lib/modules/layout/components/Layout.js +82 -57
- package/lib/modules/layout/components/index.css +42 -5
- package/lib/modules/layout/components/index.js +3 -0
- package/lib/modules/layout/context.d.ts +0 -1
- package/lib/modules/layout/index.css +30 -0
- package/lib/modules/layout/index.dev.js +11 -11
- package/lib/modules/layout/index.js +0 -6
- package/lib/modules/layout/member-window/index.css +5 -5
- package/lib/modules/layout/member-window/index.d.ts +7 -7
- package/lib/modules/layout/member-window/index.js +59 -13
- package/lib/modules/layout/store.d.ts +61 -50
- package/lib/modules/layout/store.js +517 -342
- package/lib/modules/layout/type.d.ts +2 -1
- package/lib/modules/layout/video-window-datasource.d.ts +14 -8
- package/lib/modules/layout/video-window-datasource.js +129 -78
- package/lib/modules/live-streaming/context.d.ts +0 -1
- package/lib/modules/live-streaming/index.d.ts +2 -2
- package/lib/modules/live-streaming/index.dev.js +5 -4
- package/lib/modules/live-streaming/store.d.ts +2 -2
- package/lib/modules/live-streaming/store.js +32 -11
- package/lib/modules/participant/attendee/index.d.ts +12 -3
- package/lib/modules/participant/attendee/index.js +142 -30
- package/lib/modules/participant/context.d.ts +0 -1
- package/lib/modules/participant/index.css +20 -0
- package/lib/modules/participant/index.d.ts +5 -2
- package/lib/modules/participant/index.dev.js +14 -12
- package/lib/modules/participant/index.js +27 -0
- package/lib/modules/participant/member-list-data-source.d.ts +3 -3
- package/lib/modules/participant/member-list-data-source.js +29 -3
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +35 -1
- package/lib/modules/participant/store.d.ts +59 -34
- package/lib/modules/participant/store.js +541 -222
- package/lib/modules/participant/view.d.ts +6 -6
- package/lib/modules/participant/view.js +138 -34
- package/lib/modules/setting/audio-settings/audio-settings.js +16 -12
- package/lib/modules/setting/audio-settings/index.css +2 -2
- package/lib/modules/setting/context.d.ts +0 -1
- package/lib/modules/setting/general-settings/general-settings.js +2 -1
- package/lib/modules/setting/general-settings/index.css +2 -2
- package/lib/modules/setting/index.css +1 -5
- package/lib/modules/setting/index.d.ts +2 -2
- package/lib/modules/setting/index.dev.js +14 -12
- package/lib/modules/setting/index.js +16 -0
- package/lib/modules/setting/minutes-settings/index.css +65 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.d.ts +4 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.js +159 -0
- package/lib/modules/setting/state/index.css +0 -4
- package/lib/modules/setting/state/index.js +11 -1
- package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib/modules/setting/store.d.ts +7 -5
- package/lib/modules/setting/store.js +69 -46
- package/lib/modules/setting/translate-settings/index.css +45 -0
- package/lib/modules/setting/translate-settings/language-select.d.ts +12 -0
- package/lib/modules/setting/translate-settings/language-select.js +50 -0
- package/lib/modules/setting/translate-settings/translate-settings.d.ts +4 -0
- package/lib/modules/setting/translate-settings/translate-settings.js +139 -0
- package/lib/modules/setting/video-settings/index.css +15 -6
- package/lib/modules/setting/video-settings/video-settings-basic.js +3 -2
- package/lib/modules/setting/video-settings/video-settings.js +5 -1
- package/lib/modules/setting/view.js +34 -2
- package/lib/modules/share-screen/index.d.ts +4 -2
- package/lib/modules/share-screen/index.dev.js +17 -14
- package/lib/modules/share-screen/index.js +2 -0
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +44 -6
- package/lib/modules/share-screen/share-state-bar/index.css +49 -11
- package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -1
- package/lib/modules/share-screen/share-state-bar/index.js +51 -20
- package/lib/modules/share-screen/store.d.ts +23 -13
- package/lib/modules/share-screen/store.js +733 -606
- package/lib/modules/state-bar/context.d.ts +0 -1
- package/lib/modules/state-bar/index.css +2 -2
- package/lib/modules/state-bar/index.d.ts +2 -2
- package/lib/modules/state-bar/index.dev.js +12 -10
- package/lib/modules/state-bar/layout-config.js +2 -0
- package/lib/modules/state-bar/live-streaming-state.js +3 -0
- package/lib/modules/state-bar/meeting-detail.css +6 -4
- package/lib/modules/state-bar/meeting-details.js +29 -3
- package/lib/modules/state-bar/meeting-network-state.css +14 -3
- package/lib/modules/state-bar/meeting-network-state.js +10 -4
- package/lib/modules/state-bar/recording.js +9 -11
- package/lib/modules/state-bar/store.d.ts +7 -5
- package/lib/modules/state-bar/store.js +68 -8
- package/lib/modules/state-bar/view.js +4 -8
- package/lib/modules/video-window/context.d.ts +0 -1
- package/lib/modules/video-window/deviceState/index.d.ts +3 -3
- package/lib/modules/video-window/index.css +1 -0
- package/lib/modules/video-window/members/index.js +7 -4
- package/lib/modules/video-window/store.d.ts +5 -4
- package/lib/modules/video-window/store.js +49 -17
- package/lib/modules/video-window/topControl/index.js +7 -0
- package/lib/modules/video-window/view.js +2 -0
- package/lib/modules/waiting-room-layout/context.d.ts +2 -0
- package/lib/modules/waiting-room-layout/context.js +9 -0
- package/lib/modules/waiting-room-layout/index.css +71 -0
- package/lib/modules/waiting-room-layout/index.d.ts +8 -0
- package/lib/modules/waiting-room-layout/index.js +47 -0
- package/lib/modules/waiting-room-layout/store.d.ts +30 -0
- package/lib/modules/waiting-room-layout/store.js +189 -0
- package/lib/modules/waiting-room-layout/type.d.ts +0 -0
- package/lib/modules/waiting-room-layout/type.js +1 -0
- package/lib/modules/waiting-room-layout/view.d.ts +3 -0
- package/lib/modules/waiting-room-layout/view.js +67 -0
- package/lib/modules/whiteboard/app.js +2 -8
- package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +29 -29
- package/lib/modules/whiteboard/components/loading/index.js +2 -2
- package/lib/modules/whiteboard/components/multi-window/index.js +8 -3
- package/lib/modules/whiteboard/components/pagination/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +3 -2
- package/lib/modules/whiteboard/components/progress/style.css +4 -3
- package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.js +29 -17
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +11 -2
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +21 -20
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +11 -9
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +18 -12
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +16 -11
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +8 -7
- package/lib/modules/whiteboard/components/toolbar/store.js +25 -4
- package/lib/modules/whiteboard/context.d.ts +7 -3
- package/lib/modules/whiteboard/context.js +6 -4
- package/lib/modules/whiteboard/index.d.ts +6 -8
- package/lib/modules/whiteboard/index.js +310 -255
- package/lib/modules/whiteboard/type.d.ts +4 -12
- package/lib/modules/whiteboard/type.js +6 -16
- package/lib/modules/whiteboard/utils.d.ts +1 -0
- package/lib/modules/whiteboard/utils.js +12 -1
- package/lib/plugins/browser-runtime-plugin.js +2 -1
- package/lib/plugins/module-dev-plugin.js +12 -10
- package/lib/plugins/multi-lang-plugin.d.ts +1 -5
- package/lib/plugins/multi-lang-plugin.js +2 -0
- package/lib/runtime.d.ts +3 -5
- package/lib/translations/enUS.d.ts +590 -0
- package/lib/translations/enUS.js +608 -6
- package/lib/translations/zhCN.d.ts +588 -0
- package/lib/translations/zhCN.js +604 -4
- package/lib/type.d.ts +6 -2
- package/lib/ui-manager.d.ts +7 -3
- package/lib/ui-manager.js +597 -143
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +32 -22
- package/lib/utilities/board-context.d.ts +0 -1
- package/lib/utilities/constant.d.ts +47 -5
- package/lib/utilities/constant.js +44 -1
- package/lib/utilities/copyText.js +1 -1
- package/lib/utilities/extract.js +26 -3
- package/lib/utilities/hooks.js +2 -0
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/renderer-event.js +28 -0
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +15 -6
- package/lib/utilities/tools.js +5 -2
- package/lib/utilities/ui-resources.d.ts +2 -2
- package/lib/utilities/ui-resources.js +20 -3
- package/lib/utilities/video-track-render-context.d.ts +0 -1
- package/package.json +17 -16
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/login_confirm.png +0 -0
- package/public/index.html +29 -11
- package/lib/modules/device-pretest/settings/index.css +0 -15
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -275
|
@@ -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
|
});
|
|
@@ -11,7 +11,13 @@ require("core-js/modules/es.array.find.js");
|
|
|
11
11
|
require("core-js/modules/es.array.for-each.js");
|
|
12
12
|
require("core-js/modules/es.array.map.js");
|
|
13
13
|
require("core-js/modules/es.object.to-string.js");
|
|
14
|
-
require("core-js/modules/
|
|
14
|
+
require("core-js/modules/esnext.async-iterator.find.js");
|
|
15
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
16
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
17
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
18
|
+
require("core-js/modules/esnext.iterator.find.js");
|
|
19
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
20
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
15
21
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
16
22
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
17
23
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
@@ -19,8 +25,8 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
19
25
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
20
26
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
21
27
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
22
|
-
var _type = require("agora-edu-core/lib/type");
|
|
23
28
|
var _base = require("../../base");
|
|
29
|
+
var _agoraEduCore = require("agora-edu-core");
|
|
24
30
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
25
31
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
32
|
var AudioStreamUIModule = exports.AudioStreamUIModule = /*#__PURE__*/function (_UIModule) {
|
|
@@ -69,7 +75,7 @@ var AudioStreamUIModule = exports.AudioStreamUIModule = /*#__PURE__*/function (_
|
|
|
69
75
|
} else {
|
|
70
76
|
streams.forEach(function (stream) {
|
|
71
77
|
if (stream.owner.userId !== _this._userControl.getLocalUser().userId) {
|
|
72
|
-
if ((stream.streamType ===
|
|
78
|
+
if ((stream.streamType === _agoraEduCore.FcrStreamType.AUDIO || stream.streamType === _agoraEduCore.FcrStreamType.BOTH) && stream.audioSourceState === _agoraEduCore.FcrMediaSourceState.STARTED) {
|
|
73
79
|
_this.logger.info('start play remote audio', stream.streamId);
|
|
74
80
|
_this._streamControl.startPlayRemoteAudioStream(stream.streamId);
|
|
75
81
|
} else {
|
|
@@ -95,8 +101,8 @@ var AudioStreamUIModule = exports.AudioStreamUIModule = /*#__PURE__*/function (_
|
|
|
95
101
|
return (0, _createClass2["default"])(AudioStreamUIModule, [{
|
|
96
102
|
key: "init",
|
|
97
103
|
value: function init() {
|
|
98
|
-
var streams = this._streamControl.
|
|
99
|
-
this._playRemoteAudio(
|
|
104
|
+
var streams = this._streamControl.getStreamList();
|
|
105
|
+
this._playRemoteAudio(streams);
|
|
100
106
|
}
|
|
101
107
|
}, {
|
|
102
108
|
key: "getComponent",
|
|
@@ -111,7 +117,7 @@ var AudioStreamUIModule = exports.AudioStreamUIModule = /*#__PURE__*/function (_
|
|
|
111
117
|
value: function _hasPstn(streams) {
|
|
112
118
|
var _this2 = this;
|
|
113
119
|
var pstnStream = streams.find(function (stream) {
|
|
114
|
-
return stream.connectorType ===
|
|
120
|
+
return stream.connectorType === _agoraEduCore.FcrRoomConnectorType.PSTN && stream.owner.userId === _this2._userControl.getLocalUser().userId;
|
|
115
121
|
});
|
|
116
122
|
return !!pstnStream;
|
|
117
123
|
}
|
|
@@ -9,6 +9,10 @@ require("core-js/modules/es.object.define-property.js");
|
|
|
9
9
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
10
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
11
|
require("core-js/modules/es.object.keys.js");
|
|
12
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
13
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
14
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
15
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
12
16
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
13
17
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
14
18
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -17,6 +21,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
17
21
|
exports.MessageBar = void 0;
|
|
18
22
|
require("core-js/modules/es.array.find.js");
|
|
19
23
|
require("core-js/modules/es.object.to-string.js");
|
|
24
|
+
require("core-js/modules/esnext.async-iterator.find.js");
|
|
25
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
26
|
+
require("core-js/modules/esnext.iterator.find.js");
|
|
20
27
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
21
28
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
22
29
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
@@ -65,9 +72,12 @@ var MessageBar = exports.MessageBar = (0, _mobxReact.observer)(function (_ref) {
|
|
|
65
72
|
setTips(selectedUserId === _store.USER_ALL ? t('fmt_chat_labels_sendto') : t('fmt_chats_label_privatechat'));
|
|
66
73
|
}, [selectedUserId]);
|
|
67
74
|
var _useContext = (0, _react.useContext)(_contex.StoreContext),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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;
|
|
71
81
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
72
82
|
className: cls,
|
|
73
83
|
style: _objectSpread({}, styles),
|
|
@@ -92,32 +102,41 @@ var MessageBar = exports.MessageBar = (0, _mobxReact.observer)(function (_ref) {
|
|
|
92
102
|
selectedUid: selectedUserId,
|
|
93
103
|
onSelect: handleSelected
|
|
94
104
|
}),
|
|
95
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
backgroundColor: 'var(--fcr_web_ui_scene_fill2)'
|
|
100
|
-
},
|
|
101
|
-
txt: /*#__PURE__*/(0, _jsxRuntime.jsx)(_iconText.IconText, {
|
|
102
|
-
classnames: {
|
|
103
|
-
'fcr-break-one-line fcr-word-break': true,
|
|
104
|
-
'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;
|
|
105
109
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
114
|
-
},
|
|
115
|
-
iconTransform: popoverOpened,
|
|
116
|
-
enable: true,
|
|
117
|
-
onClick: function onClick() {
|
|
118
|
-
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)'
|
|
119
117
|
},
|
|
120
|
-
|
|
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
|
+
})
|
|
121
140
|
})
|
|
122
141
|
})
|
|
123
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);
|
|
@@ -110,6 +120,11 @@
|
|
|
110
120
|
overflow: hidden;
|
|
111
121
|
white-space: nowrap;
|
|
112
122
|
text-overflow: ellipsis;
|
|
123
|
+
width: 150px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.candidate-name-active {
|
|
127
|
+
color: var(--fcr_web_ui_scene_mainicon2);
|
|
113
128
|
}
|
|
114
129
|
|
|
115
130
|
.candidate-select {
|
|
@@ -15,6 +15,12 @@ require("core-js/modules/es.array.push.js");
|
|
|
15
15
|
require("core-js/modules/es.array.slice.js");
|
|
16
16
|
require("core-js/modules/es.object.to-string.js");
|
|
17
17
|
require("core-js/modules/es.string.includes.js");
|
|
18
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
19
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
20
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
21
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
22
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
23
|
+
var _avatar = require("agora-ui-foundation/lib/components/avatar");
|
|
18
24
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
19
25
|
var _input = require("agora-ui-foundation/lib/components/input");
|
|
20
26
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
@@ -28,6 +34,7 @@ var _store = require("../store");
|
|
|
28
34
|
var _textBubble = require("agora-ui-foundation/lib/components/text-bubble");
|
|
29
35
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
30
36
|
var _fcr_defaultpage = _interopRequireDefault(require("../../../../public/assets/fcr_defaultpage.png"));
|
|
37
|
+
var _helper = require("agora-ui-foundation/lib/components/avatar/helper");
|
|
31
38
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
32
39
|
function highlightMatches(str, matchStr) {
|
|
33
40
|
var result = [];
|
|
@@ -103,6 +110,9 @@ var ChatSelect = exports.ChatSelect = (0, _mobxReact.observer)(function (_ref) {
|
|
|
103
110
|
onSelect(user);
|
|
104
111
|
},
|
|
105
112
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
113
|
+
style: {
|
|
114
|
+
background: (0, _helper.getNameColor)(datum.userName)
|
|
115
|
+
},
|
|
106
116
|
className: (0, _classnames["default"])('candidate-avatar', {
|
|
107
117
|
'candidate-avatar-all': datum.userId === _store.USER_ALL
|
|
108
118
|
}),
|
|
@@ -112,13 +122,26 @@ var ChatSelect = exports.ChatSelect = (0, _mobxReact.observer)(function (_ref) {
|
|
|
112
122
|
colors: {
|
|
113
123
|
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
114
124
|
}
|
|
115
|
-
}) :
|
|
125
|
+
}) :
|
|
126
|
+
/*#__PURE__*/
|
|
127
|
+
// datum.userName.charAt(0).toLocaleUpperCase()
|
|
128
|
+
(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
129
|
+
isShowFirstLetter: true,
|
|
130
|
+
size: 32,
|
|
131
|
+
nickName: datum.userName,
|
|
132
|
+
textSize: 14
|
|
133
|
+
})
|
|
116
134
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
117
135
|
className: "candidate",
|
|
118
136
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
119
137
|
className: "candidate-info",
|
|
120
138
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
121
|
-
className: "candidate-name
|
|
139
|
+
className: (0, _classnames["default"])('candidate-name', {
|
|
140
|
+
'candidate-name-active': selectedUid === users[index].userId
|
|
141
|
+
}),
|
|
142
|
+
style: {
|
|
143
|
+
color: (0, _helper.getNameColor)(datum.userName)
|
|
144
|
+
},
|
|
122
145
|
children: highlightMatches(datum.userName, filterKey).map(function (value) {
|
|
123
146
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
124
147
|
className: value !== null && value !== void 0 && value.isHighlight ? 'candidate-highlight' : '',
|
|
@@ -127,6 +150,9 @@ var ChatSelect = exports.ChatSelect = (0, _mobxReact.observer)(function (_ref) {
|
|
|
127
150
|
})
|
|
128
151
|
}), datum.userId !== _store.USER_ALL && (datum.userRole === _type2.FcrUserRole.COHOST || datum.userRole === _type2.FcrUserRole.HOST) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_textBubble.TextBubble, {
|
|
129
152
|
txt: t(datum.userRole === _type2.FcrUserRole.HOST ? 'fmt_role_host' : 'fmt_role_cohost'),
|
|
153
|
+
styles: {
|
|
154
|
+
width: 'fit-content'
|
|
155
|
+
},
|
|
130
156
|
type: "gray",
|
|
131
157
|
lineHeight: "small",
|
|
132
158
|
classnames: datum.userRole === _type2.FcrUserRole.HOST ? 'host' : 'cohost'
|
|
@@ -137,7 +163,7 @@ var ChatSelect = exports.ChatSelect = (0, _mobxReact.observer)(function (_ref) {
|
|
|
137
163
|
type: _type.FcrIconType.FCR_CHOOSEIT,
|
|
138
164
|
size: 24,
|
|
139
165
|
colors: {
|
|
140
|
-
iconPrimary: 'var(--
|
|
166
|
+
iconPrimary: 'var(--fcr_web_ui_scene_mainicon2)'
|
|
141
167
|
}
|
|
142
168
|
})
|
|
143
169
|
}) : null]
|
|
@@ -1,12 +1,11 @@
|
|
|
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
|
-
|
|
9
|
-
singling?: boolean | undefined;
|
|
8
|
+
singling?: boolean;
|
|
10
9
|
handleClickUploadImage: () => void;
|
|
11
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export declare const ChatAction: () => import("react/jsx-runtime").JSX.Element;
|