fcr-ui-scene 3.1.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/base.d.ts +0 -1
- package/lib/base.js +16 -0
- package/lib/common/device-store.d.ts +4 -5
- package/lib/common/device-store.js +178 -86
- package/lib/common/device-stream-store.d.ts +3 -2
- package/lib/common/device-stream-store.js +94 -72
- package/lib/common/event-store.d.ts +20 -3
- package/lib/common/event-store.js +43 -5
- package/lib/common/security-store.d.ts +16 -16
- package/lib/common/security-store.js +278 -124
- package/lib/electron/app.js +13 -5
- package/lib/electron/bootstrap-dev.d.ts +1 -0
- package/lib/electron/bootstrap-dev.js +51 -0
- package/lib/electron/bootstrap-sdk.d.ts +1 -0
- package/lib/electron/bootstrap-sdk.js +56 -0
- package/lib/electron/bootstrap.d.ts +1 -0
- package/lib/electron/bootstrap.js +56 -0
- package/lib/electron/default-options.js +1 -1
- package/lib/electron/dev.d.ts +1 -0
- package/lib/electron/dev.js +51 -0
- package/lib/electron/injections.d.ts +3 -4
- package/lib/electron/injections.js +46 -33
- package/lib/electron/logger.d.ts +6 -0
- package/lib/electron/logger.js +66 -0
- package/lib/electron/main.js +15 -11
- package/lib/electron/plugins/meeting-state.d.ts +2 -0
- package/lib/electron/plugins/meeting-state.js +39 -0
- package/lib/electron/preload.js +2 -1
- package/lib/electron/tools.js +9 -0
- package/lib/electron/window.d.ts +1 -1
- package/lib/electron/window.js +14 -2
- package/lib/fragments/control-bar/context.d.ts +0 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
- package/lib/fragments/control-bar/control-bar-store.js +394 -81
- package/lib/fragments/control-bar/device/index.js +12 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +19 -1
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
- package/lib/fragments/control-bar/more-actions/index.css +53 -0
- package/lib/fragments/control-bar/more-actions/index.js +77 -37
- package/lib/fragments/control-bar/security-content/index.css +10 -0
- package/lib/fragments/control-bar/security-content/index.js +43 -18
- package/lib/fragments/control-bar/view.js +8 -2
- package/lib/fragments/live-streaming/context.d.ts +0 -1
- package/lib/fragments/live-streaming/store.js +27 -17
- package/lib/fragments/share-screen-selection/context.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.js +34 -33
- package/lib/fragments/share-screen-selection/view.js +7 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +4 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +5 -1
- package/lib/fragments/toolbar/components/color-picker.js +3 -1
- package/lib/fragments/toolbar/components/eraser-picker.js +4 -13
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +5 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +2 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +2 -0
- package/lib/fragments/toolbar/components/shape-picker.js +2 -0
- package/lib/fragments/toolbar/hooks.d.ts +1 -1
- package/lib/fragments/toolbar/hooks.js +13 -8
- package/lib/fragments/toolbar/store.d.ts +4 -4
- package/lib/fragments/toolbar/store.js +20 -2
- package/lib/fragments/toolbar/view.js +2 -0
- package/lib/global.d.ts +1 -0
- package/lib/hooks/meeting-time.d.ts +2 -2
- package/lib/login-confirm-dialog.d.ts +12 -0
- package/lib/login-confirm-dialog.js +80 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +14 -5
- package/lib/modules/action-bar/chat/index.js +6 -6
- package/lib/modules/action-bar/context.d.ts +0 -1
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.d.ts +2 -2
- package/lib/modules/action-bar/device/index.js +6 -4
- package/lib/modules/action-bar/index.css +63 -12
- package/lib/modules/action-bar/index.d.ts +3 -2
- package/lib/modules/action-bar/index.dev.js +8 -7
- package/lib/modules/action-bar/index.js +21 -0
- package/lib/modules/action-bar/item-placement.d.ts +1 -2
- package/lib/modules/action-bar/item.js +5 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -1
- package/lib/modules/action-bar/leave/assign-host.js +7 -7
- package/lib/modules/action-bar/leave/index.js +35 -7
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -1
- package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
- package/lib/modules/action-bar/more/poppover-content.d.ts +0 -1
- package/lib/modules/action-bar/more/poppover-content.js +14 -4
- package/lib/modules/action-bar/participants/index.css +12 -0
- package/lib/modules/action-bar/participants/index.js +21 -14
- package/lib/modules/action-bar/screen-share/index.js +5 -1
- package/lib/modules/action-bar/screen-share/submenu.js +17 -22
- package/lib/modules/action-bar/security/drop-menu.js +124 -14
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/settings/index.js +1 -1
- package/lib/modules/action-bar/store.d.ts +45 -21
- package/lib/modules/action-bar/store.js +544 -134
- package/lib/modules/action-bar/view.js +65 -42
- package/lib/modules/audio-stream/index.js +12 -6
- package/lib/modules/chat/chat-bar/index.js +46 -27
- package/lib/modules/chat/chat-select/index.css +19 -4
- package/lib/modules/chat/chat-select/index.d.ts +0 -1
- package/lib/modules/chat/chat-select/index.js +29 -3
- package/lib/modules/chat/chat.d.ts +2 -3
- package/lib/modules/chat/chat.js +210 -107
- package/lib/modules/chat/contex.d.ts +0 -1
- package/lib/modules/chat/demo-wrapper.d.ts +0 -1
- package/lib/modules/chat/index.css +49 -0
- package/lib/modules/chat/index.d.ts +3 -3
- package/lib/modules/chat/index.dev.js +4 -4
- package/lib/modules/chat/index.js +32 -11
- package/lib/modules/chat/message-list.js +81 -49
- package/lib/modules/chat/store.d.ts +50 -4
- package/lib/modules/chat/store.js +303 -124
- package/lib/modules/chat/util.js +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -0
- package/lib/modules/connection-gateway/components/phone/index.js +2 -0
- package/lib/modules/connection-gateway/index.d.ts +3 -2
- package/lib/modules/connection-gateway/index.js +2 -0
- package/lib/modules/connection-gateway/store.d.ts +6 -4
- package/lib/modules/connection-gateway/store.js +46 -15
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +1 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -2
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +0 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
- package/lib/modules/device-pretest/context.d.ts +0 -1
- package/lib/modules/device-pretest/index.css +0 -4
- package/lib/modules/device-pretest/index.d.ts +0 -1
- package/lib/modules/device-pretest/index.js +2 -1
- package/lib/modules/device-pretest/settings/beauty.js +19 -6
- package/lib/modules/device-pretest/settings/video-effect.d.ts +0 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -0
- package/lib/modules/device-pretest/store.js +34 -19
- package/lib/modules/dialog/components/chat/electron.js +3 -2
- package/lib/modules/dialog/components/chat/index.js +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +7 -5
- package/lib/modules/dialog/components/confirm/index.js +16 -2
- package/lib/modules/dialog/components/connection-gateway/electron.js +4 -2
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/device-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/device-setting/electron.js +74 -0
- package/lib/modules/dialog/components/device-setting/index.css +26 -0
- package/lib/modules/dialog/components/device-setting/index.d.ts +4 -0
- package/lib/modules/dialog/components/device-setting/index.js +60 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
- package/lib/modules/dialog/components/participant/electron.js +8 -2
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/components/whiteboard/index.js +2 -1
- package/lib/modules/dialog/context.d.ts +0 -1
- package/lib/modules/dialog/dialogs.d.ts +0 -2
- package/lib/modules/dialog/dialogs.js +62 -103
- package/lib/modules/dialog/index.css +7 -6
- package/lib/modules/dialog/index.d.ts +1 -1
- package/lib/modules/dialog/index.js +17 -0
- package/lib/modules/dialog/store.d.ts +6 -2
- package/lib/modules/dialog/store.js +52 -9
- package/lib/modules/dialog/view.js +2 -0
- package/lib/modules/event-notification/context.d.ts +2 -0
- package/lib/modules/event-notification/context.js +9 -0
- package/lib/modules/event-notification/index.css +58 -0
- package/lib/modules/event-notification/index.d.ts +13 -0
- package/lib/modules/event-notification/index.js +48 -0
- package/lib/modules/event-notification/store.d.ts +17 -0
- package/lib/modules/event-notification/store.js +133 -0
- package/lib/modules/event-notification/view.d.ts +5 -0
- package/lib/modules/event-notification/view.js +114 -0
- package/lib/modules/event-toast/context.d.ts +0 -1
- package/lib/modules/event-toast/store.js +16 -0
- package/lib/modules/invite/context.d.ts +0 -1
- package/lib/modules/invite/index.css +4 -4
- package/lib/modules/invite/index.d.ts +2 -2
- package/lib/modules/invite/pstn-invite.js +4 -1
- package/lib/modules/invite/store.d.ts +2 -2
- package/lib/modules/invite/store.js +27 -7
- package/lib/modules/invite/voip-invite.d.ts +0 -1
- package/lib/modules/invite/voip-invite.js +1 -1
- package/lib/modules/layout/components/Aside.d.ts +0 -1
- package/lib/modules/layout/components/Aside.js +4 -1
- package/lib/modules/layout/components/Carousel.js +6 -5
- package/lib/modules/layout/components/Gallery.js +16 -9
- package/lib/modules/layout/components/Layout.js +82 -57
- package/lib/modules/layout/components/index.css +42 -5
- package/lib/modules/layout/components/index.js +3 -0
- package/lib/modules/layout/context.d.ts +0 -1
- package/lib/modules/layout/index.css +30 -0
- package/lib/modules/layout/index.dev.js +11 -11
- package/lib/modules/layout/index.js +0 -6
- package/lib/modules/layout/member-window/index.css +5 -5
- package/lib/modules/layout/member-window/index.d.ts +7 -7
- package/lib/modules/layout/member-window/index.js +59 -13
- package/lib/modules/layout/store.d.ts +61 -50
- package/lib/modules/layout/store.js +517 -342
- package/lib/modules/layout/type.d.ts +2 -1
- package/lib/modules/layout/video-window-datasource.d.ts +14 -8
- package/lib/modules/layout/video-window-datasource.js +129 -78
- package/lib/modules/live-streaming/context.d.ts +0 -1
- package/lib/modules/live-streaming/index.d.ts +2 -2
- package/lib/modules/live-streaming/index.dev.js +5 -4
- package/lib/modules/live-streaming/store.d.ts +2 -2
- package/lib/modules/live-streaming/store.js +32 -11
- package/lib/modules/participant/attendee/index.d.ts +12 -3
- package/lib/modules/participant/attendee/index.js +142 -30
- package/lib/modules/participant/context.d.ts +0 -1
- package/lib/modules/participant/index.css +20 -0
- package/lib/modules/participant/index.d.ts +5 -2
- package/lib/modules/participant/index.dev.js +14 -12
- package/lib/modules/participant/index.js +27 -0
- package/lib/modules/participant/member-list-data-source.d.ts +3 -3
- package/lib/modules/participant/member-list-data-source.js +29 -3
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +35 -1
- package/lib/modules/participant/store.d.ts +59 -34
- package/lib/modules/participant/store.js +541 -222
- package/lib/modules/participant/view.d.ts +6 -6
- package/lib/modules/participant/view.js +138 -34
- package/lib/modules/setting/audio-settings/audio-settings.js +16 -12
- package/lib/modules/setting/audio-settings/index.css +2 -2
- package/lib/modules/setting/context.d.ts +0 -1
- package/lib/modules/setting/general-settings/general-settings.js +2 -1
- package/lib/modules/setting/general-settings/index.css +2 -2
- package/lib/modules/setting/index.css +1 -5
- package/lib/modules/setting/index.d.ts +2 -2
- package/lib/modules/setting/index.dev.js +14 -12
- package/lib/modules/setting/index.js +16 -0
- package/lib/modules/setting/minutes-settings/index.css +65 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.d.ts +4 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.js +159 -0
- package/lib/modules/setting/state/index.css +0 -4
- package/lib/modules/setting/state/index.js +11 -1
- package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib/modules/setting/store.d.ts +7 -5
- package/lib/modules/setting/store.js +69 -46
- package/lib/modules/setting/translate-settings/index.css +45 -0
- package/lib/modules/setting/translate-settings/language-select.d.ts +12 -0
- package/lib/modules/setting/translate-settings/language-select.js +50 -0
- package/lib/modules/setting/translate-settings/translate-settings.d.ts +4 -0
- package/lib/modules/setting/translate-settings/translate-settings.js +139 -0
- package/lib/modules/setting/video-settings/index.css +15 -6
- package/lib/modules/setting/video-settings/video-settings-basic.js +3 -2
- package/lib/modules/setting/video-settings/video-settings.js +5 -1
- package/lib/modules/setting/view.js +34 -2
- package/lib/modules/share-screen/index.d.ts +4 -2
- package/lib/modules/share-screen/index.dev.js +17 -14
- package/lib/modules/share-screen/index.js +2 -0
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +44 -6
- package/lib/modules/share-screen/share-state-bar/index.css +49 -11
- package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -1
- package/lib/modules/share-screen/share-state-bar/index.js +51 -20
- package/lib/modules/share-screen/store.d.ts +23 -13
- package/lib/modules/share-screen/store.js +733 -606
- package/lib/modules/state-bar/context.d.ts +0 -1
- package/lib/modules/state-bar/index.css +2 -2
- package/lib/modules/state-bar/index.d.ts +2 -2
- package/lib/modules/state-bar/index.dev.js +12 -10
- package/lib/modules/state-bar/layout-config.js +2 -0
- package/lib/modules/state-bar/live-streaming-state.js +3 -0
- package/lib/modules/state-bar/meeting-detail.css +6 -4
- package/lib/modules/state-bar/meeting-details.js +29 -3
- package/lib/modules/state-bar/meeting-network-state.css +14 -3
- package/lib/modules/state-bar/meeting-network-state.js +10 -4
- package/lib/modules/state-bar/recording.js +9 -11
- package/lib/modules/state-bar/store.d.ts +7 -5
- package/lib/modules/state-bar/store.js +68 -8
- package/lib/modules/state-bar/view.js +4 -8
- package/lib/modules/video-window/context.d.ts +0 -1
- package/lib/modules/video-window/deviceState/index.d.ts +3 -3
- package/lib/modules/video-window/index.css +1 -0
- package/lib/modules/video-window/members/index.js +7 -4
- package/lib/modules/video-window/store.d.ts +5 -4
- package/lib/modules/video-window/store.js +49 -17
- package/lib/modules/video-window/topControl/index.js +7 -0
- package/lib/modules/video-window/view.js +2 -0
- package/lib/modules/waiting-room-layout/context.d.ts +2 -0
- package/lib/modules/waiting-room-layout/context.js +9 -0
- package/lib/modules/waiting-room-layout/index.css +71 -0
- package/lib/modules/waiting-room-layout/index.d.ts +8 -0
- package/lib/modules/waiting-room-layout/index.js +47 -0
- package/lib/modules/waiting-room-layout/store.d.ts +30 -0
- package/lib/modules/waiting-room-layout/store.js +189 -0
- package/lib/modules/waiting-room-layout/type.d.ts +0 -0
- package/lib/modules/waiting-room-layout/type.js +1 -0
- package/lib/modules/waiting-room-layout/view.d.ts +3 -0
- package/lib/modules/waiting-room-layout/view.js +67 -0
- package/lib/modules/whiteboard/app.js +2 -8
- package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +29 -29
- package/lib/modules/whiteboard/components/loading/index.js +2 -2
- package/lib/modules/whiteboard/components/multi-window/index.js +8 -3
- package/lib/modules/whiteboard/components/pagination/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +3 -2
- package/lib/modules/whiteboard/components/progress/style.css +4 -3
- package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.js +29 -17
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +11 -2
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +21 -20
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +11 -9
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +18 -12
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +16 -11
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +8 -7
- package/lib/modules/whiteboard/components/toolbar/store.js +25 -4
- package/lib/modules/whiteboard/context.d.ts +7 -3
- package/lib/modules/whiteboard/context.js +6 -4
- package/lib/modules/whiteboard/index.d.ts +6 -8
- package/lib/modules/whiteboard/index.js +310 -255
- package/lib/modules/whiteboard/type.d.ts +4 -12
- package/lib/modules/whiteboard/type.js +6 -16
- package/lib/modules/whiteboard/utils.d.ts +1 -0
- package/lib/modules/whiteboard/utils.js +12 -1
- package/lib/plugins/browser-runtime-plugin.js +2 -1
- package/lib/plugins/module-dev-plugin.js +12 -10
- package/lib/plugins/multi-lang-plugin.d.ts +1 -5
- package/lib/plugins/multi-lang-plugin.js +2 -0
- package/lib/runtime.d.ts +3 -5
- package/lib/translations/enUS.d.ts +590 -0
- package/lib/translations/enUS.js +608 -6
- package/lib/translations/zhCN.d.ts +588 -0
- package/lib/translations/zhCN.js +604 -4
- package/lib/type.d.ts +6 -2
- package/lib/ui-manager.d.ts +7 -3
- package/lib/ui-manager.js +597 -143
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +32 -22
- package/lib/utilities/board-context.d.ts +0 -1
- package/lib/utilities/constant.d.ts +47 -5
- package/lib/utilities/constant.js +44 -1
- package/lib/utilities/copyText.js +1 -1
- package/lib/utilities/extract.js +26 -3
- package/lib/utilities/hooks.js +2 -0
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/renderer-event.js +28 -0
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +15 -6
- package/lib/utilities/tools.js +5 -2
- package/lib/utilities/ui-resources.d.ts +2 -2
- package/lib/utilities/ui-resources.js +20 -3
- package/lib/utilities/video-track-render-context.d.ts +0 -1
- package/package.json +17 -16
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/login_confirm.png +0 -0
- package/public/index.html +29 -11
- package/lib/modules/device-pretest/settings/index.css +0 -15
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -275
|
@@ -10,6 +10,13 @@ require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
|
10
10
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
11
|
require("core-js/modules/es.object.keys.js");
|
|
12
12
|
require("core-js/modules/es.weak-map.js");
|
|
13
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
14
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
15
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
16
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
17
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
18
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
19
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
13
20
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
14
21
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
15
22
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
@@ -27,6 +34,20 @@ require("core-js/modules/es.array.iterator.js");
|
|
|
27
34
|
require("core-js/modules/es.map.js");
|
|
28
35
|
require("core-js/modules/es.object.to-string.js");
|
|
29
36
|
require("core-js/modules/es.string.iterator.js");
|
|
37
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
38
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
39
|
+
require("core-js/modules/esnext.map.every.js");
|
|
40
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
41
|
+
require("core-js/modules/esnext.map.find.js");
|
|
42
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
43
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
44
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
45
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
46
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
47
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
48
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
49
|
+
require("core-js/modules/esnext.map.some.js");
|
|
50
|
+
require("core-js/modules/esnext.map.update.js");
|
|
30
51
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
31
52
|
require("core-js/modules/web.timers.js");
|
|
32
53
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -49,6 +70,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
49
70
|
var _copyText = require("../../utilities/copyText");
|
|
50
71
|
var _platform = require("../../utilities/platform");
|
|
51
72
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
73
|
+
var _fcr_defaultpage = _interopRequireDefault(require("../../../public/assets/fcr_defaultpage.png"));
|
|
52
74
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
53
75
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
54
76
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -74,39 +96,42 @@ var MessageList = exports.MessageList = (0, _mobxReact.observer)(function (_ref)
|
|
|
74
96
|
copyTips = _ref.copyTips;
|
|
75
97
|
var t = (0, _i18n.useI18n)();
|
|
76
98
|
var _useContext = (0, _react.useContext)(_contex.StoreContext),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
99
|
+
chatRoomStores = _useContext.chatRoomStores,
|
|
100
|
+
activeTabIndex = _useContext.activeTabIndex;
|
|
101
|
+
var _ref2 = chatRoomStores[activeTabIndex],
|
|
102
|
+
storeMsgs = _ref2.messageList,
|
|
103
|
+
readMsgIndex = _ref2.readMsgIndex,
|
|
104
|
+
needCbBottomCount = _ref2.needCbBottomCount,
|
|
105
|
+
list = _ref2.list,
|
|
106
|
+
mostRecentHeight = _ref2.mostRecentHeight,
|
|
107
|
+
mostRecentWidth = _ref2.mostRecentWidth,
|
|
108
|
+
cache = _ref2.cache,
|
|
109
|
+
scrollHeight = _ref2.scrollHeight,
|
|
110
|
+
scrollTop = _ref2.scrollTop,
|
|
111
|
+
clientHeight = _ref2.clientHeight,
|
|
112
|
+
firstMsgId = _ref2.firstMsgId,
|
|
113
|
+
readIdx = _ref2.readIdx,
|
|
114
|
+
viewIdx = _ref2.viewIdx,
|
|
115
|
+
historyUnReadCount = _ref2.historyUnreadCount,
|
|
116
|
+
hasHistoryMsg = _ref2.hasHistoryMsg,
|
|
117
|
+
newMsgsUnReadCnt = _ref2.newMsgsUnReadCnt,
|
|
118
|
+
isHost = _ref2.isHost,
|
|
119
|
+
isCohost = _ref2.isCohost,
|
|
120
|
+
initReadInfo = _ref2.initReadInfo,
|
|
121
|
+
updateScrollInfo = _ref2.updateScrollInfo,
|
|
122
|
+
updateHasHistoryMsg = _ref2.updateHasHistoryMsg,
|
|
123
|
+
updateHistoryCnt = _ref2.updateHistoryUnreadCnt,
|
|
124
|
+
updateViewIdx = _ref2.updateViewIdx,
|
|
125
|
+
updateReadIdx = _ref2.updateReadIdx,
|
|
126
|
+
updateFirstMsgId = _ref2.updateFirstMsgId,
|
|
127
|
+
updateHistoryUnReadCount = _ref2.updateHistoryUnReadCount,
|
|
128
|
+
updateList = _ref2.updateList,
|
|
129
|
+
updateMostRecentHeight = _ref2.updateMostRecentHeight,
|
|
130
|
+
updateMostRecentWidth = _ref2.updateMostRecentWidth,
|
|
131
|
+
forceNotifyMsgs = _ref2.forceNotifyMsgs,
|
|
132
|
+
permitPrivateChat = _ref2.permitPrivateChat,
|
|
133
|
+
lastScrollTop = _ref2.lastScrollTop,
|
|
134
|
+
setLastScrollTop = _ref2.setLastScrollTop;
|
|
110
135
|
var _useState = (0, _react.useState)(storeMsgs !== null && storeMsgs !== void 0 ? storeMsgs : []),
|
|
111
136
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
112
137
|
messageList = _useState2[0],
|
|
@@ -186,7 +211,7 @@ var MessageList = exports.MessageList = (0, _mobxReact.observer)(function (_ref)
|
|
|
186
211
|
scrollToIdx(viewIdx);
|
|
187
212
|
}, [newMsgsUnReadCnt]);
|
|
188
213
|
var handleCopyMsg = /*#__PURE__*/function () {
|
|
189
|
-
var
|
|
214
|
+
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(msg, time, publisherNickName, targetNickname) {
|
|
190
215
|
var msgHandled;
|
|
191
216
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
192
217
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -203,7 +228,7 @@ var MessageList = exports.MessageList = (0, _mobxReact.observer)(function (_ref)
|
|
|
203
228
|
}, _callee);
|
|
204
229
|
}));
|
|
205
230
|
return function handleCopyMsg(_x, _x2, _x3, _x4) {
|
|
206
|
-
return
|
|
231
|
+
return _ref3.apply(this, arguments);
|
|
207
232
|
};
|
|
208
233
|
}();
|
|
209
234
|
var handleSelectMsg = function handleSelectMsg(idx, checked) {
|
|
@@ -224,12 +249,12 @@ var MessageList = exports.MessageList = (0, _mobxReact.observer)(function (_ref)
|
|
|
224
249
|
// list?.scrollToPosition(_scrollTop);
|
|
225
250
|
};
|
|
226
251
|
var rowRenderer = function rowRenderer(messageList) {
|
|
227
|
-
return function (
|
|
252
|
+
return function (_ref4) {
|
|
228
253
|
var _arr, _arr2, _arr3, _arr4, _datum$img;
|
|
229
|
-
var index =
|
|
230
|
-
key =
|
|
231
|
-
parent =
|
|
232
|
-
style =
|
|
254
|
+
var index = _ref4.index,
|
|
255
|
+
key = _ref4.key,
|
|
256
|
+
parent = _ref4.parent,
|
|
257
|
+
style = _ref4.style;
|
|
233
258
|
var datum = messageList[index % messageList.length];
|
|
234
259
|
var publisherRole = datum.role,
|
|
235
260
|
time = datum.time,
|
|
@@ -357,8 +382,8 @@ var MessageList = exports.MessageList = (0, _mobxReact.observer)(function (_ref)
|
|
|
357
382
|
marginLeft: publisherUid !== localUserId && !multiSelectActive ? 34 : 0,
|
|
358
383
|
width: 'auto'
|
|
359
384
|
},
|
|
360
|
-
onCopy: (
|
|
361
|
-
var
|
|
385
|
+
onCopy: (/*#__PURE__*/function () {
|
|
386
|
+
var _ref5 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(type) {
|
|
362
387
|
var currentScrollTop;
|
|
363
388
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
364
389
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -389,7 +414,7 @@ var MessageList = exports.MessageList = (0, _mobxReact.observer)(function (_ref)
|
|
|
389
414
|
}, _callee2);
|
|
390
415
|
}));
|
|
391
416
|
return function (_x5) {
|
|
392
|
-
return
|
|
417
|
+
return _ref5.apply(this, arguments);
|
|
393
418
|
};
|
|
394
419
|
}()),
|
|
395
420
|
onPrivate: function onPrivate() {
|
|
@@ -555,13 +580,20 @@ var MessageList = exports.MessageList = (0, _mobxReact.observer)(function (_ref)
|
|
|
555
580
|
styles: {
|
|
556
581
|
zIndex: 999
|
|
557
582
|
}
|
|
558
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.
|
|
583
|
+
}) : null, messageList.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
584
|
+
className: "fcr-no-data-chat",
|
|
585
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
586
|
+
src: _fcr_defaultpage["default"]
|
|
587
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
588
|
+
children: t('fmt_chat_tips_nodata')
|
|
589
|
+
})]
|
|
590
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactVirtualized.AutoSizer, {
|
|
559
591
|
style: {
|
|
560
592
|
alignSelf: 'stretch'
|
|
561
593
|
},
|
|
562
|
-
children: function children(
|
|
563
|
-
var height =
|
|
564
|
-
width =
|
|
594
|
+
children: function children(_ref6) {
|
|
595
|
+
var height = _ref6.height,
|
|
596
|
+
width = _ref6.width;
|
|
565
597
|
if (height !== mostRecentHeight || width !== mostRecentWidth) {
|
|
566
598
|
cache.clearAll();
|
|
567
599
|
if (list) {
|
|
@@ -571,8 +603,8 @@ var MessageList = exports.MessageList = (0, _mobxReact.observer)(function (_ref)
|
|
|
571
603
|
updateMostRecentHeight(height);
|
|
572
604
|
updateMostRecentWidth(width);
|
|
573
605
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactVirtualized.List, {
|
|
574
|
-
ref: function ref(
|
|
575
|
-
updateList(
|
|
606
|
+
ref: function ref(_ref7) {
|
|
607
|
+
updateList(_ref7);
|
|
576
608
|
},
|
|
577
609
|
style: {
|
|
578
610
|
padding: 'inherit',
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { FcrUserControl } from 'agora-edu-core';
|
|
2
2
|
import { RoleType } from 'agora-ui-foundation/lib/components/message-bubble';
|
|
3
|
-
import {
|
|
4
|
-
import { FcrChatRoomMessageType, FcrUserRole, FcrUserInfo, FcrChatRoomFile, FcrChatRoomConnectionState } from 'agora-edu-core/lib/type';
|
|
3
|
+
import { FcrUserRole, FcrUserInfo } from 'agora-edu-core/lib/type';
|
|
5
4
|
import { FcrUIEventStore } from '../../common/event-store';
|
|
6
5
|
import { FcrSecurityStore } from '../../common/security-store';
|
|
7
6
|
import { CellMeasurerCache, List } from 'react-virtualized';
|
|
7
|
+
import { RoomType } from '../../utilities/constant';
|
|
8
8
|
import { AllowChatLevelType } from 'agora-ui-foundation/lib/components/chat-manager';
|
|
9
9
|
import { ToastConfig } from 'agora-ui-foundation/lib/components/toast';
|
|
10
|
+
import { FcrChatRoomConnectionState, FcrChatRoomControl, FcrChatRoomFile, FcrChatRoomMessageType, FcrChatRoomReceiveImageMessage, FcrChatRoomReceiveTextMessage } from 'agora-edu-core/lib/room-control/chatroom-control/type';
|
|
11
|
+
import { FcrMainRoomControl, FcrWaitingRoomControl } from 'agora-edu-core/lib/room-control/type';
|
|
12
|
+
import { AgoraObservable } from 'agora-foundation/lib/utilities/observable';
|
|
13
|
+
type FcrChatRoomReceiveMessage = FcrChatRoomReceiveTextMessage | FcrChatRoomReceiveImageMessage;
|
|
10
14
|
export interface MsgListType {
|
|
11
15
|
id: string;
|
|
12
16
|
nickName: string;
|
|
@@ -25,7 +29,35 @@ export declare const USER_ALL = "All";
|
|
|
25
29
|
export declare const USER_NONE = "NONE";
|
|
26
30
|
export declare const allToUser: FcrUserInfo;
|
|
27
31
|
export declare const noUser: FcrUserInfo;
|
|
32
|
+
type FcrChatStoreObserver = {
|
|
33
|
+
onReceiveMessage: (msgs: FcrChatRoomReceiveMessage[], type: RoomType) => void;
|
|
34
|
+
};
|
|
35
|
+
type ChatRoomStoreMap = {
|
|
36
|
+
[K in RoomType]?: ChatRoomStore;
|
|
37
|
+
};
|
|
38
|
+
type RoomTypeKeys = keyof typeof RoomType;
|
|
28
39
|
export default class ChatStore {
|
|
40
|
+
private _observable;
|
|
41
|
+
private _securityStore;
|
|
42
|
+
private _uiEventStore;
|
|
43
|
+
private _chatVisible;
|
|
44
|
+
private _eventObserver;
|
|
45
|
+
private _chatStoreObserver;
|
|
46
|
+
accessor chatRoomStores: ChatRoomStoreMap;
|
|
47
|
+
accessor activeTabIndex: RoomTypeKeys;
|
|
48
|
+
constructor({ chatRoomControl, userControl, uiEventStore, securityStore, roomControl, }: {
|
|
49
|
+
chatRoomControl: FcrChatRoomControl;
|
|
50
|
+
userControl: FcrUserControl;
|
|
51
|
+
uiEventStore: FcrUIEventStore;
|
|
52
|
+
securityStore: FcrSecurityStore;
|
|
53
|
+
roomControl: FcrWaitingRoomControl | FcrMainRoomControl;
|
|
54
|
+
});
|
|
55
|
+
hasWaitingRoomPermission(): boolean;
|
|
56
|
+
private _handleReceiveMessage;
|
|
57
|
+
handlerActiveTab(key: RoomType): void;
|
|
58
|
+
private _handleEvent;
|
|
59
|
+
}
|
|
60
|
+
export declare class ChatRoomStore {
|
|
29
61
|
needCbBottomCount: number;
|
|
30
62
|
list: List | undefined;
|
|
31
63
|
mostRecentHeight: number;
|
|
@@ -45,9 +77,11 @@ export default class ChatStore {
|
|
|
45
77
|
private _userControl;
|
|
46
78
|
private _chatRoomControl;
|
|
47
79
|
private _securityStore;
|
|
80
|
+
private _chatStoreObservable;
|
|
48
81
|
private _maxMsgCount;
|
|
49
82
|
private _originalMessages;
|
|
50
83
|
private _disposers;
|
|
84
|
+
private _type;
|
|
51
85
|
private accessor _userInfo;
|
|
52
86
|
accessor messageList: MsgListType[];
|
|
53
87
|
accessor readMsgIndex: {
|
|
@@ -65,20 +99,28 @@ export default class ChatStore {
|
|
|
65
99
|
accessor textMsg: string;
|
|
66
100
|
accessor privateTargetList: FcrUserInfo[];
|
|
67
101
|
accessor chatRoomState: FcrChatRoomConnectionState;
|
|
102
|
+
accessor hasNewMsg: boolean;
|
|
103
|
+
accessor userCount: number;
|
|
104
|
+
accessor unReadMsgCount: number;
|
|
68
105
|
private _chatRoomObserver;
|
|
69
106
|
private _userObserver;
|
|
70
|
-
constructor({ chatRoomControl, userControl, uiEventStore, securityStore, }: {
|
|
107
|
+
constructor({ chatRoomControl, userControl, uiEventStore, securityStore, type, chatStoreObservable, }: {
|
|
71
108
|
chatRoomControl: FcrChatRoomControl;
|
|
72
109
|
userControl: FcrUserControl;
|
|
73
110
|
uiEventStore: FcrUIEventStore;
|
|
74
111
|
securityStore: FcrSecurityStore;
|
|
112
|
+
type: RoomType;
|
|
113
|
+
chatStoreObservable: AgoraObservable<FcrChatStoreObserver>;
|
|
75
114
|
});
|
|
76
115
|
release(): void;
|
|
77
116
|
setLastScrollTop(value: number | undefined): void;
|
|
78
117
|
setMessageList(messages: MsgListType[]): void;
|
|
79
118
|
sendMessage(msg: string | FcrChatRoomFile, type: FcrChatRoomMessageType): Promise<void>;
|
|
80
119
|
private messageReceived;
|
|
120
|
+
setUnReadMsgCount(count: number): void;
|
|
121
|
+
setHasNewMsg(value: boolean): void;
|
|
81
122
|
private _handleTextMessageReceived;
|
|
123
|
+
getUserCount(): number;
|
|
82
124
|
private _onRemoteUserUpdate;
|
|
83
125
|
private _onUserPropertiesUpdated;
|
|
84
126
|
private _onUserInfoUpdated;
|
|
@@ -94,6 +136,7 @@ export default class ChatStore {
|
|
|
94
136
|
get disallowedPublicChatAndDisallowedPrivateChatToParticipant(): boolean | undefined;
|
|
95
137
|
get disallowedAllChat(): boolean | undefined;
|
|
96
138
|
get hasChatPermission(): boolean;
|
|
139
|
+
get hasChatSendPrivatePermission(): boolean;
|
|
97
140
|
get isHost(): boolean;
|
|
98
141
|
get isCohost(): boolean;
|
|
99
142
|
get localIsManager(): boolean;
|
|
@@ -121,6 +164,8 @@ export default class ChatStore {
|
|
|
121
164
|
updateChatLevel(chatLevel: AllowChatLevelType): void;
|
|
122
165
|
get privilegeOperator(): FcrUserInfo | undefined;
|
|
123
166
|
updateChatTextMsg(txt: string): void;
|
|
167
|
+
filterChatMember(list: FcrUserInfo[]): FcrUserInfo[];
|
|
168
|
+
hasSendMessagePermission(): boolean;
|
|
124
169
|
permitPrivateChat(userId: string): void;
|
|
125
170
|
handleToast(params: ToastConfig): void;
|
|
126
171
|
get isHostOrCoHost(): boolean;
|
|
@@ -128,5 +173,6 @@ export default class ChatStore {
|
|
|
128
173
|
setAllowChatWithPayload(type: 'public' | 'private_to_manager'): void;
|
|
129
174
|
private _handleConnectionUpdated;
|
|
130
175
|
}
|
|
131
|
-
export declare function isManager(role: FcrUserRole):
|
|
176
|
+
export declare function isManager(role: FcrUserRole): role is FcrUserRole.HOST | FcrUserRole.COHOST;
|
|
132
177
|
export declare function sortUsers(users: FcrUserInfo[]): FcrUserInfo[];
|
|
178
|
+
export {};
|