fcr-ui-scene 3.6.4 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/creator.d.ts +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 +495 -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 +5 -1
- package/lib/providers/room-provider.js +44 -16
- 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
|
@@ -69,7 +69,7 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
|
69
69
|
var _logger = require("../../utilities/logger");
|
|
70
70
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
71
71
|
var _ControlBarStore;
|
|
72
|
-
var _initProto, _leaveConfirmRefDecs, _init_leaveConfirmRef, _init_recordShareBounds, _init_cloudRecordingState, _init_isHost, _init_roomDuration, _init_startTime, _init_playUrl, _init_liveStreamingState, _init_allApplicationWindows, _init_roomInfo, _init_isShowMeetingDetailPortal, _init_hiddenShareActionNav, _init_boardOwnerUser, _init_currentShareDisplayId, _setCheckedStateMapDecs, _setShareWithAudioStateDecs, _showLockedRoomToastDecs, _createNewShareDecs, _handlerStopShareDecs, _setShareAudioProcessingChannelDecs, _handleMoreClickDecs, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _showToastDecs, _setShowMeetingDetailPortalDecs, _setEnableWaitingRoomDecs, _handleLeaveRoomDecs, _resetMessageCountDecs, _ref;
|
|
72
|
+
var _initProto, _leaveConfirmRefDecs, _init_leaveConfirmRef, _init_recordShareBounds, _init_cloudRecordingState, _init_isHost, _init_roomDuration, _init_startTime, _init_playUrl, _init_liveStreamingState, _init_allApplicationWindows, _init_roomInfo, _init_isShowMeetingDetailPortal, _init_hiddenShareActionNav, _init_boardOwnerUser, _init_currentShareDisplayId, _init_fragmentEngineState, _setCheckedStateMapDecs, _setShareWithAudioStateDecs, _showLockedRoomToastDecs, _createNewShareDecs, _handlerStopShareDecs, _setShareAudioProcessingChannelDecs, _setFragmentEngineStateDecs, _handleMoreClickDecs, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _showToastDecs, _setShowMeetingDetailPortalDecs, _setEnableWaitingRoomDecs, _handleLeaveRoomDecs, _resetMessageCountDecs, _ref;
|
|
73
73
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
74
74
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
75
75
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -94,7 +94,8 @@ var _K = /*#__PURE__*/new WeakMap();
|
|
|
94
94
|
var _L = /*#__PURE__*/new WeakMap();
|
|
95
95
|
var _M = /*#__PURE__*/new WeakMap();
|
|
96
96
|
var _N = /*#__PURE__*/new WeakMap();
|
|
97
|
-
|
|
97
|
+
var _O = /*#__PURE__*/new WeakMap();
|
|
98
|
+
_ref = (_leaveConfirmRefDecs = [_mobx.observable, _mobx.observable.ref], _setCheckedStateMapDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _showLockedRoomToastDecs = [_mobx.action, _mobx.action.bound], _createNewShareDecs = [_mobx.action, _mobx.action.bound], _handlerStopShareDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _setFragmentEngineStateDecs = [_mobx.action, _mobx.action.bound], _handleMoreClickDecs = [_mobx.action, _mobx.action.bound], _pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
98
99
|
leading: true
|
|
99
100
|
})], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
100
101
|
leading: true
|
|
@@ -125,7 +126,8 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
125
126
|
sharingProvider = _ref2.sharingProvider,
|
|
126
127
|
screenShareProvider = _ref2.screenShareProvider,
|
|
127
128
|
sharedScreenShareSharedDataSource = _ref2.sharedScreenShareSharedDataSource,
|
|
128
|
-
dialogProvider = _ref2.dialogProvider
|
|
129
|
+
dialogProvider = _ref2.dialogProvider,
|
|
130
|
+
sharedConfirmDataSource = _ref2.sharedConfirmDataSource;
|
|
129
131
|
(0, _classCallCheck2["default"])(this, ControlBarStore);
|
|
130
132
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
131
133
|
prefix: 'ControlBarStore'
|
|
@@ -172,6 +174,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
172
174
|
_classPrivateFieldInitSpec(this, _L, _init_hiddenShareActionNav(this, false));
|
|
173
175
|
_classPrivateFieldInitSpec(this, _M, _init_boardOwnerUser(this, ''));
|
|
174
176
|
_classPrivateFieldInitSpec(this, _N, _init_currentShareDisplayId(this, 0));
|
|
177
|
+
_classPrivateFieldInitSpec(this, _O, _init_fragmentEngineState(this, _type2.FcrConnectionState.DISCONNECTED));
|
|
175
178
|
this._uiEventStore = uiEventStore;
|
|
176
179
|
this._roomControl = roomControl;
|
|
177
180
|
this._securityStore = securityStore;
|
|
@@ -179,6 +182,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
179
182
|
this._sharedLayoutDataSource = sharedLayoutDataSource;
|
|
180
183
|
this._sharedChatDataSource = sharedChatDataSource;
|
|
181
184
|
this._sharedMemberDataSource = sharedMemberDataSource;
|
|
185
|
+
this._sharedConfirmDataSource = sharedConfirmDataSource;
|
|
182
186
|
this._localStorageProvider = localStorageProvider;
|
|
183
187
|
this._sharedMeetingTimeDataSource = sharedMeetingTimeDataSource;
|
|
184
188
|
this._messageProvider = messageProvider;
|
|
@@ -327,6 +331,14 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
327
331
|
set: function set(v) {
|
|
328
332
|
_classPrivateFieldSet(_N, this, v);
|
|
329
333
|
}
|
|
334
|
+
}, {
|
|
335
|
+
key: "fragmentEngineState",
|
|
336
|
+
get: function get() {
|
|
337
|
+
return _classPrivateFieldGet(_O, this);
|
|
338
|
+
},
|
|
339
|
+
set: function set(v) {
|
|
340
|
+
_classPrivateFieldSet(_O, this, v);
|
|
341
|
+
}
|
|
330
342
|
}, {
|
|
331
343
|
key: "isAnnotationSupported",
|
|
332
344
|
value: function isAnnotationSupported() {
|
|
@@ -413,9 +425,9 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
413
425
|
return this._securityStore.hasAnnotationAllowWritePermission();
|
|
414
426
|
}
|
|
415
427
|
}, {
|
|
416
|
-
key: "
|
|
428
|
+
key: "hasAnnotationWritePermission",
|
|
417
429
|
get: function get() {
|
|
418
|
-
return this._securityStore.
|
|
430
|
+
return this._securityStore.hasAnnotationWritePermission();
|
|
419
431
|
}
|
|
420
432
|
}, {
|
|
421
433
|
key: "allowAnnotationWriteState",
|
|
@@ -468,8 +480,8 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
468
480
|
}, {
|
|
469
481
|
key: "roomId",
|
|
470
482
|
get: function get() {
|
|
471
|
-
var _this$
|
|
472
|
-
return (_this$
|
|
483
|
+
var _this$roomInfo;
|
|
484
|
+
return (_this$roomInfo = this.roomInfo) === null || _this$roomInfo === void 0 ? void 0 : _this$roomInfo.roomId;
|
|
473
485
|
}
|
|
474
486
|
}, {
|
|
475
487
|
key: "meetingId",
|
|
@@ -478,6 +490,11 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
478
490
|
var mainRoomControl = this._roomProvider.currentRoomControl;
|
|
479
491
|
return (_ref3 = mainRoomControl === null || mainRoomControl === void 0 ? void 0 : mainRoomControl.getRoomPropertiesByKeyPath('meetingId')) !== null && _ref3 !== void 0 ? _ref3 : this.roomId;
|
|
480
492
|
}
|
|
493
|
+
}, {
|
|
494
|
+
key: "isCurrentScreenShareInSmoothType",
|
|
495
|
+
get: function get() {
|
|
496
|
+
return this._sharedScreenShareSharedDataSource.isCurrentScreenShareInSmoothType;
|
|
497
|
+
}
|
|
481
498
|
}, {
|
|
482
499
|
key: "scheduleInfo",
|
|
483
500
|
get: function get() {
|
|
@@ -514,9 +531,9 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
514
531
|
return this._sharedScreenShareSharedDataSource.isSharingScreen;
|
|
515
532
|
}
|
|
516
533
|
}, {
|
|
517
|
-
key: "
|
|
534
|
+
key: "mousePosition",
|
|
518
535
|
get: function get() {
|
|
519
|
-
return this.
|
|
536
|
+
return this._sharedConfirmDataSource.position;
|
|
520
537
|
}
|
|
521
538
|
}, {
|
|
522
539
|
key: "setCheckedStateMap",
|
|
@@ -555,6 +572,12 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
555
572
|
value: function setShareAudioProcessingChannel(target) {
|
|
556
573
|
this._sharedScreenShareSharedDataSource.setCurrentShareAudioProcessingChannel(target);
|
|
557
574
|
}
|
|
575
|
+
}, {
|
|
576
|
+
key: "setFragmentEngineState",
|
|
577
|
+
value: function setFragmentEngineState(state) {
|
|
578
|
+
this.log("setFragmentEngineState: ".concat(state));
|
|
579
|
+
this.fragmentEngineState = state;
|
|
580
|
+
}
|
|
558
581
|
|
|
559
582
|
// more
|
|
560
583
|
}, {
|
|
@@ -660,7 +683,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
660
683
|
}, {
|
|
661
684
|
key: "showToast",
|
|
662
685
|
value: function showToast(params) {
|
|
663
|
-
this.
|
|
686
|
+
this._messageProvider.showToast({
|
|
664
687
|
type: params.type,
|
|
665
688
|
message: params.content,
|
|
666
689
|
duration: params.duration
|
|
@@ -744,7 +767,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
744
767
|
}]);
|
|
745
768
|
}();
|
|
746
769
|
_ControlBarStore = ControlBarStore;
|
|
747
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ControlBarStore, [[_leaveConfirmRefDecs, 17, "leaveConfirmRef"], [_mobx.observable, 1, "recordShareBounds"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "isHost"], [_mobx.observable, 1, "roomDuration"], [_mobx.observable, 1, "startTime"], [_mobx.observable, 1, "playUrl"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "allApplicationWindows"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "isShowMeetingDetailPortal"], [_mobx.observable, 1, "hiddenShareActionNav"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "currentShareDisplayId"], [_decorator.bound, 2, "isAnnotationSupported"], [_mobx.computed, 3, "hasSecurityPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingUrlPermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "hasAnnotationAllowWritePermission"], [_mobx.computed, 3, "
|
|
770
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ControlBarStore, [[_leaveConfirmRefDecs, 17, "leaveConfirmRef"], [_mobx.observable, 1, "recordShareBounds"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "isHost"], [_mobx.observable, 1, "roomDuration"], [_mobx.observable, 1, "startTime"], [_mobx.observable, 1, "playUrl"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "allApplicationWindows"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "isShowMeetingDetailPortal"], [_mobx.observable, 1, "hiddenShareActionNav"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "currentShareDisplayId"], [_mobx.observable, 1, "fragmentEngineState"], [_decorator.bound, 2, "isAnnotationSupported"], [_mobx.computed, 3, "hasSecurityPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingUrlPermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "hasAnnotationAllowWritePermission"], [_mobx.computed, 3, "allowAnnotationWriteState"], [_mobx.computed, 3, "totalHourText"], [_mobx.computed, 3, "totalMinuteText"], [_mobx.computed, 3, "meetingTimeStatus"], [_mobx.computed, 3, "meetingTime"], [_mobx.computed, 3, "meetingTimeKey"], [_mobx.computed, 3, "roomId"], [_mobx.computed, 3, "meetingId"], [_mobx.computed, 3, "checkedStateMap"], [_setCheckedStateMapDecs, 18, "setCheckedStateMap"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_showLockedRoomToastDecs, 18, "showLockedRoomToast"], [_createNewShareDecs, 18, "createNewShare"], [_handlerStopShareDecs, 18, "handlerStopShare"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_setFragmentEngineStateDecs, 18, "setFragmentEngineState"], [_handleMoreClickDecs, 18, "handleMoreClick"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_showToastDecs, 18, "showToast"], [_setShowMeetingDetailPortalDecs, 18, "setShowMeetingDetailPortal"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_handleLeaveRoomDecs, 18, "handleLeaveRoom"], [_decorator.bound, 2, "getLocalMeetingTime"], [_decorator.bound, 2, "toggleAnnotation"], [_decorator.bound, 2, "setAllAnnotationWrite"], [_decorator.bound, 2, "log"], [_resetMessageCountDecs, 18, "_resetMessageCount"]], []).e, 16);
|
|
748
771
|
_init_leaveConfirmRef = _applyDecs$e[0];
|
|
749
772
|
_init_recordShareBounds = _applyDecs$e[1];
|
|
750
773
|
_init_cloudRecordingState = _applyDecs$e[2];
|
|
@@ -759,5 +782,6 @@ _init_isShowMeetingDetailPortal = _applyDecs$e[10];
|
|
|
759
782
|
_init_hiddenShareActionNav = _applyDecs$e[11];
|
|
760
783
|
_init_boardOwnerUser = _applyDecs$e[12];
|
|
761
784
|
_init_currentShareDisplayId = _applyDecs$e[13];
|
|
762
|
-
|
|
785
|
+
_init_fragmentEngineState = _applyDecs$e[14];
|
|
786
|
+
_initProto = _applyDecs$e[15];
|
|
763
787
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -16,7 +16,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", {
|
|
17
17
|
value: true
|
|
18
18
|
});
|
|
19
|
-
exports.ControlBarView = void 0;
|
|
19
|
+
exports.ControlbarContext = exports.ControlBarView = void 0;
|
|
20
20
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
21
21
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
22
22
|
require("core-js/modules/es.array.concat.js");
|
|
@@ -34,7 +34,7 @@ var _badge = require("agora-ui-foundation/lib/components/badge");
|
|
|
34
34
|
var _meetingSecurity = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/meeting-security");
|
|
35
35
|
var _more = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/more");
|
|
36
36
|
var _participants = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/participants");
|
|
37
|
-
var _shareAudio = require("
|
|
37
|
+
var _shareAudio = require("./components/share-audio");
|
|
38
38
|
var _shareScreenButton = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/share-screen-button");
|
|
39
39
|
var _mobxReact = require("mobx-react");
|
|
40
40
|
var _react = require("react");
|
|
@@ -51,15 +51,19 @@ var _deviceControl = _interopRequireDefault(require("../components/device-contro
|
|
|
51
51
|
var _meetingDetails = require("./components/meeting-details");
|
|
52
52
|
var _react2 = require("@use-gesture/react");
|
|
53
53
|
var _useElectron = require("../dialog/hooks/useElectron");
|
|
54
|
-
var _tools = require("../../utilities/tools");
|
|
55
54
|
var _enums = require("./enums");
|
|
56
55
|
var _constant = require("../../utilities/constant");
|
|
57
56
|
var _type2 = require("../../type");
|
|
58
57
|
var _annotationButton = require("./components/annotation-button");
|
|
58
|
+
var _dialogUtils = require("../../utilities/dialog-utils");
|
|
59
|
+
var _rendererEvent = require("../../utilities/renderer-event");
|
|
59
60
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
60
61
|
var _excluded = ["x", "y"];
|
|
61
62
|
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; }
|
|
62
63
|
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; }
|
|
64
|
+
var ControlbarContext = exports.ControlbarContext = /*#__PURE__*/(0, _react.createContext)({
|
|
65
|
+
browserWindow: null
|
|
66
|
+
});
|
|
63
67
|
var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function () {
|
|
64
68
|
var _useContext = (0, _react.useContext)(_useElectron.DialogInstanceContext),
|
|
65
69
|
browserWindow = _useContext.browserWindow,
|
|
@@ -78,7 +82,7 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
78
82
|
cloudRecordingState = _useContext2.cloudRecordingState,
|
|
79
83
|
hasStartCloudRecordingPermission = _useContext2.hasStartCloudRecordingPermission,
|
|
80
84
|
hasStopLiveStreamingPermission = _useContext2.hasStopLiveStreamingPermission,
|
|
81
|
-
|
|
85
|
+
hasAnnotationWritePermission = _useContext2.hasAnnotationWritePermission,
|
|
82
86
|
hasSecurityPermission = _useContext2.hasSecurityPermission,
|
|
83
87
|
isShowMeetingDetailPortal = _useContext2.isShowMeetingDetailPortal,
|
|
84
88
|
setShowMeetingDetailPortal = _useContext2.setShowMeetingDetailPortal,
|
|
@@ -91,15 +95,16 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
91
95
|
showLockedRoomToast = _useContext2.showLockedRoomToast,
|
|
92
96
|
checkedStateMap = _useContext2.checkedStateMap,
|
|
93
97
|
setCheckedStateMap = _useContext2.setCheckedStateMap,
|
|
94
|
-
isReplaceScreen = _useContext2.isReplaceScreen,
|
|
95
98
|
isAnnotationSupported = _useContext2.isAnnotationSupported,
|
|
96
|
-
log = _useContext2.log
|
|
99
|
+
log = _useContext2.log,
|
|
100
|
+
fragmentEngineState = _useContext2.fragmentEngineState,
|
|
101
|
+
mousePosition = _useContext2.mousePosition;
|
|
97
102
|
// 控制栏本身的高度
|
|
98
103
|
var NAV_HEIGHT = 84;
|
|
99
104
|
// 鼠标移开后自动隐藏的时间
|
|
100
105
|
var HIDDEN_TIMEOUT = 3000;
|
|
101
106
|
// 系统顶部的状态栏
|
|
102
|
-
var _getCurrentSharingWor = (0,
|
|
107
|
+
var _getCurrentSharingWor = (0, _dialogUtils.getCurrentSharingWorkArea)({
|
|
103
108
|
currentShareBounds: currentShareBounds
|
|
104
109
|
}),
|
|
105
110
|
browserWidth = _getCurrentSharingWor.width,
|
|
@@ -153,10 +158,29 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
153
158
|
});
|
|
154
159
|
var rndRef = (0, _react.useRef)(null);
|
|
155
160
|
var hideTimeout = (0, _react.useRef)(0);
|
|
161
|
+
var moveControlBarToDisplayId = function moveControlBarToDisplayId(dialogWidth, dialogHeight, targetDisplayId) {
|
|
162
|
+
var displays = window.runtime.screen.getAllDisplays();
|
|
163
|
+
var targetDisplay = displays.find(function (display) {
|
|
164
|
+
return display.id === targetDisplayId;
|
|
165
|
+
});
|
|
166
|
+
if (!targetDisplay) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
var controlBarNewX = targetDisplay.bounds.width / 2 - dialogWidth / 2;
|
|
170
|
+
browserWindow.setPosition(targetDisplay.bounds.x, targetDisplay.bounds.y);
|
|
171
|
+
setCoordination({
|
|
172
|
+
x: controlBarNewX,
|
|
173
|
+
y: 0
|
|
174
|
+
});
|
|
175
|
+
setBound({
|
|
176
|
+
width: dialogWidth,
|
|
177
|
+
height: dialogHeight
|
|
178
|
+
});
|
|
179
|
+
setNavCurrentPosition(_enums.TransferPosition.TOP);
|
|
180
|
+
};
|
|
156
181
|
|
|
157
182
|
// 逻辑更改为根据分享的内容重新计算control-bar的窗口大小后,
|
|
158
183
|
// 计算最大的Y坐标可直接从window.innerHeight - NAV_HEIGHT获取
|
|
159
|
-
|
|
160
184
|
var handlerShareNavTransferPosition = (0, _react.useCallback)(function (targetPosition) {
|
|
161
185
|
setNavCurrentPosition(targetPosition);
|
|
162
186
|
var targetY = targetPosition === _enums.TransferPosition.TOP ? 0 : browserHeight - NAV_HEIGHT - TITLE_HEIGHT;
|
|
@@ -174,8 +198,12 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
174
198
|
setHiddenShareActionNav(false);
|
|
175
199
|
};
|
|
176
200
|
var handleMouseLeave = function handleMouseLeave(e) {
|
|
177
|
-
setMoreVisible(false);
|
|
178
|
-
setShowSecurityPopover(false);
|
|
201
|
+
// setMoreVisible(false);
|
|
202
|
+
// setShowSecurityPopover(false);
|
|
203
|
+
(0, _rendererEvent.sendEvent)({
|
|
204
|
+
action: _constant.FcrUIRendererEventAction.SET_ANNOTATION_TO_FOCUS,
|
|
205
|
+
payload: true
|
|
206
|
+
});
|
|
179
207
|
browserWindow.setIgnoreMouseEvents(true, {
|
|
180
208
|
forward: true
|
|
181
209
|
});
|
|
@@ -208,7 +236,7 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
208
236
|
forward: true
|
|
209
237
|
});
|
|
210
238
|
};
|
|
211
|
-
|
|
239
|
+
var computControlBarPos = function computControlBarPos(browserWidth) {
|
|
212
240
|
if (rndRef.current) {
|
|
213
241
|
var width = rndRef.current.offsetWidth;
|
|
214
242
|
var height = rndRef.current.offsetHeight;
|
|
@@ -228,6 +256,25 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
228
256
|
});
|
|
229
257
|
setNavCurrentPosition(_enums.TransferPosition.TOP);
|
|
230
258
|
}
|
|
259
|
+
};
|
|
260
|
+
var recomputControlBarPosAfterDisplayChange = function recomputControlBarPosAfterDisplayChange() {
|
|
261
|
+
// setTimeout 1200ms后确定rndRef.current一定可以重新获取到,
|
|
262
|
+
// 跟随最新的共享内容所在的屏幕,位移control-bar
|
|
263
|
+
setTimeout(function () {
|
|
264
|
+
if (rndRef.current) {
|
|
265
|
+
var dialogWidth = rndRef.current.offsetWidth;
|
|
266
|
+
var dialogHeight = rndRef.current.offsetHeight;
|
|
267
|
+
var info = (0, _dialogUtils.getCurrentSharingWorkArea)({
|
|
268
|
+
currentShareBounds: currentShareBounds
|
|
269
|
+
});
|
|
270
|
+
moveControlBarToDisplayId(dialogWidth, dialogHeight, info.displayId);
|
|
271
|
+
}
|
|
272
|
+
}, 1200);
|
|
273
|
+
};
|
|
274
|
+
(0, _react.useEffect)(function () {
|
|
275
|
+
if (rndRef.current) {
|
|
276
|
+
computControlBarPos(browserWidth);
|
|
277
|
+
}
|
|
231
278
|
}, [currentShareId]);
|
|
232
279
|
(0, _react.useEffect)(function () {
|
|
233
280
|
if (!moreVisible) {
|
|
@@ -242,18 +289,25 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
242
289
|
if (display.id === currentShareDisplayId) {
|
|
243
290
|
handlerStopShare();
|
|
244
291
|
browserWindow.close();
|
|
292
|
+
} else {
|
|
293
|
+
recomputControlBarPosAfterDisplayChange();
|
|
245
294
|
}
|
|
246
295
|
};
|
|
296
|
+
var handleDisplayAdded = function handleDisplayAdded(event, newDisplay) {
|
|
297
|
+
recomputControlBarPosAfterDisplayChange();
|
|
298
|
+
};
|
|
247
299
|
window.runtime.screen.addListener('display-removed', handleDisplayRemoved);
|
|
300
|
+
window.runtime.screen.addListener('display-added', handleDisplayAdded);
|
|
248
301
|
return function () {
|
|
249
302
|
window.runtime.screen.removeListener('display-removed', handleDisplayRemoved);
|
|
303
|
+
window.runtime.screen.removeListener('display-added', handleDisplayAdded);
|
|
250
304
|
};
|
|
251
305
|
}, [currentShareDisplayId]);
|
|
252
306
|
var handleIgnoreMinimize = function handleIgnoreMinimize(event) {
|
|
253
307
|
event.preventDefault();
|
|
254
308
|
// browserWindow.restore();
|
|
255
309
|
};
|
|
256
|
-
function handleBlur(
|
|
310
|
+
function handleBlur() {
|
|
257
311
|
setMoreVisible(false);
|
|
258
312
|
setShowSecurityPopover(false);
|
|
259
313
|
}
|
|
@@ -285,7 +339,7 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
285
339
|
log("[ControlBarView]: [getScreenBounds][screen-share], screenBounds: ".concat(JSON.stringify(screenBounds)));
|
|
286
340
|
} else {
|
|
287
341
|
recordShareBounds.clear();
|
|
288
|
-
screenBounds = (0,
|
|
342
|
+
screenBounds = (0, _dialogUtils.getCurrentSharingWorkArea)({
|
|
289
343
|
currentShareBounds: currentShareBounds
|
|
290
344
|
});
|
|
291
345
|
recordShareBounds.set(currentShareBounds, screenBounds);
|
|
@@ -296,7 +350,7 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
296
350
|
function checkMouseOver() {
|
|
297
351
|
if (windowFocusTimerRef.current) clearInterval(windowFocusTimerRef.current);
|
|
298
352
|
var screenBounds = getScreenBounds();
|
|
299
|
-
(0,
|
|
353
|
+
(0, _dialogUtils.handleCheckMouseOver)({
|
|
300
354
|
elem: rndRef.current,
|
|
301
355
|
browserWindow: browserWindow,
|
|
302
356
|
screenBounds: screenBounds,
|
|
@@ -330,6 +384,18 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
330
384
|
clearInterval(windowFocusTimerRef.current);
|
|
331
385
|
};
|
|
332
386
|
}, [currentShareId]);
|
|
387
|
+
(0, _react.useEffect)(function () {
|
|
388
|
+
if (rndRef.current && (0, _platform.isWindows)()) {
|
|
389
|
+
var _rndRef$current$getBo = rndRef.current.getBoundingClientRect(),
|
|
390
|
+
x = _rndRef$current$getBo.x,
|
|
391
|
+
y = _rndRef$current$getBo.y,
|
|
392
|
+
width = _rndRef$current$getBo.width,
|
|
393
|
+
height = _rndRef$current$getBo.height;
|
|
394
|
+
if (mousePosition.x > x && mousePosition.x < x + width && mousePosition.y > y && mousePosition.y < y + height) {
|
|
395
|
+
browserWindow.setAlwaysOnTop(true, 'pop-up-menu');
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}, [mousePosition]);
|
|
333
399
|
|
|
334
400
|
// useEffect(() => {
|
|
335
401
|
// console.log('isReplaceScreen', isReplaceScreen);
|
|
@@ -369,12 +435,22 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
369
435
|
// };
|
|
370
436
|
// }, [isSharingScreen]);
|
|
371
437
|
|
|
438
|
+
(0, _react.useEffect)(function () {
|
|
439
|
+
browserWindow.on('blur', handleBlur);
|
|
440
|
+
return function () {
|
|
441
|
+
browserWindow.off('blur', handleBlur);
|
|
442
|
+
};
|
|
443
|
+
}, [browserWindow]);
|
|
444
|
+
(0, _react.useEffect)(function () {
|
|
445
|
+
log("[ControlBarView]: render check => \n hasAnnotationWritePermission: ".concat(hasAnnotationWritePermission, ", \n fragmentEngineState: ").concat(fragmentEngineState, ", \n isAnnotationSupported: ").concat(isAnnotationSupported()));
|
|
446
|
+
}, [hasAnnotationWritePermission, fragmentEngineState]);
|
|
372
447
|
return currentShareId ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, bind()), {}, {
|
|
373
448
|
style: {
|
|
374
449
|
width: 'fit-content',
|
|
375
450
|
transform: "translate(".concat(coordination.x, "px, ").concat(coordination.y, "px)")
|
|
376
451
|
},
|
|
377
|
-
|
|
452
|
+
onClick: handleBlur,
|
|
453
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
378
454
|
ref: rndRef,
|
|
379
455
|
onMouseEnter: handleMouseEnter,
|
|
380
456
|
onMouseLeave: handleMouseLeave,
|
|
@@ -382,90 +458,104 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
382
458
|
onMouseMove: handleMouseMove,
|
|
383
459
|
onClick: handleMouseMove,
|
|
384
460
|
className: "fcr-flex \n share-action-nav__container\n ".concat(navCurrentPosition === _enums.TransferPosition.BOTTOM ? 'share-action-nav__move_to_bottom' : 'share-action-nav__move_to_top', "\n ").concat(hiddenShareActionNav ? 'share-action-nav__hidden' : '', "\n ").concat(hiddenShareActionNav && coordination.y === browserHeight - NAV_HEIGHT - TITLE_HEIGHT ? 'completely-hidden-in-bottom' : '', "\n // \u8FD9\u91CC\u7684\u903B\u8F91\u662F\uFF0C \u5F53control-bar\u5728\u9876\u90E8\u65F6\uFF0C\u5982\u679C\u5F53\u524D\u7684Y\u5750\u6807\u5C0F\u4E8E\u6807\u9898\u680F\u7684\u9AD8\u5EA6\uFF0C\u6216\u8005\u7B49\u4E8E\u6807\u9898\u680F\u7684\u9AD8\u5EA6\uFF0C\u6216\u8005\u7B49\u4E8E0\uFF0C\u90A3\u4E48\u5C31\u6DFB\u52A0\u5438\u9876\u6548\u679C\n // \u5F53\u7535\u8111\u6709\u4E24\u4E2A\u5C4F\u5E55\u65F6\uFF0CTITLE_HEIGHT\u7684\u503C\u53EF\u80FD\u4E3A\u8D1F\u6570\n ").concat(hiddenShareActionNav && (coordination.y < TITLE_HEIGHT || coordination.y === TITLE_HEIGHT || coordination.y === 0) ? 'completely-hidden-in-top' : '', "\n "),
|
|
385
|
-
children:
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
height: '20px',
|
|
396
|
-
marginLeft: 30
|
|
397
|
-
}
|
|
398
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
399
|
-
className: "share-action-nav__meeting-control-group",
|
|
400
|
-
children: [hasSecurityPermission && /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
401
|
-
showArrow: false,
|
|
402
|
-
mouseEnterDelay: 0,
|
|
403
|
-
overlayInnerStyle: {
|
|
404
|
-
width: '300px',
|
|
405
|
-
boxShadow: 'none',
|
|
406
|
-
backgroundColor: 'none',
|
|
407
|
-
borderRadius: 'var(--fcr_cornerradius_l)'
|
|
408
|
-
},
|
|
409
|
-
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_securityMenu["default"], {
|
|
410
|
-
showLockedRoomToast: showLockedRoomToast,
|
|
411
|
-
privilege: privilegeProvider,
|
|
412
|
-
setEnableWaitingRoom: setEnableWaitingRoom,
|
|
413
|
-
checkedStateMap: checkedStateMap,
|
|
414
|
-
setCheckedStateMap: setCheckedStateMap
|
|
415
|
-
}),
|
|
416
|
-
trigger: "click",
|
|
417
|
-
visible: showSecurityPopover,
|
|
418
|
-
onVisibleChange: function onVisibleChange(visible) {
|
|
419
|
-
return setShowSecurityPopover(visible);
|
|
420
|
-
},
|
|
421
|
-
placement: "bottom",
|
|
422
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
423
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingSecurity.MeetingSecurity, {})
|
|
461
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(ControlbarContext.Provider, {
|
|
462
|
+
value: {
|
|
463
|
+
browserWindow: browserWindow
|
|
464
|
+
},
|
|
465
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
466
|
+
className: "share-action-nav share-action-nav__can-draggable ".concat(hiddenShareActionNav ? 'invisible' : ''),
|
|
467
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
468
|
+
className: "share-action-nav__media-control-group",
|
|
469
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_deviceControl["default"], {
|
|
470
|
+
showTitle: false
|
|
424
471
|
})
|
|
425
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_participants.ParticipantButton, {
|
|
426
|
-
onTooltipButtonClick: function onTooltipButtonClick() {
|
|
427
|
-
handleMoreClick(_enums.MoreAction.OPEN_PARTICIPANTS);
|
|
428
|
-
}
|
|
429
472
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_divider["default"], {
|
|
430
473
|
style: {
|
|
431
|
-
|
|
432
|
-
height: '20px'
|
|
474
|
+
marginRight: 24,
|
|
475
|
+
height: '20px',
|
|
476
|
+
marginLeft: 30
|
|
433
477
|
}
|
|
434
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
478
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
479
|
+
className: "share-action-nav__meeting-control-group",
|
|
480
|
+
children: [hasSecurityPermission && /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
481
|
+
showArrow: false,
|
|
482
|
+
mouseEnterDelay: 0,
|
|
483
|
+
overlayInnerStyle: {
|
|
484
|
+
width: '300px',
|
|
485
|
+
boxShadow: 'none',
|
|
486
|
+
backgroundColor: 'none',
|
|
487
|
+
borderRadius: 'var(--fcr_cornerradius_l)'
|
|
488
|
+
},
|
|
489
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_securityMenu["default"], {
|
|
490
|
+
showLockedRoomToast: showLockedRoomToast,
|
|
491
|
+
privilege: privilegeProvider,
|
|
492
|
+
setEnableWaitingRoom: setEnableWaitingRoom,
|
|
493
|
+
checkedStateMap: checkedStateMap,
|
|
494
|
+
setCheckedStateMap: setCheckedStateMap
|
|
495
|
+
}),
|
|
496
|
+
trigger: "click",
|
|
497
|
+
visible: showSecurityPopover,
|
|
498
|
+
onVisibleChange: function onVisibleChange(visible) {
|
|
499
|
+
return setShowSecurityPopover(visible);
|
|
442
500
|
},
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
501
|
+
placement: "bottom",
|
|
502
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
503
|
+
onClick: function onClick(e) {
|
|
504
|
+
return e.stopPropagation();
|
|
446
505
|
},
|
|
447
|
-
|
|
506
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingSecurity.MeetingSecurity, {})
|
|
448
507
|
})
|
|
449
|
-
})
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
508
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_participants.ParticipantButton, {
|
|
509
|
+
onTooltipButtonClick: function onTooltipButtonClick() {
|
|
510
|
+
handleMoreClick(_enums.MoreAction.OPEN_PARTICIPANTS);
|
|
511
|
+
}
|
|
512
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_divider["default"], {
|
|
513
|
+
style: {
|
|
514
|
+
margin: '0 8px',
|
|
515
|
+
height: '20px'
|
|
516
|
+
}
|
|
517
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_shareScreenButton.ShareScreenButton, {
|
|
518
|
+
onCreateNewShareButtonClick: createNewShare
|
|
519
|
+
}), hasAnnotationWritePermission && isAnnotationSupported() && fragmentEngineState === _type.FcrConnectionState.CONNECTED && /*#__PURE__*/(0, _jsxRuntime.jsx)(_annotationButton.AnnotationButton, {}), hasStopLiveStreamingPermission && liveStreamingState === _type.FcrLiveStreamingState.STARTED && /*#__PURE__*/(0, _jsxRuntime.jsx)(_stopLiveStreaming.StopLiveStreamingButton, {}), hasStartCloudRecordingPermission && cloudRecordingState !== _type.FcrRecordingState.Stopped && /*#__PURE__*/(0, _jsxRuntime.jsx)(_cloudRecordingButtons.CloudRecordingButtons, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_badge.FcrBadge, {
|
|
520
|
+
count: newMessageCount[_type2.FcrUIRoomType.MAIN_ROOM] || 0,
|
|
521
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
522
|
+
onClick: function onClick(e) {
|
|
523
|
+
return e.stopPropagation();
|
|
524
|
+
},
|
|
525
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_more.More, {
|
|
526
|
+
visible: moreVisible,
|
|
527
|
+
onButtonClick: function onButtonClick() {
|
|
528
|
+
return setMoreVisible(!moreVisible);
|
|
529
|
+
},
|
|
530
|
+
morePopoverContent: isShowMeetingDetailPortal ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingDetails.MeetingDetails, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_moreActions.MorePopoverContent, {
|
|
531
|
+
closePopover: function closePopover() {
|
|
532
|
+
return setMoreVisible(false);
|
|
533
|
+
},
|
|
534
|
+
hasChatPermission: true
|
|
535
|
+
})
|
|
536
|
+
})
|
|
537
|
+
})
|
|
538
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_divider["default"], {
|
|
539
|
+
style: {
|
|
540
|
+
margin: '0 8px',
|
|
541
|
+
height: '20px'
|
|
542
|
+
}
|
|
543
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_shareAudio.ShareAudio, {
|
|
544
|
+
browserWindow: browserWindow,
|
|
545
|
+
shareWithAudio: shareWithAudio,
|
|
546
|
+
currentAudioChannel: shareAudioProcessingChannel,
|
|
547
|
+
toggleShareWithAudio: setShareWithAudioState,
|
|
548
|
+
onSwitchAudioChannel: setShareAudioProcessingChannel
|
|
549
|
+
})]
|
|
460
550
|
})]
|
|
551
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_shareStateNav.ShareStateNav, {
|
|
552
|
+
onShareStateNavTransferPosition: handlerShareNavTransferPosition,
|
|
553
|
+
currentPosition: navCurrentPosition,
|
|
554
|
+
onStopShare: function onStopShare() {
|
|
555
|
+
handlerStopShare();
|
|
556
|
+
}
|
|
461
557
|
})]
|
|
462
|
-
})
|
|
463
|
-
onShareStateNavTransferPosition: handlerShareNavTransferPosition,
|
|
464
|
-
currentPosition: navCurrentPosition,
|
|
465
|
-
onStopShare: function onStopShare() {
|
|
466
|
-
handlerStopShare();
|
|
467
|
-
}
|
|
468
|
-
})]
|
|
558
|
+
})
|
|
469
559
|
})
|
|
470
560
|
})) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
|
471
561
|
});
|
|
@@ -26,7 +26,7 @@ export declare class FcrPretestStore {
|
|
|
26
26
|
get speakerVolumeLevel(): number;
|
|
27
27
|
get cameraDeviceList(): DeviceItem[];
|
|
28
28
|
get speakerId(): string;
|
|
29
|
-
get microphoneId(): string;
|
|
29
|
+
get microphoneId(): string | null;
|
|
30
30
|
get speakerDeviceList(): DeviceItem[];
|
|
31
31
|
get microphoneDeviceList(): DeviceItem[];
|
|
32
32
|
get speakerVolume(): number;
|
|
@@ -2,7 +2,7 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
import '../index.css';
|
|
3
3
|
export declare function DialogContainerBody(props: PropsWithChildren<{
|
|
4
4
|
onClick: () => void;
|
|
5
|
-
title?: string;
|
|
5
|
+
title?: string | React.ReactNode;
|
|
6
6
|
actions?: React.ReactNode;
|
|
7
7
|
autoHeight?: boolean;
|
|
8
8
|
closable?: boolean;
|
|
@@ -8,12 +8,13 @@ declare const DialogContainer: (props: PropsWithChildren<{
|
|
|
8
8
|
width?: number;
|
|
9
9
|
height?: number;
|
|
10
10
|
dialogKey: FcrUIDialogKey;
|
|
11
|
-
title?: string;
|
|
11
|
+
title?: string | React.ReactNode;
|
|
12
12
|
onClose?: () => void;
|
|
13
13
|
closeInterception?: () => boolean;
|
|
14
14
|
actions?: React.ReactNode;
|
|
15
15
|
dialogId?: string;
|
|
16
16
|
closable?: boolean;
|
|
17
17
|
autoHeight?: boolean;
|
|
18
|
+
style?: React.CSSProperties;
|
|
18
19
|
}>) => import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export default DialogContainer;
|