fcr-ui-scene 3.4.4 → 3.5.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/base.js +4 -4
- package/lib/common/device-store.d.ts +3 -2
- package/lib/common/device-store.js +174 -194
- package/lib/common/device-stream-store.d.ts +27 -7
- package/lib/common/device-stream-store.js +190 -176
- package/lib/common/event-store.d.ts +4 -13
- package/lib/common/event-store.js +7 -18
- package/lib/common/room-store.js +6 -6
- package/lib/common/security-store.d.ts +19 -9
- package/lib/common/security-store.js +27 -39
- package/lib/creator.d.ts +4 -1
- package/lib/creator.js +66 -3
- package/lib/electron/app.js +0 -5
- package/lib/electron/bootstrap-dev.js +2 -2
- package/lib/electron/bootstrap-sdk.js +2 -2
- package/lib/electron/injections.js +0 -5
- package/lib/electron/main.js +14 -3
- package/lib/electron/plugins/devtool-shortcut.js +5 -0
- package/lib/electron/plugins/screenshot.js +4 -1
- package/lib/electron/tools.js +0 -4
- package/lib/electron/window.js +0 -2
- package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +45 -1
- package/lib/fragments/control-bar/control-bar-store.js +465 -83
- package/lib/fragments/control-bar/device/index.js +5 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +24 -0
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +31 -12
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +117 -16
- package/lib/fragments/control-bar/more-actions/index.css +53 -0
- package/lib/fragments/control-bar/more-actions/index.js +73 -38
- package/lib/fragments/control-bar/security-content/index.css +75 -0
- package/lib/fragments/control-bar/security-content/index.js +105 -19
- package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
- package/lib/fragments/control-bar/view.js +23 -8
- package/lib/fragments/live-streaming/store.d.ts +1 -1
- package/lib/fragments/live-streaming/store.js +1 -1
- package/lib/fragments/live-streaming/view.js +4 -2
- package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
- package/lib/fragments/share-screen-selection/selection-store.js +1 -1
- package/lib/fragments/share-screen-selection/view.js +20 -20
- package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
- package/lib/fragments/toolbar/components/pen-picker.js +1 -1
- package/lib/fragments/toolbar/components/shape-picker.js +1 -1
- package/lib/fragments/toolbar/components/wrapper.js +1 -1
- package/lib/fragments/toolbar/hooks.js +1 -1
- package/lib/fragments/toolbar/store.d.ts +1 -1
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +11 -11
- package/lib/modules/action-bar/apps/useInterpreter.js +2 -4
- package/lib/modules/action-bar/chat/index.js +8 -8
- package/lib/modules/action-bar/components/apps/app-item/index.css +3 -3
- package/lib/modules/action-bar/components/apps/app-item/index.js +35 -26
- package/lib/modules/action-bar/components/apps/app-list.d.ts +3 -0
- package/lib/{electron/dev.js → modules/action-bar/components/apps/app-list.js} +22 -31
- package/lib/modules/action-bar/components/apps/appitems.js +2 -5
- package/lib/modules/action-bar/components/apps/index.css +1 -0
- package/lib/modules/action-bar/components/apps/index.js +7 -4
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +10 -2
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +10 -7
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +1 -1
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +2 -2
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +1 -1
- package/lib/modules/action-bar/components/apps/useInterpreter.js +6 -6
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +1 -1
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +2 -2
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +4 -1
- package/lib/modules/action-bar/components/apps/useWidgetList.js +8 -12
- package/lib/modules/action-bar/components/chat/index.css +8 -0
- package/lib/modules/action-bar/components/chat/index.js +2 -1
- package/lib/modules/action-bar/components/collapse/index.d.ts +8 -6
- package/lib/modules/action-bar/components/collapse/index.js +60 -78
- package/lib/modules/action-bar/components/interpreter/index.js +3 -3
- package/lib/modules/action-bar/components/item/index.js +1 -3
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +1 -8
- package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +0 -2
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +1 -16
- package/lib/modules/action-bar/components/more/index.js +13 -7
- package/lib/modules/action-bar/components/more/poppover-content.js +0 -4
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +2 -1
- package/lib/modules/action-bar/components/notification-bar/index.d.ts +1 -1
- package/lib/modules/action-bar/components/notification-bar/index.js +13 -8
- package/lib/modules/action-bar/components/participants/index.js +1 -1
- package/lib/modules/action-bar/components/screen-share/index.js +1 -1
- package/lib/modules/action-bar/components/screen-share/submenu.js +53 -18
- package/lib/modules/action-bar/components/security/index.js +8 -2
- package/lib/modules/action-bar/components/trigger-output-language/index.js +66 -56
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +35 -21
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.js +25 -25
- package/lib/modules/action-bar/index.css +8 -0
- package/lib/modules/action-bar/index.d.ts +8 -0
- package/lib/modules/action-bar/index.js +6 -3
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -0
- package/lib/modules/action-bar/leave/assign-host.js +2 -4
- package/lib/modules/action-bar/leave/index.css +10 -0
- package/lib/modules/action-bar/leave/index.js +84 -34
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +13 -1
- package/lib/modules/action-bar/leave/leave-meeting.js +37 -19
- package/lib/modules/action-bar/live-streaming/index.js +3 -3
- package/lib/modules/action-bar/more/index.js +5 -5
- package/lib/modules/action-bar/more/poppover-content.js +37 -16
- package/lib/modules/action-bar/participants/index.css +12 -0
- package/lib/modules/action-bar/participants/index.js +23 -16
- package/lib/modules/action-bar/record/index.js +4 -4
- package/lib/modules/action-bar/screen-share/index.js +9 -5
- package/lib/modules/action-bar/screen-share/submenu.js +20 -26
- package/lib/modules/action-bar/security/drop-menu.js +137 -22
- package/lib/modules/action-bar/security/index.js +11 -5
- package/lib/modules/action-bar/settings/index.js +4 -4
- package/lib/modules/action-bar/smaller.js +2 -2
- package/lib/modules/action-bar/store.d.ts +37 -22
- package/lib/modules/action-bar/store.js +275 -379
- package/lib/modules/action-bar/switch-output-language-room/index.js +8 -2
- package/lib/modules/action-bar/types.d.ts +8 -13
- package/lib/modules/action-bar/view.js +3 -8
- package/lib/modules/audio-stream/index.d.ts +6 -1
- package/lib/modules/audio-stream/index.js +77 -14
- package/lib/modules/chat/chat-bar/index.css +0 -5
- package/lib/modules/chat/chat-bar/index.js +14 -16
- package/lib/modules/chat/chat-room-store.d.ts +4 -7
- package/lib/modules/chat/chat-room-store.js +39 -66
- package/lib/modules/chat/chat-select/index.css +3 -6
- package/lib/modules/chat/chat-select/index.js +1 -15
- package/lib/modules/chat/chat.js +6 -7
- package/lib/modules/chat/components/chat-action/index.js +2 -2
- package/lib/modules/chat/components/chat-bar/index.css +4 -0
- package/lib/modules/chat/components/chat-bar/index.d.ts +1 -1
- package/lib/modules/chat/components/chat-bar/index.js +18 -18
- package/lib/modules/chat/components/chat-select/index.js +16 -148
- package/lib/modules/chat/components/chat-select/select-item/index.js +2 -5
- package/lib/modules/chat/components/message-list/index.d.ts +1 -1
- package/lib/modules/chat/components/message-list/index.js +55 -360
- package/lib/modules/chat/components/message-list/message-item/index.js +36 -8
- package/lib/modules/chat/index.css +9 -0
- package/lib/modules/chat/index.d.ts +6 -0
- package/lib/modules/chat/index.js +4 -1
- package/lib/modules/chat/message-list.js +1 -4
- package/lib/modules/chat/store.d.ts +17 -7
- package/lib/modules/chat/store.js +75 -73
- package/lib/modules/chat/types.d.ts +7 -7
- package/lib/modules/chat/types.js +2 -1
- package/lib/modules/chat/view.js +22 -106
- package/lib/modules/components/device-control/components/audio-menu/index.js +2 -1
- package/lib/modules/components/device-control/components/video-menu/index.js +2 -1
- package/lib/modules/components/device-control/store.d.ts +4 -3
- package/lib/modules/components/device-control/store.js +13 -25
- package/lib/modules/components/leave-meeting/components/assign-host.js +17 -2
- package/lib/modules/components/leave-meeting/index.js +8 -7
- package/lib/modules/components/leave-meeting/store.d.ts +15 -7
- package/lib/modules/components/leave-meeting/store.js +115 -96
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +29 -31
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +3 -1
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +0 -1
- package/lib/modules/components/member-window/components/member-actions/index.js +0 -1
- package/lib/modules/components/member-window/components/member-actions/store.js +2 -1
- package/lib/modules/components/member-window/components/video-player/index.js +0 -2
- package/lib/modules/components/member-window/index.css +22 -2
- package/lib/modules/components/member-window/index.d.ts +10 -75
- package/lib/modules/components/member-window/index.js +20 -738
- package/lib/modules/components/member-window/types.d.ts +1 -0
- package/lib/modules/components/security-menu/index.css +0 -2
- package/lib/modules/components/security-menu/index.d.ts +5 -1
- package/lib/modules/components/security-menu/index.js +38 -63
- package/lib/modules/components/tab-frame/index.js +0 -4
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -1
- package/lib/modules/connection-gateway/components/phone/index.js +2 -1
- package/lib/modules/connection-gateway/index.d.ts +6 -0
- package/lib/modules/connection-gateway/index.js +4 -1
- package/lib/modules/connection-gateway/store.d.ts +12 -3
- package/lib/modules/connection-gateway/store.js +29 -31
- package/lib/modules/control-bar/components/meeting-details/index.js +11 -17
- package/lib/modules/control-bar/components/more-actions/index.js +5 -6
- package/lib/modules/control-bar/components/share-state-nav/index.js +22 -10
- package/lib/modules/control-bar/index.css +1 -2
- package/lib/modules/control-bar/index.d.ts +14 -0
- package/lib/modules/control-bar/index.js +10 -6
- package/lib/modules/control-bar/store.d.ts +40 -20
- package/lib/modules/control-bar/store.js +156 -192
- package/lib/modules/control-bar/view.js +64 -26
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +1 -1
- package/lib/modules/device-pretest/settings/beauty.js +2 -1
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -1
- package/lib/modules/device-pretest/store.js +0 -2
- package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +38 -68
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/control-bar/index.js +1 -0
- package/lib/modules/dialog/components/device-setting/index.js +2 -1
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +3 -4
- package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -0
- package/lib/modules/dialog/components/dialog-container/index.js +19 -13
- package/lib/modules/dialog/components/live-streaming/index.js +4 -2
- package/lib/modules/dialog/components/participant/index.js +2 -2
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +6 -3
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +14 -4
- package/lib/modules/dialog/components/share-screen-selection/index.js +3 -1
- package/lib/modules/dialog/components/system-preference/electron.js +6 -6
- package/lib/modules/dialog/components/system-preference/index.css +3 -0
- package/lib/modules/dialog/components/system-preference/index.d.ts +17 -2
- package/lib/modules/dialog/components/system-preference/index.js +48 -59
- package/lib/modules/dialog/components/video-window/index.d.ts +1 -1
- package/lib/modules/dialog/components/video-window/index.js +214 -101
- package/lib/modules/dialog/components/widget/electron.js +4 -8
- package/lib/modules/dialog/components/widget/index.js +4 -2
- package/lib/modules/dialog/hooks/useElectron.d.ts +7 -0
- package/lib/modules/dialog/hooks/useElectron.js +209 -17
- package/lib/modules/dialog/index.css +1 -11
- package/lib/modules/dialog/index.d.ts +9 -6
- package/lib/modules/dialog/index.js +12 -14
- package/lib/modules/dialog/store.d.ts +26 -10
- package/lib/modules/dialog/store.js +150 -85
- package/lib/modules/dialog/view.d.ts +1 -4
- package/lib/modules/dialog/view.js +14 -10
- package/lib/modules/event-confirm/index.css +11 -0
- package/lib/modules/event-confirm/index.d.ts +6 -0
- package/lib/modules/event-confirm/index.js +3 -2
- package/lib/modules/event-confirm/store.d.ts +10 -4
- package/lib/modules/event-confirm/store.js +91 -35
- package/lib/modules/event-confirm/view.js +65 -29
- package/lib/modules/event-toast/store.js +4 -4
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.js +5 -5
- package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.js +7 -7
- package/lib/modules/{Interpreter → interpreter}/constant.d.ts +0 -4
- package/lib/modules/{Interpreter → interpreter}/constant.js +3 -45
- package/lib/modules/{Interpreter → interpreter}/index.d.ts +5 -1
- package/lib/modules/{Interpreter → interpreter}/index.js +4 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.js +5 -8
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +0 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.js +6 -9
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/store.d.ts +8 -5
- package/lib/modules/{Interpreter → interpreter}/store.js +90 -44
- package/lib/modules/{Interpreter → interpreter}/type.d.ts +5 -1
- package/lib/modules/{Interpreter → interpreter}/utils.d.ts +0 -1
- package/lib/modules/{Interpreter → interpreter}/utils.js +2 -23
- package/lib/modules/{Interpreter → interpreter}/view.js +2 -6
- package/lib/modules/invite/enums.js +1 -0
- package/lib/modules/invite/index.d.ts +4 -0
- package/lib/modules/invite/index.js +3 -1
- package/lib/modules/invite/store.d.ts +11 -2
- package/lib/modules/invite/store.js +28 -5
- package/lib/modules/invite/voip-invite.js +3 -3
- package/lib/modules/layout/components/Aside.js +1 -1
- package/lib/modules/layout/components/Carousel.js +38 -15
- package/lib/modules/layout/components/Gallery.js +35 -13
- package/lib/modules/layout/components/Layout.js +4 -7
- package/lib/modules/layout/components/index.js +0 -1
- package/lib/modules/layout/index.css +2 -2
- package/lib/modules/layout/index.d.ts +6 -0
- package/lib/modules/layout/index.js +4 -1
- package/lib/modules/layout/member-window/index.css +9 -22
- package/lib/modules/layout/member-window/index.d.ts +1 -1
- package/lib/modules/layout/member-window/index.js +26 -27
- package/lib/modules/layout/store.d.ts +23 -10
- package/lib/modules/layout/store.js +184 -166
- package/lib/modules/layout/type.d.ts +2 -0
- package/lib/modules/layout/type.js +2 -0
- package/lib/modules/layout/video-window-datasource.js +0 -4
- package/lib/modules/live-streaming/index.d.ts +2 -0
- package/lib/modules/live-streaming/index.js +2 -2
- package/lib/modules/live-streaming/store.d.ts +4 -8
- package/lib/modules/live-streaming/store.js +9 -20
- package/lib/modules/notification/index.css +17 -0
- package/lib/modules/notification/interpreter-status/index.js +2 -1
- package/lib/modules/notification/store.js +4 -2
- package/lib/modules/notification/view.js +7 -2
- package/lib/modules/offscreen-pulling/index.d.ts +1 -0
- package/lib/modules/offscreen-pulling/index.js +4 -1
- package/lib/modules/participant/attendee/index.css +51 -0
- package/lib/modules/participant/attendee/index.d.ts +5 -8
- package/lib/modules/participant/attendee/index.js +15 -64
- package/lib/modules/participant/components/attendee/index.js +0 -3
- package/lib/modules/participant/components/confirm-input/index.d.ts +1 -1
- package/lib/modules/participant/components/confirm-input/index.js +3 -2
- package/lib/modules/participant/components/drop-menu/index.js +0 -3
- package/lib/modules/participant/components/mute-all/index.d.ts +3 -7
- package/lib/modules/participant/components/mute-all/index.js +21 -33
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +1 -4
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +1 -1
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +1 -1
- package/lib/modules/participant/components/participants/components/footer/index.js +3 -2
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +0 -2
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +0 -2
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +0 -2
- package/lib/modules/participant/components/participants/components/participants/index.js +0 -2
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +0 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +0 -2
- package/lib/modules/participant/components/participants/index.js +18 -112
- package/lib/modules/participant/components/user-action/index.js +0 -2
- package/lib/modules/participant/index.css +3 -0
- package/lib/modules/participant/index.d.ts +12 -0
- package/lib/modules/participant/index.js +7 -3
- package/lib/modules/participant/member-list-data-source.d.ts +2 -2
- package/lib/modules/participant/member-list-data-source.js +11 -20
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/store.d.ts +44 -36
- package/lib/modules/participant/store.js +527 -535
- package/lib/modules/participant/type.d.ts +2 -9
- package/lib/modules/pc-audio-connect/store.d.ts +1 -1
- package/lib/modules/pc-audio-connect/store.js +9 -7
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +2 -1
- package/lib/modules/phone-audio-connect/store.js +0 -3
- package/lib/modules/phone-audio-connect/view.js +2 -1
- package/lib/modules/setting/audio-settings/audio-settings.js +6 -5
- package/lib/modules/setting/audio-settings/index.css +11 -2
- package/lib/modules/setting/config.js +1 -1
- package/lib/modules/setting/minutes-settings/minutes-settings.js +2 -1
- package/lib/modules/setting/state/index.js +0 -4
- package/lib/modules/setting/store.d.ts +1 -0
- package/lib/modules/setting/store.js +24 -10
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/setting/video-settings/index.css +12 -17
- package/lib/modules/setting/video-settings/video-settings-basic.js +40 -44
- package/lib/modules/share-screen/components/selection/index.js +71 -81
- package/lib/modules/share-screen/index.d.ts +6 -1
- package/lib/modules/share-screen/index.js +4 -1
- package/lib/modules/share-screen/selection/index.css +0 -2
- package/lib/modules/share-screen/selection/index.js +97 -83
- package/lib/modules/share-screen/store.d.ts +37 -33
- package/lib/modules/share-screen/store.js +311 -429
- package/lib/modules/sound-effect/index.js +0 -1
- package/lib/modules/sound-effect/sound-effect-player.d.ts +0 -4
- package/lib/modules/sound-effect/sound-effect-player.js +4 -4
- package/lib/modules/state-bar/index.css +2 -15
- package/lib/modules/state-bar/index.d.ts +10 -0
- package/lib/modules/state-bar/index.js +6 -1
- package/lib/modules/state-bar/layout-config.js +2 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -18
- package/lib/modules/state-bar/meeting-details.js +10 -23
- package/lib/modules/state-bar/meeting-time.js +5 -10
- package/lib/modules/state-bar/store.d.ts +30 -7
- package/lib/modules/state-bar/store.js +145 -100
- package/lib/modules/state-bar/view.js +63 -32
- package/lib/modules/video-window/components/members/index.js +5 -3
- package/lib/modules/video-window/components/topControl/index.js +0 -2
- package/lib/modules/video-window/index.d.ts +7 -0
- package/lib/modules/video-window/index.js +14 -20
- package/lib/modules/video-window/members/index.js +2 -1
- package/lib/modules/video-window/store.d.ts +19 -88
- package/lib/modules/video-window/store.js +98 -369
- package/lib/modules/video-window/topControl/index.js +0 -2
- package/lib/modules/video-window/type.d.ts +40 -4
- package/lib/modules/video-window/type.js +4 -4
- package/lib/modules/video-window/view.js +11 -23
- package/lib/modules/whiteboard/components/switch-theme/index.js +0 -2
- package/lib/modules/whiteboard/components/switch-theme/item.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/index.js +1 -4
- package/lib/modules/whiteboard/index.d.ts +1 -0
- package/lib/modules/whiteboard/index.js +7 -8
- package/lib/modules/widget/sdk.d.ts +1 -1
- package/lib/modules/widget/sdk.js +5 -2
- package/lib/modules/widget/type.d.ts +6 -5
- package/lib/modules/widget/web-widget.js +5 -5
- package/lib/providers/ability-provider.js +4 -2
- package/lib/providers/chat-provider.d.ts +16 -9
- package/lib/providers/chat-provider.js +76 -8
- package/lib/providers/device-privilege-provider.d.ts +5 -1
- package/lib/providers/device-privilege-provider.js +21 -3
- package/lib/providers/device-provider.js +5 -7
- package/lib/providers/device-stream-provider.d.ts +15 -3
- package/lib/providers/device-stream-provider.js +116 -35
- package/lib/providers/dialog-provider.d.ts +9 -8
- package/lib/providers/dialog-provider.js +8 -6
- package/lib/providers/event-provider.js +4 -4
- package/lib/providers/interpreter-provider.d.ts +7 -26
- package/lib/providers/interpreter-provider.js +473 -709
- package/lib/providers/local-storage-provider.d.ts +6 -1
- package/lib/providers/local-storage-provider.js +15 -2
- package/lib/providers/message-provider.js +4 -4
- package/lib/providers/phone-audio-provider.js +24 -21
- package/lib/providers/privilege-provider.d.ts +13 -12
- package/lib/providers/privilege-provider.js +19 -15
- package/lib/providers/renderer-provider.d.ts +5 -0
- package/lib/providers/renderer-provider.js +8 -2
- package/lib/providers/room-provider.d.ts +7 -17
- package/lib/providers/room-provider.js +113 -164
- package/lib/providers/screen-share-provider.d.ts +19 -0
- package/lib/providers/screen-share-provider.js +100 -11
- package/lib/providers/widget-provider.d.ts +14 -6
- package/lib/providers/widget-provider.js +11 -8
- package/lib/scenes/main-scene.d.ts +11 -0
- package/lib/scenes/main-scene.js +60 -35
- package/lib/scenes/waiting-scene.d.ts +9 -0
- package/lib/scenes/waiting-scene.js +27 -26
- package/lib/shared-data-source/chat-data.d.ts +11 -0
- package/lib/shared-data-source/chat-data.js +17 -8
- package/lib/shared-data-source/interpreter.d.ts +34 -21
- package/lib/shared-data-source/interpreter.js +103 -104
- package/lib/shared-data-source/layout-data.js +1 -4
- package/lib/shared-data-source/meeting-time.d.ts +68 -0
- package/lib/shared-data-source/meeting-time.js +299 -0
- package/lib/shared-data-source/member-data.js +4 -6
- package/lib/shared-data-source/pin-data.d.ts +8 -4
- package/lib/shared-data-source/pin-data.js +91 -4
- package/lib/shared-data-source/security-data.d.ts +35 -0
- package/lib/{common/remote-renderer.js → shared-data-source/security-data.js} +88 -71
- package/lib/shared-data-source/setting.d.ts +3 -1
- package/lib/shared-data-source/setting.js +12 -3
- package/lib/shared-data-source/video-window.d.ts +7 -8
- package/lib/shared-data-source/video-window.js +97 -98
- package/lib/shared-data-source/waiting-room.d.ts +29 -2
- package/lib/shared-data-source/waiting-room.js +102 -40
- package/lib/translations/enUS.d.ts +25 -12
- package/lib/translations/enUS.js +49 -34
- package/lib/translations/zhCN.d.ts +25 -12
- package/lib/translations/zhCN.js +63 -48
- package/lib/type.d.ts +64 -48
- package/lib/type.js +28 -1
- package/lib/ui-manager.d.ts +3 -2
- package/lib/ui-manager.js +8 -7
- package/lib/ui-scene.d.ts +7 -1
- package/lib/ui-scene.js +187 -98
- package/lib/utilities/constant.d.ts +5 -2
- package/lib/utilities/constant.js +10 -0
- package/lib/utilities/default-config.d.ts +5 -1
- package/lib/utilities/default-config.js +28 -2
- package/lib/utilities/logger.js +0 -1
- package/lib/utilities/meeting-detail.js +11 -10
- package/lib/utilities/parameters.d.ts +4 -0
- package/lib/utilities/parameters.js +13 -1
- package/lib/utilities/privilege.js +0 -2
- package/lib/utilities/renderer-event.js +0 -2
- package/lib/utilities/renderer.js +0 -1
- package/lib/utilities/setting-config-storage.js +0 -2
- package/lib/utilities/tools.d.ts +7 -6
- package/lib/utilities/tools.js +2 -9
- package/lib/waiting-room-control-manager.d.ts +28 -0
- package/lib/waiting-room-control-manager.js +210 -0
- package/package.json +7 -6
- package/public/index.html +7 -1
- package/installer/icons/icon.png +0 -0
- package/lib/ scenes/base.d.ts +0 -10
- package/lib/ scenes/base.js +0 -75
- package/lib/ scenes/main-scene.d.ts +0 -43
- package/lib/ scenes/main-scene.js +0 -368
- package/lib/ scenes/waiting-scene.d.ts +0 -31
- package/lib/ scenes/waiting-scene.js +0 -119
- package/lib/common/remote-renderer.d.ts +0 -15
- package/lib/common/type.d.ts +0 -8
- package/lib/common/type.js +0 -6
- package/lib/electron/bootstrap.d.ts +0 -1
- package/lib/electron/bootstrap.js +0 -56
- package/lib/electron/dev.d.ts +0 -1
- package/lib/error-fallback.css +0 -62
- package/lib/error-fallback.d.ts +0 -2
- package/lib/error-fallback.js +0 -19
- package/lib/modules/Interpreter/context.d.ts +0 -2
- package/lib/modules/Interpreter/context.js +0 -9
- package/lib/modules/action-bar/components/device/index.css +0 -162
- package/lib/modules/action-bar/components/device/index.d.ts +0 -8
- package/lib/modules/action-bar/components/device/index.js +0 -611
- package/lib/modules/action-bar/components/item.d.ts +0 -27
- package/lib/modules/action-bar/components/item.js +0 -164
- package/lib/modules/action-bar/components/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/components/trigger-input-language-room/index.css +0 -86
- package/lib/modules/action-bar/components/trigger-input-language-room/index.d.ts +0 -3
- package/lib/modules/action-bar/components/trigger-input-language-room/index.js +0 -215
- package/lib/modules/action-bar/components/trigger-output-language-room/constant.d.ts +0 -10
- package/lib/modules/action-bar/components/trigger-output-language-room/constant.js +0 -8
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.css +0 -22
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.d.ts +0 -3
- package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.js +0 -75
- package/lib/modules/action-bar/components/trigger-output-language-room/index.d.ts +0 -8
- package/lib/modules/action-bar/components/trigger-output-language-room/index.js +0 -98
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.d.ts +0 -5
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.js +0 -66
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.d.ts +0 -5
- package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.js +0 -37
- package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.d.ts +0 -12
- package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.js +0 -138
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +0 -58
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +0 -8
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +0 -100
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +0 -56
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +0 -5
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +0 -33
- package/lib/modules/action-bar/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/notification-bar/index.css +0 -74
- package/lib/modules/action-bar/notification-bar/index.d.ts +0 -2
- package/lib/modules/action-bar/notification-bar/index.js +0 -99
- package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.css +0 -86
- package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +0 -15
- package/lib/modules/action-bar/trigger-input-language-room/index.js +0 -220
- package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +0 -10
- package/lib/modules/action-bar/trigger-output-language-room/constant.js +0 -8
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +0 -22
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +0 -14
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +0 -75
- package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +0 -4
- package/lib/modules/action-bar/trigger-output-language-room/index.js +0 -98
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +0 -5
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +0 -66
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +0 -5
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +0 -36
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +0 -12
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +0 -138
- package/lib/modules/components/dialog-container/component/body.d.ts +0 -7
- package/lib/modules/components/dialog-container/component/body.js +0 -46
- package/lib/modules/components/dialog-container/index.css +0 -78
- package/lib/modules/components/dialog-container/index.d.ts +0 -11
- package/lib/modules/components/dialog-container/index.js +0 -110
- package/lib/modules/dialog/components/Interpreter/user-queue/index.css +0 -36
- package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +0 -3
- package/lib/modules/dialog/components/Interpreter/user-queue/index.js +0 -47
- package/lib/modules/notification/context.d.ts +0 -2
- package/lib/modules/notification/context.js +0 -9
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -278
- package/lib/modules/participant/components/attendee/components/interpreter-tag/index.d.ts +0 -3
- package/lib/modules/participant/components/attendee/components/interpreter-tag/index.js +0 -48
- package/lib/modules/participant/components/drop-menu/util.d.ts +0 -5
- package/lib/modules/participant/components/drop-menu/util.js +0 -28
- package/lib/modules/participant/components/participants/render-tab/index.d.ts +0 -2
- package/lib/modules/participant/components/participants/render-tab/index.js +0 -49
- package/lib/modules/participant/components/participants/render-user/index.d.ts +0 -5
- package/lib/modules/participant/components/participants/render-user/index.js +0 -21
- package/lib/modules/participant/components/user-action/audio-button/index.d.ts +0 -7
- package/lib/modules/participant/components/user-action/audio-button/index.js +0 -31
- package/lib/modules/participant/components/user-action/move-actions-popover/index.d.ts +0 -12
- package/lib/modules/participant/components/user-action/move-actions-popover/index.js +0 -82
- package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.d.ts +0 -4
- package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.js +0 -26
- package/lib/scenes/base.d.ts +0 -10
- package/lib/scenes/base.js +0 -75
- package/lib/ui-node.d.ts +0 -25
- package/lib/ui-node.js +0 -156
- /package/lib/modules/action-bar/{Interpreter → interpreter}/index.d.ts +0 -0
- /package/lib/modules/action-bar/{Interpreter → interpreter}/index.js +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/electron.d.ts +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/electron.js +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.css +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.d.ts +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/add-button/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/add-button/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/add-button/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/config.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/config.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/interpreter-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/interpreter-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/set-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/set-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/type.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/view.d.ts +0 -0
|
@@ -62,7 +62,6 @@ var FcrUIEventStore = exports.FcrUIEventStore = /*#__PURE__*/function () {
|
|
|
62
62
|
value: function showToast(params) {
|
|
63
63
|
this.sendEvent(_constant.UIAction.OPEN_DIALOG, {
|
|
64
64
|
dialogKey: _constant.DialogKey.SHOW_TOAST,
|
|
65
|
-
dialogId: "".concat(_constant.DialogKey.SHOW_TOAST, "_").concat(Date.now()),
|
|
66
65
|
params: params
|
|
67
66
|
});
|
|
68
67
|
}
|
|
@@ -83,18 +82,11 @@ var FcrUIEventStore = exports.FcrUIEventStore = /*#__PURE__*/function () {
|
|
|
83
82
|
customRootClass: _chat.CHAT_WRAPPER_CLASS
|
|
84
83
|
}));
|
|
85
84
|
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* 默认同一个 title 或 content 的 confirm 窗口只打开一个实例
|
|
89
|
-
* @param key 可以通过 key 区分相同 title 或 content 的 confirm 窗口
|
|
90
|
-
* @param duration 可以通过 duration 配置自动关闭时间
|
|
91
|
-
* @mulitple 可以通过 mulitple 配置打开多个实例(忽略 key)
|
|
92
|
-
* */
|
|
93
85
|
}, {
|
|
94
86
|
key: "openConfirmDialog",
|
|
95
|
-
value: function openConfirmDialog(params
|
|
87
|
+
value: function openConfirmDialog(params) {
|
|
96
88
|
var dialogKey = _constant.DialogKey.CONFIRM;
|
|
97
|
-
var dialogId =
|
|
89
|
+
var dialogId = "".concat(dialogKey, "_").concat(Date.now());
|
|
98
90
|
this.sendEvent(_constant.UIAction.OPEN_DIALOG, {
|
|
99
91
|
dialogKey: dialogKey,
|
|
100
92
|
dialogId: dialogId,
|
|
@@ -120,14 +112,6 @@ var FcrUIEventStore = exports.FcrUIEventStore = /*#__PURE__*/function () {
|
|
|
120
112
|
dialogId: dialogId
|
|
121
113
|
});
|
|
122
114
|
}
|
|
123
|
-
}, {
|
|
124
|
-
key: "closeConfirm",
|
|
125
|
-
value: function closeConfirm(dialogId) {
|
|
126
|
-
this.sendEvent(_constant.UIAction.CLOSE_DIALOG, {
|
|
127
|
-
dialogId: dialogId,
|
|
128
|
-
dialogKey: _constant.DialogKey.CONFIRM
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
115
|
}, {
|
|
132
116
|
key: "startShareScreen",
|
|
133
117
|
value: function startShareScreen() {
|
|
@@ -236,6 +220,11 @@ var FcrUIEventStore = exports.FcrUIEventStore = /*#__PURE__*/function () {
|
|
|
236
220
|
value: function closeRemoveAdmitWaitingRoomDialog(dialogKey) {
|
|
237
221
|
this.sendEvent(_constant.UIAction.CLOSE_REMOVE_ADMIT_WAITING_ROOM_DIALOG, dialogKey);
|
|
238
222
|
}
|
|
223
|
+
}, {
|
|
224
|
+
key: "closeConfirmDialog",
|
|
225
|
+
value: function closeConfirmDialog() {
|
|
226
|
+
this.closeDialog(_constant.DialogKey.CONFIRM);
|
|
227
|
+
}
|
|
239
228
|
}, {
|
|
240
229
|
key: "exitRoom",
|
|
241
230
|
value: function exitRoom(reason, roomType) {
|
package/lib/common/room-store.js
CHANGED
|
@@ -334,7 +334,7 @@ var FcrRoomStore = exports.FcrRoomStore = /*#__PURE__*/function () {
|
|
|
334
334
|
key: "joinInterpreterRoom",
|
|
335
335
|
value: function () {
|
|
336
336
|
var _joinInterpreterRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(param) {
|
|
337
|
-
var control, roomJoinOptions;
|
|
337
|
+
var control, roomJoinOptions, _control$getRoomInfo, _control$getRoomInfo2;
|
|
338
338
|
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
339
339
|
while (1) switch (_context6.prev = _context6.next) {
|
|
340
340
|
case 0:
|
|
@@ -344,14 +344,14 @@ var FcrRoomStore = exports.FcrRoomStore = /*#__PURE__*/function () {
|
|
|
344
344
|
_context6.next = 5;
|
|
345
345
|
return control.join(roomJoinOptions);
|
|
346
346
|
case 5:
|
|
347
|
-
this.logger.info("interpreterLog-joinInterpreterRoom succeed",
|
|
347
|
+
this.logger.info("interpreterLog-joinInterpreterRoom succeed", (_control$getRoomInfo = control.getRoomInfo()) === null || _control$getRoomInfo === void 0 ? void 0 : _control$getRoomInfo.roomName);
|
|
348
348
|
this._observable.notifyObservers('onJoinInterpretingRoomSuccess', param);
|
|
349
349
|
_context6.next = 13;
|
|
350
350
|
break;
|
|
351
351
|
case 9:
|
|
352
352
|
_context6.prev = 9;
|
|
353
353
|
_context6.t0 = _context6["catch"](1);
|
|
354
|
-
this.logger.info("interpreterLog-joinInterpreterRoom fail",
|
|
354
|
+
this.logger.info("interpreterLog-joinInterpreterRoom fail", (_control$getRoomInfo2 = control.getRoomInfo()) === null || _control$getRoomInfo2 === void 0 ? void 0 : _control$getRoomInfo2.roomName);
|
|
355
355
|
this._observable.notifyObservers('onJoinInterpretingRoomFailed', param);
|
|
356
356
|
case 13:
|
|
357
357
|
case "end":
|
|
@@ -368,7 +368,7 @@ var FcrRoomStore = exports.FcrRoomStore = /*#__PURE__*/function () {
|
|
|
368
368
|
key: "leaveInterpreterRoom",
|
|
369
369
|
value: function () {
|
|
370
370
|
var _leaveInterpreterRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(param) {
|
|
371
|
-
var control;
|
|
371
|
+
var control, _control$getRoomInfo3, _control$getRoomInfo4;
|
|
372
372
|
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
373
373
|
while (1) switch (_context7.prev = _context7.next) {
|
|
374
374
|
case 0:
|
|
@@ -378,14 +378,14 @@ var FcrRoomStore = exports.FcrRoomStore = /*#__PURE__*/function () {
|
|
|
378
378
|
_context7.next = 5;
|
|
379
379
|
return control.leave();
|
|
380
380
|
case 5:
|
|
381
|
-
this.logger.info("interpreterLog-leaveInterpreterRoom succeed",
|
|
381
|
+
this.logger.info("interpreterLog-leaveInterpreterRoom succeed", (_control$getRoomInfo3 = control.getRoomInfo()) === null || _control$getRoomInfo3 === void 0 ? void 0 : _control$getRoomInfo3.roomName);
|
|
382
382
|
this._observable.notifyObservers('onLeaveInterpretingRoomSuccess', param);
|
|
383
383
|
_context7.next = 13;
|
|
384
384
|
break;
|
|
385
385
|
case 9:
|
|
386
386
|
_context7.prev = 9;
|
|
387
387
|
_context7.t0 = _context7["catch"](1);
|
|
388
|
-
this.logger.info("interpreterLog-leaveInterpreterRoom fail",
|
|
388
|
+
this.logger.info("interpreterLog-leaveInterpreterRoom fail", (_control$getRoomInfo4 = control.getRoomInfo()) === null || _control$getRoomInfo4 === void 0 ? void 0 : _control$getRoomInfo4.roomName);
|
|
389
389
|
this._observable.notifyObservers('onLeaveInterpretingRoomFailed', param);
|
|
390
390
|
case 13:
|
|
391
391
|
case "end":
|
|
@@ -2,24 +2,33 @@ import { FcrPrivilegeControl, FcrStreamControl, FcrUserControl } from 'fcr-core'
|
|
|
2
2
|
import { FcrUserRole, FcrUserInfo, FcrLineType } from 'fcr-core/lib/type';
|
|
3
3
|
import { FcrUIEventStore } from './event-store';
|
|
4
4
|
import { FcrSharePermissionState } from 'fcr-core/lib/room-control/whiteboard-control/enums';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { FcrRoomSessionControl } from 'fcr-core/lib/room-control/room-session/type';
|
|
6
|
+
import { FcrPermissionAction, FcrPermissionInfo, FcrPrivilegeUserRole, FcrSecurityInfo, FcrSecuritySendChatPayload } from 'fcr-core/lib/room-control/privilege-control/type';
|
|
7
|
+
import { InterpreterRoomControlInfoType } from './device-stream-store';
|
|
8
|
+
export type FcrSecuritySendChatOriginalPayload = {
|
|
9
|
+
public: 0 | 1;
|
|
10
|
+
private: {
|
|
11
|
+
host: 0 | 1;
|
|
12
|
+
cohost: 0 | 1;
|
|
13
|
+
participant: 0 | 1;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
8
16
|
export declare class FcrSecurityStore {
|
|
9
17
|
private _privilegeControl;
|
|
10
18
|
private _userControl;
|
|
11
19
|
private _streamControl;
|
|
20
|
+
private _roomSessionControl;
|
|
12
21
|
private _uiEventStore;
|
|
13
|
-
private _interpterControl?;
|
|
14
22
|
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
15
23
|
private _disposers;
|
|
16
24
|
private _prevWaterMarkEnable;
|
|
25
|
+
private _InterpreterRoomControlInfo;
|
|
17
26
|
accessor securityInfos: FcrSecurityInfo[];
|
|
18
|
-
accessor permissionInfos: FcrPermissionInfo[];
|
|
27
|
+
accessor permissionInfos: FcrPermissionInfo[] | undefined;
|
|
19
28
|
accessor privilegeOperator: FcrUserInfo | undefined;
|
|
20
29
|
accessor boardOwnerUser: FcrUserInfo | undefined;
|
|
21
30
|
get hasSecurityPermission(): boolean;
|
|
22
|
-
constructor(_privilegeControl: FcrPrivilegeControl, _userControl: FcrUserControl, _streamControl: FcrStreamControl,
|
|
31
|
+
constructor(_privilegeControl: FcrPrivilegeControl, _userControl: FcrUserControl, _streamControl: FcrStreamControl, _roomSessionControl: FcrRoomSessionControl, _uiEventStore: FcrUIEventStore);
|
|
23
32
|
release(): void;
|
|
24
33
|
get localUser(): FcrUserInfo;
|
|
25
34
|
allowChangeSelfName: () => boolean;
|
|
@@ -109,13 +118,14 @@ export declare class FcrSecurityStore {
|
|
|
109
118
|
setAllowUnmuteSelfVideo: (enable: boolean) => void;
|
|
110
119
|
setAllowUnmuteSelfAudio: (enable: boolean) => void;
|
|
111
120
|
hasSendAllChatPermission: () => boolean;
|
|
112
|
-
|
|
113
|
-
|
|
121
|
+
_hasPermission: (action: FcrPermissionAction, targetRole: FcrPrivilegeUserRole | FcrUserRole) => boolean;
|
|
122
|
+
_hasPermissionWithParams: (action: FcrPermissionAction, targetRole: FcrPrivilegeUserRole | FcrUserRole, params: Record<string, unknown>) => boolean;
|
|
114
123
|
private _handlePermissionUpdated;
|
|
115
124
|
private _handleSecurityUpdated;
|
|
125
|
+
private _handleUnmuteSessionReceived;
|
|
116
126
|
permitPrivateChat(userId: string): boolean;
|
|
117
127
|
private _printAllPermissions;
|
|
118
128
|
setAllowWaterMark(state: boolean, lineType?: FcrLineType): Promise<void>;
|
|
119
|
-
|
|
129
|
+
setInterpreterRoomControlInfo(payload: InterpreterRoomControlInfoType | null): void;
|
|
120
130
|
}
|
|
121
131
|
export declare const SecurityStoreContext: import("react").Context<FcrSecurityStore>;
|
|
@@ -88,7 +88,7 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
|
88
88
|
var _type4 = require("fcr-core/lib/room-control/privilege-control/type");
|
|
89
89
|
var _react = require("react");
|
|
90
90
|
var _FcrSecurityStore;
|
|
91
|
-
var _initProto, _init_securityInfos, _init_permissionInfos, _init_privilegeOperator, _init_boardOwnerUser, _handlePermissionUpdatedDecs, _handleSecurityUpdatedDecs,
|
|
91
|
+
var _initProto, _init_securityInfos, _init_permissionInfos, _init_privilegeOperator, _init_boardOwnerUser, _handlePermissionUpdatedDecs, _handleSecurityUpdatedDecs, _ref;
|
|
92
92
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
93
93
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
94
94
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -103,13 +103,14 @@ var _A = /*#__PURE__*/new WeakMap();
|
|
|
103
103
|
var _B = /*#__PURE__*/new WeakMap();
|
|
104
104
|
var _C = /*#__PURE__*/new WeakMap();
|
|
105
105
|
var _D = /*#__PURE__*/new WeakMap();
|
|
106
|
-
_ref = (_handlePermissionUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSecurityUpdatedDecs = [_mobx.action, _mobx.action.bound],
|
|
106
|
+
_ref = (_handlePermissionUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleSecurityUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
107
107
|
var FcrSecurityStore = exports.FcrSecurityStore = /*#__PURE__*/function () {
|
|
108
|
-
function FcrSecurityStore(_privilegeControl, _userControl, _streamControl,
|
|
108
|
+
function FcrSecurityStore(_privilegeControl, _userControl, _streamControl, _roomSessionControl, _uiEventStore) {
|
|
109
109
|
var _this = this;
|
|
110
110
|
(0, _classCallCheck2["default"])(this, FcrSecurityStore);
|
|
111
111
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
112
112
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
113
|
+
(0, _defineProperty2["default"])(this, "_InterpreterRoomControlInfo", null);
|
|
113
114
|
_classPrivateFieldInitSpec(this, _A, _init_securityInfos(this));
|
|
114
115
|
_classPrivateFieldInitSpec(this, _B, _init_permissionInfos(this));
|
|
115
116
|
_classPrivateFieldInitSpec(this, _C, _init_privilegeOperator(this));
|
|
@@ -497,12 +498,13 @@ var FcrSecurityStore = exports.FcrSecurityStore = /*#__PURE__*/function () {
|
|
|
497
498
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
498
499
|
while (1) switch (_context2.prev = _context2.next) {
|
|
499
500
|
case 0:
|
|
501
|
+
_this.logger.info('setAllowWriteBoard', state);
|
|
500
502
|
enable = typeof state === 'boolean' ? state : state === _enums.FcrSharePermissionState.ON;
|
|
501
|
-
_context2.next =
|
|
503
|
+
_context2.next = 4;
|
|
502
504
|
return _this._privilegeControl.allowWriteBoard(enable, [_type4.FcrPrivilegeUserRole.PARTICIPANT]);
|
|
503
|
-
case 3:
|
|
504
|
-
return _context2.abrupt("return", _context2.sent);
|
|
505
505
|
case 4:
|
|
506
|
+
return _context2.abrupt("return", _context2.sent);
|
|
507
|
+
case 5:
|
|
506
508
|
case "end":
|
|
507
509
|
return _context2.stop();
|
|
508
510
|
}
|
|
@@ -629,11 +631,12 @@ var FcrSecurityStore = exports.FcrSecurityStore = /*#__PURE__*/function () {
|
|
|
629
631
|
});
|
|
630
632
|
return !!(info !== null && info !== void 0 && info.enable);
|
|
631
633
|
}));
|
|
634
|
+
(0, _defineProperty2["default"])(this, "_handleUnmuteSessionReceived", function () {});
|
|
632
635
|
this._privilegeControl = _privilegeControl;
|
|
633
636
|
this._userControl = _userControl;
|
|
634
637
|
this._streamControl = _streamControl;
|
|
638
|
+
this._roomSessionControl = _roomSessionControl;
|
|
635
639
|
this._uiEventStore = _uiEventStore;
|
|
636
|
-
this._interpterControl = _interpterControl;
|
|
637
640
|
this.securityInfos = this._privilegeControl.getAllSecurityInfo();
|
|
638
641
|
this.permissionInfos = this._privilegeControl.getAllLocalUserPermissionInfo();
|
|
639
642
|
this._uiEventStore.addObserver({
|
|
@@ -731,27 +734,26 @@ var FcrSecurityStore = exports.FcrSecurityStore = /*#__PURE__*/function () {
|
|
|
731
734
|
this.privilegeOperator = event.operatorUser;
|
|
732
735
|
var securityInfo = event.securityInfo;
|
|
733
736
|
var enable = securityInfo.enable;
|
|
734
|
-
var
|
|
735
|
-
var toastType = isPersonalOperation ? 'normal' : 'info';
|
|
736
|
-
var operator = isPersonalOperation ? (0, _i18n.transI18n)('fmt_settings_labels_you') : (((_event$operatorUser2 = event.operatorUser) === null || _event$operatorUser2 === void 0 ? void 0 : _event$operatorUser2.userRole) === _type.FcrUserRole.HOST ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost')) + " ".concat((_this$privilegeOperat = this.privilegeOperator) === null || _this$privilegeOperat === void 0 ? void 0 : _this$privilegeOperat.userName, " ");
|
|
737
|
+
var operator = this.localUser.userId === ((_event$operatorUser = event.operatorUser) === null || _event$operatorUser === void 0 ? void 0 : _event$operatorUser.userId) ? (0, _i18n.transI18n)('fmt_settings_labels_you') : (((_event$operatorUser2 = event.operatorUser) === null || _event$operatorUser2 === void 0 ? void 0 : _event$operatorUser2.userRole) === _type.FcrUserRole.HOST ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost')) + " ".concat((_this$privilegeOperat = this.privilegeOperator) === null || _this$privilegeOperat === void 0 ? void 0 : _this$privilegeOperat.userName, " ");
|
|
737
738
|
if (((_securityInfo$info = securityInfo.info) === null || _securityInfo$info === void 0 ? void 0 : _securityInfo$info.action) === _type4.FcrSecurityAction.JoinWithMuteAudio) {
|
|
738
739
|
if (enable) {
|
|
739
740
|
this._uiEventStore.showToast({
|
|
740
|
-
type:
|
|
741
|
+
type: 'info',
|
|
741
742
|
message: (0, _i18n.transI18n)('fmt_settings_tips_muteallwhilejoin', {
|
|
742
743
|
reason1: operator
|
|
743
744
|
})
|
|
744
745
|
});
|
|
745
746
|
}
|
|
746
747
|
} else if (((_securityInfo$info2 = securityInfo.info) === null || _securityInfo$info2 === void 0 ? void 0 : _securityInfo$info2.action) === _type4.FcrSecurityAction.StartAudio) {
|
|
748
|
+
var _this$_InterpreterRoo;
|
|
747
749
|
var toastMessage = enable ? (0, _i18n.transI18n)('fmt_settings_tips_allowedselfunmuting', {
|
|
748
750
|
reason1: operator
|
|
749
751
|
}) : (0, _i18n.transI18n)('fmt_settings_tips_disabledselfunmuting', {
|
|
750
752
|
reason1: operator
|
|
751
753
|
});
|
|
752
|
-
if (!this.
|
|
754
|
+
if (!((_this$_InterpreterRoo = this._InterpreterRoomControlInfo) !== null && _this$_InterpreterRoo !== void 0 && _this$_InterpreterRoo.interpreter)) {
|
|
753
755
|
this._uiEventStore.showToast({
|
|
754
|
-
type:
|
|
756
|
+
type: 'info',
|
|
755
757
|
message: toastMessage
|
|
756
758
|
});
|
|
757
759
|
}
|
|
@@ -762,7 +764,7 @@ var FcrSecurityStore = exports.FcrSecurityStore = /*#__PURE__*/function () {
|
|
|
762
764
|
reason1: operator
|
|
763
765
|
});
|
|
764
766
|
this._uiEventStore.showToast({
|
|
765
|
-
type:
|
|
767
|
+
type: 'info',
|
|
766
768
|
message: _toastMessage
|
|
767
769
|
});
|
|
768
770
|
} else if (((_securityInfo$info4 = securityInfo.info) === null || _securityInfo$info4 === void 0 ? void 0 : _securityInfo$info4.action) === _type4.FcrSecurityAction.ShareScreen) {
|
|
@@ -772,7 +774,7 @@ var FcrSecurityStore = exports.FcrSecurityStore = /*#__PURE__*/function () {
|
|
|
772
774
|
reason1: operator
|
|
773
775
|
});
|
|
774
776
|
this._uiEventStore.showToast({
|
|
775
|
-
type:
|
|
777
|
+
type: 'info',
|
|
776
778
|
message: _toastMessage2
|
|
777
779
|
});
|
|
778
780
|
} else if (((_securityInfo$info5 = securityInfo.info) === null || _securityInfo$info5 === void 0 ? void 0 : _securityInfo$info5.action) === _type4.FcrSecurityAction.SendChat) {
|
|
@@ -782,7 +784,7 @@ var FcrSecurityStore = exports.FcrSecurityStore = /*#__PURE__*/function () {
|
|
|
782
784
|
reason1: operator
|
|
783
785
|
});
|
|
784
786
|
this._uiEventStore.showToast({
|
|
785
|
-
type:
|
|
787
|
+
type: 'info',
|
|
786
788
|
message: _toastMessage3
|
|
787
789
|
});
|
|
788
790
|
} else if (((_securityInfo$info6 = securityInfo.info) === null || _securityInfo$info6 === void 0 ? void 0 : _securityInfo$info6.action) === _type4.FcrSecurityAction.Sharing && !enable) {
|
|
@@ -796,7 +798,7 @@ var FcrSecurityStore = exports.FcrSecurityStore = /*#__PURE__*/function () {
|
|
|
796
798
|
}
|
|
797
799
|
if (((_this$boardOwnerUser2 = this.boardOwnerUser) === null || _this$boardOwnerUser2 === void 0 ? void 0 : _this$boardOwnerUser2.userId) !== this.localUser.userId) {
|
|
798
800
|
this._uiEventStore.showToast({
|
|
799
|
-
type:
|
|
801
|
+
type: 'info',
|
|
800
802
|
message: (0, _i18n.transI18n)('fmt_screenshare_whiteboard_tips_alreadyopend')
|
|
801
803
|
});
|
|
802
804
|
} else {
|
|
@@ -813,9 +815,7 @@ var FcrSecurityStore = exports.FcrSecurityStore = /*#__PURE__*/function () {
|
|
|
813
815
|
},
|
|
814
816
|
onCancel: function onCancel() {
|
|
815
817
|
_this2._uiEventStore.closeDialog(dialogKey);
|
|
816
|
-
}
|
|
817
|
-
width: 400,
|
|
818
|
-
height: 160
|
|
818
|
+
}
|
|
819
819
|
});
|
|
820
820
|
}
|
|
821
821
|
} else if (((_event$securityInfo$i = event.securityInfo.info) === null || _event$securityInfo$i === void 0 ? void 0 : _event$securityInfo$i.action) === _type4.FcrSecurityAction.WaitingRoom) {
|
|
@@ -825,12 +825,12 @@ var FcrSecurityStore = exports.FcrSecurityStore = /*#__PURE__*/function () {
|
|
|
825
825
|
if (!isSelf) {
|
|
826
826
|
if (enable) {
|
|
827
827
|
this._uiEventStore.showToast({
|
|
828
|
-
type:
|
|
828
|
+
type: 'normal',
|
|
829
829
|
message: "".concat(userName).concat((0, _i18n.transI18n)('fmt_waitingroom_setting_tips_enable'))
|
|
830
830
|
});
|
|
831
831
|
} else {
|
|
832
832
|
this._uiEventStore.showToast({
|
|
833
|
-
type:
|
|
833
|
+
type: 'normal',
|
|
834
834
|
message: "".concat(userName).concat((0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_label_disable'))
|
|
835
835
|
});
|
|
836
836
|
}
|
|
@@ -856,7 +856,7 @@ var FcrSecurityStore = exports.FcrSecurityStore = /*#__PURE__*/function () {
|
|
|
856
856
|
this._prevWaterMarkEnable = _enable;
|
|
857
857
|
if (toastText) {
|
|
858
858
|
this._uiEventStore.showToast({
|
|
859
|
-
type:
|
|
859
|
+
type: 'normal',
|
|
860
860
|
message: toastText
|
|
861
861
|
});
|
|
862
862
|
}
|
|
@@ -941,26 +941,14 @@ var FcrSecurityStore = exports.FcrSecurityStore = /*#__PURE__*/function () {
|
|
|
941
941
|
return setAllowWaterMark;
|
|
942
942
|
}()
|
|
943
943
|
}, {
|
|
944
|
-
key: "
|
|
945
|
-
value: function
|
|
946
|
-
|
|
947
|
-
_getInterpreterInfo() {
|
|
948
|
-
var _this3 = this;
|
|
949
|
-
if (this._interpterControl) {
|
|
950
|
-
var interpreterUsers = this._interpterControl.getInterpreterUserList(); //翻译官列表
|
|
951
|
-
if (interpreterUsers) {
|
|
952
|
-
var interpreter = interpreterUsers.find(function (ele) {
|
|
953
|
-
return ele.userId === _this3.localUser.userId;
|
|
954
|
-
}); //本地用户关联的翻译官信息
|
|
955
|
-
return interpreter;
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
return null;
|
|
944
|
+
key: "setInterpreterRoomControlInfo",
|
|
945
|
+
value: function setInterpreterRoomControlInfo(payload) {
|
|
946
|
+
this._InterpreterRoomControlInfo = payload;
|
|
959
947
|
}
|
|
960
948
|
}]);
|
|
961
949
|
}();
|
|
962
950
|
_FcrSecurityStore = FcrSecurityStore;
|
|
963
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrSecurityStore, [[_mobx.observable, 1, "securityInfos"], [_mobx.observable, 1, "permissionInfos"], [_mobx.observable, 1, "privilegeOperator"], [_mobx.observable, 1, "boardOwnerUser"], [_handlePermissionUpdatedDecs, 18, "_handlePermissionUpdated"], [_handleSecurityUpdatedDecs, 18, "_handleSecurityUpdated"], [_decorator.bound, 2, "setAllowWaterMark"], [
|
|
951
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrSecurityStore, [[_mobx.observable, 1, "securityInfos"], [_mobx.observable, 1, "permissionInfos"], [_mobx.observable, 1, "privilegeOperator"], [_mobx.observable, 1, "boardOwnerUser"], [_handlePermissionUpdatedDecs, 18, "_handlePermissionUpdated"], [_handleSecurityUpdatedDecs, 18, "_handleSecurityUpdated"], [_decorator.bound, 2, "setAllowWaterMark"], [_decorator.bound, 2, "setInterpreterRoomControlInfo"]], []).e, 5);
|
|
964
952
|
_init_securityInfos = _applyDecs$e[0];
|
|
965
953
|
_init_permissionInfos = _applyDecs$e[1];
|
|
966
954
|
_init_privilegeOperator = _applyDecs$e[2];
|
package/lib/creator.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { FcrUISceneCancelCallback, FcrUISceneConfig, FcrUISceneCreatorConfig, FcrUISceneFailureCallback, FcrUISceneSuccessCallback, FcrUISettingConfig } from './type';
|
|
1
|
+
import { FcrUISceneCancelCallback, FcrUISceneConfig, FcrUISceneCreatorConfig, FcrUISceneFailureCallback, FcrUISceneSuccessCallback, FcrUISettingConfig, FcrUIWebWidgetConfig } from './type';
|
|
2
2
|
import { FcrUIDefaultScene } from './ui-scene';
|
|
3
3
|
export declare class FcrUISceneCreator {
|
|
4
4
|
private _config;
|
|
5
5
|
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
6
6
|
private _settingConfigStorage;
|
|
7
|
+
private _registeredWidgetConfigs;
|
|
7
8
|
constructor(_config: FcrUISceneCreatorConfig);
|
|
8
9
|
launch(config: FcrUISceneConfig, onCancel: FcrUISceneCancelCallback, onSuccess: FcrUISceneSuccessCallback, onFailure: FcrUISceneFailureCallback, dom: HTMLElement): FcrUIDefaultScene;
|
|
9
10
|
getSettingConfig(): FcrUISettingConfig;
|
|
11
|
+
registerWidget(config: FcrUIWebWidgetConfig): void;
|
|
12
|
+
unregisterWidget(widgetId: string): void;
|
|
10
13
|
}
|
package/lib/creator.js
CHANGED
|
@@ -1,13 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
|
7
|
+
require("core-js/modules/es.error.to-string.js");
|
|
8
|
+
require("core-js/modules/es.array.is-array.js");
|
|
9
|
+
require("core-js/modules/es.array.push.js");
|
|
10
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
11
|
+
require("core-js/modules/es.function.bind.js");
|
|
12
|
+
require("core-js/modules/es.function.name.js");
|
|
13
|
+
require("core-js/modules/es.number.constructor.js");
|
|
14
|
+
require("core-js/modules/es.object.create.js");
|
|
3
15
|
require("core-js/modules/es.object.define-property.js");
|
|
16
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
17
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
18
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
4
19
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
20
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
21
|
Object.defineProperty(exports, "__esModule", {
|
|
6
22
|
value: true
|
|
7
23
|
});
|
|
8
24
|
exports.FcrUISceneCreator = void 0;
|
|
25
|
+
require("core-js/modules/es.array.iterator.js");
|
|
9
26
|
require("core-js/modules/es.date.to-json.js");
|
|
10
27
|
require("core-js/modules/es.json.stringify.js");
|
|
28
|
+
require("core-js/modules/es.map.js");
|
|
29
|
+
require("core-js/modules/es.object.to-string.js");
|
|
30
|
+
require("core-js/modules/es.string.iterator.js");
|
|
31
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
32
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
33
|
+
require("core-js/modules/esnext.map.every.js");
|
|
34
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
35
|
+
require("core-js/modules/esnext.map.find.js");
|
|
36
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
37
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
38
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
39
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
40
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
41
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
42
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
43
|
+
require("core-js/modules/esnext.map.some.js");
|
|
44
|
+
require("core-js/modules/esnext.map.update.js");
|
|
45
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
46
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
47
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
12
48
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
49
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -15,11 +51,23 @@ var _logger = require("agora-foundation/lib/logger");
|
|
|
15
51
|
var _uiScene = require("./ui-scene");
|
|
16
52
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
17
53
|
var _settingConfigStorage = require("./utilities/setting-config-storage");
|
|
54
|
+
var _validateParams = _interopRequireDefault(require("./utilities/validate-params"));
|
|
55
|
+
var _schema = require("./schema");
|
|
56
|
+
var _decorator = require("agora-foundation/lib/decorator");
|
|
57
|
+
var _FcrUISceneCreator;
|
|
58
|
+
var _initProto, _launchDecs, _ref;
|
|
59
|
+
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
60
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
61
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
62
|
+
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
63
|
+
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
64
|
+
_ref = (_launchDecs = [(0, _validateParams["default"])(_schema.fcrUISceneConfigSchema, _schema.fcrUISceneCallbackSchema, _schema.fcrUISceneCallbackSchema, _schema.fcrUISceneFailureCallbackSchema, _schema.fcrRenderViewSchema), _decorator.trace], "logger");
|
|
18
65
|
var FcrUISceneCreator = exports.FcrUISceneCreator = /*#__PURE__*/function () {
|
|
19
66
|
function FcrUISceneCreator(_config) {
|
|
20
67
|
(0, _classCallCheck2["default"])(this, FcrUISceneCreator);
|
|
21
|
-
(0, _defineProperty2["default"])(this,
|
|
68
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
22
69
|
(0, _defineProperty2["default"])(this, "_settingConfigStorage", new _settingConfigStorage.FcrSettingConfigStorage());
|
|
70
|
+
(0, _defineProperty2["default"])(this, "_registeredWidgetConfigs", new Map([]));
|
|
23
71
|
this._config = _config;
|
|
24
72
|
this.logger.info("[FcrUISceneCreator] creator config: ".concat(JSON.stringify(_config)));
|
|
25
73
|
}
|
|
@@ -28,7 +76,7 @@ var FcrUISceneCreator = exports.FcrUISceneCreator = /*#__PURE__*/function () {
|
|
|
28
76
|
value: function launch(config, onCancel, onSuccess, onFailure, dom) {
|
|
29
77
|
this.logger.info("[FcrUISceneCreator] scene config: ".concat(JSON.stringify(config)));
|
|
30
78
|
(0, _i18n.changeLanguage)(config.language);
|
|
31
|
-
var scene = new _uiScene.FcrUIDefaultScene(config, this._config, dom, this._settingConfigStorage);
|
|
79
|
+
var scene = new _uiScene.FcrUIDefaultScene(config, this._config, dom, this._settingConfigStorage, this._registeredWidgetConfigs);
|
|
32
80
|
scene.addObserver({
|
|
33
81
|
onLaunchSuccess: onSuccess,
|
|
34
82
|
onLaunchFailure: onFailure,
|
|
@@ -42,5 +90,20 @@ var FcrUISceneCreator = exports.FcrUISceneCreator = /*#__PURE__*/function () {
|
|
|
42
90
|
value: function getSettingConfig() {
|
|
43
91
|
return this._settingConfigStorage;
|
|
44
92
|
}
|
|
93
|
+
}, {
|
|
94
|
+
key: "registerWidget",
|
|
95
|
+
value: function registerWidget(config) {
|
|
96
|
+
this._registeredWidgetConfigs.set(config.id, config);
|
|
97
|
+
}
|
|
98
|
+
}, {
|
|
99
|
+
key: "unregisterWidget",
|
|
100
|
+
value: function unregisterWidget(widgetId) {
|
|
101
|
+
this._registeredWidgetConfigs["delete"](widgetId);
|
|
102
|
+
}
|
|
45
103
|
}]);
|
|
46
|
-
}();
|
|
104
|
+
}();
|
|
105
|
+
_FcrUISceneCreator = FcrUISceneCreator;
|
|
106
|
+
var _applyDecs$e = _applyDecs(_FcrUISceneCreator, [[_launchDecs, 2, "launch"], [_decorator.trace, 2, "getSettingConfig"], [_decorator.trace, 2, "registerWidget"], [_decorator.trace, 2, "unregisterWidget"]], []).e;
|
|
107
|
+
var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 1);
|
|
108
|
+
_initProto = _applyDecs$e2[0];
|
|
109
|
+
_applyDecs$e;
|
package/lib/electron/app.js
CHANGED
|
@@ -17,8 +17,6 @@ require("core-js/modules/es.json.stringify.js");
|
|
|
17
17
|
require("core-js/modules/es.object.keys.js");
|
|
18
18
|
require("core-js/modules/es.object.to-string.js");
|
|
19
19
|
require("core-js/modules/es.string.starts-with.js");
|
|
20
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
21
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
22
20
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
23
21
|
require("core-js/modules/esnext.iterator.find.js");
|
|
24
22
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
@@ -212,7 +210,4 @@ var hookApp = exports.hookApp = function hookApp(app) {
|
|
|
212
210
|
(0, _window.clearAllRendererWindows)();
|
|
213
211
|
});
|
|
214
212
|
});
|
|
215
|
-
app.addListener('will-quit', function () {
|
|
216
|
-
_electron.globalShortcut.unregister('CommandOrControl+Shift+X');
|
|
217
|
-
});
|
|
218
213
|
};
|
|
@@ -10,8 +10,6 @@ require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
|
10
10
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
11
|
require("core-js/modules/es.object.keys.js");
|
|
12
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
13
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
16
14
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
17
15
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
@@ -24,6 +22,7 @@ var _app = require("./app");
|
|
|
24
22
|
var _defaultOptions = require("./default-options");
|
|
25
23
|
var _env = require("./env");
|
|
26
24
|
var _main2 = require("./main");
|
|
25
|
+
var _devtoolShortcut = require("./plugins/devtool-shortcut");
|
|
27
26
|
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; }
|
|
28
27
|
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; }
|
|
29
28
|
(0, _main.initialize)();
|
|
@@ -41,4 +40,5 @@ _electron.app.addListener('ready', function () {
|
|
|
41
40
|
});
|
|
42
41
|
mainWindow.loadURL(_env.devPageUrl);
|
|
43
42
|
(0, _main.enable)(mainWindow.webContents);
|
|
43
|
+
(0, _devtoolShortcut.listenDevToolShortcut)(mainWindow);
|
|
44
44
|
});
|
|
@@ -10,8 +10,6 @@ require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
|
10
10
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
11
|
require("core-js/modules/es.object.keys.js");
|
|
12
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
13
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
16
14
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
17
15
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
@@ -28,6 +26,7 @@ var _defaultOptions = require("./default-options");
|
|
|
28
26
|
var _env = require("./env");
|
|
29
27
|
var _path = _interopRequireDefault(require("path"));
|
|
30
28
|
var _logger = require("./logger");
|
|
29
|
+
var _devtoolShortcut = require("./plugins/devtool-shortcut");
|
|
31
30
|
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; }
|
|
32
31
|
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; }
|
|
33
32
|
(0, _main.initialize)();
|
|
@@ -60,6 +59,7 @@ _electron.app.addListener('ready', function () {
|
|
|
60
59
|
} else {
|
|
61
60
|
mainWindow.loadFile(_path["default"].join(_env.distPathPrefix, _env.distIndexFileName));
|
|
62
61
|
}
|
|
62
|
+
(0, _devtoolShortcut.listenDevToolShortcut)(mainWindow);
|
|
63
63
|
return mainWindow;
|
|
64
64
|
});
|
|
65
65
|
_electron.app.addListener('browser-window-created', function (_, window) {
|
|
@@ -31,11 +31,6 @@ require("core-js/modules/es.string.includes.js");
|
|
|
31
31
|
require("core-js/modules/es.string.iterator.js");
|
|
32
32
|
require("core-js/modules/es.string.starts-with.js");
|
|
33
33
|
require("core-js/modules/es.string.trim.js");
|
|
34
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
35
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
36
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
37
|
-
require("core-js/modules/esnext.async-iterator.map.js");
|
|
38
|
-
require("core-js/modules/esnext.async-iterator.reduce.js");
|
|
39
34
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
40
35
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
41
36
|
require("core-js/modules/esnext.iterator.find.js");
|
package/lib/electron/main.js
CHANGED
|
@@ -7,18 +7,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.hookWindow = void 0;
|
|
8
8
|
require("core-js/modules/es.array.concat.js");
|
|
9
9
|
require("core-js/modules/es.array.includes.js");
|
|
10
|
+
require("core-js/modules/es.string.starts-with.js");
|
|
10
11
|
require("core-js/modules/web.timers.js");
|
|
11
12
|
var _window = require("./window");
|
|
12
13
|
var _screenshot = require("./plugins/screenshot");
|
|
13
14
|
var _logger = require("./logger");
|
|
14
15
|
var _meetingState = require("./plugins/meeting-state");
|
|
15
|
-
var _devtoolShortcut = require("./plugins/devtool-shortcut");
|
|
16
16
|
var logger = (0, _logger.getLogger)();
|
|
17
17
|
var hookWindow = exports.hookWindow = function hookWindow(mainWindow) {
|
|
18
18
|
mainWindow.webContents.addListener('did-create-window', function (window, details) {
|
|
19
19
|
logger.info("browser window is opened, frameName: ".concat(details.frameName));
|
|
20
20
|
var builtinFrameNames = ['device-settings', 'chat', 'live-streaming', 'participant', 'share-screen-selection', 'invite', 'video-window', 'confirm', 'connection-gateway', 'whiteboard', 'progress-dialog', 'operation-waiting-room', 'operation-waiting-room', 'interpreter-setting', 'waiting-room-single-remove', 'waiting-room-all-remove', 'waiting-room-all-admit', 'control-bar', 'show-toast', 'system-preference'];
|
|
21
|
-
if (!builtinFrameNames.includes(details.frameName)) {
|
|
21
|
+
if (!builtinFrameNames.includes(details.frameName) && !details.frameName.startsWith('widget')) {
|
|
22
22
|
logger.info("frameName [".concat(details.frameName, "] is not in builtinFrameNames, ignore it"));
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
@@ -35,6 +35,18 @@ var hookWindow = exports.hookWindow = function hookWindow(mainWindow) {
|
|
|
35
35
|
logger.info("Window [".concat(window.title, ":").concat(window.id, "] is closed by shortcut CMD + W, send 'will-close' event to that window"));
|
|
36
36
|
window.emit('will-close');
|
|
37
37
|
});
|
|
38
|
+
window.addListener('will-resize', function (event, newBounds, details) {
|
|
39
|
+
logger.info("Window [".concat(window.title, ":").concat(window.id, "] is resized, send 'will-resize' event to that window"));
|
|
40
|
+
window.emit('custom-resize', event, newBounds, details);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// screen?.addListener('display-metrics-changed', (event, display, changedMetrics) => {
|
|
44
|
+
// logger.info(
|
|
45
|
+
// `Screen metrics [${window.title}:${window.id}] is changed, send 'display-metrics-changed' event to that window`,
|
|
46
|
+
// );
|
|
47
|
+
// window.emit('display-metrics-changed', event, display, changedMetrics);
|
|
48
|
+
// });
|
|
49
|
+
|
|
38
50
|
attachEventOnMethod(window, 'hide', 'CALL_HIDE');
|
|
39
51
|
attachEventOnMethod(window, 'show', 'CALL_SHOW');
|
|
40
52
|
});
|
|
@@ -59,7 +71,6 @@ var hookWindow = exports.hookWindow = function hookWindow(mainWindow) {
|
|
|
59
71
|
});
|
|
60
72
|
(0, _screenshot.listenScreenshot)(mainWindow);
|
|
61
73
|
(0, _meetingState.listenMeetingState)(mainWindow);
|
|
62
|
-
(0, _devtoolShortcut.listenDevToolShortcut)(mainWindow);
|
|
63
74
|
};
|
|
64
75
|
var attachEventOnMethod = function attachEventOnMethod(browserWindow, method, action) {
|
|
65
76
|
var func = browserWindow[method];
|
|
@@ -25,4 +25,9 @@ var listenDevToolShortcut = exports.listenDevToolShortcut = function listenDevTo
|
|
|
25
25
|
});
|
|
26
26
|
logger.info("CommandOrControl+Shift+X is ".concat(_electron.globalShortcut.isRegistered('CommandOrControl+Shift+X') ? 'registered' : 'not registered', " "));
|
|
27
27
|
logger.info("CommandOrControl+Shift+R is ".concat(_electron.globalShortcut.isRegistered('CommandOrControl+Shift+R') ? 'registered' : 'not registered', " "));
|
|
28
|
+
var unregister = function unregister() {
|
|
29
|
+
_electron.globalShortcut.unregister('CommandOrControl+Shift+X');
|
|
30
|
+
_electron.globalShortcut.unregister('CommandOrControl+Shift+R');
|
|
31
|
+
};
|
|
32
|
+
window.addListener('closed', unregister);
|
|
28
33
|
};
|