fcr-ui-scene 3.6.4 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/creator.d.ts +4 -3
- package/lib/creator.js +146 -111
- package/lib/electron/app.js +1 -1
- package/lib/electron/bootstrap-sdk.js +49 -4
- package/lib/electron/injections.d.ts +5 -1
- package/lib/electron/injections.js +14 -2
- package/lib/electron/ipc/type.d.ts +8 -4
- package/lib/electron/ipc/type.js +10 -4
- package/lib/electron/logger.js +1 -1
- package/lib/electron/main.js +5 -2
- package/lib/electron/preload.js +34 -5
- package/lib/fragments/annotation/index.d.ts +2 -2
- package/lib/fragments/annotation/index.js +38 -28
- package/lib/fragments/annotation/libs.d.ts +2 -2
- package/lib/fragments/annotation/store.d.ts +21 -4
- package/lib/fragments/annotation/store.js +281 -84
- package/lib/fragments/annotation/style.css +9 -0
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.js +1 -1
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.js +1 -1
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.d.ts +26 -2
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.js +57 -8
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.js +36 -3
- package/lib/fragments/annotation/view.d.ts +1 -0
- package/lib/fragments/annotation/view.js +52 -10
- package/lib/modules/action-bar/components/apps/index.js +54 -38
- package/lib/modules/action-bar/components/chat/index.js +13 -34
- package/lib/modules/action-bar/components/collapse/index.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +9 -9
- package/lib/modules/action-bar/components/more/index.js +26 -27
- package/lib/modules/action-bar/components/participants/index.js +23 -39
- package/lib/modules/action-bar/components/record/index.js +7 -13
- package/lib/modules/action-bar/components/screen-share/index.js +4 -24
- package/lib/modules/action-bar/components/security/index.js +29 -34
- package/lib/modules/action-bar/components/settings/index.js +13 -19
- package/lib/modules/action-bar/index.d.ts +4 -0
- package/lib/modules/action-bar/index.js +3 -1
- package/lib/modules/action-bar/store.d.ts +16 -6
- package/lib/modules/action-bar/store.js +63 -25
- package/lib/modules/action-bar/types.d.ts +3 -3
- package/lib/modules/action-bar/view.js +2 -3
- package/lib/modules/annotation/annotation-index.d.ts +2 -0
- package/lib/modules/annotation/annotation-index.js +80 -0
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +82 -0
- package/lib/modules/annotation/annotation-toolbar-store.js +501 -0
- package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/annotation/components/color-picker/components/color.js +38 -0
- package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/panel.js +109 -0
- package/lib/modules/annotation/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/picker.js +75 -0
- package/lib/modules/annotation/components/color-picker/index.d.ts +2 -0
- package/lib/modules/annotation/components/color-picker/index.js +47 -0
- package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
- package/lib/modules/annotation/components/eraser-picker.js +144 -0
- package/lib/modules/annotation/components/expansion/index.d.ts +1 -0
- package/lib/modules/annotation/components/expansion/index.js +100 -0
- package/lib/modules/annotation/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/annotation/components/extra-tool-picker.js +62 -0
- package/lib/modules/annotation/components/history.d.ts +2 -0
- package/lib/modules/annotation/components/history.js +78 -0
- package/lib/modules/annotation/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/annotation/components/icons/fold-icon.js +41 -0
- package/lib/modules/annotation/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/annotation/components/icons/move-icon.js +66 -0
- package/lib/modules/annotation/components/item/index.d.ts +1 -0
- package/lib/modules/annotation/components/item/index.js +43 -0
- package/lib/modules/annotation/components/move-handle.d.ts +5 -0
- package/lib/modules/annotation/components/move-handle.js +134 -0
- package/lib/modules/annotation/components/pen-picker.d.ts +4 -0
- package/lib/modules/annotation/components/pen-picker.js +155 -0
- package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/annotation/components/screen-capture-picker.js +85 -0
- package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
- package/lib/modules/annotation/components/shape-picker.js +210 -0
- package/lib/modules/annotation/hooks/index.d.ts +14 -0
- package/lib/modules/annotation/hooks/index.js +292 -0
- package/lib/modules/annotation/index.d.ts +4 -1
- package/lib/modules/annotation/index.js +20 -22
- package/lib/modules/annotation/store.d.ts +59 -18
- package/lib/modules/annotation/store.js +503 -263
- package/lib/modules/annotation/style.css +10 -0
- package/lib/modules/annotation/view.js +9 -11
- package/lib/modules/chat/chat-room-store.js +5 -2
- package/lib/modules/chat/components/chat-select/index.js +1 -1
- package/lib/modules/chat/components/chat-select/select-item/index.js +10 -3
- package/lib/modules/chat/components/message-list/message-item/index.js +4 -2
- package/lib/modules/chat/index.d.ts +2 -0
- package/lib/modules/chat/index.js +13 -3
- package/lib/modules/chat/store.d.ts +3 -0
- package/lib/modules/chat/store.js +12 -6
- package/lib/modules/chat/types.d.ts +1 -0
- package/lib/modules/chat/types.js +2 -1
- package/lib/modules/chat/util.js +2 -1
- package/lib/modules/chat/view.js +6 -3
- package/lib/modules/{action-bar/components → components}/apps/app-item/index.d.ts +1 -1
- package/lib/modules/components/apps/app-list.d.ts +3 -0
- package/lib/modules/{action-bar/components → components}/apps/app-list.js +2 -4
- package/lib/modules/components/apps/types.d.ts +14 -0
- package/lib/modules/components/apps/types.js +6 -0
- package/lib/modules/components/device-control/components/carmera/index.js +71 -68
- package/lib/modules/components/device-control/components/microphone/index.js +99 -97
- package/lib/modules/components/device-control/store.d.ts +1 -1
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +7 -7
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +0 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +4 -7
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +19 -36
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +1 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +9 -2
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +0 -3
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +15 -11
- package/lib/modules/components/member-window/components/member-actions/index.js +10 -2
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +2 -2
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.d.ts +12 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +75 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +1 -7
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +7 -47
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +12 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +68 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +1 -9
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +7 -49
- package/lib/modules/components/member-window/components/video-player/components/zoomable-container.d.ts +15 -0
- package/lib/modules/components/member-window/components/video-player/components/zoomable-container.js +255 -0
- package/lib/modules/components/member-window/components/video-player/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/video-player/index.js +8 -2
- package/lib/modules/components/member-window/index.css +16 -6
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +12 -4
- package/lib/modules/components/member-window/types.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +6 -5
- package/lib/modules/control-bar/components/annotation-button/index.js +21 -8
- package/lib/modules/control-bar/components/more-actions/index.css +13 -0
- package/lib/modules/control-bar/components/more-actions/index.js +1 -1
- package/lib/modules/control-bar/components/share-audio/index.css +90 -0
- package/lib/modules/control-bar/components/share-audio/index.d.ts +15 -0
- package/lib/modules/control-bar/components/share-audio/index.js +173 -0
- package/lib/modules/control-bar/components/share-state-nav/index.css +5 -0
- package/lib/modules/control-bar/components/share-state-nav/index.js +14 -2
- package/lib/modules/control-bar/index.d.ts +2 -0
- package/lib/modules/control-bar/index.js +9 -1
- package/lib/modules/control-bar/store.d.ts +16 -7
- package/lib/modules/control-bar/store.js +36 -12
- package/lib/modules/control-bar/view.d.ts +4 -0
- package/lib/modules/control-bar/view.js +180 -90
- package/lib/modules/device-pretest/store.d.ts +1 -1
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -1
- package/lib/modules/dialog/components/dialog-container/index.css +1 -0
- package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -1
- package/lib/modules/dialog/components/dialog-container/index.js +27 -10
- package/lib/modules/dialog/components/host-area-container/index.js +4 -4
- package/lib/modules/dialog/components/normal-window/index.d.ts +19 -0
- package/lib/modules/dialog/components/normal-window/index.js +69 -0
- package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.js +17 -15
- package/lib/modules/dialog/dialogs/chat/components/actions.d.ts +1 -0
- package/lib/modules/dialog/dialogs/chat/components/actions.js +33 -0
- package/lib/modules/dialog/{components → dialogs}/chat/index.d.ts +1 -1
- package/lib/modules/dialog/dialogs/chat/index.js +59 -0
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +6 -0
- package/lib/modules/dialog/{components → dialogs}/confirm-leave-meeting/index.js +13 -37
- package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.js +19 -12
- package/lib/modules/dialog/{components → dialogs}/control-bar/index.js +2 -2
- package/lib/modules/dialog/{components → dialogs}/device-setting/index.js +20 -13
- package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +12 -0
- package/lib/modules/dialog/dialogs/end-meeting/index.js +45 -0
- package/lib/modules/dialog/{components/interpreter/electron.js → dialogs/interpreter/index.js} +17 -11
- package/lib/modules/dialog/dialogs/invite/index.d.ts +3 -0
- package/lib/modules/dialog/{components → dialogs}/invite/index.js +9 -25
- package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +2 -0
- package/lib/modules/dialog/{components → dialogs}/live-streaming/index.js +11 -34
- package/lib/modules/dialog/dialogs/participant/components/actions.d.ts +1 -0
- package/lib/modules/dialog/dialogs/participant/components/actions.js +32 -0
- package/lib/modules/dialog/dialogs/participant/components/title.d.ts +1 -0
- package/lib/modules/dialog/dialogs/participant/components/title.js +19 -0
- package/lib/modules/dialog/dialogs/participant/index.d.ts +2 -0
- package/lib/modules/dialog/dialogs/participant/index.js +53 -0
- package/lib/modules/dialog/dialogs/pre-setting/index.js +62 -0
- package/lib/modules/dialog/dialogs/rename/index.js +35 -0
- package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/{components → dialogs}/video-window/index.js +11 -8
- package/lib/modules/dialog/{components → dialogs}/whiteboard/index.js +2 -3
- package/lib/modules/dialog/{components → dialogs}/widget/electron.js +1 -1
- package/lib/modules/dialog/{components → dialogs}/widget/index.js +1 -1
- package/lib/modules/dialog/hooks/use-web-drag.d.ts +8 -0
- package/lib/modules/dialog/hooks/use-web-drag.js +73 -0
- package/lib/modules/dialog/hooks/useElectron.d.ts +2 -7
- package/lib/modules/dialog/hooks/useElectron.js +46 -156
- package/lib/modules/dialog/index.d.ts +4 -0
- package/lib/modules/dialog/index.js +4 -2
- package/lib/modules/dialog/level-config.d.ts +11 -0
- package/lib/modules/dialog/level-config.js +21 -0
- package/lib/modules/dialog/store.d.ts +15 -6
- package/lib/modules/dialog/store.js +40 -54
- package/lib/modules/dialog/type.d.ts +15 -12
- package/lib/modules/event-confirm/components/window/index.d.ts +1 -4
- package/lib/modules/event-confirm/components/window/index.js +34 -23
- package/lib/modules/event-confirm/index.d.ts +2 -0
- package/lib/modules/event-confirm/index.js +3 -2
- package/lib/modules/event-confirm/store.d.ts +9 -1
- package/lib/modules/event-confirm/store.js +24 -16
- package/lib/modules/event-confirm/view.js +11 -22
- package/lib/modules/event-sound/index.d.ts +2 -0
- package/lib/modules/event-sound/index.js +8 -1
- package/lib/modules/event-toast/index.css +10 -0
- package/lib/modules/event-toast/store.d.ts +1 -1
- package/lib/modules/event-toast/store.js +17 -15
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +4 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -1
- package/lib/modules/interpreter/store.d.ts +1 -0
- package/lib/modules/interpreter/store.js +12 -5
- package/lib/modules/interpreter/view.js +7 -1
- package/lib/modules/layout/components/Aside.js +4 -0
- package/lib/modules/layout/components/Carousel.js +3 -1
- package/lib/modules/layout/components/CommonVideoRenderer.d.ts +3 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +13 -9
- package/lib/modules/layout/components/Gallery.js +11 -3
- package/lib/modules/layout/index.css +1 -0
- package/lib/modules/layout/index.d.ts +2 -0
- package/lib/modules/layout/index.js +4 -3
- package/lib/modules/layout/store.d.ts +9 -5
- package/lib/modules/layout/store.js +38 -46
- package/lib/modules/participant/components/confirm-input/index.css +4 -0
- package/lib/modules/participant/components/confirm-input/index.d.ts +1 -0
- package/lib/modules/participant/components/confirm-input/index.js +2 -1
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +2 -1
- package/lib/modules/participant/components/participants/components/participants/index.js +11 -3
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +7 -3
- package/lib/modules/participant/components/participants/types.d.ts +1 -0
- package/lib/modules/participant/store.d.ts +2 -1
- package/lib/modules/participant/store.js +23 -9
- package/lib/modules/phone-audio-connect/store.d.ts +4 -4
- package/lib/modules/setting/audio-settings/audio-settings.js +6 -17
- package/lib/modules/setting/config.d.ts +16 -0
- package/lib/modules/setting/config.js +17 -1
- package/lib/modules/setting/index.d.ts +2 -4
- package/lib/modules/setting/index.js +7 -16
- package/lib/modules/setting/minutes-settings/minutes-settings.js +0 -4
- package/lib/modules/setting/state/index.js +5 -5
- package/lib/modules/setting/store.d.ts +37 -33
- package/lib/modules/setting/store.js +275 -261
- package/lib/modules/setting/translate-settings/language-select.js +0 -2
- package/lib/modules/setting/video-settings/video-settings-basic.js +6 -6
- package/lib/modules/setting/video-settings/video-settings.js +2 -2
- package/lib/modules/setting/view.js +1 -1
- package/lib/modules/share-screen/components/control-bar/index.css +75 -0
- package/lib/modules/share-screen/components/control-bar/index.d.ts +3 -0
- package/lib/modules/share-screen/components/control-bar/index.js +88 -0
- package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.d.ts +8 -0
- package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.js +46 -0
- package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.js +32 -0
- package/lib/modules/share-screen/components/selection/index.js +28 -14
- package/lib/modules/share-screen/components/share-scenario/index.d.ts +5 -0
- package/lib/modules/share-screen/components/share-scenario/index.js +47 -0
- package/lib/modules/share-screen/index.d.ts +4 -2
- package/lib/modules/share-screen/index.js +11 -2
- package/lib/modules/share-screen/store.d.ts +32 -11
- package/lib/modules/share-screen/store.js +273 -192
- package/lib/modules/share-screen/view.js +2 -2
- package/lib/modules/state-bar/index.js +2 -3
- package/lib/modules/state-bar/layout-config.d.ts +2 -4
- package/lib/modules/state-bar/layout-config.js +10 -5
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/store.d.ts +7 -7
- package/lib/modules/state-bar/store.js +17 -15
- package/lib/modules/state-bar/view.js +19 -23
- package/lib/modules/video-window/components/members/index.js +3 -2
- package/lib/modules/video-window/index.js +0 -3
- package/lib/modules/waiting-room-layout/index.css +3 -3
- package/lib/modules/waiting-room-layout/index.js +2 -2
- package/lib/modules/waiting-room-layout/view.js +1 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +2 -2
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +4 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +4 -4
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +0 -14
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +4 -155
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +4 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +37 -25
- package/lib/modules/whiteboard/components/toolbar/style.css +1 -0
- package/lib/modules/whiteboard/index.d.ts +3 -1
- package/lib/modules/whiteboard/index.js +26 -23
- package/lib/modules/widget/view.js +4 -0
- package/lib/providers/ability-provider.d.ts +2 -0
- package/lib/providers/annotation-provider.d.ts +43 -47
- package/lib/providers/annotation-provider.js +94 -142
- package/lib/providers/app-list-provider.d.ts +98 -0
- package/lib/providers/app-list-provider.js +251 -0
- package/lib/providers/device-provider.d.ts +31 -23
- package/lib/providers/device-provider.js +493 -444
- package/lib/providers/device-stream-provider.js +2 -2
- package/lib/providers/event-provider.d.ts +0 -4
- package/lib/providers/event-provider.js +0 -10
- package/lib/providers/interpreter-provider.js +10 -7
- package/lib/providers/privilege-provider.d.ts +1 -1
- package/lib/providers/privilege-provider.js +3 -2
- package/lib/providers/renderer-provider.d.ts +1 -0
- package/lib/providers/renderer-provider.js +7 -2
- package/lib/providers/room-provider.d.ts +3 -1
- package/lib/providers/room-provider.js +40 -14
- package/lib/providers/screen-share-provider.d.ts +73 -17
- package/lib/providers/screen-share-provider.js +222 -100
- package/lib/providers/sharing-provider.d.ts +0 -1
- package/lib/providers/sharing-provider.js +3 -9
- package/lib/providers/user-setting-storage-provider.d.ts +1 -0
- package/lib/providers/user-setting-storage-provider.js +5 -12
- package/lib/providers/widget-provider.d.ts +19 -0
- package/lib/providers/widget-provider.js +28 -2
- package/lib/runtime.d.ts +10 -1
- package/lib/scenes/main-scene.d.ts +12 -2
- package/lib/scenes/main-scene.js +54 -28
- package/lib/scenes/waiting-scene.d.ts +11 -0
- package/lib/scenes/waiting-scene.js +34 -8
- package/lib/schema.d.ts +6 -0
- package/lib/schema.js +5 -1
- package/lib/shared-data-source/annotation-data.d.ts +17 -0
- package/lib/shared-data-source/annotation-data.js +110 -0
- package/lib/shared-data-source/app-list-data.d.ts +34 -0
- package/lib/shared-data-source/app-list-data.js +133 -0
- package/lib/shared-data-source/config.d.ts +26 -7
- package/lib/shared-data-source/config.js +29 -11
- package/lib/shared-data-source/confirm-data.d.ts +25 -0
- package/lib/shared-data-source/confirm-data.js +97 -0
- package/lib/shared-data-source/interpreter.d.ts +1 -0
- package/lib/shared-data-source/layout-data.d.ts +2 -0
- package/lib/shared-data-source/layout-data.js +14 -3
- package/lib/shared-data-source/meeting-time.d.ts +23 -1
- package/lib/shared-data-source/meeting-time.js +160 -43
- package/lib/shared-data-source/member-data.d.ts +10 -9
- package/lib/shared-data-source/member-data.js +55 -48
- package/lib/shared-data-source/screen-share-data.d.ts +100 -17
- package/lib/shared-data-source/screen-share-data.js +142 -22
- package/lib/shared-data-source/setting.d.ts +36 -4
- package/lib/shared-data-source/setting.js +92 -57
- package/lib/shared-data-source/video-window.d.ts +3 -0
- package/lib/shared-data-source/video-window.js +52 -30
- package/lib/shared-data-source/waiting-room.js +4 -2
- package/lib/translations/enUS.d.ts +62 -7
- package/lib/translations/enUS.js +71 -14
- package/lib/translations/zhCN.d.ts +62 -7
- package/lib/translations/zhCN.js +73 -16
- package/lib/type.d.ts +23 -5
- package/lib/type.js +6 -2
- package/lib/ui-manager.d.ts +5 -16
- package/lib/ui-manager.js +15 -57
- package/lib/ui-scene.d.ts +31 -6
- package/lib/ui-scene.js +180 -169
- package/lib/utilities/constant.d.ts +67 -63
- package/lib/utilities/constant.js +65 -61
- package/lib/utilities/dialog-utils.d.ts +66 -0
- package/lib/utilities/dialog-utils.js +188 -0
- package/lib/utilities/logger.js +3 -3
- package/lib/utilities/meeting-detail.js +1 -1
- package/lib/utilities/parameters.d.ts +1 -0
- package/lib/utilities/parameters.js +5 -1
- package/lib/utilities/renderer-event.d.ts +1 -1
- package/lib/utilities/screen-capture-permission.d.ts +1 -0
- package/lib/utilities/screen-capture-permission.js +9 -1
- package/lib/utilities/tools.d.ts +0 -66
- package/lib/utilities/tools.js +9 -186
- package/package.json +5 -6
- package/public/index.html +11 -1
- package/lib/modules/action-bar/components/apps/app-list.d.ts +0 -3
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +0 -17
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -30
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +0 -10
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +0 -36
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +0 -14
- package/lib/modules/action-bar/components/apps/useInterpreter.js +0 -37
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +0 -16
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +0 -41
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +0 -10
- package/lib/modules/action-bar/components/apps/useWidgetList.js +0 -39
- package/lib/modules/annotation/components/control-bar/index.css +0 -48
- package/lib/modules/annotation/components/control-bar/index.d.ts +0 -3
- package/lib/modules/annotation/components/control-bar/index.js +0 -142
- package/lib/modules/annotation/components/toolbar/index.d.ts +0 -0
- package/lib/modules/annotation/components/toolbar/index.js +0 -1
- package/lib/modules/dialog/components/chat/electron.d.ts +0 -2
- package/lib/modules/dialog/components/chat/electron.js +0 -35
- package/lib/modules/dialog/components/chat/index.js +0 -67
- package/lib/modules/dialog/components/confirm-leave-meeting/index.d.ts +0 -6
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +0 -5
- package/lib/modules/dialog/components/connection-gateway/electron.js +0 -33
- package/lib/modules/dialog/components/device-setting/electron.d.ts +0 -2
- package/lib/modules/dialog/components/device-setting/electron.js +0 -37
- package/lib/modules/dialog/components/interpreter/electron.d.ts +0 -2
- package/lib/modules/dialog/components/interpreter/index.js +0 -33
- package/lib/modules/dialog/components/invite/index.d.ts +0 -3
- package/lib/modules/dialog/components/live-streaming/index.d.ts +0 -4
- package/lib/modules/dialog/components/participant/electron.d.ts +0 -2
- package/lib/modules/dialog/components/participant/electron.js +0 -35
- package/lib/modules/dialog/components/participant/index.d.ts +0 -2
- package/lib/modules/dialog/components/participant/index.js +0 -65
- package/lib/modules/dialog/components/pre-setting/electron.d.ts +0 -2
- package/lib/modules/dialog/components/pre-setting/electron.js +0 -51
- package/lib/modules/dialog/components/pre-setting/index.js +0 -38
- package/lib/modules/dialog/components/pre-setting-container/component/body.d.ts +0 -8
- package/lib/modules/dialog/components/pre-setting-container/component/body.js +0 -78
- package/lib/modules/dialog/components/pre-setting-container/index.css +0 -82
- package/lib/modules/dialog/components/pre-setting-container/index.d.ts +0 -18
- package/lib/modules/dialog/components/pre-setting-container/index.js +0 -116
- package/lib/modules/dialog/components/rename/index.js +0 -72
- package/lib/modules/dialog/dialogs.d.ts +0 -3
- package/lib/modules/dialog/dialogs.js +0 -28
- package/lib/utilities/setting-config-storage.d.ts +0 -18
- package/lib/utilities/setting-config-storage.js +0 -133
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.d.ts +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/app-item/index.css +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/app-item/index.js +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/confirm/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/confirm/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/control-bar/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/device-setting/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/device-setting/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/interpreter/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/interpreter/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/rename/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg1.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg2.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/fcr_png_host.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/toast/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/toast/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/video-window/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/whiteboard/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/widget/electron.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/widget/index.d.ts +0 -0
|
@@ -16,9 +16,15 @@ export declare enum FcrUIRendererEventAction {
|
|
|
16
16
|
LEAVE_FULL_SCREEN = "LEAVE_FULL_SCREEN",
|
|
17
17
|
SET_CURRENT_SHARE_SCREEN_BOUNDS = "SET_CURRENT_SHARE_SCREEN_BOUNDS",
|
|
18
18
|
SET_ANNOTATION_TO_SHOW = "SET_ANNOTATION_TO_SHOW",
|
|
19
|
+
SET_ANNOTATION_TO_OPEN = "SET_ANNOTATION_TO_OPEN",
|
|
20
|
+
SET_ANNOTATION_TO_FOCUS = "SET_ANNOTATION_TO_FOCUS",
|
|
19
21
|
SET_ANNOTATION_IGNORE = "SET_ANNOTATION_IGNORE",
|
|
20
22
|
SET_ANNOTATION_UNDO = "SET_ANNOTATION_UNDO",
|
|
21
|
-
SET_ANNOTATION_REDO = "SET_ANNOTATION_REDO"
|
|
23
|
+
SET_ANNOTATION_REDO = "SET_ANNOTATION_REDO",
|
|
24
|
+
FRAGMENT_ANNOTATION_ENGINE_STATE = "FRAGMENT_ANNOTATION_ENGINE_STATE",
|
|
25
|
+
UPDATE_ANNOTATION_WINDOW_SIZE = "UPDATE_ANNOTATION_WINDOW_SIZE",
|
|
26
|
+
FRAGMENT_ANNOTATION_MOUSE_MOVE = "FRAGMENT_ANNOTATION_MOUSE_MOVE",
|
|
27
|
+
FRAGMENT_ANNOTATION_SYNC_OWNER_OPEN_DONE = "FRAGMENT_ANNOTATION_SYNC_OWNER_OPEN_DONE"
|
|
22
28
|
}
|
|
23
29
|
export declare enum FcrUIParticipantType {
|
|
24
30
|
MUTE_AUDIO = "MUTE_AUDIO",
|
|
@@ -66,67 +72,64 @@ export declare enum FcrUIAction {
|
|
|
66
72
|
UPDATE_ASIDE = 3,
|
|
67
73
|
UPDATE_SHARE_STATE = 4,
|
|
68
74
|
RECEIVE_NEW_CHAT_MESSAGES = 5,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
OPEN_CONFIRM = 64,
|
|
128
|
-
OPEN_TOP_VIDEO_WINDOW = 65,
|
|
129
|
-
RESET_WHITEBOARD_TOOLBAR_VARS = 66
|
|
75
|
+
TOGGLE_LAYOUT = 6,
|
|
76
|
+
SET_MAIN_SPEAKER = 7,
|
|
77
|
+
OPEN_DEVICE_SETTING = 8,
|
|
78
|
+
OPEN_DEVICE_SETTING_DIALOG = 9,
|
|
79
|
+
PARTICIPANT_ACTION = 10,
|
|
80
|
+
CHAT_UPDATE_TARGET = 11,
|
|
81
|
+
CHAT_RESET_TARGET = 12,
|
|
82
|
+
OPEN_LIVE_STEAMING_DIALOG = 13,
|
|
83
|
+
CLOSE_LIVE_STEAMING_DIALOG = 14,
|
|
84
|
+
TOGGLE_LAYOUT_BAR_LOCK = 15,
|
|
85
|
+
TOGGLE_LAYOUT_ACTIONBAR_HIDDEN = 16,
|
|
86
|
+
SET_DIALOG_BOUNDS = 17,
|
|
87
|
+
OPEN_CONNECTION_DIALOG = 18,
|
|
88
|
+
CLOSE_CONNECTION_DIALOG = 19,
|
|
89
|
+
OPEN_INVITE_DIALOG = 20,
|
|
90
|
+
CLOSE_INVITE_DIALOG = 21,
|
|
91
|
+
ASIDE_WIDTH_CHANGED = 22,
|
|
92
|
+
VIDEO_WINDOW_BOUNDS = 23,
|
|
93
|
+
VIDEO_WINDOW_RESIZE = 24,
|
|
94
|
+
FOLD_LIST_CHANGED = 25,
|
|
95
|
+
MAIN_LIST_CHANGED = 26,
|
|
96
|
+
MAIN_LIST_LENGTH_CHANGED = 27,
|
|
97
|
+
OPEN_WHITEBOARD = 28,
|
|
98
|
+
CLOSE_WHITEBOARD = 29,
|
|
99
|
+
WHITEBOARD_CHANGED = 30,
|
|
100
|
+
SET_USER_PIN_STATE = 31,
|
|
101
|
+
CUSTOM_SETTINGS_CHANGED = 32,
|
|
102
|
+
CAROUSEL_COLLAPSED = 33,
|
|
103
|
+
STOP_SCREEN_CAPTURE = 34,
|
|
104
|
+
ENGINE_RECONNECTED = 35,
|
|
105
|
+
SET_CURRENT_SHARE_SCREEN = 36,
|
|
106
|
+
TOGGLE_PARTICIPANT_TAB = 37,
|
|
107
|
+
CURRENT_PARTITIPANT_TAB = 38,
|
|
108
|
+
RECEIVE_NEW_CHAT_MESSAGES_FOR_RED = 39,
|
|
109
|
+
CHAT_ROOM_CLOSED = 40,
|
|
110
|
+
CHAT_ROOM_TAB_CHANGE = 41,
|
|
111
|
+
CHAT_VISIBLE = 42,
|
|
112
|
+
WAITING_ROOM_DESTROYED = 43,
|
|
113
|
+
MOVE_TO_MAIN_ROOM_ALL_MEMBER = 44,
|
|
114
|
+
CLOSE_WAITING_ROOM_DIALOG = 45,
|
|
115
|
+
SET_REMOTE_USERS = 46,
|
|
116
|
+
SET_HAS_ASSIGN_HOST_BEFORE_LEAVING_PERMISSION = 47,
|
|
117
|
+
SET_IS_PSTN_USER = 48,
|
|
118
|
+
SET_HAS_END_ROOM_PERMISSION = 49,
|
|
119
|
+
WATERMARK_INFO_UPDATE = 50,
|
|
120
|
+
CHANGE_PARTICIPANT_TAB = 51,
|
|
121
|
+
SHOW_NOTIFICATION = 52,
|
|
122
|
+
COLSE_NOTIFICATION = 53,
|
|
123
|
+
OPEN_INTERPRETER_DIALOG = 54,
|
|
124
|
+
CLOSE_REMOVE_ADMIT_WAITING_ROOM_DIALOG = 55,
|
|
125
|
+
TOGGLE_INTERPRETER_REMOTE_AUDIO = 56,
|
|
126
|
+
TOGGLE_MAINROOM_REMOTE_AUDIO = 57,
|
|
127
|
+
TOGGLE_CHAT_ROOM_TAB = 58,
|
|
128
|
+
ENABLE_WAITING_ROOM = 59,
|
|
129
|
+
CLOSE_VIDEO_WINDOW = 60,
|
|
130
|
+
OPEN_CONFIRM = 61,
|
|
131
|
+
OPEN_TOP_VIDEO_WINDOW = 62,
|
|
132
|
+
RESET_WHITEBOARD_TOOLBAR_VARS = 63
|
|
130
133
|
}
|
|
131
134
|
export declare enum FcrUIDialogKey {
|
|
132
135
|
DEVICE_SETTINGS = "device-settings",
|
|
@@ -152,7 +155,8 @@ export declare enum FcrUIDialogKey {
|
|
|
152
155
|
RENAME = "rename",
|
|
153
156
|
ANNOTATION_TOOL = "annotation-tool",
|
|
154
157
|
ANNOTATION = "annotation",
|
|
155
|
-
LEAVE_MEETING = "leave-meeting"
|
|
158
|
+
LEAVE_MEETING = "leave-meeting",
|
|
159
|
+
END_MEETING = "end-meeting"
|
|
156
160
|
}
|
|
157
161
|
export declare enum FcrUIHighlightElement {
|
|
158
162
|
VIDEO_BASIC = "fcr_VIDEO_BASIC_highlighter",
|
|
@@ -23,9 +23,15 @@ var FcrUIRendererEventAction = exports.FcrUIRendererEventAction = /*#__PURE__*/f
|
|
|
23
23
|
FcrUIRendererEventAction["LEAVE_FULL_SCREEN"] = "LEAVE_FULL_SCREEN";
|
|
24
24
|
FcrUIRendererEventAction["SET_CURRENT_SHARE_SCREEN_BOUNDS"] = "SET_CURRENT_SHARE_SCREEN_BOUNDS";
|
|
25
25
|
FcrUIRendererEventAction["SET_ANNOTATION_TO_SHOW"] = "SET_ANNOTATION_TO_SHOW";
|
|
26
|
+
FcrUIRendererEventAction["SET_ANNOTATION_TO_OPEN"] = "SET_ANNOTATION_TO_OPEN";
|
|
27
|
+
FcrUIRendererEventAction["SET_ANNOTATION_TO_FOCUS"] = "SET_ANNOTATION_TO_FOCUS";
|
|
26
28
|
FcrUIRendererEventAction["SET_ANNOTATION_IGNORE"] = "SET_ANNOTATION_IGNORE";
|
|
27
29
|
FcrUIRendererEventAction["SET_ANNOTATION_UNDO"] = "SET_ANNOTATION_UNDO";
|
|
28
30
|
FcrUIRendererEventAction["SET_ANNOTATION_REDO"] = "SET_ANNOTATION_REDO";
|
|
31
|
+
FcrUIRendererEventAction["FRAGMENT_ANNOTATION_ENGINE_STATE"] = "FRAGMENT_ANNOTATION_ENGINE_STATE";
|
|
32
|
+
FcrUIRendererEventAction["UPDATE_ANNOTATION_WINDOW_SIZE"] = "UPDATE_ANNOTATION_WINDOW_SIZE";
|
|
33
|
+
FcrUIRendererEventAction["FRAGMENT_ANNOTATION_MOUSE_MOVE"] = "FRAGMENT_ANNOTATION_MOUSE_MOVE";
|
|
34
|
+
FcrUIRendererEventAction["FRAGMENT_ANNOTATION_SYNC_OWNER_OPEN_DONE"] = "FRAGMENT_ANNOTATION_SYNC_OWNER_OPEN_DONE";
|
|
29
35
|
return FcrUIRendererEventAction;
|
|
30
36
|
}({});
|
|
31
37
|
var FcrUIParticipantType = exports.FcrUIParticipantType = /*#__PURE__*/function (FcrUIParticipantType) {
|
|
@@ -77,68 +83,65 @@ var FcrUIAction = exports.FcrUIAction = /*#__PURE__*/function (FcrUIAction) {
|
|
|
77
83
|
FcrUIAction[FcrUIAction["UPDATE_ASIDE"] = 3] = "UPDATE_ASIDE";
|
|
78
84
|
FcrUIAction[FcrUIAction["UPDATE_SHARE_STATE"] = 4] = "UPDATE_SHARE_STATE";
|
|
79
85
|
FcrUIAction[FcrUIAction["RECEIVE_NEW_CHAT_MESSAGES"] = 5] = "RECEIVE_NEW_CHAT_MESSAGES";
|
|
80
|
-
FcrUIAction[FcrUIAction["
|
|
81
|
-
FcrUIAction[FcrUIAction["STOP_SHARE_SCREEN"] = 7] = "STOP_SHARE_SCREEN";
|
|
82
|
-
FcrUIAction[FcrUIAction["TOGGLE_LAYOUT"] = 8] = "TOGGLE_LAYOUT";
|
|
86
|
+
FcrUIAction[FcrUIAction["TOGGLE_LAYOUT"] = 6] = "TOGGLE_LAYOUT";
|
|
83
87
|
// LAYOUT_CHANGED,
|
|
84
|
-
FcrUIAction[FcrUIAction["SET_MAIN_SPEAKER"] =
|
|
85
|
-
FcrUIAction[FcrUIAction["OPEN_DEVICE_SETTING"] =
|
|
86
|
-
FcrUIAction[FcrUIAction["OPEN_DEVICE_SETTING_DIALOG"] =
|
|
87
|
-
FcrUIAction[FcrUIAction["PARTICIPANT_ACTION"] =
|
|
88
|
-
FcrUIAction[FcrUIAction["CHAT_UPDATE_TARGET"] =
|
|
89
|
-
FcrUIAction[FcrUIAction["CHAT_RESET_TARGET"] =
|
|
90
|
-
FcrUIAction[FcrUIAction["OPEN_LIVE_STEAMING_DIALOG"] =
|
|
91
|
-
FcrUIAction[FcrUIAction["CLOSE_LIVE_STEAMING_DIALOG"] =
|
|
92
|
-
FcrUIAction[FcrUIAction["TOGGLE_LAYOUT_BAR_LOCK"] =
|
|
93
|
-
FcrUIAction[FcrUIAction["TOGGLE_LAYOUT_ACTIONBAR_HIDDEN"] =
|
|
94
|
-
FcrUIAction[FcrUIAction["SET_DIALOG_BOUNDS"] =
|
|
95
|
-
FcrUIAction[FcrUIAction["OPEN_CONNECTION_DIALOG"] =
|
|
96
|
-
FcrUIAction[FcrUIAction["CLOSE_CONNECTION_DIALOG"] =
|
|
97
|
-
FcrUIAction[FcrUIAction["OPEN_INVITE_DIALOG"] =
|
|
98
|
-
FcrUIAction[FcrUIAction["CLOSE_INVITE_DIALOG"] =
|
|
99
|
-
FcrUIAction[FcrUIAction["ASIDE_WIDTH_CHANGED"] =
|
|
100
|
-
FcrUIAction[FcrUIAction["VIDEO_WINDOW_BOUNDS"] =
|
|
101
|
-
FcrUIAction[FcrUIAction["VIDEO_WINDOW_RESIZE"] =
|
|
102
|
-
FcrUIAction[FcrUIAction["FOLD_LIST_CHANGED"] =
|
|
103
|
-
FcrUIAction[FcrUIAction["MAIN_LIST_CHANGED"] =
|
|
104
|
-
FcrUIAction[FcrUIAction["MAIN_LIST_LENGTH_CHANGED"] =
|
|
105
|
-
FcrUIAction[FcrUIAction["OPEN_WHITEBOARD"] =
|
|
106
|
-
FcrUIAction[FcrUIAction["CLOSE_WHITEBOARD"] =
|
|
107
|
-
FcrUIAction[FcrUIAction["WHITEBOARD_CHANGED"] =
|
|
108
|
-
FcrUIAction[FcrUIAction["SET_USER_PIN_STATE"] =
|
|
109
|
-
FcrUIAction[FcrUIAction["CUSTOM_SETTINGS_CHANGED"] =
|
|
110
|
-
FcrUIAction[FcrUIAction["CAROUSEL_COLLAPSED"] =
|
|
111
|
-
FcrUIAction[FcrUIAction["STOP_SCREEN_CAPTURE"] =
|
|
112
|
-
FcrUIAction[FcrUIAction["ENGINE_RECONNECTED"] =
|
|
113
|
-
FcrUIAction[FcrUIAction["SET_CURRENT_SHARE_SCREEN"] =
|
|
114
|
-
FcrUIAction[FcrUIAction["TOGGLE_PARTICIPANT_TAB"] =
|
|
115
|
-
FcrUIAction[FcrUIAction["CURRENT_PARTITIPANT_TAB"] =
|
|
116
|
-
FcrUIAction[FcrUIAction["RECEIVE_NEW_CHAT_MESSAGES_FOR_RED"] =
|
|
117
|
-
FcrUIAction[FcrUIAction["CHAT_ROOM_CLOSED"] =
|
|
118
|
-
FcrUIAction[FcrUIAction["CHAT_ROOM_TAB_CHANGE"] =
|
|
119
|
-
FcrUIAction[FcrUIAction["CHAT_VISIBLE"] =
|
|
120
|
-
FcrUIAction[FcrUIAction["WAITING_ROOM_DESTROYED"] =
|
|
121
|
-
FcrUIAction[FcrUIAction["MOVE_TO_MAIN_ROOM_ALL_MEMBER"] =
|
|
122
|
-
FcrUIAction[FcrUIAction["CLOSE_WAITING_ROOM_DIALOG"] =
|
|
123
|
-
FcrUIAction[FcrUIAction["SET_REMOTE_USERS"] =
|
|
124
|
-
FcrUIAction[FcrUIAction["SET_HAS_ASSIGN_HOST_BEFORE_LEAVING_PERMISSION"] =
|
|
125
|
-
FcrUIAction[FcrUIAction["SET_IS_PSTN_USER"] =
|
|
126
|
-
FcrUIAction[FcrUIAction["SET_HAS_END_ROOM_PERMISSION"] =
|
|
127
|
-
FcrUIAction[FcrUIAction["WATERMARK_INFO_UPDATE"] =
|
|
128
|
-
FcrUIAction[FcrUIAction["CHANGE_PARTICIPANT_TAB"] =
|
|
129
|
-
FcrUIAction[FcrUIAction["SHOW_NOTIFICATION"] =
|
|
130
|
-
FcrUIAction[FcrUIAction["COLSE_NOTIFICATION"] =
|
|
131
|
-
FcrUIAction[FcrUIAction["OPEN_INTERPRETER_DIALOG"] =
|
|
132
|
-
FcrUIAction[FcrUIAction["CLOSE_REMOVE_ADMIT_WAITING_ROOM_DIALOG"] =
|
|
133
|
-
FcrUIAction[FcrUIAction["TOGGLE_INTERPRETER_REMOTE_AUDIO"] =
|
|
134
|
-
FcrUIAction[FcrUIAction["TOGGLE_MAINROOM_REMOTE_AUDIO"] =
|
|
135
|
-
FcrUIAction[FcrUIAction["TOGGLE_CHAT_ROOM_TAB"] =
|
|
136
|
-
FcrUIAction[FcrUIAction["ENABLE_WAITING_ROOM"] =
|
|
137
|
-
FcrUIAction[FcrUIAction["
|
|
138
|
-
FcrUIAction[FcrUIAction["
|
|
139
|
-
FcrUIAction[FcrUIAction["
|
|
140
|
-
FcrUIAction[FcrUIAction["
|
|
141
|
-
FcrUIAction[FcrUIAction["RESET_WHITEBOARD_TOOLBAR_VARS"] = 66] = "RESET_WHITEBOARD_TOOLBAR_VARS";
|
|
88
|
+
FcrUIAction[FcrUIAction["SET_MAIN_SPEAKER"] = 7] = "SET_MAIN_SPEAKER";
|
|
89
|
+
FcrUIAction[FcrUIAction["OPEN_DEVICE_SETTING"] = 8] = "OPEN_DEVICE_SETTING";
|
|
90
|
+
FcrUIAction[FcrUIAction["OPEN_DEVICE_SETTING_DIALOG"] = 9] = "OPEN_DEVICE_SETTING_DIALOG";
|
|
91
|
+
FcrUIAction[FcrUIAction["PARTICIPANT_ACTION"] = 10] = "PARTICIPANT_ACTION";
|
|
92
|
+
FcrUIAction[FcrUIAction["CHAT_UPDATE_TARGET"] = 11] = "CHAT_UPDATE_TARGET";
|
|
93
|
+
FcrUIAction[FcrUIAction["CHAT_RESET_TARGET"] = 12] = "CHAT_RESET_TARGET";
|
|
94
|
+
FcrUIAction[FcrUIAction["OPEN_LIVE_STEAMING_DIALOG"] = 13] = "OPEN_LIVE_STEAMING_DIALOG";
|
|
95
|
+
FcrUIAction[FcrUIAction["CLOSE_LIVE_STEAMING_DIALOG"] = 14] = "CLOSE_LIVE_STEAMING_DIALOG";
|
|
96
|
+
FcrUIAction[FcrUIAction["TOGGLE_LAYOUT_BAR_LOCK"] = 15] = "TOGGLE_LAYOUT_BAR_LOCK";
|
|
97
|
+
FcrUIAction[FcrUIAction["TOGGLE_LAYOUT_ACTIONBAR_HIDDEN"] = 16] = "TOGGLE_LAYOUT_ACTIONBAR_HIDDEN";
|
|
98
|
+
FcrUIAction[FcrUIAction["SET_DIALOG_BOUNDS"] = 17] = "SET_DIALOG_BOUNDS";
|
|
99
|
+
FcrUIAction[FcrUIAction["OPEN_CONNECTION_DIALOG"] = 18] = "OPEN_CONNECTION_DIALOG";
|
|
100
|
+
FcrUIAction[FcrUIAction["CLOSE_CONNECTION_DIALOG"] = 19] = "CLOSE_CONNECTION_DIALOG";
|
|
101
|
+
FcrUIAction[FcrUIAction["OPEN_INVITE_DIALOG"] = 20] = "OPEN_INVITE_DIALOG";
|
|
102
|
+
FcrUIAction[FcrUIAction["CLOSE_INVITE_DIALOG"] = 21] = "CLOSE_INVITE_DIALOG";
|
|
103
|
+
FcrUIAction[FcrUIAction["ASIDE_WIDTH_CHANGED"] = 22] = "ASIDE_WIDTH_CHANGED";
|
|
104
|
+
FcrUIAction[FcrUIAction["VIDEO_WINDOW_BOUNDS"] = 23] = "VIDEO_WINDOW_BOUNDS";
|
|
105
|
+
FcrUIAction[FcrUIAction["VIDEO_WINDOW_RESIZE"] = 24] = "VIDEO_WINDOW_RESIZE";
|
|
106
|
+
FcrUIAction[FcrUIAction["FOLD_LIST_CHANGED"] = 25] = "FOLD_LIST_CHANGED";
|
|
107
|
+
FcrUIAction[FcrUIAction["MAIN_LIST_CHANGED"] = 26] = "MAIN_LIST_CHANGED";
|
|
108
|
+
FcrUIAction[FcrUIAction["MAIN_LIST_LENGTH_CHANGED"] = 27] = "MAIN_LIST_LENGTH_CHANGED";
|
|
109
|
+
FcrUIAction[FcrUIAction["OPEN_WHITEBOARD"] = 28] = "OPEN_WHITEBOARD";
|
|
110
|
+
FcrUIAction[FcrUIAction["CLOSE_WHITEBOARD"] = 29] = "CLOSE_WHITEBOARD";
|
|
111
|
+
FcrUIAction[FcrUIAction["WHITEBOARD_CHANGED"] = 30] = "WHITEBOARD_CHANGED";
|
|
112
|
+
FcrUIAction[FcrUIAction["SET_USER_PIN_STATE"] = 31] = "SET_USER_PIN_STATE";
|
|
113
|
+
FcrUIAction[FcrUIAction["CUSTOM_SETTINGS_CHANGED"] = 32] = "CUSTOM_SETTINGS_CHANGED";
|
|
114
|
+
FcrUIAction[FcrUIAction["CAROUSEL_COLLAPSED"] = 33] = "CAROUSEL_COLLAPSED";
|
|
115
|
+
FcrUIAction[FcrUIAction["STOP_SCREEN_CAPTURE"] = 34] = "STOP_SCREEN_CAPTURE";
|
|
116
|
+
FcrUIAction[FcrUIAction["ENGINE_RECONNECTED"] = 35] = "ENGINE_RECONNECTED";
|
|
117
|
+
FcrUIAction[FcrUIAction["SET_CURRENT_SHARE_SCREEN"] = 36] = "SET_CURRENT_SHARE_SCREEN";
|
|
118
|
+
FcrUIAction[FcrUIAction["TOGGLE_PARTICIPANT_TAB"] = 37] = "TOGGLE_PARTICIPANT_TAB";
|
|
119
|
+
FcrUIAction[FcrUIAction["CURRENT_PARTITIPANT_TAB"] = 38] = "CURRENT_PARTITIPANT_TAB";
|
|
120
|
+
FcrUIAction[FcrUIAction["RECEIVE_NEW_CHAT_MESSAGES_FOR_RED"] = 39] = "RECEIVE_NEW_CHAT_MESSAGES_FOR_RED";
|
|
121
|
+
FcrUIAction[FcrUIAction["CHAT_ROOM_CLOSED"] = 40] = "CHAT_ROOM_CLOSED";
|
|
122
|
+
FcrUIAction[FcrUIAction["CHAT_ROOM_TAB_CHANGE"] = 41] = "CHAT_ROOM_TAB_CHANGE";
|
|
123
|
+
FcrUIAction[FcrUIAction["CHAT_VISIBLE"] = 42] = "CHAT_VISIBLE";
|
|
124
|
+
FcrUIAction[FcrUIAction["WAITING_ROOM_DESTROYED"] = 43] = "WAITING_ROOM_DESTROYED";
|
|
125
|
+
FcrUIAction[FcrUIAction["MOVE_TO_MAIN_ROOM_ALL_MEMBER"] = 44] = "MOVE_TO_MAIN_ROOM_ALL_MEMBER";
|
|
126
|
+
FcrUIAction[FcrUIAction["CLOSE_WAITING_ROOM_DIALOG"] = 45] = "CLOSE_WAITING_ROOM_DIALOG";
|
|
127
|
+
FcrUIAction[FcrUIAction["SET_REMOTE_USERS"] = 46] = "SET_REMOTE_USERS";
|
|
128
|
+
FcrUIAction[FcrUIAction["SET_HAS_ASSIGN_HOST_BEFORE_LEAVING_PERMISSION"] = 47] = "SET_HAS_ASSIGN_HOST_BEFORE_LEAVING_PERMISSION";
|
|
129
|
+
FcrUIAction[FcrUIAction["SET_IS_PSTN_USER"] = 48] = "SET_IS_PSTN_USER";
|
|
130
|
+
FcrUIAction[FcrUIAction["SET_HAS_END_ROOM_PERMISSION"] = 49] = "SET_HAS_END_ROOM_PERMISSION";
|
|
131
|
+
FcrUIAction[FcrUIAction["WATERMARK_INFO_UPDATE"] = 50] = "WATERMARK_INFO_UPDATE";
|
|
132
|
+
FcrUIAction[FcrUIAction["CHANGE_PARTICIPANT_TAB"] = 51] = "CHANGE_PARTICIPANT_TAB";
|
|
133
|
+
FcrUIAction[FcrUIAction["SHOW_NOTIFICATION"] = 52] = "SHOW_NOTIFICATION";
|
|
134
|
+
FcrUIAction[FcrUIAction["COLSE_NOTIFICATION"] = 53] = "COLSE_NOTIFICATION";
|
|
135
|
+
FcrUIAction[FcrUIAction["OPEN_INTERPRETER_DIALOG"] = 54] = "OPEN_INTERPRETER_DIALOG";
|
|
136
|
+
FcrUIAction[FcrUIAction["CLOSE_REMOVE_ADMIT_WAITING_ROOM_DIALOG"] = 55] = "CLOSE_REMOVE_ADMIT_WAITING_ROOM_DIALOG";
|
|
137
|
+
FcrUIAction[FcrUIAction["TOGGLE_INTERPRETER_REMOTE_AUDIO"] = 56] = "TOGGLE_INTERPRETER_REMOTE_AUDIO";
|
|
138
|
+
FcrUIAction[FcrUIAction["TOGGLE_MAINROOM_REMOTE_AUDIO"] = 57] = "TOGGLE_MAINROOM_REMOTE_AUDIO";
|
|
139
|
+
FcrUIAction[FcrUIAction["TOGGLE_CHAT_ROOM_TAB"] = 58] = "TOGGLE_CHAT_ROOM_TAB";
|
|
140
|
+
FcrUIAction[FcrUIAction["ENABLE_WAITING_ROOM"] = 59] = "ENABLE_WAITING_ROOM";
|
|
141
|
+
FcrUIAction[FcrUIAction["CLOSE_VIDEO_WINDOW"] = 60] = "CLOSE_VIDEO_WINDOW";
|
|
142
|
+
FcrUIAction[FcrUIAction["OPEN_CONFIRM"] = 61] = "OPEN_CONFIRM";
|
|
143
|
+
FcrUIAction[FcrUIAction["OPEN_TOP_VIDEO_WINDOW"] = 62] = "OPEN_TOP_VIDEO_WINDOW";
|
|
144
|
+
FcrUIAction[FcrUIAction["RESET_WHITEBOARD_TOOLBAR_VARS"] = 63] = "RESET_WHITEBOARD_TOOLBAR_VARS";
|
|
142
145
|
return FcrUIAction;
|
|
143
146
|
}({});
|
|
144
147
|
var FcrUIDialogKey = exports.FcrUIDialogKey = /*#__PURE__*/function (FcrUIDialogKey) {
|
|
@@ -166,6 +169,7 @@ var FcrUIDialogKey = exports.FcrUIDialogKey = /*#__PURE__*/function (FcrUIDialog
|
|
|
166
169
|
FcrUIDialogKey["ANNOTATION_TOOL"] = "annotation-tool";
|
|
167
170
|
FcrUIDialogKey["ANNOTATION"] = "annotation";
|
|
168
171
|
FcrUIDialogKey["LEAVE_MEETING"] = "leave-meeting";
|
|
172
|
+
FcrUIDialogKey["END_MEETING"] = "end-meeting";
|
|
169
173
|
return FcrUIDialogKey;
|
|
170
174
|
}({});
|
|
171
175
|
var FcrUIHighlightElement = exports.FcrUIHighlightElement = /*#__PURE__*/function (FcrUIHighlightElement) {
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { CurrentShareBounds } from '../modules/control-bar/types';
|
|
2
|
+
import { FcrUIDialogKey } from './constant';
|
|
3
|
+
export declare function handleCheckMouseOver(params: {
|
|
4
|
+
/**
|
|
5
|
+
* 当前需要被设置为热区的元素
|
|
6
|
+
*/
|
|
7
|
+
elem: HTMLDivElement;
|
|
8
|
+
/**
|
|
9
|
+
* 当前窗口的对象实例
|
|
10
|
+
*/
|
|
11
|
+
browserWindow: Electron.BrowserWindow;
|
|
12
|
+
/** @param newRendererWindow 处理 controlbar 中的 popover */
|
|
13
|
+
newRendererWindow?: Window;
|
|
14
|
+
/**
|
|
15
|
+
* 当前主窗口所在的窗口 bounds 信息
|
|
16
|
+
*/
|
|
17
|
+
screenBounds: CurrentShareBounds;
|
|
18
|
+
/**
|
|
19
|
+
* 回调函数,返回 timerId,用于清理定时器
|
|
20
|
+
*/
|
|
21
|
+
callback?: (timerId: NodeJS.Timeout) => void;
|
|
22
|
+
/**
|
|
23
|
+
* 当前打开的 dialog key,如果是 control bar,会计算内部控制栏的边界信息,用于精确定位其位置
|
|
24
|
+
*/
|
|
25
|
+
dialog?: FcrUIDialogKey;
|
|
26
|
+
}): NodeJS.Timeout | undefined;
|
|
27
|
+
export type CurrentShareScreenWorkArea = {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
displayId: number;
|
|
33
|
+
topOffset: number;
|
|
34
|
+
scaleFactor: number;
|
|
35
|
+
};
|
|
36
|
+
export declare function getCurrentSharingWorkArea(params: {
|
|
37
|
+
currentShareBounds: CurrentShareBounds;
|
|
38
|
+
}): CurrentShareScreenWorkArea;
|
|
39
|
+
export declare function followCorrectDisplay({ browserWindow, dialogKey, extraRefControlbarCondition, follow, alwaysFollowScreen, }: {
|
|
40
|
+
/**
|
|
41
|
+
* browserWindow 是 Electron 的窗口对象,如果传入,则直接设置 bounds,否则会根据 dialogKey 设置 bounds
|
|
42
|
+
*/
|
|
43
|
+
browserWindow?: Electron.BrowserWindow;
|
|
44
|
+
/**
|
|
45
|
+
* 如果不使用 browserWindow ,则需要传入 dialogKey 设置 bounds,如果 browserWindow 和 dialogKey 都未传入,则抛出错误
|
|
46
|
+
*/
|
|
47
|
+
dialogKey?: FcrUIDialogKey | FcrUIDialogKey[];
|
|
48
|
+
/**
|
|
49
|
+
* 始终 follow control bar 的位置,默认是 true
|
|
50
|
+
*/
|
|
51
|
+
extraRefControlbarCondition?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* 根据屏幕或者应用主窗口居中显示,默认是 screen,如果需要跟随主窗口,则设置为 main-window,
|
|
54
|
+
* 在屏幕共享时,普通 dialog 窗口会以 controlbar 所在的屏幕为基准水平居中对齐
|
|
55
|
+
* 在非屏幕共享状态下,则会以主窗口为基准水平居中对齐
|
|
56
|
+
*/
|
|
57
|
+
follow?: 'screen' | 'main-window';
|
|
58
|
+
/**
|
|
59
|
+
* 是否是全屏幕覆盖的透明窗口, 此设置主要针对 toast 和 confirm 弹窗
|
|
60
|
+
*/
|
|
61
|
+
alwaysFollowScreen?: boolean;
|
|
62
|
+
}): {
|
|
63
|
+
nearDisplayBounds: CurrentShareBounds;
|
|
64
|
+
nearDisplay: Electron.Display;
|
|
65
|
+
followControlbar: boolean;
|
|
66
|
+
} | undefined;
|
|
@@ -0,0 +1,188 @@
|
|
|
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.followCorrectDisplay = followCorrectDisplay;
|
|
8
|
+
exports.getCurrentSharingWorkArea = getCurrentSharingWorkArea;
|
|
9
|
+
exports.handleCheckMouseOver = handleCheckMouseOver;
|
|
10
|
+
require("core-js/modules/es.error.cause.js");
|
|
11
|
+
require("core-js/modules/es.error.to-string.js");
|
|
12
|
+
require("core-js/modules/es.array.for-each.js");
|
|
13
|
+
require("core-js/modules/es.array.is-array.js");
|
|
14
|
+
require("core-js/modules/es.array.map.js");
|
|
15
|
+
require("core-js/modules/es.object.to-string.js");
|
|
16
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
17
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
18
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
19
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
20
|
+
require("core-js/modules/web.timers.js");
|
|
21
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
22
|
+
var _constant = require("./constant");
|
|
23
|
+
var _store = require("../modules/dialog/store");
|
|
24
|
+
// 修复 windows 无法响应 hover 的问题
|
|
25
|
+
function handleCheckMouseOver(params) {
|
|
26
|
+
if (!(0, _env.isElectron)()) return;
|
|
27
|
+
var elem = params.elem,
|
|
28
|
+
browserWindow = params.browserWindow,
|
|
29
|
+
screenBounds = params.screenBounds,
|
|
30
|
+
callback = params.callback,
|
|
31
|
+
newRendererWindow = params.newRendererWindow,
|
|
32
|
+
dialog = params.dialog;
|
|
33
|
+
browserWindow.focus();
|
|
34
|
+
browserWindow.setIgnoreMouseEvents(true);
|
|
35
|
+
var MAX_HEIGHT = 430; // 内容最多的 popover 高度
|
|
36
|
+
var offsetHeight = 0;
|
|
37
|
+
if (newRendererWindow) {
|
|
38
|
+
var observer = new MutationObserver(function (mutationsList) {
|
|
39
|
+
mutationsList.forEach(function (mutation) {
|
|
40
|
+
if (mutation.type === 'childList') {
|
|
41
|
+
var popover = newRendererWindow.document.body.querySelector('.fcr-popover');
|
|
42
|
+
if (popover) {
|
|
43
|
+
offsetHeight = popover.offsetHeight > 0 ? popover.offsetHeight : MAX_HEIGHT;
|
|
44
|
+
} else {
|
|
45
|
+
offsetHeight = 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
observer.observe(newRendererWindow.document.body, {
|
|
51
|
+
childList: true,
|
|
52
|
+
subtree: true
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
var timerId = setInterval(function () {
|
|
56
|
+
var _window$runtime$scree = window.runtime.screen.getCursorScreenPoint(),
|
|
57
|
+
mouse_x = _window$runtime$scree.x,
|
|
58
|
+
mouse_y = _window$runtime$scree.y;
|
|
59
|
+
var bar_w = elem.offsetWidth,
|
|
60
|
+
bar_h = elem.offsetHeight;
|
|
61
|
+
var _elem$getBoundingClie = elem.getBoundingClientRect(),
|
|
62
|
+
bar_left = _elem$getBoundingClie.left,
|
|
63
|
+
bar_top = _elem$getBoundingClie.top;
|
|
64
|
+
var screen_x = screenBounds.x,
|
|
65
|
+
screen_y = screenBounds.y;
|
|
66
|
+
var threshold = bar_h + offsetHeight >= bar_top;
|
|
67
|
+
var bar_x1 = bar_left + screen_x;
|
|
68
|
+
var bar_x2 = bar_left + bar_w + screen_x;
|
|
69
|
+
var bar_y1 = threshold ? bar_top + screen_y : bar_top + screen_y - offsetHeight;
|
|
70
|
+
var bar_y2 = threshold ? bar_top + bar_h + offsetHeight + screen_y : bar_top + bar_h + screen_y;
|
|
71
|
+
|
|
72
|
+
// controlbar 独有逻辑,获取 controlbar state nav 的位置,并计算其边界
|
|
73
|
+
var insideElem = elem.querySelector('.share-state-nav');
|
|
74
|
+
var _ref = insideElem || {
|
|
75
|
+
offsetHeight: 0,
|
|
76
|
+
offsetWidth: 0
|
|
77
|
+
},
|
|
78
|
+
inside_h = _ref.offsetHeight,
|
|
79
|
+
inside_w = _ref.offsetWidth;
|
|
80
|
+
var _ref2 = (insideElem === null || insideElem === void 0 ? void 0 : insideElem.getBoundingClientRect()) || {
|
|
81
|
+
left: 0,
|
|
82
|
+
top: 0
|
|
83
|
+
},
|
|
84
|
+
inside_x = _ref2.left,
|
|
85
|
+
inside_y = _ref2.top;
|
|
86
|
+
var inside_x1 = inside_x + screen_x;
|
|
87
|
+
var inside_x2 = inside_x + inside_w + screen_x;
|
|
88
|
+
var inside_y1 = inside_y + screen_y;
|
|
89
|
+
var inside_y2 = inside_y + inside_h + screen_y;
|
|
90
|
+
var barWrapBoundary = mouse_x > bar_x1 && mouse_x < bar_x2 && mouse_y > bar_y1 && mouse_y < bar_y2;
|
|
91
|
+
var barControlBoundary = mouse_x > inside_x1 && mouse_x < inside_x2 && mouse_y > inside_y1 && mouse_y < inside_y2;
|
|
92
|
+
var barWrapWithInsideBoundary = mouse_x > bar_x1 && mouse_x < bar_x2 && mouse_y > bar_y1 && mouse_y < bar_y2 - inside_h || barControlBoundary;
|
|
93
|
+
if (dialog === _constant.FcrUIDialogKey.CONTROL_BAR ? barWrapWithInsideBoundary : barWrapBoundary) {
|
|
94
|
+
browserWindow.setIgnoreMouseEvents(false);
|
|
95
|
+
// 因为当用户点击其他窗口时,鼠标返回热区窗口会自动聚焦返回到上层,经测试这个注释不会影响现有功能,先注释看有没有其它影响
|
|
96
|
+
// if (!browserWindow.isFocused()) {
|
|
97
|
+
// browserWindow.focus();
|
|
98
|
+
// }
|
|
99
|
+
} else {
|
|
100
|
+
browserWindow.setIgnoreMouseEvents(true);
|
|
101
|
+
}
|
|
102
|
+
}, 50);
|
|
103
|
+
callback === null || callback === void 0 || callback(timerId);
|
|
104
|
+
return timerId;
|
|
105
|
+
}
|
|
106
|
+
function getCurrentSharingWorkArea(params) {
|
|
107
|
+
var currentShareBounds = params.currentShareBounds;
|
|
108
|
+
var _window$screen = window.screen,
|
|
109
|
+
availWidth = _window$screen.availWidth,
|
|
110
|
+
availHeight = _window$screen.availHeight;
|
|
111
|
+
var nearDisplay = (0, _env.isElectron)() ? window.runtime.screen.getDisplayNearestPoint(currentShareBounds) : null;
|
|
112
|
+
var dataStruct = {
|
|
113
|
+
bounds: {
|
|
114
|
+
x: 0,
|
|
115
|
+
y: 0,
|
|
116
|
+
width: availWidth,
|
|
117
|
+
height: availHeight
|
|
118
|
+
},
|
|
119
|
+
id: 0,
|
|
120
|
+
workArea: {
|
|
121
|
+
y: 0
|
|
122
|
+
},
|
|
123
|
+
scaleFactor: 1
|
|
124
|
+
};
|
|
125
|
+
var _ref3 = nearDisplay || dataStruct,
|
|
126
|
+
_ref3$bounds = _ref3.bounds,
|
|
127
|
+
x = _ref3$bounds.x,
|
|
128
|
+
y = _ref3$bounds.y,
|
|
129
|
+
width = _ref3$bounds.width,
|
|
130
|
+
height = _ref3$bounds.height,
|
|
131
|
+
displayId = _ref3.id,
|
|
132
|
+
scaleFactor = _ref3.scaleFactor,
|
|
133
|
+
workAreaY = _ref3.workArea.y;
|
|
134
|
+
return {
|
|
135
|
+
x: x,
|
|
136
|
+
y: y,
|
|
137
|
+
width: width,
|
|
138
|
+
height: height,
|
|
139
|
+
displayId: displayId,
|
|
140
|
+
topOffset: workAreaY - y,
|
|
141
|
+
// 此算法能确保显示器在不同的上下排列和主次组合时,获取到的偏移值始终正确。
|
|
142
|
+
scaleFactor: scaleFactor
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function followCorrectDisplay(_ref4) {
|
|
146
|
+
var browserWindow = _ref4.browserWindow,
|
|
147
|
+
dialogKey = _ref4.dialogKey,
|
|
148
|
+
_ref4$extraRefControl = _ref4.extraRefControlbarCondition,
|
|
149
|
+
extraRefControlbarCondition = _ref4$extraRefControl === void 0 ? true : _ref4$extraRefControl,
|
|
150
|
+
_ref4$follow = _ref4.follow,
|
|
151
|
+
follow = _ref4$follow === void 0 ? 'screen' : _ref4$follow,
|
|
152
|
+
_ref4$alwaysFollowScr = _ref4.alwaysFollowScreen,
|
|
153
|
+
alwaysFollowScreen = _ref4$alwaysFollowScr === void 0 ? false : _ref4$alwaysFollowScr;
|
|
154
|
+
if (!(0, _env.isElectron)()) return;
|
|
155
|
+
if (!browserWindow && !dialogKey) throw new Error('browserWindow or dialogKey is required');
|
|
156
|
+
var objectDialog = dialogKey ? Array.isArray(dialogKey) ? dialogKey.map(function (dialog) {
|
|
157
|
+
return _store.dialogWindows.get(dialog);
|
|
158
|
+
}) : _store.dialogWindows.get(dialogKey) : browserWindow;
|
|
159
|
+
var controlbar = _store.dialogWindows.get(_constant.FcrUIDialogKey.CONTROL_BAR);
|
|
160
|
+
var mainAppWindowBounds = window.runtime.browserWindow.getBounds();
|
|
161
|
+
// 按当前的窗口管理方式,在关闭 controlbar 的时候,controlbar 实际上是隐藏了自己,所以,依然能够通过 controlbar 访问到,所以需要判断是否是 visible 状态
|
|
162
|
+
var followControlbar = !!(controlbar && (extraRefControlbarCondition || controlbar.isVisible()));
|
|
163
|
+
// 屏幕抢占时,需要判断是否是抢占屏幕,决定是取 controlbar 所在屏幕计算热区,还是以主窗口所在屏幕计算热区,此类条件通过 extraRefControlbarCondition 传入
|
|
164
|
+
var nearestPoint = followControlbar ? controlbar === null || controlbar === void 0 ? void 0 : controlbar.getBounds() : mainAppWindowBounds;
|
|
165
|
+
var nearDisplay = window.runtime.screen.getDisplayNearestPoint(nearestPoint);
|
|
166
|
+
var nearBounds = nearDisplay.bounds;
|
|
167
|
+
var nearDisplayBounds = {
|
|
168
|
+
x: Math.floor(nearBounds.x),
|
|
169
|
+
y: Math.floor(nearBounds.y),
|
|
170
|
+
width: Math.floor(nearBounds.width),
|
|
171
|
+
height: Math.floor(nearBounds.height)
|
|
172
|
+
};
|
|
173
|
+
var followBounds = function followBounds(theWindowBounds) {
|
|
174
|
+
var targetBounds = follow === 'screen' || extraRefControlbarCondition ? nearBounds : mainAppWindowBounds;
|
|
175
|
+
return alwaysFollowScreen ? nearDisplayBounds : {
|
|
176
|
+
x: Math.floor(targetBounds.x + (targetBounds.width - theWindowBounds.width) / 2),
|
|
177
|
+
y: Math.floor(targetBounds.y + (targetBounds.height - theWindowBounds.height) / 2)
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
Array.isArray(objectDialog) ? objectDialog.forEach(function (dialog) {
|
|
181
|
+
return dialog === null || dialog === void 0 ? void 0 : dialog.setBounds(followBounds(dialog.getBounds()));
|
|
182
|
+
}) : objectDialog === null || objectDialog === void 0 ? void 0 : objectDialog.setBounds(followBounds(objectDialog.getBounds()));
|
|
183
|
+
return {
|
|
184
|
+
nearDisplayBounds: nearDisplayBounds,
|
|
185
|
+
nearDisplay: nearDisplay,
|
|
186
|
+
followControlbar: followControlbar
|
|
187
|
+
};
|
|
188
|
+
}
|
package/lib/utilities/logger.js
CHANGED
|
@@ -16,19 +16,19 @@ var _misc = require("agora-foundation/lib/utilities/misc");
|
|
|
16
16
|
var _logSerializer = require("agora-foundation/lib/decorator/log/log-serializer");
|
|
17
17
|
var getLogger = exports.getLogger = function getLogger() {
|
|
18
18
|
return (0, _logger.getLogger)({
|
|
19
|
-
label: 'ui-scene'
|
|
19
|
+
label: 'fcr-ui-scene'
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
var createLogger = exports.createLogger = function createLogger(opts) {
|
|
23
23
|
return (0, _logger.createLogger)({
|
|
24
|
-
label: 'ui-scene',
|
|
24
|
+
label: 'fcr-ui-scene',
|
|
25
25
|
prefix: "".concat(opts.prefix, "@").concat((0, _misc.randomString)(5)),
|
|
26
26
|
database: opts.database
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
29
|
var createFragmentLogger = exports.createFragmentLogger = function createFragmentLogger(opts) {
|
|
30
30
|
return (0, _logger.createLogger)({
|
|
31
|
-
label: 'fragments',
|
|
31
|
+
label: 'fcr-ui-scene-fragments',
|
|
32
32
|
prefix: "".concat(opts.prefix, "@").concat((0, _misc.randomString)(5)),
|
|
33
33
|
database: opts.database
|
|
34
34
|
});
|
|
@@ -41,7 +41,7 @@ var generateMeetingDetail = exports.generateMeetingDetail = function generateMee
|
|
|
41
41
|
return parts.join('\n').replace(/^\s*\n/gm, '');
|
|
42
42
|
};
|
|
43
43
|
var generateMeetingDuration = exports.generateMeetingDuration = function generateMeetingDuration(startTime, duration) {
|
|
44
|
-
if (startTime
|
|
44
|
+
if (typeof startTime !== 'number' || duration === 0) {
|
|
45
45
|
return '';
|
|
46
46
|
}
|
|
47
47
|
var durationStamp = (duration || 86400000) * 1000;
|
|
@@ -12,4 +12,5 @@ export declare const getRobotPullingStreamType: (parameters?: FcrUISceneParamete
|
|
|
12
12
|
export declare const getDualCameraVideoStreamConfig: (parameters?: FcrUISceneParameters) => FcrDualVideoStreamConfig;
|
|
13
13
|
export declare const getDualScreenVideoStreamConfig: (parameters?: FcrUISceneParameters) => FcrDualVideoStreamConfig;
|
|
14
14
|
export declare const getStartScreenSharing: (parameters?: FcrUISceneParameters) => boolean;
|
|
15
|
+
export declare const getEventSoundInterval: (parameters?: FcrUISceneParameters) => number;
|
|
15
16
|
export {};
|
|
@@ -4,7 +4,7 @@ require("core-js/modules/es.object.define-property.js");
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.isSkipPretest = exports.isRobotPullingMode = exports.isOpenDefaultMicrophone = exports.isOpenDefaultCamera = exports.getStartScreenSharing = exports.getRobotPullingStreamType = exports.getRobotPullingCount = exports.getDualScreenVideoStreamConfig = exports.getDualCameraVideoStreamConfig = exports.getDefaultVideoGallerySize = void 0;
|
|
7
|
+
exports.isSkipPretest = exports.isRobotPullingMode = exports.isOpenDefaultMicrophone = exports.isOpenDefaultCamera = exports.getStartScreenSharing = exports.getRobotPullingStreamType = exports.getRobotPullingCount = exports.getEventSoundInterval = exports.getDualScreenVideoStreamConfig = exports.getDualCameraVideoStreamConfig = exports.getDefaultVideoGallerySize = void 0;
|
|
8
8
|
var _valueCheck = require("agora-foundation/lib/utilities/value-check");
|
|
9
9
|
var isSkipPretest = exports.isSkipPretest = function isSkipPretest(parameters) {
|
|
10
10
|
var _parameters$scene$ski, _parameters$scene;
|
|
@@ -47,4 +47,8 @@ var getDualScreenVideoStreamConfig = exports.getDualScreenVideoStreamConfig = fu
|
|
|
47
47
|
var getStartScreenSharing = exports.getStartScreenSharing = function getStartScreenSharing(parameters) {
|
|
48
48
|
var _parameters$scene0;
|
|
49
49
|
return (0, _valueCheck.isTrueValue)(parameters === null || parameters === void 0 || (_parameters$scene0 = parameters.scene) === null || _parameters$scene0 === void 0 ? void 0 : _parameters$scene0.startScreenSharing);
|
|
50
|
+
};
|
|
51
|
+
var getEventSoundInterval = exports.getEventSoundInterval = function getEventSoundInterval(parameters) {
|
|
52
|
+
var _parameters$scene1;
|
|
53
|
+
return parameters === null || parameters === void 0 || (_parameters$scene1 = parameters.scene) === null || _parameters$scene1 === void 0 ? void 0 : _parameters$scene1.eventSoundInterval;
|
|
50
54
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { title as AnnotationTitle } from '../fragments/annotation/index';
|
|
2
|
-
import { title as AnnotationToolTitle } from '../modules/dialog/
|
|
2
|
+
import { title as AnnotationToolTitle } from '../modules/dialog/dialogs/annotation-tool';
|
|
3
3
|
type RendererEventListener = (event: RendererCustomEvent) => void;
|
|
4
4
|
export declare const addEventListener: (listener: RendererEventListener) => void;
|
|
5
5
|
export declare const removeEventListener: (listener: RendererEventListener) => void;
|