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
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
.attendee {
|
|
2
|
+
border-radius: var(--fcr_cornerradius_s);
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
min-height: 52px;
|
|
9
|
+
padding: 10px 10px 10px 6px;
|
|
10
|
+
margin: 0 10px;
|
|
11
|
+
position: relative;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.attendee::after {
|
|
15
|
+
content: '';
|
|
16
|
+
position: absolute;
|
|
17
|
+
left: 0;
|
|
18
|
+
right: 0;
|
|
19
|
+
bottom: 0%;
|
|
20
|
+
margin: 0 10px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.attendee:hover,
|
|
24
|
+
.attendee-active {
|
|
25
|
+
background-color: var(--fcr_web_ui_scene_hover);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.attendee:hover::after {
|
|
29
|
+
border-top: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.attendee__user-info {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
gap: 10px;
|
|
37
|
+
flex: 1;
|
|
38
|
+
}
|
|
39
|
+
.attendee__user-info .fcr-avatar {
|
|
40
|
+
background-color: var(--for_head2);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.attendee__user-info-identity {
|
|
44
|
+
max-width: 80%;
|
|
45
|
+
width: 80%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.attendee__name {
|
|
49
|
+
color: var(--for_head2);
|
|
50
|
+
display: -webkit-box;
|
|
51
|
+
-webkit-line-clamp: 2;
|
|
52
|
+
-webkit-box-orient: vertical;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
word-wrap: break-word;
|
|
56
|
+
word-break: break-all;
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.attendee__host-badge {
|
|
61
|
+
color: var(--fcr_ui_scene_inverse);
|
|
62
|
+
background-color: var(--fcr_ui_scene_icontext5);
|
|
63
|
+
width: fit-content;
|
|
64
|
+
padding: 2px 4px;
|
|
65
|
+
border-radius: var(--fcr_cornerradius_xxxxs);
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
height: 16px;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
line-height: 16px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.attendee__tag-group {
|
|
74
|
+
display: flex;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
justify-content: left;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.attendee__cohost-tag-bg {
|
|
80
|
+
/* zxq-TODO: 颜色未定义 */
|
|
81
|
+
/* background-color: var(--fcr_card_green); */
|
|
82
|
+
background: #83bc53;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.attendee__interpreter-tag-bg {
|
|
86
|
+
font-weight: 400;
|
|
87
|
+
background: rgba(0, 0, 0, 1);
|
|
88
|
+
padding-left: 0;
|
|
89
|
+
margin-left: 8px;
|
|
90
|
+
border-radius: 8px;
|
|
91
|
+
background: var(--fcr_mobile_ui_scene_color_popup_fill3);
|
|
92
|
+
}
|
|
93
|
+
.attendee__interpreter-tag-user {
|
|
94
|
+
padding-left: 4px;
|
|
95
|
+
padding-right: 4px;
|
|
96
|
+
font-size: 12px;
|
|
97
|
+
background: var(--fcr_ui_scene_ramp_purple6);
|
|
98
|
+
border-radius: var(--fcr_cornerradius_xxxs) 0px var(--fcr_cornerradius_m)
|
|
99
|
+
var(--fcr_cornerradius_xxxs);
|
|
100
|
+
}
|
|
101
|
+
.attendee__interpreter-tag-language {
|
|
102
|
+
padding: 0px 5px 0 5px;
|
|
103
|
+
color: var(--fcr_ui_scene_icontext7);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.attendee .fcr-button-posticon {
|
|
107
|
+
width: 24px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.fcr-participant__footer button:not(:last-child) {
|
|
111
|
+
flex: 1;
|
|
112
|
+
min-width: 30%;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
text-overflow: ellipsis;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.fcr-participant__footer button {
|
|
119
|
+
padding: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.fcr-participant__footer button:last-child {
|
|
123
|
+
width: fit-content;
|
|
124
|
+
padding: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.attendee__user-media,
|
|
128
|
+
.attendee__user-action {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
flex-direction: row;
|
|
132
|
+
gap: 8px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.attendee__user-action {
|
|
136
|
+
position: absolute;
|
|
137
|
+
right: 14px;
|
|
138
|
+
opacity: 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.attendee:hover .attendee__user-action {
|
|
142
|
+
/* background-color: var(--fcr_web_ui_scene_hover); */
|
|
143
|
+
opacity: 1;
|
|
144
|
+
}
|
|
145
|
+
.attendee__footer-more-actions .fcr-tooltip-inner {
|
|
146
|
+
max-width: 364px !important;
|
|
147
|
+
min-width: 302px !important;
|
|
148
|
+
width: auto !important;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.attendee__footer-more-actions .fcr-drop-menu-option {
|
|
152
|
+
width: auto !important;
|
|
153
|
+
}
|
|
154
|
+
.attendee__footer-more-actions .fcr-checkbox-label {
|
|
155
|
+
font-size: 13px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.attendee__more-actions .fcr-drop-menu-title,
|
|
159
|
+
.attendee__footer-more-actions .fcr-drop-menu-title {
|
|
160
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
161
|
+
font-size: 12px;
|
|
162
|
+
text-align: left;
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
text-overflow: ellipsis;
|
|
165
|
+
white-space: nowrap;
|
|
166
|
+
font-weight: 700;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.attendee__more-actions {
|
|
170
|
+
width: fit-content;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.attendee__more-actions .fcr-drop-menu-option-primary {
|
|
174
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.attendee__more-actions .fcr-drop-menu-option-primary:hover {
|
|
178
|
+
color: var(--fcr_web_ui_scene_mainicon2);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.attendee__more-actions .fcr-drop-menu-option-primary:hover ~ .attendee__user-action,
|
|
182
|
+
.attendee__user-action-hovered {
|
|
183
|
+
opacity: 1;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.attendee__danger-operate {
|
|
187
|
+
color: var(--fcr_web_ui_scene_mainicon3_red);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.attendee__more-actions button {
|
|
191
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
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.array.push.js");
|
|
7
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
8
|
+
require("core-js/modules/es.object.define-property.js");
|
|
9
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
|
+
require("core-js/modules/es.object.keys.js");
|
|
12
|
+
require("core-js/modules/es.object.to-string.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/web.dom-collections.for-each.js");
|
|
19
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
20
|
+
Object.defineProperty(exports, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
exports.FcrParticipant = void 0;
|
|
24
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
26
|
+
var _react = require("react");
|
|
27
|
+
var _participantsMore = require("../participants-more");
|
|
28
|
+
require("./index.css");
|
|
29
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
30
|
+
var _action = require("agora-ui-foundation/lib/components/button/action");
|
|
31
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
32
|
+
var _popover = require("agora-ui-foundation/lib/components/popover");
|
|
33
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
34
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
35
|
+
var _avatar = require("agora-ui-foundation/lib/components/avatar");
|
|
36
|
+
var _microphoneState = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/microphone-state");
|
|
37
|
+
var _cameraState = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/camera-state");
|
|
38
|
+
var _types = require("../../../../types");
|
|
39
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
40
|
+
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; }
|
|
41
|
+
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; }
|
|
42
|
+
var FcrParticipant = exports.FcrParticipant = function FcrParticipant(props) {
|
|
43
|
+
var user = props.user,
|
|
44
|
+
hasPinnedStream = props.hasPinnedStream,
|
|
45
|
+
_props$onParticipants = props.onParticipantsButtonClick,
|
|
46
|
+
onParticipantsButtonClick = _props$onParticipants === void 0 ? function () {} : _props$onParticipants,
|
|
47
|
+
_props$hideActions = props.hideActions,
|
|
48
|
+
hideActions = _props$hideActions === void 0 ? [] : _props$hideActions;
|
|
49
|
+
var userId = user.userId,
|
|
50
|
+
_user$userName = user.userName,
|
|
51
|
+
userName = _user$userName === void 0 ? '' : _user$userName,
|
|
52
|
+
hasAudio = user.hasAudio,
|
|
53
|
+
hasVideo = user.hasVideo,
|
|
54
|
+
isHost = user.isHost,
|
|
55
|
+
_user$isMe = user.isMe,
|
|
56
|
+
isMe = _user$isMe === void 0 ? false : _user$isMe,
|
|
57
|
+
_user$isScreenSharing = user.isScreenSharing,
|
|
58
|
+
isScreenSharing = _user$isScreenSharing === void 0 ? false : _user$isScreenSharing,
|
|
59
|
+
userType = user.userType,
|
|
60
|
+
videoDeviceType = user.videoDeviceType,
|
|
61
|
+
audioDeviceType = user.audioDeviceType;
|
|
62
|
+
var t = (0, _i18n.useI18n)();
|
|
63
|
+
var _useState = (0, _react.useState)(false),
|
|
64
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
65
|
+
isShowDropMenu = _useState2[0],
|
|
66
|
+
setIsShowDropMenu = _useState2[1];
|
|
67
|
+
var _useState3 = (0, _react.useState)(false),
|
|
68
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
69
|
+
disableHover = _useState4[0],
|
|
70
|
+
setDisableHover = _useState4[1];
|
|
71
|
+
(0, _react.useEffect)(function () {
|
|
72
|
+
setDisableHover(userType !== 'normal');
|
|
73
|
+
}, [userType]);
|
|
74
|
+
var userActions = function userActions() {
|
|
75
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
76
|
+
className: "attendee__user-action attendee__user-action-host ".concat(isShowDropMenu ? 'attendee__user-action-hovered' : ''),
|
|
77
|
+
children: [isMe && isHost ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.FcrActionButton, {
|
|
78
|
+
size: "small",
|
|
79
|
+
onClick: function onClick() {
|
|
80
|
+
onParticipantsButtonClick(hasAudio ? _types.ParticipantActionType.MUTE_AUDIO : _types.ParticipantActionType.UNMUTE_AUDIO, userId);
|
|
81
|
+
},
|
|
82
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
83
|
+
className: hasAudio ? 'attendee__danger-operate' : 'attendee__normal-operate',
|
|
84
|
+
children: hasAudio ? t('fmt_device_label_audio_mute') : isMe ? t('fmt_device_label_audio_unmute') : t('fmt_sip_button_unmute')
|
|
85
|
+
})
|
|
86
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
87
|
+
children: isMe ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.FcrActionButton, {
|
|
88
|
+
size: "small",
|
|
89
|
+
onClick: function onClick() {
|
|
90
|
+
return onParticipantsButtonClick(hasAudio ? _types.ParticipantActionType.MUTE_AUDIO : _types.ParticipantActionType.UNMUTE_AUDIO, userId);
|
|
91
|
+
},
|
|
92
|
+
children: hasAudio ? t('fmt_device_label_audio_mute') : t('fmt_device_label_audio_unmute')
|
|
93
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.FcrActionButton, {
|
|
94
|
+
size: "small",
|
|
95
|
+
onClick: function onClick() {
|
|
96
|
+
return onParticipantsButtonClick(_types.ParticipantActionType.PRIVATE_CHAT, userId);
|
|
97
|
+
},
|
|
98
|
+
children: t('fmt_chats_label_privatechat')
|
|
99
|
+
})
|
|
100
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
101
|
+
visible: isShowDropMenu,
|
|
102
|
+
overlayInnerStyle: {
|
|
103
|
+
border: 0,
|
|
104
|
+
boxShadow: 'var(--fcr_web_light_dropup_m)',
|
|
105
|
+
borderRadius: 'var(--fcr_cornerradius_l)'
|
|
106
|
+
},
|
|
107
|
+
overlayClassName: "attendee__more-actions",
|
|
108
|
+
mouseEnterDelay: 0,
|
|
109
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
110
|
+
onMouseEnter: function onMouseEnter() {
|
|
111
|
+
return setIsShowDropMenu(true);
|
|
112
|
+
},
|
|
113
|
+
onMouseLeave: function onMouseLeave() {
|
|
114
|
+
return setIsShowDropMenu(false);
|
|
115
|
+
},
|
|
116
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_participantsMore.FcrParticipantsMoreActions, {
|
|
117
|
+
hideActions: hideActions,
|
|
118
|
+
hasPinnedStream: hasPinnedStream,
|
|
119
|
+
onParticipantsButtonClick: onParticipantsButtonClick,
|
|
120
|
+
user: user
|
|
121
|
+
})
|
|
122
|
+
}),
|
|
123
|
+
placement: "bottomRight",
|
|
124
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.FcrActionButton, {
|
|
125
|
+
onClick: function onClick() {
|
|
126
|
+
return setIsShowDropMenu(true);
|
|
127
|
+
},
|
|
128
|
+
iconType: _type.FcrIconType.FCR_DROPDOWN,
|
|
129
|
+
children: t('fmt_participants_member_button_more')
|
|
130
|
+
})
|
|
131
|
+
})]
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
var userAvatar = function userAvatar() {
|
|
135
|
+
if (userType === 'meeting-system') {
|
|
136
|
+
return {
|
|
137
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
138
|
+
type: _type.FcrIconType.FCR_SIPDEVICE,
|
|
139
|
+
colors: {
|
|
140
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)',
|
|
141
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
142
|
+
}
|
|
143
|
+
}),
|
|
144
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_purple7)'
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
if (userType === 'phone') {
|
|
148
|
+
return {
|
|
149
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
150
|
+
type: _type.FcrIconType.FCR_PHONECALL3
|
|
151
|
+
}),
|
|
152
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_green6)'
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
icon: null,
|
|
157
|
+
backgroundColor: ''
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
161
|
+
className: (0, _classnames["default"])('attendee', {
|
|
162
|
+
'attendee-active': isShowDropMenu && !disableHover
|
|
163
|
+
}),
|
|
164
|
+
onMouseLeave: function onMouseLeave() {
|
|
165
|
+
return setIsShowDropMenu(false);
|
|
166
|
+
},
|
|
167
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
168
|
+
className: "attendee__user-info",
|
|
169
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, _objectSpread({
|
|
170
|
+
size: 24,
|
|
171
|
+
nickName: userName,
|
|
172
|
+
textSize: 12
|
|
173
|
+
}, userAvatar())), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
174
|
+
className: "attendee__user-info-identity",
|
|
175
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
176
|
+
className: "attendee__name",
|
|
177
|
+
children: [userName, isMe && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
178
|
+
className: "attendee__me-badge",
|
|
179
|
+
children: ["(", t('fmt_participant_label_Me'), ")"]
|
|
180
|
+
})]
|
|
181
|
+
}), isHost && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
182
|
+
className: "attendee__host-badge",
|
|
183
|
+
children: t('fmt_role_host')
|
|
184
|
+
})]
|
|
185
|
+
})]
|
|
186
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
187
|
+
className: "attendee__user-media",
|
|
188
|
+
children: [isScreenSharing && /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
189
|
+
type: _type.FcrIconType.FCR_SCREENSHARING_1,
|
|
190
|
+
size: 28,
|
|
191
|
+
colors: {
|
|
192
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
193
|
+
}
|
|
194
|
+
}), audioDeviceType !== 'none' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_microphoneState.MicrophoneState, {
|
|
195
|
+
isMicrophoneMuted: !hasAudio,
|
|
196
|
+
size: 28,
|
|
197
|
+
isPhoneMic: audioDeviceType === 'phone-mic'
|
|
198
|
+
}), videoDeviceType !== 'none' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
|
|
199
|
+
isCameraMuted: !hasVideo,
|
|
200
|
+
size: 28
|
|
201
|
+
})]
|
|
202
|
+
}), userActions()]
|
|
203
|
+
}, userId);
|
|
204
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* .fcr-drop-menu-option-with-under-line{
|
|
2
|
+
position: relative;
|
|
3
|
+
padding: 8px
|
|
4
|
+
}
|
|
5
|
+
.fcr-drop-menu-option-with-under-line::after {
|
|
6
|
+
content: "";
|
|
7
|
+
position: absolute;
|
|
8
|
+
left: 0;
|
|
9
|
+
right: -30px;
|
|
10
|
+
bottom: -10px;
|
|
11
|
+
border-top: 1px solid var(--fcr_ui_scene_line1);
|
|
12
|
+
margin: 8px 10px;
|
|
13
|
+
} */
|
|
14
|
+
.fcr-drop-menu-option-with-under-line:last-child:after {
|
|
15
|
+
border: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.fcr-participants-more-dropmenu {
|
|
19
|
+
max-width: 300px;
|
|
20
|
+
padding: 15px 10px 15px 10px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.fcr-participants-more-dropmenu .fcr-drop-menu-title {
|
|
24
|
+
height: 32px;
|
|
25
|
+
line-height: 32px;
|
|
26
|
+
padding-left: 8px;
|
|
27
|
+
text-align: left;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.fcr-participants-more-dropmenu .fcr-drop-menu-options {
|
|
31
|
+
gap: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.fcr-participants-more-dropmenu .fcr-drop-menu-option {
|
|
35
|
+
min-height: 32px;
|
|
36
|
+
height: auto;
|
|
37
|
+
padding: 5px 10px 5px 5px;
|
|
38
|
+
align-items: start;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.fcr-participants-more-dropmenu .fcr-drop-menu-group {
|
|
42
|
+
font-size: 12px;
|
|
43
|
+
line-height: 32px;
|
|
44
|
+
padding: 8px 0 0 5px;
|
|
45
|
+
color: var(--fcr_ui_scene_icontext2);
|
|
46
|
+
margin: 8px -10px 0 5px;
|
|
47
|
+
border-top: 1px solid var(--fcr_ui_scene_line1);
|
|
48
|
+
text-align: left;
|
|
49
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.FcrParticipantsMoreActions = void 0;
|
|
8
|
+
require("core-js/modules/es.array.filter.js");
|
|
9
|
+
require("core-js/modules/es.array.includes.js");
|
|
10
|
+
require("core-js/modules/es.array.is-array.js");
|
|
11
|
+
require("core-js/modules/es.array.some.js");
|
|
12
|
+
require("core-js/modules/es.object.to-string.js");
|
|
13
|
+
require("core-js/modules/es.string.includes.js");
|
|
14
|
+
require("core-js/modules/esnext.array.group.js");
|
|
15
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
16
|
+
require("core-js/modules/esnext.async-iterator.some.js");
|
|
17
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
18
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
19
|
+
require("core-js/modules/esnext.iterator.some.js");
|
|
20
|
+
require("./index.css");
|
|
21
|
+
var _i18next = require("i18next");
|
|
22
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
23
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
24
|
+
var _cameraState = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/camera-state");
|
|
25
|
+
var _dropMenu = require("agora-ui-foundation/lib/components/drop-menu");
|
|
26
|
+
var _types = require("../../../../types");
|
|
27
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
28
|
+
// 提取常量
|
|
29
|
+
var ICON_SIZE = 20;
|
|
30
|
+
var ICON_PRIMARY_COLOR = 'var(--fcr_ui_scene_icontext5)';
|
|
31
|
+
var RAMP_RED_COLOR = 'var(--fcr_ui_scene_ramp_red6)';
|
|
32
|
+
|
|
33
|
+
// 封装图标创建函数
|
|
34
|
+
var createIcon = function createIcon(type) {
|
|
35
|
+
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ICON_SIZE;
|
|
36
|
+
var colors = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
37
|
+
iconPrimary: ICON_PRIMARY_COLOR
|
|
38
|
+
};
|
|
39
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
40
|
+
type: type,
|
|
41
|
+
size: size,
|
|
42
|
+
colors: colors
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// 封装按钮点击处理函数
|
|
47
|
+
var handleButtonClick = function handleButtonClick(actionType, userId, onParticipantsButtonClick) {
|
|
48
|
+
return function () {
|
|
49
|
+
onParticipantsButtonClick(actionType, userId);
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
var FcrParticipantsMoreActions = exports.FcrParticipantsMoreActions = function FcrParticipantsMoreActions(props) {
|
|
53
|
+
var onParticipantsButtonClick = props.onParticipantsButtonClick,
|
|
54
|
+
hasPinnedStream = props.hasPinnedStream,
|
|
55
|
+
hideActions = props.hideActions,
|
|
56
|
+
user = props.user;
|
|
57
|
+
var isMe = user.isMe,
|
|
58
|
+
userId = user.userId,
|
|
59
|
+
hasVideo = user.hasVideo,
|
|
60
|
+
userName = user.userName,
|
|
61
|
+
userRole = user.userRole,
|
|
62
|
+
isPin = user.isPin,
|
|
63
|
+
userType = user.userType,
|
|
64
|
+
allowedOperations = user.allowedOperations;
|
|
65
|
+
var cameraStateType = !hasVideo ? 'primary' : 'danger';
|
|
66
|
+
|
|
67
|
+
// 定义所有操作菜单
|
|
68
|
+
var allOperationMenu = [{
|
|
69
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
|
|
70
|
+
ignoreColor: true,
|
|
71
|
+
isCameraMuted: true,
|
|
72
|
+
renderMode: "forward-state"
|
|
73
|
+
}),
|
|
74
|
+
title: (0, _i18next.t)('fmt_device_label_video_start'),
|
|
75
|
+
key: 'start_video',
|
|
76
|
+
type: cameraStateType,
|
|
77
|
+
canOperation: !hasVideo && userType !== 'phone',
|
|
78
|
+
onButtonClick: handleButtonClick(_types.ParticipantActionType.UNMUTE_VIDEO, userId, onParticipantsButtonClick)
|
|
79
|
+
}, {
|
|
80
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
|
|
81
|
+
ignoreColor: true,
|
|
82
|
+
isCameraMuted: true,
|
|
83
|
+
renderMode: "forward-state"
|
|
84
|
+
}),
|
|
85
|
+
title: (0, _i18next.t)('fmt_sip_button_opencamera'),
|
|
86
|
+
key: 'request_start_video',
|
|
87
|
+
type: 'primary',
|
|
88
|
+
canOperation: !hasVideo && !isMe && userType !== 'phone',
|
|
89
|
+
onButtonClick: handleButtonClick(_types.ParticipantActionType.UNMUTE_VIDEO, userId, onParticipantsButtonClick)
|
|
90
|
+
}, {
|
|
91
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
|
|
92
|
+
isCameraMuted: false,
|
|
93
|
+
renderMode: "forward-state"
|
|
94
|
+
}),
|
|
95
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
96
|
+
children: (0, _i18next.t)('fmt_device_label_video_stop')
|
|
97
|
+
}),
|
|
98
|
+
key: 'stop_video',
|
|
99
|
+
type: cameraStateType,
|
|
100
|
+
canOperation: hasVideo && userType !== 'phone',
|
|
101
|
+
onButtonClick: handleButtonClick(_types.ParticipantActionType.MUTE_VIDEO, userId, onParticipantsButtonClick)
|
|
102
|
+
}, {
|
|
103
|
+
icon: createIcon(_type.FcrIconType.FCR_MOBILE_CHAT3),
|
|
104
|
+
title: (0, _i18next.t)('fmt_attendies_label_privatechat'),
|
|
105
|
+
key: 'private_chat',
|
|
106
|
+
type: 'primary',
|
|
107
|
+
canOperation: !isMe && userType !== 'phone',
|
|
108
|
+
onButtonClick: handleButtonClick(_types.ParticipantActionType.PRIVATE_CHAT, userId, onParticipantsButtonClick)
|
|
109
|
+
}, {
|
|
110
|
+
type: 'group',
|
|
111
|
+
title: (0, _i18next.t)('fmt_additional_label_meet_view_own'),
|
|
112
|
+
key: 'own_view'
|
|
113
|
+
}, {
|
|
114
|
+
icon: isPin ? createIcon(_type.FcrIconType.FCR_UNPIN) : createIcon(_type.FcrIconType.FCR_PINPAGE),
|
|
115
|
+
title: isPin ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
116
|
+
children: (0, _i18next.t)('fmt_attendies_options_cancelfixed')
|
|
117
|
+
}) : hasPinnedStream ? (0, _i18next.t)('fmt_attendies_options_replacefixed') : (0, _i18next.t)('fmt_attendies_options_fixfirst'),
|
|
118
|
+
key: 'pin',
|
|
119
|
+
type: isPin ? 'danger' : 'primary',
|
|
120
|
+
canOperation: userType === 'normal' || userType === 'meeting-system' && hasVideo,
|
|
121
|
+
onButtonClick: handleButtonClick(isPin ? _types.ParticipantActionType.REMOVE_PIN : _types.ParticipantActionType.ADD_PIN, userId, onParticipantsButtonClick),
|
|
122
|
+
group: 'own_view'
|
|
123
|
+
}, {
|
|
124
|
+
type: 'group',
|
|
125
|
+
title: (0, _i18next.t)('fmt_additional_label_attendee_permission'),
|
|
126
|
+
key: 'permission'
|
|
127
|
+
}, {
|
|
128
|
+
title: (0, _i18next.t)('fmt_attendies_options_sethost'),
|
|
129
|
+
icon: createIcon(_type.FcrIconType.FCR_HOST2),
|
|
130
|
+
key: 'set_as_host',
|
|
131
|
+
canOperation: userRole !== _types.FcrUserRole.HOST && userType === 'normal',
|
|
132
|
+
onButtonClick: handleButtonClick(_types.ParticipantActionType.SET_AS_HOST, userId, onParticipantsButtonClick),
|
|
133
|
+
group: 'permission'
|
|
134
|
+
}, {
|
|
135
|
+
title: (0, _i18next.t)('fmt_attendies_options_setcohost'),
|
|
136
|
+
icon: createIcon(_type.FcrIconType.FCR_COHOST2),
|
|
137
|
+
key: 'set_as_co_host',
|
|
138
|
+
type: 'primary',
|
|
139
|
+
canOperation: userRole !== _types.FcrUserRole.COHOST && userType === 'normal',
|
|
140
|
+
onButtonClick: handleButtonClick(_types.ParticipantActionType.SET_AS_CO_HOST, userId, onParticipantsButtonClick),
|
|
141
|
+
group: 'permission'
|
|
142
|
+
}, {
|
|
143
|
+
title: (0, _i18next.t)('fmt_attendies_options_revokecohost'),
|
|
144
|
+
icon: createIcon(_type.FcrIconType.FCR_PINPAGE),
|
|
145
|
+
key: 'revoke_co_host',
|
|
146
|
+
type: 'danger',
|
|
147
|
+
canOperation: userRole === _types.FcrUserRole.COHOST && userType === 'normal',
|
|
148
|
+
onButtonClick: handleButtonClick(_types.ParticipantActionType.SET_AS_ATTENDEE, userId, onParticipantsButtonClick),
|
|
149
|
+
group: 'permission'
|
|
150
|
+
}, {
|
|
151
|
+
title: (0, _i18next.t)('fmt_additional_option_rename_in_meeting'),
|
|
152
|
+
icon: createIcon(_type.FcrIconType.FCR_RENAME2),
|
|
153
|
+
key: 'change_name',
|
|
154
|
+
type: 'primary',
|
|
155
|
+
canOperation: true,
|
|
156
|
+
onButtonClick: handleButtonClick(_types.ParticipantActionType.RENAME_IN_MEETING, userId, onParticipantsButtonClick),
|
|
157
|
+
group: 'permission'
|
|
158
|
+
}, {
|
|
159
|
+
title: (0, _i18next.t)('fmt_modules_tips_mergevideo'),
|
|
160
|
+
icon: createIcon(_type.FcrIconType.FCR_MOBILE_CAMERA2),
|
|
161
|
+
key: 'merge_video',
|
|
162
|
+
type: 'primary',
|
|
163
|
+
canOperation: userType === 'phone',
|
|
164
|
+
onButtonClick: handleButtonClick(_types.ParticipantActionType.MERGE_VIDEO, userId, onParticipantsButtonClick),
|
|
165
|
+
group: 'permission'
|
|
166
|
+
}, {
|
|
167
|
+
type: 'group',
|
|
168
|
+
title: (0, _i18next.t)('fmt_screenshare_controlbar_button_security'),
|
|
169
|
+
key: 'security'
|
|
170
|
+
}, {
|
|
171
|
+
title: (0, _i18next.t)('fmt_attendies_options_putinwaitingroom'),
|
|
172
|
+
icon: createIcon(_type.FcrIconType.FCR_PUT_WAITING_ROOM, ICON_SIZE, {
|
|
173
|
+
iconPrimary: RAMP_RED_COLOR
|
|
174
|
+
}),
|
|
175
|
+
key: 'put_into_waiting_room',
|
|
176
|
+
type: 'danger',
|
|
177
|
+
canOperation: true,
|
|
178
|
+
onButtonClick: handleButtonClick(_types.ParticipantActionType.PUT_IN_WAITING_ROOM, userId, onParticipantsButtonClick),
|
|
179
|
+
group: 'security'
|
|
180
|
+
}, {
|
|
181
|
+
title: (0, _i18next.t)('fmt_attendies_button_remove'),
|
|
182
|
+
icon: createIcon(_type.FcrIconType.FCR_SETTING_NONE, ICON_SIZE, {
|
|
183
|
+
iconPrimary: RAMP_RED_COLOR
|
|
184
|
+
}),
|
|
185
|
+
key: 'kick_out',
|
|
186
|
+
type: 'danger',
|
|
187
|
+
canOperation: true,
|
|
188
|
+
onButtonClick: handleButtonClick(_types.ParticipantActionType.KICK_OUT, userId, onParticipantsButtonClick),
|
|
189
|
+
group: 'security'
|
|
190
|
+
}];
|
|
191
|
+
|
|
192
|
+
// 过滤允许的操作
|
|
193
|
+
var filterAllowedOperations = function filterAllowedOperations(menuItems) {
|
|
194
|
+
if (Array.isArray(allowedOperations) && allowedOperations.length > 0) {
|
|
195
|
+
return menuItems.filter(function (item) {
|
|
196
|
+
return allowedOperations.includes(item.key) && item.canOperation || item.type === 'group';
|
|
197
|
+
}).filter(function (item) {
|
|
198
|
+
if (hideActions && hideActions.length) {
|
|
199
|
+
return !hideActions.includes(item.key);
|
|
200
|
+
}
|
|
201
|
+
return true;
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
return menuItems;
|
|
205
|
+
};
|
|
206
|
+
var currentActions = filterAllowedOperations(allOperationMenu);
|
|
207
|
+
|
|
208
|
+
// 过滤有分组的项
|
|
209
|
+
var hasGroupItem = currentActions.filter(function (item) {
|
|
210
|
+
return item.type === 'group' && currentActions.some(function (action) {
|
|
211
|
+
return action.group === item.key;
|
|
212
|
+
}) || item.type !== 'group';
|
|
213
|
+
});
|
|
214
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dropMenu.FcrDropMenu, {
|
|
215
|
+
className: "fcr-participants-more-dropmenu",
|
|
216
|
+
title: userName,
|
|
217
|
+
options: hasGroupItem
|
|
218
|
+
});
|
|
219
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ListRowProps } from 'react-virtualized';
|
|
2
|
+
import { CellMeasurerCache } from 'react-virtualized/dist/es/CellMeasurer';
|
|
3
|
+
import { ParticipantActionType, User } from '../../../../types';
|
|
4
|
+
export declare const cache: CellMeasurerCache;
|
|
5
|
+
export declare const userRowRenderer: (userList: User[], userRenderer: ((user: User) => React.ReactNode) | undefined, hasPinnedStream: boolean, toggleParticipantAction: ((action: ParticipantActionType, userId: string) => void) | undefined) => (renderProps: ListRowProps) => import("react/jsx-runtime").JSX.Element;
|