fcr-ui-scene 1.0.20 → 3.1.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base.d.ts +13 -0
- package/lib/base.js +78 -0
- package/lib/common/device-store.d.ts +140 -0
- package/lib/common/device-store.js +1378 -0
- package/lib/common/device-stream-store.d.ts +36 -0
- package/lib/common/device-stream-store.js +372 -0
- package/lib/common/event-store.d.ts +118 -0
- package/lib/common/event-store.js +235 -0
- package/lib/common/security-store.d.ts +123 -0
- package/lib/common/security-store.js +978 -0
- package/lib/creator.d.ts +8 -0
- package/lib/creator.js +37 -0
- package/lib/electron/app.d.ts +1 -0
- package/lib/electron/app.js +140 -0
- package/lib/electron/default-options.d.ts +2 -0
- package/lib/electron/default-options.js +26 -0
- package/lib/electron/env.d.ts +5 -0
- package/lib/electron/env.js +13 -0
- package/lib/electron/index.d.ts +2 -0
- package/lib/electron/index.js +20 -0
- package/lib/electron/injections.d.ts +45 -0
- package/lib/electron/injections.js +689 -0
- package/lib/electron/main.d.ts +2 -0
- package/lib/electron/main.js +63 -0
- package/lib/electron/plugins/screenshot.d.ts +2 -0
- package/lib/electron/plugins/screenshot.js +49 -0
- package/lib/electron/preload.js +35 -0
- package/lib/electron/tools.d.ts +5 -0
- package/lib/electron/tools.js +57 -0
- package/lib/electron/window.d.ts +12 -0
- package/lib/electron/window.js +107 -0
- package/lib/fragments/base.d.ts +10 -0
- package/lib/fragments/base.js +44 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.d.ts +1 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.js +67 -0
- package/lib/fragments/control-bar/context.d.ts +3 -0
- package/lib/fragments/control-bar/context.js +9 -0
- package/lib/fragments/control-bar/control-bar-store.d.ts +152 -0
- package/lib/fragments/control-bar/control-bar-store.js +1275 -0
- package/lib/fragments/control-bar/device/index.d.ts +31 -0
- package/lib/fragments/control-bar/device/index.js +203 -0
- package/lib/fragments/control-bar/index.css +276 -0
- package/lib/fragments/control-bar/index.d.ts +26 -0
- package/lib/fragments/control-bar/index.js +223 -0
- package/lib/fragments/control-bar/more-actions/index.css +19 -0
- package/lib/fragments/control-bar/more-actions/index.d.ts +7 -0
- package/lib/fragments/control-bar/more-actions/index.js +259 -0
- package/lib/fragments/control-bar/security-content/index.css +24 -0
- package/lib/fragments/control-bar/security-content/index.d.ts +2 -0
- package/lib/fragments/control-bar/security-content/index.js +145 -0
- package/lib/fragments/control-bar/share-state-nav/index.css +70 -0
- package/lib/fragments/control-bar/share-state-nav/index.d.ts +10 -0
- package/lib/fragments/control-bar/share-state-nav/index.js +134 -0
- package/lib/fragments/control-bar/stop-live-streaming/index.d.ts +1 -0
- package/lib/fragments/control-bar/stop-live-streaming/index.js +82 -0
- package/lib/fragments/control-bar/transfer-position-icon/index.d.ts +11 -0
- package/lib/fragments/control-bar/transfer-position-icon/index.js +46 -0
- package/lib/fragments/control-bar/view.d.ts +1 -0
- package/lib/fragments/control-bar/view.js +321 -0
- package/lib/fragments/live-streaming/context.d.ts +3 -0
- package/lib/fragments/live-streaming/context.js +9 -0
- package/lib/fragments/live-streaming/index.css +11 -0
- package/lib/fragments/live-streaming/index.d.ts +11 -0
- package/lib/fragments/live-streaming/index.js +79 -0
- package/lib/fragments/live-streaming/store.d.ts +21 -0
- package/lib/fragments/live-streaming/store.js +228 -0
- package/lib/fragments/live-streaming/view.d.ts +2 -0
- package/lib/fragments/live-streaming/view.js +44 -0
- package/lib/fragments/share-screen-selection/context.d.ts +3 -0
- package/lib/fragments/share-screen-selection/context.js +9 -0
- package/lib/fragments/share-screen-selection/index.css +66 -0
- package/lib/fragments/share-screen-selection/index.d.ts +9 -0
- package/lib/fragments/share-screen-selection/index.js +94 -0
- package/lib/fragments/share-screen-selection/open-mic-tips.d.ts +9 -0
- package/lib/fragments/share-screen-selection/open-mic-tips.js +55 -0
- package/lib/fragments/share-screen-selection/selection-store.d.ts +36 -0
- package/lib/fragments/share-screen-selection/selection-store.js +351 -0
- package/lib/fragments/share-screen-selection/tips.css +33 -0
- package/lib/fragments/share-screen-selection/view.d.ts +9 -0
- package/lib/fragments/share-screen-selection/view.js +255 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +54 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +114 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +75 -0
- package/lib/fragments/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +53 -0
- package/lib/fragments/toolbar/components/color-picker.d.ts +2 -0
- package/lib/fragments/toolbar/components/color-picker.js +127 -0
- package/lib/fragments/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/eraser-picker.js +84 -0
- package/lib/fragments/toolbar/components/extension-toolbar-item.d.ts +1 -0
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +78 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +60 -0
- package/lib/fragments/toolbar/components/fold-icon.d.ts +2 -0
- package/lib/fragments/toolbar/components/fold-icon.js +41 -0
- package/lib/fragments/toolbar/components/history.d.ts +2 -0
- package/lib/fragments/toolbar/components/history.js +46 -0
- package/lib/fragments/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +132 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +84 -0
- package/lib/fragments/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/fragments/toolbar/components/shape-picker.js +146 -0
- package/lib/fragments/toolbar/components/toolbar-item.d.ts +1 -0
- package/lib/fragments/toolbar/components/toolbar-item.js +42 -0
- package/lib/fragments/toolbar/components/wrapper.d.ts +1 -0
- package/lib/fragments/toolbar/components/wrapper.js +138 -0
- package/lib/fragments/toolbar/hooks.d.ts +16 -0
- package/lib/fragments/toolbar/hooks.js +251 -0
- package/lib/fragments/toolbar/index.d.ts +12 -0
- package/lib/fragments/toolbar/index.js +80 -0
- package/lib/fragments/toolbar/store.d.ts +62 -0
- package/lib/fragments/toolbar/store.js +279 -0
- package/lib/fragments/toolbar/style.css +347 -0
- package/lib/fragments/toolbar/view.d.ts +1 -0
- package/lib/fragments/toolbar/view.js +34 -0
- package/lib/global.d.ts +8 -0
- package/lib/hooks/i18n.d.ts +4 -0
- package/lib/hooks/i18n.js +18 -0
- package/lib/hooks/meeting-time.d.ts +15 -0
- package/lib/hooks/meeting-time.js +92 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +52 -0
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +17 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +199 -0
- package/lib/modules/action-bar/board/index.d.ts +4 -0
- package/lib/modules/action-bar/board/index.js +34 -0
- package/lib/modules/action-bar/breakout-room/index.d.ts +4 -0
- package/lib/modules/action-bar/breakout-room/index.js +32 -0
- package/lib/modules/action-bar/chat/index.css +80 -0
- package/lib/modules/action-bar/chat/index.d.ts +5 -0
- package/lib/modules/action-bar/chat/index.js +152 -0
- package/lib/modules/action-bar/context.d.ts +3 -0
- package/lib/modules/action-bar/context.js +9 -0
- package/lib/modules/action-bar/device/index.css +157 -0
- package/lib/modules/action-bar/device/index.d.ts +8 -0
- package/lib/modules/action-bar/device/index.js +611 -0
- package/lib/modules/action-bar/index.css +212 -0
- package/lib/modules/action-bar/index.d.ts +25 -0
- package/lib/modules/action-bar/index.dev.d.ts +1 -0
- package/lib/modules/action-bar/index.dev.js +96 -0
- package/lib/modules/action-bar/index.js +89 -0
- package/lib/modules/action-bar/item-placement.d.ts +8 -0
- package/lib/modules/action-bar/item-placement.js +18 -0
- package/lib/modules/action-bar/item.d.ts +27 -0
- package/lib/modules/action-bar/item.js +154 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +8 -0
- package/lib/modules/action-bar/leave/assign-host.js +64 -0
- package/lib/modules/action-bar/leave/index.css +116 -0
- package/lib/modules/action-bar/leave/index.d.ts +3 -0
- package/lib/modules/action-bar/leave/index.js +110 -0
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +7 -0
- package/lib/modules/action-bar/leave/leave-meeting.js +135 -0
- package/lib/modules/action-bar/live-streaming/index.d.ts +4 -0
- package/lib/modules/action-bar/live-streaming/index.js +39 -0
- package/lib/modules/action-bar/more/index.css +114 -0
- package/lib/modules/action-bar/more/index.d.ts +5 -0
- package/lib/modules/action-bar/more/index.js +80 -0
- package/lib/modules/action-bar/more/poppover-content.d.ts +9 -0
- package/lib/modules/action-bar/more/poppover-content.js +369 -0
- package/lib/modules/action-bar/participants/index.css +9 -0
- package/lib/modules/action-bar/participants/index.d.ts +5 -0
- package/lib/modules/action-bar/participants/index.js +75 -0
- package/lib/modules/action-bar/record/index.css +39 -0
- package/lib/modules/action-bar/record/index.d.ts +5 -0
- package/lib/modules/action-bar/record/index.js +161 -0
- package/lib/modules/action-bar/record/stop-record-dialog.d.ts +5 -0
- package/lib/modules/action-bar/record/stop-record-dialog.js +48 -0
- package/lib/modules/action-bar/respond/index.d.ts +4 -0
- package/lib/modules/action-bar/respond/index.js +32 -0
- package/lib/modules/action-bar/screen-share/index.d.ts +4 -0
- package/lib/modules/action-bar/screen-share/index.js +97 -0
- package/lib/modules/action-bar/screen-share/submenu.d.ts +1 -0
- package/lib/modules/action-bar/screen-share/submenu.js +159 -0
- package/lib/modules/action-bar/security/drop-menu.d.ts +1 -0
- package/lib/modules/action-bar/security/drop-menu.js +164 -0
- package/lib/modules/action-bar/security/index.d.ts +4 -0
- package/lib/modules/action-bar/security/index.js +50 -0
- package/lib/modules/action-bar/settings/index.d.ts +4 -0
- package/lib/modules/action-bar/settings/index.js +41 -0
- package/lib/modules/action-bar/smaller.d.ts +1 -0
- package/lib/modules/action-bar/smaller.js +52 -0
- package/lib/modules/action-bar/store.d.ts +177 -0
- package/lib/modules/action-bar/store.js +1179 -0
- package/lib/modules/action-bar/type.d.ts +6 -0
- package/lib/modules/action-bar/type.js +13 -0
- package/lib/modules/action-bar/view.d.ts +5 -0
- package/lib/modules/action-bar/view.js +80 -0
- package/lib/modules/audio-stream/index.d.ts +21 -0
- package/lib/modules/audio-stream/index.js +119 -0
- package/lib/modules/chat/chat-bar/index.css +79 -0
- package/lib/modules/chat/chat-bar/index.d.ts +11 -0
- package/lib/modules/chat/chat-bar/index.js +125 -0
- package/lib/modules/chat/chat-select/index.css +156 -0
- package/lib/modules/chat/chat-select/index.d.ts +13 -0
- package/lib/modules/chat/chat-select/index.js +186 -0
- package/lib/modules/chat/chat.d.ts +12 -0
- package/lib/modules/chat/chat.js +295 -0
- package/lib/modules/chat/contex.d.ts +3 -0
- package/lib/modules/chat/contex.js +9 -0
- package/lib/modules/chat/demo-wrapper.d.ts +2 -0
- package/lib/modules/chat/demo-wrapper.js +42 -0
- package/lib/modules/chat/index.css +17 -0
- package/lib/modules/chat/index.d.ts +29 -0
- package/lib/modules/chat/index.dev.d.ts +1 -0
- package/lib/modules/chat/index.dev.js +58 -0
- package/lib/modules/chat/index.js +189 -0
- package/lib/modules/chat/message-list.d.ts +22 -0
- package/lib/modules/chat/message-list.js +595 -0
- package/lib/modules/chat/mock.d.ts +2 -0
- package/lib/modules/chat/mock.js +283 -0
- package/lib/modules/chat/store.d.ts +132 -0
- package/lib/modules/chat/store.js +923 -0
- package/lib/modules/chat/util.d.ts +6 -0
- package/lib/modules/chat/util.js +69 -0
- package/lib/modules/connection-gateway/components/computer/index.css +11 -0
- package/lib/modules/connection-gateway/components/computer/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/computer/index.js +66 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +10 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +75 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.css +72 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.d.ts +7 -0
- package/lib/modules/connection-gateway/components/phone/components/calling/index.js +58 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +10 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.d.ts +5 -0
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.js +24 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.css +46 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/phone/components/useing/index.js +36 -0
- package/lib/modules/connection-gateway/components/phone/index.css +49 -0
- package/lib/modules/connection-gateway/components/phone/index.d.ts +3 -0
- package/lib/modules/connection-gateway/components/phone/index.js +181 -0
- package/lib/modules/connection-gateway/components/tabs/index.css +31 -0
- package/lib/modules/connection-gateway/components/tabs/index.d.ts +4 -0
- package/lib/modules/connection-gateway/components/tabs/index.js +43 -0
- package/lib/modules/connection-gateway/index.css +6 -0
- package/lib/modules/connection-gateway/index.d.ts +16 -0
- package/lib/modules/connection-gateway/index.js +67 -0
- package/lib/modules/connection-gateway/store.d.ts +80 -0
- package/lib/modules/connection-gateway/store.js +698 -0
- package/lib/modules/connection-gateway/view.d.ts +1 -0
- package/lib/modules/connection-gateway/view.js +22 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +13 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +15 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +12 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +71 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +2 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +63 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.d.ts +12 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +71 -0
- package/lib/modules/device-pretest/context.d.ts +3 -0
- package/lib/modules/device-pretest/context.js +9 -0
- package/lib/modules/device-pretest/index.css +127 -0
- package/lib/modules/device-pretest/index.d.ts +13 -0
- package/lib/modules/device-pretest/index.js +242 -0
- package/lib/modules/device-pretest/settings/beauty.d.ts +10 -0
- package/lib/modules/device-pretest/settings/beauty.js +103 -0
- package/lib/modules/device-pretest/settings/camera-select.d.ts +12 -0
- package/lib/modules/device-pretest/settings/camera-select.js +53 -0
- package/lib/modules/device-pretest/settings/index.css +15 -0
- package/lib/modules/device-pretest/settings/video-effect.d.ts +12 -0
- package/lib/modules/device-pretest/settings/video-effect.js +50 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.d.ts +2 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.js +143 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.d.ts +7 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +99 -0
- package/lib/modules/device-pretest/store.d.ts +69 -0
- package/lib/modules/device-pretest/store.js +413 -0
- package/lib/modules/dialog/components/chat/electron.d.ts +4 -0
- package/lib/modules/dialog/components/chat/electron.js +59 -0
- package/lib/modules/dialog/components/chat/index.d.ts +7 -0
- package/lib/modules/dialog/components/chat/index.js +66 -0
- package/lib/modules/dialog/components/confirm/electron.d.ts +10 -0
- package/lib/modules/dialog/components/confirm/electron.js +84 -0
- package/lib/modules/dialog/components/confirm/index.d.ts +10 -0
- package/lib/modules/dialog/components/confirm/index.js +75 -0
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +2 -0
- package/lib/modules/dialog/components/connection-gateway/electron.js +62 -0
- package/lib/modules/dialog/components/connection-gateway/index.css +27 -0
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -0
- package/lib/modules/dialog/components/connection-gateway/index.js +74 -0
- package/lib/modules/dialog/components/participant/electron.d.ts +2 -0
- package/lib/modules/dialog/components/participant/electron.js +85 -0
- package/lib/modules/dialog/components/participant/index.d.ts +3 -0
- package/lib/modules/dialog/components/participant/index.js +61 -0
- package/lib/modules/dialog/components/share-screen-selection/index.d.ts +4 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +42 -0
- package/lib/modules/dialog/components/whiteboard/index.d.ts +4 -0
- package/lib/modules/dialog/components/whiteboard/index.js +74 -0
- package/lib/modules/dialog/context.d.ts +3 -0
- package/lib/modules/dialog/context.js +9 -0
- package/lib/modules/dialog/dialogs.d.ts +11 -0
- package/lib/modules/dialog/dialogs.js +376 -0
- package/lib/modules/dialog/index.css +55 -0
- package/lib/modules/dialog/index.d.ts +29 -0
- package/lib/modules/dialog/index.js +80 -0
- package/lib/modules/dialog/store.d.ts +82 -0
- package/lib/modules/dialog/store.js +525 -0
- package/lib/modules/dialog/view.d.ts +5 -0
- package/lib/modules/dialog/view.js +30 -0
- package/lib/modules/event-toast/context.d.ts +3 -0
- package/lib/modules/event-toast/context.js +9 -0
- package/lib/modules/event-toast/index.d.ts +10 -0
- package/lib/modules/event-toast/index.js +41 -0
- package/lib/modules/event-toast/store.d.ts +9 -0
- package/lib/modules/event-toast/store.js +76 -0
- package/lib/modules/event-toast/view.d.ts +1 -0
- package/lib/modules/event-toast/view.js +14 -0
- package/lib/modules/invite/context.d.ts +3 -0
- package/lib/modules/invite/context.js +9 -0
- package/lib/modules/invite/index.css +318 -0
- package/lib/modules/invite/index.d.ts +13 -0
- package/lib/modules/invite/index.js +51 -0
- package/lib/modules/invite/pstn-invite.d.ts +2 -0
- package/lib/modules/invite/pstn-invite.js +271 -0
- package/lib/modules/invite/store.d.ts +71 -0
- package/lib/modules/invite/store.js +472 -0
- package/lib/modules/invite/view.d.ts +1 -0
- package/lib/modules/invite/view.js +47 -0
- package/lib/modules/invite/voip-invite.d.ts +2 -0
- package/lib/modules/invite/voip-invite.js +294 -0
- package/lib/modules/layout/components/Aside.d.ts +7 -0
- package/lib/modules/layout/components/Aside.js +144 -0
- package/lib/modules/layout/components/Carousel.d.ts +1 -0
- package/lib/modules/layout/components/Carousel.js +271 -0
- package/lib/modules/layout/components/Gallery.d.ts +1 -0
- package/lib/modules/layout/components/Gallery.js +360 -0
- package/lib/modules/layout/components/Layout.d.ts +2 -0
- package/lib/modules/layout/components/Layout.js +160 -0
- package/lib/modules/layout/components/index.css +608 -0
- package/lib/modules/layout/components/index.d.ts +5 -0
- package/lib/modules/layout/components/index.js +55 -0
- package/lib/modules/layout/components/utils.d.ts +1 -0
- package/lib/modules/layout/components/utils.js +10 -0
- package/lib/modules/layout/context.d.ts +3 -0
- package/lib/modules/layout/context.js +9 -0
- package/lib/modules/layout/index.css +27 -0
- package/lib/modules/layout/index.d.ts +10 -0
- package/lib/modules/layout/index.dev.d.ts +1 -0
- package/lib/modules/layout/index.dev.js +378 -0
- package/lib/modules/layout/index.js +72 -0
- package/lib/modules/layout/member-window/index.css +321 -0
- package/lib/modules/layout/member-window/index.d.ts +67 -0
- package/lib/modules/layout/member-window/index.js +730 -0
- package/lib/modules/layout/store.d.ts +177 -0
- package/lib/modules/layout/store.js +1278 -0
- package/lib/modules/layout/type.d.ts +64 -0
- package/lib/modules/layout/type.js +52 -0
- package/lib/modules/layout/video-window-datasource.d.ts +119 -0
- package/lib/modules/layout/video-window-datasource.js +1031 -0
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +10 -0
- package/lib/modules/live-streaming/context.d.ts +3 -0
- package/lib/modules/live-streaming/context.js +9 -0
- package/lib/modules/live-streaming/index.css +0 -0
- package/lib/modules/live-streaming/index.d.ts +13 -0
- package/lib/modules/live-streaming/index.dev.d.ts +1 -0
- package/lib/modules/live-streaming/index.dev.js +59 -0
- package/lib/modules/live-streaming/index.js +76 -0
- package/lib/modules/live-streaming/store.d.ts +38 -0
- package/lib/modules/live-streaming/store.js +360 -0
- package/lib/modules/live-streaming/view.d.ts +1 -0
- package/lib/modules/live-streaming/view.js +33 -0
- package/lib/modules/participant/attendee/index.css +14 -0
- package/lib/modules/participant/attendee/index.d.ts +19 -0
- package/lib/modules/participant/attendee/index.js +280 -0
- package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
- package/lib/modules/participant/attendee/participants-more-action.js +275 -0
- package/lib/modules/participant/attendee/user-more-actions.d.ts +22 -0
- package/lib/modules/participant/attendee/user-more-actions.js +76 -0
- package/lib/modules/participant/can-moveable/index.d.ts +1 -0
- package/lib/modules/participant/can-moveable/index.js +68 -0
- package/lib/modules/participant/context.d.ts +3 -0
- package/lib/modules/participant/context.js +9 -0
- package/lib/modules/participant/index.css +58 -0
- package/lib/modules/participant/index.d.ts +25 -0
- package/lib/modules/participant/index.dev.d.ts +1 -0
- package/lib/modules/participant/index.dev.js +98 -0
- package/lib/modules/participant/index.js +93 -0
- package/lib/modules/participant/member-list-data-source.d.ts +28 -0
- package/lib/modules/participant/member-list-data-source.js +261 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +19 -0
- package/lib/modules/participant/room-control-drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +154 -0
- package/lib/modules/participant/store.d.ts +145 -0
- package/lib/modules/participant/store.js +1334 -0
- package/lib/modules/participant/type.d.ts +34 -0
- package/lib/modules/participant/type.js +22 -0
- package/lib/modules/participant/view.d.ts +11 -0
- package/lib/modules/participant/view.js +260 -0
- package/lib/modules/setting/audio-settings/audio-settings.d.ts +4 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +303 -0
- package/lib/modules/setting/audio-settings/index.css +144 -0
- package/lib/{fcr-ui-scene/src/containers/stream-window/index.d.ts → modules/setting/common/advance-link.d.ts} +1 -1
- package/lib/modules/setting/common/advance-link.js +27 -0
- package/lib/modules/setting/common/index.css +26 -0
- package/lib/modules/setting/common/useNamespace.d.ts +15 -0
- package/lib/modules/setting/common/useNamespace.js +66 -0
- package/lib/modules/setting/config.d.ts +16 -0
- package/lib/modules/setting/config.js +17 -0
- package/lib/modules/setting/context.d.ts +3 -0
- package/lib/modules/setting/context.js +9 -0
- package/lib/modules/setting/dialog-wrapper.d.ts +2 -0
- package/lib/modules/setting/dialog-wrapper.js +110 -0
- package/lib/modules/setting/general-settings/general-settings.d.ts +4 -0
- package/lib/modules/setting/general-settings/general-settings.js +66 -0
- package/lib/modules/setting/general-settings/index.css +26 -0
- package/lib/modules/setting/index.css +115 -0
- package/lib/modules/setting/index.d.ts +21 -0
- package/lib/modules/setting/index.dev.d.ts +1 -0
- package/lib/modules/setting/index.dev.js +71 -0
- package/lib/modules/setting/index.js +81 -0
- package/lib/modules/setting/state/index.css +211 -0
- package/lib/modules/setting/state/index.d.ts +4 -0
- package/lib/modules/setting/state/index.js +331 -0
- package/lib/modules/setting/storage-settings/index.css +91 -0
- package/lib/modules/setting/storage-settings/storage-settings.d.ts +3 -0
- package/lib/modules/setting/storage-settings/storage-settings.js +84 -0
- package/lib/modules/setting/store.d.ts +213 -0
- package/lib/modules/setting/store.js +1125 -0
- package/lib/modules/setting/video-settings/index.css +339 -0
- package/lib/modules/setting/video-settings/video-settings-basic.d.ts +9 -0
- package/lib/modules/setting/video-settings/video-settings-basic.js +160 -0
- package/lib/modules/setting/video-settings/video-settings.d.ts +10 -0
- package/lib/modules/setting/video-settings/video-settings.js +191 -0
- package/lib/modules/setting/view.d.ts +10 -0
- package/lib/modules/setting/view.js +139 -0
- package/lib/modules/share-screen/index.css +0 -0
- package/lib/modules/share-screen/index.d.ts +26 -0
- package/lib/modules/share-screen/index.dev.d.ts +1 -0
- package/lib/modules/share-screen/index.dev.js +96 -0
- package/lib/modules/share-screen/index.js +171 -0
- package/lib/modules/share-screen/selection/index.css +66 -0
- package/lib/modules/share-screen/selection/index.d.ts +9 -0
- package/lib/modules/share-screen/selection/index.js +224 -0
- package/lib/modules/share-screen/share-state-bar/index.css +38 -0
- package/lib/modules/share-screen/share-state-bar/index.d.ts +5 -0
- package/lib/modules/share-screen/share-state-bar/index.js +67 -0
- package/lib/modules/share-screen/store.d.ts +132 -0
- package/lib/modules/share-screen/store.js +1714 -0
- package/lib/modules/share-screen/view.d.ts +2 -0
- package/lib/modules/share-screen/view.js +45 -0
- package/lib/modules/state-bar/assets/fcr_grid_big.svg +3 -0
- package/lib/modules/state-bar/assets/fcr_listontop_big.svg +3 -0
- package/lib/modules/state-bar/assets/live-streaming.gif +0 -0
- package/lib/modules/state-bar/context.d.ts +3 -0
- package/lib/modules/state-bar/context.js +9 -0
- package/lib/modules/state-bar/index.css +630 -0
- package/lib/modules/state-bar/index.d.ts +18 -0
- package/lib/modules/state-bar/index.dev.d.ts +1 -0
- package/lib/modules/state-bar/index.dev.js +82 -0
- package/lib/modules/state-bar/index.js +69 -0
- package/lib/modules/state-bar/layout-config.d.ts +5 -0
- package/lib/modules/state-bar/layout-config.js +151 -0
- package/lib/modules/state-bar/live-streaming-state.d.ts +1 -0
- package/lib/modules/state-bar/live-streaming-state.js +199 -0
- package/lib/modules/state-bar/meeting-detail.css +107 -0
- package/lib/modules/state-bar/meeting-details.d.ts +2 -0
- package/lib/modules/state-bar/meeting-details.js +151 -0
- package/lib/modules/state-bar/meeting-network-state.css +131 -0
- package/lib/modules/state-bar/meeting-network-state.d.ts +2 -0
- package/lib/modules/state-bar/meeting-network-state.js +108 -0
- package/lib/modules/state-bar/meeting-time.d.ts +2 -0
- package/lib/modules/state-bar/meeting-time.js +49 -0
- package/lib/modules/state-bar/network-quality.d.ts +2 -0
- package/lib/modules/state-bar/network-quality.js +33 -0
- package/lib/modules/state-bar/recording.d.ts +1 -0
- package/lib/modules/state-bar/recording.js +110 -0
- package/lib/modules/state-bar/store.d.ts +70 -0
- package/lib/modules/state-bar/store.js +515 -0
- package/lib/modules/state-bar/view.d.ts +5 -0
- package/lib/modules/state-bar/view.js +182 -0
- package/lib/modules/video-window/context.d.ts +3 -0
- package/lib/modules/video-window/context.js +9 -0
- package/lib/modules/video-window/deviceState/index.d.ts +15 -0
- package/lib/modules/video-window/deviceState/index.js +77 -0
- package/lib/modules/video-window/index.css +17 -0
- package/lib/modules/video-window/index.d.ts +9 -0
- package/lib/modules/video-window/index.js +65 -0
- package/lib/modules/video-window/members/index.css +50 -0
- package/lib/modules/video-window/members/index.d.ts +2 -0
- package/lib/modules/video-window/members/index.js +134 -0
- package/lib/modules/video-window/speaking/index.css +69 -0
- package/lib/modules/video-window/speaking/index.d.ts +3 -0
- package/lib/modules/video-window/speaking/index.js +57 -0
- package/lib/modules/video-window/store.d.ts +88 -0
- package/lib/modules/video-window/store.js +598 -0
- package/lib/modules/video-window/topControl/index.css +35 -0
- package/lib/modules/video-window/topControl/index.d.ts +3 -0
- package/lib/modules/video-window/topControl/index.js +85 -0
- package/lib/modules/video-window/type.d.ts +23 -0
- package/lib/modules/video-window/type.js +32 -0
- package/lib/modules/video-window/view.d.ts +2 -0
- package/lib/modules/video-window/view.js +63 -0
- package/lib/modules/whiteboard/app.d.ts +2 -0
- package/lib/modules/whiteboard/app.js +55 -0
- package/lib/modules/whiteboard/components/control-bar/index.css +49 -0
- package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +163 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +36 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
- package/lib/modules/whiteboard/components/loading/index.css +76 -0
- package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/loading/index.js +68 -0
- package/lib/modules/whiteboard/components/loading/loading.png +0 -0
- package/lib/modules/whiteboard/components/multi-window/index.css +63 -0
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +34 -0
- package/lib/modules/whiteboard/components/pagination/index.css +228 -0
- package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
- package/lib/modules/whiteboard/components/pagination/index.js +163 -0
- package/lib/modules/whiteboard/components/pagination/store.d.ts +19 -0
- package/lib/modules/whiteboard/components/pagination/store.js +17 -0
- package/lib/modules/whiteboard/components/progress/electron.d.ts +1 -0
- package/lib/modules/whiteboard/components/progress/electron.js +32 -0
- package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/progress/index.js +43 -0
- package/lib/modules/whiteboard/components/progress/style.css +50 -0
- package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
- package/lib/modules/whiteboard/components/scene-pagination.js +32 -0
- package/lib/modules/whiteboard/components/switch-theme/index.css +94 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +77 -0
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +8 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +44 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +3 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.js +28 -0
- package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +39 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +105 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +63 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +98 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +59 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +41 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +131 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +112 -0
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +74 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +163 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +175 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +50 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +224 -0
- package/lib/modules/whiteboard/context.d.ts +66 -0
- package/lib/modules/whiteboard/context.js +34 -0
- package/lib/modules/whiteboard/index.d.ts +115 -0
- package/lib/modules/whiteboard/index.js +1082 -0
- package/lib/modules/whiteboard/style.css +142 -0
- package/lib/modules/whiteboard/type.d.ts +96 -0
- package/lib/modules/whiteboard/type.js +94 -0
- package/lib/modules/whiteboard/utils.d.ts +11 -0
- package/lib/modules/whiteboard/utils.js +25 -0
- package/lib/plugins/browser-runtime-plugin.d.ts +0 -0
- package/lib/plugins/browser-runtime-plugin.js +67 -0
- package/lib/plugins/css-preset-plugin.d.ts +1 -0
- package/lib/plugins/css-preset-plugin.js +22 -0
- package/lib/plugins/electron-rtc-plugin.d.ts +1 -0
- package/lib/plugins/electron-rtc-plugin.js +5 -0
- package/lib/plugins/module-dev-plugin.d.ts +12 -0
- package/lib/plugins/module-dev-plugin.js +181 -0
- package/lib/plugins/multi-lang-plugin.d.ts +5 -0
- package/lib/plugins/multi-lang-plugin.js +17 -0
- package/lib/plugins/rtm-plugin.d.ts +1 -0
- package/lib/plugins/rtm-plugin.js +5 -0
- package/lib/plugins/web-rtc-plugin.d.ts +1 -0
- package/lib/plugins/web-rtc-plugin.js +5 -0
- package/lib/runtime.d.ts +86 -0
- package/lib/translations/enUS.d.ts +993 -0
- package/lib/translations/enUS.js +1016 -0
- package/lib/translations/zhCN.d.ts +993 -0
- package/lib/translations/zhCN.js +1016 -0
- package/lib/type.d.ts +107 -0
- package/lib/type.js +42 -0
- package/lib/ui-manager.d.ts +17 -0
- package/lib/ui-manager.js +555 -0
- package/lib/ui-scene.d.ts +13 -0
- package/lib/ui-scene.js +142 -0
- package/lib/utilities/board-context.d.ts +5 -0
- package/lib/utilities/board-context.js +12 -0
- package/lib/utilities/constant.d.ts +248 -0
- package/lib/utilities/constant.js +232 -0
- package/lib/utilities/copyText.d.ts +2 -0
- package/lib/utilities/copyText.js +43 -0
- package/lib/utilities/default-config.d.ts +32 -0
- package/lib/utilities/default-config.js +39 -0
- package/lib/utilities/extract.d.ts +5 -0
- package/lib/utilities/extract.js +97 -0
- package/lib/utilities/hooks.d.ts +14 -0
- package/lib/utilities/hooks.js +99 -0
- package/lib/utilities/mute-action.d.ts +4 -0
- package/lib/utilities/mute-action.js +48 -0
- package/lib/utilities/parameters.d.ts +7 -0
- package/lib/utilities/parameters.js +20 -0
- package/lib/utilities/platform.d.ts +1 -0
- package/lib/utilities/platform.js +11 -0
- package/lib/utilities/regex.d.ts +1 -0
- package/lib/utilities/regex.js +14 -0
- package/lib/utilities/renderer-event.d.ts +9 -0
- package/lib/utilities/renderer-event.js +76 -0
- package/lib/utilities/renderer.d.ts +23 -0
- package/lib/utilities/renderer.js +109 -0
- package/lib/utilities/screen.d.ts +3 -0
- package/lib/utilities/screen.js +41 -0
- package/lib/utilities/tools.d.ts +25 -0
- package/lib/utilities/tools.js +164 -0
- package/lib/utilities/ui-resources.d.ts +2 -0
- package/lib/utilities/ui-resources.js +9 -0
- package/lib/utilities/useNamespace.d.ts +15 -0
- package/lib/utilities/useNamespace.js +66 -0
- package/lib/utilities/video-track-render-context.d.ts +8 -0
- package/lib/utilities/video-track-render-context.js +9 -0
- package/package.json +61 -85
- package/public/assets/fcr_chat_reddot.svg +5 -0
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/fcr_grid_big.svg +3 -0
- package/public/assets/fcr_listontop_big.svg +3 -0
- package/public/assets/pretest.mp3 +0 -0
- package/public/assets/state-bar-logo.png +0 -0
- package/public/assets/step-gradient.svg +10 -0
- package/public/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
- package/public/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
- package/public/extensions/ai-denoiser/denoiser-wasm.js +1 -0
- package/public/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
- package/public/index.html +26 -0
- package/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 -3
- 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 -214
- package/lib/fcr-ui-scene/src/uistores/gallery-view.d.ts +0 -16
- package/lib/fcr-ui-scene/src/uistores/getters.d.ts +0 -40
- package/lib/fcr-ui-scene/src/uistores/index.d.ts +0 -47
- package/lib/fcr-ui-scene/src/uistores/layout.d.ts +0 -64
- package/lib/fcr-ui-scene/src/uistores/notification.d.ts +0 -9
- package/lib/fcr-ui-scene/src/uistores/participants.d.ts +0 -48
- package/lib/fcr-ui-scene/src/uistores/presentation-view.d.ts +0 -24
- package/lib/fcr-ui-scene/src/uistores/status-bar.d.ts +0 -47
- package/lib/fcr-ui-scene/src/uistores/stream.d.ts +0 -48
- package/lib/fcr-ui-scene/src/uistores/subscription/abstract.d.ts +0 -45
- package/lib/fcr-ui-scene/src/uistores/subscription/index.d.ts +0 -13
- package/lib/fcr-ui-scene/src/uistores/subscription/main-room.d.ts +0 -14
- package/lib/fcr-ui-scene/src/uistores/subscription/type.d.ts +0 -10
- package/lib/fcr-ui-scene/src/uistores/type.d.ts +0 -86
- package/lib/fcr-ui-scene/src/uistores/widget.d.ts +0 -49
- package/lib/fcr-ui-scene/src/utils/asset.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/check.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/clamp-bounds.d.ts +0 -14
- package/lib/fcr-ui-scene/src/utils/config-loader.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/grid/index.d.ts +0 -9
- package/lib/fcr-ui-scene/src/utils/hooks/use-authorization.d.ts +0 -5
- package/lib/fcr-ui-scene/src/utils/hooks/use-device-switch.d.ts +0 -29
- package/lib/fcr-ui-scene/src/utils/hooks/use-drag-position.d.ts +0 -21
- package/lib/fcr-ui-scene/src/utils/hooks/use-network.d.ts +0 -17
- package/lib/fcr-ui-scene/src/utils/hooks/use-pin-stream.d.ts +0 -4
- package/lib/fcr-ui-scene/src/utils/hooks/use-rnd-position.d.ts +0 -24
- package/lib/fcr-ui-scene/src/utils/hooks/use-store.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/hooks/use-video-renderable.d.ts +0 -3
- package/lib/fcr-ui-scene/src/utils/hooks/use-z-index.d.ts +0 -8
- package/lib/fcr-ui-scene/src/utils/index.d.ts +0 -7
- package/lib/fcr-ui-scene/src/utils/launch-options-holder.d.ts +0 -10
- package/lib/fcr-ui-scene/src/utils/rtc-extensions.d.ts +0 -29
- package/lib/fcr-ui-scene/src/utils/short-name.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/stream/index.d.ts +0 -3
- package/lib/fcr-ui-scene/src/utils/stream/state-keeper.d.ts +0 -18
- package/lib/fcr-ui-scene/src/utils/stream/struct.d.ts +0 -67
- package/lib/fcr-ui-scene/src/utils/vsd-pattern.d.ts +0 -1
- package/lib/fcr-ui-scene/src/utils/z-index-controller.d.ts +0 -9
- package/lib/fcr-ui-scene/tailwind.config.d.ts +0 -1
- package/lib/scene.bundle.js +0 -2
- /package/lib/{fcr-ui-scene/src/containers/video-player/tools-overlay.d.ts → electron/preload.d.ts} +0 -0
|
@@ -0,0 +1,186 @@
|
|
|
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.ChatSelect = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
require("core-js/modules/es.array.filter.js");
|
|
11
|
+
require("core-js/modules/es.array.includes.js");
|
|
12
|
+
require("core-js/modules/es.array.index-of.js");
|
|
13
|
+
require("core-js/modules/es.array.map.js");
|
|
14
|
+
require("core-js/modules/es.array.push.js");
|
|
15
|
+
require("core-js/modules/es.array.slice.js");
|
|
16
|
+
require("core-js/modules/es.object.to-string.js");
|
|
17
|
+
require("core-js/modules/es.string.includes.js");
|
|
18
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
19
|
+
var _input = require("agora-ui-foundation/lib/components/input");
|
|
20
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
21
|
+
var _mobxReact = require("mobx-react");
|
|
22
|
+
var _react = require("react");
|
|
23
|
+
require("./index.css");
|
|
24
|
+
var _reactVirtualized = require("react-virtualized");
|
|
25
|
+
var _type2 = require("agora-edu-core/lib/type");
|
|
26
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
27
|
+
var _store = require("../store");
|
|
28
|
+
var _textBubble = require("agora-ui-foundation/lib/components/text-bubble");
|
|
29
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
30
|
+
var _fcr_defaultpage = _interopRequireDefault(require("../../../../public/assets/fcr_defaultpage.png"));
|
|
31
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
32
|
+
function highlightMatches(str, matchStr) {
|
|
33
|
+
var result = [];
|
|
34
|
+
var matchLen = matchStr.length;
|
|
35
|
+
var start = 0;
|
|
36
|
+
if (matchStr.length === 0) {
|
|
37
|
+
return [{
|
|
38
|
+
data: str,
|
|
39
|
+
isHighlight: false
|
|
40
|
+
}];
|
|
41
|
+
}
|
|
42
|
+
while (start < str.length) {
|
|
43
|
+
var matchStart = str.indexOf(matchStr, start);
|
|
44
|
+
if (matchStart === -1) {
|
|
45
|
+
result.push({
|
|
46
|
+
data: str.slice(start),
|
|
47
|
+
isHighlight: false
|
|
48
|
+
});
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
if (start !== matchStart) {
|
|
52
|
+
result.push({
|
|
53
|
+
data: str.slice(start, matchStart),
|
|
54
|
+
isHighlight: false
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
result.push({
|
|
58
|
+
data: matchStr,
|
|
59
|
+
isHighlight: true
|
|
60
|
+
});
|
|
61
|
+
start = matchStart + matchLen;
|
|
62
|
+
}
|
|
63
|
+
return result;
|
|
64
|
+
}
|
|
65
|
+
var ChatSelect = exports.ChatSelect = (0, _mobxReact.observer)(function (_ref) {
|
|
66
|
+
var type = _ref.type,
|
|
67
|
+
title = _ref.title,
|
|
68
|
+
bottomBar = _ref.bottomBar,
|
|
69
|
+
users = _ref.candidateUsers,
|
|
70
|
+
selectedUid = _ref.selectedUid,
|
|
71
|
+
onSelect = _ref.onSelect;
|
|
72
|
+
var _useState = (0, _react.useState)(''),
|
|
73
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
74
|
+
filterKey = _useState2[0],
|
|
75
|
+
setFilterKey = _useState2[1];
|
|
76
|
+
var filterUsers = users.filter(function (user) {
|
|
77
|
+
return user.userName.includes(filterKey);
|
|
78
|
+
});
|
|
79
|
+
var listHeight = 0;
|
|
80
|
+
if (filterUsers.length < 5) {
|
|
81
|
+
listHeight = filterUsers.length * 40;
|
|
82
|
+
} else {
|
|
83
|
+
listHeight = 5 * 40;
|
|
84
|
+
}
|
|
85
|
+
var rowCount = filterUsers.length;
|
|
86
|
+
var handleFilterChange = function handleFilterChange(search) {
|
|
87
|
+
setFilterKey(search);
|
|
88
|
+
};
|
|
89
|
+
var t = (0, _i18n.useI18n)();
|
|
90
|
+
var rowRenderer = function rowRenderer(_ref2) {
|
|
91
|
+
var index = _ref2.index,
|
|
92
|
+
key = _ref2.key,
|
|
93
|
+
style = _ref2.style;
|
|
94
|
+
var datum = filterUsers[index];
|
|
95
|
+
if (!datum) {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
99
|
+
className: selectedUid === users[index].userId ? 'candidate-container-selected' : 'candidate-container',
|
|
100
|
+
style: style,
|
|
101
|
+
onClick: function onClick(_) {
|
|
102
|
+
var user = filterUsers[index];
|
|
103
|
+
onSelect(user);
|
|
104
|
+
},
|
|
105
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
106
|
+
className: (0, _classnames["default"])('candidate-avatar', {
|
|
107
|
+
'candidate-avatar-all': datum.userId === _store.USER_ALL
|
|
108
|
+
}),
|
|
109
|
+
children: type === 'private-chat' && datum.userName === _store.USER_ALL ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
110
|
+
size: 16,
|
|
111
|
+
type: _type.FcrIconType.FCR_USERS,
|
|
112
|
+
colors: {
|
|
113
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
114
|
+
}
|
|
115
|
+
}) : datum.userName.charAt(0).toLocaleUpperCase()
|
|
116
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
117
|
+
className: "candidate",
|
|
118
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
119
|
+
className: "candidate-info",
|
|
120
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
121
|
+
className: "candidate-name",
|
|
122
|
+
children: highlightMatches(datum.userName, filterKey).map(function (value) {
|
|
123
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
124
|
+
className: value !== null && value !== void 0 && value.isHighlight ? 'candidate-highlight' : '',
|
|
125
|
+
children: value.data
|
|
126
|
+
});
|
|
127
|
+
})
|
|
128
|
+
}), datum.userId !== _store.USER_ALL && (datum.userRole === _type2.FcrUserRole.COHOST || datum.userRole === _type2.FcrUserRole.HOST) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_textBubble.TextBubble, {
|
|
129
|
+
txt: t(datum.userRole === _type2.FcrUserRole.HOST ? 'fmt_role_host' : 'fmt_role_cohost'),
|
|
130
|
+
type: "gray",
|
|
131
|
+
lineHeight: "small",
|
|
132
|
+
classnames: datum.userRole === _type2.FcrUserRole.HOST ? 'host' : 'cohost'
|
|
133
|
+
})]
|
|
134
|
+
}), selectedUid === users[index].userId ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
135
|
+
className: "candidate-select",
|
|
136
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
137
|
+
type: _type.FcrIconType.FCR_CHOOSEIT,
|
|
138
|
+
size: 24,
|
|
139
|
+
colors: {
|
|
140
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
141
|
+
}
|
|
142
|
+
})
|
|
143
|
+
}) : null]
|
|
144
|
+
})]
|
|
145
|
+
}, key);
|
|
146
|
+
};
|
|
147
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
148
|
+
className: "leave-container",
|
|
149
|
+
children: [title, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
150
|
+
className: "assign-host-search",
|
|
151
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_input.FcrInput, {
|
|
152
|
+
iconPrefix: {
|
|
153
|
+
colors: {
|
|
154
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
155
|
+
},
|
|
156
|
+
type: _type.FcrIconType.FCR_V2_SEARCH
|
|
157
|
+
},
|
|
158
|
+
onChange: function onChange(value) {
|
|
159
|
+
handleFilterChange(value);
|
|
160
|
+
},
|
|
161
|
+
placeholder: t('fmt_attendies_button_serach'),
|
|
162
|
+
shape: "rounded",
|
|
163
|
+
value: filterKey
|
|
164
|
+
})
|
|
165
|
+
}), filterUsers.length > 5 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
166
|
+
className: "assign-host-border"
|
|
167
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
168
|
+
className: "assign-host-body",
|
|
169
|
+
children: filterUsers.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
170
|
+
className: "fcr-no-data",
|
|
171
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
172
|
+
src: _fcr_defaultpage["default"]
|
|
173
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
174
|
+
children: t('fmt_chat_tips_nodata')
|
|
175
|
+
})]
|
|
176
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactVirtualized.List, {
|
|
177
|
+
className: 'candidate-list',
|
|
178
|
+
width: 230,
|
|
179
|
+
height: listHeight,
|
|
180
|
+
rowCount: rowCount,
|
|
181
|
+
rowHeight: 40,
|
|
182
|
+
rowRenderer: rowRenderer
|
|
183
|
+
})
|
|
184
|
+
}), bottomBar]
|
|
185
|
+
});
|
|
186
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const Chat: ({ updateReadIndex, sendMsg, userId: localUserId, isHost, singling, handleClickUploadImage, }: {
|
|
2
|
+
updateReadIndex: (data?: {
|
|
3
|
+
index: number;
|
|
4
|
+
msgId: string;
|
|
5
|
+
}) => void;
|
|
6
|
+
sendMsg: (msg: string) => void;
|
|
7
|
+
userId: string;
|
|
8
|
+
isHost: boolean;
|
|
9
|
+
singling?: boolean | undefined;
|
|
10
|
+
handleClickUploadImage: () => void;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const ChatAction: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,295 @@
|
|
|
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.ChatAction = exports.Chat = void 0;
|
|
9
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
|
+
require("core-js/modules/es.array.concat.js");
|
|
11
|
+
require("core-js/modules/es.array.filter.js");
|
|
12
|
+
require("core-js/modules/es.array.find.js");
|
|
13
|
+
require("core-js/modules/es.array.for-each.js");
|
|
14
|
+
require("core-js/modules/es.array.from.js");
|
|
15
|
+
require("core-js/modules/es.array.iterator.js");
|
|
16
|
+
require("core-js/modules/es.array.map.js");
|
|
17
|
+
require("core-js/modules/es.array.push.js");
|
|
18
|
+
require("core-js/modules/es.array.sort.js");
|
|
19
|
+
require("core-js/modules/es.array.unshift.js");
|
|
20
|
+
require("core-js/modules/es.map.js");
|
|
21
|
+
require("core-js/modules/es.object.to-string.js");
|
|
22
|
+
require("core-js/modules/es.string.iterator.js");
|
|
23
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
24
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
25
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
26
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
27
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
28
|
+
var _mobxReact = require("mobx-react");
|
|
29
|
+
var _store = require("./store");
|
|
30
|
+
var _messageList = require("./message-list");
|
|
31
|
+
var _contex = require("./contex");
|
|
32
|
+
var _chatWrapper = require("agora-ui-foundation/lib/components/chat-wrapper");
|
|
33
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
34
|
+
var _react = require("react");
|
|
35
|
+
var _chatBar = require("./chat-bar");
|
|
36
|
+
var _type = require("../../type");
|
|
37
|
+
var _type2 = require("agora-edu-core/lib/type");
|
|
38
|
+
var _util = require("./util");
|
|
39
|
+
var _copyText = require("../../utilities/copyText");
|
|
40
|
+
var _chatManager = require("agora-ui-foundation/lib/components/chat-manager");
|
|
41
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
42
|
+
var Chat = exports.Chat = (0, _mobxReact.observer)(function (_ref) {
|
|
43
|
+
var updateReadIndex = _ref.updateReadIndex,
|
|
44
|
+
sendMsg = _ref.sendMsg,
|
|
45
|
+
localUserId = _ref.userId,
|
|
46
|
+
isHost = _ref.isHost,
|
|
47
|
+
singling = _ref.singling,
|
|
48
|
+
handleClickUploadImage = _ref.handleClickUploadImage;
|
|
49
|
+
var t = (0, _i18n.useI18n)();
|
|
50
|
+
var defaultProps = {
|
|
51
|
+
errorMsg: t('fmt_chat_tips_exceedlimit'),
|
|
52
|
+
forbiddenTxt: t('fmt_chat_button_muteall'),
|
|
53
|
+
styles: {
|
|
54
|
+
display: 'flex'
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
var styles = defaultProps.styles,
|
|
58
|
+
forbiddenTxt = defaultProps.forbiddenTxt,
|
|
59
|
+
errorMsg = defaultProps.errorMsg;
|
|
60
|
+
var _useContext = (0, _react.useContext)(_contex.StoreContext),
|
|
61
|
+
allowChat = _useContext.allowChat,
|
|
62
|
+
setTargetUser = _useContext.setTargetUser,
|
|
63
|
+
privateTargetUser = _useContext.privateTargetUser,
|
|
64
|
+
remoteUsers = _useContext.remoteUsers,
|
|
65
|
+
targetUserIsOnline = _useContext.targetUserIsOnline,
|
|
66
|
+
localIsManager = _useContext.localIsManager,
|
|
67
|
+
chatLevel = _useContext.chatLevel,
|
|
68
|
+
messageList = _useContext.messageList,
|
|
69
|
+
textMsg = _useContext.textMsg,
|
|
70
|
+
updateChatTextMsg = _useContext.updateChatTextMsg,
|
|
71
|
+
privateTargetList = _useContext.privateTargetList,
|
|
72
|
+
resetTargetUser = _useContext.resetTargetUser,
|
|
73
|
+
handleToast = _useContext.handleToast,
|
|
74
|
+
chatRoomState = _useContext.chatRoomState;
|
|
75
|
+
var handleTargetChange = function handleTargetChange(user) {
|
|
76
|
+
setTargetUser(user);
|
|
77
|
+
};
|
|
78
|
+
var _useState = (0, _react.useState)(false),
|
|
79
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
80
|
+
multiSelectActive = _useState2[0],
|
|
81
|
+
setMultiSelectActive = _useState2[1];
|
|
82
|
+
var _useState3 = (0, _react.useState)(new Map()),
|
|
83
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
84
|
+
copyMap = _useState4[0],
|
|
85
|
+
setCopyMap = _useState4[1];
|
|
86
|
+
var _useState5 = (0, _react.useState)(0),
|
|
87
|
+
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
88
|
+
selectCnt = _useState6[0],
|
|
89
|
+
setSelectCnt = _useState6[1];
|
|
90
|
+
var _useState7 = (0, _react.useState)((0, _toConsumableArray2["default"])(privateTargetList)),
|
|
91
|
+
_useState8 = (0, _slicedToArray2["default"])(_useState7, 2),
|
|
92
|
+
targetList = _useState8[0],
|
|
93
|
+
setTargetList = _useState8[1];
|
|
94
|
+
(0, _react.useEffect)(function () {
|
|
95
|
+
var _users$;
|
|
96
|
+
var users = (0, _toConsumableArray2["default"])(targetList);
|
|
97
|
+
if (((_users$ = users[0]) === null || _users$ === void 0 ? void 0 : _users$.userId) === _store.USER_ALL) {
|
|
98
|
+
if (chatLevel !== 'everyone' && chatLevel !== 'public' && !localIsManager) {
|
|
99
|
+
users.shift();
|
|
100
|
+
}
|
|
101
|
+
} else if (chatLevel === 'everyone' || chatLevel == 'public' || localIsManager) {
|
|
102
|
+
users.unshift({
|
|
103
|
+
userId: _store.USER_ALL,
|
|
104
|
+
userName: t('fmt_chat_option_all'),
|
|
105
|
+
userRole: _type.FcrUserRole.ROBOT,
|
|
106
|
+
connectorType: _type2.FcrRoomConnectorType.NONE
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
remoteUsers.forEach(function (user) {
|
|
110
|
+
if (!users.find(function (u) {
|
|
111
|
+
return u.userId === user.userId;
|
|
112
|
+
})) {
|
|
113
|
+
users.push(user);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
users = users.filter(function (user) {
|
|
117
|
+
return remoteUsers.find(function (u) {
|
|
118
|
+
return u.userId === user.userId;
|
|
119
|
+
}) || user.userId === privateTargetUser.userId || user.userId === _store.USER_ALL;
|
|
120
|
+
});
|
|
121
|
+
users = users.map(function (user) {
|
|
122
|
+
var _remoteUsers$find;
|
|
123
|
+
return (_remoteUsers$find = remoteUsers.find(function (u) {
|
|
124
|
+
return u.userId === user.userId;
|
|
125
|
+
})) !== null && _remoteUsers$find !== void 0 ? _remoteUsers$find : user;
|
|
126
|
+
});
|
|
127
|
+
setTargetList((0, _toConsumableArray2["default"])(users));
|
|
128
|
+
}, [privateTargetList, chatLevel, remoteUsers]);
|
|
129
|
+
var handleMultiCopyMsg = /*#__PURE__*/function () {
|
|
130
|
+
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
131
|
+
var msgHandled, msgIndex;
|
|
132
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
133
|
+
while (1) switch (_context.prev = _context.next) {
|
|
134
|
+
case 0:
|
|
135
|
+
msgHandled = '';
|
|
136
|
+
msgIndex = Array.from(copyMap.keys()).sort();
|
|
137
|
+
msgIndex.forEach(function (msgIdx, arrIdx) {
|
|
138
|
+
var _messageList$msgIndex, _messageList$msgIndex2, _messageList$msgIndex3;
|
|
139
|
+
var _messageList$msgIdx = messageList[msgIdx],
|
|
140
|
+
msg = _messageList$msgIdx.msg,
|
|
141
|
+
time = _messageList$msgIdx.time,
|
|
142
|
+
publisherUid = _messageList$msgIdx.uid,
|
|
143
|
+
publisherNickName = _messageList$msgIdx.nickName,
|
|
144
|
+
targetNickname = _messageList$msgIdx.target,
|
|
145
|
+
isPrivate = _messageList$msgIdx.isPrivate,
|
|
146
|
+
publisherRole = _messageList$msgIdx.role;
|
|
147
|
+
var senderNickname = publisherUid === localUserId && isPrivate ? t('fmt_settings_labels_you') : publisherNickName;
|
|
148
|
+
var needLabel = ((_messageList$msgIndex = messageList[msgIndex[arrIdx - 1]]) === null || _messageList$msgIndex === void 0 ? void 0 : _messageList$msgIndex.uid) !== publisherUid || ((_messageList$msgIndex2 = messageList[msgIndex[arrIdx - 1]]) === null || _messageList$msgIndex2 === void 0 ? void 0 : _messageList$msgIndex2.isPrivate) !== isPrivate || ((_messageList$msgIndex3 = messageList[msgIndex[arrIdx - 1]]) === null || _messageList$msgIndex3 === void 0 ? void 0 : _messageList$msgIndex3.role) !== publisherRole;
|
|
149
|
+
// 2. 复制多条消息, 一个人发的多条消息, 时间前缀只会有一个, 消息累加
|
|
150
|
+
if (needLabel) {
|
|
151
|
+
msgHandled += (0, _i18n.getLanguage)() === 'zh' ? "".concat(senderNickname, "\u5BF9").concat(targetNickname, "\u8BF4(").concat((0, _util.handleMessageTime)(time), ")\n").concat(msg, "\n") : "".concat(senderNickname, " said to ").concat(targetNickname, "(").concat((0, _util.handleMessageTime)(time), ")\n").concat(msg, "\n");
|
|
152
|
+
} else {
|
|
153
|
+
msgHandled += "".concat(msg, "\n");
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
_context.next = 5;
|
|
157
|
+
return (0, _copyText.copyText)(msgHandled);
|
|
158
|
+
case 5:
|
|
159
|
+
case "end":
|
|
160
|
+
return _context.stop();
|
|
161
|
+
}
|
|
162
|
+
}, _callee);
|
|
163
|
+
}));
|
|
164
|
+
return function handleMultiCopyMsg() {
|
|
165
|
+
return _ref2.apply(this, arguments);
|
|
166
|
+
};
|
|
167
|
+
}();
|
|
168
|
+
(0, _react.useEffect)(function () {
|
|
169
|
+
setSelectCnt(copyMap.size);
|
|
170
|
+
}, [copyMap.size]);
|
|
171
|
+
var resetMultiSelectStates = function resetMultiSelectStates() {
|
|
172
|
+
setMultiSelectActive(false);
|
|
173
|
+
copyMap.clear();
|
|
174
|
+
setCopyMap(copyMap);
|
|
175
|
+
setSelectCnt(0);
|
|
176
|
+
};
|
|
177
|
+
var chatSelectNoTitle = localIsManager || chatLevel === 'everyone' || chatLevel === 'no_one';
|
|
178
|
+
var copyTips = function copyTips() {
|
|
179
|
+
handleToast({
|
|
180
|
+
id: 'copy-multi-msg',
|
|
181
|
+
toastProps: {
|
|
182
|
+
type: 'normal',
|
|
183
|
+
content: t('fmt_statusbar_status_coppied'),
|
|
184
|
+
size: 'small'
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_chatWrapper.ChatWrapper, {
|
|
189
|
+
styles: styles,
|
|
190
|
+
errorMsg: errorMsg,
|
|
191
|
+
forbiddenTxt: forbiddenTxt,
|
|
192
|
+
singling: singling,
|
|
193
|
+
forbidden: !localIsManager && !allowChat,
|
|
194
|
+
isHost: isHost,
|
|
195
|
+
handMsg: function handMsg(msg) {
|
|
196
|
+
if (chatRoomState !== _type2.FcrChatRoomConnectionState.Connected) {
|
|
197
|
+
handleToast({
|
|
198
|
+
id: 'send-msg-offline',
|
|
199
|
+
toastProps: {
|
|
200
|
+
type: 'error',
|
|
201
|
+
content: t('fmt_chat_tips_Networkconnect'),
|
|
202
|
+
size: 'small'
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
if (!localIsManager) {
|
|
208
|
+
if (privateTargetUser.userId === _store.USER_NONE) {
|
|
209
|
+
handleToast({
|
|
210
|
+
id: 'send-msg-to-none',
|
|
211
|
+
toastProps: {
|
|
212
|
+
type: 'normal',
|
|
213
|
+
content: t('fmt_chat_tips_selectchat'),
|
|
214
|
+
size: 'small'
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
if (chatLevel === 'no_one' || chatLevel !== 'everyone' && privateTargetUser.userId !== _store.USER_ALL && !(0, _store.isManager)(privateTargetUser.userRole)) {
|
|
220
|
+
handleToast({
|
|
221
|
+
id: 'send-msg-to-none',
|
|
222
|
+
toastProps: {
|
|
223
|
+
type: 'normal',
|
|
224
|
+
content: t('fmt_chat_tips_permissionchange'),
|
|
225
|
+
size: 'small'
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
resetTargetUser();
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
sendMsg(msg);
|
|
233
|
+
},
|
|
234
|
+
handleClickUploadImage: handleClickUploadImage,
|
|
235
|
+
msgBarElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chatBar.MessageBar, {
|
|
236
|
+
selectedUserId: privateTargetUser.userId,
|
|
237
|
+
users: (0, _toConsumableArray2["default"])(targetList.filter(function (user) {
|
|
238
|
+
return localIsManager || chatLevel === 'everyone' || user.userId === _store.USER_ALL || user.userId === privateTargetUser.userId || chatLevel !== 'no_one' && (0, _store.isManager)(user.userRole);
|
|
239
|
+
})),
|
|
240
|
+
onTargetChange: handleTargetChange,
|
|
241
|
+
title: chatSelectNoTitle ? undefined : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
242
|
+
className: "assign-host-title",
|
|
243
|
+
children: chatLevel === 'public' ? t('fmt_chat_option_onlypublic') : t('fmt_chat_option_onlyprivate')
|
|
244
|
+
})
|
|
245
|
+
}),
|
|
246
|
+
targetUserIsOnline: targetUserIsOnline,
|
|
247
|
+
privateTarget: privateTargetUser.userId,
|
|
248
|
+
selectTargetNickname: privateTargetUser.userName,
|
|
249
|
+
multiSelectActive: multiSelectActive,
|
|
250
|
+
selectCnt: selectCnt,
|
|
251
|
+
onSelectCancel: function onSelectCancel() {
|
|
252
|
+
resetMultiSelectStates();
|
|
253
|
+
},
|
|
254
|
+
onSelectConfirm: /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
255
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
256
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
257
|
+
case 0:
|
|
258
|
+
_context2.next = 2;
|
|
259
|
+
return handleMultiCopyMsg();
|
|
260
|
+
case 2:
|
|
261
|
+
resetMultiSelectStates();
|
|
262
|
+
copyTips();
|
|
263
|
+
case 4:
|
|
264
|
+
case "end":
|
|
265
|
+
return _context2.stop();
|
|
266
|
+
}
|
|
267
|
+
}, _callee2);
|
|
268
|
+
})),
|
|
269
|
+
defaultMsg: textMsg,
|
|
270
|
+
updateChatTextMsg: updateChatTextMsg,
|
|
271
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_messageList.MessageList, {
|
|
272
|
+
updateReadMsgIndex: updateReadIndex,
|
|
273
|
+
userId: localUserId,
|
|
274
|
+
setMultiSelectActive: setMultiSelectActive,
|
|
275
|
+
multiSelectActive: multiSelectActive,
|
|
276
|
+
copyMap: copyMap,
|
|
277
|
+
setCopyMap: setCopyMap,
|
|
278
|
+
selectCnt: selectCnt,
|
|
279
|
+
copyTips: copyTips
|
|
280
|
+
})
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
var ChatAction = exports.ChatAction = (0, _mobxReact.observer)(function () {
|
|
284
|
+
var _useContext2 = (0, _react.useContext)(_contex.StoreContext),
|
|
285
|
+
isHostOrCoHost = _useContext2.isHostOrCoHost,
|
|
286
|
+
setAllowChat = _useContext2.setAllowChat,
|
|
287
|
+
setAllowChatWithPayload = _useContext2.setAllowChatWithPayload,
|
|
288
|
+
chatLevel = _useContext2.chatLevel;
|
|
289
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_chatManager.ChatManager, {
|
|
290
|
+
isManager: isHostOrCoHost,
|
|
291
|
+
setAllowChat: setAllowChat,
|
|
292
|
+
setAllowChatWithPayload: setAllowChatWithPayload,
|
|
293
|
+
allowChatLevel: chatLevel
|
|
294
|
+
});
|
|
295
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
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.StoreContext = void 0;
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -0,0 +1,42 @@
|
|
|
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.DemoWrapper = void 0;
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
var DemoWrapper = exports.DemoWrapper = function DemoWrapper(_ref) {
|
|
10
|
+
var children = _ref.children;
|
|
11
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
12
|
+
style: {
|
|
13
|
+
display: 'flex',
|
|
14
|
+
width: '100%',
|
|
15
|
+
height: '100%',
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
padding: 20
|
|
19
|
+
},
|
|
20
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
21
|
+
style: {
|
|
22
|
+
background: 'aliceblue',
|
|
23
|
+
marginTop: 160,
|
|
24
|
+
height: '100%',
|
|
25
|
+
width: '100%',
|
|
26
|
+
display: 'flex',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
justifyContent: 'center'
|
|
29
|
+
},
|
|
30
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
31
|
+
style: {
|
|
32
|
+
marginTop: 20,
|
|
33
|
+
marginBottom: 50,
|
|
34
|
+
display: 'flex',
|
|
35
|
+
height: 500,
|
|
36
|
+
width: 340
|
|
37
|
+
},
|
|
38
|
+
children: children
|
|
39
|
+
})
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* Message List */
|
|
2
|
+
.fcr-message-list {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex: 1;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: 100%;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.fcr-line-msg-wrapper {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: row-reverse;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.fcr-message-label .fcr-avatar {
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UIModule } from '../../base';
|
|
2
|
+
import './index.css';
|
|
3
|
+
import { FcrMainRoomControl } from 'agora-edu-core';
|
|
4
|
+
import { FcrUIEventStore } from '../../common/event-store';
|
|
5
|
+
import { FcrSecurityStore } from '../../common/security-store';
|
|
6
|
+
import { FcrChatRoomFile, FcrChatRoomMessageType } from 'agora-edu-core/lib/type';
|
|
7
|
+
import { CHAT_WRAPPER_CLASS } from 'agora-ui-foundation/lib/components/chat-wrapper';
|
|
8
|
+
export { CHAT_WRAPPER_CLASS };
|
|
9
|
+
export declare class ChatUIModule extends UIModule {
|
|
10
|
+
private _store;
|
|
11
|
+
private _chatRoomControl;
|
|
12
|
+
private _uiEventStore;
|
|
13
|
+
private _uid;
|
|
14
|
+
constructor({ roomControl, uiEventStore, securityStore, }: {
|
|
15
|
+
roomControl: FcrMainRoomControl;
|
|
16
|
+
uiEventStore: FcrUIEventStore;
|
|
17
|
+
securityStore: FcrSecurityStore;
|
|
18
|
+
});
|
|
19
|
+
getComponent(params?: {
|
|
20
|
+
singling?: boolean;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
getActionsComponent(): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
sendMessage(msg: string | FcrChatRoomFile, type: FcrChatRoomMessageType): Promise<void>;
|
|
24
|
+
updateReadMsgIndex(data?: {
|
|
25
|
+
index: number;
|
|
26
|
+
msgId: string;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
onUnload(): void;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
5
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
6
|
+
var _ = require(".");
|
|
7
|
+
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
8
|
+
var _root = require("react-hot-loader/root");
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
var _demoWrapper = require("./demo-wrapper");
|
|
11
|
+
var _eventStore = require("../../common/event-store");
|
|
12
|
+
var _securityStore = require("../../common/security-store");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
var App = (0, _root.hot)(function () {
|
|
15
|
+
return null;
|
|
16
|
+
});
|
|
17
|
+
_reactDom["default"].render( /*#__PURE__*/(0, _jsxRuntime.jsx)(App, {}), document.querySelector('#root'));
|
|
18
|
+
window.__DEV_ENGINE_IS_READY__.then( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
19
|
+
var engine, roomId, roomControl, uiEventStore, securityStore, uiModule, App;
|
|
20
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
21
|
+
while (1) switch (_context.prev = _context.next) {
|
|
22
|
+
case 0:
|
|
23
|
+
engine = window.__DEV_ENGINE__;
|
|
24
|
+
roomId = window.__DEV_ROOM_ID__; // TODO: dev 环境需要 login
|
|
25
|
+
// await engine.login();
|
|
26
|
+
roomControl = engine.createRoomControl(roomId);
|
|
27
|
+
uiEventStore = new _eventStore.FcrUIEventStore();
|
|
28
|
+
securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(), roomControl.getRoomSessionControl(), uiEventStore); // TODO: dev 环境需要 join
|
|
29
|
+
// await roomControl.join({
|
|
30
|
+
// userRole: FcrUserRole.HOST,
|
|
31
|
+
// userName: 'zxq-test' + Math.random() * 1000,
|
|
32
|
+
// streamLatency: FcrStreamLatencyLevel.ULTRA_LOW,
|
|
33
|
+
// createStreamConfigs: [],
|
|
34
|
+
// });
|
|
35
|
+
uiModule = new _.ChatUIModule({
|
|
36
|
+
roomControl: roomControl,
|
|
37
|
+
uiEventStore: uiEventStore,
|
|
38
|
+
securityStore: securityStore
|
|
39
|
+
});
|
|
40
|
+
App = (0, _root.hot)(function () {
|
|
41
|
+
(0, _react.useEffect)(function () {
|
|
42
|
+
return function () {
|
|
43
|
+
uiModule.onUnload();
|
|
44
|
+
roomControl.leave();
|
|
45
|
+
engine.logout();
|
|
46
|
+
};
|
|
47
|
+
}, []);
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_demoWrapper.DemoWrapper, {
|
|
49
|
+
children: uiModule.getComponent()
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
_reactDom["default"].render( /*#__PURE__*/(0, _jsxRuntime.jsx)(App, {}), document.querySelector('#root'));
|
|
53
|
+
case 8:
|
|
54
|
+
case "end":
|
|
55
|
+
return _context.stop();
|
|
56
|
+
}
|
|
57
|
+
}, _callee);
|
|
58
|
+
})));
|