fcr-ui-scene 3.4.1 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base.d.ts +40 -5
- package/lib/base.js +234 -22
- package/lib/common/device-store.d.ts +3 -2
- package/lib/common/device-store.js +174 -194
- package/lib/common/device-stream-store.d.ts +27 -7
- package/lib/common/device-stream-store.js +190 -176
- package/lib/common/event-store.d.ts +4 -13
- package/lib/common/event-store.js +7 -18
- package/lib/common/room-store.js +6 -6
- package/lib/common/security-store.d.ts +19 -9
- package/lib/common/security-store.js +27 -39
- package/lib/creator.d.ts +1 -1
- package/lib/creator.js +4 -9
- package/lib/electron/app.js +5 -4
- package/lib/electron/bootstrap-dev.js +0 -9
- package/lib/electron/bootstrap-sdk.js +10 -2
- package/lib/electron/injections.d.ts +2 -0
- package/lib/electron/injections.js +17 -7
- package/lib/electron/logger.d.ts +0 -4
- package/lib/electron/logger.js +2 -5
- package/lib/electron/main.js +1 -1
- package/lib/electron/plugins/devtool-shortcut.js +10 -1
- package/lib/electron/plugins/meeting-state.js +1 -1
- package/lib/electron/preload.js +3 -1
- package/lib/electron/tools.js +0 -4
- package/lib/electron/window.js +0 -2
- package/lib/fragments/control-bar/control-bar-store.d.ts +1 -0
- package/lib/fragments/control-bar/control-bar-store.js +9 -4
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +31 -12
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +117 -16
- package/lib/global.css +5 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +7 -4
- package/lib/login-confirm-dialog.d.ts +1 -0
- package/lib/login-confirm-dialog.js +7 -2
- 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 +2 -4
- package/lib/modules/action-bar/components/apps/app-item/index.css +1 -2
- package/lib/modules/action-bar/components/apps/app-item/index.d.ts +1 -10
- package/lib/modules/action-bar/components/apps/app-item/index.js +0 -2
- package/lib/modules/action-bar/components/apps/appitems.d.ts +1 -3
- package/lib/modules/action-bar/components/apps/appitems.js +2 -5
- package/lib/modules/action-bar/components/apps/index.css +2 -2
- package/lib/modules/action-bar/components/apps/index.js +2 -3
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -1
- package/lib/modules/action-bar/components/collapse/index.d.ts +8 -0
- package/lib/modules/action-bar/components/collapse/index.js +218 -0
- package/lib/modules/action-bar/components/interpreter/index.d.ts +1 -5
- package/lib/modules/action-bar/components/item/index.d.ts +9 -0
- package/lib/modules/action-bar/components/{item.js → item/index.js} +2 -4
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +1 -8
- package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +9 -26
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +1 -16
- package/lib/modules/action-bar/components/more/index.js +13 -9
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +1 -4
- package/lib/modules/action-bar/components/more/poppover-content.js +28 -9
- package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/interpreter/index.js +2 -1
- package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/virtual-image/index.js +1 -1
- package/lib/modules/action-bar/{notification-bar → components/notification-bar}/index.js +1 -3
- package/lib/modules/action-bar/components/participants/index.js +2 -2
- package/lib/modules/action-bar/components/placement/index.d.ts +4 -0
- package/lib/modules/action-bar/components/placement/index.js +18 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +1 -3
- package/lib/modules/action-bar/components/screen-share/submenu.js +25 -2
- package/lib/modules/action-bar/components/security/index.js +3 -1
- package/lib/modules/action-bar/components/smaller/index.d.ts +1 -0
- package/lib/modules/action-bar/components/smaller/index.js +52 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.d.ts +2 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.js +231 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.d.ts +3 -0
- package/lib/modules/action-bar/{trigger-output-language-room → components/trigger-subscribe-language}/guide-tooltip/index.js +14 -19
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.d.ts +5 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +206 -0
- package/lib/modules/action-bar/device/index.js +3 -1
- package/lib/modules/action-bar/enums.d.ts +23 -0
- package/lib/modules/action-bar/enums.js +35 -0
- package/lib/modules/action-bar/index.d.ts +36 -6
- package/lib/modules/action-bar/index.dev.d.ts +0 -1
- package/lib/modules/action-bar/index.dev.js +94 -121
- package/lib/modules/action-bar/index.js +46 -18
- package/lib/modules/action-bar/more/index.js +3 -6
- package/lib/modules/action-bar/screen-share/index.js +0 -5
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/smaller.js +2 -2
- package/lib/modules/action-bar/store.d.ts +84 -98
- package/lib/modules/action-bar/store.js +567 -713
- package/lib/modules/action-bar/switch-output-language-room/index.js +8 -2
- package/lib/modules/action-bar/types.d.ts +94 -0
- package/lib/modules/action-bar/view.d.ts +1 -2
- package/lib/modules/action-bar/view.js +11 -11
- package/lib/modules/audio-stream/index.d.ts +22 -10
- package/lib/modules/audio-stream/index.js +78 -85
- package/lib/modules/chat/chat-bar/index.css +0 -5
- package/lib/modules/chat/chat-bar/index.js +14 -16
- package/lib/modules/chat/chat-room-store.d.ts +135 -0
- package/lib/modules/chat/chat-room-store.js +950 -0
- package/lib/modules/chat/chat-select/index.css +3 -6
- package/lib/modules/chat/chat-select/index.js +1 -15
- package/lib/modules/chat/chat.js +6 -7
- package/lib/modules/chat/components/chat-action/index.d.ts +1 -0
- package/lib/modules/chat/components/chat-action/index.js +28 -0
- package/lib/modules/chat/components/chat-bar/index.css +85 -0
- package/lib/modules/chat/components/chat-bar/index.d.ts +3 -0
- package/lib/modules/chat/components/chat-bar/index.js +143 -0
- package/lib/modules/chat/components/chat-select/index.css +185 -0
- package/lib/modules/chat/components/chat-select/index.d.ts +3 -0
- package/lib/modules/chat/components/chat-select/index.js +234 -0
- package/lib/modules/chat/components/message-list/index.d.ts +4 -0
- package/lib/modules/chat/components/message-list/index.js +648 -0
- package/lib/modules/chat/index.d.ts +13 -5
- package/lib/modules/chat/index.dev.d.ts +0 -1
- package/lib/modules/chat/index.dev.js +71 -72
- package/lib/modules/chat/index.js +45 -22
- package/lib/modules/chat/message-list.js +1 -4
- package/lib/modules/chat/mock.d.ts +1 -1
- package/lib/modules/chat/store.d.ts +17 -162
- package/lib/modules/chat/store.js +95 -964
- package/lib/modules/chat/types.d.ts +70 -0
- package/lib/modules/chat/types.js +17 -0
- package/lib/modules/chat/view.d.ts +10 -0
- package/lib/modules/chat/view.js +368 -0
- package/lib/modules/components/device-control/components/audio-menu/index.js +4 -3
- package/lib/modules/components/device-control/components/microphone/index.js +7 -7
- package/lib/modules/components/device-control/components/video-menu/index.js +2 -1
- package/lib/modules/components/device-control/store.d.ts +11 -12
- package/lib/modules/components/device-control/store.js +46 -50
- package/lib/modules/components/leave-meeting/components/assign-host.d.ts +3 -0
- package/lib/modules/components/leave-meeting/components/assign-host.js +70 -0
- package/lib/modules/components/leave-meeting/components/index.css +125 -0
- package/lib/modules/components/leave-meeting/index.d.ts +4 -0
- package/lib/modules/components/leave-meeting/index.js +147 -0
- package/lib/modules/components/leave-meeting/store.d.ts +31 -0
- package/lib/modules/components/leave-meeting/store.js +290 -0
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +12 -10
- package/lib/modules/components/security-menu/index.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +35 -39
- package/lib/modules/components/tab-frame/index.d.ts +2 -2
- package/lib/modules/components/tab-frame/index.js +24 -7
- package/lib/modules/connection-gateway/components/computer/index.js +4 -4
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -1
- package/lib/modules/connection-gateway/components/phone/index.js +4 -3
- package/lib/modules/connection-gateway/enums.d.ts +4 -0
- package/lib/modules/connection-gateway/enums.js +12 -0
- package/lib/modules/connection-gateway/index.d.ts +13 -4
- package/lib/modules/connection-gateway/index.js +25 -15
- package/lib/modules/connection-gateway/store.d.ts +22 -18
- package/lib/modules/connection-gateway/store.js +60 -40
- package/lib/modules/connection-gateway/types.d.ts +4 -0
- package/lib/modules/connection-gateway/types.js +6 -0
- package/lib/modules/connection-gateway/view.js +2 -2
- package/lib/modules/control-bar/components/meeting-details/index.js +25 -28
- package/lib/modules/control-bar/components/more-actions/index.css +18 -0
- package/lib/modules/control-bar/components/more-actions/index.d.ts +1 -5
- package/lib/modules/control-bar/components/more-actions/index.js +48 -11
- package/lib/modules/control-bar/components/share-state-nav/index.d.ts +1 -7
- package/lib/modules/control-bar/components/share-state-nav/index.js +2 -1
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +1 -1
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +2 -2
- package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +1 -10
- package/lib/modules/control-bar/components/transfer-position-icon/index.js +7 -12
- package/lib/modules/control-bar/enums.d.ts +21 -0
- package/lib/modules/control-bar/enums.js +31 -0
- package/lib/modules/control-bar/index.d.ts +30 -7
- package/lib/modules/control-bar/index.js +46 -29
- package/lib/modules/control-bar/store.d.ts +38 -26
- package/lib/modules/control-bar/store.js +172 -286
- package/lib/modules/control-bar/types.d.ts +20 -0
- package/lib/modules/control-bar/types.js +6 -0
- package/lib/modules/control-bar/view.js +68 -36
- package/lib/modules/device-pretest/index.js +4 -4
- package/lib/modules/device-pretest/settings/beauty.js +2 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -1
- package/lib/modules/device-pretest/store.d.ts +8 -9
- package/lib/modules/device-pretest/store.js +51 -37
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +19 -10
- package/lib/modules/dialog/components/chat/index.js +2 -2
- package/lib/modules/dialog/components/confirm/index.js +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +8 -10
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +20 -7
- package/lib/modules/dialog/components/connection-gateway/tabs.d.ts +6 -0
- package/lib/modules/dialog/components/connection-gateway/tabs.js +44 -0
- package/lib/modules/dialog/components/control-bar/index.d.ts +5 -1
- package/lib/modules/dialog/components/control-bar/index.js +122 -9
- package/lib/modules/dialog/components/device-setting/electron.js +6 -2
- package/lib/modules/dialog/components/device-setting/index.js +2 -2
- package/lib/modules/dialog/components/dialog-container/component/body.js +75 -0
- package/lib/modules/{components → dialog/components}/dialog-container/index.css +6 -3
- package/lib/modules/{components → dialog/components}/dialog-container/index.d.ts +7 -2
- package/lib/modules/{components → dialog/components}/dialog-container/index.js +27 -25
- package/lib/modules/dialog/components/interpreter/electron.js +37 -0
- package/lib/modules/dialog/components/{Interpreter → interpreter}/index.js +2 -2
- package/lib/modules/dialog/components/invite/index.js +32 -7
- package/lib/modules/dialog/components/live-streaming/index.js +9 -5
- package/lib/modules/dialog/components/participant/electron.js +11 -5
- package/lib/modules/dialog/components/participant/index.js +4 -3
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +6 -3
- 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 +14 -4
- package/lib/modules/dialog/components/share-screen-selection/index.js +9 -5
- package/lib/modules/dialog/components/system-preference/electron.js +1 -1
- package/lib/modules/dialog/components/system-preference/index.js +0 -2
- package/lib/modules/dialog/components/toast/index.js +1 -1
- package/lib/modules/dialog/components/video-window/index.d.ts +2 -0
- package/lib/modules/dialog/components/video-window/index.js +148 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -2
- package/lib/modules/dialog/dialogs.d.ts +2 -5
- package/lib/modules/dialog/dialogs.js +2 -157
- package/lib/modules/dialog/hooks/useElectron.d.ts +3 -25
- package/lib/modules/dialog/hooks/useElectron.js +90 -36
- package/lib/modules/dialog/index.d.ts +30 -4
- package/lib/modules/dialog/index.js +61 -7
- package/lib/modules/dialog/store.d.ts +46 -12
- package/lib/modules/dialog/store.js +121 -68
- package/lib/modules/dialog/types/index.d.ts +14 -3
- package/lib/modules/dialog/view.js +2 -1
- package/lib/modules/event-confirm/index.css +1 -1
- package/lib/modules/event-confirm/index.d.ts +13 -6
- package/lib/modules/event-confirm/index.js +28 -11
- package/lib/modules/event-confirm/store.d.ts +9 -3
- package/lib/modules/event-confirm/store.js +16 -10
- package/lib/modules/event-confirm/view.js +7 -6
- package/lib/modules/event-toast/index.d.ts +7 -6
- package/lib/modules/event-toast/index.js +19 -8
- package/lib/modules/event-toast/store.d.ts +8 -3
- package/lib/modules/event-toast/store.js +15 -8
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.js +5 -5
- package/lib/modules/{Interpreter → interpreter}/constant.d.ts +0 -4
- package/lib/modules/{Interpreter → interpreter}/constant.js +3 -45
- package/lib/modules/{Interpreter → interpreter}/dialog-content/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/dialog-content/index.js +4 -4
- package/lib/modules/interpreter/index.d.ts +15 -0
- package/lib/modules/{Interpreter → interpreter}/index.js +23 -8
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.js +5 -8
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +0 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.js +14 -18
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.js +2 -2
- package/lib/modules/interpreter/store.d.ts +50 -0
- package/lib/modules/interpreter/store.js +584 -0
- package/lib/modules/interpreter/type.d.ts +24 -0
- package/lib/modules/interpreter/type.js +12 -0
- package/lib/modules/{Interpreter → interpreter}/utils.d.ts +1 -5
- package/lib/modules/interpreter/utils.js +80 -0
- package/lib/modules/{Interpreter → interpreter}/view.js +19 -3
- package/lib/modules/invite/components/error-tips.d.ts +4 -0
- package/lib/modules/invite/components/error-tips.js +18 -0
- package/lib/modules/invite/components/pstn-invite.d.ts +2 -0
- package/lib/modules/invite/components/pstn-invite.js +288 -0
- package/lib/modules/invite/components/voip-invite.d.ts +1 -0
- package/lib/modules/invite/components/voip-invite.js +276 -0
- package/lib/modules/invite/enums.d.ts +22 -0
- package/lib/modules/invite/enums.js +34 -0
- package/lib/modules/invite/index.d.ts +7 -8
- package/lib/modules/invite/index.js +17 -15
- package/lib/modules/invite/store.d.ts +13 -26
- package/lib/modules/invite/store.js +62 -26
- package/lib/modules/invite/types.d.ts +14 -0
- package/lib/modules/invite/types.js +6 -0
- package/lib/modules/invite/view.d.ts +0 -4
- package/lib/modules/invite/view.js +7 -11
- package/lib/modules/invite/voip-invite.js +3 -3
- package/lib/modules/layout/components/Aside.js +34 -17
- package/lib/modules/layout/components/Carousel.js +3 -2
- package/lib/modules/layout/components/Gallery.js +3 -3
- package/lib/modules/layout/components/Layout.js +4 -7
- package/lib/modules/layout/components/index.d.ts +1 -1
- package/lib/modules/layout/components/index.js +4 -5
- package/lib/modules/layout/components/who-is-speaking.d.ts +2 -0
- package/lib/modules/layout/components/who-is-speaking.js +60 -0
- package/lib/modules/layout/index.d.ts +26 -4
- package/lib/modules/layout/index.dev.d.ts +0 -1
- package/lib/modules/layout/index.dev.js +312 -386
- package/lib/modules/layout/index.js +25 -10
- package/lib/modules/layout/member-window/index.css +9 -22
- package/lib/modules/layout/member-window/index.d.ts +1 -1
- package/lib/modules/layout/member-window/index.js +26 -27
- package/lib/modules/layout/store.d.ts +61 -71
- package/lib/modules/layout/store.js +311 -576
- package/lib/modules/layout/type.js +2 -0
- package/lib/modules/layout/video-window-datasource.js +0 -4
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +127 -2
- package/lib/modules/live-streaming/index.d.ts +15 -7
- package/lib/modules/live-streaming/index.dev.js +13 -13
- package/lib/modules/live-streaming/index.js +20 -15
- package/lib/modules/live-streaming/store.d.ts +21 -14
- package/lib/modules/live-streaming/store.js +83 -144
- package/lib/modules/live-streaming/view.js +2 -2
- package/lib/modules/notification/index.d.ts +9 -11
- package/lib/modules/notification/index.js +21 -14
- package/lib/modules/notification/interpreter-status/index.js +3 -3
- package/lib/modules/notification/store.d.ts +5 -11
- package/lib/modules/notification/store.js +12 -62
- package/lib/modules/notification/view.d.ts +5 -3
- package/lib/modules/notification/view.js +8 -5
- package/lib/modules/offscreen-pulling/index.js +1 -2
- package/lib/modules/participant/attendee/index.css +51 -0
- package/lib/modules/participant/attendee/index.d.ts +5 -8
- package/lib/modules/participant/attendee/index.js +15 -64
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.d.ts +6 -0
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.js +28 -0
- package/lib/modules/participant/components/attendee/components/user-avatar/index.d.ts +7 -0
- package/lib/modules/participant/components/attendee/components/user-avatar/index.js +39 -0
- package/lib/modules/participant/components/attendee/index.css +69 -0
- package/lib/modules/participant/components/attendee/index.d.ts +4 -0
- package/lib/modules/participant/components/attendee/index.js +334 -0
- package/lib/modules/participant/components/can-moveable/index.d.ts +1 -0
- package/lib/modules/participant/components/can-moveable/index.js +68 -0
- package/lib/modules/participant/components/drop-menu/index.js +8 -11
- package/lib/modules/participant/components/footer/buttons.d.ts +2 -3
- package/lib/modules/participant/components/footer/buttons.js +2 -3
- package/lib/modules/participant/components/footer/index.js +2 -2
- package/lib/modules/participant/components/mute-all/index.d.ts +3 -4
- package/lib/modules/participant/components/mute-all/index.js +31 -44
- package/lib/modules/participant/components/operate-waitingroom-member/index.d.ts +2 -0
- package/lib/modules/participant/components/operate-waitingroom-member/index.js +48 -0
- package/lib/modules/participant/components/participants/index.js +27 -51
- package/lib/modules/participant/components/user-action/index.d.ts +17 -0
- package/lib/modules/participant/components/user-action/index.js +167 -0
- package/lib/modules/participant/index.d.ts +34 -7
- package/lib/modules/participant/index.dev.d.ts +0 -1
- package/lib/modules/participant/index.dev.js +87 -116
- package/lib/modules/participant/index.js +39 -15
- package/lib/modules/participant/member-list-data-source.d.ts +4 -1
- package/lib/modules/participant/member-list-data-source.js +57 -33
- package/lib/modules/participant/store.d.ts +58 -25
- package/lib/modules/participant/store.js +321 -303
- package/lib/modules/participant/type.d.ts +45 -1
- package/lib/modules/participant/type.js +15 -1
- package/lib/modules/pc-audio-connect/index.css +12 -0
- package/lib/modules/pc-audio-connect/index.d.ts +22 -0
- package/lib/modules/pc-audio-connect/index.js +68 -0
- package/lib/modules/pc-audio-connect/store.d.ts +46 -0
- package/lib/modules/pc-audio-connect/store.js +300 -0
- package/lib/modules/pc-audio-connect/types.d.ts +0 -0
- package/lib/modules/pc-audio-connect/types.js +1 -0
- package/lib/modules/pc-audio-connect/view.d.ts +3 -0
- package/lib/modules/pc-audio-connect/view.js +66 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.css +36 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.d.ts +10 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +78 -0
- package/lib/modules/phone-audio-connect/components/calling/index.css +72 -0
- package/lib/modules/phone-audio-connect/components/calling/index.d.ts +7 -0
- package/lib/modules/phone-audio-connect/components/calling/index.js +58 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.css +10 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.d.ts +5 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.js +24 -0
- package/lib/modules/phone-audio-connect/components/useing/index.css +46 -0
- package/lib/modules/phone-audio-connect/components/useing/index.d.ts +3 -0
- package/lib/modules/phone-audio-connect/components/useing/index.js +36 -0
- package/lib/modules/phone-audio-connect/enums.d.ts +4 -0
- package/lib/modules/phone-audio-connect/enums.js +12 -0
- package/lib/modules/phone-audio-connect/index.css +56 -0
- package/lib/modules/phone-audio-connect/index.d.ts +16 -0
- package/lib/modules/phone-audio-connect/index.js +63 -0
- package/lib/modules/phone-audio-connect/store.d.ts +46 -0
- package/lib/modules/phone-audio-connect/store.js +317 -0
- package/lib/modules/phone-audio-connect/types.d.ts +4 -0
- package/lib/modules/phone-audio-connect/types.js +6 -0
- package/lib/modules/phone-audio-connect/view.d.ts +3 -0
- package/lib/modules/phone-audio-connect/view.js +185 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +6 -6
- package/lib/modules/setting/index.d.ts +25 -5
- package/lib/modules/setting/index.dev.d.ts +0 -1
- package/lib/modules/setting/index.dev.js +120 -81
- package/lib/modules/setting/index.js +35 -9
- package/lib/modules/setting/minutes-settings/minutes-settings.js +3 -2
- package/lib/modules/setting/state/index.js +3 -7
- package/lib/modules/setting/store.d.ts +48 -14
- package/lib/modules/setting/store.js +105 -118
- package/lib/modules/setting/translate-settings/translate-settings.js +4 -4
- package/lib/modules/setting/video-settings/video-settings-basic.js +19 -22
- package/lib/modules/setting/view.js +6 -35
- package/lib/modules/share-screen/components/selection/index.css +70 -0
- package/lib/modules/share-screen/components/selection/index.d.ts +2 -0
- package/lib/modules/share-screen/components/selection/index.js +267 -0
- package/lib/modules/share-screen/components/share-state-bar/index.css +76 -0
- package/lib/modules/share-screen/components/share-state-bar/index.d.ts +4 -0
- package/lib/modules/share-screen/components/share-state-bar/index.js +98 -0
- package/lib/modules/share-screen/index.d.ts +15 -18
- package/lib/modules/share-screen/index.dev.d.ts +0 -1
- package/lib/modules/share-screen/index.dev.js +90 -91
- package/lib/modules/share-screen/index.js +22 -22
- package/lib/modules/share-screen/selection/index.css +0 -2
- package/lib/modules/share-screen/selection/index.js +97 -83
- package/lib/modules/share-screen/store.d.ts +36 -32
- package/lib/modules/share-screen/store.js +249 -222
- package/lib/modules/share-screen/types.d.ts +27 -0
- package/lib/modules/share-screen/types.js +6 -0
- package/lib/modules/share-screen/view.js +1 -1
- package/lib/modules/sound-effect/index.d.ts +9 -4
- package/lib/modules/sound-effect/index.js +72 -41
- package/lib/modules/sound-effect/sound-effect-player.js +1 -1
- package/lib/modules/state-bar/index.d.ts +16 -13
- package/lib/modules/state-bar/index.dev.d.ts +0 -1
- package/lib/modules/state-bar/index.dev.js +78 -83
- package/lib/modules/state-bar/index.js +23 -7
- package/lib/modules/state-bar/layout-config.js +2 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/meeting-details.js +31 -24
- package/lib/modules/state-bar/meeting-network-state.js +1 -1
- package/lib/modules/state-bar/store.d.ts +20 -10
- package/lib/modules/state-bar/store.js +84 -88
- package/lib/modules/state-bar/view.js +2 -2
- package/lib/modules/video-window/deviceState/index.d.ts +2 -2
- package/lib/modules/video-window/deviceState/index.js +4 -6
- package/lib/modules/video-window/index.css +1 -4
- package/lib/modules/video-window/index.d.ts +33 -6
- package/lib/modules/video-window/index.js +63 -15
- package/lib/modules/video-window/members/index.css +1 -0
- package/lib/modules/video-window/members/index.js +27 -12
- package/lib/modules/video-window/store.d.ts +58 -27
- package/lib/modules/video-window/store.js +166 -165
- package/lib/modules/video-window/topControl/index.js +0 -2
- package/lib/modules/waiting-room-layout/index.d.ts +11 -4
- package/lib/modules/waiting-room-layout/index.js +26 -13
- package/lib/modules/waiting-room-layout/store.d.ts +6 -3
- package/lib/modules/waiting-room-layout/store.js +17 -15
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -4
- package/lib/modules/whiteboard/components/control-bar/store.js +8 -8
- package/lib/modules/whiteboard/components/switch-theme/index.js +0 -2
- package/lib/modules/whiteboard/components/switch-theme/item.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/index.js +1 -4
- package/lib/modules/whiteboard/index.d.ts +20 -14
- package/lib/modules/whiteboard/index.js +250 -227
- package/lib/modules/whiteboard/view.d.ts +2 -0
- package/lib/modules/whiteboard/view.js +49 -0
- package/lib/plugins/browser-runtime-plugin.js +5 -1
- package/lib/providers/chat-provider.d.ts +71 -0
- package/lib/providers/chat-provider.js +91 -0
- package/lib/providers/device-privilege-provider.d.ts +52 -6
- package/lib/providers/device-privilege-provider.js +212 -185
- package/lib/providers/device-provider.d.ts +203 -45
- package/lib/providers/device-provider.js +486 -403
- package/lib/providers/device-stream-provider.d.ts +12 -13
- package/lib/providers/device-stream-provider.js +86 -194
- package/lib/providers/dialog-provider.d.ts +135 -0
- package/lib/providers/dialog-provider.js +202 -0
- package/lib/providers/event-provider.d.ts +1 -21
- package/lib/providers/event-provider.js +19 -59
- package/lib/providers/interpreter-provider.d.ts +218 -7
- package/lib/providers/interpreter-provider.js +1069 -81
- package/lib/providers/local-storage-provider.d.ts +9 -0
- package/lib/providers/message-provider.d.ts +69 -0
- package/lib/providers/message-provider.js +96 -0
- package/lib/providers/monitor-provider.d.ts +5 -0
- package/lib/providers/phone-audio-provider.d.ts +131 -0
- package/lib/providers/phone-audio-provider.js +512 -0
- package/lib/providers/privilege-provider.d.ts +325 -12
- package/lib/providers/privilege-provider.js +111 -299
- package/lib/providers/renderer-provider.d.ts +46 -4
- package/lib/providers/renderer-provider.js +57 -61
- package/lib/providers/room-provider.d.ts +113 -6
- package/lib/providers/room-provider.js +665 -88
- package/lib/providers/screen-share-provider.d.ts +65 -0
- package/lib/providers/screen-share-provider.js +237 -0
- package/lib/providers/session-provider.d.ts +30 -0
- package/lib/runtime.d.ts +2 -0
- package/lib/scenes/main-scene.d.ts +41 -3
- package/lib/scenes/main-scene.js +407 -248
- package/lib/scenes/waiting-scene.d.ts +34 -4
- package/lib/scenes/waiting-scene.js +163 -56
- package/lib/shared-data-source/chat-data.d.ts +14 -0
- package/lib/{common/remote-renderer.js → shared-data-source/chat-data.js} +67 -77
- package/lib/shared-data-source/device-privilege-data.d.ts +8 -0
- package/lib/shared-data-source/device-privilege-data.js +25 -0
- package/lib/shared-data-source/interpreter.d.ts +63 -0
- package/lib/shared-data-source/interpreter.js +246 -0
- package/lib/shared-data-source/layout-data.d.ts +29 -0
- package/lib/shared-data-source/layout-data.js +178 -0
- package/lib/shared-data-source/pin-data.d.ts +9 -0
- package/lib/shared-data-source/pin-data.js +24 -0
- package/lib/shared-data-source/setting.d.ts +32 -0
- package/lib/shared-data-source/setting.js +151 -0
- package/lib/shared-data-source/speaker-spotlight.d.ts +5 -0
- package/lib/shared-data-source/speaker-spotlight.js +15 -0
- package/lib/shared-data-source/video-window.d.ts +161 -0
- package/lib/shared-data-source/video-window.js +1198 -0
- package/lib/shared-data-source/waiting-room.d.ts +19 -0
- package/lib/shared-data-source/waiting-room.js +157 -0
- package/lib/translations/enUS.d.ts +48 -17
- package/lib/translations/enUS.js +67 -35
- package/lib/translations/zhCN.d.ts +48 -17
- package/lib/translations/zhCN.js +68 -36
- package/lib/type.d.ts +270 -25
- package/lib/type.js +81 -2
- package/lib/ui-manager.d.ts +20 -16
- package/lib/ui-manager.js +59 -795
- package/lib/ui-scene.d.ts +6 -1
- package/lib/ui-scene.js +371 -43
- package/lib/utilities/constant.d.ts +63 -86
- package/lib/utilities/constant.js +158 -175
- package/lib/utilities/copyText.js +8 -7
- package/lib/utilities/meeting-detail.d.ts +2 -0
- package/lib/utilities/meeting-detail.js +39 -0
- package/lib/utilities/privilege.d.ts +4 -0
- package/lib/utilities/privilege.js +29 -0
- package/lib/utilities/renderer-event.js +0 -2
- package/lib/utilities/renderer.js +0 -1
- package/lib/utilities/setting-config-storage.d.ts +12 -0
- package/lib/utilities/setting-config-storage.js +100 -0
- package/lib/utilities/tools.d.ts +35 -3
- package/lib/utilities/tools.js +103 -4
- package/lib/utilities/video-track-render-context.d.ts +3 -4
- package/lib/utilities/video-track-render-context.js +1 -1
- package/package.json +10 -5
- package/public/assets/full-screen-error-boundary-img.png +0 -0
- package/public/assets/leave-meeting.png +0 -0
- package/public/index.html +24 -14
- package/lib/ scenes/base.d.ts +0 -10
- package/lib/ scenes/base.js +0 -75
- package/lib/ scenes/main-scene.d.ts +0 -43
- package/lib/ scenes/main-scene.js +0 -368
- package/lib/ scenes/waiting-scene.d.ts +0 -31
- package/lib/ scenes/waiting-scene.js +0 -119
- package/lib/common/remote-renderer.d.ts +0 -15
- package/lib/common/type.d.ts +0 -8
- package/lib/electron/bootstrap.d.ts +0 -1
- package/lib/electron/bootstrap.js +0 -56
- package/lib/electron/dev.d.ts +0 -1
- package/lib/electron/dev.js +0 -51
- package/lib/error-fallback.css +0 -62
- package/lib/error-fallback.d.ts +0 -2
- package/lib/error-fallback.js +0 -19
- package/lib/modules/Interpreter/context.d.ts +0 -2
- package/lib/modules/Interpreter/context.js +0 -9
- package/lib/modules/Interpreter/index.d.ts +0 -8
- package/lib/modules/Interpreter/store.d.ts +0 -111
- package/lib/modules/Interpreter/store.js +0 -1601
- package/lib/modules/Interpreter/type.d.ts +0 -41
- package/lib/modules/Interpreter/type.js +0 -20
- package/lib/modules/Interpreter/utils.js +0 -139
- package/lib/modules/action-bar/components/device/index.css +0 -162
- package/lib/modules/action-bar/components/device/index.d.ts +0 -8
- package/lib/modules/action-bar/components/device/index.js +0 -611
- package/lib/modules/action-bar/components/item.d.ts +0 -27
- package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +0 -15
- package/lib/modules/action-bar/trigger-input-language-room/index.js +0 -220
- package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +0 -10
- package/lib/modules/action-bar/trigger-output-language-room/constant.js +0 -8
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +0 -14
- package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +0 -4
- package/lib/modules/action-bar/trigger-output-language-room/index.js +0 -98
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +0 -5
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +0 -66
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +0 -5
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +0 -36
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +0 -12
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +0 -138
- package/lib/modules/components/dialog-container/component/body.js +0 -46
- package/lib/modules/dialog/components/Interpreter/electron.js +0 -31
- package/lib/modules/dialog/components/Interpreter/user-queue/index.css +0 -36
- package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +0 -3
- package/lib/modules/dialog/components/Interpreter/user-queue/index.js +0 -47
- package/lib/modules/notification/context.d.ts +0 -2
- package/lib/modules/notification/context.js +0 -9
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -278
- package/lib/scenes/base.d.ts +0 -10
- package/lib/scenes/base.js +0 -75
- package/lib/ui-node.d.ts +0 -25
- package/lib/ui-node.js +0 -156
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar/assets}/dome.png +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar/assets}/fcr_translateswitch.png +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/interpreter/index.css +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/interpreter/index.d.ts +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/virtual-image/index.css +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/virtual-image/index.d.ts +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/index.css +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/index.d.ts +0 -0
- /package/lib/modules/action-bar/{trigger-input-language-room → components/trigger-output-language}/fcr_translateswitch.png +0 -0
- /package/lib/modules/action-bar/{trigger-input-language-room → components/trigger-output-language}/index.css +0 -0
- /package/lib/modules/action-bar/{trigger-output-language-room → components/trigger-subscribe-language}/guide-tooltip/index.css +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/{common/type.js → modules/action-bar/types.js} +0 -0
- /package/lib/modules/{components → dialog/components}/dialog-container/component/body.d.ts +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/electron.d.ts +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/{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.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/switch-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.d.ts +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}/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}/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/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/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}/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}/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/view.d.ts +0 -0
|
@@ -1,46 +0,0 @@
|
|
|
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.DialogContainerBody = DialogContainerBody;
|
|
8
|
-
require("../index.css");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function DialogContainerBody(props) {
|
|
11
|
-
var actions = props.actions,
|
|
12
|
-
title = props.title,
|
|
13
|
-
children = props.children,
|
|
14
|
-
onClick = props.onClick;
|
|
15
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
16
|
-
className: "fcr-dialog-container",
|
|
17
|
-
onClick: function onClick(e) {
|
|
18
|
-
return e.stopPropagation();
|
|
19
|
-
},
|
|
20
|
-
children: [(title || actions) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("header", {
|
|
21
|
-
className: "fcr-dialog-container-header",
|
|
22
|
-
children: [actions && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
23
|
-
style: {
|
|
24
|
-
flex: 1
|
|
25
|
-
}
|
|
26
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("h2", {
|
|
27
|
-
children: title
|
|
28
|
-
}), actions && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
29
|
-
className: "fcr-dialog-container-actions",
|
|
30
|
-
children: actions
|
|
31
|
-
})]
|
|
32
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("section", {
|
|
33
|
-
className: "fcr-dialog-container-content",
|
|
34
|
-
style: title || actions ? {
|
|
35
|
-
height: 'calc(100vh - 76px)' /* 76px 包含 46px 的 title 高度,和 30px 的阴影 */
|
|
36
|
-
} : {},
|
|
37
|
-
children: children
|
|
38
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
39
|
-
className: "fcr-dialog-container-close",
|
|
40
|
-
onClick: onClick,
|
|
41
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
42
|
-
children: "\xD7"
|
|
43
|
-
})
|
|
44
|
-
})]
|
|
45
|
-
});
|
|
46
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
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.InterpreterElectronDialog = void 0;
|
|
8
|
-
var _constant = require("../../../../utilities/constant");
|
|
9
|
-
var _useElectron = require("../../hooks/useElectron");
|
|
10
|
-
var config = {
|
|
11
|
-
fullscreen: false,
|
|
12
|
-
maximizable: false,
|
|
13
|
-
trafficLightPosition: {
|
|
14
|
-
x: 10,
|
|
15
|
-
y: 60
|
|
16
|
-
},
|
|
17
|
-
width: 684,
|
|
18
|
-
height: 438,
|
|
19
|
-
minWidth: 620,
|
|
20
|
-
minHeight: 300,
|
|
21
|
-
maxWidth: 800
|
|
22
|
-
};
|
|
23
|
-
var InterpreterElectronDialog = exports.InterpreterElectronDialog = function InterpreterElectronDialog(_ref) {
|
|
24
|
-
var children = _ref.children;
|
|
25
|
-
(0, _useElectron.useElectronDialog)({
|
|
26
|
-
config: config,
|
|
27
|
-
dialogKey: _constant.DialogKey.INTERPRETER,
|
|
28
|
-
children: children
|
|
29
|
-
});
|
|
30
|
-
return null;
|
|
31
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
.fcr-simultaneous-interpretation-user-queue,
|
|
2
|
-
.fcr-simultaneous-interpretation-user-queue-container,
|
|
3
|
-
.fcr-simultaneous-interpretation-user-queue-container-last__bg,
|
|
4
|
-
.fcr-simultaneous-interpretation-user-queue-container-last {
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.fcr-simultaneous-interpretation-user-queue-container,
|
|
11
|
-
.fcr-simultaneous-interpretation-user-queue-container-last {
|
|
12
|
-
width: 28px;
|
|
13
|
-
height: 28px;
|
|
14
|
-
background: var(--fcr_mobile_ui_scene_color_popup_fill2);
|
|
15
|
-
|
|
16
|
-
border-radius: 50%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.fcr-simultaneous-interpretation-user-queue-container:nth-child(1) {
|
|
20
|
-
transform: translateX(50%);
|
|
21
|
-
z-index: 999;
|
|
22
|
-
}
|
|
23
|
-
.fcr-simultaneous-interpretation-user-queue-container:nth-child(2) {
|
|
24
|
-
transform: translateX(25%);
|
|
25
|
-
z-index: 998;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.fcr-simultaneous-interpretation-user-queue-container-last__bg {
|
|
29
|
-
z-index: 997;
|
|
30
|
-
background: var(--fcr_mobile_ui_scene_fill1);
|
|
31
|
-
border-radius: 14px;
|
|
32
|
-
padding-right: 8px;
|
|
33
|
-
}
|
|
34
|
-
.fcr-simultaneous-interpretation-user-queue-container-last {
|
|
35
|
-
margin-right: 2px;
|
|
36
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
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["default"] = void 0;
|
|
8
|
-
var _avatar = require("agora-ui-foundation/lib/components/avatar");
|
|
9
|
-
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
10
|
-
require("./index.css");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
var UserQueue = function UserQueue() {
|
|
13
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
14
|
-
trigger: "click",
|
|
15
|
-
content: 'xxx等21人可能正在设置该功能',
|
|
16
|
-
placement: 'top',
|
|
17
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
18
|
-
className: "fcr-simultaneous-interpretation-user-queue",
|
|
19
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
20
|
-
className: "fcr-simultaneous-interpretation-user-queue-container",
|
|
21
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
22
|
-
size: 24,
|
|
23
|
-
nickName: 'name1',
|
|
24
|
-
textSize: 12
|
|
25
|
-
})
|
|
26
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
27
|
-
className: "fcr-simultaneous-interpretation-user-queue-container",
|
|
28
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
29
|
-
size: 24,
|
|
30
|
-
nickName: 'name2',
|
|
31
|
-
textSize: 12
|
|
32
|
-
})
|
|
33
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
34
|
-
className: "fcr-simultaneous-interpretation-user-queue-container-last__bg",
|
|
35
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
36
|
-
className: "fcr-simultaneous-interpretation-user-queue-container-last",
|
|
37
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
38
|
-
size: 24,
|
|
39
|
-
nickName: 'name2',
|
|
40
|
-
textSize: 12
|
|
41
|
-
})
|
|
42
|
-
}), "21"]
|
|
43
|
-
})]
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
var _default = exports["default"] = UserQueue;
|
|
@@ -1,9 +0,0 @@
|
|
|
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.StoreContext = void 0;
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ParticipantType } from '../../../utilities/constant';
|
|
2
|
-
import { FcrUserRole } from '../../../type';
|
|
3
|
-
interface ParticipantsMoreActionsProps {
|
|
4
|
-
isMe?: boolean;
|
|
5
|
-
userId: string;
|
|
6
|
-
hasVideo: boolean;
|
|
7
|
-
hasAudio: boolean;
|
|
8
|
-
onParticipantsButtonClick: (action: ParticipantType, userId: string) => void;
|
|
9
|
-
userName: string;
|
|
10
|
-
userRole: FcrUserRole;
|
|
11
|
-
isPin: boolean;
|
|
12
|
-
hasPinnedStream: boolean;
|
|
13
|
-
allowedOperations: string[];
|
|
14
|
-
audioDeviceType: string;
|
|
15
|
-
userType?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const ParticipantsMoreActions: (props: ParticipantsMoreActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,278 +0,0 @@
|
|
|
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.ParticipantsMoreActions = 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.object.to-string.js");
|
|
11
|
-
require("core-js/modules/es.string.includes.js");
|
|
12
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
13
|
-
require("core-js/modules/esnext.iterator.constructor.js");
|
|
14
|
-
require("core-js/modules/esnext.iterator.filter.js");
|
|
15
|
-
var _dropMenu = require("agora-ui-foundation/lib/components/drop-menu");
|
|
16
|
-
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
17
|
-
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
18
|
-
var _cameraState = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/camera-state");
|
|
19
|
-
var _constant = require("../../../utilities/constant");
|
|
20
|
-
var _type2 = require("../../../type");
|
|
21
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
22
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
var ParticipantsMoreActions = exports.ParticipantsMoreActions = function ParticipantsMoreActions(props) {
|
|
24
|
-
var t = (0, _i18n.useI18n)();
|
|
25
|
-
var isMe = props.isMe,
|
|
26
|
-
userId = props.userId,
|
|
27
|
-
hasVideo = props.hasVideo,
|
|
28
|
-
hasAudio = props.hasAudio,
|
|
29
|
-
onParticipantsButtonClick = props.onParticipantsButtonClick,
|
|
30
|
-
userName = props.userName,
|
|
31
|
-
userRole = props.userRole,
|
|
32
|
-
isPin = props.isPin,
|
|
33
|
-
hasPinnedStream = props.hasPinnedStream,
|
|
34
|
-
allowedOperations = props.allowedOperations,
|
|
35
|
-
audioDeviceType = props.audioDeviceType,
|
|
36
|
-
userType = props.userType;
|
|
37
|
-
var disableOperationMenu = [{
|
|
38
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
39
|
-
type: _type.FcrIconType.FCR_LOWER_HAND,
|
|
40
|
-
size: 20,
|
|
41
|
-
colors: {
|
|
42
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext1)',
|
|
43
|
-
iconSecondary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
44
|
-
}
|
|
45
|
-
}),
|
|
46
|
-
title: t('fmt_attendies_button_handsdown'),
|
|
47
|
-
key: 'put_down_hand',
|
|
48
|
-
type: 'disabled',
|
|
49
|
-
onButtonClick: function onButtonClick() {
|
|
50
|
-
onParticipantsButtonClick(_constant.ParticipantType.STOP_RAISE_HAND, userId);
|
|
51
|
-
}
|
|
52
|
-
}, {
|
|
53
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
54
|
-
type: _type.FcrIconType.FCR_FOCUSONHIM,
|
|
55
|
-
size: 20,
|
|
56
|
-
colors: {
|
|
57
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
58
|
-
}
|
|
59
|
-
}),
|
|
60
|
-
title: t('fmt_attendies_options_setfocus'),
|
|
61
|
-
key: 'set_as_focus_video',
|
|
62
|
-
type: 'disabled',
|
|
63
|
-
onButtonClick: function onButtonClick() {
|
|
64
|
-
onParticipantsButtonClick(_constant.ParticipantType.SET_MAIN_SPEAKER, userId);
|
|
65
|
-
}
|
|
66
|
-
}, {
|
|
67
|
-
title: t('fmt_attendies_options_allowlocalrecord'),
|
|
68
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
69
|
-
type: _type.FcrIconType.FCR_PINPAGE,
|
|
70
|
-
size: 20,
|
|
71
|
-
colors: {
|
|
72
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
73
|
-
}
|
|
74
|
-
}),
|
|
75
|
-
key: 'allow_record_local_video',
|
|
76
|
-
type: 'disabled',
|
|
77
|
-
onButtonClick: function onButtonClick() {
|
|
78
|
-
onParticipantsButtonClick(_constant.ParticipantType.ALL_RECORDING_LOCAL_VIDEO, userId);
|
|
79
|
-
},
|
|
80
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
81
|
-
}, {
|
|
82
|
-
title: t('fmt_attendies_options_putinwaitingroom'),
|
|
83
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
84
|
-
type: _type.FcrIconType.FCR_PINPAGE,
|
|
85
|
-
size: 20,
|
|
86
|
-
colors: {
|
|
87
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
88
|
-
}
|
|
89
|
-
}),
|
|
90
|
-
key: 'put_into_waiting_room',
|
|
91
|
-
type: 'disabled',
|
|
92
|
-
role: ['host'],
|
|
93
|
-
onButtonClick: function onButtonClick() {
|
|
94
|
-
onParticipantsButtonClick(_constant.ParticipantType.PUT_IN_WAITING_ROOM, userId);
|
|
95
|
-
},
|
|
96
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
97
|
-
}, {
|
|
98
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
99
|
-
type: _type.FcrIconType.FCR_RENAME,
|
|
100
|
-
size: 20,
|
|
101
|
-
colors: {
|
|
102
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
103
|
-
}
|
|
104
|
-
}),
|
|
105
|
-
title: t('fmt_attendies_button_rename'),
|
|
106
|
-
key: 'rename',
|
|
107
|
-
type: 'disabled',
|
|
108
|
-
onButtonClick: function onButtonClick() {
|
|
109
|
-
onParticipantsButtonClick(_constant.ParticipantType.RENAME, userId);
|
|
110
|
-
},
|
|
111
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
112
|
-
}];
|
|
113
|
-
var allOperationMenu = [{
|
|
114
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
|
|
115
|
-
isCameraMuted: true
|
|
116
|
-
}),
|
|
117
|
-
title: t('fmt_device_label_video_start'),
|
|
118
|
-
key: 'start_video',
|
|
119
|
-
type: 'primary',
|
|
120
|
-
canOperation: !hasVideo && userType !== 'phone',
|
|
121
|
-
onButtonClick: function onButtonClick() {
|
|
122
|
-
onParticipantsButtonClick(_constant.ParticipantType.UNMUTE_VIDEO, userId);
|
|
123
|
-
},
|
|
124
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
125
|
-
}, {
|
|
126
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
|
|
127
|
-
isCameraMuted: true
|
|
128
|
-
}),
|
|
129
|
-
title: t('fmt_sip_button_opencamera'),
|
|
130
|
-
key: 'request_start_video',
|
|
131
|
-
type: 'primary',
|
|
132
|
-
canOperation: !hasVideo && !isMe && userType !== 'phone',
|
|
133
|
-
onButtonClick: function onButtonClick() {
|
|
134
|
-
onParticipantsButtonClick(_constant.ParticipantType.UNMUTE_VIDEO, userId);
|
|
135
|
-
},
|
|
136
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
137
|
-
}, {
|
|
138
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
|
|
139
|
-
isCameraMuted: false
|
|
140
|
-
}),
|
|
141
|
-
title: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
142
|
-
style: {
|
|
143
|
-
color: 'var(--fcr_ui_scene_ramp_red6)'
|
|
144
|
-
},
|
|
145
|
-
children: t('fmt_device_label_video_stop')
|
|
146
|
-
}),
|
|
147
|
-
key: 'stop_video',
|
|
148
|
-
type: 'primary',
|
|
149
|
-
canOperation: hasVideo && userType !== 'phone',
|
|
150
|
-
onButtonClick: function onButtonClick() {
|
|
151
|
-
onParticipantsButtonClick(_constant.ParticipantType.MUTE_VIDEO, userId);
|
|
152
|
-
},
|
|
153
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
154
|
-
}, {
|
|
155
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
156
|
-
type: _type.FcrIconType.FCR_MOBILE_CHAT3,
|
|
157
|
-
size: 20,
|
|
158
|
-
colors: {
|
|
159
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
160
|
-
}
|
|
161
|
-
}),
|
|
162
|
-
title: t('fmt_attendies_label_privatechat'),
|
|
163
|
-
key: 'private_chat',
|
|
164
|
-
type: 'primary',
|
|
165
|
-
canOperation: !isMe && userType !== 'phone',
|
|
166
|
-
onButtonClick: function onButtonClick() {
|
|
167
|
-
onParticipantsButtonClick(_constant.ParticipantType.PRIVATE_CHAT, userId);
|
|
168
|
-
}
|
|
169
|
-
}, {
|
|
170
|
-
icon: isPin ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
171
|
-
type: _type.FcrIconType.FCR_UNPIN,
|
|
172
|
-
size: 20
|
|
173
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
174
|
-
type: _type.FcrIconType.FCR_PINPAGE,
|
|
175
|
-
size: 20,
|
|
176
|
-
colors: {
|
|
177
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
178
|
-
}
|
|
179
|
-
}),
|
|
180
|
-
title: isPin ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
181
|
-
style: {
|
|
182
|
-
color: 'var(--fcr_ui_scene_ramp_red6)'
|
|
183
|
-
},
|
|
184
|
-
children: t('fmt_attendies_options_cancelfixed')
|
|
185
|
-
}) : hasPinnedStream ? t('fmt_attendies_options_replacefixed') : t('fmt_attendies_options_fixfirst'),
|
|
186
|
-
key: 'pin',
|
|
187
|
-
type: 'primary',
|
|
188
|
-
canOperation: userType === 'normal' || userType === 'meeting-system' && hasVideo,
|
|
189
|
-
onButtonClick: function onButtonClick() {
|
|
190
|
-
onParticipantsButtonClick(isPin ? _constant.ParticipantType.REMOVE_PIN : _constant.ParticipantType.ADD_PIN, userId);
|
|
191
|
-
},
|
|
192
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
193
|
-
}, {
|
|
194
|
-
title: t('fmt_attendies_options_sethost'),
|
|
195
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
196
|
-
type: _type.FcrIconType.FCR_HOST2,
|
|
197
|
-
size: 20,
|
|
198
|
-
colors: {
|
|
199
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
200
|
-
}
|
|
201
|
-
}),
|
|
202
|
-
key: 'set_as_host',
|
|
203
|
-
canOperation: userRole !== _type2.FcrUserRole.HOST && userType === 'normal',
|
|
204
|
-
onButtonClick: function onButtonClick() {
|
|
205
|
-
onParticipantsButtonClick(_constant.ParticipantType.SET_AS_HOST, userId);
|
|
206
|
-
}
|
|
207
|
-
}, {
|
|
208
|
-
title: t('fmt_attendies_options_setcohost'),
|
|
209
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
210
|
-
type: _type.FcrIconType.FCR_COHOST2,
|
|
211
|
-
size: 20,
|
|
212
|
-
colors: {
|
|
213
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
214
|
-
}
|
|
215
|
-
}),
|
|
216
|
-
key: 'set_as_co_host',
|
|
217
|
-
type: 'primary',
|
|
218
|
-
canOperation: userRole !== _type2.FcrUserRole.COHOST && userType === 'normal',
|
|
219
|
-
onButtonClick: function onButtonClick() {
|
|
220
|
-
onParticipantsButtonClick(_constant.ParticipantType.SET_AS_CO_HOST, userId);
|
|
221
|
-
}
|
|
222
|
-
}, {
|
|
223
|
-
title: t('fmt_attendies_options_revokecohost'),
|
|
224
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
225
|
-
type: _type.FcrIconType.FCR_PINPAGE,
|
|
226
|
-
size: 20,
|
|
227
|
-
colors: {
|
|
228
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
229
|
-
}
|
|
230
|
-
}),
|
|
231
|
-
key: 'revoke_co_host',
|
|
232
|
-
type: 'danger',
|
|
233
|
-
canOperation: userRole === _type2.FcrUserRole.COHOST && userType === 'normal',
|
|
234
|
-
onButtonClick: function onButtonClick() {
|
|
235
|
-
onParticipantsButtonClick(_constant.ParticipantType.SET_AS_ATTENDEE, userId);
|
|
236
|
-
}
|
|
237
|
-
}, {
|
|
238
|
-
title: t('fmt_modules_tips_mergevideo'),
|
|
239
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
240
|
-
type: _type.FcrIconType.FCR_MOBILE_CAMERA2,
|
|
241
|
-
size: 20,
|
|
242
|
-
colors: {
|
|
243
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
244
|
-
}
|
|
245
|
-
}),
|
|
246
|
-
key: 'merge_video',
|
|
247
|
-
type: 'primary',
|
|
248
|
-
canOperation: userType === 'phone',
|
|
249
|
-
onButtonClick: function onButtonClick() {
|
|
250
|
-
onParticipantsButtonClick(_constant.ParticipantType.MERGE_VIDEO, userId);
|
|
251
|
-
}
|
|
252
|
-
}, {
|
|
253
|
-
title: t('fmt_attendies_button_remove'),
|
|
254
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
255
|
-
type: _type.FcrIconType.FCR_SETTING_NONE,
|
|
256
|
-
size: 20,
|
|
257
|
-
colors: {
|
|
258
|
-
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
259
|
-
}
|
|
260
|
-
}),
|
|
261
|
-
key: 'kick_out',
|
|
262
|
-
type: 'danger',
|
|
263
|
-
canOperation: true,
|
|
264
|
-
onButtonClick: function onButtonClick() {
|
|
265
|
-
onParticipantsButtonClick(_constant.ParticipantType.KICK_OUT, userId);
|
|
266
|
-
}
|
|
267
|
-
}];
|
|
268
|
-
var currentActions = allOperationMenu.filter(function (item) {
|
|
269
|
-
return allowedOperations.includes(item.key) && item.canOperation;
|
|
270
|
-
});
|
|
271
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
272
|
-
className: "participants-more-action",
|
|
273
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_dropMenu.FcrDropMenu, {
|
|
274
|
-
title: userName,
|
|
275
|
-
options: currentActions
|
|
276
|
-
})
|
|
277
|
-
});
|
|
278
|
-
};
|
package/lib/scenes/base.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FcrUIRootNode } from '../ui-node';
|
|
3
|
-
export declare abstract class FcrBaseUIScene extends FcrUIRootNode {
|
|
4
|
-
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
5
|
-
abstract mount(dom: HTMLElement): void;
|
|
6
|
-
abstract unmount(dom: HTMLElement): void;
|
|
7
|
-
protected renderLayers(layers: JSX.Element[]): import("react/jsx-runtime").JSX.Element[];
|
|
8
|
-
protected renderWithErrorBoundary(layoutComponent: JSX.Element, spaceName: string): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
protected logError(error: Error, info: React.ErrorInfo, space: string): void;
|
|
10
|
-
}
|
package/lib/scenes/base.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
require("core-js/modules/es.reflect.construct.js");
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
Object.defineProperty(exports, "__esModule", {
|
|
7
|
-
value: true
|
|
8
|
-
});
|
|
9
|
-
exports.FcrBaseUIScene = void 0;
|
|
10
|
-
require("core-js/modules/es.array.concat.js");
|
|
11
|
-
require("core-js/modules/es.array.map.js");
|
|
12
|
-
require("core-js/modules/esnext.async-iterator.map.js");
|
|
13
|
-
require("core-js/modules/esnext.iterator.map.js");
|
|
14
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
16
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
17
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
18
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
19
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
20
|
-
var _react = _interopRequireDefault(require("react"));
|
|
21
|
-
var _reactErrorBoundary = require("react-error-boundary");
|
|
22
|
-
var _errorFallback = require("../error-fallback");
|
|
23
|
-
var _uiNode = require("../ui-node");
|
|
24
|
-
var _logger = require("agora-foundation/lib/logger");
|
|
25
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
|
-
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
27
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
28
|
-
var FcrBaseUIScene = exports.FcrBaseUIScene = /*#__PURE__*/function (_FcrUIRootNode) {
|
|
29
|
-
function FcrBaseUIScene() {
|
|
30
|
-
var _this;
|
|
31
|
-
(0, _classCallCheck2["default"])(this, FcrBaseUIScene);
|
|
32
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
33
|
-
args[_key] = arguments[_key];
|
|
34
|
-
}
|
|
35
|
-
_this = _callSuper(this, FcrBaseUIScene, [].concat(args));
|
|
36
|
-
(0, _defineProperty2["default"])(_this, "logger", (0, _logger.getLogger)());
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
(0, _inherits2["default"])(FcrBaseUIScene, _FcrUIRootNode);
|
|
40
|
-
return (0, _createClass2["default"])(FcrBaseUIScene, [{
|
|
41
|
-
key: "renderLayers",
|
|
42
|
-
value: function renderLayers(layers) {
|
|
43
|
-
return layers.map(function (el, i) {
|
|
44
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react["default"].Fragment, {
|
|
45
|
-
children: el
|
|
46
|
-
}, i);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
}, {
|
|
50
|
-
key: "renderWithErrorBoundary",
|
|
51
|
-
value: function renderWithErrorBoundary(layoutComponent, spaceName) {
|
|
52
|
-
var _this2 = this;
|
|
53
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactErrorBoundary.ErrorBoundary, {
|
|
54
|
-
FallbackComponent: _errorFallback.ErrorFallback,
|
|
55
|
-
onError: function onError(error, info) {
|
|
56
|
-
return _this2.logError(error, info, spaceName);
|
|
57
|
-
},
|
|
58
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
59
|
-
style: {
|
|
60
|
-
width: '100vw',
|
|
61
|
-
height: '100vh'
|
|
62
|
-
},
|
|
63
|
-
children: layoutComponent
|
|
64
|
-
})
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}, {
|
|
68
|
-
key: "logError",
|
|
69
|
-
value: function logError(error, info, space) {
|
|
70
|
-
var errorMessage = "[UIScene]: ErrorBoundary wrap ".concat(space, " error:");
|
|
71
|
-
var componentStackMessage = "componentStack: ".concat(info.componentStack);
|
|
72
|
-
this.logger.error("".concat(errorMessage, "\n") + " Error: ".concat(error.message, "\n") + " Stack: ".concat(error.stack, "\n") + " ".concat(componentStackMessage));
|
|
73
|
-
}
|
|
74
|
-
}]);
|
|
75
|
-
}(_uiNode.FcrUIRootNode);
|
package/lib/ui-node.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface FcrUINodeEvent {
|
|
2
|
-
type: string;
|
|
3
|
-
data: unknown;
|
|
4
|
-
}
|
|
5
|
-
export declare abstract class FcrUINode {
|
|
6
|
-
protected parentNode: FcrUINode;
|
|
7
|
-
protected rootNode: FcrUIRootNode;
|
|
8
|
-
protected subNodes: FcrUINode[];
|
|
9
|
-
protected isActive: boolean;
|
|
10
|
-
constructor(parentNode: FcrUINode, rootNode: FcrUIRootNode);
|
|
11
|
-
addSubNode(node: FcrUINode): void;
|
|
12
|
-
removeNode(node: FcrUINode): void;
|
|
13
|
-
removeAllSubNodes(): void;
|
|
14
|
-
nodeWillActive(): void;
|
|
15
|
-
nodeWillInactive(): void;
|
|
16
|
-
sendBroadcastEvent(event: FcrUINodeEvent): void;
|
|
17
|
-
sendPeerEvent(event: FcrUINodeEvent, node: FcrUINode): void;
|
|
18
|
-
onNodeWillActive(): void;
|
|
19
|
-
onNodeWillInactive(): void;
|
|
20
|
-
onNodeReceivedEvent(event: FcrUINodeEvent): void;
|
|
21
|
-
}
|
|
22
|
-
export declare abstract class FcrUIRootNode extends FcrUINode {
|
|
23
|
-
constructor();
|
|
24
|
-
}
|
|
25
|
-
export declare const registerDependency: (depName: string) => void;
|