fcr-ui-scene 1.0.40 → 3.1.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 +12 -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/device-streams-store.d.ts +34 -0
- package/lib/common/device-streams-store.js +403 -0
- package/lib/common/event-store.d.ts +117 -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/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/participant/context.d.ts +3 -0
- package/lib/fragments/participant/context.js +9 -0
- package/lib/fragments/participant/index.css +20 -0
- package/lib/fragments/participant/index.d.ts +9 -0
- package/lib/fragments/participant/index.js +90 -0
- package/lib/fragments/participant/room-control-drop-menu/index.css +19 -0
- package/lib/fragments/participant/room-control-drop-menu/index.d.ts +2 -0
- package/lib/fragments/participant/room-control-drop-menu/index.js +134 -0
- package/lib/fragments/participant/store.d.ts +34 -0
- package/lib/fragments/participant/store.js +326 -0
- package/lib/fragments/participant/view.d.ts +2 -0
- package/lib/fragments/participant/view.js +86 -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 +35 -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/state-bar/index.d.ts +9 -0
- package/lib/fragments/state-bar/index.js +68 -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.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/fragments/type.d.ts +2 -0
- package/lib/fragments/type.js +6 -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 +7 -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 +6 -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 +8 -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 +12 -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 +1 -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/computer/menu.d.ts +0 -0
- package/lib/modules/connection-gateway/components/computer/menu.js +1 -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 +1 -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 +12 -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 +11 -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/device-settings/audio-settings/audio-settings.d.ts +4 -0
- package/lib/modules/device-settings/audio-settings/audio-settings.js +297 -0
- package/lib/modules/device-settings/audio-settings/index.css +139 -0
- package/lib/modules/device-settings/audio-settings/microphone-detection.d.ts +2 -0
- package/lib/modules/device-settings/audio-settings/microphone-detection.js +68 -0
- package/lib/modules/device-settings/audio-settings/speaker-detection.d.ts +2 -0
- package/lib/modules/device-settings/audio-settings/speaker-detection.js +72 -0
- package/lib/{fcr-ui-scene/src/containers/stream-window/index.d.ts → modules/device-settings/common/advance-link.d.ts} +1 -1
- package/lib/modules/device-settings/common/advance-link.js +27 -0
- package/lib/modules/device-settings/common/index.css +26 -0
- package/lib/modules/device-settings/common/useNamespace.d.ts +15 -0
- package/lib/modules/device-settings/common/useNamespace.js +66 -0
- package/lib/modules/device-settings/context.d.ts +3 -0
- package/lib/modules/device-settings/context.js +9 -0
- package/lib/modules/device-settings/dialog-wrapper.d.ts +2 -0
- package/lib/modules/device-settings/dialog-wrapper.js +110 -0
- package/lib/modules/device-settings/general-settings/general-settings.d.ts +4 -0
- package/lib/modules/device-settings/general-settings/general-settings.js +66 -0
- package/lib/modules/device-settings/general-settings/index.css +26 -0
- package/lib/modules/device-settings/index.css +109 -0
- package/lib/modules/device-settings/index.d.ts +21 -0
- package/lib/modules/device-settings/index.dev.d.ts +1 -0
- package/lib/modules/device-settings/index.dev.js +112 -0
- package/lib/modules/device-settings/index.js +84 -0
- package/lib/modules/device-settings/state/index.css +211 -0
- package/lib/modules/device-settings/state/index.d.ts +4 -0
- package/lib/modules/device-settings/state/index.js +330 -0
- package/lib/modules/device-settings/storage-settings/index.css +91 -0
- package/lib/modules/device-settings/storage-settings/storage-settings.d.ts +3 -0
- package/lib/modules/device-settings/storage-settings/storage-settings.js +84 -0
- package/lib/modules/device-settings/store.d.ts +205 -0
- package/lib/modules/device-settings/store.js +1035 -0
- package/lib/modules/device-settings/video-settings/camera-select.d.ts +2 -0
- package/lib/modules/device-settings/video-settings/camera-select.js +51 -0
- package/lib/modules/device-settings/video-settings/index.css +327 -0
- package/lib/modules/device-settings/video-settings/local-video-player.d.ts +3 -0
- package/lib/modules/device-settings/video-settings/local-video-player.js +37 -0
- package/lib/modules/device-settings/video-settings/mirror-toggle.d.ts +2 -0
- package/lib/modules/device-settings/video-settings/mirror-toggle.js +62 -0
- package/lib/modules/device-settings/video-settings/video-settings-basic.d.ts +9 -0
- package/lib/modules/device-settings/video-settings/video-settings-basic.js +177 -0
- package/lib/modules/device-settings/video-settings/video-settings.d.ts +6 -0
- package/lib/modules/device-settings/video-settings/video-settings.js +185 -0
- package/lib/modules/device-settings/view.d.ts +10 -0
- package/lib/modules/device-settings/view.js +193 -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 +1 -0
- package/lib/modules/invite/voip-invite.js +294 -0
- package/lib/modules/layout/components/Aside.d.ts +6 -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/UserWindow.d.ts +8 -0
- package/lib/modules/layout/components/UserWindow.js +513 -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/hooks.d.ts +14 -0
- package/lib/modules/layout/hooks.js +48 -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 +66 -0
- package/lib/modules/layout/member-window/index.js +730 -0
- package/lib/modules/layout/store.d.ts +176 -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/modules/setting/common/advance-link.d.ts +3 -0
- 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/context.d.ts +3 -0
- package/lib/modules/share-screen/context.js +9 -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/i18n/config.d.ts +1 -0
- package/lib/modules/whiteboard/i18n/config.js +15 -0
- package/lib/modules/whiteboard/i18n/en/index.d.ts +32 -0
- package/lib/modules/whiteboard/i18n/en/index.js +38 -0
- package/lib/modules/whiteboard/i18n/zh/index.d.ts +32 -0
- package/lib/modules/whiteboard/i18n/zh/index.js +38 -0
- package/lib/modules/whiteboard/index.d.ts +114 -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 +70 -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/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 +59 -84
- 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 → fragments/toolbar/components/extension-toolbar-item.d.ts} +0 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.MinAsideWidth = exports.Layout = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
var _mobxReact = require("mobx-react");
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
14
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
15
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
16
|
+
var _hooks = require("../../../utilities/hooks");
|
|
17
|
+
var _context = require("../context");
|
|
18
|
+
var _type2 = require("../type");
|
|
19
|
+
var _Aside = require("./Aside");
|
|
20
|
+
var _Carousel = require("./Carousel");
|
|
21
|
+
var _Gallery = require("./Gallery");
|
|
22
|
+
var _utils = require("./utils");
|
|
23
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
|
+
var MinAsideWidth = exports.MinAsideWidth = 320;
|
|
25
|
+
var MaxAsideWidth = 460; // 20240620 设计同步
|
|
26
|
+
var AsideOverflow = 100;
|
|
27
|
+
var Layout = exports.Layout = (0, _mobxReact.observer)(function () {
|
|
28
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
29
|
+
stateBar = _useContext.stateBar,
|
|
30
|
+
actionBar = _useContext.actionBar,
|
|
31
|
+
layers = _useContext.layers,
|
|
32
|
+
layout = _useContext.layout,
|
|
33
|
+
aside = _useContext.aside,
|
|
34
|
+
barHovering = _useContext.barHovering,
|
|
35
|
+
setHoveringHandler = _useContext.setHoveringHandler,
|
|
36
|
+
resetLockTimer = _useContext.resetLockTimer,
|
|
37
|
+
setHoveringLeaveHandler = _useContext.setHoveringLeaveHandler,
|
|
38
|
+
asideWidth = _useContext.asideWidth,
|
|
39
|
+
chatAction = _useContext.chatAction,
|
|
40
|
+
barHidden = _useContext.barHidden,
|
|
41
|
+
isRobot = _useContext.isRobot;
|
|
42
|
+
var _useDelayedMeasure = (0, _hooks.useDelayedMeasure)(),
|
|
43
|
+
_useDelayedMeasure2 = (0, _slicedToArray2["default"])(_useDelayedMeasure, 2),
|
|
44
|
+
ref = _useDelayedMeasure2[0],
|
|
45
|
+
bounds = _useDelayedMeasure2[1];
|
|
46
|
+
var onDragHandler = (0, _react.useCallback)(function (event) {
|
|
47
|
+
event.preventDefault();
|
|
48
|
+
var handler = event.currentTarget;
|
|
49
|
+
handler.setPointerCapture(event.pointerId);
|
|
50
|
+
var startX = event.clientX;
|
|
51
|
+
var startWidth = aside ? asideWidth : 0;
|
|
52
|
+
var onPointerMove = function onPointerMove(event) {
|
|
53
|
+
var delta = event.clientX - startX;
|
|
54
|
+
var target = startWidth - delta;
|
|
55
|
+
var clamped = (0, _utils.clamp)(target, MinAsideWidth, MaxAsideWidth);
|
|
56
|
+
if (target > AsideOverflow) {
|
|
57
|
+
// setAsideWidth(() => {
|
|
58
|
+
// // storage.set(ASIDE_WIDTH, String(clamped));
|
|
59
|
+
// asideWidthChanged(clamped);
|
|
60
|
+
// !aside && toggleAside(true);
|
|
61
|
+
// return clamped;
|
|
62
|
+
// });
|
|
63
|
+
// setAsideWidth(clamped);
|
|
64
|
+
} else {
|
|
65
|
+
// aside && toggleAside(false);
|
|
66
|
+
// asideWidthChanged(0);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
var onPointerUp = function onPointerUp() {
|
|
70
|
+
handler.onpointermove = handler.onpointerup = handler.onpointercancel = null;
|
|
71
|
+
};
|
|
72
|
+
handler.onpointermove = onPointerMove;
|
|
73
|
+
handler.onpointerup = handler.onpointercancel = onPointerUp;
|
|
74
|
+
}, [aside, bounds.width, asideWidth]);
|
|
75
|
+
var cls = (0, _classnames["default"])('fcr-layout-content-bar fcr-layout-content-bottom', {
|
|
76
|
+
'fcr-layout-content-bar--hidden': barHidden
|
|
77
|
+
});
|
|
78
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
79
|
+
className: (0, _classnames["default"])('fcr-layout', "fcr-layout-".concat(layout), {
|
|
80
|
+
'fcr-layout-hovering': barHovering
|
|
81
|
+
}),
|
|
82
|
+
onMouseEnter: setHoveringHandler,
|
|
83
|
+
onMouseLeave: setHoveringLeaveHandler,
|
|
84
|
+
onMouseMove: setHoveringHandler,
|
|
85
|
+
ref: ref,
|
|
86
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
87
|
+
className: "fcr-layout-content",
|
|
88
|
+
style: {
|
|
89
|
+
width: bounds.width - asideWidth
|
|
90
|
+
},
|
|
91
|
+
children: [!isRobot && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
92
|
+
className: "fcr-layout-content-bar fcr-layout-content-top",
|
|
93
|
+
onMouseEnter: resetLockTimer,
|
|
94
|
+
onMouseLeave: setHoveringHandler,
|
|
95
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
96
|
+
className: "fcr-layout-content-bar-body",
|
|
97
|
+
children: stateBar
|
|
98
|
+
})
|
|
99
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Carousel.Carousel, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CarouselExpandButton, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(WhoIsSpeaking, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Gallery.Gallery, {}), !isRobot && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
100
|
+
className: cls,
|
|
101
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
102
|
+
className: "fcr-layout-content-bar-body",
|
|
103
|
+
onMouseEnter: resetLockTimer,
|
|
104
|
+
onMouseLeave: setHoveringHandler,
|
|
105
|
+
children: actionBar
|
|
106
|
+
})
|
|
107
|
+
})]
|
|
108
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Aside.Aside, {
|
|
109
|
+
width: aside ? asideWidth : 0,
|
|
110
|
+
onDragHandler: onDragHandler,
|
|
111
|
+
chatAction: chatAction
|
|
112
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
113
|
+
className: "fcr-layer",
|
|
114
|
+
children: layers
|
|
115
|
+
})]
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
var CarouselExpandButton = (0, _mobxReact.observer)(function () {
|
|
119
|
+
var _useContext2 = (0, _react.useContext)(_context.StoreContext),
|
|
120
|
+
collapsed = _useContext2.collapsed,
|
|
121
|
+
toggleCollapsed = _useContext2.toggleCollapsed;
|
|
122
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
123
|
+
className: (0, _classnames["default"])('fcr-layout-content-expand', {
|
|
124
|
+
'fcr-layout-content-collapsed': collapsed
|
|
125
|
+
}),
|
|
126
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
127
|
+
className: "fcr-layout-content-expand-btn",
|
|
128
|
+
onClick: function onClick() {
|
|
129
|
+
return toggleCollapsed();
|
|
130
|
+
},
|
|
131
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
132
|
+
type: _type.FcrIconType.FCR_UP2,
|
|
133
|
+
size: 48,
|
|
134
|
+
colors: {
|
|
135
|
+
iconPrimary: 'currentColor'
|
|
136
|
+
}
|
|
137
|
+
})
|
|
138
|
+
})
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
var WhoIsSpeaking = (0, _mobxReact.observer)(function () {
|
|
142
|
+
var t = (0, _i18n.useI18n)();
|
|
143
|
+
var _useContext3 = (0, _react.useContext)(_context.StoreContext),
|
|
144
|
+
layout = _useContext3.layout,
|
|
145
|
+
collapsed = _useContext3.collapsed,
|
|
146
|
+
findSpotlightUser = _useContext3.findSpotlightUser;
|
|
147
|
+
var userName = findSpotlightUser === null || findSpotlightUser === void 0 ? void 0 : findSpotlightUser.userName;
|
|
148
|
+
var active = userName && layout === _type2.FcrUIVideoWindowLayoutType.Speaker && collapsed;
|
|
149
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
150
|
+
className: (0, _classnames["default"])('fcr-layout-speaking', {
|
|
151
|
+
'fcr-layout-speaking-active': active
|
|
152
|
+
}),
|
|
153
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
154
|
+
className: "fcr-layout-speaking-content",
|
|
155
|
+
children: t('fmt_modules_status_nowspeaking', {
|
|
156
|
+
reason1: userName
|
|
157
|
+
})
|
|
158
|
+
})
|
|
159
|
+
});
|
|
160
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LayoutType } from '../type';
|
|
2
|
+
export interface UserWindowProps {
|
|
3
|
+
id: string;
|
|
4
|
+
type: LayoutType;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const UserWindow: ({ type, id, width, height }: UserWindowProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.UserWindow = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
require("core-js/modules/es.array.iterator.js");
|
|
11
|
+
require("core-js/modules/es.object.to-string.js");
|
|
12
|
+
require("core-js/modules/es.set.js");
|
|
13
|
+
require("core-js/modules/es.string.iterator.js");
|
|
14
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
15
|
+
require("core-js/modules/web.timers.js");
|
|
16
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
+
var _mobxReact = require("mobx-react");
|
|
18
|
+
var _react = require("react");
|
|
19
|
+
var _mic = require("agora-ui-foundation/lib/components/icon/mic");
|
|
20
|
+
var _avatar = require("agora-ui-foundation/lib/components/avatar");
|
|
21
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
22
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
23
|
+
var _popover = require("agora-ui-foundation/lib/components/popover");
|
|
24
|
+
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
25
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
26
|
+
var _type2 = require("agora-edu-core/lib/type");
|
|
27
|
+
var _hooks = require("../../../utilities/hooks");
|
|
28
|
+
var _participantsMoreAction = require("../../participant/attendee/participants-more-action");
|
|
29
|
+
var _context = require("../context");
|
|
30
|
+
var _type3 = require("../type");
|
|
31
|
+
var _utils = require("./utils");
|
|
32
|
+
var _type4 = require("../../../type");
|
|
33
|
+
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
34
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
35
|
+
var MinAvatarSize = 53;
|
|
36
|
+
var MaxAvatarSize = 175;
|
|
37
|
+
var AvatarSizeRatio = 0.2445;
|
|
38
|
+
var AvatarTextSizeRatio = 0.32;
|
|
39
|
+
var HideControlsTimeout = 3000;
|
|
40
|
+
var meetingConnectorTypes = new Set([_type2.FcrRoomConnectorType.SIP, _type2.FcrRoomConnectorType.H323]);
|
|
41
|
+
var UserWindow = exports.UserWindow = (0, _mobxReact.observer)(function (_ref) {
|
|
42
|
+
var type = _ref.type,
|
|
43
|
+
id = _ref.id,
|
|
44
|
+
width = _ref.width,
|
|
45
|
+
height = _ref.height;
|
|
46
|
+
var isGallery = type === _type3.LayoutType.Gallery;
|
|
47
|
+
var t = (0, _i18n.useI18n)();
|
|
48
|
+
var store = (0, _react.useContext)(_context.StoreContext);
|
|
49
|
+
var style = (0, _react.useMemo)(function () {
|
|
50
|
+
return {
|
|
51
|
+
width: width,
|
|
52
|
+
height: height
|
|
53
|
+
};
|
|
54
|
+
}, [width, height]);
|
|
55
|
+
var stream = store.streams.get(id);
|
|
56
|
+
var divRef = (0, _react.useRef)(null);
|
|
57
|
+
var onDoubleClick = (0, _react.useCallback)(function () {
|
|
58
|
+
return store.swapMainSpeaker(id);
|
|
59
|
+
}, [id]);
|
|
60
|
+
(0, _react.useEffect)(function () {
|
|
61
|
+
if (stream) {
|
|
62
|
+
store.ref(stream, type, divRef.current);
|
|
63
|
+
return function () {
|
|
64
|
+
store.ref(stream, type, null);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}, [stream === null || stream === void 0 ? void 0 : stream.videoStreamId]);
|
|
68
|
+
if (!stream) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
var _stream$videoStreamId = stream.videoStreamId,
|
|
72
|
+
videoStreamId = _stream$videoStreamId === void 0 ? '' : _stream$videoStreamId,
|
|
73
|
+
_stream$audioStreamId = stream.audioStreamId,
|
|
74
|
+
audioStreamId = _stream$audioStreamId === void 0 ? '' : _stream$audioStreamId,
|
|
75
|
+
_stream$userId = stream.userId,
|
|
76
|
+
userId = _stream$userId === void 0 ? '' : _stream$userId,
|
|
77
|
+
_stream$hasMicrophone = stream.hasMicrophoneAudioStream,
|
|
78
|
+
hasMicrophoneAudioStream = _stream$hasMicrophone === void 0 ? false : _stream$hasMicrophone,
|
|
79
|
+
isMyself = stream.isMyself,
|
|
80
|
+
_stream$userName = stream.userName,
|
|
81
|
+
userName = _stream$userName === void 0 ? '' : _stream$userName,
|
|
82
|
+
isBroken = stream.isBroken,
|
|
83
|
+
_stream$audioStreamCo = stream.audioStreamConnectorType,
|
|
84
|
+
audioStreamConnectorType = _stream$audioStreamCo === void 0 ? _type2.FcrRoomConnectorType.NONE : _stream$audioStreamCo;
|
|
85
|
+
var isNormal = audioStreamConnectorType === _type2.FcrRoomConnectorType.NONE;
|
|
86
|
+
var isPhone = audioStreamConnectorType === _type2.FcrRoomConnectorType.PSTN;
|
|
87
|
+
var isMeeting = meetingConnectorTypes.has(audioStreamConnectorType);
|
|
88
|
+
var suffixedName = userName + (isMyself ? t('is_myself') : '');
|
|
89
|
+
var avatarSize = (0, _utils.clamp)(Math.min(width, height) * AvatarSizeRatio, MinAvatarSize, MaxAvatarSize);
|
|
90
|
+
var avatarTextSize = avatarSize * AvatarTextSizeRatio;
|
|
91
|
+
var avatar = isGallery ?
|
|
92
|
+
// 纯电话,显示绿色电话头像
|
|
93
|
+
isPhone && videoStreamId === audioStreamId ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
94
|
+
nickName: userName,
|
|
95
|
+
size: avatarSize,
|
|
96
|
+
textSize: avatarTextSize,
|
|
97
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
98
|
+
type: hasMicrophoneAudioStream ? _type.FcrIconType.FCR_PHONECALL3 : _type.FcrIconType.FCR_PHONECALL1,
|
|
99
|
+
colors: {
|
|
100
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
101
|
+
}
|
|
102
|
+
}),
|
|
103
|
+
backgroundColor: hasMicrophoneAudioStream ? 'var(--fcr_ui_scene_ramp_lightgreen6)' : 'var(--fcr_ui_scene_btn3)'
|
|
104
|
+
}) : isMeeting ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
105
|
+
nickName: userName,
|
|
106
|
+
size: avatarSize,
|
|
107
|
+
textSize: avatarTextSize,
|
|
108
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
109
|
+
type: _type.FcrIconType.FCR_SIPDEVICE,
|
|
110
|
+
colors: {
|
|
111
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)',
|
|
112
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
113
|
+
}
|
|
114
|
+
}),
|
|
115
|
+
backgroundColor: hasMicrophoneAudioStream ? 'var(--fcr_ui_scene_ramp_purple7)' : 'var(--fcr_ui_scene_btn3)'
|
|
116
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
117
|
+
nickName: userName,
|
|
118
|
+
size: avatarSize,
|
|
119
|
+
textSize: avatarTextSize
|
|
120
|
+
}) : suffixedName;
|
|
121
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
122
|
+
className: (0, _classnames["default"])("fcr-user-window fcr-user-window-".concat(type), {
|
|
123
|
+
'fcr-user-window-myself': isMyself,
|
|
124
|
+
'fcr-user-window-has-audio': hasMicrophoneAudioStream
|
|
125
|
+
}),
|
|
126
|
+
style: style,
|
|
127
|
+
"data-user-id": userId,
|
|
128
|
+
"data-stream-id": videoStreamId,
|
|
129
|
+
"data-user-name": userName,
|
|
130
|
+
onDoubleClick: onDoubleClick,
|
|
131
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
132
|
+
className: (0, _classnames["default"])('fcr-user-window-background', {
|
|
133
|
+
'fcr-user-window-is-broken': isBroken
|
|
134
|
+
}),
|
|
135
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
136
|
+
type: _type.FcrIconType.FCR_CAMERA_WINDOW_NOTWORK,
|
|
137
|
+
size: 80,
|
|
138
|
+
colors: {
|
|
139
|
+
iconPrimary: 'currentColor'
|
|
140
|
+
}
|
|
141
|
+
})
|
|
142
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
143
|
+
className: "fcr-user-window-avatar",
|
|
144
|
+
children: avatar
|
|
145
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
146
|
+
className: "fcr-user-window-body",
|
|
147
|
+
"data-layout": type,
|
|
148
|
+
ref: divRef
|
|
149
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(UserWindowActions, {
|
|
150
|
+
type: type,
|
|
151
|
+
id: id
|
|
152
|
+
})]
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
var MicVolume = /*#__PURE__*/(0, _react.memo)(function (_ref2) {
|
|
156
|
+
var id = _ref2.id,
|
|
157
|
+
size = _ref2.size,
|
|
158
|
+
volume = _ref2.volume;
|
|
159
|
+
// console.log('[layout] volume =', volume);
|
|
160
|
+
|
|
161
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
162
|
+
className: "fcr-user-window-actions-volume",
|
|
163
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mic.FcrMicrophoneIndicator, {
|
|
164
|
+
defId: id,
|
|
165
|
+
size: size,
|
|
166
|
+
voicePercent: volume,
|
|
167
|
+
iconColor: "var(--fcr-volume-icon-color)"
|
|
168
|
+
})
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
var UserWindowActions = (0, _mobxReact.observer)(function (_ref3) {
|
|
172
|
+
var type = _ref3.type,
|
|
173
|
+
id = _ref3.id;
|
|
174
|
+
var isGallery = type === _type3.LayoutType.Gallery;
|
|
175
|
+
var size = isGallery ? 24 : 16;
|
|
176
|
+
var t = (0, _i18n.useI18n)();
|
|
177
|
+
var store = (0, _react.useContext)(_context.StoreContext);
|
|
178
|
+
var focus = (0, _hooks.useWindowFocus)();
|
|
179
|
+
var _useState = (0, _react.useState)(false),
|
|
180
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
181
|
+
isOnlyShowVideoStream = _useState2[0],
|
|
182
|
+
setOnlyShowVideoStream = _useState2[1];
|
|
183
|
+
var _useState3 = (0, _react.useState)(false),
|
|
184
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
185
|
+
isShowDropMenu = _useState4[0],
|
|
186
|
+
setIsShowDropMenu = _useState4[1];
|
|
187
|
+
var _useState5 = (0, _react.useState)(0),
|
|
188
|
+
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
189
|
+
phoneCallFrame = _useState6[0],
|
|
190
|
+
setPhoneCallFrame = _useState6[1];
|
|
191
|
+
var stream = store.streams.get(id);
|
|
192
|
+
var _ref4 = stream || {},
|
|
193
|
+
_ref4$audioStreamId = _ref4.audioStreamId,
|
|
194
|
+
audioStreamId = _ref4$audioStreamId === void 0 ? '' : _ref4$audioStreamId,
|
|
195
|
+
_ref4$videoStreamId = _ref4.videoStreamId,
|
|
196
|
+
videoStreamId = _ref4$videoStreamId === void 0 ? '' : _ref4$videoStreamId,
|
|
197
|
+
_ref4$userId = _ref4.userId,
|
|
198
|
+
userId = _ref4$userId === void 0 ? '' : _ref4$userId,
|
|
199
|
+
isHost = _ref4.isHost,
|
|
200
|
+
_ref4$hasMicrophoneAu = _ref4.hasMicrophoneAudioStream,
|
|
201
|
+
hasMicrophoneAudioStream = _ref4$hasMicrophoneAu === void 0 ? false : _ref4$hasMicrophoneAu,
|
|
202
|
+
_ref4$hasVideoStream = _ref4.hasVideoStream,
|
|
203
|
+
hasVideoStream = _ref4$hasVideoStream === void 0 ? false : _ref4$hasVideoStream,
|
|
204
|
+
isMyself = _ref4.isMyself,
|
|
205
|
+
_ref4$userName = _ref4.userName,
|
|
206
|
+
userName = _ref4$userName === void 0 ? '' : _ref4$userName,
|
|
207
|
+
canOperateAudioPublishPrivilege = _ref4.canOperateAudioPublishPrivilege,
|
|
208
|
+
_ref4$volume = _ref4.volume,
|
|
209
|
+
volume = _ref4$volume === void 0 ? 0 : _ref4$volume,
|
|
210
|
+
_ref4$audioStreamConn = _ref4.audioStreamConnectorType,
|
|
211
|
+
audioStreamConnectorType = _ref4$audioStreamConn === void 0 ? _type2.FcrRoomConnectorType.NONE : _ref4$audioStreamConn,
|
|
212
|
+
userRole = _ref4.userRole;
|
|
213
|
+
var isNormal = audioStreamConnectorType === _type2.FcrRoomConnectorType.NONE;
|
|
214
|
+
var isPhone = audioStreamConnectorType === _type2.FcrRoomConnectorType.PSTN;
|
|
215
|
+
var isMeeting = meetingConnectorTypes.has(audioStreamConnectorType);
|
|
216
|
+
(0, _react.useEffect)(function () {
|
|
217
|
+
if ((isPhone && videoStreamId !== audioStreamId || isMeeting) && hasMicrophoneAudioStream) {
|
|
218
|
+
// 假设有 0 1 2 三帧,[0, 1, 2, 1, 0] 共花费 1 秒,帧间隔为 0.25 秒
|
|
219
|
+
var timer = setInterval(function () {
|
|
220
|
+
return setPhoneCallFrame(function (frame) {
|
|
221
|
+
return (frame + 1) % 4;
|
|
222
|
+
});
|
|
223
|
+
}, 250);
|
|
224
|
+
return function () {
|
|
225
|
+
return clearInterval(timer);
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
}, [isPhone, isMeeting, videoStreamId, audioStreamId, hasMicrophoneAudioStream]);
|
|
229
|
+
var isManager = isHost || userRole === _type4.FcrUserRole.COHOST;
|
|
230
|
+
(0, _react.useEffect)(function () {
|
|
231
|
+
if (!isOnlyShowVideoStream && !focus) {
|
|
232
|
+
var timer = setTimeout(function () {
|
|
233
|
+
return setOnlyShowVideoStream(true);
|
|
234
|
+
}, HideControlsTimeout);
|
|
235
|
+
return function () {
|
|
236
|
+
return clearTimeout(timer);
|
|
237
|
+
};
|
|
238
|
+
} else if (focus && isOnlyShowVideoStream) {
|
|
239
|
+
setOnlyShowVideoStream(false);
|
|
240
|
+
}
|
|
241
|
+
}, [isOnlyShowVideoStream, focus]);
|
|
242
|
+
var suffixedName = userName + (isMyself ? t('is_myself') : '');
|
|
243
|
+
|
|
244
|
+
// 左下角图标内容
|
|
245
|
+
var icon = null;
|
|
246
|
+
|
|
247
|
+
// 大视窗
|
|
248
|
+
if (isGallery) {
|
|
249
|
+
// 普通麦克风接入:音量 / 红色麦克风静音
|
|
250
|
+
if (isNormal) {
|
|
251
|
+
icon = hasMicrophoneAudioStream ? /*#__PURE__*/(0, _jsxRuntime.jsx)(MicVolume, {
|
|
252
|
+
id: audioStreamId,
|
|
253
|
+
size: size,
|
|
254
|
+
volume: volume
|
|
255
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
256
|
+
content: t('muted'),
|
|
257
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
258
|
+
className: "fcr-user-window-actions-microphone",
|
|
259
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
260
|
+
type: _type.FcrIconType.FCR_NOMUTE,
|
|
261
|
+
size: size,
|
|
262
|
+
colors: {
|
|
263
|
+
iconPrimary: 'currentColor',
|
|
264
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
265
|
+
}
|
|
266
|
+
})
|
|
267
|
+
})
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
// 不纯电话、会议系统,绿色 / 白色 (主持人) 电话,电话有帧动画
|
|
271
|
+
else if (isPhone && videoStreamId !== audioStreamId || isMeeting) {
|
|
272
|
+
icon = hasMicrophoneAudioStream ? /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
273
|
+
className: "fcr-user-window-actions-microphone",
|
|
274
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
275
|
+
type: phoneCallFrame === 0 ? _type.FcrIconType.FCR_PHONECALL1 : phoneCallFrame === 2 ? _type.FcrIconType.FCR_PHONECALL3 : _type.FcrIconType.FCR_PHONECALL2,
|
|
276
|
+
size: size,
|
|
277
|
+
colors: {
|
|
278
|
+
iconPrimary: isHost ? 'var(--fcr_ui_scene_white10)' : 'var(--fcr_ui_scene_ramp_lightgreen6)'
|
|
279
|
+
}
|
|
280
|
+
})
|
|
281
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
282
|
+
content: t('muted'),
|
|
283
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
284
|
+
className: "fcr-user-window-actions-microphone",
|
|
285
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
286
|
+
type: _type.FcrIconType.FCR_PHONECALL_SILENCE,
|
|
287
|
+
size: size,
|
|
288
|
+
colors: {
|
|
289
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
290
|
+
}
|
|
291
|
+
})
|
|
292
|
+
})
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// 小视窗
|
|
298
|
+
else {
|
|
299
|
+
// 普通麦克风接入:空 / 红色麦克风静音
|
|
300
|
+
if (isNormal) {
|
|
301
|
+
icon = hasMicrophoneAudioStream ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
302
|
+
content: t('muted'),
|
|
303
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
304
|
+
className: "fcr-user-window-actions-microphone",
|
|
305
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
306
|
+
type: _type.FcrIconType.FCR_NOMUTE,
|
|
307
|
+
size: size,
|
|
308
|
+
colors: {
|
|
309
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)',
|
|
310
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
311
|
+
}
|
|
312
|
+
})
|
|
313
|
+
})
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
// 电话接入
|
|
317
|
+
else if (isPhone) {
|
|
318
|
+
// 纯电话:绿色电话 / 红色电话静音
|
|
319
|
+
if (videoStreamId === audioStreamId) {
|
|
320
|
+
icon = hasMicrophoneAudioStream ? /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
321
|
+
className: "fcr-user-window-actions-microphone",
|
|
322
|
+
style: {
|
|
323
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_lightgreen6)'
|
|
324
|
+
},
|
|
325
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
326
|
+
type: _type.FcrIconType.FCR_PHONECALL3,
|
|
327
|
+
size: size,
|
|
328
|
+
colors: {
|
|
329
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
330
|
+
}
|
|
331
|
+
})
|
|
332
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
333
|
+
content: t('muted'),
|
|
334
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
335
|
+
className: "fcr-user-window-actions-microphone",
|
|
336
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
337
|
+
type: _type.FcrIconType.FCR_PHONECALL_SILENCE,
|
|
338
|
+
size: size,
|
|
339
|
+
colors: {
|
|
340
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
341
|
+
}
|
|
342
|
+
})
|
|
343
|
+
})
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
// 不纯电话:空 / 红色电话静音
|
|
347
|
+
else {
|
|
348
|
+
icon = hasMicrophoneAudioStream ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
349
|
+
content: t('muted'),
|
|
350
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
351
|
+
className: "fcr-user-window-actions-microphone",
|
|
352
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
353
|
+
type: _type.FcrIconType.FCR_PHONECALL_SILENCE,
|
|
354
|
+
size: size,
|
|
355
|
+
colors: {
|
|
356
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
357
|
+
}
|
|
358
|
+
})
|
|
359
|
+
})
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
// 会议系统接入:紫色会议 / 紫色会议 + 红色电话静音
|
|
364
|
+
else {
|
|
365
|
+
icon = hasMicrophoneAudioStream ? /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
366
|
+
className: "fcr-user-window-actions-microphone",
|
|
367
|
+
style: {
|
|
368
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_purple7)'
|
|
369
|
+
},
|
|
370
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
371
|
+
type: _type.FcrIconType.FCR_SIPDEVICE,
|
|
372
|
+
size: size,
|
|
373
|
+
colors: {
|
|
374
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)',
|
|
375
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
376
|
+
}
|
|
377
|
+
})
|
|
378
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
379
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
380
|
+
className: "fcr-user-window-actions-microphone",
|
|
381
|
+
style: {
|
|
382
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_purple7)'
|
|
383
|
+
},
|
|
384
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
385
|
+
type: _type.FcrIconType.FCR_SIPDEVICE,
|
|
386
|
+
size: size,
|
|
387
|
+
colors: {
|
|
388
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)',
|
|
389
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
390
|
+
}
|
|
391
|
+
})
|
|
392
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
393
|
+
content: t('muted'),
|
|
394
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
395
|
+
className: "fcr-user-window-actions-microphone",
|
|
396
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
397
|
+
type: _type.FcrIconType.FCR_PHONECALL_SILENCE,
|
|
398
|
+
size: size,
|
|
399
|
+
colors: {
|
|
400
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
401
|
+
}
|
|
402
|
+
})
|
|
403
|
+
})
|
|
404
|
+
})]
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
var selfIsManager = store.isManager,
|
|
409
|
+
openPrivateChat = store.openPrivateChat;
|
|
410
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
411
|
+
className: (0, _classnames["default"])('fcr-user-window-actions', {
|
|
412
|
+
'fcr-user-window-actions-hide': isOnlyShowVideoStream
|
|
413
|
+
}),
|
|
414
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
415
|
+
className: "fcr-user-window-actions-bottom",
|
|
416
|
+
children: [isGallery ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
417
|
+
className: (0, _classnames["default"])('fcr-user-window-actions-tag', {
|
|
418
|
+
'fcr-user-window-actions-tag-host': isManager,
|
|
419
|
+
'fcr-user-window-actions-tag-cohost': userRole === _type4.FcrUserRole.COHOST
|
|
420
|
+
}),
|
|
421
|
+
children: [icon, isHost && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
422
|
+
children: t('host')
|
|
423
|
+
}), userRole === _type4.FcrUserRole.COHOST && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
424
|
+
children: t('tag.cohost')
|
|
425
|
+
})]
|
|
426
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
427
|
+
children: [isManager && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
428
|
+
className: (0, _classnames["default"])('fcr-user-window-actions-tag', {
|
|
429
|
+
'fcr-user-window-actions-tag-host': isManager,
|
|
430
|
+
'fcr-user-window-actions-tag-cohost': userRole === _type4.FcrUserRole.COHOST
|
|
431
|
+
}),
|
|
432
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
433
|
+
children: t(isHost ? 'host' : 'tag.cohost')
|
|
434
|
+
})
|
|
435
|
+
}), !hasMicrophoneAudioStream && /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
436
|
+
content: t('muted'),
|
|
437
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
438
|
+
className: "fcr-user-window-actions-microphone",
|
|
439
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
440
|
+
type: _type.FcrIconType.FCR_NOMUTE,
|
|
441
|
+
size: size,
|
|
442
|
+
colors: {
|
|
443
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)',
|
|
444
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
445
|
+
}
|
|
446
|
+
})
|
|
447
|
+
})
|
|
448
|
+
})]
|
|
449
|
+
}), (isGallery || hasVideoStream) && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
450
|
+
className: "fcr-user-window-actions-name",
|
|
451
|
+
children: suffixedName
|
|
452
|
+
})]
|
|
453
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
454
|
+
className: "fcr-user-window-actions-top",
|
|
455
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
456
|
+
content: t('more'),
|
|
457
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
458
|
+
showArrow: true,
|
|
459
|
+
placement: "bottomLeft",
|
|
460
|
+
visible: isShowDropMenu,
|
|
461
|
+
onVisibleChange: setIsShowDropMenu,
|
|
462
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_participantsMoreAction.ParticipantsMoreActions, {
|
|
463
|
+
userId: userId,
|
|
464
|
+
userRole: userRole,
|
|
465
|
+
hasVideo: hasVideoStream,
|
|
466
|
+
hasAudio: hasMicrophoneAudioStream,
|
|
467
|
+
userName: userName,
|
|
468
|
+
perspectiveType: store.localUserRole === _type4.FcrUserRole.COHOST ? 'cohost' : store.isManager ? 'host' : 'attendee',
|
|
469
|
+
isMe: isMyself,
|
|
470
|
+
onParticipantsButtonClick: function onParticipantsButtonClick(action, userId) {
|
|
471
|
+
store.sendParticipantEvent({
|
|
472
|
+
action: action,
|
|
473
|
+
userId: userId
|
|
474
|
+
});
|
|
475
|
+
setIsShowDropMenu(false);
|
|
476
|
+
}
|
|
477
|
+
}),
|
|
478
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
479
|
+
className: "fcr-user-window-actions-more",
|
|
480
|
+
onClick: function onClick() {
|
|
481
|
+
return setIsShowDropMenu(true);
|
|
482
|
+
},
|
|
483
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
484
|
+
type: _type.FcrIconType.FCR_MOBILE_MORE,
|
|
485
|
+
size: 20,
|
|
486
|
+
colors: {
|
|
487
|
+
iconPrimary: 'currentColor'
|
|
488
|
+
}
|
|
489
|
+
})
|
|
490
|
+
})
|
|
491
|
+
})
|
|
492
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
493
|
+
className: "fcr-user-window-actions-mute",
|
|
494
|
+
disabled: selfIsManager || isMyself,
|
|
495
|
+
onClick: function onClick() {
|
|
496
|
+
openPrivateChat(userId);
|
|
497
|
+
},
|
|
498
|
+
children: t('private_chat')
|
|
499
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
500
|
+
className: "fcr-user-window-actions-mute",
|
|
501
|
+
disabled: !canOperateAudioPublishPrivilege,
|
|
502
|
+
onClick: function onClick() {
|
|
503
|
+
store.muteAudio(hasMicrophoneAudioStream, userId);
|
|
504
|
+
},
|
|
505
|
+
children: hasMicrophoneAudioStream ? t('mute') : t('unmute')
|
|
506
|
+
})]
|
|
507
|
+
}), isMyself && hasVideoStream && /*#__PURE__*/(0, _jsxRuntime.jsx)(_localVideoPlayer.VideoOrientation, {
|
|
508
|
+
setVideoOrientation: function setVideoOrientation() {
|
|
509
|
+
store.setVideoOrientation();
|
|
510
|
+
}
|
|
511
|
+
})]
|
|
512
|
+
});
|
|
513
|
+
});
|