fcr-ui-scene 3.4.2 → 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.js +0 -3
- package/lib/common/device-store.d.ts +21 -11
- package/lib/common/device-store.js +228 -139
- package/lib/common/device-stream-store.d.ts +17 -3
- package/lib/common/device-stream-store.js +234 -82
- package/lib/common/event-store.d.ts +24 -8
- package/lib/common/event-store.js +48 -8
- package/lib/common/room-store.js +6 -6
- package/lib/common/security-store.d.ts +43 -25
- package/lib/common/security-store.js +313 -369
- package/lib/electron/app.js +1 -2
- package/lib/electron/bootstrap-dev.js +0 -2
- package/lib/electron/bootstrap-sdk.js +0 -2
- package/lib/electron/injections.js +0 -5
- package/lib/electron/tools.js +0 -4
- package/lib/electron/window.js +0 -2
- package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +45 -1
- package/lib/fragments/control-bar/control-bar-store.js +465 -83
- package/lib/fragments/control-bar/device/index.js +5 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +24 -0
- 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/fragments/control-bar/more-actions/index.css +53 -0
- package/lib/fragments/control-bar/more-actions/index.js +73 -38
- package/lib/fragments/control-bar/security-content/index.css +75 -0
- package/lib/fragments/control-bar/security-content/index.js +105 -19
- package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
- package/lib/fragments/control-bar/view.js +23 -8
- 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 +4 -2
- 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/action-bar/action-bar-collapes-items.d.ts +4 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +31 -14
- package/lib/modules/action-bar/apps/useInterpreter.js +2 -4
- package/lib/modules/action-bar/chat/index.js +8 -8
- package/lib/modules/action-bar/components/apps/app-item/index.js +0 -2
- package/lib/modules/action-bar/components/apps/appitems.js +2 -5
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -1
- package/lib/modules/action-bar/components/collapse/index.js +0 -4
- package/lib/modules/action-bar/components/item/index.js +0 -2
- package/lib/modules/action-bar/components/leave/index.js +0 -2
- package/lib/modules/action-bar/components/more/poppover-content.js +0 -4
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +2 -1
- package/lib/modules/action-bar/components/notification-bar/index.js +0 -2
- package/lib/modules/action-bar/components/trigger-output-language/index.js +2 -1
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +0 -3
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.js +25 -25
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -0
- package/lib/modules/action-bar/leave/assign-host.js +2 -4
- package/lib/modules/action-bar/leave/index.css +10 -0
- package/lib/modules/action-bar/leave/index.js +84 -34
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +13 -1
- package/lib/modules/action-bar/leave/leave-meeting.js +37 -19
- 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 +37 -16
- package/lib/modules/action-bar/participants/index.css +12 -0
- package/lib/modules/action-bar/participants/index.js +23 -16
- package/lib/modules/action-bar/record/index.js +4 -4
- package/lib/modules/action-bar/screen-share/index.js +9 -5
- package/lib/modules/action-bar/screen-share/submenu.js +20 -26
- package/lib/modules/action-bar/security/drop-menu.js +137 -22
- package/lib/modules/action-bar/security/index.js +11 -5
- package/lib/modules/action-bar/settings/index.js +4 -4
- package/lib/modules/action-bar/smaller.js +4 -4
- package/lib/modules/action-bar/store.js +0 -6
- package/lib/modules/action-bar/switch-output-language-room/index.js +8 -2
- package/lib/modules/audio-stream/index.js +0 -3
- package/lib/modules/chat/chat-bar/index.css +1 -0
- package/lib/modules/chat/chat-bar/index.d.ts +3 -3
- package/lib/modules/chat/chat-bar/index.js +47 -37
- package/lib/modules/chat/chat-room-store.js +0 -4
- package/lib/modules/chat/chat-select/index.css +21 -4
- package/lib/modules/chat/chat-select/index.d.ts +1 -1
- package/lib/modules/chat/chat-select/index.js +3 -3
- package/lib/modules/chat/chat.d.ts +1 -2
- package/lib/modules/chat/chat.js +194 -127
- package/lib/modules/chat/components/chat-bar/index.js +0 -2
- package/lib/modules/chat/components/chat-select/index.js +0 -3
- package/lib/modules/chat/components/message-list/index.js +0 -2
- package/lib/modules/chat/message-list.js +64 -50
- package/lib/modules/chat/store.js +0 -1
- package/lib/modules/chat/view.js +0 -4
- package/lib/modules/components/device-control/components/audio-menu/index.js +2 -1
- package/lib/modules/components/device-control/components/video-menu/index.js +2 -1
- package/lib/modules/components/device-control/store.js +0 -1
- package/lib/modules/components/leave-meeting/store.js +0 -2
- package/lib/modules/components/member-window/index.js +0 -4
- package/lib/modules/components/security-menu/index.js +1 -4
- package/lib/modules/components/tab-frame/index.js +0 -4
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -1
- package/lib/modules/connection-gateway/components/phone/index.js +2 -1
- package/lib/modules/connection-gateway/components/tabs/index.js +2 -1
- package/lib/modules/connection-gateway/store.js +0 -4
- package/lib/modules/control-bar/components/meeting-details/index.js +7 -15
- package/lib/modules/control-bar/components/more-actions/index.js +5 -17
- package/lib/modules/control-bar/index.js +0 -2
- package/lib/modules/control-bar/store.js +0 -4
- package/lib/modules/control-bar/view.js +0 -2
- package/lib/modules/device-pretest/settings/beauty.js +2 -1
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -1
- package/lib/modules/device-pretest/store.js +0 -2
- package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +38 -68
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/dialog-container/component/body.js +0 -2
- 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/system-preference/index.js +0 -2
- package/lib/modules/dialog/hooks/useElectron.js +0 -2
- package/lib/modules/dialog/index.js +0 -2
- package/lib/modules/dialog/store.js +0 -3
- package/lib/modules/dialog/view.js +2 -1
- package/lib/modules/event-confirm/store.js +0 -3
- package/lib/modules/event-confirm/view.js +2 -5
- package/lib/modules/event-toast/store.js +0 -2
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/{Interpreter → interpreter}/constant.d.ts +0 -4
- package/lib/modules/{Interpreter → interpreter}/constant.js +3 -45
- 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 +2 -5
- 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.js +0 -4
- package/lib/modules/{Interpreter → interpreter}/store.js +0 -5
- package/lib/modules/{Interpreter → interpreter}/utils.js +0 -1
- package/lib/modules/invite/components/pstn-invite.js +4 -13
- package/lib/modules/invite/enums.js +1 -0
- package/lib/modules/invite/pstn-invite.js +7 -9
- package/lib/modules/invite/store.d.ts +2 -0
- package/lib/modules/invite/store.js +7 -1
- package/lib/modules/invite/voip-invite.js +2 -3
- package/lib/modules/layout/components/Carousel.js +2 -1
- package/lib/modules/layout/components/Gallery.js +2 -2
- package/lib/modules/layout/components/Layout.js +4 -7
- package/lib/modules/layout/components/index.js +0 -1
- package/lib/modules/layout/member-window/index.css +95 -10
- package/lib/modules/layout/member-window/index.d.ts +10 -3
- package/lib/modules/layout/member-window/index.js +221 -110
- package/lib/modules/layout/store.js +0 -3
- package/lib/modules/layout/type.js +2 -0
- package/lib/modules/layout/video-window-datasource.js +0 -4
- package/lib/modules/live-streaming/store.js +0 -1
- package/lib/modules/notification/interpreter-status/index.js +2 -1
- package/lib/modules/offscreen-pulling/index.js +0 -1
- package/lib/modules/participant/attendee/index.js +0 -3
- package/lib/modules/participant/components/attendee/index.js +0 -3
- package/lib/modules/participant/components/drop-menu/index.js +0 -3
- package/lib/modules/participant/components/participants/index.js +0 -1
- package/lib/modules/participant/components/user-action/index.js +0 -2
- package/lib/modules/participant/index.js +0 -2
- package/lib/modules/participant/member-list-data-source.js +0 -3
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/store.js +0 -5
- package/lib/modules/pc-audio-connect/store.js +0 -1
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +2 -1
- package/lib/modules/phone-audio-connect/store.js +0 -3
- package/lib/modules/phone-audio-connect/view.js +2 -1
- package/lib/modules/setting/audio-settings/audio-settings.js +1 -1
- package/lib/modules/setting/minutes-settings/minutes-settings.js +2 -1
- package/lib/modules/setting/state/index.js +0 -4
- package/lib/modules/setting/store.js +4 -8
- 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 +51 -40
- package/lib/modules/share-screen/share-state-bar/index.js +1 -1
- package/lib/modules/share-screen/store.js +0 -4
- package/lib/modules/sound-effect/index.js +0 -1
- 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 +29 -34
- package/lib/modules/state-bar/store.js +0 -1
- package/lib/modules/video-window/members/index.js +2 -1
- package/lib/modules/video-window/store.js +0 -4
- package/lib/modules/video-window/topControl/index.js +0 -2
- 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.js +0 -4
- package/lib/providers/device-privilege-provider.js +0 -2
- package/lib/providers/device-provider.js +0 -5
- package/lib/providers/device-stream-provider.js +0 -1
- package/lib/providers/dialog-provider.js +0 -2
- package/lib/providers/event-provider.js +0 -2
- package/lib/providers/interpreter-provider.js +0 -4
- package/lib/providers/message-provider.js +0 -2
- package/lib/providers/phone-audio-provider.js +0 -3
- package/lib/providers/privilege-provider.js +0 -4
- package/lib/providers/renderer-provider.js +0 -1
- package/lib/providers/room-provider.js +0 -3
- package/lib/providers/screen-share-provider.js +0 -1
- package/lib/scenes/main-scene.js +0 -2
- package/lib/shared-data-source/chat-data.js +0 -2
- package/lib/shared-data-source/interpreter.js +0 -2
- package/lib/shared-data-source/layout-data.js +1 -4
- package/lib/shared-data-source/setting.js +0 -2
- package/lib/shared-data-source/video-window.js +0 -4
- package/lib/shared-data-source/waiting-room.js +0 -1
- package/lib/translations/enUS.d.ts +5 -0
- package/lib/translations/enUS.js +9 -3
- package/lib/translations/zhCN.d.ts +5 -0
- package/lib/translations/zhCN.js +13 -7
- package/lib/type.js +14 -0
- package/lib/ui-scene.js +0 -2
- package/lib/utilities/constant.js +7 -0
- package/lib/utilities/extract.d.ts +1 -1
- package/lib/utilities/meeting-detail.d.ts +2 -0
- package/lib/utilities/meeting-detail.js +39 -0
- package/lib/utilities/privilege.js +0 -2
- package/lib/utilities/renderer-event.js +0 -2
- package/lib/utilities/renderer.js +0 -1
- package/lib/utilities/setting-config-storage.js +0 -2
- package/lib/utilities/tools.js +0 -3
- package/package.json +10 -5
- 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/remote-renderer.js +0 -138
- package/lib/common/type.d.ts +0 -8
- package/lib/common/type.js +0 -6
- 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/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/components/item.js +0 -164
- 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 +0 -86
- package/lib/modules/action-bar/components/trigger-input-language-room/index.d.ts +0 -3
- package/lib/modules/action-bar/components/trigger-input-language-room/index.js +0 -215
- package/lib/modules/action-bar/components/trigger-output-language-room/constant.d.ts +0 -10
- package/lib/modules/action-bar/components/trigger-output-language-room/constant.js +0 -8
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.css +0 -22
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.d.ts +0 -3
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.js +0 -75
- package/lib/modules/action-bar/components/trigger-output-language-room/index.d.ts +0 -8
- package/lib/modules/action-bar/components/trigger-output-language-room/index.js +0 -98
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.d.ts +0 -5
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.js +0 -66
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.d.ts +0 -5
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.js +0 -37
- package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.d.ts +0 -12
- package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.js +0 -138
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +0 -58
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +0 -8
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +0 -100
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +0 -56
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +0 -5
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +0 -33
- 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 +0 -74
- package/lib/modules/action-bar/notification-bar/index.d.ts +0 -2
- package/lib/modules/action-bar/notification-bar/index.js +0 -99
- 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 +0 -86
- 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.css +0 -22
- 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/guide-tooltip/index.js +0 -75
- 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.d.ts +0 -7
- package/lib/modules/components/dialog-container/component/body.js +0 -47
- package/lib/modules/components/dialog-container/index.css +0 -78
- package/lib/modules/components/dialog-container/index.d.ts +0 -11
- package/lib/modules/components/dialog-container/index.js +0 -110
- 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/{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
- /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
|
@@ -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;
|
package/lib/ui-node.js
DELETED
|
@@ -1,156 +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.registerDependency = exports.FcrUIRootNode = exports.FcrUINode = void 0;
|
|
10
|
-
require("core-js/modules/es.array.filter.js");
|
|
11
|
-
require("core-js/modules/es.array.for-each.js");
|
|
12
|
-
require("core-js/modules/es.array.iterator.js");
|
|
13
|
-
require("core-js/modules/es.array.push.js");
|
|
14
|
-
require("core-js/modules/es.object.to-string.js");
|
|
15
|
-
require("core-js/modules/es.reflect.get.js");
|
|
16
|
-
require("core-js/modules/es.reflect.has.js");
|
|
17
|
-
require("core-js/modules/es.reflect.set.js");
|
|
18
|
-
require("core-js/modules/es.set.js");
|
|
19
|
-
require("core-js/modules/es.string.iterator.js");
|
|
20
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
21
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
22
|
-
require("core-js/modules/esnext.iterator.constructor.js");
|
|
23
|
-
require("core-js/modules/esnext.iterator.filter.js");
|
|
24
|
-
require("core-js/modules/esnext.iterator.for-each.js");
|
|
25
|
-
require("core-js/modules/esnext.set.add-all.js");
|
|
26
|
-
require("core-js/modules/esnext.set.delete-all.js");
|
|
27
|
-
require("core-js/modules/esnext.set.difference.v2.js");
|
|
28
|
-
require("core-js/modules/esnext.set.difference.js");
|
|
29
|
-
require("core-js/modules/esnext.set.every.js");
|
|
30
|
-
require("core-js/modules/esnext.set.filter.js");
|
|
31
|
-
require("core-js/modules/esnext.set.find.js");
|
|
32
|
-
require("core-js/modules/esnext.set.intersection.v2.js");
|
|
33
|
-
require("core-js/modules/esnext.set.intersection.js");
|
|
34
|
-
require("core-js/modules/esnext.set.is-disjoint-from.v2.js");
|
|
35
|
-
require("core-js/modules/esnext.set.is-disjoint-from.js");
|
|
36
|
-
require("core-js/modules/esnext.set.is-subset-of.v2.js");
|
|
37
|
-
require("core-js/modules/esnext.set.is-subset-of.js");
|
|
38
|
-
require("core-js/modules/esnext.set.is-superset-of.v2.js");
|
|
39
|
-
require("core-js/modules/esnext.set.is-superset-of.js");
|
|
40
|
-
require("core-js/modules/esnext.set.join.js");
|
|
41
|
-
require("core-js/modules/esnext.set.map.js");
|
|
42
|
-
require("core-js/modules/esnext.set.reduce.js");
|
|
43
|
-
require("core-js/modules/esnext.set.some.js");
|
|
44
|
-
require("core-js/modules/esnext.set.symmetric-difference.v2.js");
|
|
45
|
-
require("core-js/modules/esnext.set.symmetric-difference.js");
|
|
46
|
-
require("core-js/modules/esnext.set.union.v2.js");
|
|
47
|
-
require("core-js/modules/esnext.set.union.js");
|
|
48
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
49
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
50
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
51
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
52
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
53
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
54
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
55
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
56
|
-
var _logger = require("agora-foundation/lib/logger");
|
|
57
|
-
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)); }
|
|
58
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
59
|
-
var FcrUINode = exports.FcrUINode = /*#__PURE__*/function () {
|
|
60
|
-
function FcrUINode(parentNode, rootNode) {
|
|
61
|
-
(0, _classCallCheck2["default"])(this, FcrUINode);
|
|
62
|
-
(0, _defineProperty2["default"])(this, "subNodes", []);
|
|
63
|
-
this.parentNode = parentNode;
|
|
64
|
-
this.rootNode = rootNode;
|
|
65
|
-
this.isActive = true;
|
|
66
|
-
}
|
|
67
|
-
return (0, _createClass2["default"])(FcrUINode, [{
|
|
68
|
-
key: "addSubNode",
|
|
69
|
-
value: function addSubNode(node) {
|
|
70
|
-
this.subNodes.push(node);
|
|
71
|
-
node.nodeWillActive();
|
|
72
|
-
}
|
|
73
|
-
}, {
|
|
74
|
-
key: "removeNode",
|
|
75
|
-
value: function removeNode(node) {
|
|
76
|
-
this.subNodes = this.subNodes.filter(function (subNode) {
|
|
77
|
-
return subNode !== node;
|
|
78
|
-
});
|
|
79
|
-
node.nodeWillInactive();
|
|
80
|
-
}
|
|
81
|
-
}, {
|
|
82
|
-
key: "removeAllSubNodes",
|
|
83
|
-
value: function removeAllSubNodes() {
|
|
84
|
-
this.subNodes.forEach(function (subNode) {
|
|
85
|
-
subNode.onNodeWillInactive();
|
|
86
|
-
});
|
|
87
|
-
this.subNodes = [];
|
|
88
|
-
}
|
|
89
|
-
}, {
|
|
90
|
-
key: "nodeWillActive",
|
|
91
|
-
value: function nodeWillActive() {
|
|
92
|
-
injectDependencies(this.rootNode, this);
|
|
93
|
-
this.isActive = true;
|
|
94
|
-
this.onNodeWillActive();
|
|
95
|
-
this.subNodes.forEach(function (subNode) {
|
|
96
|
-
subNode.nodeWillActive();
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}, {
|
|
100
|
-
key: "nodeWillInactive",
|
|
101
|
-
value: function nodeWillInactive() {
|
|
102
|
-
this.isActive = false;
|
|
103
|
-
this.onNodeWillInactive();
|
|
104
|
-
this.subNodes.forEach(function (subNode) {
|
|
105
|
-
subNode.nodeWillInactive();
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
}, {
|
|
109
|
-
key: "sendBroadcastEvent",
|
|
110
|
-
value: function sendBroadcastEvent(event) {
|
|
111
|
-
this.rootNode.sendBroadcastEvent(event);
|
|
112
|
-
}
|
|
113
|
-
}, {
|
|
114
|
-
key: "sendPeerEvent",
|
|
115
|
-
value: function sendPeerEvent(event, node) {
|
|
116
|
-
node.onNodeReceivedEvent(event);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// sub class should override this method when needed
|
|
120
|
-
}, {
|
|
121
|
-
key: "onNodeWillActive",
|
|
122
|
-
value: function onNodeWillActive() {}
|
|
123
|
-
|
|
124
|
-
// sub class should override this method when needed
|
|
125
|
-
}, {
|
|
126
|
-
key: "onNodeWillInactive",
|
|
127
|
-
value: function onNodeWillInactive() {}
|
|
128
|
-
|
|
129
|
-
// sub class should override this method when needed
|
|
130
|
-
}, {
|
|
131
|
-
key: "onNodeReceivedEvent",
|
|
132
|
-
value: function onNodeReceivedEvent(event) {}
|
|
133
|
-
}]);
|
|
134
|
-
}();
|
|
135
|
-
var injectDependencies = function injectDependencies(rootNode, node) {
|
|
136
|
-
if (rootNode !== null) {
|
|
137
|
-
registeredDependencies.forEach(function (depName) {
|
|
138
|
-
if (Reflect.has(rootNode, depName)) {
|
|
139
|
-
Reflect.set(node, depName, Reflect.get(rootNode, depName));
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
var FcrUIRootNode = exports.FcrUIRootNode = /*#__PURE__*/function (_FcrUINode2) {
|
|
145
|
-
function FcrUIRootNode() {
|
|
146
|
-
(0, _classCallCheck2["default"])(this, FcrUIRootNode);
|
|
147
|
-
return _callSuper(this, FcrUIRootNode, [null, null]);
|
|
148
|
-
}
|
|
149
|
-
(0, _inherits2["default"])(FcrUIRootNode, _FcrUINode2);
|
|
150
|
-
return (0, _createClass2["default"])(FcrUIRootNode);
|
|
151
|
-
}(FcrUINode); // Provider registration
|
|
152
|
-
var registeredDependencies = new Set();
|
|
153
|
-
var registerDependency = exports.registerDependency = function registerDependency(depName) {
|
|
154
|
-
(0, _logger.getLogger)().info("registger dependency: ".concat(depName));
|
|
155
|
-
registeredDependencies.add(depName);
|
|
156
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|