fcr-ui-scene 3.5.1 → 3.6.0
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/creator.d.ts +14 -0
- package/lib/creator.js +239 -14
- package/lib/electron/app.js +0 -21
- package/lib/electron/bootstrap-sdk.js +136 -7
- package/lib/electron/injections.d.ts +19 -7
- package/lib/electron/injections.js +206 -77
- package/lib/electron/ipc/ipc.d.ts +26 -0
- package/lib/electron/ipc/ipc.js +137 -0
- package/lib/electron/ipc/type.d.ts +11 -0
- package/lib/electron/ipc/type.js +19 -0
- package/lib/electron/logger.js +1 -1
- package/lib/electron/main.js +1 -1
- package/lib/electron/plugins/meeting-state.d.ts +1 -0
- package/lib/electron/plugins/meeting-state.js +3 -3
- package/lib/electron/plugins/screenshot.js +2 -2
- package/lib/electron/preload.js +67 -5
- package/lib/electron/window.js +0 -2
- package/lib/global.css +21 -0
- package/lib/modules/action-bar/components/apps/index.js +1 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.js +1 -1
- package/lib/modules/action-bar/components/item/index.d.ts +2 -0
- package/lib/modules/action-bar/components/item/index.js +4 -2
- package/lib/modules/action-bar/components/leave/index.js +1 -0
- package/lib/modules/action-bar/components/more/index.js +1 -0
- package/lib/modules/action-bar/components/record/index.js +43 -106
- package/lib/modules/action-bar/components/record/popover.d.ts +4 -0
- package/lib/modules/action-bar/components/record/popover.js +57 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.js +1 -0
- package/lib/modules/action-bar/components/screen-share/index.js +15 -3
- package/lib/modules/action-bar/components/screen-share/submenu.js +2 -2
- package/lib/modules/action-bar/components/security/index.js +2 -1
- package/lib/modules/action-bar/components/smaller/index.js +1 -1
- package/lib/modules/action-bar/components/trigger-output-language/index.js +17 -22
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +2 -1
- package/lib/modules/action-bar/index.css +3 -2
- package/lib/modules/action-bar/index.js +2 -1
- package/lib/modules/action-bar/store.d.ts +5 -0
- package/lib/modules/action-bar/store.js +30 -12
- package/lib/modules/action-bar/types.d.ts +1 -0
- package/lib/modules/chat/chat-room-store.js +1 -1
- package/lib/modules/chat/components/chat-bar/index.d.ts +1 -1
- package/lib/modules/chat/components/chat-bar/index.js +5 -3
- package/lib/modules/chat/components/chat-select/select-item/index.js +1 -1
- package/lib/modules/chat/components/message-list/index.js +1 -2
- package/lib/modules/chat/components/message-list/message-item/index.d.ts +0 -1
- package/lib/modules/chat/components/message-list/message-item/index.js +9 -10
- package/lib/modules/chat/index.css +24 -0
- package/lib/modules/chat/view.js +13 -3
- package/lib/modules/components/device-control/components/carmera/index.js +4 -5
- package/lib/modules/components/device-control/components/microphone/index.js +4 -5
- package/lib/modules/components/device-control/index.css +6 -3
- package/lib/modules/components/leave-meeting/components/assign-host.js +26 -4
- package/lib/modules/components/leave-meeting/components/index.css +35 -0
- package/lib/modules/components/leave-meeting/index.js +1 -0
- package/lib/modules/components/leave-meeting/store.js +25 -67
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +3 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +1 -1
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +10 -9
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -2
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +1 -1
- package/lib/modules/components/member-window/components/member-actions/index.js +2 -2
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +3 -14
- package/lib/modules/components/member-window/index.css +18 -7
- package/lib/modules/components/member-window/types.d.ts +1 -1
- package/lib/modules/components/security-menu/index.css +2 -2
- package/lib/modules/components/security-menu/index.js +80 -28
- package/lib/modules/components/tab-frame/index.css +1 -1
- package/lib/modules/control-bar/components/meeting-details/index.css +1 -1
- package/lib/modules/control-bar/components/meeting-details/index.js +15 -9
- package/lib/modules/control-bar/components/more-actions/index.js +3 -21
- package/lib/modules/control-bar/components/share-state-nav/index.js +4 -20
- package/lib/modules/control-bar/index.d.ts +2 -0
- package/lib/modules/control-bar/index.js +3 -1
- package/lib/modules/control-bar/store.d.ts +11 -2
- package/lib/modules/control-bar/store.js +103 -95
- package/lib/modules/control-bar/view.js +1 -6
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -3
- package/lib/modules/dialog/components/chat/index.js +24 -17
- package/lib/modules/dialog/components/confirm-leave-meeting/index.d.ts +6 -0
- package/lib/modules/dialog/components/confirm-leave-meeting/index.js +86 -0
- package/lib/modules/dialog/components/control-bar/index.d.ts +1 -2
- package/lib/modules/dialog/components/control-bar/index.js +5 -17
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +4 -2
- package/lib/modules/dialog/components/dialog-container/index.css +2 -1
- package/lib/modules/dialog/components/dialog-container/index.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/index.js +3 -1
- package/lib/modules/dialog/components/participant/index.d.ts +0 -1
- package/lib/modules/dialog/components/participant/index.js +15 -24
- package/lib/modules/dialog/components/pre-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/pre-setting/electron.js +51 -0
- package/lib/modules/dialog/components/pre-setting/index.css +26 -0
- package/lib/modules/dialog/components/pre-setting/index.d.ts +6 -0
- package/lib/modules/dialog/components/pre-setting/index.js +38 -0
- package/lib/modules/dialog/components/pre-setting-container/component/body.d.ts +8 -0
- package/lib/modules/dialog/components/pre-setting-container/component/body.js +80 -0
- package/lib/modules/dialog/components/pre-setting-container/index.css +82 -0
- package/lib/modules/dialog/components/pre-setting-container/index.d.ts +18 -0
- package/lib/modules/dialog/components/pre-setting-container/index.js +117 -0
- package/lib/modules/dialog/components/rename/index.d.ts +4 -0
- package/lib/modules/dialog/components/rename/index.js +72 -0
- package/lib/modules/dialog/components/video-window/index.js +18 -16
- package/lib/modules/dialog/components/widget/electron.d.ts +2 -1
- package/lib/modules/dialog/components/widget/electron.js +3 -2
- package/lib/modules/dialog/components/widget/index.d.ts +2 -1
- package/lib/modules/dialog/components/widget/index.js +4 -6
- package/lib/modules/dialog/dialogs.d.ts +1 -0
- package/lib/modules/dialog/dialogs.js +3 -2
- package/lib/modules/dialog/hooks/useElectron.d.ts +2 -0
- package/lib/modules/dialog/hooks/useElectron.js +11 -13
- package/lib/modules/dialog/index.d.ts +2 -0
- package/lib/modules/dialog/index.js +2 -1
- package/lib/modules/dialog/store.d.ts +8 -3
- package/lib/modules/dialog/store.js +38 -26
- package/lib/modules/dialog/type.d.ts +1 -0
- package/lib/modules/dialog/view.js +2 -1
- package/lib/modules/event-confirm/index.d.ts +2 -0
- package/lib/modules/event-confirm/index.js +2 -1
- package/lib/modules/event-confirm/store.d.ts +9 -1
- package/lib/modules/event-confirm/store.js +94 -8
- package/lib/modules/event-confirm/view.js +55 -46
- package/lib/modules/{sound-effect → event-sound}/index.d.ts +3 -2
- package/lib/modules/{sound-effect → event-sound}/index.js +9 -5
- package/lib/modules/event-toast/store.js +2 -0
- package/lib/modules/interpreter/dialog-content/index.js +4 -1
- package/lib/modules/interpreter/index.d.ts +2 -0
- package/lib/modules/interpreter/index.js +2 -1
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -0
- package/lib/modules/interpreter/store.d.ts +2 -2
- package/lib/modules/interpreter/store.js +30 -24
- package/lib/modules/interpreter/type.d.ts +2 -0
- package/lib/modules/invite/components/pstn-invite.js +3 -9
- package/lib/modules/invite/components/voip-invite.css +26 -0
- package/lib/modules/invite/components/voip-invite.d.ts +1 -0
- package/lib/modules/invite/components/voip-invite.js +8 -11
- package/lib/modules/invite/index.css +16 -3
- package/lib/modules/invite/index.d.ts +2 -1
- package/lib/modules/invite/index.js +2 -1
- package/lib/modules/invite/store.d.ts +5 -1
- package/lib/modules/invite/store.js +8 -1
- package/lib/modules/layout/components/Carousel.d.ts +1 -1
- package/lib/modules/layout/components/Carousel.js +16 -118
- package/lib/modules/layout/components/CommonVideoRenderer.d.ts +13 -0
- package/lib/modules/layout/components/CommonVideoRenderer.js +214 -0
- package/lib/modules/layout/components/Gallery.d.ts +1 -0
- package/lib/modules/layout/components/Gallery.js +62 -205
- package/lib/modules/layout/components/index.css +17 -34
- package/lib/modules/layout/index.d.ts +2 -0
- package/lib/modules/layout/index.js +2 -1
- package/lib/modules/layout/store.d.ts +5 -2
- package/lib/modules/layout/store.js +47 -39
- package/lib/modules/layout/type.d.ts +4 -0
- package/lib/modules/layout/type.js +6 -1
- package/lib/modules/live-streaming/store.d.ts +1 -0
- package/lib/modules/live-streaming/store.js +19 -8
- package/lib/modules/participant/components/confirm-input/index.d.ts +4 -4
- package/lib/modules/participant/components/confirm-input/index.js +74 -6
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +27 -3
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +4 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +3 -2
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +4 -3
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +1 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +9 -1
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +1 -1
- package/lib/modules/participant/components/participants/components/participants/index.css +1 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +18 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +12 -5
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +1 -8
- package/lib/modules/participant/index.css +6 -0
- package/lib/modules/participant/index.d.ts +1 -0
- package/lib/modules/participant/index.js +9 -0
- package/lib/modules/participant/store.d.ts +6 -0
- package/lib/modules/participant/store.js +130 -96
- package/lib/modules/pc-audio-connect/store.js +1 -1
- package/lib/modules/phone-audio-connect/index.d.ts +2 -0
- package/lib/modules/phone-audio-connect/index.js +2 -1
- package/lib/modules/phone-audio-connect/store.d.ts +4 -1
- package/lib/modules/phone-audio-connect/store.js +4 -2
- package/lib/modules/setting/audio-settings/audio-settings.js +70 -48
- package/lib/modules/setting/audio-settings/index.css +23 -6
- package/lib/modules/setting/general-settings/general-settings.d.ts +1 -2
- package/lib/modules/setting/general-settings/general-settings.js +111 -37
- package/lib/modules/setting/general-settings/index.css +15 -0
- package/lib/modules/setting/index.d.ts +4 -1
- package/lib/modules/setting/index.js +7 -4
- package/lib/modules/setting/state/index.js +1 -1
- package/lib/modules/setting/store.d.ts +24 -11
- package/lib/modules/setting/store.js +203 -142
- package/lib/modules/setting/video-settings/index.css +13 -2
- package/lib/modules/setting/video-settings/video-settings-basic.js +18 -27
- package/lib/modules/setting/video-settings/video-settings.d.ts +0 -2
- package/lib/modules/setting/video-settings/video-settings.js +3 -2
- package/lib/modules/setting/view.d.ts +11 -2
- package/lib/modules/setting/view.js +93 -71
- package/lib/modules/share-screen/components/selection/index.js +6 -2
- package/lib/modules/share-screen/index.d.ts +4 -1
- package/lib/modules/share-screen/index.js +3 -1
- package/lib/modules/share-screen/store.d.ts +15 -5
- package/lib/modules/share-screen/store.js +105 -59
- package/lib/modules/share-screen/view.js +1 -1
- package/lib/modules/state-bar/index.css +4 -2
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +2 -1
- package/lib/modules/state-bar/layout-config.js +1 -0
- package/lib/modules/state-bar/live-streaming-state.js +1 -0
- package/lib/modules/state-bar/meeting-detail.css +10 -1
- package/lib/modules/state-bar/meeting-details.js +42 -26
- package/lib/modules/state-bar/meeting-network-state.css +8 -0
- package/lib/modules/state-bar/meeting-time.js +9 -20
- package/lib/modules/state-bar/store.d.ts +5 -1
- package/lib/modules/state-bar/store.js +10 -3
- package/lib/modules/state-bar/view.js +17 -6
- package/lib/modules/video-window/components/members/index.js +0 -3
- package/lib/modules/waiting-room-layout/index.css +13 -0
- package/lib/modules/waiting-room-layout/index.d.ts +2 -1
- package/lib/modules/waiting-room-layout/index.js +2 -1
- package/lib/modules/waiting-room-layout/store.d.ts +12 -1
- package/lib/modules/waiting-room-layout/store.js +42 -6
- package/lib/modules/waiting-room-layout/view.js +22 -5
- package/lib/modules/whiteboard/components/control-bar/index.css +1 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +1 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/ style.css +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +3 -14
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.js +83 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/history.js +3 -3
- package/lib/modules/whiteboard/components/toolbar/components/item/index.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/item/index.js +42 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +6 -6
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -113
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +18 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +276 -83
- package/lib/modules/whiteboard/context.d.ts +1 -2
- package/lib/modules/whiteboard/index.d.ts +1 -14
- package/lib/modules/whiteboard/index.js +131 -426
- package/lib/modules/whiteboard/view.js +12 -10
- package/lib/modules/widget/sdk.js +2 -1
- package/lib/object-manager.d.ts +8 -0
- package/lib/object-manager.js +75 -0
- package/lib/plugins/browser-runtime-plugin.js +19 -14
- package/lib/providers/ability-provider.d.ts +8 -0
- package/lib/providers/ability-provider.js +14 -0
- package/lib/providers/device-privilege-provider.d.ts +1 -0
- package/lib/providers/device-privilege-provider.js +53 -75
- package/lib/providers/device-provider.d.ts +18 -8
- package/lib/providers/device-provider.js +397 -209
- package/lib/providers/device-stream-provider.js +0 -4
- package/lib/providers/dialog-provider.d.ts +1 -0
- package/lib/providers/dialog-provider.js +4 -18
- package/lib/providers/event-provider.js +45 -2
- package/lib/providers/interpreter-provider.d.ts +4 -0
- package/lib/providers/interpreter-provider.js +166 -137
- package/lib/providers/message-provider.js +44 -2
- package/lib/providers/privilege-provider.d.ts +33 -0
- package/lib/providers/privilege-provider.js +120 -45
- package/lib/providers/room-provider.d.ts +12 -10
- package/lib/providers/room-provider.js +162 -262
- package/lib/providers/screen-share-provider.d.ts +4 -0
- package/lib/providers/screen-share-provider.js +3 -6
- package/lib/providers/widget-provider.js +6 -4
- package/lib/runtime.d.ts +20 -8
- package/lib/scenes/main-scene.d.ts +2 -0
- package/lib/scenes/main-scene.js +95 -37
- package/lib/scenes/waiting-scene.js +16 -13
- package/lib/schema.d.ts +55 -32
- package/lib/schema.js +23 -9
- package/lib/shared-data-source/config.d.ts +6 -2
- package/lib/shared-data-source/config.js +81 -10
- package/lib/shared-data-source/member-data.d.ts +16 -20
- package/lib/shared-data-source/member-data.js +121 -110
- package/lib/shared-data-source/screen-share-data-source.d.ts +37 -0
- package/lib/shared-data-source/screen-share-data-source.js +134 -0
- package/lib/shared-data-source/security-data.d.ts +1 -0
- package/lib/shared-data-source/security-data.js +3 -5
- package/lib/shared-data-source/setting.d.ts +1 -0
- package/lib/shared-data-source/setting.js +33 -17
- package/lib/shared-data-source/video-window.d.ts +3 -3
- package/lib/shared-data-source/video-window.js +55 -38
- package/lib/translations/enUS.d.ts +48 -1
- package/lib/translations/enUS.js +101 -17
- package/lib/translations/zhCN.d.ts +48 -1
- package/lib/translations/zhCN.js +88 -4
- package/lib/type.d.ts +40 -20
- package/lib/type.js +14 -1
- package/lib/ui-manager.d.ts +11 -9
- package/lib/ui-manager.js +118 -29
- package/lib/ui-scene.d.ts +7 -4
- package/lib/ui-scene.js +111 -128
- package/lib/utilities/constant.d.ts +3 -1
- package/lib/utilities/constant.js +2 -0
- package/lib/utilities/copyText.js +15 -11
- package/lib/utilities/default-config.d.ts +2 -0
- package/lib/utilities/default-config.js +11 -5
- package/lib/utilities/i18n-common-data.d.ts +2 -0
- package/lib/utilities/i18n-common-data.js +15 -0
- package/lib/utilities/logger.d.ts +0 -1
- package/lib/utilities/logger.js +3 -4
- package/lib/utilities/renderer.d.ts +0 -9
- package/lib/utilities/renderer.js +1 -70
- package/lib/utilities/screen.js +3 -1
- package/lib/utilities/setting-config-storage.d.ts +6 -1
- package/lib/utilities/setting-config-storage.js +21 -4
- package/lib/utilities/tools.d.ts +7 -6
- package/lib/utilities/tools.js +56 -44
- package/lib/utilities/ui-resources.d.ts +6 -0
- package/lib/utilities/ui-resources.js +47 -9
- package/lib/waiting-room-control-manager.d.ts +4 -4
- package/lib/waiting-room-control-manager.js +29 -9
- package/package.json +6 -6
- package/public/assets/browser/images/default1.jpg +0 -0
- package/public/assets/browser/images/default2.jpg +0 -0
- package/public/assets/browser/images/default3.jpg +0 -0
- package/public/assets/browser/images/default4.jpg +0 -0
- package/public/assets/browser/images/default5.jpg +0 -0
- package/public/assets/browser/images/default6.jpg +0 -0
- package/public/assets/browser/images/default7.jpg +0 -0
- package/public/assets/browser/sound_effects/pretest.mp3 +0 -0
- package/public/assets/browser/sound_effects/recording_started.mp3 +0 -0
- package/public/assets/browser/sound_effects/remote_user_joined.mp3 +0 -0
- package/public/assets/browser/sound_effects/speaker_test.mp3 +0 -0
- package/public/assets/browser/videos/default8.mp4 +0 -0
- package/public/assets/browser/videos/default9.mp4 +0 -0
- package/public/assets/electron/images/default1.jpg +0 -0
- package/public/assets/electron/images/default2.jpg +0 -0
- package/public/assets/electron/sound_effects/pretest.mp3 +0 -0
- package/public/assets/electron/videos/default8.mp4 +0 -0
- package/public/index.html +103 -82
- package/lib/hooks/meeting-time.d.ts +0 -15
- package/lib/hooks/meeting-time.js +0 -92
- package/lib/login-confirm-dialog.d.ts +0 -13
- package/lib/login-confirm-dialog.js +0 -85
- package/lib/modules/action-bar/components/apps/appitems.d.ts +0 -3
- package/lib/modules/action-bar/components/apps/appitems.js +0 -45
- package/lib/modules/components/member-window/components/member-board.d.ts +0 -2
- package/lib/modules/components/member-window/components/member-board.js +0 -63
- package/lib/modules/dialog/components/system-preference/bg1.png +0 -0
- package/lib/modules/dialog/components/system-preference/bg2.png +0 -0
- package/lib/modules/dialog/types/index.d.ts +0 -70
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.d.ts +0 -6
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.js +0 -28
- package/lib/modules/participant/components/attendee/components/user-avatar/index.d.ts +0 -7
- package/lib/modules/participant/components/attendee/components/user-avatar/index.js +0 -39
- package/lib/modules/participant/components/attendee/index.css +0 -69
- package/lib/modules/participant/components/attendee/index.d.ts +0 -4
- package/lib/modules/participant/components/attendee/index.js +0 -337
- package/lib/modules/participant/components/drop-menu/index.css +0 -60
- package/lib/modules/participant/components/drop-menu/index.d.ts +0 -2
- package/lib/modules/participant/components/drop-menu/index.js +0 -189
- package/lib/modules/participant/components/footer/buttons.d.ts +0 -6
- package/lib/modules/participant/components/footer/buttons.js +0 -52
- package/lib/modules/participant/components/footer/index.d.ts +0 -4
- package/lib/modules/participant/components/footer/index.js +0 -37
- package/lib/modules/participant/components/merge/index.d.ts +0 -11
- package/lib/modules/participant/components/merge/index.js +0 -49
- package/lib/modules/participant/components/rename/index.d.ts +0 -4
- package/lib/modules/participant/components/rename/index.js +0 -45
- package/lib/modules/participant/components/user-action/index.d.ts +0 -17
- package/lib/modules/participant/components/user-action/index.js +0 -169
- package/lib/modules/video-window/deviceState/index.d.ts +0 -16
- package/lib/modules/video-window/deviceState/index.js +0 -75
- package/lib/modules/video-window/members/index.css +0 -51
- package/lib/modules/video-window/members/index.d.ts +0 -2
- package/lib/modules/video-window/members/index.js +0 -157
- package/lib/modules/video-window/speaking/index.css +0 -69
- package/lib/modules/video-window/speaking/index.d.ts +0 -3
- package/lib/modules/video-window/speaking/index.js +0 -57
- package/lib/modules/video-window/topControl/index.css +0 -35
- package/lib/modules/video-window/topControl/index.d.ts +0 -3
- package/lib/modules/video-window/topControl/index.js +0 -92
- /package/lib/modules/{sound-effect → event-sound}/sound-effect-player.d.ts +0 -0
- /package/lib/modules/{sound-effect → event-sound}/sound-effect-player.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fcr-ui-scene",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": "ssh://git@git.agoralab.co/aduc/fcr-ui-scene-desktop.git",
|
|
6
6
|
"author": "agora.io",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"@react-spring/web": "^9.7.3",
|
|
23
23
|
"@use-gesture/react": "^10.3.1",
|
|
24
24
|
"agora-electron-sdk": "4.3.2-build.11-rc.1",
|
|
25
|
-
"agora-foundation": "
|
|
26
|
-
"agora-ui-foundation": "
|
|
25
|
+
"agora-foundation": "^3.6.0",
|
|
26
|
+
"agora-ui-foundation": "^3.6.0",
|
|
27
27
|
"classnames": "^2.5.1",
|
|
28
28
|
"core-js": "^3.33.3",
|
|
29
29
|
"dayjs": "^1.10.4",
|
|
30
30
|
"electron-screenshots": "^0.5.26",
|
|
31
|
-
"fcr-core": "
|
|
31
|
+
"fcr-core": "^3.6.0",
|
|
32
32
|
"js-md5": "^0.8.3",
|
|
33
33
|
"jszip": "^3.10.1",
|
|
34
34
|
"lodash": "^4.17.21",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@types/react-dom": "^17.0.11",
|
|
60
60
|
"@types/react-virtualized": "^9.21.30",
|
|
61
61
|
"@types/tinycolor2": "^1.4.6",
|
|
62
|
-
"agora-toolchain": "
|
|
62
|
+
"agora-toolchain": "^3.6.0",
|
|
63
63
|
"core-js": "^3.33.3",
|
|
64
64
|
"electron": "22.3.27",
|
|
65
65
|
"husky": "^9.0.11",
|
|
@@ -71,4 +71,4 @@
|
|
|
71
71
|
"lint-staged": {
|
|
72
72
|
"*.{ts,tsx,html,css}": "prettier --write"
|
|
73
73
|
}
|
|
74
|
-
}
|
|
74
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/public/index.html
CHANGED
|
@@ -10,17 +10,16 @@
|
|
|
10
10
|
height: 100vh;
|
|
11
11
|
background-color: rgba(144, 144, 144, 0.6);
|
|
12
12
|
position: fixed;
|
|
13
|
-
z-index: 9999;
|
|
14
13
|
top: 0px;
|
|
15
14
|
left: 0px;
|
|
16
15
|
display: flex;
|
|
17
16
|
justify-content: center;
|
|
18
17
|
align-items: center;
|
|
18
|
+
z-index: 9999;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.fcr-launch-failure-comp-modal {
|
|
22
|
-
width:
|
|
23
|
-
height: 374px;
|
|
22
|
+
width: 280px;
|
|
24
23
|
background-color: rgba(255, 255, 255, 0.85);
|
|
25
24
|
border-radius: 24px;
|
|
26
25
|
display: flex;
|
|
@@ -28,12 +27,16 @@
|
|
|
28
27
|
border: 1px solid #e3e7efff;
|
|
29
28
|
display: flex;
|
|
30
29
|
flex-direction: column;
|
|
30
|
+
padding: 0px 24px 24px 24px;
|
|
31
|
+
box-sizing: content-box;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
.fcr-launch-failure-comp-banner {
|
|
34
35
|
margin: 0 auto;
|
|
35
36
|
width: 280px;
|
|
36
37
|
align-self: flex-start;
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: -12px;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
.fcr-launch-failure-comp-info {
|
|
@@ -53,16 +56,22 @@
|
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
.fcr-confirm-btn {
|
|
56
|
-
width:
|
|
59
|
+
width: 100%;
|
|
57
60
|
height: 36px;
|
|
58
61
|
background-color: rgba(66, 98, 255, 1);
|
|
59
62
|
color: #ffffff;
|
|
60
63
|
text-align: center;
|
|
61
64
|
line-height: 36px;
|
|
62
|
-
border-radius:
|
|
65
|
+
border-radius: 6px;
|
|
63
66
|
margin: 0 auto;
|
|
64
67
|
cursor: pointer;
|
|
65
68
|
}
|
|
69
|
+
.fcr-launch-failure-comp-banner-box {
|
|
70
|
+
position: relative;
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 180px;
|
|
73
|
+
margin: 0 auto;
|
|
74
|
+
}
|
|
66
75
|
</style>
|
|
67
76
|
</head>
|
|
68
77
|
|
|
@@ -75,12 +84,16 @@
|
|
|
75
84
|
<div id="root"></div>
|
|
76
85
|
<div id="fcr-launch-failure-comp" style="display: none">
|
|
77
86
|
<div class="fcr-launch-failure-comp-modal">
|
|
78
|
-
<
|
|
87
|
+
<div class="fcr-launch-failure-comp-banner-box">
|
|
88
|
+
<img class="fcr-launch-failure-comp-banner" src="assets/leave-meeting.png" />
|
|
89
|
+
</div>
|
|
79
90
|
<div class="fcr-launch-failure-comp-info">
|
|
80
|
-
<div class="fcr-launch-failure-comp-h">
|
|
91
|
+
<!-- <div class="fcr-launch-failure-comp-h">
|
|
81
92
|
<span id="fcr-launch-failure-comp-title"></span>
|
|
93
|
+
</div> -->
|
|
94
|
+
<div id="fcr-launch-failure-error-info" class="fcr-launch-failure-comp-desc">
|
|
95
|
+
Error: code=100050051, message=domain:RTE-CLIENT,info: failed to detect AP
|
|
82
96
|
</div>
|
|
83
|
-
<div id="fcr-launch-failure-error-info" class="fcr-launch-failure-comp-desc"></div>
|
|
84
97
|
</div>
|
|
85
98
|
<div id="fcr-launch-failure-confirm-btn" class="fcr-confirm-btn">
|
|
86
99
|
<span id="fcr-launch-failure-btn-text">I know</span>
|
|
@@ -118,6 +131,11 @@
|
|
|
118
131
|
});
|
|
119
132
|
}
|
|
120
133
|
|
|
134
|
+
function renderMeetingName(meetingName) {
|
|
135
|
+
if (meetingName.length <= 20) return meetingName;
|
|
136
|
+
return meetingName.slice(0, 20) + '...';
|
|
137
|
+
}
|
|
138
|
+
|
|
121
139
|
window._transI18n = (key, replaceKeys) => {
|
|
122
140
|
const currentLang = window.$$agora_language === 'zh' ? 'zh' : 'en';
|
|
123
141
|
const langResource = window[`${currentLang}LangResource`];
|
|
@@ -157,85 +175,88 @@
|
|
|
157
175
|
}
|
|
158
176
|
}
|
|
159
177
|
};
|
|
178
|
+
|
|
160
179
|
(async () => {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
try {
|
|
169
|
-
launchOptionsObj = JSON.parse(launchOptions);
|
|
170
|
-
} catch (e) {
|
|
171
|
-
console.error('Failed to parse launch options', e);
|
|
172
|
-
}
|
|
173
|
-
const {
|
|
174
|
-
appId,
|
|
175
|
-
userId,
|
|
176
|
-
parameters,
|
|
177
|
-
cameraExpectedOff,
|
|
178
|
-
autoConnectAudio,
|
|
179
|
-
microphoneExpectedOff,
|
|
180
|
-
widgets,
|
|
181
|
-
...others
|
|
182
|
-
} = launchOptionsObj;
|
|
183
|
-
const creator = new FcrUIScene.FcrUISceneCreator({
|
|
184
|
-
appId,
|
|
185
|
-
userId,
|
|
186
|
-
parameters,
|
|
187
|
-
});
|
|
188
|
-
const settingConfig = creator.getSettingConfig();
|
|
189
|
-
settingConfig.media = {
|
|
190
|
-
cameraExpectedOff,
|
|
191
|
-
autoConnectAudio,
|
|
192
|
-
microphoneExpectedOff,
|
|
180
|
+
let creator;
|
|
181
|
+
window.runtime.onCreatorInit = (config) => {
|
|
182
|
+
creator = new FcrUIScene.FcrUISceneCreator(config);
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
window.runtime.onSettingOpen = () => {
|
|
186
|
+
creator.openSetting();
|
|
193
187
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
188
|
+
|
|
189
|
+
window.runtime.onSettingClose = () => {
|
|
190
|
+
creator.closeSetting();
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
window.runtime.onSetParameters = (parameters) => {
|
|
194
|
+
creator.setParameters(parameters);
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
window.runtime.onLaunchMeeting = (launchOptions) => {
|
|
198
|
+
setFullScreenFailureComp(false);
|
|
199
|
+
setLoading(true);
|
|
200
|
+
document.querySelector('#fcr-launch-failure-confirm-btn').addEventListener('click', () => {
|
|
201
|
+
setFullScreenFailureComp(false);
|
|
202
|
+
window.runtime.browserWindow.hide();
|
|
197
203
|
});
|
|
198
|
-
|
|
199
|
-
const uiScene = creator.launch(
|
|
200
|
-
others,
|
|
201
|
-
() => {
|
|
202
|
-
window.runtime.quitApp();
|
|
203
|
-
},
|
|
204
|
-
() => {},
|
|
205
|
-
() => {},
|
|
206
|
-
document.getElementById('root'),
|
|
207
|
-
);
|
|
208
|
-
uiScene.addObserver({
|
|
209
|
-
onLaunchSuccess: () => {
|
|
210
|
-
setLoading(false);
|
|
211
|
-
// document.querySelector('title').innerText =
|
|
212
|
-
// window.$$agora_language === 'zh'
|
|
213
|
-
// ? '参会者ID:' + userId
|
|
214
|
-
// : 'Meeting Participant ID:' + userId;
|
|
215
|
-
},
|
|
216
|
-
onLaunchFailure: (roomId, error) => {
|
|
217
|
-
const errorCode = Number(error.code);
|
|
218
|
-
let errorMessage = error.message;
|
|
219
|
-
|
|
220
|
-
if (errorCode === 732403100) {
|
|
221
|
-
errorMessage = window._transI18n('fmt_lock_error');
|
|
222
|
-
} else if (errorCode === 732403101) {
|
|
223
|
-
errorMessage = window._transI18n('fmt_pc_room_not_exist_error');
|
|
224
|
-
} else if (errorCode === 732403103) {
|
|
225
|
-
errorMessage = window._transI18n('fmt_host_leave_error');
|
|
226
|
-
} else if (errorCode === 720410100) {
|
|
227
|
-
errorMessage = window._transI18n('fmt_end_error');
|
|
228
|
-
} else {
|
|
229
|
-
errorMessage = `Error: code=${errorCode}, message=${errorMessage}`;
|
|
230
|
-
}
|
|
204
|
+
const { widgets, ...others } = launchOptions;
|
|
231
205
|
|
|
232
|
-
|
|
233
|
-
|
|
206
|
+
if (widgets && widgets instanceof Array) {
|
|
207
|
+
widgets.forEach((w) => {
|
|
208
|
+
creator.registerWidget(w);
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
const uiScene = creator.launch(
|
|
212
|
+
others,
|
|
213
|
+
() => {
|
|
214
|
+
window.runtime.browserWindow.hide();
|
|
215
|
+
},
|
|
216
|
+
() => {},
|
|
217
|
+
() => {},
|
|
218
|
+
document.getElementById('root'),
|
|
219
|
+
);
|
|
234
220
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
|
|
221
|
+
window.runtime.onCloseWindowBeforeLaunchSuccess = () => {
|
|
222
|
+
uiScene.exit();
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
uiScene.addObserver({
|
|
226
|
+
onLaunchSuccess: () => {
|
|
227
|
+
setLoading(false);
|
|
228
|
+
const roomName = uiScene._roomProvider._currentRoomControl.getRoomInfo().roomName || '';
|
|
229
|
+
// document.querySelector('title').innerText = renderMeetingName(roomName);
|
|
230
|
+
document.querySelector('title').innerText = roomName;
|
|
231
|
+
const roomId = uiScene._roomProvider._currentRoomControl.getRoomInfo().roomId || '';
|
|
232
|
+
window.runtime.launchSuccess(roomId);
|
|
233
|
+
},
|
|
234
|
+
onLaunchFailure: (roomId, error) => {
|
|
235
|
+
const errorCode = Number(error.code);
|
|
236
|
+
let errorMessage = error.message;
|
|
237
|
+
|
|
238
|
+
if (errorCode === 732403100 || errorCode === 631735290) {
|
|
239
|
+
errorMessage = window._transI18n('fmt_lock_error');
|
|
240
|
+
} else if (errorCode === 732403101) {
|
|
241
|
+
errorMessage = window._transI18n('fmt_pc_room_not_exist_error');
|
|
242
|
+
} else if (errorCode === 732403103) {
|
|
243
|
+
errorMessage = window._transI18n('fmt_host_leave_error');
|
|
244
|
+
} else if (errorCode === 720410100) {
|
|
245
|
+
errorMessage = window._transI18n('fmt_end_error');
|
|
246
|
+
} else {
|
|
247
|
+
errorMessage = `Error: code=${errorCode}, message=${errorMessage}`;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
setFullScreenFailureComp(true, errorMessage);
|
|
251
|
+
window.runtime.launchFailure(roomId, errorCode);
|
|
252
|
+
},
|
|
253
|
+
|
|
254
|
+
onExited: (roomId, reason) => {
|
|
255
|
+
window.runtime.exitedMeeting(roomId, reason);
|
|
256
|
+
window.runtime.browserWindow.hide();
|
|
257
|
+
},
|
|
258
|
+
});
|
|
259
|
+
};
|
|
239
260
|
})();
|
|
240
261
|
</script>
|
|
241
262
|
</html>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FcrRoomSchedule } from 'fcr-core/lib/type';
|
|
2
|
-
declare enum MeetingStatus {
|
|
3
|
-
NORMAL = "normal",
|
|
4
|
-
SOON_TO_END = "soon2end",
|
|
5
|
-
OVERTIME = "overtime"
|
|
6
|
-
}
|
|
7
|
-
export declare const useMeetingTime: (scheduleInfo: FcrRoomSchedule | undefined) => {
|
|
8
|
-
totalHourText: string;
|
|
9
|
-
totalMinuteText: string;
|
|
10
|
-
status: MeetingStatus;
|
|
11
|
-
meetingTime: string;
|
|
12
|
-
totalHours: number;
|
|
13
|
-
totalMins: number;
|
|
14
|
-
};
|
|
15
|
-
export {};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.useMeetingTime = void 0;
|
|
9
|
-
require("core-js/modules/es.error.to-string.js");
|
|
10
|
-
require("core-js/modules/es.array.concat.js");
|
|
11
|
-
require("core-js/modules/es.date.now.js");
|
|
12
|
-
require("core-js/modules/es.date.to-string.js");
|
|
13
|
-
require("core-js/modules/es.object.to-string.js");
|
|
14
|
-
require("core-js/modules/es.regexp.to-string.js");
|
|
15
|
-
require("core-js/modules/es.string.pad-start.js");
|
|
16
|
-
require("core-js/modules/web.timers.js");
|
|
17
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
18
|
-
var _react = require("react");
|
|
19
|
-
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
20
|
-
var _duration = _interopRequireDefault(require("dayjs/plugin/duration"));
|
|
21
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
22
|
-
var MeetingStatus = /*#__PURE__*/function (MeetingStatus) {
|
|
23
|
-
MeetingStatus["NORMAL"] = "normal";
|
|
24
|
-
MeetingStatus["SOON_TO_END"] = "soon2end";
|
|
25
|
-
MeetingStatus["OVERTIME"] = "overtime";
|
|
26
|
-
return MeetingStatus;
|
|
27
|
-
}(MeetingStatus || {});
|
|
28
|
-
_dayjs["default"].extend(_duration["default"]);
|
|
29
|
-
var useMeetingTime = exports.useMeetingTime = function useMeetingTime(scheduleInfo) {
|
|
30
|
-
var t = (0, _i18n.useI18n)();
|
|
31
|
-
var _useState = (0, _react.useState)(MeetingStatus.NORMAL),
|
|
32
|
-
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
33
|
-
status = _useState2[0],
|
|
34
|
-
setStatus = _useState2[1];
|
|
35
|
-
var _useState3 = (0, _react.useState)('00:00'),
|
|
36
|
-
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
37
|
-
meetingTime = _useState4[0],
|
|
38
|
-
setMeetingTime = _useState4[1];
|
|
39
|
-
var _useMemo = (0, _react.useMemo)(function () {
|
|
40
|
-
if (!scheduleInfo) return [0, 0];
|
|
41
|
-
var dr = _dayjs["default"].duration(scheduleInfo.duration);
|
|
42
|
-
var asHours = Math.floor(dr.asHours());
|
|
43
|
-
var hours = 0;
|
|
44
|
-
var mins = 0;
|
|
45
|
-
if (asHours >= 2) {
|
|
46
|
-
hours = asHours;
|
|
47
|
-
mins = Math.ceil(dr.asMinutes() - asHours * 60);
|
|
48
|
-
} else {
|
|
49
|
-
hours = 0;
|
|
50
|
-
mins = Math.ceil(dr.asMinutes());
|
|
51
|
-
}
|
|
52
|
-
return [hours, mins];
|
|
53
|
-
}, [scheduleInfo]),
|
|
54
|
-
_useMemo2 = (0, _slicedToArray2["default"])(_useMemo, 2),
|
|
55
|
-
totalHours = _useMemo2[0],
|
|
56
|
-
totalMins = _useMemo2[1];
|
|
57
|
-
(0, _react.useEffect)(function () {
|
|
58
|
-
if (!scheduleInfo) return;
|
|
59
|
-
var timer = setInterval(function () {
|
|
60
|
-
var meetingDuration = Math.floor((Date.now() - scheduleInfo.startTime) / 1000);
|
|
61
|
-
var scheduleDuration = scheduleInfo.duration / 1000;
|
|
62
|
-
var remainTime = scheduleDuration - meetingDuration;
|
|
63
|
-
var currentStatus = remainTime > 600 ? MeetingStatus.NORMAL : remainTime > 0 ? MeetingStatus.SOON_TO_END : MeetingStatus.OVERTIME;
|
|
64
|
-
setStatus(currentStatus);
|
|
65
|
-
var showHour = meetingDuration / 60 > 120;
|
|
66
|
-
var h = meetingDuration / 3600;
|
|
67
|
-
var m = showHour ? meetingDuration % 3600 / 60 : meetingDuration / 60;
|
|
68
|
-
var s = meetingDuration % 60;
|
|
69
|
-
var hours = Math.floor(Math.max(h, 0)).toString().padStart(2, '0');
|
|
70
|
-
var mins = Math.floor(Math.max(m, 0)).toString().padStart(2, '0');
|
|
71
|
-
var seconds = Math.max(s, 0).toString().padStart(2, '0');
|
|
72
|
-
if (showHour) {
|
|
73
|
-
setMeetingTime("".concat(hours, ":").concat(mins, ":").concat(seconds));
|
|
74
|
-
} else {
|
|
75
|
-
setMeetingTime("".concat(mins, ":").concat(seconds));
|
|
76
|
-
}
|
|
77
|
-
}, 1000);
|
|
78
|
-
return function () {
|
|
79
|
-
timer && clearInterval(timer);
|
|
80
|
-
};
|
|
81
|
-
}, [scheduleInfo]);
|
|
82
|
-
var totalHourText = totalHours > 0 ? "".concat(totalHours).concat(t('fmt_statusbar_label_hour')) : '';
|
|
83
|
-
var totalMinuteText = totalMins > 0 ? "".concat(totalMins).concat(t('fmt_statusbar_label_minutes')) : '';
|
|
84
|
-
return {
|
|
85
|
-
totalHourText: totalHourText,
|
|
86
|
-
totalMinuteText: totalMinuteText,
|
|
87
|
-
status: status,
|
|
88
|
-
meetingTime: meetingTime,
|
|
89
|
-
totalHours: totalHours,
|
|
90
|
-
totalMins: totalMins
|
|
91
|
-
};
|
|
92
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type LoginConfirmDialogProps = {
|
|
3
|
-
title?: string;
|
|
4
|
-
desc: string;
|
|
5
|
-
id: string;
|
|
6
|
-
btnTxt: string;
|
|
7
|
-
isShowCoutDown?: boolean;
|
|
8
|
-
onConfirm?: () => void;
|
|
9
|
-
showImg?: boolean;
|
|
10
|
-
imgSrc?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const LoginConfirmDialog: React.FC<LoginConfirmDialogProps>;
|
|
13
|
-
export {};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.array.iterator.js");
|
|
4
|
-
require("core-js/modules/es.object.define-property.js");
|
|
5
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
6
|
-
require("core-js/modules/es.object.to-string.js");
|
|
7
|
-
require("core-js/modules/es.string.iterator.js");
|
|
8
|
-
require("core-js/modules/es.weak-map.js");
|
|
9
|
-
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
10
|
-
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
11
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
13
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
exports.LoginConfirmDialog = void 0;
|
|
18
|
-
require("core-js/modules/web.timers.js");
|
|
19
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
20
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
22
|
-
var _button = require("agora-ui-foundation/lib/components/button");
|
|
23
|
-
var _dialog = require("agora-ui-foundation/lib/components/dialog");
|
|
24
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
26
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
27
|
-
var LoginConfirmDialog = exports.LoginConfirmDialog = function LoginConfirmDialog(_ref) {
|
|
28
|
-
var title = _ref.title,
|
|
29
|
-
desc = _ref.desc,
|
|
30
|
-
id = _ref.id,
|
|
31
|
-
btnTxt = _ref.btnTxt,
|
|
32
|
-
isShowCoutDown = _ref.isShowCoutDown,
|
|
33
|
-
onConfirm = _ref.onConfirm,
|
|
34
|
-
_ref$showImg = _ref.showImg,
|
|
35
|
-
showImg = _ref$showImg === void 0 ? true : _ref$showImg,
|
|
36
|
-
imgSrc = _ref.imgSrc;
|
|
37
|
-
var t = (0, _i18n.useI18n)();
|
|
38
|
-
var _useState = (0, _react.useState)(6),
|
|
39
|
-
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
40
|
-
countDown = _useState2[0],
|
|
41
|
-
setCountDown = _useState2[1];
|
|
42
|
-
(0, _react.useEffect)(function () {
|
|
43
|
-
var timer;
|
|
44
|
-
if (isShowCoutDown) {
|
|
45
|
-
timer = setInterval(function () {
|
|
46
|
-
if (countDown === 0) {
|
|
47
|
-
clearInterval(timer);
|
|
48
|
-
onConfirm && onConfirm();
|
|
49
|
-
_dialog.FcrDialogApi.close(id);
|
|
50
|
-
}
|
|
51
|
-
setCountDown(countDown - 1);
|
|
52
|
-
}, 1000);
|
|
53
|
-
}
|
|
54
|
-
return function () {
|
|
55
|
-
clearInterval(timer);
|
|
56
|
-
};
|
|
57
|
-
}, [countDown, isShowCoutDown]);
|
|
58
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
59
|
-
className: "login-confirm-dialog-content",
|
|
60
|
-
children: [showImg && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
61
|
-
className: "login-confirm-dialog-img",
|
|
62
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
63
|
-
src: imgSrc,
|
|
64
|
-
alt: ""
|
|
65
|
-
})
|
|
66
|
-
}), title && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
67
|
-
className: "login-confirm-dialog-title",
|
|
68
|
-
children: title
|
|
69
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
70
|
-
className: "login-confirm-dialog-desc",
|
|
71
|
-
children: desc
|
|
72
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
73
|
-
className: "login-confirm-dialog-btn",
|
|
74
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_button.FcrButton, {
|
|
75
|
-
size: "S",
|
|
76
|
-
shape: "rounded",
|
|
77
|
-
onClick: function onClick() {
|
|
78
|
-
onConfirm && onConfirm();
|
|
79
|
-
_dialog.FcrDialogApi.close(id);
|
|
80
|
-
},
|
|
81
|
-
children: [btnTxt, isShowCoutDown && "(".concat(countDown, "s)")]
|
|
82
|
-
})
|
|
83
|
-
})]
|
|
84
|
-
});
|
|
85
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.symbol.js");
|
|
4
|
-
require("core-js/modules/es.array.filter.js");
|
|
5
|
-
require("core-js/modules/es.array.for-each.js");
|
|
6
|
-
require("core-js/modules/es.array.push.js");
|
|
7
|
-
require("core-js/modules/es.object.define-properties.js");
|
|
8
|
-
require("core-js/modules/es.object.define-property.js");
|
|
9
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
|
-
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
|
-
require("core-js/modules/es.object.keys.js");
|
|
12
|
-
require("core-js/modules/es.object.to-string.js");
|
|
13
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
14
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
15
|
-
require("core-js/modules/esnext.iterator.constructor.js");
|
|
16
|
-
require("core-js/modules/esnext.iterator.filter.js");
|
|
17
|
-
require("core-js/modules/esnext.iterator.for-each.js");
|
|
18
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
19
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
20
|
-
Object.defineProperty(exports, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
});
|
|
23
|
-
exports.AppItems = void 0;
|
|
24
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
-
require("core-js/modules/es.array.map.js");
|
|
26
|
-
require("core-js/modules/es.function.name.js");
|
|
27
|
-
require("core-js/modules/esnext.async-iterator.map.js");
|
|
28
|
-
require("core-js/modules/esnext.iterator.map.js");
|
|
29
|
-
var _mobxReact = require("mobx-react");
|
|
30
|
-
var _appItem = require("./app-item");
|
|
31
|
-
var _useAppItemOptions = _interopRequireDefault(require("./useAppItemOptions"));
|
|
32
|
-
require("./index.css");
|
|
33
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
34
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
36
|
-
var AppItems = exports.AppItems = (0, _mobxReact.observer)(function (props) {
|
|
37
|
-
var closeActionBarItemWithPopover = props.closeActionBarItemWithPopover;
|
|
38
|
-
var options = (0, _useAppItemOptions["default"])(closeActionBarItemWithPopover);
|
|
39
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
40
|
-
className: "action-bar-apps-container",
|
|
41
|
-
children: options.map(function (config) {
|
|
42
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_appItem.Appitem, _objectSpread({}, config), config.name);
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { MemberBoardProps } from '../types';
|
|
2
|
-
export declare const MemberBoard: ({ slot, isMask, onMaskDoubleClick, windowData, allowedOperations, showActionBottomLabel, isShowActionAudio, actionAudioTag, hasPinnedStream, localUserRole, sendParticipantEvent, muteAudio, openPrivateChat, setVideoOrientation, interpreterUserList, isInterpreterEnabled, openRenameDialog, id, volume, }: MemberBoardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.MemberBoard = void 0;
|
|
9
|
-
var _mobxReact = require("mobx-react");
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var _env = require("agora-foundation/lib/utilities/env");
|
|
12
|
-
var _memberActions = require("./member-actions");
|
|
13
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
var MemberBoard = exports.MemberBoard = (0, _mobxReact.observer)(function (_ref) {
|
|
15
|
-
var slot = _ref.slot,
|
|
16
|
-
isMask = _ref.isMask,
|
|
17
|
-
onMaskDoubleClick = _ref.onMaskDoubleClick,
|
|
18
|
-
windowData = _ref.windowData,
|
|
19
|
-
allowedOperations = _ref.allowedOperations,
|
|
20
|
-
showActionBottomLabel = _ref.showActionBottomLabel,
|
|
21
|
-
isShowActionAudio = _ref.isShowActionAudio,
|
|
22
|
-
actionAudioTag = _ref.actionAudioTag,
|
|
23
|
-
hasPinnedStream = _ref.hasPinnedStream,
|
|
24
|
-
localUserRole = _ref.localUserRole,
|
|
25
|
-
sendParticipantEvent = _ref.sendParticipantEvent,
|
|
26
|
-
muteAudio = _ref.muteAudio,
|
|
27
|
-
openPrivateChat = _ref.openPrivateChat,
|
|
28
|
-
setVideoOrientation = _ref.setVideoOrientation,
|
|
29
|
-
interpreterUserList = _ref.interpreterUserList,
|
|
30
|
-
isInterpreterEnabled = _ref.isInterpreterEnabled,
|
|
31
|
-
openRenameDialog = _ref.openRenameDialog,
|
|
32
|
-
id = _ref.id,
|
|
33
|
-
volume = _ref.volume;
|
|
34
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
35
|
-
className: (0, _classnames["default"])("fcr-member-board"),
|
|
36
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
37
|
-
onDoubleClick: onMaskDoubleClick,
|
|
38
|
-
className: (0, _classnames["default"])('fcr-member-board-mask', {
|
|
39
|
-
'fcr-member-board-mask-show': isMask
|
|
40
|
-
})
|
|
41
|
-
}), isMask && /*#__PURE__*/(0, _jsxRuntime.jsx)(_memberActions.MemberWindowActions, {
|
|
42
|
-
isShowActionAudio: isShowActionAudio,
|
|
43
|
-
actionAudioTag: actionAudioTag,
|
|
44
|
-
showActionBottomLabel: showActionBottomLabel,
|
|
45
|
-
allowedOperations: allowedOperations,
|
|
46
|
-
setVideoOrientation: setVideoOrientation,
|
|
47
|
-
hasPinnedStream: hasPinnedStream,
|
|
48
|
-
localUserRole: localUserRole,
|
|
49
|
-
sendParticipantEvent: sendParticipantEvent,
|
|
50
|
-
muteAudio: muteAudio,
|
|
51
|
-
openPrivateChat: openPrivateChat,
|
|
52
|
-
windowSize: "large",
|
|
53
|
-
windowData: windowData,
|
|
54
|
-
iconSize: 24,
|
|
55
|
-
showRotation: (0, _env.isElectron)(),
|
|
56
|
-
interpreterUserList: interpreterUserList,
|
|
57
|
-
isInterpreterEnabled: isInterpreterEnabled,
|
|
58
|
-
handleRename: openRenameDialog,
|
|
59
|
-
id: id,
|
|
60
|
-
volume: volume
|
|
61
|
-
}), slot]
|
|
62
|
-
});
|
|
63
|
-
});
|