fcr-ui-scene 3.4.5 → 3.5.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.js +4 -1
- package/lib/creator.d.ts +4 -1
- package/lib/creator.js +66 -3
- package/lib/electron/app.js +0 -3
- package/lib/electron/bootstrap-dev.js +2 -0
- package/lib/electron/bootstrap-sdk.js +2 -0
- package/lib/electron/main.js +14 -3
- package/lib/electron/plugins/devtool-shortcut.js +5 -0
- package/lib/electron/plugins/screenshot.js +4 -1
- package/lib/modules/action-bar/components/apps/app-item/index.css +3 -3
- package/lib/modules/action-bar/components/apps/app-item/index.js +35 -24
- package/lib/modules/action-bar/components/apps/app-list.d.ts +3 -0
- package/lib/modules/action-bar/components/apps/app-list.js +45 -0
- package/lib/modules/action-bar/components/apps/index.css +1 -0
- package/lib/modules/action-bar/components/apps/index.js +7 -4
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +10 -2
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +10 -6
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +1 -1
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +2 -2
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +1 -1
- package/lib/modules/action-bar/components/apps/useInterpreter.js +6 -6
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +1 -1
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +2 -2
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +10 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.js +38 -0
- package/lib/modules/action-bar/components/chat/index.css +8 -0
- package/lib/modules/action-bar/components/chat/index.js +2 -1
- package/lib/modules/action-bar/components/collapse/index.d.ts +8 -6
- package/lib/modules/action-bar/components/collapse/index.js +60 -74
- package/lib/modules/action-bar/components/interpreter/index.js +3 -3
- package/lib/modules/action-bar/components/item/index.js +1 -1
- package/lib/modules/action-bar/components/more/index.js +13 -7
- package/lib/modules/action-bar/components/notification-bar/index.d.ts +1 -1
- package/lib/modules/action-bar/components/notification-bar/index.js +13 -6
- package/lib/modules/action-bar/components/participants/index.js +1 -1
- package/lib/modules/action-bar/components/screen-share/index.js +1 -1
- package/lib/modules/action-bar/components/screen-share/submenu.js +55 -18
- package/lib/modules/action-bar/components/security/index.js +8 -2
- package/lib/modules/action-bar/components/trigger-output-language/index.js +68 -55
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +35 -18
- package/lib/modules/action-bar/index.css +8 -0
- package/lib/modules/action-bar/index.d.ts +8 -0
- package/lib/modules/action-bar/index.js +6 -3
- package/lib/modules/action-bar/store.d.ts +37 -22
- package/lib/modules/action-bar/store.js +275 -375
- package/lib/modules/action-bar/types.d.ts +8 -13
- package/lib/modules/action-bar/view.js +3 -8
- package/lib/modules/audio-stream/index.d.ts +6 -1
- package/lib/modules/audio-stream/index.js +77 -11
- package/lib/modules/chat/chat-room-store.d.ts +4 -7
- package/lib/modules/chat/chat-room-store.js +39 -62
- package/lib/modules/chat/components/chat-action/index.js +2 -2
- package/lib/modules/chat/components/chat-bar/index.css +4 -0
- package/lib/modules/chat/components/chat-bar/index.d.ts +1 -1
- package/lib/modules/chat/components/chat-bar/index.js +18 -16
- package/lib/modules/chat/components/chat-select/index.js +16 -147
- package/lib/modules/chat/components/chat-select/select-input/index.d.ts +7 -0
- package/lib/modules/chat/components/chat-select/select-input/index.js +35 -0
- package/lib/modules/chat/components/chat-select/select-item/index.d.ts +12 -0
- package/lib/modules/chat/components/chat-select/select-item/index.js +153 -0
- package/lib/modules/chat/components/chat-tabs/index.d.ts +2 -0
- package/lib/modules/chat/components/chat-tabs/index.js +61 -0
- package/lib/modules/chat/components/message-list/chat-empty/index.d.ts +2 -0
- package/lib/modules/chat/components/message-list/chat-empty/index.js +26 -0
- package/lib/modules/chat/components/message-list/history-unread-message-button/index.d.ts +7 -0
- package/lib/modules/chat/components/message-list/history-unread-message-button/index.js +55 -0
- package/lib/modules/chat/components/message-list/index.d.ts +1 -1
- package/lib/modules/chat/components/message-list/index.js +55 -359
- package/lib/modules/chat/components/message-list/message-item/index.d.ts +15 -0
- package/lib/modules/chat/components/message-list/message-item/index.js +309 -0
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.d.ts +9 -0
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +67 -0
- package/lib/modules/chat/index.css +9 -0
- package/lib/modules/chat/index.d.ts +6 -0
- package/lib/modules/chat/index.js +4 -1
- package/lib/modules/chat/store.d.ts +17 -7
- package/lib/modules/chat/store.js +75 -72
- package/lib/modules/chat/types.d.ts +7 -7
- package/lib/modules/chat/types.js +2 -1
- package/lib/modules/chat/view.js +22 -102
- package/lib/modules/components/device-control/store.d.ts +4 -3
- package/lib/modules/components/device-control/store.js +13 -24
- package/lib/modules/components/leave-meeting/components/assign-host.js +17 -2
- package/lib/modules/components/leave-meeting/index.js +8 -7
- package/lib/modules/components/leave-meeting/store.d.ts +15 -7
- package/lib/modules/components/leave-meeting/store.js +116 -95
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +6 -0
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +36 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +40 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +170 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +11 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +105 -0
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.d.ts +9 -0
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +42 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +11 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +157 -0
- package/lib/modules/components/member-window/components/member-actions/components/share-status.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +34 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +16 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +130 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +12 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +57 -0
- package/lib/modules/components/member-window/components/member-actions/index.d.ts +3 -0
- package/lib/modules/components/member-window/components/member-actions/index.js +122 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +24 -0
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +21 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +77 -0
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +48 -0
- package/lib/modules/components/member-window/components/member-actions/store.js +307 -0
- package/lib/modules/components/member-window/components/member-board.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-board.js +63 -0
- package/lib/modules/components/member-window/components/mic-volume.d.ts +2 -0
- package/lib/modules/components/member-window/components/mic-volume.js +23 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +4 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +40 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +8 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +62 -0
- package/lib/modules/components/member-window/components/video-player/index.d.ts +9 -0
- package/lib/modules/components/member-window/components/video-player/index.js +38 -0
- package/lib/modules/components/member-window/index.css +22 -2
- package/lib/modules/components/member-window/index.d.ts +10 -75
- package/lib/modules/components/member-window/index.js +20 -738
- package/lib/modules/components/member-window/types.d.ts +79 -0
- package/lib/modules/components/member-window/types.js +6 -0
- package/lib/modules/components/security-menu/index.css +0 -2
- package/lib/modules/components/security-menu/index.d.ts +5 -1
- package/lib/modules/components/security-menu/index.js +37 -59
- package/lib/modules/connection-gateway/index.d.ts +6 -0
- package/lib/modules/connection-gateway/index.js +4 -1
- package/lib/modules/connection-gateway/store.d.ts +12 -3
- package/lib/modules/connection-gateway/store.js +29 -27
- package/lib/modules/control-bar/components/meeting-details/index.js +11 -17
- package/lib/modules/control-bar/components/more-actions/index.js +5 -4
- package/lib/modules/control-bar/components/share-state-nav/index.js +22 -10
- package/lib/modules/control-bar/index.css +1 -2
- package/lib/modules/control-bar/index.d.ts +14 -0
- package/lib/modules/control-bar/index.js +10 -4
- package/lib/modules/control-bar/store.d.ts +40 -20
- package/lib/modules/control-bar/store.js +156 -191
- package/lib/modules/control-bar/view.js +65 -25
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +1 -1
- package/lib/modules/dialog/components/control-bar/index.d.ts +1 -1
- package/lib/modules/dialog/components/control-bar/index.js +43 -43
- package/lib/modules/dialog/components/device-setting/index.js +2 -1
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +3 -2
- package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -0
- package/lib/modules/dialog/components/dialog-container/index.js +19 -13
- package/lib/modules/dialog/components/live-streaming/index.js +4 -2
- package/lib/modules/dialog/components/participant/index.js +2 -2
- package/lib/modules/dialog/components/share-screen-selection/index.js +3 -1
- package/lib/modules/dialog/components/system-preference/assets/bg1.png +0 -0
- package/lib/modules/dialog/components/system-preference/assets/bg2.png +0 -0
- package/lib/modules/dialog/components/system-preference/assets/fcr_png_host.png +0 -0
- package/lib/modules/dialog/components/system-preference/electron.js +6 -6
- package/lib/modules/dialog/components/system-preference/index.css +3 -0
- package/lib/modules/dialog/components/system-preference/index.d.ts +17 -2
- package/lib/modules/dialog/components/system-preference/index.js +47 -55
- package/lib/modules/dialog/components/video-window/index.d.ts +1 -1
- package/lib/modules/dialog/components/video-window/index.js +216 -101
- package/lib/modules/dialog/components/widget/electron.d.ts +5 -0
- package/lib/modules/dialog/components/widget/electron.js +37 -0
- package/lib/modules/dialog/components/widget/index.d.ts +6 -0
- package/lib/modules/dialog/components/widget/index.js +43 -0
- package/lib/modules/dialog/hooks/useElectron.d.ts +7 -0
- package/lib/modules/dialog/hooks/useElectron.js +226 -28
- package/lib/modules/dialog/index.css +1 -11
- package/lib/modules/dialog/index.d.ts +9 -6
- package/lib/modules/dialog/index.js +12 -12
- package/lib/modules/dialog/store.d.ts +26 -10
- package/lib/modules/dialog/store.js +151 -82
- package/lib/modules/dialog/type.d.ts +84 -0
- package/lib/modules/dialog/type.js +6 -0
- package/lib/modules/dialog/view.d.ts +1 -4
- package/lib/modules/dialog/view.js +12 -9
- package/lib/modules/event-confirm/index.css +11 -0
- package/lib/modules/event-confirm/index.d.ts +6 -0
- package/lib/modules/event-confirm/index.js +3 -2
- package/lib/modules/event-confirm/store.d.ts +10 -4
- package/lib/modules/event-confirm/store.js +91 -32
- package/lib/modules/event-confirm/view.js +63 -24
- package/lib/modules/event-toast/store.js +4 -2
- package/lib/modules/interpreter/action/edit-btn/index.js +5 -5
- package/lib/modules/interpreter/action/switch-btn/index.js +7 -7
- package/lib/modules/interpreter/index.d.ts +5 -1
- package/lib/modules/interpreter/index.js +4 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -3
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +6 -5
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/index.js +2 -2
- package/lib/modules/interpreter/store.d.ts +8 -5
- package/lib/modules/interpreter/store.js +90 -39
- package/lib/modules/interpreter/type.d.ts +5 -1
- package/lib/modules/interpreter/utils.d.ts +0 -1
- package/lib/modules/interpreter/utils.js +2 -23
- package/lib/modules/interpreter/view.js +2 -6
- package/lib/modules/invite/index.d.ts +4 -0
- package/lib/modules/invite/index.js +3 -1
- package/lib/modules/invite/store.d.ts +11 -2
- package/lib/modules/invite/store.js +27 -4
- package/lib/modules/layout/components/Aside.js +1 -1
- package/lib/modules/layout/components/Carousel.js +36 -14
- package/lib/modules/layout/components/Gallery.js +33 -11
- package/lib/modules/layout/index.css +2 -2
- package/lib/modules/layout/index.d.ts +6 -0
- package/lib/modules/layout/index.js +4 -1
- package/lib/modules/layout/store.d.ts +23 -10
- package/lib/modules/layout/store.js +185 -163
- package/lib/modules/layout/type.d.ts +2 -0
- package/lib/modules/live-streaming/index.d.ts +2 -0
- package/lib/modules/live-streaming/index.js +2 -2
- package/lib/modules/live-streaming/store.d.ts +4 -8
- package/lib/modules/live-streaming/store.js +9 -19
- package/lib/modules/notification/index.css +17 -0
- package/lib/modules/notification/store.js +4 -2
- package/lib/modules/notification/view.js +7 -2
- package/lib/modules/offscreen-pulling/index.d.ts +1 -0
- package/lib/modules/offscreen-pulling/index.js +4 -0
- package/lib/modules/participant/components/confirm-input/index.d.ts +6 -0
- package/lib/modules/participant/components/confirm-input/index.js +50 -0
- package/lib/modules/participant/components/mute-all/index.d.ts +3 -7
- package/lib/modules/participant/components/mute-all/index.js +21 -33
- package/lib/modules/participant/components/participants/components/footer/components/buttons.d.ts +6 -0
- package/lib/modules/participant/components/participants/components/footer/components/buttons.js +52 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +60 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +166 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +28 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +13 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +242 -0
- package/lib/modules/participant/components/participants/components/footer/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/index.js +48 -0
- package/lib/modules/participant/components/participants/components/merge/index.d.ts +11 -0
- package/lib/modules/participant/components/participants/components/merge/index.js +49 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +191 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +4 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +204 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +49 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +219 -0
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +70 -0
- package/lib/modules/participant/components/participants/components/participants/index.css +104 -0
- package/lib/modules/participant/components/participants/components/participants/index.d.ts +3 -0
- package/lib/modules/participant/components/participants/components/participants/index.js +110 -0
- package/lib/modules/participant/components/participants/components/render-tab/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/render-tab/index.js +49 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.d.ts +3 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +48 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.d.ts +6 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +28 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.d.ts +7 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +39 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +69 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +135 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.d.ts +7 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +31 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +12 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +82 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.d.ts +4 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +26 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +75 -0
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/render-user/index.js +21 -0
- package/lib/modules/participant/components/participants/index.js +18 -112
- package/lib/modules/participant/components/participants/types.d.ts +96 -0
- package/lib/modules/participant/components/participants/types.js +37 -0
- package/lib/modules/participant/index.css +3 -0
- package/lib/modules/participant/index.d.ts +12 -0
- package/lib/modules/participant/index.js +7 -1
- package/lib/modules/participant/member-list-data-source.d.ts +2 -2
- package/lib/modules/participant/member-list-data-source.js +11 -17
- package/lib/modules/participant/store.d.ts +44 -37
- package/lib/modules/participant/store.js +527 -536
- package/lib/modules/participant/type.d.ts +2 -9
- package/lib/modules/pc-audio-connect/store.d.ts +1 -1
- package/lib/modules/pc-audio-connect/store.js +9 -6
- package/lib/modules/setting/audio-settings/audio-settings.js +5 -4
- package/lib/modules/setting/audio-settings/index.css +11 -2
- package/lib/modules/setting/config.js +1 -1
- package/lib/modules/setting/store.d.ts +1 -0
- package/lib/modules/setting/store.js +20 -2
- package/lib/modules/setting/video-settings/index.css +12 -17
- package/lib/modules/setting/video-settings/video-settings-basic.js +40 -44
- package/lib/modules/share-screen/components/selection/index.js +70 -80
- package/lib/modules/share-screen/index.d.ts +6 -1
- package/lib/modules/share-screen/index.js +4 -1
- package/lib/modules/share-screen/store.d.ts +37 -33
- package/lib/modules/share-screen/store.js +330 -438
- package/lib/modules/sound-effect/sound-effect-player.d.ts +0 -4
- package/lib/modules/sound-effect/sound-effect-player.js +4 -4
- package/lib/modules/state-bar/index.css +2 -15
- package/lib/modules/state-bar/index.d.ts +10 -0
- package/lib/modules/state-bar/index.js +6 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -17
- package/lib/modules/state-bar/meeting-details.js +12 -24
- package/lib/modules/state-bar/meeting-time.js +5 -10
- package/lib/modules/state-bar/store.d.ts +31 -8
- package/lib/modules/state-bar/store.js +146 -100
- package/lib/modules/state-bar/view.js +63 -32
- package/lib/modules/video-window/components/deviceState/index.d.ts +7 -0
- package/lib/modules/video-window/components/deviceState/index.js +75 -0
- package/lib/modules/video-window/components/members/index.css +51 -0
- package/lib/modules/video-window/components/members/index.d.ts +2 -0
- package/lib/modules/video-window/components/members/index.js +131 -0
- package/lib/modules/video-window/components/speaking/index.css +86 -0
- package/lib/modules/video-window/components/speaking/index.d.ts +3 -0
- package/lib/modules/video-window/components/speaking/index.js +48 -0
- package/lib/modules/video-window/components/topControl/index.css +35 -0
- package/lib/modules/video-window/components/topControl/index.d.ts +3 -0
- package/lib/modules/video-window/components/topControl/index.js +79 -0
- package/lib/modules/video-window/index.d.ts +7 -0
- package/lib/modules/video-window/index.js +14 -20
- package/lib/modules/video-window/store.d.ts +19 -88
- package/lib/modules/video-window/store.js +98 -365
- package/lib/modules/video-window/type.d.ts +40 -4
- package/lib/modules/video-window/type.js +4 -4
- package/lib/modules/video-window/view.js +11 -23
- package/lib/modules/whiteboard/index.d.ts +1 -0
- package/lib/modules/whiteboard/index.js +7 -4
- package/lib/modules/widget/index.css +17 -0
- package/lib/modules/widget/index.d.ts +10 -0
- package/lib/modules/widget/index.js +114 -0
- package/lib/modules/widget/sdk.d.ts +30 -0
- package/lib/modules/widget/sdk.js +224 -0
- package/lib/modules/widget/store.d.ts +14 -0
- package/lib/modules/widget/store.js +28 -0
- package/lib/modules/widget/type.d.ts +156 -0
- package/lib/modules/widget/type.js +6 -0
- package/lib/modules/widget/view.d.ts +2 -0
- package/lib/modules/widget/view.js +47 -0
- package/lib/modules/widget/web-widget.d.ts +29 -0
- package/lib/modules/widget/web-widget.js +234 -0
- package/lib/providers/ability-provider.d.ts +24 -0
- package/lib/providers/ability-provider.js +38 -0
- package/lib/providers/chat-provider.d.ts +16 -9
- package/lib/providers/chat-provider.js +76 -8
- package/lib/providers/device-privilege-provider.d.ts +5 -1
- package/lib/providers/device-privilege-provider.js +21 -1
- package/lib/providers/device-provider.js +5 -2
- package/lib/providers/device-stream-provider.d.ts +15 -3
- package/lib/providers/device-stream-provider.js +118 -34
- package/lib/providers/dialog-provider.d.ts +9 -8
- package/lib/providers/dialog-provider.js +8 -4
- package/lib/providers/event-provider.js +4 -2
- package/lib/providers/interpreter-provider.d.ts +7 -26
- package/lib/providers/interpreter-provider.js +473 -706
- package/lib/providers/local-storage-provider.d.ts +6 -1
- package/lib/providers/local-storage-provider.js +15 -2
- package/lib/providers/message-provider.js +4 -2
- package/lib/providers/phone-audio-provider.js +24 -18
- package/lib/providers/privilege-provider.d.ts +13 -12
- package/lib/providers/privilege-provider.js +19 -11
- package/lib/providers/renderer-provider.d.ts +5 -0
- package/lib/providers/renderer-provider.js +8 -1
- package/lib/providers/room-provider.d.ts +7 -17
- package/lib/providers/room-provider.js +113 -161
- package/lib/providers/screen-share-provider.d.ts +19 -0
- package/lib/providers/screen-share-provider.js +102 -10
- package/lib/providers/widget-provider.d.ts +52 -0
- package/lib/providers/widget-provider.js +171 -0
- package/lib/scenes/main-scene.d.ts +11 -0
- package/lib/scenes/main-scene.js +60 -33
- package/lib/scenes/waiting-scene.d.ts +9 -0
- package/lib/scenes/waiting-scene.js +27 -26
- package/lib/schema.d.ts +114 -0
- package/lib/schema.js +77 -0
- package/lib/shared-data-source/chat-data.d.ts +11 -0
- package/lib/shared-data-source/chat-data.js +17 -6
- package/lib/shared-data-source/interpreter.d.ts +34 -21
- package/lib/shared-data-source/interpreter.js +104 -103
- package/lib/shared-data-source/meeting-time.d.ts +68 -0
- package/lib/shared-data-source/meeting-time.js +299 -0
- package/lib/shared-data-source/member-data.d.ts +126 -0
- package/lib/shared-data-source/member-data.js +451 -0
- package/lib/shared-data-source/pin-data.d.ts +8 -4
- package/lib/shared-data-source/pin-data.js +92 -4
- package/lib/shared-data-source/security-data.d.ts +35 -0
- package/lib/shared-data-source/security-data.js +156 -0
- package/lib/shared-data-source/setting.d.ts +3 -1
- package/lib/shared-data-source/setting.js +12 -1
- package/lib/shared-data-source/video-window.d.ts +7 -8
- package/lib/shared-data-source/video-window.js +97 -94
- package/lib/shared-data-source/waiting-room.d.ts +29 -2
- package/lib/shared-data-source/waiting-room.js +103 -39
- package/lib/translations/enUS.d.ts +25 -12
- package/lib/translations/enUS.js +47 -68
- package/lib/translations/zhCN.d.ts +26 -12
- package/lib/translations/zhCN.js +63 -83
- package/lib/type.d.ts +64 -48
- package/lib/type.js +14 -1
- package/lib/ui-manager.d.ts +3 -2
- package/lib/ui-manager.js +8 -7
- package/lib/ui-scene.d.ts +7 -1
- package/lib/ui-scene.js +187 -97
- package/lib/utilities/constant.d.ts +7 -3
- package/lib/utilities/constant.js +4 -0
- package/lib/utilities/default-config.d.ts +5 -1
- package/lib/utilities/default-config.js +28 -2
- package/lib/utilities/logger.d.ts +8 -0
- package/lib/utilities/logger.js +42 -0
- package/lib/utilities/meeting-detail.js +11 -10
- package/lib/utilities/parameters.d.ts +4 -0
- package/lib/utilities/parameters.js +13 -1
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +4 -1
- package/lib/utilities/tools.d.ts +7 -6
- package/lib/utilities/tools.js +2 -6
- package/lib/utilities/validate-params.d.ts +2 -0
- package/lib/utilities/validate-params.js +16 -0
- package/lib/waiting-room-control-manager.d.ts +28 -0
- package/lib/waiting-room-control-manager.js +212 -0
- package/lib/widget-sdk.d.ts +2 -0
- package/lib/widget-sdk.js +13 -0
- package/package.json +7 -6
- package/public/index.html +12 -6
|
@@ -8,13 +8,13 @@ exports.ChatAction = void 0;
|
|
|
8
8
|
var _mobxReact = require("mobx-react");
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _store = require("../../store");
|
|
11
|
-
var _type = require("fcr-core/lib/room-control/type");
|
|
12
11
|
var _chatManager = require("agora-ui-foundation/lib/components/chat-manager");
|
|
12
|
+
var _type = require("../../../../type");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
var ChatAction = exports.ChatAction = (0, _mobxReact.observer)(function () {
|
|
15
15
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
16
16
|
chatRoomStores = _useContext.chatRoomStores;
|
|
17
|
-
var _ref = chatRoomStores[_type.
|
|
17
|
+
var _ref = chatRoomStores[_type.FcrUIRoomType.MAIN_ROOM],
|
|
18
18
|
isHostOrCoHost = _ref.isHostOrCoHost,
|
|
19
19
|
setAllowChat = _ref.setAllowChat,
|
|
20
20
|
setAllowChatWithPayload = _ref.setAllowChatWithPayload,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
import { MessageBarProps } from '../../types';
|
|
3
|
-
export declare const MessageBar: ({ styles, users
|
|
3
|
+
export declare const MessageBar: ({ styles, users }: React.PropsWithChildren<MessageBarProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -39,13 +39,10 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
39
39
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40
40
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
41
41
|
var MessageBar = exports.MessageBar = (0, _mobxReact.observer)(function (_ref) {
|
|
42
|
-
var _users$filter,
|
|
42
|
+
var _users$filter, _privateTargetUser$us, _privateTargetUser$us2;
|
|
43
43
|
var styles = _ref.styles,
|
|
44
44
|
_ref$users = _ref.users,
|
|
45
|
-
users = _ref$users === void 0 ? [] : _ref$users
|
|
46
|
-
selectedUser = _ref.selectedUser,
|
|
47
|
-
onTargetChange = _ref.onTargetChange,
|
|
48
|
-
title = _ref.title;
|
|
45
|
+
users = _ref$users === void 0 ? [] : _ref$users;
|
|
49
46
|
var t = (0, _i18n.useI18n)();
|
|
50
47
|
var cls = (0, _classnames["default"])('fcr-message-bar', {});
|
|
51
48
|
// 每次打开聊天窗, 默认 All
|
|
@@ -66,22 +63,27 @@ var MessageBar = exports.MessageBar = (0, _mobxReact.observer)(function (_ref) {
|
|
|
66
63
|
}
|
|
67
64
|
setPopoverOpened(visible);
|
|
68
65
|
};
|
|
69
|
-
var selectedUserId = (_selectedUser$userId = selectedUser === null || selectedUser === void 0 ? void 0 : selectedUser.userId) !== null && _selectedUser$userId !== void 0 ? _selectedUser$userId : _types.USER_ALL;
|
|
70
66
|
var handleSelected = function handleSelected(user) {
|
|
71
67
|
setPopoverOpened(false);
|
|
72
|
-
|
|
68
|
+
setTargetUser(user);
|
|
73
69
|
};
|
|
74
|
-
(0, _react.useEffect)(function () {
|
|
75
|
-
setTips(selectedUserId === _types.USER_ALL ? t('fmt_chat_labels_sendto') : t('fmt_chats_label_privatechat'));
|
|
76
|
-
}, [selectedUserId]);
|
|
77
70
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
78
71
|
chatRoomStores = _useContext.chatRoomStores,
|
|
79
|
-
activeTabIndex = _useContext.activeTabIndex
|
|
80
|
-
roomType = _useContext.roomType;
|
|
72
|
+
activeTabIndex = _useContext.activeTabIndex;
|
|
81
73
|
var _ref2 = chatRoomStores[activeTabIndex],
|
|
82
|
-
chatLevel = _ref2.chatLevel,
|
|
83
74
|
privateTargetUser = _ref2.privateTargetUser,
|
|
84
|
-
localIsManager = _ref2.localIsManager
|
|
75
|
+
localIsManager = _ref2.localIsManager,
|
|
76
|
+
setTargetUser = _ref2.setTargetUser,
|
|
77
|
+
chatLevel = _ref2.chatLevel;
|
|
78
|
+
var selectedUserId = (_privateTargetUser$us = privateTargetUser === null || privateTargetUser === void 0 ? void 0 : privateTargetUser.userId) !== null && _privateTargetUser$us !== void 0 ? _privateTargetUser$us : _types.USER_ALL;
|
|
79
|
+
var chatSelectNoTitle = localIsManager || chatLevel === 'everyone' || chatLevel === 'no_one';
|
|
80
|
+
var title = chatSelectNoTitle ? undefined : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
81
|
+
className: "assign-host-title",
|
|
82
|
+
children: chatLevel === 'public' ? t('fmt_chat_option_onlypublic') : t('fmt_chat_option_onlyprivate')
|
|
83
|
+
});
|
|
84
|
+
(0, _react.useEffect)(function () {
|
|
85
|
+
setTips(selectedUserId === _types.USER_ALL ? t('fmt_chat_labels_sendto') : t('fmt_chats_label_privatechat'));
|
|
86
|
+
}, [selectedUserId]);
|
|
85
87
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
86
88
|
className: cls,
|
|
87
89
|
style: _objectSpread({}, styles),
|
|
@@ -95,7 +97,7 @@ var MessageBar = exports.MessageBar = (0, _mobxReact.observer)(function (_ref) {
|
|
|
95
97
|
width: 280
|
|
96
98
|
},
|
|
97
99
|
placement: "bottomLeft",
|
|
98
|
-
overlayClassName: "fcr-action-bar--device-popover",
|
|
100
|
+
overlayClassName: "fcr-action-bar--device-popover fcr-chat-select-popover",
|
|
99
101
|
visible: popoverOpened,
|
|
100
102
|
onVisibleChange: onPopoverChanged,
|
|
101
103
|
trigger: "click",
|
|
@@ -120,7 +122,7 @@ var MessageBar = exports.MessageBar = (0, _mobxReact.observer)(function (_ref) {
|
|
|
120
122
|
}
|
|
121
123
|
// TODO: 当选中的 uid 为 None 时,需要提示选择管理员
|
|
122
124
|
,
|
|
123
|
-
txt: privateTargetUser.userId === _types.USER_NONE && !localIsManager ? t('fmt_chat_tips_selecthost') : (
|
|
125
|
+
txt: privateTargetUser.userId === _types.USER_NONE && !localIsManager ? t('fmt_chat_tips_selecthost') : (_privateTargetUser$us2 = privateTargetUser === null || privateTargetUser === void 0 ? void 0 : privateTargetUser.userName) !== null && _privateTargetUser$us2 !== void 0 ? _privateTargetUser$us2 : _types.USER_ALL,
|
|
124
126
|
icon: _type.FcrIconType.FCR_DROPDOWN,
|
|
125
127
|
colors: {
|
|
126
128
|
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)',
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.symbol.js");
|
|
4
|
-
require("core-js/modules/es.array.for-each.js");
|
|
5
|
-
require("core-js/modules/es.object.define-properties.js");
|
|
6
3
|
require("core-js/modules/es.object.define-property.js");
|
|
7
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
8
|
-
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
9
|
-
require("core-js/modules/es.object.keys.js");
|
|
10
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
11
|
-
require("core-js/modules/esnext.iterator.for-each.js");
|
|
12
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
13
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
14
5
|
Object.defineProperty(exports, "__esModule", {
|
|
15
6
|
value: true
|
|
@@ -17,37 +8,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
17
8
|
exports.ChatSelect = void 0;
|
|
18
9
|
require("core-js/modules/es.array.filter.js");
|
|
19
10
|
require("core-js/modules/es.array.includes.js");
|
|
20
|
-
require("core-js/modules/es.array.index-of.js");
|
|
21
|
-
require("core-js/modules/es.array.map.js");
|
|
22
|
-
require("core-js/modules/es.array.push.js");
|
|
23
|
-
require("core-js/modules/es.array.slice.js");
|
|
24
11
|
require("core-js/modules/es.object.to-string.js");
|
|
25
12
|
require("core-js/modules/es.string.includes.js");
|
|
26
13
|
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
27
|
-
require("core-js/modules/esnext.async-iterator.map.js");
|
|
28
14
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
29
15
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
30
|
-
require("core-js/modules/esnext.iterator.map.js");
|
|
31
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
32
16
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
33
|
-
var _avatar = require("agora-ui-foundation/lib/components/avatar");
|
|
34
|
-
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
35
|
-
var _input = require("agora-ui-foundation/lib/components/input");
|
|
36
|
-
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
37
17
|
var _mobxReact = require("mobx-react");
|
|
38
18
|
var _react = require("react");
|
|
39
19
|
require("./index.css");
|
|
40
20
|
var _reactVirtualized = require("react-virtualized");
|
|
41
|
-
var _type2 = require("fcr-core/lib/type");
|
|
42
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
43
|
-
var _textBubble = require("agora-ui-foundation/lib/components/text-bubble");
|
|
44
21
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
45
22
|
var _fcr_defaultpage = _interopRequireDefault(require("../../../../../public/assets/fcr_defaultpage.png"));
|
|
46
|
-
var
|
|
47
|
-
var
|
|
23
|
+
var _selectItem = _interopRequireDefault(require("./select-item"));
|
|
24
|
+
var _selectInput = _interopRequireDefault(require("./select-input"));
|
|
48
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
49
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
50
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
51
26
|
var ChatSelect = exports.ChatSelect = (0, _mobxReact.observer)(function (_ref) {
|
|
52
27
|
var type = _ref.type,
|
|
53
28
|
title = _ref.title,
|
|
@@ -74,9 +49,9 @@ var ChatSelect = exports.ChatSelect = (0, _mobxReact.observer)(function (_ref) {
|
|
|
74
49
|
listHeight = 5 * 40;
|
|
75
50
|
}
|
|
76
51
|
var rowCount = filterUsers.length;
|
|
77
|
-
var handleFilterChange = function
|
|
52
|
+
var handleFilterChange = (0, _react.useCallback)(function (search) {
|
|
78
53
|
setFilterKey(search);
|
|
79
|
-
};
|
|
54
|
+
}, []);
|
|
80
55
|
var t = (0, _i18n.useI18n)();
|
|
81
56
|
var rowRenderer = function rowRenderer(_ref2) {
|
|
82
57
|
var index = _ref2.index,
|
|
@@ -86,94 +61,21 @@ var ChatSelect = exports.ChatSelect = (0, _mobxReact.observer)(function (_ref) {
|
|
|
86
61
|
if (!datum) {
|
|
87
62
|
return null;
|
|
88
63
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
style:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
99
|
-
style: {
|
|
100
|
-
background: (0, _helper.getNameColor)(datum.userName)
|
|
101
|
-
},
|
|
102
|
-
className: (0, _classnames["default"])('candidate-avatar', {
|
|
103
|
-
'candidate-avatar-all': datum.userId === _types.USER_ALL
|
|
104
|
-
}),
|
|
105
|
-
children: type === 'private-chat' && datum.userName === _types.USER_ALL ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
106
|
-
size: 16,
|
|
107
|
-
type: _type.FcrIconType.FCR_USERS,
|
|
108
|
-
colors: {
|
|
109
|
-
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
110
|
-
}
|
|
111
|
-
}) :
|
|
112
|
-
/*#__PURE__*/
|
|
113
|
-
// datum.userName.charAt(0).toLocaleUpperCase()
|
|
114
|
-
(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
115
|
-
isShowFirstLetter: true,
|
|
116
|
-
size: 32,
|
|
117
|
-
nickName: datum.userName,
|
|
118
|
-
textSize: 14
|
|
119
|
-
})
|
|
120
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
121
|
-
className: "candidate",
|
|
122
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
123
|
-
className: "candidate-info",
|
|
124
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
125
|
-
className: (0, _classnames["default"])('candidate-name', {
|
|
126
|
-
'candidate-name-active': selectedUid === users[index].userId
|
|
127
|
-
}),
|
|
128
|
-
style: {
|
|
129
|
-
color: (0, _helper.getNameColor)(datum.userName)
|
|
130
|
-
},
|
|
131
|
-
children: highlightMatches(datum.userName, filterKey).map(function (value, i) {
|
|
132
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
133
|
-
className: value !== null && value !== void 0 && value.isHighlight ? 'candidate-highlight' : '',
|
|
134
|
-
children: value.data
|
|
135
|
-
}, "".concat(i));
|
|
136
|
-
})
|
|
137
|
-
}), datum.userId !== _types.USER_ALL && (datum.userRole === _type2.FcrUserRole.COHOST || datum.userRole === _type2.FcrUserRole.HOST) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_textBubble.TextBubble, {
|
|
138
|
-
txt: t(datum.userRole === _type2.FcrUserRole.HOST ? 'fmt_role_host' : 'fmt_role_cohost'),
|
|
139
|
-
styles: {
|
|
140
|
-
width: 'fit-content'
|
|
141
|
-
},
|
|
142
|
-
type: "gray",
|
|
143
|
-
lineHeight: "small",
|
|
144
|
-
classnames: datum.userRole === _type2.FcrUserRole.HOST ? 'host' : 'cohost'
|
|
145
|
-
})]
|
|
146
|
-
}), selectedUid === users[index].userId ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
147
|
-
className: "candidate-select",
|
|
148
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
149
|
-
type: _type.FcrIconType.FCR_CHOOSEIT,
|
|
150
|
-
size: 24,
|
|
151
|
-
colors: {
|
|
152
|
-
iconPrimary: 'var(--fcr_web_ui_scene_mainicon2)'
|
|
153
|
-
}
|
|
154
|
-
})
|
|
155
|
-
}) : null]
|
|
156
|
-
})]
|
|
64
|
+
var isSelf = selectedUid === filterUsers[index].userId;
|
|
65
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectItem["default"], {
|
|
66
|
+
style: style,
|
|
67
|
+
onSelect: onSelect,
|
|
68
|
+
type: type,
|
|
69
|
+
isSelf: isSelf,
|
|
70
|
+
currentUser: datum,
|
|
71
|
+
filterKey: filterKey
|
|
157
72
|
}, key);
|
|
158
73
|
};
|
|
159
74
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
160
75
|
className: "leave-container",
|
|
161
|
-
children: [title, /*#__PURE__*/(0, _jsxRuntime.jsx)("
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
iconPrefix: {
|
|
165
|
-
colors: {
|
|
166
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
167
|
-
},
|
|
168
|
-
type: _type.FcrIconType.FCR_V2_SEARCH
|
|
169
|
-
},
|
|
170
|
-
onChange: function onChange(value) {
|
|
171
|
-
handleFilterChange(value);
|
|
172
|
-
},
|
|
173
|
-
placeholder: t('fmt_attendies_button_serach'),
|
|
174
|
-
shape: "rounded",
|
|
175
|
-
value: filterKey
|
|
176
|
-
})
|
|
76
|
+
children: [title, /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectInput["default"], {
|
|
77
|
+
handleFilterChange: handleFilterChange,
|
|
78
|
+
searchTxt: filterKey
|
|
177
79
|
}), filterUsers.length > 5 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
178
80
|
className: "assign-host-border"
|
|
179
81
|
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -201,37 +103,4 @@ var ChatSelect = exports.ChatSelect = (0, _mobxReact.observer)(function (_ref) {
|
|
|
201
103
|
})
|
|
202
104
|
}), bottomBar]
|
|
203
105
|
});
|
|
204
|
-
});
|
|
205
|
-
function highlightMatches(str, matchStr) {
|
|
206
|
-
var result = [];
|
|
207
|
-
var matchLen = matchStr.length;
|
|
208
|
-
var start = 0;
|
|
209
|
-
if (matchStr.length === 0) {
|
|
210
|
-
return [{
|
|
211
|
-
data: str,
|
|
212
|
-
isHighlight: false
|
|
213
|
-
}];
|
|
214
|
-
}
|
|
215
|
-
while (start < str.length) {
|
|
216
|
-
var matchStart = str.indexOf(matchStr, start);
|
|
217
|
-
if (matchStart === -1) {
|
|
218
|
-
result.push({
|
|
219
|
-
data: str.slice(start),
|
|
220
|
-
isHighlight: false
|
|
221
|
-
});
|
|
222
|
-
break;
|
|
223
|
-
}
|
|
224
|
-
if (start !== matchStart) {
|
|
225
|
-
result.push({
|
|
226
|
-
data: str.slice(start, matchStart),
|
|
227
|
-
isHighlight: false
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
result.push({
|
|
231
|
-
data: matchStr,
|
|
232
|
-
isHighlight: true
|
|
233
|
-
});
|
|
234
|
-
start = matchStart + matchLen;
|
|
235
|
-
}
|
|
236
|
-
return result;
|
|
237
|
-
}
|
|
106
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ISelectInput = {
|
|
3
|
+
handleFilterChange: (search: string) => void;
|
|
4
|
+
searchTxt: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: React.MemoExoticComponent<(props: ISelectInput) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
10
|
+
var _input = require("agora-ui-foundation/lib/components/input");
|
|
11
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
var _default = exports["default"] = /*#__PURE__*/_react["default"].memo(function (props) {
|
|
15
|
+
var handleFilterChange = props.handleFilterChange,
|
|
16
|
+
filterKey = props.searchTxt;
|
|
17
|
+
var t = (0, _i18n.useI18n)();
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
19
|
+
className: "assign-host-search",
|
|
20
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_input.FcrInput, {
|
|
21
|
+
iconPrefix: {
|
|
22
|
+
colors: {
|
|
23
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
24
|
+
},
|
|
25
|
+
type: _type.FcrIconType.FCR_V2_SEARCH
|
|
26
|
+
},
|
|
27
|
+
onChange: function onChange(value) {
|
|
28
|
+
handleFilterChange(value);
|
|
29
|
+
},
|
|
30
|
+
placeholder: t('fmt_attendies_button_serach'),
|
|
31
|
+
shape: "rounded",
|
|
32
|
+
value: filterKey
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FcrUserInfo } from 'fcr-core/lib/type';
|
|
2
|
+
type ISelectItem = {
|
|
3
|
+
key: string;
|
|
4
|
+
style: React.CSSProperties | undefined;
|
|
5
|
+
onSelect: (user: FcrUserInfo) => void;
|
|
6
|
+
type: 'assign-host' | 'private-chat';
|
|
7
|
+
isSelf: boolean;
|
|
8
|
+
currentUser: FcrUserInfo;
|
|
9
|
+
filterKey: string;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: (props: ISelectItem) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.array.filter.js");
|
|
5
|
+
require("core-js/modules/es.array.for-each.js");
|
|
6
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
7
|
+
require("core-js/modules/es.object.define-property.js");
|
|
8
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
9
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
10
|
+
require("core-js/modules/es.object.keys.js");
|
|
11
|
+
require("core-js/modules/es.object.to-string.js");
|
|
12
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
13
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
14
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
15
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
16
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
17
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
18
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
19
|
+
Object.defineProperty(exports, "__esModule", {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
exports["default"] = void 0;
|
|
23
|
+
require("core-js/modules/es.array.index-of.js");
|
|
24
|
+
require("core-js/modules/es.array.map.js");
|
|
25
|
+
require("core-js/modules/es.array.push.js");
|
|
26
|
+
require("core-js/modules/es.array.slice.js");
|
|
27
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
28
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
29
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
30
|
+
var _type = require("fcr-core/lib/type");
|
|
31
|
+
var _mobxReact = require("mobx-react");
|
|
32
|
+
var _helper = require("agora-ui-foundation/lib/components/avatar/helper");
|
|
33
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
34
|
+
var _types = require("../../../types");
|
|
35
|
+
var _textBubble = require("agora-ui-foundation/lib/components/text-bubble");
|
|
36
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
37
|
+
var _type2 = require("agora-ui-foundation/lib/components/icon/type");
|
|
38
|
+
var _avatar = require("agora-ui-foundation/lib/components/avatar");
|
|
39
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
40
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
41
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
42
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
43
|
+
var _default = exports["default"] = (0, _mobxReact.observer)(function (props) {
|
|
44
|
+
var key = props.key,
|
|
45
|
+
style = props.style,
|
|
46
|
+
onSelect = props.onSelect,
|
|
47
|
+
type = props.type,
|
|
48
|
+
isSelf = props.isSelf,
|
|
49
|
+
currentUser = props.currentUser,
|
|
50
|
+
filterKey = props.filterKey;
|
|
51
|
+
var t = (0, _i18n.useI18n)();
|
|
52
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
53
|
+
className: isSelf ? 'candidate-container-selected' : 'candidate-container',
|
|
54
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
55
|
+
pointerEvents: 'all'
|
|
56
|
+
}),
|
|
57
|
+
onClick: function onClick(_) {
|
|
58
|
+
onSelect(currentUser);
|
|
59
|
+
},
|
|
60
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
61
|
+
style: {
|
|
62
|
+
background: (0, _helper.getNameColor)(currentUser.userName)
|
|
63
|
+
},
|
|
64
|
+
className: (0, _classnames["default"])('candidate-avatar', {
|
|
65
|
+
'candidate-avatar-all': currentUser.userId === _types.USER_ALL
|
|
66
|
+
}),
|
|
67
|
+
children: type === 'private-chat' && currentUser.userName === _types.USER_ALL ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
68
|
+
size: 16,
|
|
69
|
+
type: _type2.FcrIconType.FCR_USERS,
|
|
70
|
+
colors: {
|
|
71
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
72
|
+
}
|
|
73
|
+
}) :
|
|
74
|
+
/*#__PURE__*/
|
|
75
|
+
// currentUser.userName.charAt(0).toLocaleUpperCase()
|
|
76
|
+
(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
77
|
+
isShowFirstLetter: true,
|
|
78
|
+
size: 32,
|
|
79
|
+
nickName: currentUser.userName,
|
|
80
|
+
textSize: 14
|
|
81
|
+
})
|
|
82
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
83
|
+
className: "candidate",
|
|
84
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
85
|
+
className: "candidate-info",
|
|
86
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
87
|
+
className: (0, _classnames["default"])('candidate-name', {
|
|
88
|
+
'candidate-name-active': isSelf
|
|
89
|
+
}),
|
|
90
|
+
style: {
|
|
91
|
+
color: (0, _helper.getNameColor)(currentUser.userName)
|
|
92
|
+
},
|
|
93
|
+
children: highlightMatches(currentUser.userName, filterKey).map(function (value, i) {
|
|
94
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
95
|
+
className: value !== null && value !== void 0 && value.isHighlight ? 'candidate-highlight' : '',
|
|
96
|
+
children: value.data
|
|
97
|
+
}, "".concat(i));
|
|
98
|
+
})
|
|
99
|
+
}), currentUser.userId !== _types.USER_ALL && (currentUser.userRole === _type.FcrUserRole.COHOST || currentUser.userRole === _type.FcrUserRole.HOST) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_textBubble.TextBubble, {
|
|
100
|
+
txt: t(currentUser.userRole === _type.FcrUserRole.HOST ? 'fmt_role_host' : 'fmt_role_cohost'),
|
|
101
|
+
styles: {
|
|
102
|
+
width: 'fit-content'
|
|
103
|
+
},
|
|
104
|
+
type: "gray",
|
|
105
|
+
lineHeight: "small",
|
|
106
|
+
classnames: currentUser.userRole === _type.FcrUserRole.HOST ? 'host' : 'cohost'
|
|
107
|
+
})]
|
|
108
|
+
}), isSelf ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
109
|
+
className: "candidate-select",
|
|
110
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
111
|
+
type: _type2.FcrIconType.FCR_CHOOSEIT,
|
|
112
|
+
size: 24,
|
|
113
|
+
colors: {
|
|
114
|
+
iconPrimary: 'var(--fcr_web_ui_scene_mainicon2)'
|
|
115
|
+
}
|
|
116
|
+
})
|
|
117
|
+
}) : null]
|
|
118
|
+
})]
|
|
119
|
+
}, key);
|
|
120
|
+
});
|
|
121
|
+
function highlightMatches(str, matchStr) {
|
|
122
|
+
var result = [];
|
|
123
|
+
var matchLen = matchStr.length;
|
|
124
|
+
var start = 0;
|
|
125
|
+
if (matchStr.length === 0) {
|
|
126
|
+
return [{
|
|
127
|
+
data: str,
|
|
128
|
+
isHighlight: false
|
|
129
|
+
}];
|
|
130
|
+
}
|
|
131
|
+
while (start < str.length) {
|
|
132
|
+
var matchStart = str.indexOf(matchStr, start);
|
|
133
|
+
if (matchStart === -1) {
|
|
134
|
+
result.push({
|
|
135
|
+
data: str.slice(start),
|
|
136
|
+
isHighlight: false
|
|
137
|
+
});
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
if (start !== matchStart) {
|
|
141
|
+
result.push({
|
|
142
|
+
data: str.slice(start, matchStart),
|
|
143
|
+
isHighlight: false
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
result.push({
|
|
147
|
+
data: matchStr,
|
|
148
|
+
isHighlight: true
|
|
149
|
+
});
|
|
150
|
+
start = matchStart + matchLen;
|
|
151
|
+
}
|
|
152
|
+
return result;
|
|
153
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var _mobxReact = require("mobx-react");
|
|
10
|
+
var _react = require("react");
|
|
11
|
+
var _store = require("../../store");
|
|
12
|
+
var _tabs = require("agora-ui-foundation/lib/components/tabs");
|
|
13
|
+
var _fcr_chat_reddot = _interopRequireDefault(require("../../../../../public/assets/fcr_chat_reddot.svg"));
|
|
14
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
15
|
+
var _type = require("../../../../type");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
var _default = exports["default"] = (0, _mobxReact.observer)(function () {
|
|
18
|
+
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
19
|
+
chatRoomStores = _useContext.chatRoomStores,
|
|
20
|
+
activeTabIndex = _useContext.activeTabIndex,
|
|
21
|
+
handlerActiveTab = _useContext.handlerActiveTab;
|
|
22
|
+
var chatRoomWaitingRoomStore = chatRoomStores[_type.FcrUIRoomType.WAITING_ROOM];
|
|
23
|
+
var chatRoomMainRoomStore = chatRoomStores[_type.FcrUIRoomType.MAIN_ROOM];
|
|
24
|
+
var t = (0, _i18n.useI18n)();
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
26
|
+
className: "chat-tabs-container",
|
|
27
|
+
children: chatRoomWaitingRoomStore && chatRoomMainRoomStore && chatRoomWaitingRoomStore.userCount > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_tabs.FcrTabs, {
|
|
28
|
+
items: [{
|
|
29
|
+
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
30
|
+
className: "chat-container-icon",
|
|
31
|
+
children: [chatRoomMainRoomStore.unReadMsgCount > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32
|
+
className: "fcr-action-bar-chat-unread-count",
|
|
33
|
+
children: chatRoomMainRoomStore.unReadMsgCount > 99 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
34
|
+
src: _fcr_chat_reddot["default"]
|
|
35
|
+
}) : chatRoomMainRoomStore.unReadMsgCount
|
|
36
|
+
}), t('fmt_waitingroom_sidebar_chat_label_meeting', {
|
|
37
|
+
reason1: chatRoomMainRoomStore.userCount
|
|
38
|
+
})]
|
|
39
|
+
}),
|
|
40
|
+
key: "".concat(_type.FcrUIRoomType.MAIN_ROOM)
|
|
41
|
+
}, {
|
|
42
|
+
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
43
|
+
className: "chat-container-icon",
|
|
44
|
+
children: [chatRoomWaitingRoomStore.unReadMsgCount > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
45
|
+
className: "fcr-action-bar-chat-unread-count",
|
|
46
|
+
children: chatRoomWaitingRoomStore.unReadMsgCount > 99 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
47
|
+
src: _fcr_chat_reddot["default"]
|
|
48
|
+
}) : chatRoomWaitingRoomStore.unReadMsgCount
|
|
49
|
+
}), t('fmt_waitingroom_sidebar_label_waiting', {
|
|
50
|
+
reason1: chatRoomWaitingRoomStore.userCount
|
|
51
|
+
})]
|
|
52
|
+
}),
|
|
53
|
+
key: "".concat(_type.FcrUIRoomType.WAITING_ROOM)
|
|
54
|
+
}],
|
|
55
|
+
activeKey: "".concat(activeTabIndex),
|
|
56
|
+
onChange: function onChange(key) {
|
|
57
|
+
handlerActiveTab(key);
|
|
58
|
+
}
|
|
59
|
+
}) : null
|
|
60
|
+
});
|
|
61
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
10
|
+
var _fcr_defaultpage = _interopRequireDefault(require("../../../../../../public/assets/fcr_defaultpage.png"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
var _default = exports["default"] = function _default() {
|
|
13
|
+
var t = (0, _i18n.useI18n)();
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
15
|
+
className: "fcr-no-data-chat",
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
17
|
+
style: {
|
|
18
|
+
width: 138,
|
|
19
|
+
height: 100
|
|
20
|
+
},
|
|
21
|
+
src: _fcr_defaultpage["default"]
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
23
|
+
children: t('fmt_chat_tips_nodata')
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
26
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type IHistoryUnreadMessageButton = {
|
|
2
|
+
historyMsgVisible: boolean;
|
|
3
|
+
scrollToIdx: (idx: number) => void;
|
|
4
|
+
setHistoryMsgVisible: (visible: boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: (props: IHistoryUnreadMessageButton) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default _default;
|