fcr-ui-scene 1.0.40 → 3.1.0-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/lib/base.d.ts +13 -0
- package/lib/base.js +78 -0
- package/lib/common/device-store.d.ts +140 -0
- package/lib/common/device-store.js +1378 -0
- package/lib/common/device-stream-store.d.ts +36 -0
- package/lib/common/device-stream-store.js +372 -0
- package/lib/common/event-store.d.ts +118 -0
- package/lib/common/event-store.js +235 -0
- package/lib/common/security-store.d.ts +123 -0
- package/lib/common/security-store.js +978 -0
- package/lib/creator.d.ts +8 -0
- package/lib/creator.js +37 -0
- package/lib/electron/app.d.ts +1 -0
- package/lib/electron/app.js +140 -0
- package/lib/electron/default-options.d.ts +2 -0
- package/lib/electron/default-options.js +26 -0
- package/lib/electron/env.d.ts +5 -0
- package/lib/electron/env.js +13 -0
- package/lib/electron/index.d.ts +2 -0
- package/lib/electron/index.js +20 -0
- package/lib/electron/injections.d.ts +45 -0
- package/lib/electron/injections.js +689 -0
- package/lib/electron/main.d.ts +2 -0
- package/lib/electron/main.js +63 -0
- package/lib/electron/plugins/screenshot.d.ts +2 -0
- package/lib/electron/plugins/screenshot.js +49 -0
- package/lib/electron/preload.js +35 -0
- package/lib/electron/tools.d.ts +5 -0
- package/lib/electron/tools.js +57 -0
- package/lib/electron/window.d.ts +12 -0
- package/lib/electron/window.js +107 -0
- package/lib/fragments/base.d.ts +10 -0
- package/lib/fragments/base.js +44 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.d.ts +1 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.js +67 -0
- package/lib/fragments/control-bar/context.d.ts +3 -0
- package/lib/fragments/control-bar/context.js +9 -0
- package/lib/fragments/control-bar/control-bar-store.d.ts +152 -0
- package/lib/fragments/control-bar/control-bar-store.js +1275 -0
- package/lib/fragments/control-bar/device/index.d.ts +31 -0
- package/lib/fragments/control-bar/device/index.js +203 -0
- package/lib/fragments/control-bar/index.css +276 -0
- package/lib/fragments/control-bar/index.d.ts +26 -0
- package/lib/fragments/control-bar/index.js +223 -0
- package/lib/fragments/control-bar/more-actions/index.css +19 -0
- package/lib/fragments/control-bar/more-actions/index.d.ts +7 -0
- package/lib/fragments/control-bar/more-actions/index.js +259 -0
- package/lib/fragments/control-bar/security-content/index.css +24 -0
- package/lib/fragments/control-bar/security-content/index.d.ts +2 -0
- package/lib/fragments/control-bar/security-content/index.js +145 -0
- package/lib/fragments/control-bar/share-state-nav/index.css +70 -0
- package/lib/fragments/control-bar/share-state-nav/index.d.ts +10 -0
- package/lib/fragments/control-bar/share-state-nav/index.js +134 -0
- package/lib/fragments/control-bar/stop-live-streaming/index.d.ts +1 -0
- package/lib/fragments/control-bar/stop-live-streaming/index.js +82 -0
- package/lib/fragments/control-bar/transfer-position-icon/index.d.ts +11 -0
- package/lib/fragments/control-bar/transfer-position-icon/index.js +46 -0
- package/lib/fragments/control-bar/view.d.ts +1 -0
- package/lib/fragments/control-bar/view.js +321 -0
- package/lib/fragments/live-streaming/context.d.ts +3 -0
- package/lib/fragments/live-streaming/context.js +9 -0
- package/lib/fragments/live-streaming/index.css +11 -0
- package/lib/fragments/live-streaming/index.d.ts +11 -0
- package/lib/fragments/live-streaming/index.js +79 -0
- package/lib/fragments/live-streaming/store.d.ts +21 -0
- package/lib/fragments/live-streaming/store.js +228 -0
- package/lib/fragments/live-streaming/view.d.ts +2 -0
- package/lib/fragments/live-streaming/view.js +44 -0
- package/lib/fragments/share-screen-selection/context.d.ts +3 -0
- package/lib/fragments/share-screen-selection/context.js +9 -0
- package/lib/fragments/share-screen-selection/index.css +66 -0
- package/lib/fragments/share-screen-selection/index.d.ts +9 -0
- package/lib/fragments/share-screen-selection/index.js +94 -0
- package/lib/fragments/share-screen-selection/open-mic-tips.d.ts +9 -0
- package/lib/fragments/share-screen-selection/open-mic-tips.js +55 -0
- package/lib/fragments/share-screen-selection/selection-store.d.ts +36 -0
- package/lib/fragments/share-screen-selection/selection-store.js +351 -0
- package/lib/fragments/share-screen-selection/tips.css +33 -0
- package/lib/fragments/share-screen-selection/view.d.ts +9 -0
- package/lib/fragments/share-screen-selection/view.js +255 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +54 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +114 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +75 -0
- package/lib/fragments/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +53 -0
- package/lib/fragments/toolbar/components/color-picker.d.ts +2 -0
- package/lib/fragments/toolbar/components/color-picker.js +127 -0
- package/lib/fragments/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/eraser-picker.js +84 -0
- package/lib/fragments/toolbar/components/extension-toolbar-item.d.ts +1 -0
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +78 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +60 -0
- package/lib/fragments/toolbar/components/fold-icon.d.ts +2 -0
- package/lib/fragments/toolbar/components/fold-icon.js +41 -0
- package/lib/fragments/toolbar/components/history.d.ts +2 -0
- package/lib/fragments/toolbar/components/history.js +46 -0
- package/lib/fragments/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +132 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +84 -0
- package/lib/fragments/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/shape-picker.js +146 -0
- package/lib/fragments/toolbar/components/toolbar-item.d.ts +1 -0
- package/lib/fragments/toolbar/components/toolbar-item.js +42 -0
- package/lib/fragments/toolbar/components/wrapper.d.ts +1 -0
- package/lib/fragments/toolbar/components/wrapper.js +138 -0
- package/lib/fragments/toolbar/hooks.d.ts +16 -0
- package/lib/fragments/toolbar/hooks.js +251 -0
- package/lib/fragments/toolbar/index.d.ts +12 -0
- package/lib/fragments/toolbar/index.js +80 -0
- package/lib/fragments/toolbar/store.d.ts +62 -0
- package/lib/fragments/toolbar/store.js +279 -0
- package/lib/fragments/toolbar/style.css +347 -0
- package/lib/fragments/toolbar/view.d.ts +1 -0
- package/lib/fragments/toolbar/view.js +34 -0
- package/lib/global.d.ts +8 -0
- package/lib/hooks/i18n.d.ts +4 -0
- package/lib/hooks/i18n.js +18 -0
- package/lib/hooks/meeting-time.d.ts +15 -0
- package/lib/hooks/meeting-time.js +92 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +52 -0
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +17 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +199 -0
- package/lib/modules/action-bar/board/index.d.ts +4 -0
- package/lib/modules/action-bar/board/index.js +34 -0
- package/lib/modules/action-bar/breakout-room/index.d.ts +4 -0
- package/lib/modules/action-bar/breakout-room/index.js +32 -0
- package/lib/modules/action-bar/chat/index.css +80 -0
- package/lib/modules/action-bar/chat/index.d.ts +5 -0
- package/lib/modules/action-bar/chat/index.js +152 -0
- package/lib/modules/action-bar/context.d.ts +3 -0
- package/lib/modules/action-bar/context.js +9 -0
- package/lib/modules/action-bar/device/index.css +157 -0
- package/lib/modules/action-bar/device/index.d.ts +8 -0
- package/lib/modules/action-bar/device/index.js +611 -0
- package/lib/modules/action-bar/index.css +212 -0
- package/lib/modules/action-bar/index.d.ts +25 -0
- package/lib/modules/action-bar/index.dev.d.ts +1 -0
- package/lib/modules/action-bar/index.dev.js +96 -0
- package/lib/modules/action-bar/index.js +89 -0
- package/lib/modules/action-bar/item-placement.d.ts +8 -0
- package/lib/modules/action-bar/item-placement.js +18 -0
- package/lib/modules/action-bar/item.d.ts +27 -0
- package/lib/modules/action-bar/item.js +154 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +8 -0
- package/lib/modules/action-bar/leave/assign-host.js +64 -0
- package/lib/modules/action-bar/leave/index.css +116 -0
- package/lib/modules/action-bar/leave/index.d.ts +3 -0
- package/lib/modules/action-bar/leave/index.js +110 -0
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +7 -0
- package/lib/modules/action-bar/leave/leave-meeting.js +135 -0
- package/lib/modules/action-bar/live-streaming/index.d.ts +4 -0
- package/lib/modules/action-bar/live-streaming/index.js +39 -0
- package/lib/modules/action-bar/more/index.css +114 -0
- package/lib/modules/action-bar/more/index.d.ts +5 -0
- package/lib/modules/action-bar/more/index.js +80 -0
- package/lib/modules/action-bar/more/poppover-content.d.ts +9 -0
- package/lib/modules/action-bar/more/poppover-content.js +369 -0
- package/lib/modules/action-bar/participants/index.css +9 -0
- package/lib/modules/action-bar/participants/index.d.ts +5 -0
- package/lib/modules/action-bar/participants/index.js +75 -0
- package/lib/modules/action-bar/record/index.css +39 -0
- package/lib/modules/action-bar/record/index.d.ts +5 -0
- package/lib/modules/action-bar/record/index.js +161 -0
- package/lib/modules/action-bar/record/stop-record-dialog.d.ts +5 -0
- package/lib/modules/action-bar/record/stop-record-dialog.js +48 -0
- package/lib/modules/action-bar/respond/index.d.ts +4 -0
- package/lib/modules/action-bar/respond/index.js +32 -0
- package/lib/modules/action-bar/screen-share/index.d.ts +4 -0
- package/lib/modules/action-bar/screen-share/index.js +97 -0
- package/lib/modules/action-bar/screen-share/submenu.d.ts +1 -0
- package/lib/modules/action-bar/screen-share/submenu.js +159 -0
- package/lib/modules/action-bar/security/drop-menu.d.ts +1 -0
- package/lib/modules/action-bar/security/drop-menu.js +164 -0
- package/lib/modules/action-bar/security/index.d.ts +4 -0
- package/lib/modules/action-bar/security/index.js +50 -0
- package/lib/modules/action-bar/settings/index.d.ts +4 -0
- package/lib/modules/action-bar/settings/index.js +41 -0
- package/lib/modules/action-bar/smaller.d.ts +1 -0
- package/lib/modules/action-bar/smaller.js +52 -0
- package/lib/modules/action-bar/store.d.ts +177 -0
- package/lib/modules/action-bar/store.js +1179 -0
- package/lib/modules/action-bar/type.d.ts +6 -0
- package/lib/modules/action-bar/type.js +13 -0
- package/lib/modules/action-bar/view.d.ts +5 -0
- package/lib/modules/action-bar/view.js +80 -0
- package/lib/modules/audio-stream/index.d.ts +21 -0
- package/lib/modules/audio-stream/index.js +119 -0
- package/lib/modules/chat/chat-bar/index.css +79 -0
- package/lib/modules/chat/chat-bar/index.d.ts +11 -0
- package/lib/modules/chat/chat-bar/index.js +125 -0
- package/lib/modules/chat/chat-select/index.css +156 -0
- package/lib/modules/chat/chat-select/index.d.ts +13 -0
- package/lib/modules/chat/chat-select/index.js +186 -0
- package/lib/modules/chat/chat.d.ts +12 -0
- package/lib/modules/chat/chat.js +295 -0
- package/lib/modules/chat/contex.d.ts +3 -0
- package/lib/modules/chat/contex.js +9 -0
- package/lib/modules/chat/demo-wrapper.d.ts +2 -0
- package/lib/modules/chat/demo-wrapper.js +42 -0
- package/lib/modules/chat/index.css +17 -0
- package/lib/modules/chat/index.d.ts +29 -0
- package/lib/modules/chat/index.dev.d.ts +1 -0
- package/lib/modules/chat/index.dev.js +58 -0
- package/lib/modules/chat/index.js +189 -0
- package/lib/modules/chat/message-list.d.ts +22 -0
- package/lib/modules/chat/message-list.js +595 -0
- package/lib/modules/chat/mock.d.ts +2 -0
- package/lib/modules/chat/mock.js +283 -0
- package/lib/modules/chat/store.d.ts +132 -0
- package/lib/modules/chat/store.js +923 -0
- package/lib/modules/chat/util.d.ts +6 -0
- package/lib/modules/chat/util.js +69 -0
- package/lib/modules/connection-gateway/components/computer/index.css +11 -0
- package/lib/modules/connection-gateway/components/computer/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/computer/index.js +66 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +10 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +75 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.css +72 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +7 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.js +58 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +10 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +5 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +24 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.css +46 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.js +36 -0
- package/lib/modules/connection-gateway/components/phone/index.css +49 -0
- package/lib/modules/connection-gateway/components/phone/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/phone/index.js +181 -0
- package/lib/modules/connection-gateway/components/tabs/index.css +31 -0
- package/lib/modules/connection-gateway/components/tabs/index.d.ts +4 -0
- package/lib/modules/connection-gateway/components/tabs/index.js +43 -0
- package/lib/modules/connection-gateway/index.css +6 -0
- package/lib/modules/connection-gateway/index.d.ts +16 -0
- package/lib/modules/connection-gateway/index.js +67 -0
- package/lib/modules/connection-gateway/store.d.ts +80 -0
- package/lib/modules/connection-gateway/store.js +698 -0
- package/lib/modules/connection-gateway/view.d.ts +1 -0
- package/lib/modules/connection-gateway/view.js +22 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +13 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +15 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +12 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +71 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +2 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +63 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.d.ts +12 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +71 -0
- package/lib/modules/device-pretest/context.d.ts +3 -0
- package/lib/modules/device-pretest/context.js +9 -0
- package/lib/modules/device-pretest/index.css +127 -0
- package/lib/modules/device-pretest/index.d.ts +13 -0
- package/lib/modules/device-pretest/index.js +242 -0
- package/lib/modules/device-pretest/settings/beauty.d.ts +10 -0
- package/lib/modules/device-pretest/settings/beauty.js +103 -0
- package/lib/modules/device-pretest/settings/camera-select.d.ts +12 -0
- package/lib/modules/device-pretest/settings/camera-select.js +53 -0
- package/lib/modules/device-pretest/settings/index.css +15 -0
- package/lib/modules/device-pretest/settings/video-effect.d.ts +12 -0
- package/lib/modules/device-pretest/settings/video-effect.js +50 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.d.ts +2 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.js +143 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.d.ts +7 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +99 -0
- package/lib/modules/device-pretest/store.d.ts +69 -0
- package/lib/modules/device-pretest/store.js +413 -0
- package/lib/modules/dialog/components/chat/electron.d.ts +4 -0
- package/lib/modules/dialog/components/chat/electron.js +59 -0
- package/lib/modules/dialog/components/chat/index.d.ts +7 -0
- package/lib/modules/dialog/components/chat/index.js +66 -0
- package/lib/modules/dialog/components/confirm/electron.d.ts +10 -0
- package/lib/modules/dialog/components/confirm/electron.js +84 -0
- package/lib/modules/dialog/components/confirm/index.d.ts +10 -0
- package/lib/modules/dialog/components/confirm/index.js +75 -0
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +2 -0
- package/lib/modules/dialog/components/connection-gateway/electron.js +62 -0
- package/lib/modules/dialog/components/connection-gateway/index.css +27 -0
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -0
- package/lib/modules/dialog/components/connection-gateway/index.js +74 -0
- package/lib/modules/dialog/components/participant/electron.d.ts +2 -0
- package/lib/modules/dialog/components/participant/electron.js +85 -0
- package/lib/modules/dialog/components/participant/index.d.ts +3 -0
- package/lib/modules/dialog/components/participant/index.js +61 -0
- package/lib/modules/dialog/components/share-screen-selection/index.d.ts +4 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +42 -0
- package/lib/modules/dialog/components/whiteboard/index.d.ts +4 -0
- package/lib/modules/dialog/components/whiteboard/index.js +74 -0
- package/lib/modules/dialog/context.d.ts +3 -0
- package/lib/modules/dialog/context.js +9 -0
- package/lib/modules/dialog/dialogs.d.ts +11 -0
- package/lib/modules/dialog/dialogs.js +376 -0
- package/lib/modules/dialog/index.css +55 -0
- package/lib/modules/dialog/index.d.ts +29 -0
- package/lib/modules/dialog/index.js +80 -0
- package/lib/modules/dialog/store.d.ts +82 -0
- package/lib/modules/dialog/store.js +525 -0
- package/lib/modules/dialog/view.d.ts +5 -0
- package/lib/modules/dialog/view.js +30 -0
- package/lib/modules/event-toast/context.d.ts +3 -0
- package/lib/modules/event-toast/context.js +9 -0
- package/lib/modules/event-toast/index.d.ts +10 -0
- package/lib/modules/event-toast/index.js +41 -0
- package/lib/modules/event-toast/store.d.ts +9 -0
- package/lib/modules/event-toast/store.js +76 -0
- package/lib/modules/event-toast/view.d.ts +1 -0
- package/lib/modules/event-toast/view.js +14 -0
- package/lib/modules/invite/context.d.ts +3 -0
- package/lib/modules/invite/context.js +9 -0
- package/lib/modules/invite/index.css +318 -0
- package/lib/modules/invite/index.d.ts +13 -0
- package/lib/modules/invite/index.js +51 -0
- package/lib/modules/invite/pstn-invite.d.ts +2 -0
- package/lib/modules/invite/pstn-invite.js +271 -0
- package/lib/modules/invite/store.d.ts +71 -0
- package/lib/modules/invite/store.js +472 -0
- package/lib/modules/invite/view.d.ts +1 -0
- package/lib/modules/invite/view.js +47 -0
- package/lib/modules/invite/voip-invite.d.ts +2 -0
- package/lib/modules/invite/voip-invite.js +294 -0
- package/lib/modules/layout/components/Aside.d.ts +7 -0
- package/lib/modules/layout/components/Aside.js +144 -0
- package/lib/modules/layout/components/Carousel.d.ts +1 -0
- package/lib/modules/layout/components/Carousel.js +271 -0
- package/lib/modules/layout/components/Gallery.d.ts +1 -0
- package/lib/modules/layout/components/Gallery.js +360 -0
- package/lib/modules/layout/components/Layout.d.ts +2 -0
- package/lib/modules/layout/components/Layout.js +160 -0
- package/lib/modules/layout/components/index.css +608 -0
- package/lib/modules/layout/components/index.d.ts +5 -0
- package/lib/modules/layout/components/index.js +55 -0
- package/lib/modules/layout/components/utils.d.ts +1 -0
- package/lib/modules/layout/components/utils.js +10 -0
- package/lib/modules/layout/context.d.ts +3 -0
- package/lib/modules/layout/context.js +9 -0
- package/lib/modules/layout/index.css +27 -0
- package/lib/modules/layout/index.d.ts +10 -0
- package/lib/modules/layout/index.dev.d.ts +1 -0
- package/lib/modules/layout/index.dev.js +378 -0
- package/lib/modules/layout/index.js +72 -0
- package/lib/modules/layout/member-window/index.css +321 -0
- package/lib/modules/layout/member-window/index.d.ts +67 -0
- package/lib/modules/layout/member-window/index.js +730 -0
- package/lib/modules/layout/store.d.ts +177 -0
- package/lib/modules/layout/store.js +1278 -0
- package/lib/modules/layout/type.d.ts +64 -0
- package/lib/modules/layout/type.js +52 -0
- package/lib/modules/layout/video-window-datasource.d.ts +119 -0
- package/lib/modules/layout/video-window-datasource.js +1031 -0
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +10 -0
- package/lib/modules/live-streaming/context.d.ts +3 -0
- package/lib/modules/live-streaming/context.js +9 -0
- package/lib/modules/live-streaming/index.css +0 -0
- package/lib/modules/live-streaming/index.d.ts +13 -0
- package/lib/modules/live-streaming/index.dev.d.ts +1 -0
- package/lib/modules/live-streaming/index.dev.js +59 -0
- package/lib/modules/live-streaming/index.js +76 -0
- package/lib/modules/live-streaming/store.d.ts +38 -0
- package/lib/modules/live-streaming/store.js +360 -0
- package/lib/modules/live-streaming/view.d.ts +1 -0
- package/lib/modules/live-streaming/view.js +33 -0
- package/lib/modules/participant/attendee/index.css +14 -0
- package/lib/modules/participant/attendee/index.d.ts +19 -0
- package/lib/modules/participant/attendee/index.js +280 -0
- package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
- package/lib/modules/participant/attendee/participants-more-action.js +275 -0
- package/lib/modules/participant/attendee/user-more-actions.d.ts +22 -0
- package/lib/modules/participant/attendee/user-more-actions.js +76 -0
- package/lib/modules/participant/can-moveable/index.d.ts +1 -0
- package/lib/modules/participant/can-moveable/index.js +68 -0
- package/lib/modules/participant/context.d.ts +3 -0
- package/lib/modules/participant/context.js +9 -0
- package/lib/modules/participant/index.css +58 -0
- package/lib/modules/participant/index.d.ts +25 -0
- package/lib/modules/participant/index.dev.d.ts +1 -0
- package/lib/modules/participant/index.dev.js +98 -0
- package/lib/modules/participant/index.js +93 -0
- package/lib/modules/participant/member-list-data-source.d.ts +28 -0
- package/lib/modules/participant/member-list-data-source.js +261 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +19 -0
- package/lib/modules/participant/room-control-drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +154 -0
- package/lib/modules/participant/store.d.ts +145 -0
- package/lib/modules/participant/store.js +1334 -0
- package/lib/modules/participant/type.d.ts +34 -0
- package/lib/modules/participant/type.js +22 -0
- package/lib/modules/participant/view.d.ts +11 -0
- package/lib/modules/participant/view.js +260 -0
- package/lib/modules/setting/audio-settings/audio-settings.d.ts +4 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +303 -0
- package/lib/modules/setting/audio-settings/index.css +144 -0
- package/lib/{fcr-ui-scene/src/containers/stream-window/index.d.ts → modules/setting/common/advance-link.d.ts} +1 -1
- package/lib/modules/setting/common/advance-link.js +27 -0
- package/lib/modules/setting/common/index.css +26 -0
- package/lib/modules/setting/common/useNamespace.d.ts +15 -0
- package/lib/modules/setting/common/useNamespace.js +66 -0
- package/lib/modules/setting/config.d.ts +16 -0
- package/lib/modules/setting/config.js +17 -0
- package/lib/modules/setting/context.d.ts +3 -0
- package/lib/modules/setting/context.js +9 -0
- package/lib/modules/setting/dialog-wrapper.d.ts +2 -0
- package/lib/modules/setting/dialog-wrapper.js +110 -0
- package/lib/modules/setting/general-settings/general-settings.d.ts +4 -0
- package/lib/modules/setting/general-settings/general-settings.js +66 -0
- package/lib/modules/setting/general-settings/index.css +26 -0
- package/lib/modules/setting/index.css +115 -0
- package/lib/modules/setting/index.d.ts +21 -0
- package/lib/modules/setting/index.dev.d.ts +1 -0
- package/lib/modules/setting/index.dev.js +71 -0
- package/lib/modules/setting/index.js +81 -0
- package/lib/modules/setting/state/index.css +211 -0
- package/lib/modules/setting/state/index.d.ts +4 -0
- package/lib/modules/setting/state/index.js +331 -0
- package/lib/modules/setting/storage-settings/index.css +91 -0
- package/lib/modules/setting/storage-settings/storage-settings.d.ts +3 -0
- package/lib/modules/setting/storage-settings/storage-settings.js +84 -0
- package/lib/modules/setting/store.d.ts +213 -0
- package/lib/modules/setting/store.js +1125 -0
- package/lib/modules/setting/video-settings/index.css +339 -0
- package/lib/modules/setting/video-settings/video-settings-basic.d.ts +9 -0
- package/lib/modules/setting/video-settings/video-settings-basic.js +160 -0
- package/lib/modules/setting/video-settings/video-settings.d.ts +10 -0
- package/lib/modules/setting/video-settings/video-settings.js +191 -0
- package/lib/modules/setting/view.d.ts +10 -0
- package/lib/modules/setting/view.js +139 -0
- package/lib/modules/share-screen/index.css +0 -0
- package/lib/modules/share-screen/index.d.ts +26 -0
- package/lib/modules/share-screen/index.dev.d.ts +1 -0
- package/lib/modules/share-screen/index.dev.js +96 -0
- package/lib/modules/share-screen/index.js +171 -0
- package/lib/modules/share-screen/selection/index.css +66 -0
- package/lib/modules/share-screen/selection/index.d.ts +9 -0
- package/lib/modules/share-screen/selection/index.js +224 -0
- package/lib/modules/share-screen/share-state-bar/index.css +38 -0
- package/lib/modules/share-screen/share-state-bar/index.d.ts +5 -0
- package/lib/modules/share-screen/share-state-bar/index.js +67 -0
- package/lib/modules/share-screen/store.d.ts +132 -0
- package/lib/modules/share-screen/store.js +1714 -0
- package/lib/modules/share-screen/view.d.ts +2 -0
- package/lib/modules/share-screen/view.js +45 -0
- package/lib/modules/state-bar/assets/fcr_grid_big.svg +3 -0
- package/lib/modules/state-bar/assets/fcr_listontop_big.svg +3 -0
- package/lib/modules/state-bar/assets/live-streaming.gif +0 -0
- package/lib/modules/state-bar/context.d.ts +3 -0
- package/lib/modules/state-bar/context.js +9 -0
- package/lib/modules/state-bar/index.css +630 -0
- package/lib/modules/state-bar/index.d.ts +18 -0
- package/lib/modules/state-bar/index.dev.d.ts +1 -0
- package/lib/modules/state-bar/index.dev.js +82 -0
- package/lib/modules/state-bar/index.js +69 -0
- package/lib/modules/state-bar/layout-config.d.ts +5 -0
- package/lib/modules/state-bar/layout-config.js +151 -0
- package/lib/modules/state-bar/live-streaming-state.d.ts +1 -0
- package/lib/modules/state-bar/live-streaming-state.js +199 -0
- package/lib/modules/state-bar/meeting-detail.css +107 -0
- package/lib/modules/state-bar/meeting-details.d.ts +2 -0
- package/lib/modules/state-bar/meeting-details.js +151 -0
- package/lib/modules/state-bar/meeting-network-state.css +131 -0
- package/lib/modules/state-bar/meeting-network-state.d.ts +2 -0
- package/lib/modules/state-bar/meeting-network-state.js +108 -0
- package/lib/modules/state-bar/meeting-time.d.ts +2 -0
- package/lib/modules/state-bar/meeting-time.js +49 -0
- package/lib/modules/state-bar/network-quality.d.ts +2 -0
- package/lib/modules/state-bar/network-quality.js +33 -0
- package/lib/modules/state-bar/recording.d.ts +1 -0
- package/lib/modules/state-bar/recording.js +110 -0
- package/lib/modules/state-bar/store.d.ts +70 -0
- package/lib/modules/state-bar/store.js +515 -0
- package/lib/modules/state-bar/view.d.ts +5 -0
- package/lib/modules/state-bar/view.js +182 -0
- package/lib/modules/video-window/context.d.ts +3 -0
- package/lib/modules/video-window/context.js +9 -0
- package/lib/modules/video-window/deviceState/index.d.ts +15 -0
- package/lib/modules/video-window/deviceState/index.js +77 -0
- package/lib/modules/video-window/index.css +17 -0
- package/lib/modules/video-window/index.d.ts +9 -0
- package/lib/modules/video-window/index.js +65 -0
- package/lib/modules/video-window/members/index.css +50 -0
- package/lib/modules/video-window/members/index.d.ts +2 -0
- package/lib/modules/video-window/members/index.js +134 -0
- package/lib/modules/video-window/speaking/index.css +69 -0
- package/lib/modules/video-window/speaking/index.d.ts +3 -0
- package/lib/modules/video-window/speaking/index.js +57 -0
- package/lib/modules/video-window/store.d.ts +88 -0
- package/lib/modules/video-window/store.js +598 -0
- package/lib/modules/video-window/topControl/index.css +35 -0
- package/lib/modules/video-window/topControl/index.d.ts +3 -0
- package/lib/modules/video-window/topControl/index.js +85 -0
- package/lib/modules/video-window/type.d.ts +23 -0
- package/lib/modules/video-window/type.js +32 -0
- package/lib/modules/video-window/view.d.ts +2 -0
- package/lib/modules/video-window/view.js +63 -0
- package/lib/modules/whiteboard/app.d.ts +2 -0
- package/lib/modules/whiteboard/app.js +55 -0
- package/lib/modules/whiteboard/components/control-bar/index.css +49 -0
- package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +163 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +36 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
- package/lib/modules/whiteboard/components/loading/index.css +76 -0
- package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/loading/index.js +68 -0
- package/lib/modules/whiteboard/components/loading/loading.png +0 -0
- package/lib/modules/whiteboard/components/multi-window/index.css +63 -0
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +34 -0
- package/lib/modules/whiteboard/components/pagination/index.css +228 -0
- package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
- package/lib/modules/whiteboard/components/pagination/index.js +163 -0
- package/lib/modules/whiteboard/components/pagination/store.d.ts +19 -0
- package/lib/modules/whiteboard/components/pagination/store.js +17 -0
- package/lib/modules/whiteboard/components/progress/electron.d.ts +1 -0
- package/lib/modules/whiteboard/components/progress/electron.js +32 -0
- package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/progress/index.js +43 -0
- package/lib/modules/whiteboard/components/progress/style.css +50 -0
- package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
- package/lib/modules/whiteboard/components/scene-pagination.js +32 -0
- package/lib/modules/whiteboard/components/switch-theme/index.css +94 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +77 -0
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +8 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +44 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +3 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.js +28 -0
- package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +39 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +105 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +63 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +98 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +59 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +41 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +131 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +112 -0
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +74 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +163 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +175 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +50 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +224 -0
- package/lib/modules/whiteboard/context.d.ts +66 -0
- package/lib/modules/whiteboard/context.js +34 -0
- package/lib/modules/whiteboard/index.d.ts +115 -0
- package/lib/modules/whiteboard/index.js +1082 -0
- package/lib/modules/whiteboard/style.css +142 -0
- package/lib/modules/whiteboard/type.d.ts +96 -0
- package/lib/modules/whiteboard/type.js +94 -0
- package/lib/modules/whiteboard/utils.d.ts +11 -0
- package/lib/modules/whiteboard/utils.js +25 -0
- package/lib/plugins/browser-runtime-plugin.d.ts +0 -0
- package/lib/plugins/browser-runtime-plugin.js +67 -0
- package/lib/plugins/css-preset-plugin.d.ts +1 -0
- package/lib/plugins/css-preset-plugin.js +22 -0
- package/lib/plugins/electron-rtc-plugin.d.ts +1 -0
- package/lib/plugins/electron-rtc-plugin.js +5 -0
- package/lib/plugins/module-dev-plugin.d.ts +12 -0
- package/lib/plugins/module-dev-plugin.js +181 -0
- package/lib/plugins/multi-lang-plugin.d.ts +5 -0
- package/lib/plugins/multi-lang-plugin.js +17 -0
- package/lib/plugins/rtm-plugin.d.ts +1 -0
- package/lib/plugins/rtm-plugin.js +5 -0
- package/lib/plugins/web-rtc-plugin.d.ts +1 -0
- package/lib/plugins/web-rtc-plugin.js +5 -0
- package/lib/runtime.d.ts +86 -0
- package/lib/translations/enUS.d.ts +993 -0
- package/lib/translations/enUS.js +1016 -0
- package/lib/translations/zhCN.d.ts +993 -0
- package/lib/translations/zhCN.js +1016 -0
- package/lib/type.d.ts +107 -0
- package/lib/type.js +42 -0
- package/lib/ui-manager.d.ts +17 -0
- package/lib/ui-manager.js +555 -0
- package/lib/ui-scene.d.ts +13 -0
- package/lib/ui-scene.js +142 -0
- package/lib/utilities/board-context.d.ts +5 -0
- package/lib/utilities/board-context.js +12 -0
- package/lib/utilities/constant.d.ts +248 -0
- package/lib/utilities/constant.js +232 -0
- package/lib/utilities/copyText.d.ts +2 -0
- package/lib/utilities/copyText.js +43 -0
- package/lib/utilities/default-config.d.ts +32 -0
- package/lib/utilities/default-config.js +39 -0
- package/lib/utilities/extract.d.ts +5 -0
- package/lib/utilities/extract.js +97 -0
- package/lib/utilities/hooks.d.ts +14 -0
- package/lib/utilities/hooks.js +99 -0
- package/lib/utilities/mute-action.d.ts +4 -0
- package/lib/utilities/mute-action.js +48 -0
- package/lib/utilities/parameters.d.ts +7 -0
- package/lib/utilities/parameters.js +20 -0
- package/lib/utilities/platform.d.ts +1 -0
- package/lib/utilities/platform.js +11 -0
- package/lib/utilities/regex.d.ts +1 -0
- package/lib/utilities/regex.js +14 -0
- package/lib/utilities/renderer-event.d.ts +9 -0
- package/lib/utilities/renderer-event.js +76 -0
- package/lib/utilities/renderer.d.ts +23 -0
- package/lib/utilities/renderer.js +109 -0
- package/lib/utilities/screen.d.ts +3 -0
- package/lib/utilities/screen.js +41 -0
- package/lib/utilities/tools.d.ts +25 -0
- package/lib/utilities/tools.js +164 -0
- package/lib/utilities/ui-resources.d.ts +2 -0
- package/lib/utilities/ui-resources.js +9 -0
- package/lib/utilities/useNamespace.d.ts +15 -0
- package/lib/utilities/useNamespace.js +66 -0
- package/lib/utilities/video-track-render-context.d.ts +8 -0
- package/lib/utilities/video-track-render-context.js +9 -0
- package/package.json +61 -85
- package/public/assets/fcr_chat_reddot.svg +5 -0
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/fcr_grid_big.svg +3 -0
- package/public/assets/fcr_listontop_big.svg +3 -0
- package/public/assets/pretest.mp3 +0 -0
- package/public/assets/state-bar-logo.png +0 -0
- package/public/assets/step-gradient.svg +10 -0
- package/public/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
- package/public/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
- package/public/extensions/ai-denoiser/denoiser-wasm.js +1 -0
- package/public/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
- package/public/index.html +26 -0
- package/.github/workflows/gitee-sync.yml +0 -27
- package/lib/fcr-ui-kit/src/components/avatar/helper.d.ts +0 -2
- package/lib/fcr-ui-kit/src/components/avatar/index.d.ts +0 -8
- package/lib/fcr-ui-kit/src/components/button/index.d.ts +0 -82
- package/lib/fcr-ui-kit/src/components/checkbox/index.d.ts +0 -12
- package/lib/fcr-ui-kit/src/components/dialog/class-dialog.d.ts +0 -51
- package/lib/fcr-ui-kit/src/components/dialog/confirm-dialog.d.ts +0 -70
- package/lib/fcr-ui-kit/src/components/dialog/global-dialog.d.ts +0 -11
- package/lib/fcr-ui-kit/src/components/dialog/index.d.ts +0 -68
- package/lib/fcr-ui-kit/src/components/dropdown/index.d.ts +0 -58
- package/lib/fcr-ui-kit/src/components/input/index.d.ts +0 -69
- package/lib/fcr-ui-kit/src/components/input-number/index.d.ts +0 -69
- package/lib/fcr-ui-kit/src/components/pagination/index.d.ts +0 -27
- package/lib/fcr-ui-kit/src/components/popover/index.d.ts +0 -47
- package/lib/fcr-ui-kit/src/components/progress/index.d.ts +0 -11
- package/lib/fcr-ui-kit/src/components/radio/index.d.ts +0 -21
- package/lib/fcr-ui-kit/src/components/slider/index.d.ts +0 -22
- package/lib/fcr-ui-kit/src/components/sound-player/index.d.ts +0 -6
- package/lib/fcr-ui-kit/src/components/svg-img/clickable-icon.d.ts +0 -25
- package/lib/fcr-ui-kit/src/components/svg-img/index.d.ts +0 -15
- package/lib/fcr-ui-kit/src/components/svg-img/mic.d.ts +0 -5
- package/lib/fcr-ui-kit/src/components/svg-img/svg-dict.d.ts +0 -12
- package/lib/fcr-ui-kit/src/components/svg-img/type.d.ts +0 -196
- package/lib/fcr-ui-kit/src/components/svga-player/index.d.ts +0 -15
- package/lib/fcr-ui-kit/src/components/svga-player/svga-types.d.ts +0 -1
- package/lib/fcr-ui-kit/src/components/table/index.d.ts +0 -9
- package/lib/fcr-ui-kit/src/components/tabs/index.d.ts +0 -14
- package/lib/fcr-ui-kit/src/components/textarea/helper.d.ts +0 -2
- package/lib/fcr-ui-kit/src/components/textarea/index.d.ts +0 -100
- package/lib/fcr-ui-kit/src/components/toast/index.d.ts +0 -122
- package/lib/fcr-ui-kit/src/components/tooltip/dialog.d.ts +0 -19
- package/lib/fcr-ui-kit/src/components/tooltip/index.d.ts +0 -89
- package/lib/fcr-ui-kit/src/components/tooltip/info.d.ts +0 -6
- package/lib/fcr-ui-kit/src/components/volume/index.d.ts +0 -8
- package/lib/fcr-ui-kit/src/utils/click-anywhere.d.ts +0 -1
- package/lib/fcr-ui-kit/src/utils/hooks/animations.d.ts +0 -14
- package/lib/fcr-ui-kit/src/utils/hooks/use-click-anywhere.d.ts +0 -2
- package/lib/fcr-ui-kit/src/utils/tailwindcss.d.ts +0 -3
- package/lib/fcr-ui-scene/src/app.d.ts +0 -5
- package/lib/fcr-ui-scene/src/configs/base-theme.d.ts +0 -391
- package/lib/fcr-ui-scene/src/configs/base-ui.d.ts +0 -12
- package/lib/fcr-ui-scene/src/configs/room-template.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/chat/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/cloud/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/device/index.d.ts +0 -9
- package/lib/fcr-ui-scene/src/containers/action-bar/index.d.ts +0 -24
- package/lib/fcr-ui-scene/src/containers/action-bar/leave/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/action-bar/participants/index.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/action-bar/raise-hands/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/record/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/screen-share/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/setting/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/toolbox/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/action-bar/whiteboard/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/breakout-room/ask-help-list.d.ts +0 -10
- package/lib/fcr-ui-scene/src/containers/breakout-room/broadcast-panel.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/breakout-room/create-panel.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-info-panel.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-panel.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-status-panel.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/breakout-room/grouping.d.ts +0 -15
- package/lib/fcr-ui-scene/src/containers/breakout-room/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/breakout-room/search-panel.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/breakout-room/wizard.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/cloud/dialog-header.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/cloud/index.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/cloud/personal.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/cloud/public.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/common/interact-labels.d.ts +0 -6
- package/lib/fcr-ui-scene/src/containers/device-pretest/basic-settings.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-filter.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-slider.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/device-select.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/mirror-toggle.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-pretest/video-portal.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-pretest/virtual-background.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/device-settings/audio-settings.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-settings/dialog-wrapper.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/device-settings/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/device-settings/video-settings.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/dialog/class-info.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/dialog/confirm.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/dialog/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/layout/cover-view.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/layout/gallery-view.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/layout/presentation-view.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/loading/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/participants/dialog.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/participants/index.d.ts +0 -5
- package/lib/fcr-ui-scene/src/containers/status-bar/class-duration/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/fullscreen/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/layout-switch/index.d.ts +0 -22
- package/lib/fcr-ui-scene/src/containers/status-bar/network/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/record-status/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/room-info/index.d.ts +0 -4
- package/lib/fcr-ui-scene/src/containers/status-bar/share/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/status-bar/widgets/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/containers/stream-window/context.d.ts +0 -52
- package/lib/fcr-ui-scene/src/containers/video-player/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/video-player/players.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/widget/break-out-room/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/containers/widget/draggable-wrapper/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/containers/widget/helpers.d.ts +0 -40
- package/lib/fcr-ui-scene/src/containers/widget/hooks.d.ts +0 -21
- package/lib/fcr-ui-scene/src/containers/widget/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/containers/widget/participants/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/extension/board.d.ts +0 -73
- package/lib/fcr-ui-scene/src/extension/edu-tool.d.ts +0 -57
- package/lib/fcr-ui-scene/src/extension/events.d.ts +0 -91
- package/lib/fcr-ui-scene/src/extension/type.d.ts +0 -94
- package/lib/fcr-ui-scene/src/index.d.ts +0 -39
- package/lib/fcr-ui-scene/src/lock.d.ts +0 -8
- package/lib/fcr-ui-scene/src/preset.d.ts +0 -1
- package/lib/fcr-ui-scene/src/resources/translations/enUs.d.ts +0 -400
- package/lib/fcr-ui-scene/src/resources/translations/zhCn.d.ts +0 -405
- package/lib/fcr-ui-scene/src/scenarios/classroom.d.ts +0 -2
- package/lib/fcr-ui-scene/src/scenarios/layout/index.d.ts +0 -2
- package/lib/fcr-ui-scene/src/type.d.ts +0 -361
- package/lib/fcr-ui-scene/src/uistores/action-bar.d.ts +0 -58
- package/lib/fcr-ui-scene/src/uistores/base.d.ts +0 -58
- package/lib/fcr-ui-scene/src/uistores/breakout.d.ts +0 -225
- package/lib/fcr-ui-scene/src/uistores/cloud/helper.d.ts +0 -26
- package/lib/fcr-ui-scene/src/uistores/cloud/index.d.ts +0 -51
- package/lib/fcr-ui-scene/src/uistores/cloud/struct.d.ts +0 -131
- package/lib/fcr-ui-scene/src/uistores/context.d.ts +0 -7
- package/lib/fcr-ui-scene/src/uistores/device-setting.d.ts +0 -222
- package/lib/fcr-ui-scene/src/uistores/gallery-view.d.ts +0 -16
- package/lib/fcr-ui-scene/src/uistores/getters.d.ts +0 -42
- package/lib/fcr-ui-scene/src/uistores/index.d.ts +0 -47
- package/lib/fcr-ui-scene/src/uistores/layout.d.ts +0 -64
- package/lib/fcr-ui-scene/src/uistores/notification.d.ts +0 -9
- package/lib/fcr-ui-scene/src/uistores/participants.d.ts +0 -48
- package/lib/fcr-ui-scene/src/uistores/presentation-view.d.ts +0 -24
- package/lib/fcr-ui-scene/src/uistores/status-bar.d.ts +0 -47
- package/lib/fcr-ui-scene/src/uistores/stream.d.ts +0 -48
- package/lib/fcr-ui-scene/src/uistores/subscription/abstract.d.ts +0 -45
- package/lib/fcr-ui-scene/src/uistores/subscription/index.d.ts +0 -13
- package/lib/fcr-ui-scene/src/uistores/subscription/main-room.d.ts +0 -14
- package/lib/fcr-ui-scene/src/uistores/subscription/type.d.ts +0 -10
- package/lib/fcr-ui-scene/src/uistores/type.d.ts +0 -86
- package/lib/fcr-ui-scene/src/uistores/widget.d.ts +0 -49
- package/lib/fcr-ui-scene/src/utils/asset.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/check.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/clamp-bounds.d.ts +0 -14
- package/lib/fcr-ui-scene/src/utils/config-loader.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/grid/index.d.ts +0 -9
- package/lib/fcr-ui-scene/src/utils/hooks/use-authorization.d.ts +0 -5
- package/lib/fcr-ui-scene/src/utils/hooks/use-device-switch.d.ts +0 -29
- package/lib/fcr-ui-scene/src/utils/hooks/use-drag-position.d.ts +0 -21
- package/lib/fcr-ui-scene/src/utils/hooks/use-network.d.ts +0 -17
- package/lib/fcr-ui-scene/src/utils/hooks/use-pin-stream.d.ts +0 -4
- package/lib/fcr-ui-scene/src/utils/hooks/use-rnd-position.d.ts +0 -24
- package/lib/fcr-ui-scene/src/utils/hooks/use-store.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/hooks/use-video-renderable.d.ts +0 -3
- package/lib/fcr-ui-scene/src/utils/hooks/use-z-index.d.ts +0 -8
- package/lib/fcr-ui-scene/src/utils/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/launch-options-holder.d.ts +0 -10
- package/lib/fcr-ui-scene/src/utils/rtc-extensions.d.ts +0 -29
- package/lib/fcr-ui-scene/src/utils/short-name.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/stream/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/utils/stream/state-keeper.d.ts +0 -18
- package/lib/fcr-ui-scene/src/utils/stream/struct.d.ts +0 -67
- package/lib/fcr-ui-scene/src/utils/vsd-pattern.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/z-index-controller.d.ts +0 -9
- package/lib/fcr-ui-scene/tailwind.config.d.ts +0 -1
- package/lib/scene.bundle.js +0 -2
- /package/lib/{fcr-ui-scene/src/containers/video-player/tools-overlay.d.ts → electron/preload.d.ts} +0 -0
|
@@ -0,0 +1,730 @@
|
|
|
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/web.dom-collections.for-each.js");
|
|
13
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
exports.MemberWindowActions = exports.MemberWindow = exports.MemberBoard = exports.FcrUIVideoPlayer = exports.FcrUIRemoteVideoPlayer = exports.FcrUILocalVideoPlayer = void 0;
|
|
18
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
19
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
20
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
21
|
+
require("core-js/modules/es.array.iterator.js");
|
|
22
|
+
require("core-js/modules/es.object.to-string.js");
|
|
23
|
+
require("core-js/modules/es.set.js");
|
|
24
|
+
require("core-js/modules/es.string.iterator.js");
|
|
25
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
26
|
+
require("core-js/modules/web.timers.js");
|
|
27
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
28
|
+
var _mobxReact = require("mobx-react");
|
|
29
|
+
var _react = require("react");
|
|
30
|
+
var _mic = require("agora-ui-foundation/lib/components/icon/mic");
|
|
31
|
+
var _avatar = require("agora-ui-foundation/lib/components/avatar");
|
|
32
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
33
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
34
|
+
var _popover = require("agora-ui-foundation/lib/components/popover");
|
|
35
|
+
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
36
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
37
|
+
var _type2 = require("agora-edu-core/lib/type");
|
|
38
|
+
var _hooks = require("../../../utilities/hooks");
|
|
39
|
+
var _participantsMoreAction = require("../../participant/attendee/participants-more-action");
|
|
40
|
+
var _type3 = require("../type");
|
|
41
|
+
require("./index.css");
|
|
42
|
+
var _context = require("../context");
|
|
43
|
+
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
44
|
+
var _iconPhoneCall = require("agora-ui-foundation/lib/components/icon-phone-call");
|
|
45
|
+
var _videoTrackRenderContext = require("../../../utilities/video-track-render-context");
|
|
46
|
+
var _dialogs = require("../../dialog/dialogs");
|
|
47
|
+
var _constant = require("../../../utilities/constant");
|
|
48
|
+
var _type4 = require("../../video-window/type");
|
|
49
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
50
|
+
var _excluded = ["isLocal"];
|
|
51
|
+
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; }
|
|
52
|
+
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; }
|
|
53
|
+
var MinAvatarSize = 53;
|
|
54
|
+
var MaxAvatarSize = 175;
|
|
55
|
+
var AvatarSizeRatio = 0.2445;
|
|
56
|
+
var AvatarTextSizeRatio = 0.32;
|
|
57
|
+
var HideControlsTimeout = 3000;
|
|
58
|
+
var meetingConnectorTypes = new Set([_type2.FcrRoomConnectorType.SIP, _type2.FcrRoomConnectorType.H323]);
|
|
59
|
+
var clamp = function clamp(val, min, max) {
|
|
60
|
+
return val < min ? min : val > max ? max : val;
|
|
61
|
+
};
|
|
62
|
+
var MemberWindow = exports.MemberWindow = (0, _mobxReact.observer)(function (_ref) {
|
|
63
|
+
var showAvatar = _ref.showAvatar,
|
|
64
|
+
windowData = _ref.windowData,
|
|
65
|
+
onDoubleClick = _ref.onDoubleClick,
|
|
66
|
+
slot = _ref.slot,
|
|
67
|
+
width = _ref.width,
|
|
68
|
+
height = _ref.height,
|
|
69
|
+
canShowSpeakerSpotlight = _ref.canShowSpeakerSpotlight,
|
|
70
|
+
onRemovePin = _ref.onRemovePin,
|
|
71
|
+
memberWindowPreviewType = _ref.memberWindowPreviewType,
|
|
72
|
+
videoRenderMode = _ref.videoRenderMode,
|
|
73
|
+
videoStreamType = _ref.videoStreamType;
|
|
74
|
+
var userName = windowData.userName,
|
|
75
|
+
videoStreamId = windowData.videoStreamId,
|
|
76
|
+
audioStreamId = windowData.audioStreamId,
|
|
77
|
+
userId = windowData.userId,
|
|
78
|
+
isMySelf = windowData.isMySelf,
|
|
79
|
+
hasMicrophoneAudioStream = windowData.hasMicrophoneAudioStream,
|
|
80
|
+
isPin = windowData.isPin,
|
|
81
|
+
isSpeakerSpotlight = windowData.isSpeakerSpotlight,
|
|
82
|
+
hasVideoStream = windowData.hasVideoStream,
|
|
83
|
+
windowId = windowData.windowId,
|
|
84
|
+
audioStreamConnectorType = windowData.audioStreamConnectorType,
|
|
85
|
+
videoStreamConnectorType = windowData.videoStreamConnectorType;
|
|
86
|
+
var t = (0, _i18n.useI18n)();
|
|
87
|
+
var connectorType = audioStreamConnectorType !== _type2.FcrRoomConnectorType.NONE ? audioStreamConnectorType : videoStreamConnectorType;
|
|
88
|
+
var isPhone = audioStreamConnectorType === _type2.FcrRoomConnectorType.PSTN;
|
|
89
|
+
var isPhoneOnlyAudio = isPhone && !videoStreamId;
|
|
90
|
+
var isMeeting = meetingConnectorTypes.has(connectorType);
|
|
91
|
+
var suffixedName = userName + (isMySelf ? t('fmt_attendies_labels_setting_mine') : '');
|
|
92
|
+
var avatar = (0, _react.useMemo)(function () {
|
|
93
|
+
var avatarSize = clamp(Math.min(width || 246, height || 144) * AvatarSizeRatio, MinAvatarSize, MaxAvatarSize);
|
|
94
|
+
var avatarTextSize = avatarSize * AvatarTextSizeRatio;
|
|
95
|
+
return showAvatar ?
|
|
96
|
+
// 纯电话,显示绿色电话头像
|
|
97
|
+
isPhoneOnlyAudio ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
98
|
+
nickName: userName,
|
|
99
|
+
size: avatarSize,
|
|
100
|
+
textSize: avatarTextSize,
|
|
101
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
102
|
+
type: hasMicrophoneAudioStream ? _type.FcrIconType.FCR_PHONECALL3 : _type.FcrIconType.FCR_PHONECALL1,
|
|
103
|
+
colors: {
|
|
104
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
105
|
+
}
|
|
106
|
+
}),
|
|
107
|
+
backgroundColor: hasMicrophoneAudioStream ? 'var(--fcr_ui_scene_ramp_lightgreen6)' : 'var(--fcr_ui_scene_btn3)'
|
|
108
|
+
}) : isMeeting ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
109
|
+
nickName: userName,
|
|
110
|
+
size: avatarSize,
|
|
111
|
+
textSize: avatarTextSize,
|
|
112
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
113
|
+
type: _type.FcrIconType.FCR_SIPDEVICE,
|
|
114
|
+
colors: {
|
|
115
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)',
|
|
116
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
117
|
+
}
|
|
118
|
+
}),
|
|
119
|
+
backgroundColor: hasMicrophoneAudioStream ? 'var(--fcr_ui_scene_ramp_purple7)' : 'var(--fcr_ui_scene_btn3)'
|
|
120
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
121
|
+
nickName: userName,
|
|
122
|
+
size: avatarSize,
|
|
123
|
+
textSize: avatarTextSize
|
|
124
|
+
}) : suffixedName;
|
|
125
|
+
}, [showAvatar, userName, isPhone, hasMicrophoneAudioStream, width, height, showAvatar, userName, videoStreamId, audioStreamId, hasMicrophoneAudioStream, hasVideoStream, isPin]);
|
|
126
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
127
|
+
className: (0, _classnames["default"])("fcr-member-window fcr-member-window-".concat(memberWindowPreviewType), {
|
|
128
|
+
'fcr-member-window-myself': isMySelf,
|
|
129
|
+
'fcr-member-window-has-audio': hasMicrophoneAudioStream
|
|
130
|
+
}),
|
|
131
|
+
"data-user-id": userId,
|
|
132
|
+
"data-stream-id": videoStreamId,
|
|
133
|
+
"data-user-name": userName,
|
|
134
|
+
onDoubleClick: onDoubleClick,
|
|
135
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
136
|
+
className: (0, _classnames["default"])('fcr-member-window-background', {
|
|
137
|
+
// 'fcr-member-window-is-broken': isBroken,
|
|
138
|
+
}),
|
|
139
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
140
|
+
type: _type.FcrIconType.FCR_CAMERA_WINDOW_NOTWORK,
|
|
141
|
+
size: 80,
|
|
142
|
+
colors: {
|
|
143
|
+
iconPrimary: 'currentColor'
|
|
144
|
+
}
|
|
145
|
+
})
|
|
146
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
147
|
+
className: "fcr-member-window-avatar",
|
|
148
|
+
children: avatar
|
|
149
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(FcrUIVideoPlayer, {
|
|
150
|
+
isLocal: isMySelf,
|
|
151
|
+
streamId: windowId,
|
|
152
|
+
videoStreamType: videoStreamType,
|
|
153
|
+
renderMode: videoRenderMode,
|
|
154
|
+
hasVideoStream: hasVideoStream
|
|
155
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
156
|
+
className: (0, _classnames["default"])("fcr-member-window-excitation", {
|
|
157
|
+
'fcr-member-window-excitation-show': canShowSpeakerSpotlight && isSpeakerSpotlight
|
|
158
|
+
})
|
|
159
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
160
|
+
onClick: function onClick() {
|
|
161
|
+
return onRemovePin(windowId);
|
|
162
|
+
},
|
|
163
|
+
className: (0, _classnames["default"])("fcr-member-window-pin", {
|
|
164
|
+
'fcr-member-window-pin-show': isPin
|
|
165
|
+
}),
|
|
166
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
167
|
+
content: t('fmt_attendies_options_cancelfixed'),
|
|
168
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
169
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
170
|
+
type: _type.FcrIconType.FCR_PINPAGE2,
|
|
171
|
+
size: 26
|
|
172
|
+
})
|
|
173
|
+
})
|
|
174
|
+
})
|
|
175
|
+
}), slot]
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
var MicVolume = (0, _mobxReact.observer)(function (_ref2) {
|
|
179
|
+
var id = _ref2.id,
|
|
180
|
+
size = _ref2.size;
|
|
181
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
182
|
+
userVolumeMap = _useContext.userVolumeMap;
|
|
183
|
+
var volume = userVolumeMap.get(id || '') || 0;
|
|
184
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
185
|
+
className: "fcr-user-window-actions-volume",
|
|
186
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mic.FcrMicrophoneIndicator, {
|
|
187
|
+
defId: id,
|
|
188
|
+
size: size,
|
|
189
|
+
voicePercent: volume,
|
|
190
|
+
iconColor: "var(--fcr-volume-icon-color)"
|
|
191
|
+
})
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
var MemberWindowActions = exports.MemberWindowActions = (0, _mobxReact.observer)(function (_ref3) {
|
|
195
|
+
var windowData = _ref3.windowData,
|
|
196
|
+
iconSize = _ref3.iconSize,
|
|
197
|
+
windowSize = _ref3.windowSize,
|
|
198
|
+
openPrivateChat = _ref3.openPrivateChat,
|
|
199
|
+
localUserRole = _ref3.localUserRole,
|
|
200
|
+
sendParticipantEvent = _ref3.sendParticipantEvent,
|
|
201
|
+
muteAudio = _ref3.muteAudio,
|
|
202
|
+
hasPinnedStream = _ref3.hasPinnedStream,
|
|
203
|
+
allowedOperations = _ref3.allowedOperations,
|
|
204
|
+
_setVideoOrientation = _ref3.setVideoOrientation,
|
|
205
|
+
showActionBottomLabel = _ref3.showActionBottomLabel,
|
|
206
|
+
isShowActionAudio = _ref3.isShowActionAudio,
|
|
207
|
+
actionAudioTag = _ref3.actionAudioTag,
|
|
208
|
+
onVisibleChanged = _ref3.onVisibleChanged,
|
|
209
|
+
videoWindowCurrentWidth = _ref3.videoWindowCurrentWidth,
|
|
210
|
+
videoWindowCurrentHeight = _ref3.videoWindowCurrentHeight,
|
|
211
|
+
videoWindowPreviewType = _ref3.videoWindowPreviewType;
|
|
212
|
+
// iconsize gallery 24 normal 16
|
|
213
|
+
var _ref4 = windowData || {},
|
|
214
|
+
videoStreamId = _ref4.videoStreamId,
|
|
215
|
+
audioStreamId = _ref4.audioStreamId,
|
|
216
|
+
hasMicrophoneAudioStream = _ref4.hasMicrophoneAudioStream,
|
|
217
|
+
ownerRoleType = _ref4.ownerRoleType,
|
|
218
|
+
userName = _ref4.userName,
|
|
219
|
+
isMySelf = _ref4.isMySelf,
|
|
220
|
+
userId = _ref4.userId,
|
|
221
|
+
hasVideoStream = _ref4.hasVideoStream,
|
|
222
|
+
hasScreenSharing = _ref4.hasScreenSharing,
|
|
223
|
+
isPin = _ref4.isPin,
|
|
224
|
+
audioStreamConnectorType = _ref4.audioStreamConnectorType,
|
|
225
|
+
videoStreamConnectorType = _ref4.videoStreamConnectorType,
|
|
226
|
+
_ref4$phoneMicEnabled = _ref4.phoneMicEnabled,
|
|
227
|
+
phoneMicEnabled = _ref4$phoneMicEnabled === void 0 ? false : _ref4$phoneMicEnabled;
|
|
228
|
+
var t = (0, _i18n.useI18n)();
|
|
229
|
+
var focus = (0, _hooks.useWindowFocus)();
|
|
230
|
+
var _useState = (0, _react.useState)(false),
|
|
231
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
232
|
+
isOnlyShowVideoStream = _useState2[0],
|
|
233
|
+
setOnlyShowVideoStream = _useState2[1];
|
|
234
|
+
var _useState3 = (0, _react.useState)(false),
|
|
235
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
236
|
+
isShowDropMenu = _useState4[0],
|
|
237
|
+
setIsShowDropMenu = _useState4[1];
|
|
238
|
+
var connectorType = audioStreamConnectorType !== _type2.FcrRoomConnectorType.NONE ? audioStreamConnectorType : videoStreamConnectorType;
|
|
239
|
+
var isNormal = connectorType === _type2.FcrRoomConnectorType.NONE;
|
|
240
|
+
var isPhone = connectorType === _type2.FcrRoomConnectorType.PSTN;
|
|
241
|
+
var isMeeting = meetingConnectorTypes.has(connectorType);
|
|
242
|
+
var userType = audioStreamConnectorType === _type2.FcrRoomConnectorType.PSTN && !videoStreamId ? 'phone' : isMeeting ? 'meeting-system' : 'normal';
|
|
243
|
+
var isManager = ownerRoleType === _type2.FcrUserRole.HOST || ownerRoleType === _type2.FcrUserRole.COHOST;
|
|
244
|
+
var handleVideoWindowVisibleChange = function handleVideoWindowVisibleChange(width, height, setResizable) {
|
|
245
|
+
var videoWindowBrower = _dialogs.dialogWindows.get(_constant.DialogKey.VIDEO_WINDOW);
|
|
246
|
+
if (!videoWindowBrower) return;
|
|
247
|
+
videoWindowBrower.setBounds({
|
|
248
|
+
width: width,
|
|
249
|
+
height: height
|
|
250
|
+
});
|
|
251
|
+
if (videoWindowPreviewType === _type4.FcrVideoWindowPreviewType.SMALL && setResizable) {
|
|
252
|
+
videoWindowBrower.setResizable(true);
|
|
253
|
+
} else {
|
|
254
|
+
videoWindowBrower.setResizable(false);
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
var onVisibleChange = function onVisibleChange(visible) {
|
|
258
|
+
if (visible) {
|
|
259
|
+
handleVideoWindowVisibleChange(900, 853, false);
|
|
260
|
+
setIsShowDropMenu(visible);
|
|
261
|
+
onVisibleChanged === null || onVisibleChanged === void 0 || onVisibleChanged(visible);
|
|
262
|
+
} else {
|
|
263
|
+
setIsShowDropMenu(visible);
|
|
264
|
+
setTimeout(function () {
|
|
265
|
+
handleVideoWindowVisibleChange(videoWindowCurrentWidth, videoWindowCurrentHeight, true);
|
|
266
|
+
onVisibleChanged === null || onVisibleChanged === void 0 || onVisibleChanged(visible);
|
|
267
|
+
}, 100);
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
(0, _react.useEffect)(function () {
|
|
271
|
+
if (!isOnlyShowVideoStream && !focus) {
|
|
272
|
+
var timer = setTimeout(function () {
|
|
273
|
+
return setOnlyShowVideoStream(true);
|
|
274
|
+
}, HideControlsTimeout);
|
|
275
|
+
return function () {
|
|
276
|
+
return clearTimeout(timer);
|
|
277
|
+
};
|
|
278
|
+
} else if (focus && isOnlyShowVideoStream) {
|
|
279
|
+
setOnlyShowVideoStream(false);
|
|
280
|
+
}
|
|
281
|
+
}, [isOnlyShowVideoStream, focus]);
|
|
282
|
+
var suffixedName = userName;
|
|
283
|
+
var isMeTag = isMySelf ? t('fmt_attendies_labels_setting_mine') : '';
|
|
284
|
+
// 左下角图标内容
|
|
285
|
+
var icon = null;
|
|
286
|
+
|
|
287
|
+
// 大视窗
|
|
288
|
+
if (windowSize === 'large') {
|
|
289
|
+
// 普通麦克风接入:音量 / 红色麦克风静音
|
|
290
|
+
if (isNormal) {
|
|
291
|
+
icon = hasMicrophoneAudioStream ? /*#__PURE__*/(0, _jsxRuntime.jsx)(MicVolume, {
|
|
292
|
+
id: isMySelf ? '0' : videoStreamId || audioStreamId,
|
|
293
|
+
size: iconSize
|
|
294
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
295
|
+
content: t('fmt_popup_label_muted'),
|
|
296
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
297
|
+
className: "fcr-user-window-actions-microphone",
|
|
298
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
299
|
+
type: _type.FcrIconType.FCR_NOMUTE,
|
|
300
|
+
size: iconSize,
|
|
301
|
+
colors: {
|
|
302
|
+
iconPrimary: 'currentColor',
|
|
303
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
304
|
+
}
|
|
305
|
+
})
|
|
306
|
+
})
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
// 不纯电话、会议系统,绿色 / 白色 (主持人) 电话,电话有帧动画
|
|
310
|
+
else if (isPhone && videoStreamId !== audioStreamId) {
|
|
311
|
+
icon = hasMicrophoneAudioStream ? /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
312
|
+
className: "fcr-user-window-actions-microphone",
|
|
313
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_iconPhoneCall.FcrIconPhoneCall, {
|
|
314
|
+
size: iconSize,
|
|
315
|
+
isMuted: !phoneMicEnabled,
|
|
316
|
+
iconColors: {
|
|
317
|
+
iconPrimary: ownerRoleType === _type2.FcrUserRole.HOST ? 'var(--fcr_ui_scene_white10)' : 'var(--fcr_ui_scene_ramp_lightgreen6)'
|
|
318
|
+
}
|
|
319
|
+
})
|
|
320
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
321
|
+
content: t('fmt_popup_label_muted'),
|
|
322
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
323
|
+
className: "fcr-user-window-actions-microphone",
|
|
324
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
325
|
+
type: _type.FcrIconType.FCR_PHONECALL_SILENCE,
|
|
326
|
+
size: iconSize,
|
|
327
|
+
colors: {
|
|
328
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
329
|
+
}
|
|
330
|
+
})
|
|
331
|
+
})
|
|
332
|
+
});
|
|
333
|
+
} else if (isMeeting) {
|
|
334
|
+
icon = hasMicrophoneAudioStream ? /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
335
|
+
className: "fcr-user-window-actions-microphone",
|
|
336
|
+
style: {
|
|
337
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_purple7)'
|
|
338
|
+
},
|
|
339
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
340
|
+
type: _type.FcrIconType.FCR_SIPDEVICE,
|
|
341
|
+
size: iconSize,
|
|
342
|
+
colors: {
|
|
343
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)',
|
|
344
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
345
|
+
}
|
|
346
|
+
})
|
|
347
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
348
|
+
className: "fcr-user-window-actions-microphone",
|
|
349
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
350
|
+
type: _type.FcrIconType.FCR_PHONECALL_SILENCE,
|
|
351
|
+
size: iconSize,
|
|
352
|
+
colors: {
|
|
353
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
354
|
+
}
|
|
355
|
+
})
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
// 小视窗
|
|
361
|
+
else {
|
|
362
|
+
// 普通麦克风接入:空 / 红色麦克风静音
|
|
363
|
+
if (isNormal) {
|
|
364
|
+
icon = hasMicrophoneAudioStream ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
365
|
+
content: t('fmt_popup_label_muted'),
|
|
366
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
367
|
+
className: "fcr-user-window-actions-microphone",
|
|
368
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
369
|
+
type: _type.FcrIconType.FCR_NOMUTE,
|
|
370
|
+
size: iconSize,
|
|
371
|
+
colors: {
|
|
372
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)',
|
|
373
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
374
|
+
}
|
|
375
|
+
})
|
|
376
|
+
})
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
// 电话接入
|
|
380
|
+
else if (isPhone) {
|
|
381
|
+
// 纯电话:绿色电话 / 红色电话静音
|
|
382
|
+
if (videoStreamId === audioStreamId) {
|
|
383
|
+
icon = hasMicrophoneAudioStream ? /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
384
|
+
className: "fcr-user-window-actions-microphone",
|
|
385
|
+
style: {
|
|
386
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_lightgreen6)'
|
|
387
|
+
},
|
|
388
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
389
|
+
type: _type.FcrIconType.FCR_PHONECALL3,
|
|
390
|
+
size: iconSize,
|
|
391
|
+
colors: {
|
|
392
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
393
|
+
}
|
|
394
|
+
})
|
|
395
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
396
|
+
content: t('fmt_popup_label_muted'),
|
|
397
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
398
|
+
className: "fcr-user-window-actions-microphone",
|
|
399
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
400
|
+
type: _type.FcrIconType.FCR_PHONECALL_SILENCE,
|
|
401
|
+
size: iconSize,
|
|
402
|
+
colors: {
|
|
403
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
404
|
+
}
|
|
405
|
+
})
|
|
406
|
+
})
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
// 不纯电话:空 / 红色电话静音
|
|
410
|
+
else {
|
|
411
|
+
icon = hasMicrophoneAudioStream ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
412
|
+
content: t('fmt_popup_label_muted'),
|
|
413
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
414
|
+
className: "fcr-user-window-actions-microphone",
|
|
415
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
416
|
+
type: _type.FcrIconType.FCR_PHONECALL_SILENCE,
|
|
417
|
+
size: iconSize,
|
|
418
|
+
colors: {
|
|
419
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
420
|
+
}
|
|
421
|
+
})
|
|
422
|
+
})
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
// 会议系统接入:紫色会议 / 紫色会议 + 红色电话静音
|
|
427
|
+
else {
|
|
428
|
+
icon = hasMicrophoneAudioStream ? /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
429
|
+
className: "fcr-user-window-actions-microphone",
|
|
430
|
+
style: {
|
|
431
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_purple7)'
|
|
432
|
+
},
|
|
433
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
434
|
+
type: _type.FcrIconType.FCR_SIPDEVICE,
|
|
435
|
+
size: iconSize,
|
|
436
|
+
colors: {
|
|
437
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)',
|
|
438
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
439
|
+
}
|
|
440
|
+
})
|
|
441
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
442
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
443
|
+
className: "fcr-user-window-actions-microphone",
|
|
444
|
+
style: {
|
|
445
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_purple7)'
|
|
446
|
+
},
|
|
447
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
448
|
+
type: _type.FcrIconType.FCR_SIPDEVICE,
|
|
449
|
+
size: iconSize,
|
|
450
|
+
colors: {
|
|
451
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)',
|
|
452
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
453
|
+
}
|
|
454
|
+
})
|
|
455
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
456
|
+
content: t('fmt_popup_label_muted'),
|
|
457
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
458
|
+
className: "fcr-user-window-actions-microphone",
|
|
459
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
460
|
+
type: _type.FcrIconType.FCR_PHONECALL_SILENCE,
|
|
461
|
+
size: iconSize,
|
|
462
|
+
colors: {
|
|
463
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
464
|
+
}
|
|
465
|
+
})
|
|
466
|
+
})
|
|
467
|
+
})]
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
472
|
+
className: (0, _classnames["default"])('fcr-user-window-actions', {
|
|
473
|
+
'fcr-user-window-actions-hide': isOnlyShowVideoStream
|
|
474
|
+
}),
|
|
475
|
+
onContextMenu: function onContextMenu(e) {
|
|
476
|
+
e.preventDefault();
|
|
477
|
+
setIsShowDropMenu(true);
|
|
478
|
+
},
|
|
479
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
480
|
+
className: (0, _classnames["default"])('fcr-user-window-actions-bottom', {
|
|
481
|
+
'fcr-user-window-actions-bottom-show': showActionBottomLabel
|
|
482
|
+
}),
|
|
483
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
484
|
+
className: (0, _classnames["default"])('fcr-member-window-members-sharebtn', {
|
|
485
|
+
'fcr-member-window-members-sharebtn-show': hasScreenSharing
|
|
486
|
+
}),
|
|
487
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
488
|
+
type: _type.FcrIconType.FCR_MOBILE_SHARESCREEN,
|
|
489
|
+
size: 18
|
|
490
|
+
})
|
|
491
|
+
}), windowSize === 'large' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
492
|
+
className: (0, _classnames["default"])('fcr-user-window-actions-tag', {
|
|
493
|
+
'fcr-user-window-actions-tag-host': isManager,
|
|
494
|
+
'fcr-user-window-actions-tag-cohost': ownerRoleType === _type2.FcrUserRole.COHOST
|
|
495
|
+
}),
|
|
496
|
+
children: [icon, ownerRoleType === _type2.FcrUserRole.HOST && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
497
|
+
children: t('fmt_role_host')
|
|
498
|
+
}), ownerRoleType === _type2.FcrUserRole.COHOST && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
499
|
+
children: t('fmt_role_cohost')
|
|
500
|
+
})]
|
|
501
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
502
|
+
children: [isManager && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
503
|
+
className: (0, _classnames["default"])('fcr-user-window-actions-tag', {
|
|
504
|
+
'fcr-user-window-actions-tag-host': isManager,
|
|
505
|
+
'fcr-user-window-actions-tag-cohost': ownerRoleType === _type2.FcrUserRole.COHOST
|
|
506
|
+
}),
|
|
507
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
508
|
+
children: t(ownerRoleType === _type2.FcrUserRole.HOST ? 'fmt_role_host' : 'fmt_role_cohost')
|
|
509
|
+
})
|
|
510
|
+
}), !hasMicrophoneAudioStream ? isMeeting ? /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
511
|
+
className: "fcr-user-window-actions-microphone",
|
|
512
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
513
|
+
type: _type.FcrIconType.FCR_SIPDEVICE,
|
|
514
|
+
size: iconSize,
|
|
515
|
+
colors: {
|
|
516
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)',
|
|
517
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
518
|
+
}
|
|
519
|
+
})
|
|
520
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
521
|
+
content: t('fmt_device_label_audio_mute'),
|
|
522
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
523
|
+
className: "fcr-user-window-actions-microphone",
|
|
524
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
525
|
+
type: _type.FcrIconType.FCR_NOMUTE,
|
|
526
|
+
size: iconSize,
|
|
527
|
+
colors: {
|
|
528
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)',
|
|
529
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
530
|
+
}
|
|
531
|
+
})
|
|
532
|
+
})
|
|
533
|
+
}) : isPhone ? /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
534
|
+
className: "fcr-user-window-actions-microphone",
|
|
535
|
+
style: {
|
|
536
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_lightgreen6)'
|
|
537
|
+
},
|
|
538
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
539
|
+
type: _type.FcrIconType.FCR_PHONECALL3,
|
|
540
|
+
size: iconSize,
|
|
541
|
+
colors: {
|
|
542
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
543
|
+
}
|
|
544
|
+
})
|
|
545
|
+
}) : isMeeting ? /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
546
|
+
className: "fcr-user-window-actions-microphone",
|
|
547
|
+
style: {
|
|
548
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_purple7)'
|
|
549
|
+
},
|
|
550
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
551
|
+
type: _type.FcrIconType.FCR_SIPDEVICE,
|
|
552
|
+
size: iconSize,
|
|
553
|
+
colors: {
|
|
554
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)',
|
|
555
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
556
|
+
}
|
|
557
|
+
})
|
|
558
|
+
}) : null]
|
|
559
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
560
|
+
className: "fcr-user-window-actions-name",
|
|
561
|
+
children: suffixedName
|
|
562
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
563
|
+
className: "fcr-user-window-actions-name-isme",
|
|
564
|
+
children: isMeTag
|
|
565
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
566
|
+
className: "fcr-user-window-actions-name-doing",
|
|
567
|
+
children: [windowData.type === _type3.FcrUIWindowType.BOARD ? t('fmt_screenshare_whiteboard_tips_someonesharing', {
|
|
568
|
+
reason1: ''
|
|
569
|
+
}) : '', hasScreenSharing && windowData.type === _type3.FcrUIWindowType.VIDEO ? t('fmt_screenshare_status_sharing') : '']
|
|
570
|
+
})]
|
|
571
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
572
|
+
className: (0, _classnames["default"])('fcr-user-window-actions-top', {
|
|
573
|
+
'fcr-user-window-actions-top-active': isShowDropMenu
|
|
574
|
+
}),
|
|
575
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
576
|
+
content: t('fmt_participants_member_button_more'),
|
|
577
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
578
|
+
showArrow: true,
|
|
579
|
+
placement: "bottomLeft",
|
|
580
|
+
trigger: "click",
|
|
581
|
+
visible: isShowDropMenu,
|
|
582
|
+
onVisibleChange: onVisibleChange,
|
|
583
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_participantsMoreAction.ParticipantsMoreActions, {
|
|
584
|
+
userType: userType,
|
|
585
|
+
hasPinnedStream: hasPinnedStream,
|
|
586
|
+
audioDeviceType: isPhone ? 'phone-mic' : 'computer-mic',
|
|
587
|
+
userId: userId,
|
|
588
|
+
userRole: ownerRoleType,
|
|
589
|
+
hasVideo: hasVideoStream,
|
|
590
|
+
hasAudio: hasMicrophoneAudioStream,
|
|
591
|
+
userName: userName,
|
|
592
|
+
isPin: isPin,
|
|
593
|
+
allowedOperations: allowedOperations,
|
|
594
|
+
isMe: isMySelf,
|
|
595
|
+
onParticipantsButtonClick: function onParticipantsButtonClick(action, userId) {
|
|
596
|
+
sendParticipantEvent({
|
|
597
|
+
action: action,
|
|
598
|
+
userId: userId
|
|
599
|
+
});
|
|
600
|
+
setIsShowDropMenu(false);
|
|
601
|
+
}
|
|
602
|
+
}),
|
|
603
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
604
|
+
className: "fcr-user-window-actions-more",
|
|
605
|
+
onClick: function onClick() {
|
|
606
|
+
return setIsShowDropMenu(true);
|
|
607
|
+
},
|
|
608
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
609
|
+
type: _type.FcrIconType.FCR_MOBILE_MORE,
|
|
610
|
+
size: 20,
|
|
611
|
+
colors: {
|
|
612
|
+
iconPrimary: 'currentColor'
|
|
613
|
+
}
|
|
614
|
+
})
|
|
615
|
+
})
|
|
616
|
+
})
|
|
617
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
618
|
+
className: "fcr-user-window-actions-mute",
|
|
619
|
+
disabled: !isShowActionAudio,
|
|
620
|
+
onClick: function onClick() {
|
|
621
|
+
muteAudio(hasMicrophoneAudioStream, userId);
|
|
622
|
+
},
|
|
623
|
+
children: t(actionAudioTag)
|
|
624
|
+
})]
|
|
625
|
+
}), windowData.isMySelf && hasVideoStream && /*#__PURE__*/(0, _jsxRuntime.jsx)(_localVideoPlayer.VideoOrientation, {
|
|
626
|
+
setVideoOrientation: function setVideoOrientation() {
|
|
627
|
+
_setVideoOrientation();
|
|
628
|
+
}
|
|
629
|
+
})]
|
|
630
|
+
});
|
|
631
|
+
});
|
|
632
|
+
var MemberBoard = exports.MemberBoard = (0, _mobxReact.observer)(function (_ref5) {
|
|
633
|
+
var slot = _ref5.slot,
|
|
634
|
+
isMask = _ref5.isMask,
|
|
635
|
+
onMaskDoubleClick = _ref5.onMaskDoubleClick,
|
|
636
|
+
windowData = _ref5.windowData,
|
|
637
|
+
allowedOperations = _ref5.allowedOperations,
|
|
638
|
+
showActionBottomLabel = _ref5.showActionBottomLabel,
|
|
639
|
+
isShowActionAudio = _ref5.isShowActionAudio,
|
|
640
|
+
actionAudioTag = _ref5.actionAudioTag;
|
|
641
|
+
var _useContext2 = (0, _react.useContext)(_context.StoreContext),
|
|
642
|
+
hasPinnedStream = _useContext2.hasPinnedStream,
|
|
643
|
+
localUserRole = _useContext2.localUserRole,
|
|
644
|
+
sendParticipantEvent = _useContext2.sendParticipantEvent,
|
|
645
|
+
muteAudio = _useContext2.muteAudio,
|
|
646
|
+
hasMutePermission = _useContext2.hasMutePermission,
|
|
647
|
+
openPrivateChat = _useContext2.openPrivateChat,
|
|
648
|
+
setVideoOrientation = _useContext2.setVideoOrientation;
|
|
649
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
650
|
+
className: (0, _classnames["default"])("fcr-member-board"),
|
|
651
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
652
|
+
onDoubleClick: onMaskDoubleClick,
|
|
653
|
+
className: (0, _classnames["default"])('fcr-member-board-mask', {
|
|
654
|
+
'fcr-member-board-mask-show': isMask
|
|
655
|
+
})
|
|
656
|
+
}), isMask && /*#__PURE__*/(0, _jsxRuntime.jsx)(MemberWindowActions, {
|
|
657
|
+
isShowActionAudio: isShowActionAudio,
|
|
658
|
+
actionAudioTag: actionAudioTag,
|
|
659
|
+
showActionBottomLabel: showActionBottomLabel,
|
|
660
|
+
allowedOperations: allowedOperations,
|
|
661
|
+
setVideoOrientation: setVideoOrientation,
|
|
662
|
+
hasPinnedStream: hasPinnedStream,
|
|
663
|
+
localUserRole: localUserRole,
|
|
664
|
+
sendParticipantEvent: sendParticipantEvent,
|
|
665
|
+
muteAudio: muteAudio,
|
|
666
|
+
openPrivateChat: openPrivateChat,
|
|
667
|
+
windowSize: "large",
|
|
668
|
+
windowData: windowData,
|
|
669
|
+
iconSize: 24
|
|
670
|
+
}), slot]
|
|
671
|
+
});
|
|
672
|
+
});
|
|
673
|
+
var FcrUIVideoPlayer = exports.FcrUIVideoPlayer = function FcrUIVideoPlayer(props) {
|
|
674
|
+
var isLocal = props.isLocal,
|
|
675
|
+
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
676
|
+
return isLocal ? /*#__PURE__*/(0, _jsxRuntime.jsx)(FcrUILocalVideoPlayer, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(FcrUIRemoteVideoPlayer, _objectSpread({}, others));
|
|
677
|
+
};
|
|
678
|
+
var FcrUILocalVideoPlayer = exports.FcrUILocalVideoPlayer = (0, _mobxReact.observer)(function () {
|
|
679
|
+
var divRef = (0, _react.useRef)(null);
|
|
680
|
+
var context = (0, _react.useContext)(_videoTrackRenderContext.FcrVideoTrackRenderContext);
|
|
681
|
+
var _ref6 = context.deviceStore || {},
|
|
682
|
+
cameraEnabled = _ref6.cameraEnabled,
|
|
683
|
+
cameraId = _ref6.cameraId,
|
|
684
|
+
startPlayLocalVideo = _ref6.startPlayLocalVideo,
|
|
685
|
+
stopPlayLocalVideo = _ref6.stopPlayLocalVideo;
|
|
686
|
+
(0, _react.useEffect)(function () {
|
|
687
|
+
var dom = divRef.current;
|
|
688
|
+
if (dom) {
|
|
689
|
+
if (cameraEnabled) {
|
|
690
|
+
startPlayLocalVideo === null || startPlayLocalVideo === void 0 || startPlayLocalVideo(dom);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
return function () {
|
|
694
|
+
dom && (stopPlayLocalVideo === null || stopPlayLocalVideo === void 0 ? void 0 : stopPlayLocalVideo(dom));
|
|
695
|
+
};
|
|
696
|
+
}, [cameraEnabled, cameraId, startPlayLocalVideo, stopPlayLocalVideo]);
|
|
697
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
698
|
+
className: "fcr-member-window-body",
|
|
699
|
+
ref: divRef
|
|
700
|
+
});
|
|
701
|
+
});
|
|
702
|
+
var FcrUIRemoteVideoPlayer = exports.FcrUIRemoteVideoPlayer = (0, _mobxReact.observer)(function (_ref7) {
|
|
703
|
+
var streamId = _ref7.streamId,
|
|
704
|
+
hasVideoStream = _ref7.hasVideoStream,
|
|
705
|
+
videoStreamType = _ref7.videoStreamType,
|
|
706
|
+
renderMode = _ref7.renderMode;
|
|
707
|
+
var divRef = (0, _react.useRef)(null);
|
|
708
|
+
var context = (0, _react.useContext)(_videoTrackRenderContext.FcrVideoTrackRenderContext);
|
|
709
|
+
var _ref8 = context.streamControl || {},
|
|
710
|
+
startRenderRemoteVideoStream = _ref8.startRenderRemoteVideoStream,
|
|
711
|
+
stopRenderRemoteVideoStream = _ref8.stopRenderRemoteVideoStream;
|
|
712
|
+
(0, _react.useEffect)(function () {
|
|
713
|
+
var dom = divRef.current;
|
|
714
|
+
if (dom) {
|
|
715
|
+
if (hasVideoStream) {
|
|
716
|
+
startRenderRemoteVideoStream === null || startRenderRemoteVideoStream === void 0 || startRenderRemoteVideoStream(streamId, videoStreamType, {
|
|
717
|
+
renderMode: renderMode,
|
|
718
|
+
isMirror: false
|
|
719
|
+
}, dom);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
return function () {
|
|
723
|
+
dom && (stopRenderRemoteVideoStream === null || stopRenderRemoteVideoStream === void 0 ? void 0 : stopRenderRemoteVideoStream(streamId, dom));
|
|
724
|
+
};
|
|
725
|
+
}, [hasVideoStream, streamId, videoStreamType, renderMode, startRenderRemoteVideoStream, stopRenderRemoteVideoStream]);
|
|
726
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
727
|
+
className: "fcr-member-window-body",
|
|
728
|
+
ref: divRef
|
|
729
|
+
});
|
|
730
|
+
});
|