fcr-ui-scene 3.4.3 → 3.4.4
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/ scenes/base.d.ts +10 -0
- package/lib/ scenes/base.js +75 -0
- package/lib/ scenes/main-scene.d.ts +43 -0
- package/lib/ scenes/main-scene.js +368 -0
- package/lib/ scenes/waiting-scene.d.ts +31 -0
- package/lib/ scenes/waiting-scene.js +119 -0
- package/lib/base.js +3 -0
- package/lib/common/device-store.d.ts +2 -3
- package/lib/common/device-store.js +194 -174
- package/lib/common/device-stream-store.d.ts +7 -27
- package/lib/common/device-stream-store.js +176 -190
- package/lib/common/event-store.d.ts +13 -4
- package/lib/common/event-store.js +18 -7
- package/lib/common/remote-renderer.d.ts +15 -0
- package/lib/common/remote-renderer.js +138 -0
- package/lib/common/room-store.js +6 -6
- package/lib/common/security-store.d.ts +9 -19
- package/lib/common/security-store.js +39 -27
- package/lib/common/type.d.ts +8 -0
- package/lib/common/type.js +6 -0
- package/lib/electron/app.js +2 -0
- package/lib/electron/bootstrap-dev.js +2 -0
- package/lib/electron/bootstrap-sdk.js +2 -0
- package/lib/electron/bootstrap.d.ts +1 -0
- package/lib/electron/bootstrap.js +56 -0
- package/lib/electron/dev.d.ts +1 -0
- package/lib/electron/dev.js +51 -0
- package/lib/electron/injections.js +5 -0
- package/lib/electron/tools.js +4 -0
- package/lib/electron/window.js +2 -0
- package/lib/error-fallback.css +62 -0
- package/lib/error-fallback.d.ts +2 -0
- package/lib/error-fallback.js +19 -0
- package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +1 -45
- package/lib/fragments/control-bar/control-bar-store.js +83 -465
- package/lib/fragments/control-bar/device/index.js +3 -5
- package/lib/fragments/control-bar/index.css +10 -15
- package/lib/fragments/control-bar/index.js +0 -24
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +12 -31
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +16 -117
- package/lib/fragments/control-bar/more-actions/index.css +0 -53
- package/lib/fragments/control-bar/more-actions/index.js +38 -73
- package/lib/fragments/control-bar/security-content/index.css +0 -75
- package/lib/fragments/control-bar/security-content/index.js +19 -105
- package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
- package/lib/fragments/control-bar/view.js +8 -23
- package/lib/fragments/live-streaming/store.d.ts +1 -1
- package/lib/fragments/live-streaming/store.js +1 -1
- package/lib/fragments/live-streaming/view.js +2 -4
- package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
- package/lib/fragments/share-screen-selection/selection-store.js +1 -1
- package/lib/fragments/share-screen-selection/view.js +20 -20
- package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
- package/lib/fragments/toolbar/components/pen-picker.js +1 -1
- package/lib/fragments/toolbar/components/shape-picker.js +1 -1
- package/lib/fragments/toolbar/components/wrapper.js +1 -1
- package/lib/fragments/toolbar/hooks.js +1 -1
- package/lib/fragments/toolbar/store.d.ts +1 -1
- package/lib/modules/{interpreter → Interpreter}/constant.d.ts +4 -0
- package/lib/modules/{interpreter → Interpreter}/constant.js +45 -3
- package/lib/modules/Interpreter/context.d.ts +2 -0
- package/lib/modules/Interpreter/context.js +9 -0
- package/lib/modules/{interpreter → Interpreter}/interpreter-list/index.js +2 -2
- package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/index.js +5 -2
- package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +2 -0
- package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-user/index.js +4 -0
- package/lib/modules/{interpreter → Interpreter}/store.js +5 -0
- package/lib/modules/{interpreter → Interpreter}/utils.js +1 -0
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +11 -11
- package/lib/modules/action-bar/apps/useInterpreter.js +4 -2
- package/lib/modules/action-bar/chat/index.js +8 -8
- package/lib/modules/action-bar/components/apps/app-item/index.js +2 -0
- package/lib/modules/action-bar/components/apps/appitems.js +5 -2
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +1 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +7 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.js +43 -0
- package/lib/modules/action-bar/components/collapse/index.js +4 -0
- package/lib/modules/action-bar/components/device/index.css +162 -0
- package/lib/modules/action-bar/components/device/index.d.ts +8 -0
- package/lib/modules/action-bar/components/device/index.js +611 -0
- package/lib/modules/action-bar/components/item/index.js +2 -0
- package/lib/modules/action-bar/components/item.d.ts +27 -0
- package/lib/modules/action-bar/components/item.js +164 -0
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +8 -1
- package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +2 -0
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +16 -1
- package/lib/modules/action-bar/components/more/poppover-content.js +4 -0
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +1 -2
- package/lib/modules/action-bar/components/notification-bar/index.js +2 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/index.d.ts +3 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/index.js +215 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.js +1 -2
- package/lib/modules/action-bar/components/trigger-output-language-room/constant.d.ts +10 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/constant.js +8 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.css +22 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.d.ts +3 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.js +75 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/index.d.ts +8 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/index.js +98 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.d.ts +5 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.js +66 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.d.ts +5 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.js +37 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
- package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +3 -0
- package/lib/modules/action-bar/device/index.css +2 -7
- package/lib/modules/action-bar/device/index.js +25 -25
- package/lib/modules/action-bar/leave/assign-host.d.ts +0 -3
- package/lib/modules/action-bar/leave/assign-host.js +4 -2
- package/lib/modules/action-bar/leave/index.css +0 -10
- package/lib/modules/action-bar/leave/index.js +34 -84
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +1 -13
- package/lib/modules/action-bar/leave/leave-meeting.js +19 -37
- package/lib/modules/action-bar/live-streaming/index.js +3 -3
- package/lib/modules/action-bar/more/index.js +5 -5
- package/lib/modules/action-bar/more/poppover-content.js +16 -37
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +58 -0
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +8 -0
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +100 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +56 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +5 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +33 -0
- package/lib/modules/action-bar/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/notification-bar/index.css +74 -0
- package/lib/modules/action-bar/notification-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/notification-bar/index.js +99 -0
- package/lib/modules/action-bar/participants/index.css +0 -12
- package/lib/modules/action-bar/participants/index.js +16 -23
- package/lib/modules/action-bar/record/index.js +4 -4
- package/lib/modules/action-bar/screen-share/index.js +5 -9
- package/lib/modules/action-bar/screen-share/submenu.js +26 -20
- package/lib/modules/action-bar/security/drop-menu.js +22 -137
- package/lib/modules/action-bar/security/index.js +5 -11
- package/lib/modules/action-bar/settings/index.js +4 -4
- package/lib/modules/action-bar/smaller.js +2 -2
- package/lib/modules/action-bar/store.js +6 -0
- package/lib/modules/action-bar/switch-output-language-room/index.js +2 -8
- package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +15 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.js +220 -0
- package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +10 -0
- package/lib/modules/action-bar/trigger-output-language-room/constant.js +8 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +22 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +14 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +75 -0
- package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +4 -0
- package/lib/modules/action-bar/trigger-output-language-room/index.js +98 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +5 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +66 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +5 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +36 -0
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
- package/lib/modules/audio-stream/index.js +3 -0
- package/lib/modules/chat/chat-bar/index.css +5 -0
- package/lib/modules/chat/chat-bar/index.js +16 -14
- package/lib/modules/chat/chat-room-store.js +4 -0
- package/lib/modules/chat/chat-select/index.css +6 -3
- package/lib/modules/chat/chat-select/index.js +15 -1
- package/lib/modules/chat/chat.js +7 -6
- package/lib/modules/chat/components/chat-bar/index.js +2 -0
- package/lib/modules/chat/components/chat-select/index.js +3 -0
- 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.js +2 -0
- 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 +279 -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/message-list.js +4 -1
- package/lib/modules/chat/store.js +1 -0
- package/lib/modules/chat/view.js +4 -0
- package/lib/modules/components/device-control/components/audio-menu/index.js +1 -2
- package/lib/modules/components/device-control/components/video-menu/index.js +1 -2
- package/lib/modules/components/device-control/store.js +1 -0
- package/lib/modules/components/dialog-container/component/body.d.ts +7 -0
- package/lib/modules/components/dialog-container/component/body.js +46 -0
- package/lib/modules/components/dialog-container/index.css +78 -0
- package/lib/modules/components/dialog-container/index.d.ts +11 -0
- package/lib/modules/components/dialog-container/index.js +110 -0
- package/lib/modules/components/leave-meeting/store.js +2 -0
- 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 +159 -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 +32 -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 +306 -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.js +4 -0
- package/lib/modules/components/member-window/types.d.ts +78 -0
- package/lib/modules/components/member-window/types.js +6 -0
- package/lib/modules/components/security-menu/index.js +4 -1
- package/lib/modules/components/tab-frame/index.js +4 -0
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +1 -2
- package/lib/modules/connection-gateway/components/phone/index.js +1 -2
- package/lib/modules/connection-gateway/store.js +4 -0
- package/lib/modules/control-bar/components/more-actions/index.js +2 -0
- package/lib/modules/control-bar/index.js +2 -0
- package/lib/modules/control-bar/store.js +4 -0
- package/lib/modules/control-bar/view.js +2 -0
- package/lib/modules/device-pretest/settings/beauty.js +1 -2
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -2
- package/lib/modules/device-pretest/store.js +2 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.css +36 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +3 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.js +47 -0
- package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +68 -38
- package/lib/modules/dialog/components/connection-gateway/index.css +2 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +2 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +3 -6
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +4 -14
- 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/index.js +2 -0
- package/lib/modules/dialog/components/widget/electron.d.ts +5 -0
- package/lib/modules/dialog/components/widget/electron.js +41 -0
- package/lib/modules/dialog/components/widget/index.d.ts +6 -0
- package/lib/modules/dialog/components/widget/index.js +41 -0
- package/lib/modules/dialog/hooks/useElectron.js +2 -0
- package/lib/modules/dialog/index.js +2 -0
- package/lib/modules/dialog/store.js +3 -0
- package/lib/modules/dialog/type.d.ts +84 -0
- package/lib/modules/dialog/type.js +6 -0
- package/lib/modules/dialog/view.js +1 -2
- package/lib/modules/event-confirm/store.js +3 -0
- package/lib/modules/event-confirm/view.js +5 -2
- package/lib/modules/event-toast/store.js +2 -0
- package/lib/modules/event-toast/view.js +1 -2
- package/lib/modules/invite/enums.js +0 -1
- package/lib/modules/invite/store.js +1 -1
- package/lib/modules/invite/voip-invite.js +3 -3
- package/lib/modules/layout/components/Carousel.js +1 -2
- package/lib/modules/layout/components/Gallery.js +2 -2
- package/lib/modules/layout/components/Layout.js +7 -4
- package/lib/modules/layout/components/index.js +1 -0
- package/lib/modules/layout/member-window/index.css +22 -9
- package/lib/modules/layout/member-window/index.d.ts +1 -1
- package/lib/modules/layout/member-window/index.js +27 -26
- package/lib/modules/layout/store.js +3 -0
- package/lib/modules/layout/type.js +0 -2
- package/lib/modules/layout/video-window-datasource.js +4 -0
- package/lib/modules/live-streaming/store.js +1 -0
- package/lib/modules/notification/context.d.ts +2 -0
- package/lib/modules/notification/context.js +9 -0
- package/lib/modules/notification/interpreter-status/index.js +1 -2
- package/lib/modules/offscreen-pulling/index.js +1 -0
- package/lib/modules/participant/attendee/index.css +0 -51
- package/lib/modules/participant/attendee/index.d.ts +8 -5
- package/lib/modules/participant/attendee/index.js +64 -15
- package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
- package/lib/modules/participant/attendee/participants-more-action.js +278 -0
- package/lib/modules/participant/components/attendee/components/interpreter-tag/index.d.ts +3 -0
- package/lib/modules/participant/components/attendee/components/interpreter-tag/index.js +48 -0
- package/lib/modules/participant/components/attendee/index.js +3 -0
- package/lib/modules/participant/components/confirm-input/index.d.ts +6 -0
- package/lib/modules/participant/components/confirm-input/index.js +49 -0
- package/lib/modules/participant/components/drop-menu/index.js +3 -0
- package/lib/modules/participant/components/drop-menu/util.d.ts +5 -0
- package/lib/modules/participant/components/drop-menu/util.js +28 -0
- 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 +47 -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 +1 -0
- package/lib/modules/participant/components/participants/render-tab/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/render-tab/index.js +49 -0
- package/lib/modules/participant/components/participants/render-user/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/render-user/index.js +21 -0
- 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/components/user-action/audio-button/index.d.ts +7 -0
- package/lib/modules/participant/components/user-action/audio-button/index.js +31 -0
- package/lib/modules/participant/components/user-action/index.js +2 -0
- package/lib/modules/participant/components/user-action/move-actions-popover/index.d.ts +12 -0
- package/lib/modules/participant/components/user-action/move-actions-popover/index.js +82 -0
- package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.d.ts +4 -0
- package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.js +26 -0
- package/lib/modules/participant/index.js +2 -0
- package/lib/modules/participant/member-list-data-source.js +3 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +0 -37
- package/lib/modules/participant/store.js +5 -0
- package/lib/modules/pc-audio-connect/store.js +1 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +1 -2
- package/lib/modules/phone-audio-connect/store.js +3 -0
- package/lib/modules/phone-audio-connect/view.js +1 -2
- package/lib/modules/setting/audio-settings/audio-settings.js +1 -1
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -2
- package/lib/modules/setting/state/index.js +4 -0
- package/lib/modules/setting/store.js +8 -4
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/share-screen/components/selection/index.js +1 -1
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +83 -97
- package/lib/modules/share-screen/store.js +4 -0
- package/lib/modules/sound-effect/index.js +1 -0
- package/lib/modules/state-bar/layout-config.js +1 -2
- package/lib/modules/state-bar/live-streaming-state.js +1 -0
- package/lib/modules/state-bar/store.js +1 -0
- 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 +130 -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/members/index.js +1 -2
- package/lib/modules/video-window/store.js +4 -0
- package/lib/modules/video-window/topControl/index.js +2 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +2 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +4 -1
- package/lib/modules/whiteboard/index.js +4 -0
- 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 +221 -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 +155 -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 +36 -0
- package/lib/providers/device-privilege-provider.js +2 -0
- package/lib/providers/device-provider.js +5 -0
- package/lib/providers/device-stream-provider.js +1 -0
- package/lib/providers/dialog-provider.js +2 -0
- package/lib/providers/event-provider.js +2 -0
- package/lib/providers/interpreter-provider.js +4 -0
- package/lib/providers/message-provider.js +2 -0
- package/lib/providers/phone-audio-provider.js +3 -0
- package/lib/providers/privilege-provider.js +4 -0
- package/lib/providers/renderer-provider.js +1 -0
- package/lib/providers/room-provider.js +3 -0
- package/lib/providers/screen-share-provider.js +1 -0
- package/lib/providers/widget-provider.d.ts +44 -0
- package/lib/providers/widget-provider.js +167 -0
- package/lib/scenes/base.d.ts +10 -0
- package/lib/scenes/base.js +75 -0
- package/lib/scenes/main-scene.js +2 -0
- package/lib/schema.d.ts +114 -0
- package/lib/schema.js +77 -0
- package/lib/shared-data-source/chat-data.js +2 -0
- package/lib/shared-data-source/interpreter.js +2 -0
- package/lib/shared-data-source/layout-data.js +4 -1
- package/lib/shared-data-source/member-data.d.ts +126 -0
- package/lib/shared-data-source/member-data.js +465 -0
- package/lib/shared-data-source/setting.js +2 -0
- package/lib/shared-data-source/video-window.js +4 -0
- package/lib/shared-data-source/waiting-room.js +1 -0
- package/lib/type.js +0 -14
- package/lib/ui-node.d.ts +25 -0
- package/lib/ui-node.js +156 -0
- package/lib/ui-scene.js +2 -0
- package/lib/utilities/constant.js +0 -7
- package/lib/utilities/logger.d.ts +8 -0
- package/lib/utilities/logger.js +42 -0
- package/lib/utilities/meeting-detail.js +26 -9
- package/lib/utilities/privilege.js +2 -0
- package/lib/utilities/renderer-event.js +2 -0
- package/lib/utilities/renderer.js +1 -0
- package/lib/utilities/setting-config-storage.js +2 -0
- package/lib/utilities/tools.js +3 -0
- package/lib/utilities/validate-params.d.ts +2 -0
- package/lib/utilities/validate-params.js +16 -0
- package/lib/widget-sdk.d.ts +2 -0
- package/lib/widget-sdk.js +13 -0
- package/package.json +5 -10
- /package/lib/modules/{interpreter → Interpreter}/action/add-btn/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/add-btn/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/add-btn/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/delete-btn/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/delete-btn/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/delete-btn/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/edit-btn/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/edit-btn/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/edit-btn/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/switch-btn/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/switch-btn/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/action/switch-btn/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/add-button/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/add-button/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/add-button/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/config.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/config.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/dialog-content/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/dialog-content/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/dialog-content/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/components/interpreter-btn/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/components/interpreter-btn/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/components/set-btn/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/components/set-btn/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/components/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/components/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/footer/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-user/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-user/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/interpreter-list/interpreter-item/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/loading-wrapper/index.css +0 -0
- /package/lib/modules/{interpreter → Interpreter}/loading-wrapper/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/loading-wrapper/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/store.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/type.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/type.js +0 -0
- /package/lib/modules/{interpreter → Interpreter}/utils.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/view.d.ts +0 -0
- /package/lib/modules/{interpreter → Interpreter}/view.js +0 -0
- /package/lib/modules/action-bar/{interpreter → Interpreter}/index.d.ts +0 -0
- /package/lib/modules/action-bar/{interpreter → Interpreter}/index.js +0 -0
- /package/lib/modules/dialog/components/{interpreter → Interpreter}/electron.d.ts +0 -0
- /package/lib/modules/dialog/components/{interpreter → Interpreter}/electron.js +0 -0
- /package/lib/modules/dialog/components/{interpreter → Interpreter}/index.css +0 -0
- /package/lib/modules/dialog/components/{interpreter → Interpreter}/index.d.ts +0 -0
- /package/lib/modules/dialog/components/{interpreter → Interpreter}/index.js +0 -0
|
@@ -10,13 +10,13 @@ require("core-js/modules/es.array.concat.js");
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _mobxReact = require("mobx-react");
|
|
12
12
|
var _react = require("react");
|
|
13
|
-
var _type = require("
|
|
13
|
+
var _type = require("agora-edu-core/lib/type");
|
|
14
14
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
15
15
|
var _type2 = require("agora-ui-foundation/lib/components/icon/type");
|
|
16
16
|
var _popover = require("agora-ui-foundation/lib/components/popover");
|
|
17
17
|
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
18
18
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
19
|
-
var
|
|
19
|
+
var _context = require("../context");
|
|
20
20
|
var _item = require("../item");
|
|
21
21
|
require("./index.css");
|
|
22
22
|
var _stopRecordDialog = require("./stop-record-dialog");
|
|
@@ -25,7 +25,7 @@ var Record = exports.Record = (0, _mobxReact.observer)(function (_ref) {
|
|
|
25
25
|
var id = _ref.id,
|
|
26
26
|
order = _ref.order;
|
|
27
27
|
var t = (0, _i18n.useI18n)();
|
|
28
|
-
var _useContext = (0, _react.useContext)(
|
|
28
|
+
var _useContext = (0, _react.useContext)(_context.ActionBarContext),
|
|
29
29
|
hasStartCloudRecordingPermission = _useContext.hasStartCloudRecordingPermission,
|
|
30
30
|
state = _useContext.cloudRecordingState,
|
|
31
31
|
pauseCloudRecording = _useContext.pauseCloudRecording,
|
|
@@ -121,7 +121,7 @@ var Record = exports.Record = (0, _mobxReact.observer)(function (_ref) {
|
|
|
121
121
|
});
|
|
122
122
|
var RecordPopoverContent = (0, _mobxReact.observer)(function (_ref2) {
|
|
123
123
|
var _onClick = _ref2.onClick;
|
|
124
|
-
var _useContext2 = (0, _react.useContext)(
|
|
124
|
+
var _useContext2 = (0, _react.useContext)(_context.ActionBarContext),
|
|
125
125
|
hasStartCloudRecordingPermission = _useContext2.hasStartCloudRecordingPermission,
|
|
126
126
|
state = _useContext2.cloudRecordingState,
|
|
127
127
|
startCloudRecording = _useContext2.startCloudRecording,
|
|
@@ -14,9 +14,9 @@ var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
|
14
14
|
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
15
15
|
var _item = require("../item");
|
|
16
16
|
var _react = require("react");
|
|
17
|
-
var
|
|
17
|
+
var _context = require("../context");
|
|
18
18
|
var _mobxReact = require("mobx-react");
|
|
19
|
-
var
|
|
19
|
+
var _agoraEduCore = require("agora-edu-core");
|
|
20
20
|
var _submenu = require("./submenu");
|
|
21
21
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
22
22
|
var _popover = require("agora-ui-foundation/lib/components/popover");
|
|
@@ -24,7 +24,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
24
24
|
var ScreenShare = exports.ScreenShare = (0, _mobxReact.observer)(function (_ref) {
|
|
25
25
|
var id = _ref.id,
|
|
26
26
|
order = _ref.order;
|
|
27
|
-
var actionStore = (0, _react.useContext)(
|
|
27
|
+
var actionStore = (0, _react.useContext)(_context.ActionBarContext);
|
|
28
28
|
var startScreenShare = actionStore.startScreenShare,
|
|
29
29
|
localUserRole = actionStore.localUserRole,
|
|
30
30
|
hasStartScreenSharePermission = actionStore.hasStartScreenSharePermission;
|
|
@@ -39,10 +39,6 @@ var ScreenShare = exports.ScreenShare = (0, _mobxReact.observer)(function (_ref)
|
|
|
39
39
|
var transI18n = (0, _i18n.useI18n)();
|
|
40
40
|
var title = transI18n('fmt_screenshare_label_screenshare');
|
|
41
41
|
var tooltip = hasStartScreenSharePermission ? transI18n('fmt_screenshare_label_screenshare') : transI18n('fmt_actionbar_screenshare_tips_restrictshare');
|
|
42
|
-
(0, _react.useEffect)(function () {
|
|
43
|
-
setMenuVisible(false);
|
|
44
|
-
setTooltipVisible(false);
|
|
45
|
-
}, [hasStartScreenSharePermission]);
|
|
46
42
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
47
43
|
mouseEnterDelay: 0,
|
|
48
44
|
onVisibleChange: function onVisibleChange() {
|
|
@@ -67,7 +63,7 @@ var ScreenShare = exports.ScreenShare = (0, _mobxReact.observer)(function (_ref)
|
|
|
67
63
|
iconPrimary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
68
64
|
},
|
|
69
65
|
moreVisible: visibleMenu,
|
|
70
|
-
submenu: [
|
|
66
|
+
submenu: [_agoraEduCore.FcrUserRole.HOST, _agoraEduCore.FcrUserRole.COHOST].includes(localUserRole) ? {
|
|
71
67
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_submenu.SubMenu, {}),
|
|
72
68
|
onClick: function onClick() {
|
|
73
69
|
setTooltipVisible(false);
|
|
@@ -75,7 +71,7 @@ var ScreenShare = exports.ScreenShare = (0, _mobxReact.observer)(function (_ref)
|
|
|
75
71
|
}
|
|
76
72
|
} : undefined
|
|
77
73
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
78
|
-
overlayClassName: "fcr-action-bar--popover
|
|
74
|
+
overlayClassName: "fcr-action-bar--popover",
|
|
79
75
|
visible: visibleMenu,
|
|
80
76
|
onVisibleChange: setMenuVisible,
|
|
81
77
|
trigger: "click",
|
|
@@ -15,16 +15,15 @@ var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
|
15
15
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
16
16
|
var _dropMenu = require("agora-ui-foundation/lib/components/drop-menu");
|
|
17
17
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var _context = require("../context");
|
|
19
|
+
var _agoraEduCore = require("agora-edu-core");
|
|
20
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
21
|
var _button = require("agora-ui-foundation/lib/components/button");
|
|
22
22
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
23
23
|
var _mobxReact = require("mobx-react");
|
|
24
|
-
var _truncate = _interopRequireDefault(require("lodash/truncate"));
|
|
25
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
25
|
var SubMenu = exports.SubMenu = (0, _mobxReact.observer)(function () {
|
|
27
|
-
var _useContext = (0, _react.useContext)(
|
|
26
|
+
var _useContext = (0, _react.useContext)(_context.ActionBarContext),
|
|
28
27
|
setAllowBoardWrite = _useContext.setAllowBoardWrite,
|
|
29
28
|
setAllowScreenShare = _useContext.setAllowScreenShare,
|
|
30
29
|
localUserRole = _useContext.localUserRole,
|
|
@@ -36,11 +35,10 @@ var SubMenu = exports.SubMenu = (0, _mobxReact.observer)(function () {
|
|
|
36
35
|
isScreenShareAndBoardEnabled = _useContext.isScreenShareAndBoardEnabled,
|
|
37
36
|
startScreenShare = _useContext.startScreenShare,
|
|
38
37
|
hasScreenShare = _useContext.hasScreenShare,
|
|
39
|
-
hasCloseWriteBoardPermission = _useContext.hasCloseWriteBoardPermission
|
|
40
|
-
hasAllowWriteBoardPermission = _useContext.hasAllowWriteBoardPermission;
|
|
38
|
+
hasCloseWriteBoardPermission = _useContext.hasCloseWriteBoardPermission;
|
|
41
39
|
var t = (0, _i18n.useI18n)();
|
|
42
|
-
var hasHostPermission = [
|
|
43
|
-
var hasBoardControlPermission = boardOwnerUser && localUser.userId !== boardOwnerUser.userId && hasCloseWriteBoardPermission
|
|
40
|
+
var hasHostPermission = [_agoraEduCore.FcrUserRole.HOST, _agoraEduCore.FcrUserRole.COHOST].includes(localUserRole);
|
|
41
|
+
var hasBoardControlPermission = boardOwnerUser && localUser.userId !== boardOwnerUser.userId && hasCloseWriteBoardPermission;
|
|
44
42
|
// 需求变更,联席主持人也可以禁用主持人的白板,注释掉联席主持人不能禁用的逻辑
|
|
45
43
|
// (FcrUserRole.HOST === localUserRole ||
|
|
46
44
|
// (FcrUserRole.COHOST === localUserRole && FcrUserRole.HOST !== boardOwnerUser?.userRole));
|
|
@@ -51,7 +49,13 @@ var SubMenu = exports.SubMenu = (0, _mobxReact.observer)(function () {
|
|
|
51
49
|
key: 'allow_attendee_title',
|
|
52
50
|
type: 'title'
|
|
53
51
|
}, {
|
|
54
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
52
|
+
icon: boardOwnerUser && hasHostPermission ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
53
|
+
type: _type.FcrIconType.FCR_WHITEBOARD,
|
|
54
|
+
size: 24,
|
|
55
|
+
colors: {
|
|
56
|
+
iconPrimary: '#FB584E'
|
|
57
|
+
}
|
|
58
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
55
59
|
type: _type.FcrIconType.FCR_SCREENSHARING,
|
|
56
60
|
size: 24,
|
|
57
61
|
colors: {
|
|
@@ -66,10 +70,16 @@ var SubMenu = exports.SubMenu = (0, _mobxReact.observer)(function () {
|
|
|
66
70
|
// ? setAllowScreenShare(FcrWhiteboardState.OFF)
|
|
67
71
|
// : startScreenShare();
|
|
68
72
|
startScreenShare();
|
|
69
|
-
}
|
|
70
|
-
|
|
73
|
+
},
|
|
74
|
+
classNames: 'fcr-icon-green'
|
|
71
75
|
}, {
|
|
72
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
76
|
+
icon: boardOwnerUser && hasHostPermission ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
77
|
+
type: _type.FcrIconType.FCR_WHITEBOARD,
|
|
78
|
+
size: 24,
|
|
79
|
+
colors: {
|
|
80
|
+
iconPrimary: '#FB584E'
|
|
81
|
+
}
|
|
82
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
73
83
|
type: _type.FcrIconType.FCR_WHITEBOARD,
|
|
74
84
|
size: 24,
|
|
75
85
|
colors: {
|
|
@@ -79,15 +89,14 @@ var SubMenu = exports.SubMenu = (0, _mobxReact.observer)(function () {
|
|
|
79
89
|
disabled: boardOwnerUser && (boardOwnerUser === null || boardOwnerUser === void 0 ? void 0 : boardOwnerUser.userId) !== localUser.userId,
|
|
80
90
|
title: !boardOwnerUser ? t('fmt_screenshare_button_sharewhiteboard') : (boardOwnerUser === null || boardOwnerUser === void 0 ? void 0 : boardOwnerUser.userId) === localUser.userId ? t('fmt_screenshare_button_chosewhiteboard') : t('fmt_screenshare_options_alreadyopend'),
|
|
81
91
|
key: 'allow_attendee_title',
|
|
82
|
-
type: boardOwnerUser && (boardOwnerUser === null || boardOwnerUser === void 0 ? void 0 : boardOwnerUser.userId) === localUser.userId ? 'danger' : 'primary',
|
|
83
92
|
onButtonClick: function onButtonClick() {
|
|
84
93
|
if ((boardOwnerUser === null || boardOwnerUser === void 0 ? void 0 : boardOwnerUser.userId) === localUser.userId) {
|
|
85
94
|
closeWhiteboard();
|
|
86
95
|
} else {
|
|
87
96
|
openWhiteboard();
|
|
88
97
|
}
|
|
89
|
-
}
|
|
90
|
-
|
|
98
|
+
},
|
|
99
|
+
classNames: 'fcr-icon-blue'
|
|
91
100
|
}];
|
|
92
101
|
var menusElectronOnly = [];
|
|
93
102
|
var hostMenus = [{
|
|
@@ -97,7 +106,7 @@ var SubMenu = exports.SubMenu = (0, _mobxReact.observer)(function () {
|
|
|
97
106
|
}, {
|
|
98
107
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
99
108
|
checked: isScreenShareAndBoardEnabled,
|
|
100
|
-
label: t('
|
|
109
|
+
label: t('fmt_screenshare_controlbar_security_list_participant_screenshare'),
|
|
101
110
|
styleType: "white"
|
|
102
111
|
}),
|
|
103
112
|
key: 'enable_sharescreen',
|
|
@@ -126,10 +135,7 @@ var SubMenu = exports.SubMenu = (0, _mobxReact.observer)(function () {
|
|
|
126
135
|
shape: "rounded",
|
|
127
136
|
block: true,
|
|
128
137
|
children: t('fmt_screenshare_button_disableshare', {
|
|
129
|
-
reason1: boardOwnerUser ?
|
|
130
|
-
length: 8,
|
|
131
|
-
separator: ' '
|
|
132
|
-
}) : t('fmt_actionbar_screenshare_labels_others')
|
|
138
|
+
reason1: boardOwnerUser ? boardOwnerUser.userName : t('fmt_actionbar_screenshare_labels_others')
|
|
133
139
|
})
|
|
134
140
|
}),
|
|
135
141
|
key: 'enable_whiteboard',
|
|
@@ -26,20 +26,16 @@ require("core-js/modules/es.object.to-string.js");
|
|
|
26
26
|
require("core-js/modules/esnext.async-iterator.map.js");
|
|
27
27
|
require("core-js/modules/esnext.iterator.map.js");
|
|
28
28
|
var _dropMenu = require("agora-ui-foundation/lib/components/drop-menu");
|
|
29
|
-
var
|
|
29
|
+
var _context = require("../context");
|
|
30
30
|
var _react = require("react");
|
|
31
31
|
var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
|
|
32
32
|
var _mobxReact = require("mobx-react");
|
|
33
33
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
34
|
-
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
35
|
-
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
36
|
-
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
37
|
-
var _type2 = require("fcr-core/lib/type");
|
|
38
34
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
39
35
|
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
36
|
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
37
|
var SecurityMenu = exports.SecurityMenu = (0, _mobxReact.observer)(function () {
|
|
42
|
-
var _useContext = (0, _react.useContext)(
|
|
38
|
+
var _useContext = (0, _react.useContext)(_context.ActionBarContext),
|
|
43
39
|
isLockRoomEnabled = _useContext.isLockRoomEnabled,
|
|
44
40
|
setLockRoomEnabled = _useContext.setLockRoomEnabled,
|
|
45
41
|
allowChat = _useContext.allowChat,
|
|
@@ -52,37 +48,15 @@ var SecurityMenu = exports.SecurityMenu = (0, _mobxReact.observer)(function () {
|
|
|
52
48
|
setAllowBoardWrite = _useContext.setAllowBoardWrite,
|
|
53
49
|
isBoardWriteEnabled = _useContext.isBoardWriteEnabled,
|
|
54
50
|
hasLockRoomPermission = _useContext.hasLockRoomPermission,
|
|
55
|
-
hasEnableJoinWithAudioPermission = _useContext.hasEnableJoinWithAudioPermission,
|
|
56
51
|
hasEnableStartSharePermission = _useContext.hasEnableStartSharePermission,
|
|
57
52
|
hasAllowChatPermission = _useContext.hasAllowChatPermission,
|
|
58
53
|
hasEnableStartAudioPermission = _useContext.hasEnableStartAudioPermission,
|
|
59
54
|
hasEnableStartVideoPermission = _useContext.hasEnableStartVideoPermission,
|
|
60
55
|
hasEnableChangeNamePermission = _useContext.hasEnableChangeNamePermission,
|
|
61
56
|
hasAllowWriteBoardPermission = _useContext.hasAllowWriteBoardPermission,
|
|
62
|
-
isScreenShareAndBoardEnabled = _useContext.isScreenShareAndBoardEnabled
|
|
63
|
-
setEnableWaitingRoom = _useContext.setEnableWaitingRoom,
|
|
64
|
-
isWaitingRoomEnabled = _useContext.isWaitingRoomEnabled,
|
|
65
|
-
isAllowJoinWithAudioEnabled = _useContext.isAllowJoinWithAudioEnabled,
|
|
66
|
-
setAllowJoinWithMuteAudio = _useContext.setAllowJoinWithMuteAudio,
|
|
67
|
-
hasWaitingRoomPermission = _useContext.hasWaitingRoomPermission,
|
|
68
|
-
localUserRole = _useContext.localUserRole,
|
|
69
|
-
isWaterMarkEnabled = _useContext.isWaterMarkEnabled,
|
|
70
|
-
isMulti = _useContext.isMulti,
|
|
71
|
-
setAllowWaterMark = _useContext.setAllowWaterMark,
|
|
72
|
-
setWaterMarkLineType = _useContext.setWaterMarkLineType,
|
|
73
|
-
setAlllowChangeName = _useContext.setAlllowChangeName,
|
|
74
|
-
hasWatermarkEnablePermission = _useContext.hasWatermarkEnablePermission,
|
|
75
|
-
hasWatermarkDisablePermission = _useContext.hasWatermarkDisablePermission,
|
|
76
|
-
hasAllowChangeNamePromission = _useContext.hasAllowChangeNamePromission,
|
|
77
|
-
hasDisallowChangeNamePromission = _useContext.hasDisallowChangeNamePromission,
|
|
78
|
-
allowChangeName = _useContext.allowChangeName;
|
|
57
|
+
isScreenShareAndBoardEnabled = _useContext.isScreenShareAndBoardEnabled;
|
|
79
58
|
var transI18n = (0, _i18n.useI18n)();
|
|
80
59
|
var allActions = [];
|
|
81
|
-
allActions.push({
|
|
82
|
-
title: transI18n('fmt_security_setting_label_security_setting'),
|
|
83
|
-
key: 'meeting_security_title',
|
|
84
|
-
type: 'title'
|
|
85
|
-
});
|
|
86
60
|
if (hasLockRoomPermission) {
|
|
87
61
|
allActions.push({
|
|
88
62
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
@@ -97,89 +71,17 @@ var SecurityMenu = exports.SecurityMenu = (0, _mobxReact.observer)(function () {
|
|
|
97
71
|
}
|
|
98
72
|
});
|
|
99
73
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
classNames: 'room-control-drop-with-under-line'
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
if (hasEnableJoinWithAudioPermission) {
|
|
116
|
-
allActions.push({
|
|
117
|
-
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
118
|
-
checked: isAllowJoinWithAudioEnabled(),
|
|
119
|
-
label: transI18n('fmt_security_options_silence'),
|
|
120
|
-
styleType: "white"
|
|
121
|
-
}),
|
|
122
|
-
key: 'enable_join_with_audio',
|
|
123
|
-
type: 'primary',
|
|
124
|
-
onButtonClick: function onButtonClick() {
|
|
125
|
-
setAllowJoinWithMuteAudio(!isAllowJoinWithAudioEnabled());
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/** 主持人和联席主持人 可以进行开启单行双行水印 */
|
|
131
|
-
if (hasWatermarkEnablePermission && hasWatermarkDisablePermission) {
|
|
132
|
-
allActions.push({
|
|
133
|
-
title: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
134
|
-
className: "room-control-options-box",
|
|
135
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
136
|
-
className: "room-control-options-watermark-title-box",
|
|
137
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
138
|
-
checked: isWaterMarkEnabled,
|
|
139
|
-
label: transI18n('fmt_security_setting_mobile_label_watermark'),
|
|
140
|
-
styleType: "white"
|
|
141
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
142
|
-
mouseEnterDelay: 0,
|
|
143
|
-
trigger: "hover",
|
|
144
|
-
placement: "top",
|
|
145
|
-
content: transI18n('fmt_security_setting_popup_tip_watermark_voice_active_prioritized'),
|
|
146
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
147
|
-
style: {
|
|
148
|
-
marginLeft: '6px'
|
|
149
|
-
},
|
|
150
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
151
|
-
type: _type.FcrIconType.FCR_HELPQUESTION,
|
|
152
|
-
size: 16
|
|
153
|
-
})
|
|
154
|
-
})
|
|
155
|
-
})]
|
|
156
|
-
}), isWaterMarkEnabled && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
157
|
-
className: "room-control-options-watermark-btns",
|
|
158
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
159
|
-
className: "room-control-options-watermark-btn ".concat(isMulti ? '' : 'room-control-options-watermark-btn--active'),
|
|
160
|
-
onClick: function onClick(e) {
|
|
161
|
-
e.stopPropagation();
|
|
162
|
-
setWaterMarkLineType(_type2.FcrLineType.SINGLE_ROW);
|
|
163
|
-
},
|
|
164
|
-
children: transI18n('fmt_security_setting_mobile_option_watermark_style_single')
|
|
165
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
166
|
-
className: "room-control-options-watermark-btn ".concat(isMulti ? 'room-control-options-watermark-btn--active' : ''),
|
|
167
|
-
onClick: function onClick(e) {
|
|
168
|
-
e.stopPropagation();
|
|
169
|
-
setWaterMarkLineType(_type2.FcrLineType.MULTI_ROW);
|
|
170
|
-
},
|
|
171
|
-
children: transI18n('fmt_security_setting_mobile_option_watermark_style_multi')
|
|
172
|
-
})]
|
|
173
|
-
})]
|
|
174
|
-
}),
|
|
175
|
-
key: 'enable_watermark',
|
|
176
|
-
type: 'primary',
|
|
177
|
-
onButtonClick: function onButtonClick() {
|
|
178
|
-
setAllowWaterMark();
|
|
179
|
-
},
|
|
180
|
-
classNames: 'room-control-drop-with-under-line'
|
|
181
|
-
});
|
|
182
|
-
}
|
|
74
|
+
allActions.push({
|
|
75
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
76
|
+
checked: false,
|
|
77
|
+
label: transI18n('fmt_security_options_activatewaitingroom'),
|
|
78
|
+
styleType: "white"
|
|
79
|
+
}),
|
|
80
|
+
key: 'enable_waiting_room',
|
|
81
|
+
type: 'disabled',
|
|
82
|
+
onButtonClick: function onButtonClick() {},
|
|
83
|
+
classNames: 'room-control-drop-with-under-line'
|
|
84
|
+
});
|
|
183
85
|
allActions.push({
|
|
184
86
|
title: transI18n('fmt_screenshare_options_allow'),
|
|
185
87
|
key: 'allow_attendee_title',
|
|
@@ -189,7 +91,7 @@ var SecurityMenu = exports.SecurityMenu = (0, _mobxReact.observer)(function () {
|
|
|
189
91
|
allActions.push({
|
|
190
92
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
191
93
|
checked: isScreenShareAndBoardEnabled,
|
|
192
|
-
label: transI18n('
|
|
94
|
+
label: transI18n('fmt_screenshare_controlbar_security_list_participant_screenshare'),
|
|
193
95
|
styleType: "white"
|
|
194
96
|
}),
|
|
195
97
|
key: 'share_screen',
|
|
@@ -253,34 +155,17 @@ var SecurityMenu = exports.SecurityMenu = (0, _mobxReact.observer)(function () {
|
|
|
253
155
|
}
|
|
254
156
|
});
|
|
255
157
|
}
|
|
256
|
-
|
|
257
|
-
// if (hasEnableChangeNamePermission) {
|
|
258
|
-
// allActions.push({
|
|
259
|
-
// title: (
|
|
260
|
-
// <FcrCheckbox
|
|
261
|
-
// checked={false}
|
|
262
|
-
// label={transI18n('fmt_screenshare_controlbar_security_list_participant_changeName')}
|
|
263
|
-
// styleType="white"
|
|
264
|
-
// />
|
|
265
|
-
// ),
|
|
266
|
-
// key: 'rename',
|
|
267
|
-
// type: 'disabled',
|
|
268
|
-
// onButtonClick: () => {},
|
|
269
|
-
// classNames: 'room-control-drop-with-under-line',
|
|
270
|
-
// });
|
|
271
|
-
// }
|
|
272
|
-
|
|
273
|
-
if (hasAllowChangeNamePromission && hasDisallowChangeNamePromission) {
|
|
158
|
+
if (hasEnableChangeNamePermission) {
|
|
274
159
|
allActions.push({
|
|
275
160
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
276
|
-
checked:
|
|
277
|
-
label: transI18n('
|
|
161
|
+
checked: false,
|
|
162
|
+
label: transI18n('fmt_screenshare_controlbar_security_list_participant_changeName'),
|
|
278
163
|
styleType: "white"
|
|
279
164
|
}),
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
},
|
|
283
|
-
|
|
165
|
+
key: 'rename',
|
|
166
|
+
type: 'disabled',
|
|
167
|
+
onButtonClick: function onButtonClick() {},
|
|
168
|
+
classNames: 'room-control-drop-with-under-line'
|
|
284
169
|
});
|
|
285
170
|
}
|
|
286
171
|
allActions.push({
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -10,19 +9,16 @@ var _item = require("../item");
|
|
|
10
9
|
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
11
10
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
12
11
|
var _react = require("react");
|
|
13
|
-
var
|
|
12
|
+
var _context = require("../context");
|
|
14
13
|
var _mobxReact = require("mobx-react");
|
|
15
|
-
var
|
|
14
|
+
var _dropMenu = require("./drop-menu");
|
|
16
15
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
17
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
// import { SecurityMenu } from './drop-menu';
|
|
19
|
-
|
|
20
17
|
var Security = exports.Security = (0, _mobxReact.observer)(function (_ref) {
|
|
21
18
|
var id = _ref.id,
|
|
22
19
|
order = _ref.order;
|
|
23
|
-
var _useContext = (0, _react.useContext)(
|
|
24
|
-
toggleLayoutBarLock = _useContext.toggleLayoutBarLock
|
|
25
|
-
setEnableWaitingRoom = _useContext.setEnableWaitingRoom;
|
|
20
|
+
var _useContext = (0, _react.useContext)(_context.ActionBarContext),
|
|
21
|
+
toggleLayoutBarLock = _useContext.toggleLayoutBarLock;
|
|
26
22
|
var transI18n = (0, _i18n.useI18n)();
|
|
27
23
|
var title = transI18n('fmt_screenshare_controlbar_button_security');
|
|
28
24
|
var tooltip = transI18n('fmt_screenshare_controlbar_button_security');
|
|
@@ -31,9 +27,7 @@ var Security = exports.Security = (0, _mobxReact.observer)(function (_ref) {
|
|
|
31
27
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_item.ActionBarItemWithPopover, {
|
|
32
28
|
popoverProps: {
|
|
33
29
|
trigger: 'click',
|
|
34
|
-
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
35
|
-
setEnableWaitingRoom: setEnableWaitingRoom
|
|
36
|
-
}),
|
|
30
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_dropMenu.SecurityMenu, {}),
|
|
37
31
|
overlayClassName: 'attendee__footer-more-actions',
|
|
38
32
|
overlayInnerStyle: {
|
|
39
33
|
boxShadow: 'var(--fcr_web_light_dropup_m)',
|
|
@@ -9,14 +9,14 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
|
9
9
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
10
10
|
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
11
11
|
var _item = require("../item");
|
|
12
|
-
var
|
|
12
|
+
var _context = require("../context");
|
|
13
13
|
var _react = require("react");
|
|
14
|
-
var
|
|
14
|
+
var _store = require("../../setting/store");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
var Settings = exports.Settings = function Settings(_ref) {
|
|
17
17
|
var id = _ref.id,
|
|
18
18
|
order = _ref.order;
|
|
19
|
-
var _useContext = (0, _react.useContext)(
|
|
19
|
+
var _useContext = (0, _react.useContext)(_context.ActionBarContext),
|
|
20
20
|
openDeviceSettingDialog = _useContext.openDeviceSettingDialog;
|
|
21
21
|
var transI18n = (0, _i18n.useI18n)();
|
|
22
22
|
var title = transI18n('fmt_screenshare_controlbar_button_more_setting');
|
|
@@ -30,7 +30,7 @@ var Settings = exports.Settings = function Settings(_ref) {
|
|
|
30
30
|
title: title,
|
|
31
31
|
onClick: function onClick() {
|
|
32
32
|
openDeviceSettingDialog({
|
|
33
|
-
activeTab:
|
|
33
|
+
activeTab: _store.DeviceSettingTab.GENERAL
|
|
34
34
|
});
|
|
35
35
|
},
|
|
36
36
|
iconColors: {
|
|
@@ -43,8 +43,8 @@ var SmallerActionbar = exports.SmallerActionbar = (0, _mobxReact.observer)(funct
|
|
|
43
43
|
onClick: function onClick() {
|
|
44
44
|
return enableMicrophone(!microphoneEnabled);
|
|
45
45
|
},
|
|
46
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_microphone.
|
|
47
|
-
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_microphone.MicrophoneControl, {
|
|
47
|
+
showTitle: false
|
|
48
48
|
})
|
|
49
49
|
})
|
|
50
50
|
})]
|
|
@@ -39,6 +39,12 @@ require("core-js/modules/es.object.to-string.js");
|
|
|
39
39
|
require("core-js/modules/es.object.values.js");
|
|
40
40
|
require("core-js/modules/es.string.iterator.js");
|
|
41
41
|
require("core-js/modules/es.weak-map.js");
|
|
42
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
43
|
+
require("core-js/modules/esnext.async-iterator.find.js");
|
|
44
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
45
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
46
|
+
require("core-js/modules/esnext.async-iterator.reduce.js");
|
|
47
|
+
require("core-js/modules/esnext.async-iterator.some.js");
|
|
42
48
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
43
49
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
44
50
|
require("core-js/modules/esnext.iterator.find.js");
|
|
@@ -11,7 +11,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
require("core-js/modules/es.array.concat.js");
|
|
12
12
|
require("core-js/modules/es.array.for-each.js");
|
|
13
13
|
require("core-js/modules/es.array.iterator.js");
|
|
14
|
-
require("core-js/modules/es.array.join.js");
|
|
15
14
|
require("core-js/modules/es.array.map.js");
|
|
16
15
|
require("core-js/modules/es.array.push.js");
|
|
17
16
|
require("core-js/modules/es.array.some.js");
|
|
@@ -61,7 +60,6 @@ var _radio = require("agora-ui-foundation/lib/components/radio");
|
|
|
61
60
|
var _guideTooltip = require("./guide-tooltip");
|
|
62
61
|
var _useLanguageConfig = require("../../interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig");
|
|
63
62
|
var _loadingWrapper = require("../../interpreter/loading-wrapper");
|
|
64
|
-
var _logger = require("agora-foundation/lib/logger");
|
|
65
63
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
66
64
|
var OutputByMainRoom = (0, _mobxReact.observer)(function (_ref) {
|
|
67
65
|
var changeOutputRoomTool = _ref.changeOutputRoomTool;
|
|
@@ -79,7 +77,8 @@ var OutputByMainRoom = (0, _mobxReact.observer)(function (_ref) {
|
|
|
79
77
|
onClick: function onClick() {
|
|
80
78
|
var open = !mainRoomState;
|
|
81
79
|
changeOutputByMainRoom({
|
|
82
|
-
event: open ? _store.EventType.START : _store.EventType.STOP
|
|
80
|
+
event: open ? _store.EventType.START : _store.EventType.STOP,
|
|
81
|
+
action: 'changeOutputByMainRoom'
|
|
83
82
|
});
|
|
84
83
|
setMainRoomState(open);
|
|
85
84
|
}
|
|
@@ -207,11 +206,6 @@ var useChangeOutputRoomTool = function useChangeOutputRoomTool() {
|
|
|
207
206
|
value: ele
|
|
208
207
|
};
|
|
209
208
|
});
|
|
210
|
-
(0, _logger.getLogger)().info("interpreterLog- interpreterUsers ".concat(interpreterUsers === null || interpreterUsers === void 0 ? void 0 : interpreterUsers.map(function (ele) {
|
|
211
|
-
return "".concat(ele.sourceLanguage, "-").concat(ele.targetLanguage);
|
|
212
|
-
}).join(',')), "interpreterLog- languageBtnList ".concat(languageBtnList === null || languageBtnList === void 0 ? void 0 : languageBtnList.map(function (ele) {
|
|
213
|
-
return "".concat(ele.value);
|
|
214
|
-
}).join(',')));
|
|
215
209
|
return [closeAlllanguageBtn].concat((0, _toConsumableArray2["default"])(languageBtnList));
|
|
216
210
|
}, [interpreterUsers]);
|
|
217
211
|
(0, _react.useEffect)(function () {
|
|
Binary file
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
.switch-language-channels-bar {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 60px;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
align-items: center;
|
|
7
|
+
background: var(--fcr_ui_scene_white8);
|
|
8
|
+
border-radius: 30px;
|
|
9
|
+
padding: 5px;
|
|
10
|
+
}
|
|
11
|
+
.switch-language-channels-action {
|
|
12
|
+
/* width: 50%; */
|
|
13
|
+
height: 100%;
|
|
14
|
+
padding: 3px;
|
|
15
|
+
}
|
|
16
|
+
.switch-language-channels-action-bg {
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
align-items: center;
|
|
20
|
+
height: 100%;
|
|
21
|
+
width: 100%;
|
|
22
|
+
padding: 8.5px 19.5px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.switch-language-channels-action-icon {
|
|
26
|
+
width: 25px;
|
|
27
|
+
height: 25px;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
background: rgba(63, 59, 83, 1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.switch-language-channels-action__checked {
|
|
33
|
+
border-radius: 25px;
|
|
34
|
+
border: 1px solid var(--fcr_ui_scene_card3);
|
|
35
|
+
border-radius: 25px;
|
|
36
|
+
}
|
|
37
|
+
.switch-language-channels-action__checked .switch-language-channels-action-bg {
|
|
38
|
+
border-radius: 25px;
|
|
39
|
+
background: linear-gradient(
|
|
40
|
+
180deg,
|
|
41
|
+
#00cae0 0%,
|
|
42
|
+
#15d5ea 4.76%,
|
|
43
|
+
#6ae7f5 8.48%,
|
|
44
|
+
#64e8f7 25.6%,
|
|
45
|
+
#64e8f7 48%,
|
|
46
|
+
#00cae0 77.38%,
|
|
47
|
+
#00cae0 100%
|
|
48
|
+
);
|
|
49
|
+
box-shadow: 0px 4px 4px 0px rgba(4, 173, 191, 1) inset;
|
|
50
|
+
}
|
|
51
|
+
.switch-language-channels-action__checked .switch-language-channels-action-icon {
|
|
52
|
+
background: rgba(217, 217, 217, 1);
|
|
53
|
+
}
|
|
54
|
+
.switch-language-channels-action-text {
|
|
55
|
+
color: var(--fcr_ui_scene_black10);
|
|
56
|
+
font-size: 20px;
|
|
57
|
+
margin-left: 8px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.switch-language-channels-action__checked .switch-language-channels-action-text {
|
|
61
|
+
color: var(--fcr_ui_scene_white10);
|
|
62
|
+
}
|
|
63
|
+
.switch-language-channels-guide-content {
|
|
64
|
+
display: flex;
|
|
65
|
+
justify-content: space-between;
|
|
66
|
+
align-items: center;
|
|
67
|
+
}
|
|
68
|
+
.switch-language-channels-guide-content-icon {
|
|
69
|
+
height: 32px;
|
|
70
|
+
width: 32px;
|
|
71
|
+
border-radius: 16px;
|
|
72
|
+
background: var(--fcr_ui_scene_card3);
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
align-items: center;
|
|
76
|
+
margin-right: 12px;
|
|
77
|
+
}
|
|
78
|
+
.switch-language-channels-guide-content-text {
|
|
79
|
+
width: 200px;
|
|
80
|
+
line-height: 19.5px;
|
|
81
|
+
font-size: 13px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.switch-language-loading {
|
|
85
|
+
border-radius: 30px;
|
|
86
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FcrLanguage } from 'fcr-core/lib/room-control/interpreter-control/types';
|
|
2
|
+
import './index.css';
|
|
3
|
+
interface TriggerInputLanguageRoomProps {
|
|
4
|
+
}
|
|
5
|
+
export declare enum OpeneStateType {
|
|
6
|
+
CLOSE = 0,
|
|
7
|
+
OPEN = 1
|
|
8
|
+
}
|
|
9
|
+
export interface OptionsType {
|
|
10
|
+
label: string;
|
|
11
|
+
imgSrc: string;
|
|
12
|
+
value: FcrLanguage;
|
|
13
|
+
}
|
|
14
|
+
export declare const TriggerInputLanguageRoom: (props: TriggerInputLanguageRoomProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export {};
|