fcr-ui-scene 3.5.1 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/creator.d.ts +14 -0
- package/lib/creator.js +239 -14
- package/lib/electron/app.js +0 -21
- package/lib/electron/bootstrap-sdk.js +145 -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 +39 -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/board/index.js +0 -2
- package/lib/modules/action-bar/components/breakout-room/index.js +0 -2
- 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 +2 -12
- package/lib/modules/action-bar/components/more/index.js +1 -0
- package/lib/modules/action-bar/components/more/poppover-content.js +6 -9
- package/lib/modules/action-bar/components/participants/index.js +1 -9
- 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 +11 -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 -2
- package/lib/modules/action-bar/store.js +34 -22
- package/lib/modules/action-bar/types.d.ts +1 -0
- package/lib/modules/action-bar/view.js +1 -1
- package/lib/modules/audio-stream/index.js +4 -4
- package/lib/modules/chat/chat-room-store.js +4 -5
- 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 -2
- 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 -4
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +0 -1
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +1 -1
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +4 -16
- package/lib/modules/components/member-window/index.css +19 -7
- package/lib/modules/components/member-window/index.js +0 -1
- 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/connection-gateway/components/phone/index.js +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 +12 -3
- package/lib/modules/control-bar/store.js +106 -98
- 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 +18 -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/share-screen-selection/index.js +1 -2
- 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 +22 -101
- package/lib/modules/dialog/index.d.ts +2 -0
- package/lib/modules/dialog/index.js +2 -2
- 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 +100 -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 +6 -1
- 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 +2 -25
- 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/Aside.js +0 -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 +53 -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 -4
- 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 +3 -2
- 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 +35 -25
- 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/control-bar/index.js +0 -2
- package/lib/modules/whiteboard/components/scene-pagination.js +0 -2
- 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/color.js +1 -2
- 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 -2
- 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 +378 -206
- 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/meeting-time.js +2 -2
- 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 -4
- package/lib/shared-data-source/video-window.js +58 -48
- 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 -130
- 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 +30 -6
- package/lib/utilities/tools.js +74 -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
|
@@ -0,0 +1,86 @@
|
|
|
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.ConfirmLeaveMeetingDialog = void 0;
|
|
9
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
10
|
+
var _constant = require("../../../../utilities/constant");
|
|
11
|
+
var _useElectron = require("../../hooks/useElectron");
|
|
12
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
13
|
+
var _dialogContainer = _interopRequireDefault(require("../dialog-container"));
|
|
14
|
+
var _button = require("agora-ui-foundation/lib/components/button");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
var ConfirmLeaveMeetingDialog = exports.ConfirmLeaveMeetingDialog = function ConfirmLeaveMeetingDialog(_ref) {
|
|
17
|
+
var title = _ref.title,
|
|
18
|
+
onOk = _ref.onOk,
|
|
19
|
+
onCancel = _ref.onCancel;
|
|
20
|
+
var t = (0, _i18n.useI18n)();
|
|
21
|
+
var container = /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogContainer["default"], {
|
|
22
|
+
dialogKey: _constant.FcrUIDialogKey.LEAVE_MEETING,
|
|
23
|
+
width: 255,
|
|
24
|
+
height: 138,
|
|
25
|
+
closable: false,
|
|
26
|
+
autoHeight: true,
|
|
27
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
28
|
+
className: "fcr-confirm-content-footer fcr-button-flex-column fcr-confirm-content-footer__center",
|
|
29
|
+
style: {
|
|
30
|
+
width: '215px',
|
|
31
|
+
margin: '12px auto'
|
|
32
|
+
},
|
|
33
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("header", {
|
|
34
|
+
className: "fcr-dialog-container-header",
|
|
35
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("h2", {
|
|
36
|
+
children: title
|
|
37
|
+
})
|
|
38
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
39
|
+
size: "XS",
|
|
40
|
+
styleType: "danger",
|
|
41
|
+
type: "primary",
|
|
42
|
+
shape: "rounded",
|
|
43
|
+
block: true,
|
|
44
|
+
onClick: onOk,
|
|
45
|
+
children: t('fmt_toolbar_leave_room_end_submit')
|
|
46
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
47
|
+
size: "XS",
|
|
48
|
+
type: "secondary",
|
|
49
|
+
shape: "rounded",
|
|
50
|
+
block: true,
|
|
51
|
+
onClick: onCancel,
|
|
52
|
+
children: t('fmt_toolbar_tips_leave_room_end_cancel')
|
|
53
|
+
})]
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
if ((0, _env.isElectron)()) {
|
|
57
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ConfirmLeaveMeetingElectronDialog, {
|
|
58
|
+
title: title,
|
|
59
|
+
children: container
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return container;
|
|
63
|
+
};
|
|
64
|
+
var ConfirmLeaveMeetingElectronDialog = function ConfirmLeaveMeetingElectronDialog(_ref2) {
|
|
65
|
+
var children = _ref2.children,
|
|
66
|
+
title = _ref2.title;
|
|
67
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
68
|
+
var config = {
|
|
69
|
+
fullscreen: false,
|
|
70
|
+
maximizable: false,
|
|
71
|
+
width: 255,
|
|
72
|
+
height: 158,
|
|
73
|
+
title: transI18n('fmt_actionbar_labels_endmeeting'),
|
|
74
|
+
resizable: false
|
|
75
|
+
};
|
|
76
|
+
(0, _useElectron.useElectronDialog)({
|
|
77
|
+
dialogKey: _constant.FcrUIDialogKey.LEAVE_MEETING,
|
|
78
|
+
config: config,
|
|
79
|
+
onClose: function onClose(_ref3) {
|
|
80
|
+
var store = _ref3.store;
|
|
81
|
+
store.closeDialogByKey(_constant.FcrUIDialogKey.LEAVE_MEETING);
|
|
82
|
+
},
|
|
83
|
+
children: children
|
|
84
|
+
});
|
|
85
|
+
return null;
|
|
86
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AgoraRtcScreenCaptureType, AgoraRtcWindowInfo } from 'agora-rte-sdk/lib/core/rtc/type';
|
|
2
1
|
import { ControlBarUIModule } from '../../../control-bar';
|
|
3
2
|
import { FcrUIShareSelectionDisplayProps } from '../../../share-screen/types';
|
|
4
3
|
import { PropsWithChildren } from 'react';
|
|
@@ -8,4 +7,4 @@ export declare const ControlBarDialog: (props: PropsWithChildren<{
|
|
|
8
7
|
params: FcrUIShareSelectionDisplayProps;
|
|
9
8
|
module: ControlBarUIModule;
|
|
10
9
|
}>) => null;
|
|
11
|
-
export declare const setBounds: (
|
|
10
|
+
export declare const setBounds: (currentShareBounds: CurrentShareBounds, browserWindow: Electron.BrowserWindow) => Promise<void>;
|
|
@@ -37,8 +37,6 @@ var ControlBarDialog = exports.ControlBarDialog = (0, _mobxReact.observer)(funct
|
|
|
37
37
|
var eventProvider = module.eventProvider;
|
|
38
38
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
39
39
|
currentShareId = _useContext.currentShareId,
|
|
40
|
-
currentShareType = _useContext.currentShareType,
|
|
41
|
-
deviceStore = _useContext.deviceStore,
|
|
42
40
|
currentShareBounds = _useContext.currentShareBounds;
|
|
43
41
|
var children = function children(browserWindow) {
|
|
44
42
|
return module.getComponent({
|
|
@@ -48,20 +46,13 @@ var ControlBarDialog = exports.ControlBarDialog = (0, _mobxReact.observer)(funct
|
|
|
48
46
|
};
|
|
49
47
|
var setBoundsWithNewAppWindows = /*#__PURE__*/function () {
|
|
50
48
|
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(browserWindow) {
|
|
51
|
-
var allApplicationWindows;
|
|
52
49
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
53
50
|
while (1) switch (_context.prev = _context.next) {
|
|
54
51
|
case 0:
|
|
55
|
-
if (
|
|
56
|
-
|
|
57
|
-
break;
|
|
52
|
+
if (browserWindow) {
|
|
53
|
+
setBounds(currentShareBounds, browserWindow);
|
|
58
54
|
}
|
|
59
|
-
|
|
60
|
-
return deviceStore.getWindowList();
|
|
61
|
-
case 3:
|
|
62
|
-
allApplicationWindows = _context.sent;
|
|
63
|
-
setBounds(currentShareId, currentShareType, currentShareBounds, browserWindow, allApplicationWindows);
|
|
64
|
-
case 5:
|
|
55
|
+
case 1:
|
|
65
56
|
case "end":
|
|
66
57
|
return _context.stop();
|
|
67
58
|
}
|
|
@@ -92,15 +83,12 @@ var ControlBarDialog = exports.ControlBarDialog = (0, _mobxReact.observer)(funct
|
|
|
92
83
|
return null;
|
|
93
84
|
});
|
|
94
85
|
var setBounds = exports.setBounds = /*#__PURE__*/function () {
|
|
95
|
-
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(
|
|
86
|
+
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(currentShareBounds, browserWindow) {
|
|
96
87
|
var _getCurrentSharingWor, originWidth, originHeight, x, y, WINDOWS_SCREEN_BOUNDARY_WIDTH, width, height, firstBounds;
|
|
97
88
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
98
89
|
while (1) switch (_context2.prev = _context2.next) {
|
|
99
90
|
case 0:
|
|
100
91
|
_getCurrentSharingWor = (0, _tools.getCurrentSharingWorkArea)({
|
|
101
|
-
currentShareId: currentShareId,
|
|
102
|
-
currentShareType: currentShareType,
|
|
103
|
-
allApplicationWindows: allApplicationWindows,
|
|
104
92
|
currentShareBounds: currentShareBounds
|
|
105
93
|
}), originWidth = _getCurrentSharingWor.width, originHeight = _getCurrentSharingWor.height, x = _getCurrentSharingWor.x, y = _getCurrentSharingWor.y;
|
|
106
94
|
/* 使用window.screen.availWidth在windows上会黑屏,详见jira:APAAS-5732
|
|
@@ -148,7 +136,7 @@ var setBounds = exports.setBounds = /*#__PURE__*/function () {
|
|
|
148
136
|
}
|
|
149
137
|
}, _callee2);
|
|
150
138
|
}));
|
|
151
|
-
return function setBounds(_x2, _x3
|
|
139
|
+
return function setBounds(_x2, _x3) {
|
|
152
140
|
return _ref3.apply(this, arguments);
|
|
153
141
|
};
|
|
154
142
|
}();
|
|
@@ -28,6 +28,7 @@ require("../index.css");
|
|
|
28
28
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
29
29
|
var _ = require("..");
|
|
30
30
|
var _useElectron = require("../../../hooks/useElectron");
|
|
31
|
+
var _isBoolean = _interopRequireDefault(require("lodash/isBoolean"));
|
|
31
32
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
32
33
|
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; }
|
|
33
34
|
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,7 +37,8 @@ function DialogContainerBody(props) {
|
|
|
36
37
|
title = props.title,
|
|
37
38
|
children = props.children,
|
|
38
39
|
onClick = props.onClick,
|
|
39
|
-
autoHeight = props.autoHeight
|
|
40
|
+
autoHeight = props.autoHeight,
|
|
41
|
+
closable = props.closable;
|
|
40
42
|
var _useContext = (0, _react.useContext)(_.DialogContainerStore),
|
|
41
43
|
bind = _useContext.bind;
|
|
42
44
|
var _ref = (0, _env.isElectron)() ? (0, _react.useContext)(_useElectron.DialogInstanceContext) : {
|
|
@@ -67,7 +69,7 @@ function DialogContainerBody(props) {
|
|
|
67
69
|
height: resizable ? 'calc(100% - 46px)' /* 当窗口需要拉伸时,会传值为 false 的 hasCustomShadow 过来,高度不需要自适应,所以内容区高度为 100vh 减去 title 高度 46px */ : (0, _env.isElectron)() ? autoHeight ? 'auto' : 'calc(100vh - 76px)' /* 76px 包含 46px 的 title 高度,和 30px 的阴影 */ : 'calc(100% - 46px)' /* 浏览器不需要减去阴影,高度需要 100% 减去 46px title */
|
|
68
70
|
} : {},
|
|
69
71
|
children: children
|
|
70
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
72
|
+
}), (!(0, _isBoolean["default"])(closable) || closable) && /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
71
73
|
className: "fcr-dialog-container-close",
|
|
72
74
|
onClick: onClick,
|
|
73
75
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
flex: 1;
|
|
5
5
|
width: 100%;
|
|
6
|
+
font-family:
|
|
7
|
+
ui-sans-serif,
|
|
8
|
+
system-ui,
|
|
9
|
+
-apple-system,
|
|
10
|
+
BlinkMacSystemFont,
|
|
11
|
+
'Segoe UI',
|
|
12
|
+
Roboto,
|
|
13
|
+
'Helvetica Neue',
|
|
14
|
+
Arial,
|
|
15
|
+
'Noto Sans',
|
|
16
|
+
sans-serif,
|
|
17
|
+
'Apple Color Emoji',
|
|
18
|
+
'Segoe UI Emoji',
|
|
19
|
+
'Segoe UI Symbol',
|
|
20
|
+
'Noto Color Emoji';
|
|
21
|
+
font-size: 14px;
|
|
6
22
|
}
|
|
7
23
|
|
|
8
24
|
.fcr-dialog-container_shadow {
|
|
@@ -27,9 +43,10 @@
|
|
|
27
43
|
font-size: 16px;
|
|
28
44
|
font-weight: 700;
|
|
29
45
|
display: flex;
|
|
30
|
-
flex:
|
|
46
|
+
flex: 3;
|
|
31
47
|
align-items: center;
|
|
32
48
|
justify-content: center;
|
|
49
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
33
50
|
}
|
|
34
51
|
|
|
35
52
|
.fcr-dialog-container-actions {
|
|
@@ -13,6 +13,7 @@ declare const DialogContainer: (props: PropsWithChildren<{
|
|
|
13
13
|
closeInterception?: () => boolean;
|
|
14
14
|
actions?: React.ReactNode;
|
|
15
15
|
dialogId?: string;
|
|
16
|
+
closable?: boolean;
|
|
16
17
|
autoHeight?: boolean;
|
|
17
18
|
}>) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export default DialogContainer;
|
|
@@ -35,7 +35,8 @@ var DialogContainer = (0, _mobxReact.observer)(function (props) {
|
|
|
35
35
|
actions = props.actions,
|
|
36
36
|
closeInterception = props.closeInterception,
|
|
37
37
|
dialogId = props.dialogId,
|
|
38
|
-
autoHeight = props.autoHeight
|
|
38
|
+
autoHeight = props.autoHeight,
|
|
39
|
+
closable = props.closable;
|
|
39
40
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
40
41
|
closeDialogByKey = _useContext.closeDialogByKey,
|
|
41
42
|
closeDilaogByDialogId = _useContext.closeDilaogByDialogId;
|
|
@@ -53,6 +54,7 @@ var DialogContainer = (0, _mobxReact.observer)(function (props) {
|
|
|
53
54
|
title: title,
|
|
54
55
|
onClick: handleClose,
|
|
55
56
|
actions: actions,
|
|
57
|
+
closable: closable,
|
|
56
58
|
autoHeight: autoHeight,
|
|
57
59
|
children: children
|
|
58
60
|
});
|
|
@@ -5,10 +5,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.ParticipantDialog = void 0;
|
|
9
9
|
require("core-js/modules/es.array.concat.js");
|
|
10
10
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
11
|
-
var _windowHeader = require("agora-ui-foundation/lib/components/window-header");
|
|
12
11
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
13
12
|
var _react = require("react");
|
|
14
13
|
var _store = require("../../store");
|
|
@@ -18,36 +17,18 @@ var _dialogContainer = _interopRequireDefault(require("../dialog-container"));
|
|
|
18
17
|
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
19
18
|
var _iconButton = require("agora-ui-foundation/lib/components/icon-button");
|
|
20
19
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
20
|
+
var _mobxReact = require("mobx-react");
|
|
21
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
|
-
var
|
|
23
|
-
var children = _ref.children;
|
|
22
|
+
var Container = (0, _mobxReact.observer)(function (props) {
|
|
24
23
|
var store = (0, _react.useContext)(_store.StoreContext);
|
|
25
24
|
var transI18n = (0, _i18n.useI18n)();
|
|
26
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
27
|
-
className: "fcr-participant-dialog-wrapper",
|
|
28
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_windowHeader.FcrWindowHeader, {
|
|
29
|
-
showClose: true,
|
|
30
|
-
title: "".concat(transI18n('fmt_participants_label_participants'), "(").concat(store.participantCount, ")"),
|
|
31
|
-
type: _windowHeader.WindowType.WINDOW,
|
|
32
|
-
onTypeChange: store.moveParticipantFromDialogToAside,
|
|
33
|
-
onClose: function onClose() {
|
|
34
|
-
return store.closeDialogByKey(_constant.FcrUIDialogKey.PARTICIPANT);
|
|
35
|
-
},
|
|
36
|
-
rootClassName: 'participant-can-draggable'
|
|
37
|
-
}), children]
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
var ParticipantDialog = exports.ParticipantDialog = function ParticipantDialog(_ref2) {
|
|
41
|
-
var children = _ref2.children;
|
|
42
|
-
var store = (0, _react.useContext)(_store.StoreContext);
|
|
43
|
-
var transI18n = (0, _i18n.useI18n)();
|
|
44
|
-
var container = /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogContainer["default"], {
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogContainer["default"], {
|
|
45
26
|
title: "".concat(transI18n('fmt_participants_label_participants'), "(").concat(store.participantCount, ")"),
|
|
46
27
|
width: 320,
|
|
47
28
|
height: 560,
|
|
48
29
|
dialogKey: _constant.FcrUIDialogKey.PARTICIPANT,
|
|
49
30
|
onClose: store.closeParticipantDialog,
|
|
50
|
-
actions: /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
31
|
+
actions: store.isSharingScreen ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
51
32
|
content: transI18n('fmt_uimanager_option_mergeview'),
|
|
52
33
|
mouseEnterDelay: 0,
|
|
53
34
|
trigger: "hover",
|
|
@@ -62,6 +43,16 @@ var ParticipantDialog = exports.ParticipantDialog = function ParticipantDialog(_
|
|
|
62
43
|
}),
|
|
63
44
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
64
45
|
className: "fcr-participant-dialog-wrapper",
|
|
46
|
+
children: props.children
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var ParticipantDialog = exports.ParticipantDialog = function ParticipantDialog(_ref) {
|
|
51
|
+
var children = _ref.children;
|
|
52
|
+
var store = (0, _react.useContext)(_store.StoreContext);
|
|
53
|
+
var container = /*#__PURE__*/(0, _jsxRuntime.jsx)(_store.StoreContext.Provider, {
|
|
54
|
+
value: store,
|
|
55
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Container, {
|
|
65
56
|
children: children
|
|
66
57
|
})
|
|
67
58
|
});
|
|
@@ -0,0 +1,51 @@
|
|
|
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.DeviceSettingElectronDialog = void 0;
|
|
8
|
+
require("core-js/modules/web.timers.js");
|
|
9
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
10
|
+
var _constant = require("../../../../utilities/constant");
|
|
11
|
+
var _useElectron = require("../../hooks/useElectron");
|
|
12
|
+
var DeviceSettingElectronDialog = exports.DeviceSettingElectronDialog = function DeviceSettingElectronDialog(_ref) {
|
|
13
|
+
var children = _ref.children;
|
|
14
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
15
|
+
var config = {
|
|
16
|
+
fullscreen: false,
|
|
17
|
+
maximizable: false,
|
|
18
|
+
trafficLightPosition: {
|
|
19
|
+
x: 10,
|
|
20
|
+
y: 60
|
|
21
|
+
},
|
|
22
|
+
width: 580,
|
|
23
|
+
height: 600,
|
|
24
|
+
minWidth: 580,
|
|
25
|
+
minHeight: 600,
|
|
26
|
+
maxWidth: 670,
|
|
27
|
+
maxHeight: 800,
|
|
28
|
+
title: transI18n('fmt_settings_option_setting'),
|
|
29
|
+
resizable: false
|
|
30
|
+
};
|
|
31
|
+
var dialogKey = _constant.FcrUIDialogKey.DEVICE_SETTINGS;
|
|
32
|
+
(0, _useElectron.useElectronDialog)({
|
|
33
|
+
dialogKey: dialogKey,
|
|
34
|
+
config: config,
|
|
35
|
+
children: children,
|
|
36
|
+
onOpened: function onOpened(_ref2) {
|
|
37
|
+
var browserWindow = _ref2.browserWindow,
|
|
38
|
+
nearDisplayBounds = _ref2.nearDisplayBounds;
|
|
39
|
+
if (browserWindow) {
|
|
40
|
+
browserWindow.setAlwaysOnTop(true);
|
|
41
|
+
setTimeout(function () {
|
|
42
|
+
browserWindow.show();
|
|
43
|
+
browserWindow.setAlwaysOnTop(false);
|
|
44
|
+
browserWindow.moveTop();
|
|
45
|
+
browserWindow.focus();
|
|
46
|
+
}, 600);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return null;
|
|
51
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.fcr-device-setting-dialog-wrapper {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
height: 100%;
|
|
5
|
+
background: var(--fcr_mobile_ui_scene_color_popup_fill2);
|
|
6
|
+
border-radius: 16px;
|
|
7
|
+
box-shadow: var(--fcr_web_light_dropup);
|
|
8
|
+
border: 1px solid var(--fcr_ui_scene_line1);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.fcr-device-setting-dialog-wrapper .frc-window-header {
|
|
12
|
+
cursor: move;
|
|
13
|
+
height: 46px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.fcr-device-setting-dialog-wrapper .fcr-device-settings {
|
|
17
|
+
height: calc(100% - 46px);
|
|
18
|
+
}
|
|
19
|
+
.fcr-device-setting-dialog-wrapper .fcr-device-settings-audio {
|
|
20
|
+
padding: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.fcr-device-setting-dialog-wrapper .frc-window-header .frc-window-header__title {
|
|
24
|
+
height: 46px;
|
|
25
|
+
line-height: 46px;
|
|
26
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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["default"] = void 0;
|
|
9
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
10
|
+
var _electron = require("./electron");
|
|
11
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
12
|
+
require("./index.css");
|
|
13
|
+
var _constant = require("../../../../utilities/constant");
|
|
14
|
+
var _preSettingContainer = _interopRequireDefault(require("../pre-setting-container"));
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
var ELECTRON_HEIGHT = 556;
|
|
17
|
+
var WEB_HEIGHT = 600;
|
|
18
|
+
var DeviceSettingDialog = function DeviceSettingDialog(_ref) {
|
|
19
|
+
var children = _ref.children,
|
|
20
|
+
onClose = _ref.onClose;
|
|
21
|
+
var t = (0, _i18n.useI18n)();
|
|
22
|
+
var height = (0, _env.isElectron)() ? ELECTRON_HEIGHT : WEB_HEIGHT;
|
|
23
|
+
var container = /*#__PURE__*/(0, _jsxRuntime.jsx)(_preSettingContainer["default"], {
|
|
24
|
+
title: t('fmt_modules_labels_devicesettings'),
|
|
25
|
+
width: 580,
|
|
26
|
+
height: height,
|
|
27
|
+
dialogKey: _constant.FcrUIDialogKey.DEVICE_SETTINGS,
|
|
28
|
+
onClose: onClose,
|
|
29
|
+
children: children
|
|
30
|
+
});
|
|
31
|
+
if ((0, _env.isElectron)()) {
|
|
32
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_electron.DeviceSettingElectronDialog, {
|
|
33
|
+
children: container
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return container;
|
|
37
|
+
};
|
|
38
|
+
var _default = exports["default"] = DeviceSettingDialog;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import '../index.css';
|
|
3
|
+
export declare function DialogContainerBody(props: PropsWithChildren<{
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
actions?: React.ReactNode;
|
|
7
|
+
autoHeight?: boolean;
|
|
8
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,80 @@
|
|
|
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.DialogContainerBody = DialogContainerBody;
|
|
24
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
+
require("core-js/modules/es.function.bind.js");
|
|
26
|
+
var _react = require("react");
|
|
27
|
+
require("../index.css");
|
|
28
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
29
|
+
var _ = require("..");
|
|
30
|
+
var _useElectron = require("../../../hooks/useElectron");
|
|
31
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
32
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
|
+
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; }
|
|
34
|
+
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; }
|
|
35
|
+
function DialogContainerBody(props) {
|
|
36
|
+
var actions = props.actions,
|
|
37
|
+
title = props.title,
|
|
38
|
+
children = props.children,
|
|
39
|
+
onClick = props.onClick,
|
|
40
|
+
autoHeight = props.autoHeight;
|
|
41
|
+
var _useContext = (0, _react.useContext)(_.DialogContainerStore),
|
|
42
|
+
bind = _useContext.bind;
|
|
43
|
+
var t = (0, _i18n.useI18n)();
|
|
44
|
+
var _ref = (0, _env.isElectron)() ? (0, _react.useContext)(_useElectron.DialogInstanceContext) : {
|
|
45
|
+
resizable: false
|
|
46
|
+
},
|
|
47
|
+
resizable = _ref.resizable;
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
49
|
+
className: "fcr-dialog-container ".concat(!resizable && 'fcr-dialog-container_shadow'),
|
|
50
|
+
onClick: function onClick(e) {
|
|
51
|
+
return e.stopPropagation();
|
|
52
|
+
},
|
|
53
|
+
children: [(title || actions) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("header", _objectSpread(_objectSpread({
|
|
54
|
+
className: "fcr-dialog-container-header"
|
|
55
|
+
}, bind === null || bind === void 0 ? void 0 : bind()), {}, {
|
|
56
|
+
children: [actions && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
57
|
+
style: {
|
|
58
|
+
flex: 1
|
|
59
|
+
}
|
|
60
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("h2", {
|
|
61
|
+
children: t('fmt_modules_labels_devicesettings')
|
|
62
|
+
}), actions && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
63
|
+
className: "fcr-dialog-container-actions",
|
|
64
|
+
children: actions
|
|
65
|
+
})]
|
|
66
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)("section", {
|
|
67
|
+
className: "fcr-dialog-container-content",
|
|
68
|
+
style: title || actions ? {
|
|
69
|
+
height: resizable ? 'calc(100% - 46px)' /* 当窗口需要拉伸时,会传值为 false 的 hasCustomShadow 过来,高度不需要自适应,所以内容区高度为 100vh 减去 title 高度 46px */ : (0, _env.isElectron)() ? autoHeight ? 'auto' : 'calc(100vh - 76px)' /* 76px 包含 46px 的 title 高度,和 30px 的阴影 */ : 'calc(100% - 46px)' /* 浏览器不需要减去阴影,高度需要 100% 减去 46px title */
|
|
70
|
+
} : {},
|
|
71
|
+
children: children
|
|
72
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
73
|
+
className: "fcr-dialog-container-close",
|
|
74
|
+
onClick: onClick,
|
|
75
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
76
|
+
children: "\xD7"
|
|
77
|
+
})
|
|
78
|
+
})]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
.fcr-dialog-container {
|
|
2
|
+
background: var(--fcr_mobile_ui_scene_color_popup_fill2);
|
|
3
|
+
position: relative;
|
|
4
|
+
flex: 1;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.fcr-dialog-container_shadow {
|
|
9
|
+
box-shadow: var(--fcr_web_light_dropup);
|
|
10
|
+
border: 1px solid var(--fcr_ui_scene_line1);
|
|
11
|
+
border-radius: var(--fcr_cornerradius_xl);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.fcr-dialog-container-header {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 46px;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
-webkit-app-region: drag;
|
|
20
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
21
|
+
justify-content: center;
|
|
22
|
+
cursor: move;
|
|
23
|
+
border-radius: var(--fcr_cornerradius_xl);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.fcr-dialog-container-header h2 {
|
|
27
|
+
font-size: 16px;
|
|
28
|
+
font-weight: 700;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex: 3;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.fcr-dialog-container-actions {
|
|
37
|
+
flex: 1;
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: flex-end;
|
|
40
|
+
align-items: center;
|
|
41
|
+
padding-right: 10px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.fcr-dialog-container-content {
|
|
45
|
+
position: relative;
|
|
46
|
+
border-bottom-left-radius: var(--fcr_cornerradius_xl);
|
|
47
|
+
border-bottom-right-radius: var(--fcr_cornerradius_xl);
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.fcr-dialog-container .fcr-dialog-container-content:first-child {
|
|
52
|
+
border-top-left-radius: var(--fcr_cornerradius_xl);
|
|
53
|
+
border-top-right-radius: var(--fcr_cornerradius_xl);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.fcr-dialog-container-close {
|
|
57
|
+
width: 14px;
|
|
58
|
+
height: 14px;
|
|
59
|
+
border-radius: 50%;
|
|
60
|
+
background: var(--fcr_ui_scene_ramp_red6);
|
|
61
|
+
position: absolute;
|
|
62
|
+
left: 15px;
|
|
63
|
+
top: 15px;
|
|
64
|
+
display: block;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
-webkit-app-region: no-drag;
|
|
67
|
+
text-align: center;
|
|
68
|
+
line-height: 13px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.fcr-dialog-container-close span {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.fcr-dialog-container-close:hover span {
|
|
76
|
+
display: block;
|
|
77
|
+
color: #fff;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.fcr-dialog-container-close:hover {
|
|
81
|
+
color: var(--fcr_ui_scene_ramp_red7);
|
|
82
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { FcrUIDialogKey } from '../../../../utilities/constant';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export declare const DialogContainerStore: React.Context<{
|
|
5
|
+
bind: () => object;
|
|
6
|
+
}>;
|
|
7
|
+
declare const DialogContainer: (props: PropsWithChildren<{
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
dialogKey: FcrUIDialogKey;
|
|
11
|
+
title?: string;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
closeInterception?: () => boolean;
|
|
14
|
+
actions?: React.ReactNode;
|
|
15
|
+
dialogId?: string;
|
|
16
|
+
autoHeight?: boolean;
|
|
17
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default DialogContainer;
|