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,1179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
|
7
|
+
require("core-js/modules/es.error.to-string.js");
|
|
8
|
+
require("core-js/modules/es.array.is-array.js");
|
|
9
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
10
|
+
require("core-js/modules/es.function.bind.js");
|
|
11
|
+
require("core-js/modules/es.function.name.js");
|
|
12
|
+
require("core-js/modules/es.number.constructor.js");
|
|
13
|
+
require("core-js/modules/es.object.create.js");
|
|
14
|
+
require("core-js/modules/es.object.define-property.js");
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
17
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
18
|
+
Object.defineProperty(exports, "__esModule", {
|
|
19
|
+
value: true
|
|
20
|
+
});
|
|
21
|
+
exports["default"] = exports.MoreMenuType = exports.AudioConnectType = void 0;
|
|
22
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
23
|
+
require("core-js/modules/es.array.filter.js");
|
|
24
|
+
require("core-js/modules/es.array.find.js");
|
|
25
|
+
require("core-js/modules/es.array.find-index.js");
|
|
26
|
+
require("core-js/modules/es.array.for-each.js");
|
|
27
|
+
require("core-js/modules/es.array.iterator.js");
|
|
28
|
+
require("core-js/modules/es.array.map.js");
|
|
29
|
+
require("core-js/modules/es.array.push.js");
|
|
30
|
+
require("core-js/modules/es.array.some.js");
|
|
31
|
+
require("core-js/modules/es.array.splice.js");
|
|
32
|
+
require("core-js/modules/es.date.to-string.js");
|
|
33
|
+
require("core-js/modules/es.map.js");
|
|
34
|
+
require("core-js/modules/es.object.to-string.js");
|
|
35
|
+
require("core-js/modules/es.object.values.js");
|
|
36
|
+
require("core-js/modules/es.string.iterator.js");
|
|
37
|
+
require("core-js/modules/es.weak-map.js");
|
|
38
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
39
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
40
|
+
require("core-js/modules/web.timers.js");
|
|
41
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
42
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
43
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
44
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
45
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
46
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
47
|
+
var _logger = require("agora-foundation/lib/logger");
|
|
48
|
+
var _mobx = require("mobx");
|
|
49
|
+
var _type = require("agora-edu-core/lib/type");
|
|
50
|
+
var _decorator = require("agora-foundation/lib/decorator");
|
|
51
|
+
var _constant = require("../../utilities/constant");
|
|
52
|
+
var _type2 = require("../../type");
|
|
53
|
+
var _rendererEvent = require("../../utilities/renderer-event");
|
|
54
|
+
var _type3 = require("./type");
|
|
55
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
56
|
+
var _type4 = require("../whiteboard/type");
|
|
57
|
+
var _enums = require("agora-edu-core/lib/room-control/whiteboard-control/enums");
|
|
58
|
+
var _type5 = require("agora-ui-foundation/lib/components/icon/type");
|
|
59
|
+
var _type6 = require("agora-rte-sdk/lib/core/scene/type");
|
|
60
|
+
var _type7 = require("agora-rte-sdk/lib/type");
|
|
61
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
62
|
+
var _ActionBarStore;
|
|
63
|
+
var _initProto, _init_users, _init_newMessageTooltipVisible, _init_newMessageCount, _init_latestMessage, _init_totalUser, _init_liveStreamingState, _init_currentMenuIs, _init_cloudRecordingState, _init_localUserRole, _init_localUser, _init_connectionSettingVisible, _init_connectType, _init_folded, _init_boardOwnerUser, _init_hasScreenShare, _init_showArrow, _init_phoneMicEnabled, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _toggleLayoutBarLockDecs, _showNewMessageTooltipDecs, _hideNewMessageTooltipDecs, _switchMenuDecs, _assignHostDecs, _toggleFoldDecs, _setShowArrowDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleAllUserCountUpdatedDecs, _handleUserInfoUpdatedDecs, _handleLiveStreamingStateUpdatedDecs, _handleNewMessageEventDecs, _init__handleNewMessageEvent, _handleChatVisibleDecs, _handleCloudRecordingStateUpdatedDecs, _handleStreamsAddedOrUpdatedDecs, _ref;
|
|
64
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
65
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
66
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
67
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
68
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
69
|
+
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
70
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
71
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
72
|
+
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
73
|
+
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
74
|
+
var MoreMenuType = exports.MoreMenuType = /*#__PURE__*/function (MoreMenuType) {
|
|
75
|
+
MoreMenuType[MoreMenuType["DEFAULT"] = 0] = "DEFAULT";
|
|
76
|
+
MoreMenuType[MoreMenuType["SECURITY"] = 1] = "SECURITY";
|
|
77
|
+
return MoreMenuType;
|
|
78
|
+
}({});
|
|
79
|
+
var AudioConnectType = exports.AudioConnectType = /*#__PURE__*/function (AudioConnectType) {
|
|
80
|
+
AudioConnectType[AudioConnectType["NONE"] = 0] = "NONE";
|
|
81
|
+
AudioConnectType[AudioConnectType["COMPUTER"] = 1] = "COMPUTER";
|
|
82
|
+
AudioConnectType[AudioConnectType["PHONE"] = 2] = "PHONE";
|
|
83
|
+
return AudioConnectType;
|
|
84
|
+
}({});
|
|
85
|
+
var _A = /*#__PURE__*/new WeakMap();
|
|
86
|
+
var _B = /*#__PURE__*/new WeakMap();
|
|
87
|
+
var _C = /*#__PURE__*/new WeakMap();
|
|
88
|
+
var _D = /*#__PURE__*/new WeakMap();
|
|
89
|
+
var _E = /*#__PURE__*/new WeakMap();
|
|
90
|
+
var _F = /*#__PURE__*/new WeakMap();
|
|
91
|
+
var _G = /*#__PURE__*/new WeakMap();
|
|
92
|
+
var _H = /*#__PURE__*/new WeakMap();
|
|
93
|
+
var _I = /*#__PURE__*/new WeakMap();
|
|
94
|
+
var _J = /*#__PURE__*/new WeakMap();
|
|
95
|
+
var _K = /*#__PURE__*/new WeakMap();
|
|
96
|
+
var _L = /*#__PURE__*/new WeakMap();
|
|
97
|
+
var _M = /*#__PURE__*/new WeakMap();
|
|
98
|
+
var _N = /*#__PURE__*/new WeakMap();
|
|
99
|
+
var _O = /*#__PURE__*/new WeakMap();
|
|
100
|
+
var _P = /*#__PURE__*/new WeakMap();
|
|
101
|
+
var _Q = /*#__PURE__*/new WeakMap();
|
|
102
|
+
_ref = (_pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
103
|
+
leading: true
|
|
104
|
+
})], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
105
|
+
leading: true
|
|
106
|
+
})], _stopCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
107
|
+
leading: true
|
|
108
|
+
})], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _showNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _hideNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _switchMenuDecs = [_mobx.action, _mobx.action.bound], _assignHostDecs = [_mobx.action, _mobx.action.bound], _toggleFoldDecs = [_mobx.action, _mobx.action.bound], _setShowArrowDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersLeftDecs = [_mobx.action, _mobx.action.bound], _handleAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleNewMessageEventDecs = [_mobx.action, _mobx.action.bound], _handleChatVisibleDecs = [_mobx.action, _mobx.action.bound], _handleCloudRecordingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleStreamsAddedOrUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
109
|
+
var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
110
|
+
function ActionBarStore(args) {
|
|
111
|
+
var _this = this;
|
|
112
|
+
(0, _classCallCheck2["default"])(this, ActionBarStore);
|
|
113
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
114
|
+
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
115
|
+
(0, _defineProperty2["default"])(this, "_chatRenderAt", 'aside');
|
|
116
|
+
(0, _defineProperty2["default"])(this, "_participantsRenderAt", 'aside');
|
|
117
|
+
(0, _defineProperty2["default"])(this, "_userObserver", {
|
|
118
|
+
onRemoteUsersJoined: this._handleRemoteUsersJoined,
|
|
119
|
+
onRemoteUsersLeft: this._handleRemoteUsersLeft,
|
|
120
|
+
onUserInfoUpdated: this._handleUserInfoUpdated,
|
|
121
|
+
onAllUserCountUpdated: this._handleAllUserCountUpdated
|
|
122
|
+
});
|
|
123
|
+
(0, _defineProperty2["default"])(this, "_roomObserver", {
|
|
124
|
+
onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated,
|
|
125
|
+
onCloudRecordingStateUpdated: this._handleCloudRecordingStateUpdated
|
|
126
|
+
});
|
|
127
|
+
(0, _defineProperty2["default"])(this, "_uiEventObserver", {
|
|
128
|
+
onEvent: this._onEvent
|
|
129
|
+
});
|
|
130
|
+
(0, _defineProperty2["default"])(this, "_openedDialogIdMap", new Map());
|
|
131
|
+
(0, _defineProperty2["default"])(this, "_participantVisible", false);
|
|
132
|
+
(0, _defineProperty2["default"])(this, "_chatVisible", false);
|
|
133
|
+
(0, _defineProperty2["default"])(this, "_liveStreamingDialogId", '');
|
|
134
|
+
(0, _defineProperty2["default"])(this, "_newMessageTooltipTimer", null);
|
|
135
|
+
(0, _defineProperty2["default"])(this, "_hideBarArrowTimer", null);
|
|
136
|
+
(0, _defineProperty2["default"])(this, "_sharingOwnerUser", undefined);
|
|
137
|
+
(0, _defineProperty2["default"])(this, "_isSharingScreen", false);
|
|
138
|
+
(0, _defineProperty2["default"])(this, "_microponeInitCount", 0);
|
|
139
|
+
(0, _defineProperty2["default"])(this, "_speakerInitCount", 0);
|
|
140
|
+
_classPrivateFieldInitSpec(this, _A, _init_users(this));
|
|
141
|
+
_classPrivateFieldInitSpec(this, _B, _init_newMessageTooltipVisible(this, false));
|
|
142
|
+
_classPrivateFieldInitSpec(this, _C, _init_newMessageCount(this, 0));
|
|
143
|
+
_classPrivateFieldInitSpec(this, _D, _init_latestMessage(this));
|
|
144
|
+
_classPrivateFieldInitSpec(this, _E, _init_totalUser(this));
|
|
145
|
+
_classPrivateFieldInitSpec(this, _F, _init_liveStreamingState(this));
|
|
146
|
+
_classPrivateFieldInitSpec(this, _G, _init_currentMenuIs(this, MoreMenuType.DEFAULT));
|
|
147
|
+
_classPrivateFieldInitSpec(this, _H, _init_cloudRecordingState(this));
|
|
148
|
+
_classPrivateFieldInitSpec(this, _I, _init_localUserRole(this));
|
|
149
|
+
_classPrivateFieldInitSpec(this, _J, _init_localUser(this));
|
|
150
|
+
_classPrivateFieldInitSpec(this, _K, _init_connectionSettingVisible(this, false));
|
|
151
|
+
_classPrivateFieldInitSpec(this, _L, _init_connectType(this, _type3.ConnectType.COMPUTER));
|
|
152
|
+
_classPrivateFieldInitSpec(this, _M, _init_folded(this, false));
|
|
153
|
+
_classPrivateFieldInitSpec(this, _N, _init_boardOwnerUser(this, null));
|
|
154
|
+
_classPrivateFieldInitSpec(this, _O, _init_hasScreenShare(this, false));
|
|
155
|
+
_classPrivateFieldInitSpec(this, _P, _init_showArrow(this, false));
|
|
156
|
+
_classPrivateFieldInitSpec(this, _Q, _init_phoneMicEnabled(this, false));
|
|
157
|
+
(0, _defineProperty2["default"])(this, "_handleNewMessageEvent", _init__handleNewMessageEvent(this, function (e) {
|
|
158
|
+
if (_this._chatVisible) return;
|
|
159
|
+
_this.newMessageCount += e.count;
|
|
160
|
+
_this.latestMessage = e.latestMessage;
|
|
161
|
+
_this._newMessageTooltipTimer && clearTimeout(_this._newMessageTooltipTimer);
|
|
162
|
+
_this.showNewMessageTooltip();
|
|
163
|
+
_this._newMessageTooltipTimer = window.setTimeout(function () {
|
|
164
|
+
_this.hideNewMessageTooltip();
|
|
165
|
+
}, 4000);
|
|
166
|
+
}));
|
|
167
|
+
this._roomControl = args.roomControl;
|
|
168
|
+
this._userControl = args.userControl;
|
|
169
|
+
this._streamControl = args.streamControl;
|
|
170
|
+
this._uiEventStore = args.uiEventStore;
|
|
171
|
+
this._securityStore = args.securityStore;
|
|
172
|
+
this._deviceStore = args.deviceStore;
|
|
173
|
+
this._mediaControl = args.mediaControl;
|
|
174
|
+
this._deviceStreamStore = args.deviceStreamStore;
|
|
175
|
+
this.localUserRole = this._userControl.getLocalUser().userRole;
|
|
176
|
+
this.localUser = args.userControl.getLocalUser();
|
|
177
|
+
this.users = Object.values(this._userControl.getUsers());
|
|
178
|
+
this.liveStreamingState = this._roomControl.getLiveStreamingState();
|
|
179
|
+
this.cloudRecordingState = this._roomControl.getCloudRecordingState();
|
|
180
|
+
this.totalUser = this._userControl.getAllUserCount();
|
|
181
|
+
this._microponeInitCount = this.microphoneList.length;
|
|
182
|
+
this._speakerInitCount = this.speakerList.length;
|
|
183
|
+
this._userControl.addObserver(this._userObserver);
|
|
184
|
+
this._roomControl.addObserver(this._roomObserver);
|
|
185
|
+
this._streamControl.addObserver({
|
|
186
|
+
onStreamsAdded: this._handleStreamsAddedOrUpdated,
|
|
187
|
+
onStreamsUpdated: this._handleStreamsAddedOrUpdated,
|
|
188
|
+
onStreamsRemoved: this._handleStreamsAddedOrUpdated
|
|
189
|
+
});
|
|
190
|
+
this._uiEventStore.addObserver(this._uiEventObserver);
|
|
191
|
+
this._deviceStore.addObserver({
|
|
192
|
+
onMicrophoneChanged: function onMicrophoneChanged(microphoneId) {
|
|
193
|
+
_this.connectType = microphoneId ? _type3.ConnectType.COMPUTER : _type3.ConnectType.NONE;
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
197
|
+
return _this.cloudRecordingState;
|
|
198
|
+
}, function (state) {
|
|
199
|
+
(0, _rendererEvent.sendEvent)({
|
|
200
|
+
action: _constant.RendererEventAction.CLOUD_RECORDING_STATE_CHANGED,
|
|
201
|
+
payload: state
|
|
202
|
+
});
|
|
203
|
+
var message;
|
|
204
|
+
if (state === _type.FcrRecordingState.Started) {
|
|
205
|
+
message = (0, _i18n.transI18n)('fmt_actionbar_button_enable');
|
|
206
|
+
} else if (state === _type.FcrRecordingState.Stopped) {
|
|
207
|
+
message = (0, _i18n.transI18n)('fmt_actionbar_button_disable');
|
|
208
|
+
}
|
|
209
|
+
if (message) {
|
|
210
|
+
_this._uiEventStore.showToast({
|
|
211
|
+
type: 'normal',
|
|
212
|
+
message: (0, _i18n.transI18n)('fmt_actionbar_tips_cloudrecording_already', {
|
|
213
|
+
reason1: message
|
|
214
|
+
})
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}), (0, _mobx.reaction)(function () {
|
|
218
|
+
return _this.localUserRole;
|
|
219
|
+
}, function (role) {
|
|
220
|
+
return (0, _rendererEvent.sendEvent)({
|
|
221
|
+
action: _constant.RendererEventAction.USER_ROLE_CHANGED,
|
|
222
|
+
payload: role
|
|
223
|
+
});
|
|
224
|
+
}));
|
|
225
|
+
}
|
|
226
|
+
return (0, _createClass2["default"])(ActionBarStore, [{
|
|
227
|
+
key: "users",
|
|
228
|
+
get: function get() {
|
|
229
|
+
return _classPrivateFieldGet(_A, this);
|
|
230
|
+
},
|
|
231
|
+
set: function set(v) {
|
|
232
|
+
_classPrivateFieldSet(_A, this, v);
|
|
233
|
+
}
|
|
234
|
+
}, {
|
|
235
|
+
key: "newMessageTooltipVisible",
|
|
236
|
+
get: function get() {
|
|
237
|
+
return _classPrivateFieldGet(_B, this);
|
|
238
|
+
},
|
|
239
|
+
set: function set(v) {
|
|
240
|
+
_classPrivateFieldSet(_B, this, v);
|
|
241
|
+
}
|
|
242
|
+
}, {
|
|
243
|
+
key: "newMessageCount",
|
|
244
|
+
get: function get() {
|
|
245
|
+
return _classPrivateFieldGet(_C, this);
|
|
246
|
+
},
|
|
247
|
+
set: function set(v) {
|
|
248
|
+
_classPrivateFieldSet(_C, this, v);
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
key: "latestMessage",
|
|
252
|
+
get: function get() {
|
|
253
|
+
return _classPrivateFieldGet(_D, this);
|
|
254
|
+
},
|
|
255
|
+
set: function set(v) {
|
|
256
|
+
_classPrivateFieldSet(_D, this, v);
|
|
257
|
+
}
|
|
258
|
+
}, {
|
|
259
|
+
key: "totalUser",
|
|
260
|
+
get: function get() {
|
|
261
|
+
return _classPrivateFieldGet(_E, this);
|
|
262
|
+
},
|
|
263
|
+
set: function set(v) {
|
|
264
|
+
_classPrivateFieldSet(_E, this, v);
|
|
265
|
+
}
|
|
266
|
+
}, {
|
|
267
|
+
key: "liveStreamingState",
|
|
268
|
+
get: function get() {
|
|
269
|
+
return _classPrivateFieldGet(_F, this);
|
|
270
|
+
},
|
|
271
|
+
set: function set(v) {
|
|
272
|
+
_classPrivateFieldSet(_F, this, v);
|
|
273
|
+
}
|
|
274
|
+
}, {
|
|
275
|
+
key: "currentMenuIs",
|
|
276
|
+
get: function get() {
|
|
277
|
+
return _classPrivateFieldGet(_G, this);
|
|
278
|
+
},
|
|
279
|
+
set: function set(v) {
|
|
280
|
+
_classPrivateFieldSet(_G, this, v);
|
|
281
|
+
}
|
|
282
|
+
}, {
|
|
283
|
+
key: "cloudRecordingState",
|
|
284
|
+
get: function get() {
|
|
285
|
+
return _classPrivateFieldGet(_H, this);
|
|
286
|
+
},
|
|
287
|
+
set: function set(v) {
|
|
288
|
+
_classPrivateFieldSet(_H, this, v);
|
|
289
|
+
}
|
|
290
|
+
}, {
|
|
291
|
+
key: "localUserRole",
|
|
292
|
+
get: function get() {
|
|
293
|
+
return _classPrivateFieldGet(_I, this);
|
|
294
|
+
},
|
|
295
|
+
set: function set(v) {
|
|
296
|
+
_classPrivateFieldSet(_I, this, v);
|
|
297
|
+
}
|
|
298
|
+
}, {
|
|
299
|
+
key: "localUser",
|
|
300
|
+
get: function get() {
|
|
301
|
+
return _classPrivateFieldGet(_J, this);
|
|
302
|
+
},
|
|
303
|
+
set: function set(v) {
|
|
304
|
+
_classPrivateFieldSet(_J, this, v);
|
|
305
|
+
}
|
|
306
|
+
}, {
|
|
307
|
+
key: "connectionSettingVisible",
|
|
308
|
+
get: function get() {
|
|
309
|
+
return _classPrivateFieldGet(_K, this);
|
|
310
|
+
},
|
|
311
|
+
set: function set(v) {
|
|
312
|
+
_classPrivateFieldSet(_K, this, v);
|
|
313
|
+
}
|
|
314
|
+
}, {
|
|
315
|
+
key: "connectType",
|
|
316
|
+
get: function get() {
|
|
317
|
+
return _classPrivateFieldGet(_L, this);
|
|
318
|
+
},
|
|
319
|
+
set: function set(v) {
|
|
320
|
+
_classPrivateFieldSet(_L, this, v);
|
|
321
|
+
}
|
|
322
|
+
}, {
|
|
323
|
+
key: "folded",
|
|
324
|
+
get: function get() {
|
|
325
|
+
return _classPrivateFieldGet(_M, this);
|
|
326
|
+
},
|
|
327
|
+
set: function set(v) {
|
|
328
|
+
_classPrivateFieldSet(_M, this, v);
|
|
329
|
+
}
|
|
330
|
+
}, {
|
|
331
|
+
key: "boardOwnerUser",
|
|
332
|
+
get: function get() {
|
|
333
|
+
return _classPrivateFieldGet(_N, this);
|
|
334
|
+
},
|
|
335
|
+
set: function set(v) {
|
|
336
|
+
_classPrivateFieldSet(_N, this, v);
|
|
337
|
+
}
|
|
338
|
+
}, {
|
|
339
|
+
key: "hasScreenShare",
|
|
340
|
+
get: function get() {
|
|
341
|
+
return _classPrivateFieldGet(_O, this);
|
|
342
|
+
},
|
|
343
|
+
set: function set(v) {
|
|
344
|
+
_classPrivateFieldSet(_O, this, v);
|
|
345
|
+
}
|
|
346
|
+
}, {
|
|
347
|
+
key: "showArrow",
|
|
348
|
+
get: function get() {
|
|
349
|
+
return _classPrivateFieldGet(_P, this);
|
|
350
|
+
},
|
|
351
|
+
set: function set(v) {
|
|
352
|
+
_classPrivateFieldSet(_P, this, v);
|
|
353
|
+
}
|
|
354
|
+
}, {
|
|
355
|
+
key: "phoneMicEnabled",
|
|
356
|
+
get: function get() {
|
|
357
|
+
return _classPrivateFieldGet(_Q, this);
|
|
358
|
+
},
|
|
359
|
+
set: function set(v) {
|
|
360
|
+
_classPrivateFieldSet(_Q, this, v);
|
|
361
|
+
}
|
|
362
|
+
}, {
|
|
363
|
+
key: "remoteUsers",
|
|
364
|
+
get: function get() {
|
|
365
|
+
var _this2 = this;
|
|
366
|
+
return this.users.filter(function (u) {
|
|
367
|
+
return u.userId !== _this2._userControl.getLocalUser().userId;
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
}, {
|
|
371
|
+
key: "hasStartScreenSharePermission",
|
|
372
|
+
get: function get() {
|
|
373
|
+
return this._securityStore.hasStartScreenSharePermission();
|
|
374
|
+
}
|
|
375
|
+
}, {
|
|
376
|
+
key: "hasStartLiveStreamingPermission",
|
|
377
|
+
get: function get() {
|
|
378
|
+
return this._securityStore.hasStartLiveStreamingPermission();
|
|
379
|
+
}
|
|
380
|
+
}, {
|
|
381
|
+
key: "hasEnableStartAudioPermission",
|
|
382
|
+
get: function get() {
|
|
383
|
+
return this._securityStore.hasEnableStartAudioPermission();
|
|
384
|
+
}
|
|
385
|
+
}, {
|
|
386
|
+
key: "hasEnableChangeNamePermission",
|
|
387
|
+
get: function get() {
|
|
388
|
+
return this._securityStore.hasEnableChangeNamePermission();
|
|
389
|
+
}
|
|
390
|
+
}, {
|
|
391
|
+
key: "hasEnableStartVideoPermission",
|
|
392
|
+
get: function get() {
|
|
393
|
+
return this._securityStore.hasEnableStartVideoPermission();
|
|
394
|
+
}
|
|
395
|
+
}, {
|
|
396
|
+
key: "hasLockRoomPermission",
|
|
397
|
+
get: function get() {
|
|
398
|
+
return this._securityStore.hasLockRoomPermission();
|
|
399
|
+
}
|
|
400
|
+
}, {
|
|
401
|
+
key: "hasEnableStartSharePermission",
|
|
402
|
+
get: function get() {
|
|
403
|
+
return this._securityStore.hasEnableStartScreenSharePermission();
|
|
404
|
+
}
|
|
405
|
+
}, {
|
|
406
|
+
key: "hasAllowWriteBoardPermission",
|
|
407
|
+
get: function get() {
|
|
408
|
+
return this._securityStore.hasAllowWriteBoardPermission();
|
|
409
|
+
}
|
|
410
|
+
}, {
|
|
411
|
+
key: "hasCloseWriteBoardPermission",
|
|
412
|
+
get: function get() {
|
|
413
|
+
return this._securityStore.hasCloseBoardPermission();
|
|
414
|
+
}
|
|
415
|
+
}, {
|
|
416
|
+
key: "hasAllowScreenShareAndBoardPermission",
|
|
417
|
+
get: function get() {
|
|
418
|
+
return this._securityStore.hasAllowScreenShareAndBoardPermission();
|
|
419
|
+
}
|
|
420
|
+
}, {
|
|
421
|
+
key: "hasAllowChatPermission",
|
|
422
|
+
get: function get() {
|
|
423
|
+
return this._securityStore.hasPermissionToControlAllowSendAll();
|
|
424
|
+
}
|
|
425
|
+
}, {
|
|
426
|
+
key: "hasStartCloudRecordingPermission",
|
|
427
|
+
get: function get() {
|
|
428
|
+
return this._securityStore.hasStartCloudRecordingPermission();
|
|
429
|
+
}
|
|
430
|
+
}, {
|
|
431
|
+
key: "hasAssignHostBeforeLeavingPermission",
|
|
432
|
+
get: function get() {
|
|
433
|
+
return this._securityStore.hasAssignHostBeforeLeavingPermission(this.localUserRole);
|
|
434
|
+
}
|
|
435
|
+
}, {
|
|
436
|
+
key: "hasEndRoomPermission",
|
|
437
|
+
get: function get() {
|
|
438
|
+
return this._securityStore.hasEndRoomPermission();
|
|
439
|
+
}
|
|
440
|
+
}, {
|
|
441
|
+
key: "isScreenShareAndBoardEnabled",
|
|
442
|
+
get: function get() {
|
|
443
|
+
return this._securityStore.allowScreenShareAndBoard();
|
|
444
|
+
}
|
|
445
|
+
}, {
|
|
446
|
+
key: "isBoardWriteEnabled",
|
|
447
|
+
get: function get() {
|
|
448
|
+
return this._securityStore.allowBoardWrite();
|
|
449
|
+
}
|
|
450
|
+
}, {
|
|
451
|
+
key: "isPstnUser",
|
|
452
|
+
get: function get() {
|
|
453
|
+
var streams = this._streamControl.getStreamsByUserId(this._userControl.getLocalUser().userId);
|
|
454
|
+
var hasPstnStream = streams.some(function (_ref2) {
|
|
455
|
+
var connectorType = _ref2.connectorType;
|
|
456
|
+
return connectorType === _type.FcrRoomConnectorType.PSTN;
|
|
457
|
+
});
|
|
458
|
+
return hasPstnStream;
|
|
459
|
+
}
|
|
460
|
+
}, {
|
|
461
|
+
key: "cameraEnabled",
|
|
462
|
+
get: function get() {
|
|
463
|
+
return this._deviceStore.cameraEnabled;
|
|
464
|
+
}
|
|
465
|
+
}, {
|
|
466
|
+
key: "cameraId",
|
|
467
|
+
get: function get() {
|
|
468
|
+
return this._deviceStore.cameraId;
|
|
469
|
+
}
|
|
470
|
+
}, {
|
|
471
|
+
key: "cameraList",
|
|
472
|
+
get: function get() {
|
|
473
|
+
return this._deviceStore.cameraList;
|
|
474
|
+
}
|
|
475
|
+
}, {
|
|
476
|
+
key: "microphoneEnabled",
|
|
477
|
+
get: function get() {
|
|
478
|
+
return this._deviceStore.microphoneEnabled;
|
|
479
|
+
}
|
|
480
|
+
}, {
|
|
481
|
+
key: "microphoneId",
|
|
482
|
+
get: function get() {
|
|
483
|
+
return this._deviceStore.microphoneId;
|
|
484
|
+
}
|
|
485
|
+
}, {
|
|
486
|
+
key: "microphoneVolumeLevel",
|
|
487
|
+
get: function get() {
|
|
488
|
+
return this._deviceStore.microphoneVolumeLevel;
|
|
489
|
+
}
|
|
490
|
+
}, {
|
|
491
|
+
key: "microphoneList",
|
|
492
|
+
get: function get() {
|
|
493
|
+
return this._deviceStore.microphoneList;
|
|
494
|
+
}
|
|
495
|
+
}, {
|
|
496
|
+
key: "speakerId",
|
|
497
|
+
get: function get() {
|
|
498
|
+
return this._deviceStore.speakerId;
|
|
499
|
+
}
|
|
500
|
+
}, {
|
|
501
|
+
key: "speakerList",
|
|
502
|
+
get: function get() {
|
|
503
|
+
return this._deviceStore.speakerList;
|
|
504
|
+
}
|
|
505
|
+
}, {
|
|
506
|
+
key: "pauseCloudRecording",
|
|
507
|
+
value: function pauseCloudRecording() {
|
|
508
|
+
this._roomControl.pauseCloudRecording();
|
|
509
|
+
}
|
|
510
|
+
}, {
|
|
511
|
+
key: "resumeCloudRecording",
|
|
512
|
+
value: function resumeCloudRecording() {
|
|
513
|
+
this._roomControl.resumeCloudRecording();
|
|
514
|
+
}
|
|
515
|
+
}, {
|
|
516
|
+
key: "stopCloudRecording",
|
|
517
|
+
value: function stopCloudRecording() {
|
|
518
|
+
this._roomControl.stopCloudRecording();
|
|
519
|
+
}
|
|
520
|
+
}, {
|
|
521
|
+
key: "startCloudRecording",
|
|
522
|
+
value: function startCloudRecording() {
|
|
523
|
+
this._roomControl.startCloudRecording({
|
|
524
|
+
audioProfile: _type.FcrCloudRecordingAudioProfile.DEFAULT,
|
|
525
|
+
videoEncoderConfig: {
|
|
526
|
+
dimensions: {
|
|
527
|
+
width: 1280,
|
|
528
|
+
height: 720
|
|
529
|
+
},
|
|
530
|
+
bitrate: 1200,
|
|
531
|
+
frameRate: 15
|
|
532
|
+
},
|
|
533
|
+
retryTimeout: 60
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
}, {
|
|
537
|
+
key: "toggleLayoutBarLock",
|
|
538
|
+
value: function toggleLayoutBarLock(payload) {
|
|
539
|
+
this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT_BAR_LOCK, payload);
|
|
540
|
+
}
|
|
541
|
+
}, {
|
|
542
|
+
key: "showNewMessageTooltip",
|
|
543
|
+
value: function showNewMessageTooltip() {
|
|
544
|
+
this.newMessageTooltipVisible = true;
|
|
545
|
+
}
|
|
546
|
+
}, {
|
|
547
|
+
key: "hideNewMessageTooltip",
|
|
548
|
+
value: function hideNewMessageTooltip() {
|
|
549
|
+
this.newMessageTooltipVisible = false;
|
|
550
|
+
}
|
|
551
|
+
}, {
|
|
552
|
+
key: "switchMenu",
|
|
553
|
+
value: function switchMenu(value) {
|
|
554
|
+
this.currentMenuIs = value || MoreMenuType.DEFAULT;
|
|
555
|
+
}
|
|
556
|
+
}, {
|
|
557
|
+
key: "isLocked",
|
|
558
|
+
value: function isLocked() {
|
|
559
|
+
return this._securityStore.isLockRoomEnabled();
|
|
560
|
+
}
|
|
561
|
+
}, {
|
|
562
|
+
key: "enableCamera",
|
|
563
|
+
value: function enableCamera(enable) {
|
|
564
|
+
this._deviceStreamStore.enableCameraWithStream(enable);
|
|
565
|
+
}
|
|
566
|
+
}, {
|
|
567
|
+
key: "setCameraId",
|
|
568
|
+
value: function setCameraId(cameraId) {
|
|
569
|
+
this._deviceStore.setCameraId(cameraId);
|
|
570
|
+
}
|
|
571
|
+
}, {
|
|
572
|
+
key: "enableMicrophone",
|
|
573
|
+
value: function enableMicrophone(enable) {
|
|
574
|
+
this._deviceStreamStore.enableMicrophoneWithStream(enable);
|
|
575
|
+
}
|
|
576
|
+
}, {
|
|
577
|
+
key: "setMicrophoneId",
|
|
578
|
+
value: function setMicrophoneId(microphoneId) {
|
|
579
|
+
this._deviceStore.setMicrophoneId(microphoneId);
|
|
580
|
+
}
|
|
581
|
+
}, {
|
|
582
|
+
key: "setSpeakerId",
|
|
583
|
+
value: function setSpeakerId(speakerId) {
|
|
584
|
+
this._deviceStore.setSpeakerId(speakerId);
|
|
585
|
+
}
|
|
586
|
+
}, {
|
|
587
|
+
key: "setAllowBoardWrite",
|
|
588
|
+
value: function () {
|
|
589
|
+
var _setAllowBoardWrite = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
590
|
+
var write, payload;
|
|
591
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
592
|
+
while (1) switch (_context.prev = _context.next) {
|
|
593
|
+
case 0:
|
|
594
|
+
write = this.isBoardWriteEnabled ? _enums.FcrSharePermissionState.OFF : _enums.FcrSharePermissionState.ON;
|
|
595
|
+
payload = {
|
|
596
|
+
board: {
|
|
597
|
+
write: write
|
|
598
|
+
}
|
|
599
|
+
};
|
|
600
|
+
return _context.abrupt("return", this._securityStore.setAllowWriteBoard(_enums.FcrSharePermissionState.ON, payload));
|
|
601
|
+
case 3:
|
|
602
|
+
case "end":
|
|
603
|
+
return _context.stop();
|
|
604
|
+
}
|
|
605
|
+
}, _callee, this);
|
|
606
|
+
}));
|
|
607
|
+
function setAllowBoardWrite() {
|
|
608
|
+
return _setAllowBoardWrite.apply(this, arguments);
|
|
609
|
+
}
|
|
610
|
+
return setAllowBoardWrite;
|
|
611
|
+
}()
|
|
612
|
+
}, {
|
|
613
|
+
key: "setAllowScreenShare",
|
|
614
|
+
value: function setAllowScreenShare(state) {
|
|
615
|
+
var enable = state ? state : this.isScreenShareAndBoardEnabled ? _enums.FcrSharePermissionState.OFF : _enums.FcrSharePermissionState.ON;
|
|
616
|
+
var payload = {
|
|
617
|
+
screen: enable,
|
|
618
|
+
board: {
|
|
619
|
+
start: enable
|
|
620
|
+
}
|
|
621
|
+
};
|
|
622
|
+
return this._securityStore.allowShare(_enums.FcrSharePermissionState.ON, payload);
|
|
623
|
+
}
|
|
624
|
+
}, {
|
|
625
|
+
key: "closeBoard",
|
|
626
|
+
value: function closeBoard() {
|
|
627
|
+
this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
|
|
628
|
+
}
|
|
629
|
+
}, {
|
|
630
|
+
key: "enableShare",
|
|
631
|
+
value: function () {
|
|
632
|
+
var _enableShare = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(state) {
|
|
633
|
+
var _this$boardOwnerUser;
|
|
634
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
635
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
636
|
+
case 0:
|
|
637
|
+
_context2.next = 2;
|
|
638
|
+
return this._securityStore.allowShare(state);
|
|
639
|
+
case 2:
|
|
640
|
+
if (state === _enums.FcrSharePermissionState.OFF) {
|
|
641
|
+
this._uiEventStore.showToast({
|
|
642
|
+
type: 'info',
|
|
643
|
+
message: this._userControl.getLocalUser().userId === ((_this$boardOwnerUser = this.boardOwnerUser) === null || _this$boardOwnerUser === void 0 ? void 0 : _this$boardOwnerUser.userId) ? (0, _i18n.transI18n)('fmt_screenshare_whiteboard_tips_stoppedboard') : (0, _i18n.transI18n)('fmt_screenshare_whiteboard_tips_stopped')
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
case 3:
|
|
647
|
+
case "end":
|
|
648
|
+
return _context2.stop();
|
|
649
|
+
}
|
|
650
|
+
}, _callee2, this);
|
|
651
|
+
}));
|
|
652
|
+
function enableShare(_x) {
|
|
653
|
+
return _enableShare.apply(this, arguments);
|
|
654
|
+
}
|
|
655
|
+
return enableShare;
|
|
656
|
+
}()
|
|
657
|
+
}, {
|
|
658
|
+
key: "assignHost",
|
|
659
|
+
value: function assignHost(user) {
|
|
660
|
+
this._userControl.updateUserRole(user.userId, _type.FcrUserRole.HOST);
|
|
661
|
+
this.leave();
|
|
662
|
+
}
|
|
663
|
+
}, {
|
|
664
|
+
key: "leave",
|
|
665
|
+
value: function leave() {
|
|
666
|
+
var _this$boardOwnerUser2;
|
|
667
|
+
this._uiEventStore.exitRoom(_type2.FcrUIExitReason.LEAVE_ROOM);
|
|
668
|
+
if (((_this$boardOwnerUser2 = this.boardOwnerUser) === null || _this$boardOwnerUser2 === void 0 ? void 0 : _this$boardOwnerUser2.userId) === this.localUser.userId) {
|
|
669
|
+
this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}, {
|
|
673
|
+
key: "keepPhoneAudioConnection",
|
|
674
|
+
value: function keepPhoneAudioConnection() {
|
|
675
|
+
this._userControl.splitAudioStream(this._userControl.getLocalUser().userId);
|
|
676
|
+
}
|
|
677
|
+
}, {
|
|
678
|
+
key: "end",
|
|
679
|
+
value: function end() {
|
|
680
|
+
this._roomControl.close();
|
|
681
|
+
}
|
|
682
|
+
}, {
|
|
683
|
+
key: "release",
|
|
684
|
+
value: function release() {
|
|
685
|
+
this._disposers.forEach(function (dispose) {
|
|
686
|
+
return dispose();
|
|
687
|
+
});
|
|
688
|
+
this._hideBarArrowTimer && clearTimeout(this._hideBarArrowTimer);
|
|
689
|
+
}
|
|
690
|
+
}, {
|
|
691
|
+
key: "allowJoinWithMuteAudio",
|
|
692
|
+
value: function allowJoinWithMuteAudio() {
|
|
693
|
+
return this._securityStore.allowJoinWithMuteAudio();
|
|
694
|
+
}
|
|
695
|
+
}, {
|
|
696
|
+
key: "setAllowJoinWithMuteAudio",
|
|
697
|
+
value: function setAllowJoinWithMuteAudio(enable) {
|
|
698
|
+
return this._securityStore.setAllowJoinWithMuteAudio(enable);
|
|
699
|
+
}
|
|
700
|
+
}, {
|
|
701
|
+
key: "isLockRoomEnabled",
|
|
702
|
+
value: function isLockRoomEnabled() {
|
|
703
|
+
return this._securityStore.isLockRoomEnabled();
|
|
704
|
+
}
|
|
705
|
+
}, {
|
|
706
|
+
key: "setLockRoomEnabled",
|
|
707
|
+
value: function setLockRoomEnabled(enable) {
|
|
708
|
+
return this._securityStore.setLockRoomEnabled(enable);
|
|
709
|
+
}
|
|
710
|
+
}, {
|
|
711
|
+
key: "setAllowShareScreen",
|
|
712
|
+
value: function setAllowShareScreen(enable) {
|
|
713
|
+
return this._securityStore.setAllowShareScreen(enable);
|
|
714
|
+
}
|
|
715
|
+
}, {
|
|
716
|
+
key: "allowShareScreen",
|
|
717
|
+
value: function allowShareScreen() {
|
|
718
|
+
return this._securityStore.allowShareScreen();
|
|
719
|
+
}
|
|
720
|
+
}, {
|
|
721
|
+
key: "allowWriteBoard",
|
|
722
|
+
value: function allowWriteBoard() {
|
|
723
|
+
return this._securityStore.hasAllowWriteBoardPermission();
|
|
724
|
+
}
|
|
725
|
+
}, {
|
|
726
|
+
key: "allowChat",
|
|
727
|
+
value: function allowChat() {
|
|
728
|
+
return this._securityStore.allowChat();
|
|
729
|
+
}
|
|
730
|
+
}, {
|
|
731
|
+
key: "setAllowChat",
|
|
732
|
+
value: function setAllowChat(enable) {
|
|
733
|
+
return this._securityStore.setAllowChat(enable);
|
|
734
|
+
}
|
|
735
|
+
}, {
|
|
736
|
+
key: "allowUnmuteSelfAudio",
|
|
737
|
+
value: function allowUnmuteSelfAudio() {
|
|
738
|
+
return this._securityStore.allowUnmuteSelfAudio();
|
|
739
|
+
}
|
|
740
|
+
}, {
|
|
741
|
+
key: "setAllowUnmuteSelfAudio",
|
|
742
|
+
value: function setAllowUnmuteSelfAudio(enable) {
|
|
743
|
+
return this._securityStore.setAllowUnmuteSelfAudio(enable);
|
|
744
|
+
}
|
|
745
|
+
}, {
|
|
746
|
+
key: "allowUnmuteSelfVideo",
|
|
747
|
+
value: function allowUnmuteSelfVideo() {
|
|
748
|
+
return this._securityStore.allowUnmuteSelfVideo();
|
|
749
|
+
}
|
|
750
|
+
}, {
|
|
751
|
+
key: "setAllowUnmuteSelfVideo",
|
|
752
|
+
value: function setAllowUnmuteSelfVideo(enable) {
|
|
753
|
+
return this._securityStore.setAllowUnmuteSelfVideo(enable);
|
|
754
|
+
}
|
|
755
|
+
}, {
|
|
756
|
+
key: "toggleChat",
|
|
757
|
+
value: function toggleChat() {
|
|
758
|
+
!this._chatVisible || (0, _env.isElectron)() && this._chatRenderAt === 'dialog' ? this.openChat() : this.closeChat();
|
|
759
|
+
}
|
|
760
|
+
}, {
|
|
761
|
+
key: "openChat",
|
|
762
|
+
value: function openChat() {
|
|
763
|
+
if (this._chatRenderAt === 'aside') {
|
|
764
|
+
this._uiEventStore.updateAside({
|
|
765
|
+
chat: true
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
if (this._chatRenderAt === 'dialog') {
|
|
769
|
+
this._uiEventStore.openDialog(_constant.DialogKey.CHAT);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
}, {
|
|
773
|
+
key: "closeChat",
|
|
774
|
+
value: function closeChat() {
|
|
775
|
+
if (!this._chatVisible) return;
|
|
776
|
+
if (this._chatRenderAt === 'aside') {
|
|
777
|
+
this._uiEventStore.updateAside({
|
|
778
|
+
chat: false
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
if (this._chatRenderAt === 'dialog') {
|
|
782
|
+
var chatDialogId = '';
|
|
783
|
+
this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
|
|
784
|
+
if (dialogKey === _constant.DialogKey.CHAT) {
|
|
785
|
+
chatDialogId = dialogId;
|
|
786
|
+
}
|
|
787
|
+
});
|
|
788
|
+
chatDialogId && this._uiEventStore.closeDialog(chatDialogId);
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}, {
|
|
792
|
+
key: "toggleParticipants",
|
|
793
|
+
value: function toggleParticipants() {
|
|
794
|
+
!this._participantVisible || (0, _env.isElectron)() && this._participantsRenderAt === 'dialog' ? this.openParticipants() : this.closeParticipants();
|
|
795
|
+
}
|
|
796
|
+
}, {
|
|
797
|
+
key: "openParticipants",
|
|
798
|
+
value: function openParticipants() {
|
|
799
|
+
if (this._participantsRenderAt === 'aside') {
|
|
800
|
+
this._uiEventStore.updateAside({
|
|
801
|
+
participant: true
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
if (this._participantsRenderAt === 'dialog') {
|
|
805
|
+
this._uiEventStore.openDialog(_constant.DialogKey.PARTICIPANT);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}, {
|
|
809
|
+
key: "closeParticipants",
|
|
810
|
+
value: function closeParticipants() {
|
|
811
|
+
if (!this._participantVisible) return;
|
|
812
|
+
if (this._participantsRenderAt === 'aside') {
|
|
813
|
+
this._uiEventStore.updateAside({
|
|
814
|
+
participant: false
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
if (this._participantsRenderAt === 'dialog') {
|
|
818
|
+
var participantDialogId = '';
|
|
819
|
+
this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
|
|
820
|
+
if (dialogKey === _constant.DialogKey.PARTICIPANT) {
|
|
821
|
+
participantDialogId = dialogId;
|
|
822
|
+
}
|
|
823
|
+
});
|
|
824
|
+
participantDialogId && this._uiEventStore.closeDialog(participantDialogId);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
}, {
|
|
828
|
+
key: "openDeviceSettingDialog",
|
|
829
|
+
value: function openDeviceSettingDialog(arg) {
|
|
830
|
+
this._uiEventStore.openDeviceSettingDialog(arg);
|
|
831
|
+
}
|
|
832
|
+
}, {
|
|
833
|
+
key: "startScreenShare",
|
|
834
|
+
value: function startScreenShare() {
|
|
835
|
+
console.log('performance: click button', new Date().getTime());
|
|
836
|
+
// if (!this._interceptShareBoard()) return;
|
|
837
|
+
if (!this._interceptShareScreen()) return;
|
|
838
|
+
this._uiEventStore.startShareScreen();
|
|
839
|
+
}
|
|
840
|
+
}, {
|
|
841
|
+
key: "openWhiteboard",
|
|
842
|
+
value: function openWhiteboard() {
|
|
843
|
+
if (!this._interceptShareBoard()) return;
|
|
844
|
+
this._uiEventStore.sendEvent(_constant.UIAction.OPEN_WHITEBOARD);
|
|
845
|
+
}
|
|
846
|
+
}, {
|
|
847
|
+
key: "closeWhiteboard",
|
|
848
|
+
value: function closeWhiteboard() {
|
|
849
|
+
this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
|
|
850
|
+
}
|
|
851
|
+
}, {
|
|
852
|
+
key: "stopScreenShare",
|
|
853
|
+
value: function stopScreenShare() {
|
|
854
|
+
this._uiEventStore.stopShareScreen();
|
|
855
|
+
}
|
|
856
|
+
}, {
|
|
857
|
+
key: "openLiveStreamingDialog",
|
|
858
|
+
value: function openLiveStreamingDialog() {
|
|
859
|
+
if (this._liveStreamingDialogId) {
|
|
860
|
+
(0, _rendererEvent.sendEvent)({
|
|
861
|
+
action: _constant.RendererEventAction.MOVE_LIVE_STREAMING_TO_TOP,
|
|
862
|
+
payload: 'live-streaming'
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
this._liveStreamingDialogId = this._uiEventStore.openDialog(_constant.DialogKey.LIVE_STREAMING);
|
|
866
|
+
this.toggleLayoutBarLock(true);
|
|
867
|
+
}
|
|
868
|
+
}, {
|
|
869
|
+
key: "closeLiveStreamingDialog",
|
|
870
|
+
value: function closeLiveStreamingDialog() {
|
|
871
|
+
this._uiEventStore.closeDialog(this._liveStreamingDialogId);
|
|
872
|
+
this._liveStreamingDialogId = '';
|
|
873
|
+
this.toggleLayoutBarLock(false);
|
|
874
|
+
}
|
|
875
|
+
}, {
|
|
876
|
+
key: "toggleConnection",
|
|
877
|
+
value: function toggleConnection() {
|
|
878
|
+
this.connectionSettingVisible ? this.closeConnection() : this.openConnection('computer');
|
|
879
|
+
}
|
|
880
|
+
}, {
|
|
881
|
+
key: "openConnection",
|
|
882
|
+
value: function openConnection(type) {
|
|
883
|
+
this._uiEventStore.openDialog(_constant.DialogKey.CONNECTION_GATEWAY, '', {
|
|
884
|
+
type: type
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
}, {
|
|
888
|
+
key: "closeConnection",
|
|
889
|
+
value: function closeConnection() {
|
|
890
|
+
var connectionDialogId = '';
|
|
891
|
+
this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
|
|
892
|
+
if (dialogKey === _constant.DialogKey.CONNECTION_GATEWAY) {
|
|
893
|
+
connectionDialogId = dialogId;
|
|
894
|
+
}
|
|
895
|
+
});
|
|
896
|
+
this._uiEventStore.closeDialog(connectionDialogId);
|
|
897
|
+
}
|
|
898
|
+
}, {
|
|
899
|
+
key: "toggleFold",
|
|
900
|
+
value: function toggleFold() {
|
|
901
|
+
this.folded = !this.folded;
|
|
902
|
+
this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN);
|
|
903
|
+
}
|
|
904
|
+
}, {
|
|
905
|
+
key: "setShowArrow",
|
|
906
|
+
value: function setShowArrow(show) {
|
|
907
|
+
var _this3 = this;
|
|
908
|
+
if (this._hideBarArrowTimer) clearTimeout(this._hideBarArrowTimer);
|
|
909
|
+
if (show) {
|
|
910
|
+
this.showArrow = true;
|
|
911
|
+
} else {
|
|
912
|
+
this._hideBarArrowTimer = setTimeout(function () {
|
|
913
|
+
return _this3.showArrow = false;
|
|
914
|
+
}, 1000);
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
}, {
|
|
918
|
+
key: "_interceptShareScreen",
|
|
919
|
+
value: function _interceptShareScreen() {
|
|
920
|
+
var _this4 = this;
|
|
921
|
+
if (this.hasScreenShare || this.boardOwnerUser && this.boardOwnerUser.userId !== this._userControl.getLocalUser().userId) {
|
|
922
|
+
var _this$_sharingOwnerUs;
|
|
923
|
+
var confirmKey = this._uiEventStore.openConfirmDialog({
|
|
924
|
+
title: (0, _i18n.transI18n)('fmt_share_tips_othsersharing'),
|
|
925
|
+
content: (0, _i18n.transI18n)("fmt_share_tips_stopothersharing", {
|
|
926
|
+
reason1: ((_this$_sharingOwnerUs = this._sharingOwnerUser) === null || _this$_sharingOwnerUs === void 0 ? void 0 : _this$_sharingOwnerUs.userName) || (0, _i18n.transI18n)('fmt_actionbar_screenshare_labels_others')
|
|
927
|
+
}),
|
|
928
|
+
okText: (0, _i18n.transI18n)('fmt_screenshare_continue_share'),
|
|
929
|
+
closable: false,
|
|
930
|
+
alignCenter: true,
|
|
931
|
+
onOk: function onOk() {
|
|
932
|
+
_this4._uiEventStore.startShareScreen();
|
|
933
|
+
_this4._uiEventStore.closeDialog(confirmKey);
|
|
934
|
+
},
|
|
935
|
+
onCancel: function onCancel() {
|
|
936
|
+
_this4._uiEventStore.closeDialog(confirmKey);
|
|
937
|
+
}
|
|
938
|
+
});
|
|
939
|
+
return false;
|
|
940
|
+
} else {
|
|
941
|
+
return true;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
}, {
|
|
945
|
+
key: "_interceptShareBoard",
|
|
946
|
+
value: function _interceptShareBoard() {
|
|
947
|
+
var _this5 = this;
|
|
948
|
+
if (this.boardOwnerUser && this.boardOwnerUser.userId !== this._userControl.getLocalUser().userId) {
|
|
949
|
+
var confirmKey = this._uiEventStore.openConfirmDialog({
|
|
950
|
+
icon: _type5.FcrIconType.FCR_SCREENSHARING,
|
|
951
|
+
title: (0, _i18n.transI18n)('fmt_share_tips_othersharingboard'),
|
|
952
|
+
content: (0, _i18n.transI18n)("fmt_share_tips_boardonly"),
|
|
953
|
+
okText: (0, _i18n.transI18n)('fmt_screenshare_whiteboard_button_gotit'),
|
|
954
|
+
closable: false,
|
|
955
|
+
showCancel: false,
|
|
956
|
+
onOk: function onOk() {
|
|
957
|
+
_this5._uiEventStore.startShareScreen();
|
|
958
|
+
_this5._uiEventStore.closeDialog(confirmKey);
|
|
959
|
+
},
|
|
960
|
+
onCancel: function onCancel() {
|
|
961
|
+
_this5._uiEventStore.closeDialog(confirmKey);
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
return false;
|
|
965
|
+
} else {
|
|
966
|
+
return true;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
}, {
|
|
970
|
+
key: "_handleRemoteUsersJoined",
|
|
971
|
+
value: function _handleRemoteUsersJoined(roomId, events) {
|
|
972
|
+
var _this6 = this;
|
|
973
|
+
var modifiedUsers = events.map(function (e) {
|
|
974
|
+
return e.modifiedUser;
|
|
975
|
+
});
|
|
976
|
+
modifiedUsers.forEach(function (user) {
|
|
977
|
+
var userIndex = _this6.users.findIndex(function (u) {
|
|
978
|
+
return u.userId === user.userId;
|
|
979
|
+
});
|
|
980
|
+
if (userIndex !== -1) {
|
|
981
|
+
_this6.users[userIndex] = user;
|
|
982
|
+
} else {
|
|
983
|
+
_this6.users.push(user);
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
this.users = (0, _toConsumableArray2["default"])(this.users);
|
|
987
|
+
}
|
|
988
|
+
}, {
|
|
989
|
+
key: "_handleRemoteUsersLeft",
|
|
990
|
+
value: function _handleRemoteUsersLeft(roomId, events) {
|
|
991
|
+
var _this7 = this;
|
|
992
|
+
var modifiedUsers = events.map(function (e) {
|
|
993
|
+
return e.modifiedUser;
|
|
994
|
+
});
|
|
995
|
+
modifiedUsers.forEach(function (user) {
|
|
996
|
+
var userIndex = _this7.users.findIndex(function (u) {
|
|
997
|
+
return u.userId === user.userId;
|
|
998
|
+
});
|
|
999
|
+
if (userIndex !== -1) {
|
|
1000
|
+
_this7.users.splice(userIndex, 1);
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1003
|
+
this.users = (0, _toConsumableArray2["default"])(this.users);
|
|
1004
|
+
}
|
|
1005
|
+
}, {
|
|
1006
|
+
key: "_handleAllUserCountUpdated",
|
|
1007
|
+
value: function _handleAllUserCountUpdated(_roomId, count) {
|
|
1008
|
+
this.totalUser = count;
|
|
1009
|
+
}
|
|
1010
|
+
}, {
|
|
1011
|
+
key: "_handleUserInfoUpdated",
|
|
1012
|
+
value: function _handleUserInfoUpdated(_roomId, event) {
|
|
1013
|
+
var modifiedUser = event.modifiedUser;
|
|
1014
|
+
var index = this.users.findIndex(function (u) {
|
|
1015
|
+
return u.userId === modifiedUser.userId;
|
|
1016
|
+
});
|
|
1017
|
+
if (index === -1) {
|
|
1018
|
+
return;
|
|
1019
|
+
}
|
|
1020
|
+
this.users[index] = modifiedUser;
|
|
1021
|
+
this.users = (0, _toConsumableArray2["default"])(this.users);
|
|
1022
|
+
this.localUserRole = this._userControl.getLocalUser().userRole;
|
|
1023
|
+
}
|
|
1024
|
+
}, {
|
|
1025
|
+
key: "_handleLiveStreamingStateUpdated",
|
|
1026
|
+
value: function _handleLiveStreamingStateUpdated(_roomId, state) {
|
|
1027
|
+
this.liveStreamingState = state;
|
|
1028
|
+
}
|
|
1029
|
+
}, {
|
|
1030
|
+
key: "_handleChatVisible",
|
|
1031
|
+
value: function _handleChatVisible(visible) {
|
|
1032
|
+
this._chatVisible = visible;
|
|
1033
|
+
if (visible) {
|
|
1034
|
+
this._newMessageTooltipTimer && clearTimeout(this._newMessageTooltipTimer);
|
|
1035
|
+
this.hideNewMessageTooltip();
|
|
1036
|
+
this.newMessageCount = 0;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
}, {
|
|
1040
|
+
key: "_onEvent",
|
|
1041
|
+
value: function _onEvent(action, payload) {
|
|
1042
|
+
if (action === _constant.UIAction.UPDATE_ASIDE) {
|
|
1043
|
+
var _ref3 = payload,
|
|
1044
|
+
chat = _ref3.chat,
|
|
1045
|
+
participant = _ref3.participant;
|
|
1046
|
+
if (chat) {
|
|
1047
|
+
this._chatRenderAt = 'aside';
|
|
1048
|
+
this._handleChatVisible(true);
|
|
1049
|
+
}
|
|
1050
|
+
if (chat === false) {
|
|
1051
|
+
this._handleChatVisible(false);
|
|
1052
|
+
}
|
|
1053
|
+
if (participant) {
|
|
1054
|
+
this._participantsRenderAt = 'aside';
|
|
1055
|
+
this._participantVisible = true;
|
|
1056
|
+
}
|
|
1057
|
+
if (participant === false) {
|
|
1058
|
+
this._participantVisible = false;
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
if (action === _constant.UIAction.RECEIVE_NEW_CHAT_MESSAGES) {
|
|
1062
|
+
this._handleNewMessageEvent(payload);
|
|
1063
|
+
}
|
|
1064
|
+
if (action === _constant.UIAction.CLOSE_DIALOG) {
|
|
1065
|
+
var _ref4 = payload,
|
|
1066
|
+
dialogId = _ref4.dialogId;
|
|
1067
|
+
var dialogKey = this._openedDialogIdMap.get(dialogId);
|
|
1068
|
+
if (dialogKey === _constant.DialogKey.CHAT) {
|
|
1069
|
+
this._handleChatVisible(false);
|
|
1070
|
+
}
|
|
1071
|
+
if (dialogKey === _constant.DialogKey.PARTICIPANT) {
|
|
1072
|
+
this._participantVisible = false;
|
|
1073
|
+
}
|
|
1074
|
+
this._openedDialogIdMap["delete"](dialogId);
|
|
1075
|
+
if (dialogKey === _constant.DialogKey.CONTROL_BAR) {
|
|
1076
|
+
this._isSharingScreen = false;
|
|
1077
|
+
this._chatRenderAt = 'aside';
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
if (action === _constant.UIAction.OPEN_DIALOG) {
|
|
1081
|
+
var _ref5 = payload,
|
|
1082
|
+
_dialogKey = _ref5.dialogKey,
|
|
1083
|
+
_dialogId = _ref5.dialogId;
|
|
1084
|
+
this._openedDialogIdMap.set(_dialogId, _dialogKey);
|
|
1085
|
+
if (_dialogKey === _constant.DialogKey.CHAT) {
|
|
1086
|
+
this._chatRenderAt = 'dialog';
|
|
1087
|
+
this._handleChatVisible(true);
|
|
1088
|
+
}
|
|
1089
|
+
if (_dialogKey === _constant.DialogKey.PARTICIPANT) {
|
|
1090
|
+
this._participantsRenderAt = 'dialog';
|
|
1091
|
+
this._participantVisible = true;
|
|
1092
|
+
}
|
|
1093
|
+
if (_dialogKey === _constant.DialogKey.CONTROL_BAR) {
|
|
1094
|
+
this._isSharingScreen = true;
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
if (action === _constant.UIAction.CLOSE_LIVE_STEAMING_DIALOG) {
|
|
1098
|
+
this.closeLiveStreamingDialog();
|
|
1099
|
+
}
|
|
1100
|
+
if (action === _constant.UIAction.OPEN_LIVE_STEAMING_DIALOG) {
|
|
1101
|
+
this.openLiveStreamingDialog();
|
|
1102
|
+
}
|
|
1103
|
+
if (action === _constant.UIAction.CLOUD_RECORDING) {
|
|
1104
|
+
var _ref6 = payload,
|
|
1105
|
+
_action = _ref6.action;
|
|
1106
|
+
if (_action === 'start') this.startCloudRecording();else if (_action === 'pause') this.pauseCloudRecording();else if (_action === 'resume') this.resumeCloudRecording();else this.stopCloudRecording();
|
|
1107
|
+
}
|
|
1108
|
+
if (action === _constant.UIAction.OPEN_CONNECTION_DIALOG) {
|
|
1109
|
+
this.openConnection(payload.params.type);
|
|
1110
|
+
}
|
|
1111
|
+
if (action === _constant.UIAction.CLOSE_CONNECTION_DIALOG) {
|
|
1112
|
+
this.closeConnection();
|
|
1113
|
+
}
|
|
1114
|
+
if (action === _constant.UIAction.WHITEBOARD_CHANGED) {
|
|
1115
|
+
var _ref7 = payload,
|
|
1116
|
+
_action2 = _ref7.action,
|
|
1117
|
+
value = _ref7.payload;
|
|
1118
|
+
if (_action2 === _type4.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
|
|
1119
|
+
this.boardOwnerUser = value ? this.users.find(function (u) {
|
|
1120
|
+
return u.userId === value;
|
|
1121
|
+
}) : null;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}, {
|
|
1126
|
+
key: "_handleCloudRecordingStateUpdated",
|
|
1127
|
+
value: function _handleCloudRecordingStateUpdated(roomId, state) {
|
|
1128
|
+
this.cloudRecordingState = state;
|
|
1129
|
+
}
|
|
1130
|
+
}, {
|
|
1131
|
+
key: "_handleStreamsAddedOrUpdated",
|
|
1132
|
+
value: function _handleStreamsAddedOrUpdated() {
|
|
1133
|
+
var _this$_streamControl$;
|
|
1134
|
+
this.hasScreenShare = this._streamControl.getStreamList().some(function (stream) {
|
|
1135
|
+
return stream.videoSourceType === _type7.AgoraRteVideoSourceType.SCREEN;
|
|
1136
|
+
});
|
|
1137
|
+
this._sharingOwnerUser = (_this$_streamControl$ = this._streamControl.getStreamList().find(function (stream) {
|
|
1138
|
+
return stream.videoSourceType === _type7.AgoraRteVideoSourceType.SCREEN;
|
|
1139
|
+
})) === null || _this$_streamControl$ === void 0 ? void 0 : _this$_streamControl$.owner;
|
|
1140
|
+
var _this$_userControl$ge = this._userControl.getLocalUser(),
|
|
1141
|
+
userId = _this$_userControl$ge.userId;
|
|
1142
|
+
var streams = this._streamControl.getStreamsByUserId(userId);
|
|
1143
|
+
var pstnStream = streams.find(function (_ref8) {
|
|
1144
|
+
var connectorType = _ref8.connectorType;
|
|
1145
|
+
return connectorType === _type.FcrRoomConnectorType.PSTN;
|
|
1146
|
+
});
|
|
1147
|
+
var hasPstnStream = !!pstnStream;
|
|
1148
|
+
this.connectType = hasPstnStream ? _type3.ConnectType.PHONE : this.microphoneId ? _type3.ConnectType.COMPUTER : _type3.ConnectType.NONE;
|
|
1149
|
+
if (hasPstnStream) {
|
|
1150
|
+
this.phoneMicEnabled = pstnStream.streamType === _type6.AgoraRteMediaStreamType.BOTH || pstnStream.audioSourceState === _type.FcrMediaSourceState.STARTED;
|
|
1151
|
+
(0, _rendererEvent.sendEvent)({
|
|
1152
|
+
action: _constant.RendererEventAction.SET_CONTROL_BAR_PHONECALL_STATE,
|
|
1153
|
+
payload: this.phoneMicEnabled
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
}]);
|
|
1158
|
+
}();
|
|
1159
|
+
_ActionBarStore = ActionBarStore;
|
|
1160
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarStore, [[_mobx.observable, 1, "users"], [_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "newMessageCount"], [_mobx.observable, 1, "latestMessage"], [_mobx.observable, 1, "totalUser"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "currentMenuIs"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "connectionSettingVisible"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "folded"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "hasScreenShare"], [_mobx.observable, 1, "showArrow"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.computed, 3, "remoteUsers"], [_mobx.computed, 3, "hasStartScreenSharePermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasEnableStartAudioPermission"], [_mobx.computed, 3, "hasEnableChangeNamePermission"], [_mobx.computed, 3, "hasEnableStartVideoPermission"], [_mobx.computed, 3, "hasLockRoomPermission"], [_mobx.computed, 3, "hasEnableStartSharePermission"], [_mobx.computed, 3, "hasAllowWriteBoardPermission"], [_mobx.computed, 3, "hasCloseWriteBoardPermission"], [_mobx.computed, 3, "hasAllowScreenShareAndBoardPermission"], [_mobx.computed, 3, "hasAllowChatPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "isScreenShareAndBoardEnabled"], [_mobx.computed, 3, "isBoardWriteEnabled"], [_mobx.computed, 3, "isPstnUser"], [_mobx.computed, 3, "cameraId"], [_mobx.computed, 3, "cameraList"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "microphoneId"], [_mobx.computed, 3, "microphoneVolumeLevel"], [_mobx.computed, 3, "microphoneList"], [_mobx.computed, 3, "speakerId"], [_mobx.computed, 3, "speakerList"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_showNewMessageTooltipDecs, 18, "showNewMessageTooltip"], [_hideNewMessageTooltipDecs, 18, "hideNewMessageTooltip"], [_switchMenuDecs, 18, "switchMenu"], [_decorator.bound, 2, "isLocked"], [_decorator.bound, 2, "enableCamera"], [_decorator.bound, 2, "setCameraId"], [_decorator.bound, 2, "enableMicrophone"], [_decorator.bound, 2, "setMicrophoneId"], [_decorator.bound, 2, "setSpeakerId"], [_decorator.bound, 2, "setAllowBoardWrite"], [_decorator.bound, 2, "setAllowScreenShare"], [_decorator.bound, 2, "closeBoard"], [_decorator.bound, 2, "enableShare"], [_assignHostDecs, 18, "assignHost"], [_decorator.bound, 2, "leave"], [_decorator.bound, 2, "keepPhoneAudioConnection"], [_decorator.bound, 2, "end"], [_decorator.bound, 2, "allowJoinWithMuteAudio"], [_decorator.bound, 2, "setAllowJoinWithMuteAudio"], [_decorator.bound, 2, "isLockRoomEnabled"], [_decorator.bound, 2, "setLockRoomEnabled"], [_decorator.bound, 2, "setAllowShareScreen"], [_decorator.bound, 2, "allowShareScreen"], [_decorator.bound, 2, "allowWriteBoard"], [_decorator.bound, 2, "allowChat"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "allowUnmuteSelfAudio"], [_decorator.bound, 2, "setAllowUnmuteSelfAudio"], [_decorator.bound, 2, "allowUnmuteSelfVideo"], [_decorator.bound, 2, "setAllowUnmuteSelfVideo"], [_decorator.bound, 2, "toggleChat"], [_decorator.bound, 2, "openChat"], [_decorator.bound, 2, "closeChat"], [_decorator.bound, 2, "toggleParticipants"], [_decorator.bound, 2, "openParticipants"], [_decorator.bound, 2, "closeParticipants"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_decorator.bound, 2, "startScreenShare"], [_decorator.bound, 2, "openWhiteboard"], [_decorator.bound, 2, "closeWhiteboard"], [_decorator.bound, 2, "stopScreenShare"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_decorator.bound, 2, "closeLiveStreamingDialog"], [_decorator.bound, 2, "toggleConnection"], [_decorator.bound, 2, "openConnection"], [_decorator.bound, 2, "closeConnection"], [_toggleFoldDecs, 18, "toggleFold"], [_setShowArrowDecs, 18, "setShowArrow"], [_decorator.bound, 2, "_interceptShareScreen"], [_decorator.bound, 2, "_interceptShareBoard"], [_handleRemoteUsersJoinedDecs, 18, "_handleRemoteUsersJoined"], [_handleRemoteUsersLeftDecs, 18, "_handleRemoteUsersLeft"], [_handleAllUserCountUpdatedDecs, 18, "_handleAllUserCountUpdated"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_handleChatVisibleDecs, 18, "_handleChatVisible"], [_decorator.bound, 2, "_onEvent"], [_handleCloudRecordingStateUpdatedDecs, 18, "_handleCloudRecordingStateUpdated"], [_handleStreamsAddedOrUpdatedDecs, 18, "_handleStreamsAddedOrUpdated"], [_handleNewMessageEventDecs, 16, "_handleNewMessageEvent"]], []).e, 19);
|
|
1161
|
+
_init_users = _applyDecs$e[0];
|
|
1162
|
+
_init_newMessageTooltipVisible = _applyDecs$e[1];
|
|
1163
|
+
_init_newMessageCount = _applyDecs$e[2];
|
|
1164
|
+
_init_latestMessage = _applyDecs$e[3];
|
|
1165
|
+
_init_totalUser = _applyDecs$e[4];
|
|
1166
|
+
_init_liveStreamingState = _applyDecs$e[5];
|
|
1167
|
+
_init_currentMenuIs = _applyDecs$e[6];
|
|
1168
|
+
_init_cloudRecordingState = _applyDecs$e[7];
|
|
1169
|
+
_init_localUserRole = _applyDecs$e[8];
|
|
1170
|
+
_init_localUser = _applyDecs$e[9];
|
|
1171
|
+
_init_connectionSettingVisible = _applyDecs$e[10];
|
|
1172
|
+
_init_connectType = _applyDecs$e[11];
|
|
1173
|
+
_init_folded = _applyDecs$e[12];
|
|
1174
|
+
_init_boardOwnerUser = _applyDecs$e[13];
|
|
1175
|
+
_init_hasScreenShare = _applyDecs$e[14];
|
|
1176
|
+
_init_showArrow = _applyDecs$e[15];
|
|
1177
|
+
_init_phoneMicEnabled = _applyDecs$e[16];
|
|
1178
|
+
_init__handleNewMessageEvent = _applyDecs$e[17];
|
|
1179
|
+
_initProto = _applyDecs$e[18];
|