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,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = exports.VideoSettings = void 0;
|
|
8
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
+
require("core-js/modules/es.array.iterator.js");
|
|
12
|
+
require("core-js/modules/es.object.define-property.js");
|
|
13
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
14
|
+
require("core-js/modules/es.object.to-string.js");
|
|
15
|
+
require("core-js/modules/es.promise.js");
|
|
16
|
+
require("core-js/modules/es.string.iterator.js");
|
|
17
|
+
require("core-js/modules/es.weak-map.js");
|
|
18
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
19
|
+
var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
|
|
20
|
+
var _dialog = require("agora-ui-foundation/lib/components/dialog");
|
|
21
|
+
require("agora-ui-foundation/lib/components/local-video-player/index.css");
|
|
22
|
+
var _mobxReact = require("mobx-react");
|
|
23
|
+
var _react = require("react");
|
|
24
|
+
var _useNamespace = require("../common/useNamespace");
|
|
25
|
+
var _context = require("../context");
|
|
26
|
+
require("./index.css");
|
|
27
|
+
var _videoEffect = require("../../device-pretest/settings/video-effect");
|
|
28
|
+
var _store = require("../store");
|
|
29
|
+
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
30
|
+
var _virtualBackgroundSetting = require("../../device-pretest/settings/virtual-background-setting");
|
|
31
|
+
var _beauty = require("../../device-pretest/settings/beauty");
|
|
32
|
+
var _videoSettingsBasic = require("./video-settings-basic");
|
|
33
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
34
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
35
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2["default"])(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
36
|
+
var LocalVideoPlayer = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
37
|
+
return Promise.resolve().then(function () {
|
|
38
|
+
return _interopRequireWildcard(require('agora-ui-foundation/lib/components/local-video-player'));
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
var VideoSettings = exports.VideoSettings = (0, _mobxReact.observer)(function () {
|
|
42
|
+
var ns = (0, _useNamespace.useNamespace)('device-settings-video');
|
|
43
|
+
var containerRef = (0, _react.useRef)(null);
|
|
44
|
+
var _useState = (0, _react.useState)(null),
|
|
45
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
46
|
+
containerDom = _useState2[0],
|
|
47
|
+
setContainerDom = _useState2[1];
|
|
48
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
49
|
+
config = _useContext.config,
|
|
50
|
+
toggleLocalMirror = _useContext.toggleLocalMirror,
|
|
51
|
+
isLocalMirrorEnabled = _useContext.isLocalMirrorEnabled,
|
|
52
|
+
isLocalEditBeautyOptions = _useContext.isLocalEditBeautyOptions,
|
|
53
|
+
setVideoOrientation = _useContext.setVideoOrientation,
|
|
54
|
+
setBeautyOptions = _useContext.setBeautyOptions,
|
|
55
|
+
currentBeautyKey = _useContext.currentBeautyKey,
|
|
56
|
+
beautyOptions = _useContext.beautyOptions,
|
|
57
|
+
toggleLocalMirrorPreview = _useContext.toggleLocalMirrorPreview,
|
|
58
|
+
cameraDeviceId = _useContext.cameraDeviceId,
|
|
59
|
+
cameraEnabled = _useContext.cameraEnabled,
|
|
60
|
+
startVideo = _useContext.startVideo,
|
|
61
|
+
stopVideo = _useContext.stopVideo,
|
|
62
|
+
showForceOpenEffectDialog = _useContext.showForceOpenEffectDialog,
|
|
63
|
+
handleForceOpenVideoEffect = _useContext.handleForceOpenVideoEffect,
|
|
64
|
+
handleCancelForceOpenVideoEffect = _useContext.handleCancelForceOpenVideoEffect,
|
|
65
|
+
currentVirtualBackgroundName = _useContext.currentVirtualBackgroundName,
|
|
66
|
+
enableVirtualBackground = _useContext.enableVirtualBackground,
|
|
67
|
+
setEditBeautyKey = _useContext.setEditBeautyKey,
|
|
68
|
+
enableBeautyEffect = _useContext.enableBeautyEffect,
|
|
69
|
+
setCameraDevice = _useContext.setCameraDevice,
|
|
70
|
+
cameraDeviceList = _useContext.cameraDeviceList,
|
|
71
|
+
enableBeauty = _useContext.enableBeauty;
|
|
72
|
+
var _useState3 = (0, _react.useState)(beautyOptions[currentBeautyKey] || _store.DEFAULT_BEAUTY_VALUE),
|
|
73
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
74
|
+
currentEditValue = _useState4[0],
|
|
75
|
+
setCurrentEditValue = _useState4[1];
|
|
76
|
+
var _useState5 = (0, _react.useState)(_localVideoPlayer.VideoViewType.SELFIE_VIEW),
|
|
77
|
+
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
78
|
+
currentVideoViewType = _useState6[0],
|
|
79
|
+
setCurrentVideoViewType = _useState6[1];
|
|
80
|
+
var currentBeautyKeyRef = (0, _react.useRef)(currentBeautyKey);
|
|
81
|
+
(0, _react.useEffect)(function () {
|
|
82
|
+
if (!isLocalMirrorEnabled) {
|
|
83
|
+
setCurrentVideoViewType(_localVideoPlayer.VideoViewType.SELFIE_VIEW);
|
|
84
|
+
}
|
|
85
|
+
}, [isLocalMirrorEnabled]);
|
|
86
|
+
(0, _react.useEffect)(function () {
|
|
87
|
+
setContainerDom(containerRef.current);
|
|
88
|
+
}, []);
|
|
89
|
+
(0, _react.useEffect)(function () {
|
|
90
|
+
setCurrentEditValue(beautyOptions[currentBeautyKey] || _store.DEFAULT_BEAUTY_VALUE);
|
|
91
|
+
currentBeautyKeyRef.current = currentBeautyKey;
|
|
92
|
+
}, [currentBeautyKey]);
|
|
93
|
+
var handleBeautyValueChange = function handleBeautyValueChange(value) {
|
|
94
|
+
setCurrentEditValue(value);
|
|
95
|
+
setBeautyOptions((0, _defineProperty2["default"])({}, currentBeautyKeyRef.current, value));
|
|
96
|
+
};
|
|
97
|
+
var handleResetBeautyValueChange = function handleResetBeautyValueChange() {
|
|
98
|
+
setCurrentEditValue(_store.DEFAULT_BEAUTY_VALUE);
|
|
99
|
+
setBeautyOptions((0, _defineProperty2["default"])({}, currentBeautyKeyRef.current, _store.DEFAULT_BEAUTY_VALUE));
|
|
100
|
+
};
|
|
101
|
+
var handleVideoViewChange = function handleVideoViewChange(key) {
|
|
102
|
+
toggleLocalMirrorPreview(key === _localVideoPlayer.VideoViewType.SELFIE_VIEW);
|
|
103
|
+
setCurrentVideoViewType(key);
|
|
104
|
+
};
|
|
105
|
+
var _useState7 = (0, _react.useState)('basic'),
|
|
106
|
+
_useState8 = (0, _slicedToArray2["default"])(_useState7, 2),
|
|
107
|
+
activeTab = _useState8[0],
|
|
108
|
+
setActiveTab = _useState8[1];
|
|
109
|
+
var handleActiveTab = function handleActiveTab(tabKey) {
|
|
110
|
+
setActiveTab(tabKey);
|
|
111
|
+
};
|
|
112
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
113
|
+
className: ns.b(),
|
|
114
|
+
ref: containerRef,
|
|
115
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
116
|
+
fallback: 'loading...',
|
|
117
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(LocalVideoPlayer, {
|
|
118
|
+
isLocalMirrorEnabled: isLocalMirrorEnabled,
|
|
119
|
+
userName: (config === null || config === void 0 ? void 0 : config.userName) || '',
|
|
120
|
+
isLocalEditBeautyOptions: isLocalEditBeautyOptions,
|
|
121
|
+
handleResetBeautyValueChange: handleResetBeautyValueChange,
|
|
122
|
+
currentEditValue: currentEditValue,
|
|
123
|
+
containerDom: containerDom,
|
|
124
|
+
handleBeautyValueChange: handleBeautyValueChange,
|
|
125
|
+
setVideoOrientation: setVideoOrientation,
|
|
126
|
+
cameraDeviceId: cameraDeviceId,
|
|
127
|
+
cameraEnabled: cameraEnabled,
|
|
128
|
+
startLocalVideo: function startLocalVideo(view) {
|
|
129
|
+
startVideo(isLocalMirrorEnabled, view);
|
|
130
|
+
},
|
|
131
|
+
stopLocalVideo: stopVideo,
|
|
132
|
+
currentVideoViewType: currentVideoViewType,
|
|
133
|
+
handleVideoViewChange: handleVideoViewChange
|
|
134
|
+
})
|
|
135
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_videoEffect.VideoEffect, {
|
|
136
|
+
currentTab: activeTab,
|
|
137
|
+
handleActiveTab: handleActiveTab,
|
|
138
|
+
tabContents: {
|
|
139
|
+
'basic': /*#__PURE__*/(0, _jsxRuntime.jsx)(_videoSettingsBasic.VideoSettingsBasic, {
|
|
140
|
+
cameraDeviceId: cameraDeviceId !== null && cameraDeviceId !== void 0 ? cameraDeviceId : '',
|
|
141
|
+
setCameraDevice: setCameraDevice,
|
|
142
|
+
cameraDeviceList: cameraDeviceList
|
|
143
|
+
}),
|
|
144
|
+
'virtual-background': /*#__PURE__*/(0, _jsxRuntime.jsx)(_virtualBackgroundSetting.VirtualBackgroundSetting, {
|
|
145
|
+
currentVirtualBackgroundName: currentVirtualBackgroundName,
|
|
146
|
+
enableVirtualBackground: enableVirtualBackground
|
|
147
|
+
}),
|
|
148
|
+
'beauty-filter': /*#__PURE__*/(0, _jsxRuntime.jsx)(_beauty.Beauty, {
|
|
149
|
+
enableBeauty: enableBeauty,
|
|
150
|
+
setEditBeautyKey: setEditBeautyKey,
|
|
151
|
+
currentBeautyKey: currentBeautyKey,
|
|
152
|
+
enableBeautyEffect: enableBeautyEffect,
|
|
153
|
+
beautySettingOption: beautyOptions
|
|
154
|
+
})
|
|
155
|
+
},
|
|
156
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
157
|
+
className: ns.e('mirror-video'),
|
|
158
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
159
|
+
label: "\u955C\u50CF\u6211\u7684\u89C6\u9891",
|
|
160
|
+
checked: isLocalMirrorEnabled,
|
|
161
|
+
onChange: function onChange(enable) {
|
|
162
|
+
toggleLocalMirror(enable);
|
|
163
|
+
if (enable) {
|
|
164
|
+
setCurrentVideoViewType(_localVideoPlayer.VideoViewType.SELFIE_VIEW);
|
|
165
|
+
} else {
|
|
166
|
+
setCurrentVideoViewType(_localVideoPlayer.VideoViewType.CAMERA_VIEW);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
})
|
|
170
|
+
})
|
|
171
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialog.FcrBasicConfirmDialog, {
|
|
172
|
+
visible: showForceOpenEffectDialog,
|
|
173
|
+
onOk: handleForceOpenVideoEffect,
|
|
174
|
+
getContainer: function getContainer() {
|
|
175
|
+
return containerRef.current;
|
|
176
|
+
},
|
|
177
|
+
onCancel: handleCancelForceOpenVideoEffect,
|
|
178
|
+
title: "\u8BBE\u5907\u6027\u80FD\u8FC7\u4F4E\uFF0C\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u7279\u6548",
|
|
179
|
+
text: "\u4F60\u7684\u8BBE\u5907\u6027\u80FD\u8BC4\u5206\u4F4E\u4E8E\u6700\u4F73\u4F53\u9A8C\u7684\u8981\u6C42\uFF0C\u5982\u679C\u542F\u7528\u5F53\u524D\u529F\u80FD\u53EF\u80FD\u4F1A\u5BFC\u81F4\u8BBE\u5907\u53D1\u70ED\u548C\u5361\u987F",
|
|
180
|
+
cancelText: "\u53D6\u6D88",
|
|
181
|
+
okText: "\u786E\u5B9A\u5F00\u542F"
|
|
182
|
+
})]
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
var _default = exports["default"] = VideoSettings;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
import './state/index.css';
|
|
4
|
+
import './video-settings/index.css';
|
|
5
|
+
import './audio-settings/index.css';
|
|
6
|
+
import './storage-settings/index.css';
|
|
7
|
+
import 'agora-ui-foundation/lib/components/tabs/index.css';
|
|
8
|
+
import 'agora-ui-foundation/lib/components/volume-indicator/index.css';
|
|
9
|
+
import 'agora-ui-foundation/lib/components/slider/index.css';
|
|
10
|
+
export declare const DeviceSettingsView: FC;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.DeviceSettingsView = void 0;
|
|
8
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
require("core-js/modules/es.array.iterator.js");
|
|
11
|
+
require("core-js/modules/es.object.define-property.js");
|
|
12
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
13
|
+
require("core-js/modules/es.object.to-string.js");
|
|
14
|
+
require("core-js/modules/es.promise.js");
|
|
15
|
+
require("core-js/modules/es.string.iterator.js");
|
|
16
|
+
require("core-js/modules/es.weak-map.js");
|
|
17
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
18
|
+
var _react = require("react");
|
|
19
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
20
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
21
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
22
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
23
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
24
|
+
var _useNamespace = require("./common/useNamespace");
|
|
25
|
+
var _mobxReact = require("mobx-react");
|
|
26
|
+
var _context = require("./context");
|
|
27
|
+
var _store = require("./store");
|
|
28
|
+
require("./index.css");
|
|
29
|
+
require("./state/index.css");
|
|
30
|
+
require("./video-settings/index.css");
|
|
31
|
+
require("./audio-settings/index.css");
|
|
32
|
+
require("./storage-settings/index.css");
|
|
33
|
+
require("agora-ui-foundation/lib/components/tabs/index.css");
|
|
34
|
+
require("agora-ui-foundation/lib/components/volume-indicator/index.css");
|
|
35
|
+
require("agora-ui-foundation/lib/components/slider/index.css");
|
|
36
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
37
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
38
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2["default"])(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; } // import { State } from './state';
|
|
39
|
+
// import { AudioSettings } from './audio-settings/audio-settings';
|
|
40
|
+
// import { VideoSettings } from './video-settings/video-settings';
|
|
41
|
+
// import { StorageSettings } from './storage-settings/storage-settings';
|
|
42
|
+
// import { State } from './state';
|
|
43
|
+
var State = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
44
|
+
return Promise.resolve().then(function () {
|
|
45
|
+
return _interopRequireWildcard(require('./state'));
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
var AudioSettings = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
49
|
+
return Promise.resolve().then(function () {
|
|
50
|
+
return _interopRequireWildcard(require('./audio-settings/audio-settings'));
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
var VideoSettings = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
54
|
+
return Promise.resolve().then(function () {
|
|
55
|
+
return _interopRequireWildcard(require('./video-settings/video-settings'));
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
var StorageSettings = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
59
|
+
return Promise.resolve().then(function () {
|
|
60
|
+
return _interopRequireWildcard(require('./storage-settings/storage-settings'));
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
var GeneralSettings = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
64
|
+
return Promise.resolve().then(function () {
|
|
65
|
+
return _interopRequireWildcard(require('./general-settings/general-settings'));
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
var tabContents = (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _store.DeviceSettingTab.GENERAL, /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
69
|
+
fallback: 'loading...',
|
|
70
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(GeneralSettings, {})
|
|
71
|
+
})), _store.DeviceSettingTab.AUDIO, /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
72
|
+
fallback: 'loading...',
|
|
73
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AudioSettings, {})
|
|
74
|
+
})), _store.DeviceSettingTab.VIDEO, /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
75
|
+
fallback: 'loading...',
|
|
76
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(VideoSettings, {})
|
|
77
|
+
})), _store.DeviceSettingTab.STORAGE, /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
78
|
+
fallback: 'loading...',
|
|
79
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(StorageSettings, {})
|
|
80
|
+
})), _store.DeviceSettingTab.STATE, /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
81
|
+
fallback: 'loading...',
|
|
82
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(State, {})
|
|
83
|
+
}));
|
|
84
|
+
var DeviceSettingsView = exports.DeviceSettingsView = (0, _mobxReact.observer)(function () {
|
|
85
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
86
|
+
dialogConfig = _useContext.dialogConfig,
|
|
87
|
+
setDialogConfig = _useContext.setDialogConfig;
|
|
88
|
+
var t = (0, _i18n.useI18n)();
|
|
89
|
+
var ns = (0, _useNamespace.useNamespace)('device-settings');
|
|
90
|
+
var getListItemCls = function getListItemCls(tabKey) {
|
|
91
|
+
return (0, _classnames["default"])(ns.e('nav-list-item'), ns.is('active', dialogConfig.activeTab === tabKey));
|
|
92
|
+
};
|
|
93
|
+
var getSurroundingCls = function getSurroundingCls(color) {
|
|
94
|
+
return (0, _classnames["default"])(ns.e('surrounding'), ns.em('surrounding', color));
|
|
95
|
+
};
|
|
96
|
+
var tabClickHandler = function tabClickHandler(tabKey) {
|
|
97
|
+
return function () {
|
|
98
|
+
setDialogConfig({
|
|
99
|
+
activeTab: tabKey
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
104
|
+
className: ns.b(),
|
|
105
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
106
|
+
className: ns.e('nav'),
|
|
107
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", {
|
|
108
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
109
|
+
className: getListItemCls(_store.DeviceSettingTab.GENERAL),
|
|
110
|
+
onClick: tabClickHandler(_store.DeviceSettingTab.GENERAL),
|
|
111
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
112
|
+
className: getSurroundingCls('orange'),
|
|
113
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
114
|
+
type: _type.FcrIconType.FCR_SETTING,
|
|
115
|
+
colors: {
|
|
116
|
+
iconPrimary: 'white'
|
|
117
|
+
},
|
|
118
|
+
size: 24
|
|
119
|
+
})
|
|
120
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
121
|
+
children: "\u5E38\u89C4\u8BBE\u7F6E"
|
|
122
|
+
})]
|
|
123
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
124
|
+
className: getListItemCls(_store.DeviceSettingTab.AUDIO),
|
|
125
|
+
onClick: tabClickHandler(_store.DeviceSettingTab.AUDIO),
|
|
126
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
127
|
+
className: getSurroundingCls('green'),
|
|
128
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
129
|
+
type: _type.FcrIconType.FCR_MUTE,
|
|
130
|
+
colors: {
|
|
131
|
+
iconPrimary: 'white'
|
|
132
|
+
},
|
|
133
|
+
size: 24
|
|
134
|
+
})
|
|
135
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
136
|
+
children: t('device_option_voice')
|
|
137
|
+
})]
|
|
138
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
139
|
+
className: getListItemCls(_store.DeviceSettingTab.VIDEO),
|
|
140
|
+
onClick: tabClickHandler(_store.DeviceSettingTab.VIDEO),
|
|
141
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
142
|
+
className: getSurroundingCls('purple'),
|
|
143
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
144
|
+
type: _type.FcrIconType.FCR_CAMERA,
|
|
145
|
+
colors: {
|
|
146
|
+
iconPrimary: 'white'
|
|
147
|
+
},
|
|
148
|
+
size: 24
|
|
149
|
+
})
|
|
150
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
151
|
+
children: t('device_option_video')
|
|
152
|
+
})]
|
|
153
|
+
}), (0, _env.isElectron)() && /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
154
|
+
className: getListItemCls(_store.DeviceSettingTab.STORAGE),
|
|
155
|
+
onClick: tabClickHandler(_store.DeviceSettingTab.STORAGE),
|
|
156
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
157
|
+
className: getSurroundingCls('storage'),
|
|
158
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
159
|
+
style: {
|
|
160
|
+
width: 24,
|
|
161
|
+
height: 22,
|
|
162
|
+
borderRadius: 6,
|
|
163
|
+
display: 'inline-block'
|
|
164
|
+
}
|
|
165
|
+
})
|
|
166
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
167
|
+
children: t('device_option_storage')
|
|
168
|
+
})]
|
|
169
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
170
|
+
className: getListItemCls(_store.DeviceSettingTab.STATE),
|
|
171
|
+
onClick: tabClickHandler(_store.DeviceSettingTab.STATE),
|
|
172
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
173
|
+
className: getSurroundingCls('blue'),
|
|
174
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
175
|
+
type: _type.FcrIconType.FCR_COMPUTERDATA,
|
|
176
|
+
colors: {
|
|
177
|
+
iconPrimary: 'white'
|
|
178
|
+
},
|
|
179
|
+
size: 24
|
|
180
|
+
})
|
|
181
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
182
|
+
children: "\u8D28\u91CF\u7EDF\u8BA1"
|
|
183
|
+
})]
|
|
184
|
+
})]
|
|
185
|
+
})
|
|
186
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
187
|
+
className: (0, _classnames["default"])(ns.e('tab-content-wrapper'), ns.is('tab-content-video-wrapper', dialogConfig.activeTab === 'video'), {
|
|
188
|
+
'is-electron': (0, _env.isElectron)()
|
|
189
|
+
}),
|
|
190
|
+
children: tabContents[dialogConfig.activeTab]
|
|
191
|
+
})]
|
|
192
|
+
});
|
|
193
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
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.ChatElectronDialog = void 0;
|
|
8
|
+
var _mobxReact = require("mobx-react");
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
var _context = require("../../context");
|
|
11
|
+
var _dialogs = require("../../dialogs");
|
|
12
|
+
var _constant = require("../../../../utilities/constant");
|
|
13
|
+
var _renderer = require("../../../../utilities/renderer");
|
|
14
|
+
var _reactDom = require("react-dom");
|
|
15
|
+
var _ = require(".");
|
|
16
|
+
var _platform = require("../../../../utilities/platform");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
var ChatElectronDialog = exports.ChatElectronDialog = (0, _mobxReact.observer)(function (_ref) {
|
|
19
|
+
var children = _ref.children,
|
|
20
|
+
chatAction = _ref.chatAction;
|
|
21
|
+
var store = (0, _react.useContext)(_context.StoreContext);
|
|
22
|
+
(0, _react.useEffect)(function () {
|
|
23
|
+
var node;
|
|
24
|
+
window.runtime.openRendererWindow('chat', function (dom, browserWindow) {
|
|
25
|
+
_dialogs.dialogWindows.set(_constant.DialogKey.CHAT, browserWindow);
|
|
26
|
+
node = dom;
|
|
27
|
+
(0, _platform.isWindows)() && browserWindow.show(); // 修复 windows 下打开白屏的问题
|
|
28
|
+
|
|
29
|
+
if (store.currentDialogBounds.height) {
|
|
30
|
+
(0, _dialogs.setDialogBounds)(browserWindow, {
|
|
31
|
+
y: store.currentDialogBounds.y
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
(0, _renderer.handleWillClose)(browserWindow, function () {
|
|
35
|
+
(0, _reactDom.unmountComponentAtNode)(node);
|
|
36
|
+
_dialogs.dialogWindows["delete"](_constant.DialogKey.CHAT);
|
|
37
|
+
store.closeChatFromDialog();
|
|
38
|
+
});
|
|
39
|
+
(0, _reactDom.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.StoreContext.Provider, {
|
|
40
|
+
value: store,
|
|
41
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.ChatDialogContent, {
|
|
42
|
+
chatAction: chatAction,
|
|
43
|
+
children: children
|
|
44
|
+
})
|
|
45
|
+
}), dom);
|
|
46
|
+
}, {
|
|
47
|
+
frame: false,
|
|
48
|
+
fullscreen: false,
|
|
49
|
+
maximizable: false,
|
|
50
|
+
y: store.currentDialogBounds.y,
|
|
51
|
+
show: !(0, _platform.isWindows)()
|
|
52
|
+
});
|
|
53
|
+
return function () {
|
|
54
|
+
node && (0, _reactDom.unmountComponentAtNode)(node);
|
|
55
|
+
window.runtime.closeRendererWindow('chat');
|
|
56
|
+
};
|
|
57
|
+
}, []);
|
|
58
|
+
return null;
|
|
59
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export declare const ChatDialogContent: ({ children, chatAction, }: PropsWithChildren<{
|
|
3
|
+
chatAction: React.ReactNode;
|
|
4
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ChatDialog: ({ children, chatAction }: PropsWithChildren<{
|
|
6
|
+
chatAction: React.ReactNode;
|
|
7
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.ChatDialogContent = exports.ChatDialog = void 0;
|
|
8
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
9
|
+
var _mobxReact = require("mobx-react");
|
|
10
|
+
var _react = require("react");
|
|
11
|
+
var _reactRnd = require("react-rnd");
|
|
12
|
+
var _context = require("../../context");
|
|
13
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
14
|
+
var _windowHeader = require("agora-ui-foundation/lib/components/window-header");
|
|
15
|
+
var _type = require("agora-edu-core/lib/type");
|
|
16
|
+
var _electron = require("./electron");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
var ChatDialogContent = exports.ChatDialogContent = (0, _mobxReact.observer)(function (_ref) {
|
|
19
|
+
var children = _ref.children,
|
|
20
|
+
chatAction = _ref.chatAction;
|
|
21
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
22
|
+
closeChatFromDialog = _useContext.closeChatFromDialog,
|
|
23
|
+
moveChatFromDialogToAside = _useContext.moveChatFromDialogToAside,
|
|
24
|
+
chatRoomState = _useContext.chatRoomState;
|
|
25
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
26
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
27
|
+
className: "fcr-chat-dialog-wrapper",
|
|
28
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_windowHeader.FcrWindowHeader, {
|
|
29
|
+
showClose: true,
|
|
30
|
+
rootClassName: 'chat-can-draggable',
|
|
31
|
+
title: chatRoomState === _type.FcrChatRoomConnectionState.Connected ? transI18n('fmt_chat_label_chat') : transI18n('fmt_aside_status_connecting'),
|
|
32
|
+
onTypeChange: moveChatFromDialogToAside,
|
|
33
|
+
onClose: closeChatFromDialog,
|
|
34
|
+
otherActions: chatAction,
|
|
35
|
+
type: _windowHeader.WindowType.WINDOW
|
|
36
|
+
}), children]
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var ChatDialog = exports.ChatDialog = (0, _mobxReact.observer)(function (_ref2) {
|
|
40
|
+
var children = _ref2.children,
|
|
41
|
+
chatAction = _ref2.chatAction;
|
|
42
|
+
if ((0, _env.isElectron)()) {
|
|
43
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_electron.ChatElectronDialog, {
|
|
44
|
+
chatAction: chatAction,
|
|
45
|
+
children: children
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
var width = window.innerWidth;
|
|
49
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRnd.Rnd, {
|
|
50
|
+
"default": {
|
|
51
|
+
width: 320,
|
|
52
|
+
height: 350,
|
|
53
|
+
x: width / 2 - 320 / 2,
|
|
54
|
+
y: 0
|
|
55
|
+
},
|
|
56
|
+
bounds: '.fcr-layout-content',
|
|
57
|
+
cancel: ".frc-window-header__operates",
|
|
58
|
+
minWidth: 320,
|
|
59
|
+
minHeight: 350,
|
|
60
|
+
dragHandleClassName: "chat-can-draggable",
|
|
61
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ChatDialogContent, {
|
|
62
|
+
chatAction: chatAction,
|
|
63
|
+
children: children
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { ConfirmContentProps } from 'agora-ui-foundation/lib/components/confirm-content';
|
|
3
|
+
declare const ConfirmElectronDialog: ({ children, params, }: PropsWithChildren<{
|
|
4
|
+
params: Partial<ConfirmContentProps> & {
|
|
5
|
+
height?: number;
|
|
6
|
+
x?: number;
|
|
7
|
+
y?: number;
|
|
8
|
+
};
|
|
9
|
+
}>) => null;
|
|
10
|
+
export default ConfirmElectronDialog;
|
|
@@ -0,0 +1,84 @@
|
|
|
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["default"] = void 0;
|
|
9
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
+
var _mobxReact = require("mobx-react");
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
var _context2 = require("../../context");
|
|
14
|
+
var _reactDom = require("react-dom");
|
|
15
|
+
var _renderer = require("../../../../utilities/renderer");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
var ConfirmElectronDialog = (0, _mobxReact.observer)(function (_ref) {
|
|
18
|
+
var children = _ref.children,
|
|
19
|
+
params = _ref.params;
|
|
20
|
+
var store = (0, _react.useContext)(_context2.StoreContext);
|
|
21
|
+
(0, _react.useEffect)(function () {
|
|
22
|
+
var node;
|
|
23
|
+
(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
24
|
+
var _ref3, x, y;
|
|
25
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
26
|
+
while (1) switch (_context.prev = _context.next) {
|
|
27
|
+
case 0:
|
|
28
|
+
_context.next = 2;
|
|
29
|
+
return store.setWorkArea();
|
|
30
|
+
case 2:
|
|
31
|
+
_context.t0 = _context.sent;
|
|
32
|
+
if (_context.t0) {
|
|
33
|
+
_context.next = 5;
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
_context.t0 = {
|
|
37
|
+
x: 0,
|
|
38
|
+
y: 0
|
|
39
|
+
};
|
|
40
|
+
case 5:
|
|
41
|
+
_ref3 = _context.t0;
|
|
42
|
+
x = _ref3.x;
|
|
43
|
+
y = _ref3.y;
|
|
44
|
+
window.runtime.openRendererWindow('confirm-dialog', function (dom, browserWindow) {
|
|
45
|
+
node = dom;
|
|
46
|
+
browserWindow.focus(); // 这里打开的confirm dialog 不会走 openRendererWindow 中的 focus 逻辑,所以单独 focus 一下
|
|
47
|
+
|
|
48
|
+
(0, _renderer.handleWillClose)(browserWindow, function () {
|
|
49
|
+
(0, _reactDom.unmountComponentAtNode)(node);
|
|
50
|
+
});
|
|
51
|
+
(0, _reactDom.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_context2.StoreContext.Provider, {
|
|
52
|
+
value: store,
|
|
53
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
54
|
+
className: "fcr-confirm-dialog-wrapper",
|
|
55
|
+
children: children
|
|
56
|
+
})
|
|
57
|
+
}), dom);
|
|
58
|
+
}, {
|
|
59
|
+
frame: false,
|
|
60
|
+
fullscreen: false,
|
|
61
|
+
maximizable: false,
|
|
62
|
+
width: (params === null || params === void 0 ? void 0 : params.width) || 415,
|
|
63
|
+
height: (params === null || params === void 0 ? void 0 : params.height) || 190,
|
|
64
|
+
minWidth: 255,
|
|
65
|
+
minHeight: 160,
|
|
66
|
+
maxWidth: 620,
|
|
67
|
+
maxHeight: 700,
|
|
68
|
+
x: x + ((params === null || params === void 0 ? void 0 : params.x) || 0),
|
|
69
|
+
y: y + ((params === null || params === void 0 ? void 0 : params.y) || 0)
|
|
70
|
+
});
|
|
71
|
+
case 9:
|
|
72
|
+
case "end":
|
|
73
|
+
return _context.stop();
|
|
74
|
+
}
|
|
75
|
+
}, _callee);
|
|
76
|
+
}))();
|
|
77
|
+
return function () {
|
|
78
|
+
node && (0, _reactDom.unmountComponentAtNode)(node);
|
|
79
|
+
window.runtime.closeRendererWindow('confirm-dialog');
|
|
80
|
+
};
|
|
81
|
+
}, []);
|
|
82
|
+
return null;
|
|
83
|
+
});
|
|
84
|
+
var _default = exports["default"] = ConfirmElectronDialog;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { ConfirmContentProps } from 'agora-ui-foundation/lib/components/confirm-content';
|
|
3
|
+
export declare const ConfirmDialog: FC<PropsWithChildren<{
|
|
4
|
+
dialogType: string;
|
|
5
|
+
params: (ConfirmContentProps & {
|
|
6
|
+
height?: number;
|
|
7
|
+
x?: number;
|
|
8
|
+
y?: number;
|
|
9
|
+
}) | undefined;
|
|
10
|
+
}>>;
|