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,223 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.windowOptions = exports.webPreferences = exports.title = exports.ControlBarEvents = exports.ControlBar = void 0;
|
|
10
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
var _constant = require("../../utilities/constant");
|
|
16
|
+
var _base = require("../base");
|
|
17
|
+
var _context = require("./context");
|
|
18
|
+
var _controlBarStore = _interopRequireDefault(require("./control-bar-store"));
|
|
19
|
+
require("./index.css");
|
|
20
|
+
var _view = require("./view");
|
|
21
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
|
+
var _window;
|
|
23
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
24
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
|
+
var ControlBarEvents = exports.ControlBarEvents = /*#__PURE__*/function (ControlBarEvents) {
|
|
26
|
+
ControlBarEvents["ENABLE_AUDIO"] = "enable-audio";
|
|
27
|
+
ControlBarEvents["SWITCH_MICROPHONE_DEVICE"] = "switch-microphone-device";
|
|
28
|
+
ControlBarEvents["SWITCH_SPEAKER_DEVICE"] = "switch-speaker-device";
|
|
29
|
+
ControlBarEvents["OPEN_AUDIO_SETTING"] = "open-audio-setting";
|
|
30
|
+
ControlBarEvents["ENABLE_VIDEO"] = "enable-video";
|
|
31
|
+
ControlBarEvents["SWITCH_CAMERA_DEVICE"] = "switch-camera-device";
|
|
32
|
+
ControlBarEvents["OPEN_VIDEO_SETTING"] = "open-video-setting";
|
|
33
|
+
ControlBarEvents["SHARE_SCREEN"] = "share-screen";
|
|
34
|
+
ControlBarEvents["STOP_SCREEN_SHARING"] = "stop-screen-sharing";
|
|
35
|
+
ControlBarEvents["OPEN_SECURITY"] = "open-security";
|
|
36
|
+
ControlBarEvents["ENABLE_SHARE_AUDIO"] = "enable-share-audio";
|
|
37
|
+
ControlBarEvents["SET_SCREEN_SHARE_PRIORITY"] = "set-screen-share-priority";
|
|
38
|
+
return ControlBarEvents;
|
|
39
|
+
}({});
|
|
40
|
+
var ControlBar = exports.ControlBar = /*#__PURE__*/function (_BaseFragment) {
|
|
41
|
+
function ControlBar(runtime) {
|
|
42
|
+
var _this;
|
|
43
|
+
(0, _classCallCheck2["default"])(this, ControlBar);
|
|
44
|
+
_this = _callSuper(this, ControlBar, [runtime]);
|
|
45
|
+
_this._store = new _controlBarStore["default"]();
|
|
46
|
+
return _this;
|
|
47
|
+
}
|
|
48
|
+
(0, _inherits2["default"])(ControlBar, _BaseFragment);
|
|
49
|
+
return (0, _createClass2["default"])(ControlBar, [{
|
|
50
|
+
key: "name",
|
|
51
|
+
get: function get() {
|
|
52
|
+
return 'control-bar';
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
key: "component",
|
|
56
|
+
get: function get() {
|
|
57
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.StoreContext.Provider, {
|
|
58
|
+
value: this._store,
|
|
59
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.ControlBarView, {})
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
key: "onEvent",
|
|
64
|
+
value: function onEvent(event) {
|
|
65
|
+
var _ref = event,
|
|
66
|
+
action = _ref.action,
|
|
67
|
+
payload = _ref.payload;
|
|
68
|
+
console.log('ControlBar onEvent', action, payload);
|
|
69
|
+
switch (action) {
|
|
70
|
+
case _constant.RendererEventAction.INIT_CONTROL_BAR:
|
|
71
|
+
this._store.initControlBar(payload);
|
|
72
|
+
break;
|
|
73
|
+
case _constant.RendererEventAction.START_SHARE_SCREEN:
|
|
74
|
+
this._store.updateCurrentShareContent(payload);
|
|
75
|
+
break;
|
|
76
|
+
case _constant.RendererEventAction.INIT_SHARE_SCREEN_SELECTION:
|
|
77
|
+
this._store.updateAllApplicationList(payload.applications);
|
|
78
|
+
break;
|
|
79
|
+
case _constant.RendererEventAction.SET_MICROPHONE_DEVICE:
|
|
80
|
+
this._store.setCurrentMicrophoneId(payload.deviceId);
|
|
81
|
+
break;
|
|
82
|
+
case _constant.RendererEventAction.SET_CAMERA_DEVICE:
|
|
83
|
+
this._store.setCurrentCameraId(payload.deviceId);
|
|
84
|
+
break;
|
|
85
|
+
case _constant.RendererEventAction.SET_SPEAKER_DEVICE:
|
|
86
|
+
this._store.setCurrentSpeakerId(payload.deviceId);
|
|
87
|
+
break;
|
|
88
|
+
case _constant.RendererEventAction.MUTE_LOCAL_AUDIO:
|
|
89
|
+
this._store.muteLocalAudio(true);
|
|
90
|
+
break;
|
|
91
|
+
case _constant.RendererEventAction.UNMUTE_LOCAL_AUDIO:
|
|
92
|
+
this._store.muteLocalAudio(false);
|
|
93
|
+
break;
|
|
94
|
+
case _constant.RendererEventAction.MUTE_LOCAL_VIDEO:
|
|
95
|
+
this._store.muteLocalVideo(true);
|
|
96
|
+
break;
|
|
97
|
+
case _constant.RendererEventAction.UNMUTE_LOCAL_VIDEO:
|
|
98
|
+
this._store.muteLocalVideo(false);
|
|
99
|
+
break;
|
|
100
|
+
case _constant.RendererEventAction.UPDATE_MICROPHONE_LIST:
|
|
101
|
+
this._store.setMicrophoneList(payload.list);
|
|
102
|
+
break;
|
|
103
|
+
case _constant.RendererEventAction.UPDATE_CAMERA_LIST:
|
|
104
|
+
this._store.setCameraList(payload.list);
|
|
105
|
+
break;
|
|
106
|
+
case _constant.RendererEventAction.UPDATE_SPEAKER_LIST:
|
|
107
|
+
this._store.setSpeakerList(payload.list);
|
|
108
|
+
break;
|
|
109
|
+
case _constant.RendererEventAction.MAIN_SET_ALLOW_CHANGE_SELF_NAME:
|
|
110
|
+
this._store.setAllowChangeSelfName(payload.allow);
|
|
111
|
+
break;
|
|
112
|
+
case _constant.RendererEventAction.MAIN_SET_ALLOW_CHAT:
|
|
113
|
+
this._store.setAllowChat(payload.allow);
|
|
114
|
+
break;
|
|
115
|
+
case _constant.RendererEventAction.MAIN_SET_ALLOW_JOIN_WITH_MUTE_AUDIO:
|
|
116
|
+
this._store.setAllowJoinWithMuteAudio(payload.allow);
|
|
117
|
+
break;
|
|
118
|
+
case _constant.RendererEventAction.MAIN_SET_ALLOW_SHARE_SCREEN:
|
|
119
|
+
this._store.setAllowShareScreen(payload.allow);
|
|
120
|
+
break;
|
|
121
|
+
case _constant.RendererEventAction.MAIN_SET_ALLOW_UNMUTE_SELF_VIDEO:
|
|
122
|
+
this._store.setAllowUnmuteSelfVideo(payload.allow);
|
|
123
|
+
break;
|
|
124
|
+
case _constant.RendererEventAction.MAIN_SET_ALLOW_UNMUTE_SELF_AUDIO:
|
|
125
|
+
this._store.setAllowUnmuteSelfAudio(payload.allow);
|
|
126
|
+
break;
|
|
127
|
+
case _constant.RendererEventAction.MAIN_SET_LOCK_ROOM:
|
|
128
|
+
this._store.setLockRoomEnabled(payload.allow);
|
|
129
|
+
break;
|
|
130
|
+
case _constant.RendererEventAction.MAIN_SET_ENABLE_WAITING_ROOM:
|
|
131
|
+
this._store.setWaitingRoomEnabled(payload.allow);
|
|
132
|
+
break;
|
|
133
|
+
case _constant.RendererEventAction.MAIN_SET_ALLOW_CLOUD_RECORDING_START:
|
|
134
|
+
this._store.setHasStartCloudRecordingPermission(payload.allow);
|
|
135
|
+
break;
|
|
136
|
+
// local Media
|
|
137
|
+
case _constant.RendererEventAction.SET_CONTROL_BAR_LOCAL_AUDIO_STATE:
|
|
138
|
+
this._store.muteLocalAudio(!payload.status);
|
|
139
|
+
break;
|
|
140
|
+
case _constant.RendererEventAction.SET_CONTROL_BAR_LOCAL_VIDEO_STATE:
|
|
141
|
+
this._store.muteLocalVideo(!payload.status);
|
|
142
|
+
break;
|
|
143
|
+
case _constant.RendererEventAction.SET_CONTROL_BAR_LOCAL_AUDIO_VOLUME:
|
|
144
|
+
this._store.setLocalAudioVolume(payload.volume);
|
|
145
|
+
break;
|
|
146
|
+
case _constant.RendererEventAction.CLOUD_RECORDING_STATE_CHANGED:
|
|
147
|
+
this._store.setCloudRecordingState(payload);
|
|
148
|
+
case _constant.RendererEventAction.USER_ROLE_CHANGED:
|
|
149
|
+
this._store.setLocalUserRole(payload);
|
|
150
|
+
break;
|
|
151
|
+
case _constant.RendererEventAction.CHANGE_LIVE_STREAMING_STATE:
|
|
152
|
+
this._store.setLiveStreamingState(payload.liveStreamingState);
|
|
153
|
+
break;
|
|
154
|
+
case _constant.RendererEventAction.CHANGE_LIVE_STREAMING_INFO:
|
|
155
|
+
this._store.setLiveStreamingInfo(payload);
|
|
156
|
+
break;
|
|
157
|
+
case _constant.RendererEventAction.MAIN_SET_ALLOW_LIVE_STREAMING_START:
|
|
158
|
+
this._store.setHasStartCloudRecordingPermission(payload.allow);
|
|
159
|
+
break;
|
|
160
|
+
case _constant.RendererEventAction.MAIN_SET_ALLOW_LIVE_STREAMING_STOP:
|
|
161
|
+
this._store.setHasStopLiveStreamingPermission(payload.allow);
|
|
162
|
+
break;
|
|
163
|
+
case _constant.RendererEventAction.MAIN_SET_ALLOW_GET_LIVE_STREAMING_LINK:
|
|
164
|
+
this._store.setHasGetLiveStreamingUrlPermission(payload.allow);
|
|
165
|
+
break;
|
|
166
|
+
case _constant.RendererEventAction.SHOW_TOAST:
|
|
167
|
+
this._store.showToast(payload);
|
|
168
|
+
break;
|
|
169
|
+
case _constant.RendererEventAction.SET_CONTROL_BAR_CONNECT_TYPE:
|
|
170
|
+
this._store.setConnectType(payload);
|
|
171
|
+
break;
|
|
172
|
+
case _constant.RendererEventAction.SET_CONTROL_BAR_PHONECALL_STATE:
|
|
173
|
+
this._store.setPhoneMicEnabled(payload);
|
|
174
|
+
break;
|
|
175
|
+
// security item permission
|
|
176
|
+
case _constant.RendererEventAction.START_SCREEN_SHARE_PERMISSION:
|
|
177
|
+
this._store.setStartScreenSharePermission(payload.allow);
|
|
178
|
+
break;
|
|
179
|
+
case _constant.RendererEventAction.ALLOW_SEND_ALL_PERMISSION:
|
|
180
|
+
this._store.setPermissionToControlAllowSendAll(payload.allow);
|
|
181
|
+
break;
|
|
182
|
+
case _constant.RendererEventAction.START_AUDIO_PERMISSION:
|
|
183
|
+
this._store.setStartAudioPermission(payload.allow);
|
|
184
|
+
break;
|
|
185
|
+
case _constant.RendererEventAction.CHANGE_NAME_PERMISSION:
|
|
186
|
+
this._store.setChangeNamePermission(payload.allow);
|
|
187
|
+
break;
|
|
188
|
+
case _constant.RendererEventAction.START_VIDEO_PERMISSION:
|
|
189
|
+
this._store.setStartVideoPermission(payload.allow);
|
|
190
|
+
break;
|
|
191
|
+
case _constant.RendererEventAction.LOCK_ROOM_PERMISSION:
|
|
192
|
+
this._store.setLockRoomPermission(payload.allow);
|
|
193
|
+
break;
|
|
194
|
+
case _constant.RendererEventAction.SET_SHARE_WITH_AUDIO_CONTROL_BAR:
|
|
195
|
+
this._store.setShareWithAudioStateOnly(payload.withAudio);
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}]);
|
|
200
|
+
}(_base.BaseFragment);
|
|
201
|
+
var windowOptions = exports.windowOptions = {
|
|
202
|
+
width: 300,
|
|
203
|
+
height: 100,
|
|
204
|
+
y: 0,
|
|
205
|
+
x: 0,
|
|
206
|
+
frame: false,
|
|
207
|
+
transparent: true,
|
|
208
|
+
maximizable: false,
|
|
209
|
+
backgroundColor: '#00000000',
|
|
210
|
+
// macos 切换到其他应用时隐藏窗口
|
|
211
|
+
hiddenInMissionControl: true,
|
|
212
|
+
// fullscreenable: false,
|
|
213
|
+
// fullscreen: false,
|
|
214
|
+
hasShadow: false,
|
|
215
|
+
useContentSize: true,
|
|
216
|
+
minimizable: false,
|
|
217
|
+
// Windows 上直接打开,否则任务栏上会消失
|
|
218
|
+
show: ((_window = window) === null || _window === void 0 || (_window = _window.process) === null || _window === void 0 ? void 0 : _window.platform) === 'win32'
|
|
219
|
+
};
|
|
220
|
+
var webPreferences = exports.webPreferences = {
|
|
221
|
+
nodeIntegration: true
|
|
222
|
+
};
|
|
223
|
+
var title = exports.title = 'Control Bar';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.leave-room-dialog {
|
|
2
|
+
}
|
|
3
|
+
.leave-room-dialog .fcr-dialog-body {
|
|
4
|
+
padding: 20px;
|
|
5
|
+
}
|
|
6
|
+
.leave-room-dialog-content {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: 12px;
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
.leave-room-dialog-title {
|
|
13
|
+
text-align: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.leave-room-dialog-content > button,
|
|
17
|
+
.leave-room-dialog-content > div {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.MorePopoverContent = void 0;
|
|
8
|
+
require("core-js/modules/es.array.filter.js");
|
|
9
|
+
require("core-js/modules/es.array.map.js");
|
|
10
|
+
require("core-js/modules/es.object.to-string.js");
|
|
11
|
+
var _button = require("agora-ui-foundation/lib/components/button");
|
|
12
|
+
var _dialog = require("agora-ui-foundation/lib/components/dialog");
|
|
13
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
14
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
15
|
+
var _mobxReact = require("mobx-react");
|
|
16
|
+
var _react = require("react");
|
|
17
|
+
var _constant = require("../../../utilities/constant");
|
|
18
|
+
var _context = require("../context");
|
|
19
|
+
require("./index.css");
|
|
20
|
+
var _type2 = require("agora-edu-core/lib/type");
|
|
21
|
+
var _copyText = require("../../../utilities/copyText");
|
|
22
|
+
var _toast = require("agora-ui-foundation/lib/components/toast");
|
|
23
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
24
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
+
var MorePopoverContent = exports.MorePopoverContent = (0, _mobxReact.observer)(function (props) {
|
|
26
|
+
var ref = (0, _react.useRef)(null);
|
|
27
|
+
var hasChatPermission = props.hasChatPermission,
|
|
28
|
+
_props$closePopover = props.closePopover,
|
|
29
|
+
closePopover = _props$closePopover === void 0 ? function () {} : _props$closePopover;
|
|
30
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
31
|
+
isHost = _useContext.isHost,
|
|
32
|
+
handleMoreClick = _useContext.handleMoreClick,
|
|
33
|
+
liveStreamingState = _useContext.liveStreamingState,
|
|
34
|
+
playUrl = _useContext.playUrl,
|
|
35
|
+
cloudRecordingState = _useContext.cloudRecordingState,
|
|
36
|
+
hasStartCloudRecordingPermission = _useContext.hasStartCloudRecordingPermission,
|
|
37
|
+
hasStartLiveStreamingPermission = _useContext.hasStartLiveStreamingPermission,
|
|
38
|
+
hasGetLiveStreamingUrlPermission = _useContext.hasGetLiveStreamingUrlPermission,
|
|
39
|
+
hasStopLiveStreamingPermission = _useContext.hasStopLiveStreamingPermission;
|
|
40
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
41
|
+
var onItemClick = function onItemClick(item) {
|
|
42
|
+
if (item.onClick) {
|
|
43
|
+
item.onClick();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
closePopover();
|
|
47
|
+
handleMoreClick(item.key);
|
|
48
|
+
};
|
|
49
|
+
var LeaveRoomContent = function LeaveRoomContent() {
|
|
50
|
+
closePopover();
|
|
51
|
+
if (isHost) {
|
|
52
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
53
|
+
className: "leave-room-dialog-content",
|
|
54
|
+
onMouseEnter: function onMouseEnter() {
|
|
55
|
+
window.runtime.browserWindow.setIgnoreMouseEvents(false);
|
|
56
|
+
},
|
|
57
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
58
|
+
className: "leave-room-dialog-title",
|
|
59
|
+
children: transI18n('fmt_popup_tips_endplenarymeeting')
|
|
60
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
61
|
+
styleType: "danger",
|
|
62
|
+
size: "S",
|
|
63
|
+
onClick: function onClick() {
|
|
64
|
+
_dialog.FcrDialogApi.close('leave-room');
|
|
65
|
+
window.runtime.browserWindow.setIgnoreMouseEvents(true, {
|
|
66
|
+
forward: true
|
|
67
|
+
});
|
|
68
|
+
handleMoreClick(_constant.RendererEventAction.END_ROOM);
|
|
69
|
+
},
|
|
70
|
+
children: transI18n('fmt_popup_button_endmeeting')
|
|
71
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
72
|
+
size: "S",
|
|
73
|
+
onClick: function onClick() {
|
|
74
|
+
_dialog.FcrDialogApi.close('leave-room');
|
|
75
|
+
window.runtime.browserWindow.setIgnoreMouseEvents(true, {
|
|
76
|
+
forward: true
|
|
77
|
+
});
|
|
78
|
+
handleMoreClick(_constant.RendererEventAction.LEAVE_ROOM);
|
|
79
|
+
},
|
|
80
|
+
children: transI18n('fmt_popup_button_leavemeeting')
|
|
81
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
82
|
+
size: "S",
|
|
83
|
+
onClick: function onClick() {
|
|
84
|
+
window.runtime.browserWindow.setIgnoreMouseEvents(true, {
|
|
85
|
+
forward: true
|
|
86
|
+
});
|
|
87
|
+
_dialog.FcrDialogApi.close('leave-room');
|
|
88
|
+
},
|
|
89
|
+
children: transI18n('fmt_security_buttons_cancel')
|
|
90
|
+
})]
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
94
|
+
className: "leave-room-dialog-content",
|
|
95
|
+
onMouseEnter: function onMouseEnter() {
|
|
96
|
+
window.runtime.browserWindow.setIgnoreMouseEvents(false);
|
|
97
|
+
},
|
|
98
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
99
|
+
className: "leave-room-dialog-title",
|
|
100
|
+
children: transI18n('fmt_popup_tips_leavenow')
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
102
|
+
styleType: "danger",
|
|
103
|
+
size: "S",
|
|
104
|
+
onClick: function onClick() {
|
|
105
|
+
_dialog.FcrDialogApi.close('leave-room');
|
|
106
|
+
handleMoreClick(_constant.RendererEventAction.LEAVE_ROOM);
|
|
107
|
+
},
|
|
108
|
+
children: transI18n('fmt_popup_button_leavemeeting')
|
|
109
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
110
|
+
type: "secondary-bordered",
|
|
111
|
+
size: "S",
|
|
112
|
+
onClick: function onClick() {
|
|
113
|
+
_dialog.FcrDialogApi.close('leave-room');
|
|
114
|
+
},
|
|
115
|
+
children: transI18n('fmt_security_buttons_cancel')
|
|
116
|
+
})]
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
var moreOptions = [{
|
|
120
|
+
text: transI18n('fmt_chat_label_chat'),
|
|
121
|
+
displayWhenNoPermission: 'hidden',
|
|
122
|
+
key: _constant.RendererEventAction.OPEN_CHAT,
|
|
123
|
+
hasPermission: hasChatPermission
|
|
124
|
+
}, {
|
|
125
|
+
icon: _type.FcrIconType.FCR_EMO,
|
|
126
|
+
text: transI18n('fmt_popup_label_expression'),
|
|
127
|
+
displayWhenNoPermission: 'hidden',
|
|
128
|
+
key: 'emoji',
|
|
129
|
+
hasPermission: false
|
|
130
|
+
}, {
|
|
131
|
+
text: transI18n('fmt_screenshare_controlbar_button_more_cloudRecord'),
|
|
132
|
+
displayWhenNoPermission: 'hidden',
|
|
133
|
+
key: cloudRecordingState === _type2.FcrRecordingState.Stopped ? _constant.RendererEventAction.CLOUD_RECORDING_START : _constant.RendererEventAction.CLOUD_RECORDING_STOP,
|
|
134
|
+
hasPermission: hasStartCloudRecordingPermission && cloudRecordingState === _type2.FcrRecordingState.Stopped
|
|
135
|
+
},
|
|
136
|
+
// {
|
|
137
|
+
// icon: null,
|
|
138
|
+
// text: transI18n('fmt_record_button_Localrecording'),
|
|
139
|
+
// displayWhenNoPermission: 'hidden',
|
|
140
|
+
// key: 'localRecord',
|
|
141
|
+
// hasPermission:
|
|
142
|
+
// hasStartCloudRecordingPermission && cloudRecordingState === FcrRecordingState.Stopped,
|
|
143
|
+
// },
|
|
144
|
+
{
|
|
145
|
+
icon: _type.FcrIconType.FCR_LIVE,
|
|
146
|
+
text: transI18n('fmt_screenshare_controlbar_button_more_live'),
|
|
147
|
+
displayWhenNoPermission: 'hidden',
|
|
148
|
+
key: 'liveStreaming',
|
|
149
|
+
hasPermission: hasStartLiveStreamingPermission && liveStreamingState === _type2.FcrLiveStreamingState.STOPPED,
|
|
150
|
+
onClick: function onClick() {
|
|
151
|
+
window.runtime.browserWindow.setIgnoreMouseEvents(true, {
|
|
152
|
+
forward: true
|
|
153
|
+
});
|
|
154
|
+
handleMoreClick(_constant.RendererEventAction.OPEN_LIVE_STEAMING_DIALOG);
|
|
155
|
+
}
|
|
156
|
+
}, {
|
|
157
|
+
icon: _type.FcrIconType.FCR_SETTING,
|
|
158
|
+
text: transI18n('fmt_screenshare_controlbar_button_more_setting'),
|
|
159
|
+
displayWhenNoPermission: 'hidden',
|
|
160
|
+
key: _constant.RendererEventAction.OPEN_SETTING,
|
|
161
|
+
hasPermission: true
|
|
162
|
+
}, {
|
|
163
|
+
icon: _type.FcrIconType.FCR_ATTACH,
|
|
164
|
+
text: transI18n('fmt_live_label_copylink'),
|
|
165
|
+
displayWhenNoPermission: 'hidden',
|
|
166
|
+
key: 'copyLiveLink',
|
|
167
|
+
hasPermission: liveStreamingState === _type2.FcrLiveStreamingState.STARTED && hasGetLiveStreamingUrlPermission,
|
|
168
|
+
onClick: function onClick() {
|
|
169
|
+
closePopover();
|
|
170
|
+
(0, _copyText.copyText)(playUrl).then(function () {
|
|
171
|
+
_toast.FcrToastApi.open({
|
|
172
|
+
toastProps: {
|
|
173
|
+
type: 'info',
|
|
174
|
+
content: transI18n('fmt_statusbar_status_coppied')
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}, {
|
|
180
|
+
icon: _type.FcrIconType.FCR_ATTACH,
|
|
181
|
+
text: transI18n('fmt_popup_button_meetinginfor'),
|
|
182
|
+
displayWhenNoPermission: 'hidden',
|
|
183
|
+
key: 'copyMeetingInfo',
|
|
184
|
+
hasPermission: false,
|
|
185
|
+
onClick: function onClick() {
|
|
186
|
+
closePopover();
|
|
187
|
+
(0, _copyText.copyText)('TODO 会议信息').then(function () {
|
|
188
|
+
_toast.FcrToastApi.open({
|
|
189
|
+
id: 'copy-live-link',
|
|
190
|
+
toastProps: {
|
|
191
|
+
type: 'info',
|
|
192
|
+
content: transI18n('fmt_statusbar_status_coppied')
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
// {
|
|
199
|
+
// icon: FcrIconType.FCR_ENDMEETING,
|
|
200
|
+
// key: RendererEventAction.LEAVE_ROOM,
|
|
201
|
+
// text: isHost ? '结束会议' : '离开会议',
|
|
202
|
+
// hasPermission: true,
|
|
203
|
+
// onClick: () => {
|
|
204
|
+
// window.runtime.browserWindow.setIgnoreMouseEvents(false);
|
|
205
|
+
// FcrDialogApi.info({
|
|
206
|
+
// id: 'leave-room',
|
|
207
|
+
// dialogProps: {
|
|
208
|
+
// content: <LeaveRoomContent />,
|
|
209
|
+
// width: 256,
|
|
210
|
+
// closable: false,
|
|
211
|
+
// rootClassName: 'leave-room-dialog',
|
|
212
|
+
// },
|
|
213
|
+
// });
|
|
214
|
+
// },
|
|
215
|
+
// },
|
|
216
|
+
];
|
|
217
|
+
(0, _react.useEffect)(function () {
|
|
218
|
+
function handleClickOutside(event) {
|
|
219
|
+
if (ref.current && !ref.current.contains(event.target)) {
|
|
220
|
+
closePopover();
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
224
|
+
return function () {
|
|
225
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
226
|
+
};
|
|
227
|
+
}, [ref.current]);
|
|
228
|
+
var moreOptionsFilter = moreOptions.filter(function (item) {
|
|
229
|
+
return item.hasPermission;
|
|
230
|
+
});
|
|
231
|
+
console.log('moreOptionsFilter', moreOptionsFilter);
|
|
232
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
233
|
+
ref: ref,
|
|
234
|
+
className: "share-action-nav__popover-inner-content share-action-nav__not-draggable",
|
|
235
|
+
children: moreOptionsFilter.map(function (item, index) {
|
|
236
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
237
|
+
className: "share-action-nav__media-list-group",
|
|
238
|
+
onClick: function onClick(e) {
|
|
239
|
+
e.stopPropagation();
|
|
240
|
+
onItemClick(item);
|
|
241
|
+
},
|
|
242
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
243
|
+
className: "fcr-flex fcr-items-center share-action-nav__popover-option-media-setting share-action-nav__popover-option",
|
|
244
|
+
children: [item.icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
245
|
+
type: item.icon,
|
|
246
|
+
size: 24,
|
|
247
|
+
colors: {
|
|
248
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
249
|
+
}
|
|
250
|
+
}, item.key) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
251
|
+
className: "icon-placeholder-symbol"
|
|
252
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
253
|
+
children: item.text
|
|
254
|
+
})]
|
|
255
|
+
})
|
|
256
|
+
}, item.key);
|
|
257
|
+
})
|
|
258
|
+
});
|
|
259
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.security-content {
|
|
2
|
+
}
|
|
3
|
+
.security-content .fcr-checkbox-input-wrapper {
|
|
4
|
+
border: none;
|
|
5
|
+
}
|
|
6
|
+
.security-content .fcr-checkbox {
|
|
7
|
+
width: auto;
|
|
8
|
+
}
|
|
9
|
+
.security-content .fcr-drop-menu-title {
|
|
10
|
+
text-align: left;
|
|
11
|
+
}
|
|
12
|
+
.security-content .fcr-checkbox-inner {
|
|
13
|
+
background-color: transparent;
|
|
14
|
+
height: 24px;
|
|
15
|
+
width: 24px;
|
|
16
|
+
}
|
|
17
|
+
.security-content .fcr-drop-menu-option-text {
|
|
18
|
+
width: auto;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.security-content .fcr-checkbox-label {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
flex: 1;
|
|
24
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.SecurityContent = void 0;
|
|
8
|
+
require("core-js/modules/es.array.filter.js");
|
|
9
|
+
require("core-js/modules/es.object.to-string.js");
|
|
10
|
+
var _dropMenu = require("agora-ui-foundation/lib/components/drop-menu");
|
|
11
|
+
var _react = require("react");
|
|
12
|
+
var _context = require("../context");
|
|
13
|
+
var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
|
|
14
|
+
require("./index.css");
|
|
15
|
+
var _mobxReact = require("mobx-react");
|
|
16
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
var SecurityContent = exports.SecurityContent = (0, _mobxReact.observer)(function () {
|
|
19
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
20
|
+
updateLockRoomEnabled = _useContext.updateLockRoomEnabled,
|
|
21
|
+
isLockRoomEnabled = _useContext.isLockRoomEnabled,
|
|
22
|
+
allowShareScreen = _useContext.allowShareScreen,
|
|
23
|
+
updateAllowShareScreen = _useContext.updateAllowShareScreen,
|
|
24
|
+
allowChat = _useContext.allowChat,
|
|
25
|
+
updateAllowChat = _useContext.updateAllowChat,
|
|
26
|
+
allowUnmuteSelfAudio = _useContext.allowUnmuteSelfAudio,
|
|
27
|
+
updateAllowUnmuteSelfAudio = _useContext.updateAllowUnmuteSelfAudio,
|
|
28
|
+
allowUnmuteSelfVideo = _useContext.allowUnmuteSelfVideo,
|
|
29
|
+
updateAllowUnmuteSelfVideo = _useContext.updateAllowUnmuteSelfVideo,
|
|
30
|
+
hasEnableStartScreenSharePermission = _useContext.hasEnableStartScreenSharePermission,
|
|
31
|
+
hasPermissionToControlAllowSendAll = _useContext.hasPermissionToControlAllowSendAll,
|
|
32
|
+
hasEnableStartAudioPermission = _useContext.hasEnableStartAudioPermission,
|
|
33
|
+
hasEnableChangeNamePermission = _useContext.hasEnableChangeNamePermission,
|
|
34
|
+
hasEnableStartVideoPermission = _useContext.hasEnableStartVideoPermission,
|
|
35
|
+
hasLockRoomPermission = _useContext.hasLockRoomPermission;
|
|
36
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
37
|
+
var allActions = [{
|
|
38
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
39
|
+
checked: isLockRoomEnabled,
|
|
40
|
+
label: transI18n('fmt_screenshare_controlbar_security_list_lock'),
|
|
41
|
+
styleType: "white"
|
|
42
|
+
}),
|
|
43
|
+
key: 'lock_room',
|
|
44
|
+
type: 'primary',
|
|
45
|
+
hasPermission: hasLockRoomPermission,
|
|
46
|
+
onButtonClick: function onButtonClick() {
|
|
47
|
+
updateLockRoomEnabled(!isLockRoomEnabled);
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
51
|
+
checked: false,
|
|
52
|
+
label: transI18n('fmt_security_options_activatewaitingroom'),
|
|
53
|
+
styleType: "white"
|
|
54
|
+
}),
|
|
55
|
+
key: 'enable_waiting_room',
|
|
56
|
+
type: 'disabled',
|
|
57
|
+
hasPermission: true,
|
|
58
|
+
onButtonClick: function onButtonClick() {},
|
|
59
|
+
classNames: 'room-control-drop-with-under-line'
|
|
60
|
+
}, {
|
|
61
|
+
title: transI18n('fmt_screenshare_options_allow'),
|
|
62
|
+
key: 'allow_attendee_title',
|
|
63
|
+
type: 'title',
|
|
64
|
+
hasPermission: true
|
|
65
|
+
}, {
|
|
66
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
67
|
+
checked: allowShareScreen,
|
|
68
|
+
label: transI18n('fmt_screenshare_controlbar_security_list_participant_screenshare'),
|
|
69
|
+
styleType: "white"
|
|
70
|
+
}),
|
|
71
|
+
key: 'share_screen',
|
|
72
|
+
type: 'primary',
|
|
73
|
+
hasPermission: hasEnableStartScreenSharePermission,
|
|
74
|
+
onButtonClick: function onButtonClick() {
|
|
75
|
+
updateAllowShareScreen(!allowShareScreen);
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
79
|
+
checked: allowChat,
|
|
80
|
+
label: transI18n('fmt_chat_label_chat'),
|
|
81
|
+
styleType: "white"
|
|
82
|
+
}),
|
|
83
|
+
key: 'chat',
|
|
84
|
+
type: 'primary',
|
|
85
|
+
hasPermission: hasPermissionToControlAllowSendAll,
|
|
86
|
+
onButtonClick: function onButtonClick() {
|
|
87
|
+
updateAllowChat(!allowChat);
|
|
88
|
+
}
|
|
89
|
+
}, {
|
|
90
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
91
|
+
checked: allowUnmuteSelfAudio,
|
|
92
|
+
label: transI18n('fmt_screenshare_controlbar_security_list_participant_unmute'),
|
|
93
|
+
styleType: "white"
|
|
94
|
+
}),
|
|
95
|
+
key: 'unmute_yourself',
|
|
96
|
+
type: 'primary',
|
|
97
|
+
hasPermission: hasEnableStartAudioPermission,
|
|
98
|
+
onButtonClick: function onButtonClick() {
|
|
99
|
+
updateAllowUnmuteSelfAudio(!allowUnmuteSelfAudio);
|
|
100
|
+
}
|
|
101
|
+
}, {
|
|
102
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
103
|
+
checked: false,
|
|
104
|
+
label: transI18n('fmt_screenshare_controlbar_security_list_participant_changeName'),
|
|
105
|
+
styleType: "white"
|
|
106
|
+
}),
|
|
107
|
+
key: 'rename',
|
|
108
|
+
type: 'disabled',
|
|
109
|
+
hasPermission: hasEnableChangeNamePermission,
|
|
110
|
+
onButtonClick: function onButtonClick() {}
|
|
111
|
+
}, {
|
|
112
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
113
|
+
checked: allowUnmuteSelfVideo,
|
|
114
|
+
label: transI18n('fmt_security_options_openvideo'),
|
|
115
|
+
styleType: "white"
|
|
116
|
+
}),
|
|
117
|
+
key: 'start_video',
|
|
118
|
+
type: 'primary',
|
|
119
|
+
hasPermission: hasEnableStartVideoPermission,
|
|
120
|
+
onButtonClick: function onButtonClick() {
|
|
121
|
+
updateAllowUnmuteSelfVideo(!allowUnmuteSelfVideo);
|
|
122
|
+
},
|
|
123
|
+
classNames: 'room-control-drop-with-under-line'
|
|
124
|
+
}, {
|
|
125
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
126
|
+
checked: false,
|
|
127
|
+
label: transI18n('fmt_security_options_removemultiple'),
|
|
128
|
+
styleType: "white"
|
|
129
|
+
}),
|
|
130
|
+
key: 'remove_fcr-participants',
|
|
131
|
+
type: 'danger',
|
|
132
|
+
hasPermission: true,
|
|
133
|
+
onButtonClick: function onButtonClick() {},
|
|
134
|
+
classNames: 'room-control-drop-disable'
|
|
135
|
+
}];
|
|
136
|
+
var securityHasPermissionActions = allActions.filter(function (item) {
|
|
137
|
+
return item.hasPermission;
|
|
138
|
+
});
|
|
139
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
140
|
+
className: "security-content",
|
|
141
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_dropMenu.FcrDropMenu, {
|
|
142
|
+
options: securityHasPermissionActions
|
|
143
|
+
})
|
|
144
|
+
});
|
|
145
|
+
});
|