fcr-ui-scene 3.6.4-rc.1 → 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 +136 -98
- 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
|
@@ -15,13 +15,13 @@ require("./index.css");
|
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
17
17
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
18
|
-
|
|
18
|
+
localUserScreenSharingState = _useContext.localUserScreenSharingState,
|
|
19
19
|
handleStopShare = _useContext.handleStopShare,
|
|
20
20
|
startRenderSharePreview = _useContext.startRenderSharePreview;
|
|
21
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
22
22
|
className: "share-screen",
|
|
23
23
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
24
|
-
children:
|
|
24
|
+
children: localUserScreenSharingState === _fcrCore.FcrMediaSourceState.OPEN && !(0, _env.isElectron)() && /*#__PURE__*/(0, _jsxRuntime.jsx)(_shareStateBar.ShareStateBar, {
|
|
25
25
|
ref: function ref(dom) {
|
|
26
26
|
return startRenderSharePreview(dom);
|
|
27
27
|
},
|
|
@@ -42,13 +42,12 @@ var StateBarUIModule = exports.StateBarUIModule = /*#__PURE__*/function (_UIModu
|
|
|
42
42
|
// privilegeProvider?: FcrUIPrivilegeProvider;
|
|
43
43
|
|
|
44
44
|
function onNodeWillActive() {
|
|
45
|
-
var _this$currentRoomCont, _this$currentRoomCont2, _this$mainRoomControl, _this$waitingRoomCont, _this$sharedConfigDat
|
|
45
|
+
var _this$currentRoomCont, _this$currentRoomCont2, _this$mainRoomControl, _this$waitingRoomCont, _this$sharedConfigDat;
|
|
46
46
|
this._store = new _store["default"]({
|
|
47
47
|
roomControl: (_this$currentRoomCont = this.currentRoomControlProvider) === null || _this$currentRoomCont === void 0 ? void 0 : _this$currentRoomCont.currentRoomControl,
|
|
48
48
|
uiEventStore: this.eventProvider,
|
|
49
49
|
securityStore: ((_this$currentRoomCont2 = this.currentRoomControlProvider) === null || _this$currentRoomCont2 === void 0 || (_this$currentRoomCont2 = _this$currentRoomCont2.currentRoomControl.getRoomInfo()) === null || _this$currentRoomCont2 === void 0 ? void 0 : _this$currentRoomCont2.roomType) === _type.FcrRoomType.Mainroom ? (_this$mainRoomControl = this.mainRoomControlProvider) === null || _this$mainRoomControl === void 0 ? void 0 : _this$mainRoomControl.privilegeProvider : (_this$waitingRoomCont = this.waitingRoomControlProvider) === null || _this$waitingRoomCont === void 0 ? void 0 : _this$waitingRoomCont.privilegeProvider,
|
|
50
|
-
|
|
51
|
-
parameters: (_this$sharedConfigDat2 = this.sharedConfigDataSource) === null || _this$sharedConfigDat2 === void 0 || (_this$sharedConfigDat2 = _this$sharedConfigDat2.creatorConfig) === null || _this$sharedConfigDat2 === void 0 ? void 0 : _this$sharedConfigDat2.parameters,
|
|
50
|
+
parameters: (_this$sharedConfigDat = this.sharedConfigDataSource) === null || _this$sharedConfigDat === void 0 || (_this$sharedConfigDat = _this$sharedConfigDat.creatorConfig) === null || _this$sharedConfigDat === void 0 ? void 0 : _this$sharedConfigDat.parameters,
|
|
52
51
|
sharedLayoutDataSource: this.sharedLayoutDataSource,
|
|
53
52
|
roomProvider: this.roomProvider,
|
|
54
53
|
sharedVideoWindowDataSource: this.sharedVideoWindowDataSource,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
|
|
2
|
+
export declare const LayoutConfig: (props: {
|
|
3
3
|
disable: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const LayoutConfig: (props: LayoutConfigProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -97,7 +97,8 @@ var LayoutConfig = exports.LayoutConfig = (0, _mobxReact.observer)(function (pro
|
|
|
97
97
|
layoutSize = _useContext2.layoutSize,
|
|
98
98
|
layoutView = _useContext2.layoutView,
|
|
99
99
|
toggleLayoutBarLock = _useContext2.toggleLayoutBarLock,
|
|
100
|
-
galleryWidth = _useContext2.galleryWidth
|
|
100
|
+
galleryWidth = _useContext2.galleryWidth,
|
|
101
|
+
toastCannotToggleLayoutWhenSharing = _useContext2.toastCannotToggleLayoutWhenSharing;
|
|
101
102
|
var disable = props.disable;
|
|
102
103
|
var _useState = (0, _react.useState)(false),
|
|
103
104
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
@@ -118,11 +119,11 @@ var LayoutConfig = exports.LayoutConfig = (0, _mobxReact.observer)(function (pro
|
|
|
118
119
|
toggleLayout(view);
|
|
119
120
|
};
|
|
120
121
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
121
|
-
disable: disable,
|
|
122
|
+
disable: disable || isOpen,
|
|
122
123
|
trigger: "hover",
|
|
123
124
|
placement: 'bottom',
|
|
124
125
|
mouseEnterDelay: 0,
|
|
125
|
-
content: t('
|
|
126
|
+
content: t('fmt_statusbar_label_switchlayout'),
|
|
126
127
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
127
128
|
showArrow: false,
|
|
128
129
|
trigger: "click",
|
|
@@ -138,8 +139,12 @@ var LayoutConfig = exports.LayoutConfig = (0, _mobxReact.observer)(function (pro
|
|
|
138
139
|
}),
|
|
139
140
|
visible: isOpen,
|
|
140
141
|
onVisibleChange: function onVisibleChange(visible) {
|
|
141
|
-
|
|
142
|
-
|
|
142
|
+
if (!disable) {
|
|
143
|
+
_setIsOpen(visible);
|
|
144
|
+
toggleLayoutBarLock(visible);
|
|
145
|
+
} else {
|
|
146
|
+
toastCannotToggleLayoutWhenSharing();
|
|
147
|
+
}
|
|
143
148
|
},
|
|
144
149
|
placement: "bottomRight",
|
|
145
150
|
overlayClassName: ns.e('popover'),
|
|
@@ -24,7 +24,6 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
25
|
var LiveStreamingState = exports.LiveStreamingState = (0, _mobxReact.observer)(function () {
|
|
26
26
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
27
|
-
isUserHost = _useContext.isUserHost,
|
|
28
27
|
liveStreamingPlayUrl = _useContext.liveStreamingPlayUrl,
|
|
29
28
|
stopLiveStreamingDialog = _useContext.stopLiveStreamingDialog,
|
|
30
29
|
hasStopLiveStreamingPermission = _useContext.hasStopLiveStreamingPermission,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FcrRecordingState, FcrRoomInfo
|
|
1
|
+
import { FcrRecordingState, FcrRoomInfo } from 'fcr-core/lib/type';
|
|
2
2
|
import { FcrUIEventProvider } from '../../providers/event-provider';
|
|
3
3
|
import { DeviceSettingDialogConfig } from '../setting/store';
|
|
4
|
-
import { FcrUINotificationContentType, FcrUINotificationParams,
|
|
4
|
+
import { FcrUINotificationContentType, FcrUINotificationParams, FcrUIToastParams } from '../../type';
|
|
5
5
|
import { FcrMainRoomControl, FcrWaitingRoomControl } from 'fcr-core/lib/room-control/type';
|
|
6
6
|
import { FcrUIPrivilegeProvider } from '../../providers/privilege-provider';
|
|
7
7
|
import { FcrUISharedLayoutDataSource } from '../../shared-data-source/layout-data';
|
|
@@ -24,7 +24,6 @@ export default class StateBarStore {
|
|
|
24
24
|
private _roomControl;
|
|
25
25
|
private _uiEventStore;
|
|
26
26
|
private _securityStore;
|
|
27
|
-
private _config;
|
|
28
27
|
private _roomProvider;
|
|
29
28
|
private _sharedLayoutDataSource;
|
|
30
29
|
private _sharedVideoWindowDataSource;
|
|
@@ -37,6 +36,7 @@ export default class StateBarStore {
|
|
|
37
36
|
private _abilityProvider;
|
|
38
37
|
private _annotationProvider;
|
|
39
38
|
private _dialogProvider;
|
|
39
|
+
private _isMainRoom;
|
|
40
40
|
accessor networkStatus: NetworkStatus;
|
|
41
41
|
accessor roomInfo: FcrRoomInfo | undefined;
|
|
42
42
|
accessor isLiveStreaming: boolean;
|
|
@@ -52,7 +52,7 @@ export default class StateBarStore {
|
|
|
52
52
|
accessor asideOpenedItem: Set<string>;
|
|
53
53
|
accessor cloudRecordingState: FcrRecordingState;
|
|
54
54
|
get annotationHasStart(): boolean;
|
|
55
|
-
get localUser(): FcrUserInfo;
|
|
55
|
+
get localUser(): import("fcr-core/lib/type").FcrUserInfo;
|
|
56
56
|
get isUserHost(): boolean;
|
|
57
57
|
get shouldShowMeetingTime(): boolean;
|
|
58
58
|
get isMainRoom(): boolean;
|
|
@@ -70,11 +70,10 @@ export default class StateBarStore {
|
|
|
70
70
|
get asideLayout(): import("../../type").FcrUIUpdateAsideParams;
|
|
71
71
|
get isRoomDetailSupported(): boolean;
|
|
72
72
|
get roomDetailCopyText(): string;
|
|
73
|
-
constructor({ roomControl, uiEventStore, securityStore,
|
|
73
|
+
constructor({ roomControl, uiEventStore, securityStore, parameters, sharedLayoutDataSource, roomProvider, sharedVideoWindowDataSource, messageProvider, sharedMemberDataSource, localStorageProvider, abilityProvider, sharedMeetingTimeDataSource, annotationProvider, dialogProvider, sharedScreenShareSharedDataSource, }: {
|
|
74
74
|
roomControl: FcrMainRoomControl | FcrWaitingRoomControl;
|
|
75
75
|
uiEventStore: FcrUIEventProvider;
|
|
76
76
|
securityStore: FcrUIPrivilegeProvider;
|
|
77
|
-
config: FcrUISceneConfig;
|
|
78
77
|
parameters?: Record<string, unknown>;
|
|
79
78
|
sharedLayoutDataSource: FcrUISharedLayoutDataSource;
|
|
80
79
|
roomProvider: FcrUIRoomProvider;
|
|
@@ -90,7 +89,7 @@ export default class StateBarStore {
|
|
|
90
89
|
});
|
|
91
90
|
get roomId(): string | undefined;
|
|
92
91
|
get meetingId(): string | undefined;
|
|
93
|
-
get scheduleInfo(): FcrRoomSchedule | undefined;
|
|
92
|
+
get scheduleInfo(): import("fcr-core/lib/type").FcrRoomSchedule | undefined;
|
|
94
93
|
isLockRoomEnabled(): boolean;
|
|
95
94
|
setNetworkStatus(networkStatus: NetworkStatus): void;
|
|
96
95
|
setRoomInfo(roomInfo: FcrRoomInfo | undefined): void;
|
|
@@ -108,6 +107,7 @@ export default class StateBarStore {
|
|
|
108
107
|
showToast(params: FcrUIToastParams): void;
|
|
109
108
|
showNotification(params: FcrUINotificationParams): void;
|
|
110
109
|
closeNotification(key: FcrUINotificationContentType): void;
|
|
110
|
+
toastCannotToggleLayoutWhenSharing(): void;
|
|
111
111
|
private _onNetworkQualityUpdated;
|
|
112
112
|
private _uiEvents;
|
|
113
113
|
private _setBrowserWidth;
|
|
@@ -115,11 +115,11 @@ var _J = /*#__PURE__*/new WeakMap();
|
|
|
115
115
|
_ref = (_setNetworkStatusDecs = [_mobx.action, _mobx.action.bound], _setRoomInfoDecs = [_mobx.action, _mobx.action.bound], _stopLiveStreamingDialogDecs = [_mobx.action, _mobx.action.bound], _uiEventsDecs = [_mobx.action, _mobx.action.bound], _setBrowserWidthDecs = [_mobx.action, _mobx.action.bound], _onNetworkStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
116
116
|
var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
117
117
|
function StateBarStore(_ref2) {
|
|
118
|
-
var _this
|
|
118
|
+
var _this$_roomControl$ge,
|
|
119
|
+
_this = this;
|
|
119
120
|
var roomControl = _ref2.roomControl,
|
|
120
121
|
uiEventStore = _ref2.uiEventStore,
|
|
121
122
|
securityStore = _ref2.securityStore,
|
|
122
|
-
config = _ref2.config,
|
|
123
123
|
parameters = _ref2.parameters,
|
|
124
124
|
sharedLayoutDataSource = _ref2.sharedLayoutDataSource,
|
|
125
125
|
roomProvider = _ref2.roomProvider,
|
|
@@ -159,7 +159,6 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
159
159
|
// @observable accessor layoutSize: number;
|
|
160
160
|
// @observable accessor layoutView: 'speaker' | 'gallery' = 'gallery';
|
|
161
161
|
_classPrivateFieldInitSpec(this, _J, _init_cloudRecordingState(this, _type.FcrRecordingState.Stopped));
|
|
162
|
-
this._config = config;
|
|
163
162
|
this._roomControl = roomControl;
|
|
164
163
|
this._uiEventStore = uiEventStore;
|
|
165
164
|
this._securityStore = securityStore;
|
|
@@ -170,6 +169,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
170
169
|
if (this.isLiveStreaming) {
|
|
171
170
|
this.liveStreamingPlayUrl = this._roomControl.getLiveStreamingConfig().pullStreamingUrl;
|
|
172
171
|
}
|
|
172
|
+
this._isMainRoom = ((_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType) === _type2.FcrRoomType.Mainroom;
|
|
173
173
|
this._sharedLayoutDataSource = sharedLayoutDataSource;
|
|
174
174
|
this._sharedVideoWindowDataSource = sharedVideoWindowDataSource;
|
|
175
175
|
this._sharedMeetingTimeDataSource = sharedMeetingTimeDataSource;
|
|
@@ -320,8 +320,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
320
320
|
}, {
|
|
321
321
|
key: "isMainRoom",
|
|
322
322
|
get: function get() {
|
|
323
|
-
|
|
324
|
-
return ((_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType) === _type2.FcrRoomType.Mainroom;
|
|
323
|
+
return this._isMainRoom;
|
|
325
324
|
}
|
|
326
325
|
}, {
|
|
327
326
|
key: "hasStartCloudRecordingPermission",
|
|
@@ -361,8 +360,8 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
361
360
|
}, {
|
|
362
361
|
key: "password",
|
|
363
362
|
get: function get() {
|
|
364
|
-
var _this$
|
|
365
|
-
return (_this$
|
|
363
|
+
var _this$roomInfo;
|
|
364
|
+
return (_this$roomInfo = this.roomInfo) === null || _this$roomInfo === void 0 ? void 0 : _this$roomInfo.password;
|
|
366
365
|
}
|
|
367
366
|
}, {
|
|
368
367
|
key: "isSharingScreen",
|
|
@@ -494,13 +493,8 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
494
493
|
}, {
|
|
495
494
|
key: "getShareLink",
|
|
496
495
|
value: function getShareLink() {
|
|
497
|
-
var _this$
|
|
498
|
-
var
|
|
499
|
-
roomId: (_this$roomInfo = this.roomInfo) === null || _this$roomInfo === void 0 ? void 0 : _this$roomInfo.roomId,
|
|
500
|
-
roomName: (_this$roomInfo2 = this.roomInfo) === null || _this$roomInfo2 === void 0 ? void 0 : _this$roomInfo2.roomName,
|
|
501
|
-
userName: (_this$localUser = this.localUser) === null || _this$localUser === void 0 ? void 0 : _this$localUser.userName
|
|
502
|
-
};
|
|
503
|
-
var baseLink = "".concat((_this$roomInfo3 = this.roomInfo) === null || _this$roomInfo3 === void 0 ? void 0 : _this$roomInfo3.inviteLink);
|
|
496
|
+
var _this$roomInfo2;
|
|
497
|
+
var baseLink = "".concat((_this$roomInfo2 = this.roomInfo) === null || _this$roomInfo2 === void 0 ? void 0 : _this$roomInfo2.inviteLink);
|
|
504
498
|
return baseLink;
|
|
505
499
|
}
|
|
506
500
|
}, {
|
|
@@ -518,6 +512,14 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
518
512
|
value: function closeNotification(key) {
|
|
519
513
|
this._messageProvider.closeNotification(key);
|
|
520
514
|
}
|
|
515
|
+
}, {
|
|
516
|
+
key: "toastCannotToggleLayoutWhenSharing",
|
|
517
|
+
value: function toastCannotToggleLayoutWhenSharing() {
|
|
518
|
+
this._messageProvider.showToast({
|
|
519
|
+
type: 'normal',
|
|
520
|
+
message: (0, _i18n.transI18n)('fmt_statusbar_hover_unable_switch_grid_view')
|
|
521
|
+
});
|
|
522
|
+
}
|
|
521
523
|
}, {
|
|
522
524
|
key: "_onNetworkQualityUpdated",
|
|
523
525
|
value: function _onNetworkQualityUpdated(_roomId, event) {
|
|
@@ -640,7 +642,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
640
642
|
}]);
|
|
641
643
|
}();
|
|
642
644
|
_StateBarStore = StateBarStore;
|
|
643
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_StateBarStore, [[_mobx.observable, 1, "networkStatus"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "isLiveStreaming"], [_mobx.observable, 1, "liveStreamingPlayUrl"], [_mobx.observable, 1, "galleryWidth"], [_mobx.observable, 1, "browserWidth"], [_mobx.observable, 1, "networkStats"], [_mobx.observable, 1, "attendeeCount"], [_mobx.observable, 1, "asideOpenedItem"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.computed, 3, "localUser"], [_mobx.computed, 3, "shouldShowMeetingTime"], [_mobx.computed, 3, "isMainRoom"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingLinkPermission"], [_mobx.computed, 3, "totalHourText"], [_mobx.computed, 3, "totalMinuteText"], [_mobx.computed, 3, "meetingTimeStatus"], [_mobx.computed, 3, "meetingTime"], [_mobx.computed, 3, "password"], [_mobx.computed, 3, "roomId"], [_mobx.computed, 3, "meetingId"], [_mobx.computed, 3, "scheduleInfo"], [_decorator.bound, 2, "isLockRoomEnabled"], [_setNetworkStatusDecs, 18, "setNetworkStatus"], [_setRoomInfoDecs, 18, "setRoomInfo"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_stopLiveStreamingDialogDecs, 18, "stopLiveStreamingDialog"], [_decorator.bound, 2, "startCloudRecording"], [_decorator.bound, 2, "pauseCloudRecording"], [_decorator.bound, 2, "resumeCloudRecording"], [_decorator.bound, 2, "stopCloudRecording"], [_decorator.bound, 2, "getShareLink"], [_decorator.bound, 2, "showToast"], [_decorator.bound, 2, "showNotification"], [_decorator.bound, 2, "closeNotification"], [_uiEventsDecs, 18, "_uiEvents"], [_setBrowserWidthDecs, 18, "_setBrowserWidth"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLiveStreamingStateUpdatedDecs, 18, "_onLiveStreamingStateUpdated"], [_decorator.bound, 2, "getLocalMeetingTime"]], []).e, 11);
|
|
645
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_StateBarStore, [[_mobx.observable, 1, "networkStatus"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "isLiveStreaming"], [_mobx.observable, 1, "liveStreamingPlayUrl"], [_mobx.observable, 1, "galleryWidth"], [_mobx.observable, 1, "browserWidth"], [_mobx.observable, 1, "networkStats"], [_mobx.observable, 1, "attendeeCount"], [_mobx.observable, 1, "asideOpenedItem"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.computed, 3, "localUser"], [_mobx.computed, 3, "shouldShowMeetingTime"], [_mobx.computed, 3, "isMainRoom"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingLinkPermission"], [_mobx.computed, 3, "totalHourText"], [_mobx.computed, 3, "totalMinuteText"], [_mobx.computed, 3, "meetingTimeStatus"], [_mobx.computed, 3, "meetingTime"], [_mobx.computed, 3, "password"], [_mobx.computed, 3, "roomId"], [_mobx.computed, 3, "meetingId"], [_mobx.computed, 3, "scheduleInfo"], [_decorator.bound, 2, "isLockRoomEnabled"], [_setNetworkStatusDecs, 18, "setNetworkStatus"], [_setRoomInfoDecs, 18, "setRoomInfo"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_stopLiveStreamingDialogDecs, 18, "stopLiveStreamingDialog"], [_decorator.bound, 2, "startCloudRecording"], [_decorator.bound, 2, "pauseCloudRecording"], [_decorator.bound, 2, "resumeCloudRecording"], [_decorator.bound, 2, "stopCloudRecording"], [_decorator.bound, 2, "getShareLink"], [_decorator.bound, 2, "showToast"], [_decorator.bound, 2, "showNotification"], [_decorator.bound, 2, "closeNotification"], [_decorator.bound, 2, "toastCannotToggleLayoutWhenSharing"], [_uiEventsDecs, 18, "_uiEvents"], [_setBrowserWidthDecs, 18, "_setBrowserWidth"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLiveStreamingStateUpdatedDecs, 18, "_onLiveStreamingStateUpdated"], [_decorator.bound, 2, "getLocalMeetingTime"]], []).e, 11);
|
|
644
646
|
_init_networkStatus = _applyDecs$e[0];
|
|
645
647
|
_init_roomInfo = _applyDecs$e[1];
|
|
646
648
|
_init_isLiveStreaming = _applyDecs$e[2];
|
|
@@ -44,6 +44,8 @@ var MyFcrToolTip = exports.MyFcrToolTip = function MyFcrToolTip(props) {
|
|
|
44
44
|
content: props.content,
|
|
45
45
|
trigger: "hover",
|
|
46
46
|
placement: props.placement || 'bottom',
|
|
47
|
+
isArrowAndTargetCenter: true,
|
|
48
|
+
disable: props.disable,
|
|
47
49
|
mouseEnterDelay: 0,
|
|
48
50
|
children: props.children
|
|
49
51
|
});
|
|
@@ -59,7 +61,6 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
59
61
|
cloudRecordingState = _useContext.cloudRecordingState,
|
|
60
62
|
isLiveStreaming = _useContext.isLiveStreaming,
|
|
61
63
|
attendeeCount = _useContext.attendeeCount,
|
|
62
|
-
toggleLayoutBarLock = _useContext.toggleLayoutBarLock,
|
|
63
64
|
galleryWidth = _useContext.galleryWidth,
|
|
64
65
|
isMainRoom = _useContext.isMainRoom,
|
|
65
66
|
meetingId = _useContext.meetingId,
|
|
@@ -155,19 +156,17 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
155
156
|
})
|
|
156
157
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
157
158
|
className: ns.e('meeting-info'),
|
|
158
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_networkQuality.NetworkQuality, {})
|
|
170
|
-
})
|
|
159
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
160
|
+
showArrow: false,
|
|
161
|
+
trigger: "hover",
|
|
162
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingNetworkState.MeetingNetworkState, {}),
|
|
163
|
+
placement: "bottom",
|
|
164
|
+
mouseEnterDelay: 0,
|
|
165
|
+
onVisibleChange: setIsNetworkDetailVisible,
|
|
166
|
+
overlayClassName: ns.e('popover'),
|
|
167
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
168
|
+
className: "".concat(ns.e('info-network'), " ").concat(isNetworkDetailVisible ? 'active' : ''),
|
|
169
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_networkQuality.NetworkQuality, {})
|
|
171
170
|
})
|
|
172
171
|
}), isRoomDetailSupported && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
173
172
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
@@ -210,15 +209,12 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
210
209
|
children: [isRecording && /*#__PURE__*/(0, _jsxRuntime.jsx)(_recording.Recording, {}), isMainRoom && shouldShowMeetingTime && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
211
210
|
className: ns.e('time'),
|
|
212
211
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingTime.MeetingTime, {})
|
|
213
|
-
}), attendeeCount > 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_layoutConfig.LayoutConfig, {
|
|
220
|
-
disable: isSharingScreen
|
|
221
|
-
})
|
|
212
|
+
}), attendeeCount > 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
213
|
+
className: (0, _classnames["default"])(ns.e('layout'), {
|
|
214
|
+
'fcr-state-bar_layout_disable': isSharingScreen
|
|
215
|
+
}),
|
|
216
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_layoutConfig.LayoutConfig, {
|
|
217
|
+
disable: isSharingScreen
|
|
222
218
|
})
|
|
223
219
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
|
|
224
220
|
placement: "bottom",
|
|
@@ -32,7 +32,6 @@ var Members = exports.Members = (0, _mobxReact.observer)(function () {
|
|
|
32
32
|
videoWindowCurrentHeight = _useContext.videoWindowCurrentHeight,
|
|
33
33
|
foldListRenderData = _useContext.foldListRenderData,
|
|
34
34
|
removePin = _useContext.removePin,
|
|
35
|
-
addPin = _useContext.addPin,
|
|
36
35
|
sendParticipantEvent = _useContext.sendParticipantEvent,
|
|
37
36
|
muteAudio = _useContext.muteAudio,
|
|
38
37
|
openPrivateChat = _useContext.openPrivateChat,
|
|
@@ -49,6 +48,7 @@ var Members = exports.Members = (0, _mobxReact.observer)(function () {
|
|
|
49
48
|
openRenameDialog = _useContext.openRenameDialog,
|
|
50
49
|
userVolumeMap = _useContext.userVolumeMap;
|
|
51
50
|
var ref = (0, _react.useRef)(null);
|
|
51
|
+
var onScaleChange = (0, _react.useCallback)(function (scale) {}, []);
|
|
52
52
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
53
53
|
className: (0, _classnames["default"])('fcr-video-window-members', {
|
|
54
54
|
'fcr-video-window-members_mediapreview': _type.FcrVideoWindowPreviewType.SMALL === videoWindowPreviewType,
|
|
@@ -105,7 +105,8 @@ var Members = exports.Members = (0, _mobxReact.observer)(function () {
|
|
|
105
105
|
windowData: windowData,
|
|
106
106
|
showAvatar: true,
|
|
107
107
|
isVideoSuspended: false,
|
|
108
|
-
scalcValue: 1
|
|
108
|
+
scalcValue: 1,
|
|
109
|
+
onScaleChange: onScaleChange
|
|
109
110
|
})
|
|
110
111
|
}, windowData.windowId);
|
|
111
112
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -85,9 +85,6 @@ var VideoWindowUIModule = exports.VideoWindowUIModule = /*#__PURE__*/function (_
|
|
|
85
85
|
key: "onUiEvent",
|
|
86
86
|
value: function onUiEvent(event, payload) {
|
|
87
87
|
switch (event) {
|
|
88
|
-
case _constant.FcrUIAction.STOP_SHARE_SCREEN:
|
|
89
|
-
this._store.closeVideoWindow();
|
|
90
|
-
break;
|
|
91
88
|
case _constant.FcrUIAction.CLOSE_VIDEO_WINDOW:
|
|
92
89
|
this._store.closeVideoWindow();
|
|
93
90
|
break;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
justify-content: flex-start;
|
|
5
5
|
align-items: center;
|
|
6
|
-
background:
|
|
6
|
+
background: var(--fcr_waiting_room_bg);
|
|
7
7
|
height: calc(100% - 34px);
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
|
52
52
|
align-items: center;
|
|
53
53
|
width: 70%;
|
|
54
|
-
background-color:
|
|
54
|
+
background-color: var(--fcr_mobile_ui_scene_fill1);
|
|
55
55
|
min-width: 702px;
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
position: absolute;
|
|
77
77
|
left: 10px;
|
|
78
78
|
bottom: 10px;
|
|
79
|
-
background:
|
|
79
|
+
background: var(--fcr_ui_scene_view_toast);
|
|
80
80
|
border-radius: var(--fcr_cornerradius_xs);
|
|
81
81
|
padding: 5px 10px;
|
|
82
82
|
z-index: 100;
|
|
@@ -23,10 +23,10 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
23
23
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
24
24
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
25
25
|
var _base = require("../../base");
|
|
26
|
-
var _toast = _interopRequireDefault(require("../dialog/
|
|
26
|
+
var _toast = _interopRequireDefault(require("../dialog/dialogs/toast"));
|
|
27
27
|
var _store = _interopRequireWildcard(require("./store"));
|
|
28
28
|
var _view = _interopRequireDefault(require("./view"));
|
|
29
|
-
var _confirm = require("../dialog/
|
|
29
|
+
var _confirm = require("../dialog/dialogs/confirm");
|
|
30
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
31
|
var _excluded = ["globalToast", "confirm"];
|
|
32
32
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -62,6 +62,7 @@ var View = (0, _mobxReact.observer)(function () {
|
|
|
62
62
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_localVideoPlayer.LocalVideoPlayer, {
|
|
63
63
|
isLocalMirrorEnabled: false,
|
|
64
64
|
userName: localUser.userName,
|
|
65
|
+
avatarImage: localUser.avatar,
|
|
65
66
|
showSlider: false,
|
|
66
67
|
cameraDeviceId: cameraDeviceId,
|
|
67
68
|
showCameraPreview: cameraEnabled,
|
|
@@ -63,7 +63,7 @@ var WhiteboardControlbar = exports.WhiteboardControlbar = (0, _mobxReact.observe
|
|
|
63
63
|
className: "whiteboard-controlbar-item",
|
|
64
64
|
onClick: onZoomout,
|
|
65
65
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
66
|
-
type: _type.FcrIconType.
|
|
66
|
+
type: _type.FcrIconType.FCR_ZOOMIN,
|
|
67
67
|
size: 22,
|
|
68
68
|
colors: {
|
|
69
69
|
iconPrimary: isMinimum ? 'gray' : 'var(--fcr_ui_scene_icontext1)'
|
|
@@ -76,7 +76,7 @@ var WhiteboardControlbar = exports.WhiteboardControlbar = (0, _mobxReact.observe
|
|
|
76
76
|
className: "whiteboard-controlbar-item",
|
|
77
77
|
onClick: onZoomin,
|
|
78
78
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
79
|
-
type: _type.FcrIconType.
|
|
79
|
+
type: _type.FcrIconType.FCR_ZOOMOUT,
|
|
80
80
|
size: 22,
|
|
81
81
|
colors: {
|
|
82
82
|
iconPrimary: isMaxmum ? 'gray' : 'var(--fcr_ui_scene_icontext1)'
|
|
@@ -3,6 +3,7 @@ import { FcrUserInfo } from 'fcr-core/lib/type';
|
|
|
3
3
|
import { FcrStreamControl, FcrUserControl } from 'fcr-core';
|
|
4
4
|
import { FcrUIPrivilegeProvider } from '../../../../providers/privilege-provider';
|
|
5
5
|
import { FcrUIAnnotationProvider } from '../../../../providers/annotation-provider';
|
|
6
|
+
import { FcrUISharedAnnotationSource } from '../../../../shared-data-source/annotation-data';
|
|
6
7
|
export declare class WhiteboardControlBarStore {
|
|
7
8
|
accessor ownerUser: FcrUserInfo | undefined;
|
|
8
9
|
accessor currentUser: FcrUserInfo | undefined;
|
|
@@ -18,12 +19,14 @@ export declare class WhiteboardControlBarStore {
|
|
|
18
19
|
private _userControl;
|
|
19
20
|
private _securityStore;
|
|
20
21
|
private _annotationProvider;
|
|
21
|
-
|
|
22
|
+
private _sharedAnnotationDataSource;
|
|
23
|
+
constructor({ uiEventStore, userControl, securityStore, annotationProvider, sharedAnnotationDataSource, }: {
|
|
22
24
|
uiEventStore: FcrUIEventProvider;
|
|
23
25
|
streamControl: FcrStreamControl;
|
|
24
26
|
userControl: FcrUserControl;
|
|
25
27
|
securityStore: FcrUIPrivilegeProvider;
|
|
26
28
|
annotationProvider: FcrUIAnnotationProvider;
|
|
29
|
+
sharedAnnotationDataSource: FcrUISharedAnnotationSource;
|
|
27
30
|
});
|
|
28
31
|
get annotationHasStart(): boolean;
|
|
29
32
|
get canWriteBoard(): boolean;
|
|
@@ -84,7 +84,8 @@ var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*
|
|
|
84
84
|
var uiEventStore = _ref2.uiEventStore,
|
|
85
85
|
userControl = _ref2.userControl,
|
|
86
86
|
securityStore = _ref2.securityStore,
|
|
87
|
-
annotationProvider = _ref2.annotationProvider
|
|
87
|
+
annotationProvider = _ref2.annotationProvider,
|
|
88
|
+
sharedAnnotationDataSource = _ref2.sharedAnnotationDataSource;
|
|
88
89
|
(0, _classCallCheck2["default"])(this, WhiteboardControlBarStore);
|
|
89
90
|
_classPrivateFieldInitSpec(this, _A, (_initProto(this), _init_ownerUser(this, undefined)));
|
|
90
91
|
_classPrivateFieldInitSpec(this, _B, _init_currentUser(this, undefined));
|
|
@@ -101,6 +102,7 @@ var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*
|
|
|
101
102
|
this.currentUser = userControl.getLocalUser();
|
|
102
103
|
this._securityStore = securityStore;
|
|
103
104
|
this._annotationProvider = annotationProvider;
|
|
105
|
+
this._sharedAnnotationDataSource = sharedAnnotationDataSource;
|
|
104
106
|
this.isHost = [_type2.FcrUserRole.HOST, _type2.FcrUserRole.COHOST].includes((_userControl$getLocal = userControl.getLocalUser()) === null || _userControl$getLocal === void 0 ? void 0 : _userControl$getLocal.userRole);
|
|
105
107
|
uiEventStore.addObserver({
|
|
106
108
|
onEvent: function onEvent(action, payload) {
|
|
@@ -212,7 +214,7 @@ var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*
|
|
|
212
214
|
}, {
|
|
213
215
|
key: "annotationHasStart",
|
|
214
216
|
get: function get() {
|
|
215
|
-
return this.
|
|
217
|
+
return this._sharedAnnotationDataSource.annotationHasStart;
|
|
216
218
|
}
|
|
217
219
|
}, {
|
|
218
220
|
key: "canWriteBoard",
|
|
@@ -107,16 +107,16 @@ var PenPickerPanel = (0, _mobxReact.observer)(function () {
|
|
|
107
107
|
setIsHover(false);
|
|
108
108
|
};
|
|
109
109
|
var weights = [{
|
|
110
|
-
value:
|
|
110
|
+
value: 3,
|
|
111
111
|
icon: isCurve ? _type2.FcrIconType.FCR_PENSIZE : _type2.FcrIconType.FCR_PENSIZE_STRAIGHT
|
|
112
112
|
}, {
|
|
113
|
-
value:
|
|
113
|
+
value: 5,
|
|
114
114
|
icon: isCurve ? _type2.FcrIconType.FCR_PENSIZE : _type2.FcrIconType.FCR_PENSIZE_STRAIGHT
|
|
115
115
|
}, {
|
|
116
|
-
value:
|
|
116
|
+
value: 7,
|
|
117
117
|
icon: isCurve ? _type2.FcrIconType.FCR_PENSIZE : _type2.FcrIconType.FCR_PENSIZE_STRAIGHT
|
|
118
118
|
}, {
|
|
119
|
-
value:
|
|
119
|
+
value: 10,
|
|
120
120
|
icon: isCurve ? _type2.FcrIconType.FCR_PENSIZE : _type2.FcrIconType.FCR_PENSIZE_STRAIGHT
|
|
121
121
|
}];
|
|
122
122
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -12,17 +12,3 @@ export declare const useVisibleTools: (diraction?: "horizontal") => {
|
|
|
12
12
|
showColorCount: number;
|
|
13
13
|
isShinked: boolean;
|
|
14
14
|
};
|
|
15
|
-
export declare const useAnnotationVisibleTools: (diraction?: "horizontal") => {
|
|
16
|
-
mainTools: {
|
|
17
|
-
renderItem: ({ offset }?: {
|
|
18
|
-
offset?: number;
|
|
19
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
}[];
|
|
21
|
-
additionTools: {
|
|
22
|
-
renderItem: ({ offset }?: {
|
|
23
|
-
offset?: number;
|
|
24
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
}[];
|
|
26
|
-
showColorCount: number;
|
|
27
|
-
isShinked: boolean;
|
|
28
|
-
};
|