fcr-ui-scene 3.6.4 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/creator.d.ts +4 -3
- package/lib/creator.js +146 -111
- package/lib/electron/app.js +1 -1
- package/lib/electron/bootstrap-sdk.js +49 -4
- package/lib/electron/injections.d.ts +5 -1
- package/lib/electron/injections.js +14 -2
- package/lib/electron/ipc/type.d.ts +8 -4
- package/lib/electron/ipc/type.js +10 -4
- package/lib/electron/logger.js +1 -1
- package/lib/electron/main.js +5 -2
- package/lib/electron/preload.js +34 -5
- package/lib/fragments/annotation/index.d.ts +2 -2
- package/lib/fragments/annotation/index.js +38 -28
- package/lib/fragments/annotation/libs.d.ts +2 -2
- package/lib/fragments/annotation/store.d.ts +21 -4
- package/lib/fragments/annotation/store.js +281 -84
- package/lib/fragments/annotation/style.css +9 -0
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.js +1 -1
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.js +1 -1
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.d.ts +26 -2
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.js +57 -8
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.js +36 -3
- package/lib/fragments/annotation/view.d.ts +1 -0
- package/lib/fragments/annotation/view.js +52 -10
- package/lib/modules/action-bar/components/apps/index.js +54 -38
- package/lib/modules/action-bar/components/chat/index.js +13 -34
- package/lib/modules/action-bar/components/collapse/index.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +9 -9
- package/lib/modules/action-bar/components/more/index.js +26 -27
- package/lib/modules/action-bar/components/participants/index.js +23 -39
- package/lib/modules/action-bar/components/record/index.js +7 -13
- package/lib/modules/action-bar/components/screen-share/index.js +4 -24
- package/lib/modules/action-bar/components/security/index.js +29 -34
- package/lib/modules/action-bar/components/settings/index.js +13 -19
- package/lib/modules/action-bar/index.d.ts +4 -0
- package/lib/modules/action-bar/index.js +3 -1
- package/lib/modules/action-bar/store.d.ts +16 -6
- package/lib/modules/action-bar/store.js +63 -25
- package/lib/modules/action-bar/types.d.ts +3 -3
- package/lib/modules/action-bar/view.js +2 -3
- package/lib/modules/annotation/annotation-index.d.ts +2 -0
- package/lib/modules/annotation/annotation-index.js +80 -0
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +82 -0
- package/lib/modules/annotation/annotation-toolbar-store.js +501 -0
- package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/annotation/components/color-picker/components/color.js +38 -0
- package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/panel.js +109 -0
- package/lib/modules/annotation/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/picker.js +75 -0
- package/lib/modules/annotation/components/color-picker/index.d.ts +2 -0
- package/lib/modules/annotation/components/color-picker/index.js +47 -0
- package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
- package/lib/modules/annotation/components/eraser-picker.js +144 -0
- package/lib/modules/annotation/components/expansion/index.d.ts +1 -0
- package/lib/modules/annotation/components/expansion/index.js +100 -0
- package/lib/modules/annotation/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/annotation/components/extra-tool-picker.js +62 -0
- package/lib/modules/annotation/components/history.d.ts +2 -0
- package/lib/modules/annotation/components/history.js +78 -0
- package/lib/modules/annotation/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/annotation/components/icons/fold-icon.js +41 -0
- package/lib/modules/annotation/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/annotation/components/icons/move-icon.js +66 -0
- package/lib/modules/annotation/components/item/index.d.ts +1 -0
- package/lib/modules/annotation/components/item/index.js +43 -0
- package/lib/modules/annotation/components/move-handle.d.ts +5 -0
- package/lib/modules/annotation/components/move-handle.js +134 -0
- package/lib/modules/annotation/components/pen-picker.d.ts +4 -0
- package/lib/modules/annotation/components/pen-picker.js +155 -0
- package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/annotation/components/screen-capture-picker.js +85 -0
- package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
- package/lib/modules/annotation/components/shape-picker.js +210 -0
- package/lib/modules/annotation/hooks/index.d.ts +14 -0
- package/lib/modules/annotation/hooks/index.js +292 -0
- package/lib/modules/annotation/index.d.ts +4 -1
- package/lib/modules/annotation/index.js +20 -22
- package/lib/modules/annotation/store.d.ts +59 -18
- package/lib/modules/annotation/store.js +503 -263
- package/lib/modules/annotation/style.css +10 -0
- package/lib/modules/annotation/view.js +9 -11
- package/lib/modules/chat/chat-room-store.js +5 -2
- package/lib/modules/chat/components/chat-select/index.js +1 -1
- package/lib/modules/chat/components/chat-select/select-item/index.js +10 -3
- package/lib/modules/chat/components/message-list/message-item/index.js +4 -2
- package/lib/modules/chat/index.d.ts +2 -0
- package/lib/modules/chat/index.js +13 -3
- package/lib/modules/chat/store.d.ts +3 -0
- package/lib/modules/chat/store.js +12 -6
- package/lib/modules/chat/types.d.ts +1 -0
- package/lib/modules/chat/types.js +2 -1
- package/lib/modules/chat/util.js +2 -1
- package/lib/modules/chat/view.js +6 -3
- package/lib/modules/{action-bar/components → components}/apps/app-item/index.d.ts +1 -1
- package/lib/modules/components/apps/app-list.d.ts +3 -0
- package/lib/modules/{action-bar/components → components}/apps/app-list.js +2 -4
- package/lib/modules/components/apps/types.d.ts +14 -0
- package/lib/modules/components/apps/types.js +6 -0
- package/lib/modules/components/device-control/components/carmera/index.js +71 -68
- package/lib/modules/components/device-control/components/microphone/index.js +99 -97
- package/lib/modules/components/device-control/store.d.ts +1 -1
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +7 -7
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +0 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +4 -7
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +19 -36
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +1 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +9 -2
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +0 -3
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +15 -11
- package/lib/modules/components/member-window/components/member-actions/index.js +10 -2
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +2 -2
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.d.ts +12 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +75 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +1 -7
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +7 -47
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +12 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +68 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +1 -9
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +7 -49
- package/lib/modules/components/member-window/components/video-player/components/zoomable-container.d.ts +15 -0
- package/lib/modules/components/member-window/components/video-player/components/zoomable-container.js +255 -0
- package/lib/modules/components/member-window/components/video-player/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/video-player/index.js +8 -2
- package/lib/modules/components/member-window/index.css +16 -6
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +12 -4
- package/lib/modules/components/member-window/types.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +6 -5
- package/lib/modules/control-bar/components/annotation-button/index.js +21 -8
- package/lib/modules/control-bar/components/more-actions/index.css +13 -0
- package/lib/modules/control-bar/components/more-actions/index.js +1 -1
- package/lib/modules/control-bar/components/share-audio/index.css +90 -0
- package/lib/modules/control-bar/components/share-audio/index.d.ts +15 -0
- package/lib/modules/control-bar/components/share-audio/index.js +173 -0
- package/lib/modules/control-bar/components/share-state-nav/index.css +5 -0
- package/lib/modules/control-bar/components/share-state-nav/index.js +14 -2
- package/lib/modules/control-bar/index.d.ts +2 -0
- package/lib/modules/control-bar/index.js +9 -1
- package/lib/modules/control-bar/store.d.ts +16 -7
- package/lib/modules/control-bar/store.js +36 -12
- package/lib/modules/control-bar/view.d.ts +4 -0
- package/lib/modules/control-bar/view.js +180 -90
- package/lib/modules/device-pretest/store.d.ts +1 -1
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -1
- package/lib/modules/dialog/components/dialog-container/index.css +1 -0
- package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -1
- package/lib/modules/dialog/components/dialog-container/index.js +27 -10
- package/lib/modules/dialog/components/host-area-container/index.js +4 -4
- package/lib/modules/dialog/components/normal-window/index.d.ts +19 -0
- package/lib/modules/dialog/components/normal-window/index.js +69 -0
- package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.js +17 -15
- package/lib/modules/dialog/dialogs/chat/components/actions.d.ts +1 -0
- package/lib/modules/dialog/dialogs/chat/components/actions.js +33 -0
- package/lib/modules/dialog/{components → dialogs}/chat/index.d.ts +1 -1
- package/lib/modules/dialog/dialogs/chat/index.js +59 -0
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +6 -0
- package/lib/modules/dialog/{components → dialogs}/confirm-leave-meeting/index.js +13 -37
- package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.js +19 -12
- package/lib/modules/dialog/{components → dialogs}/control-bar/index.js +2 -2
- package/lib/modules/dialog/{components → dialogs}/device-setting/index.js +20 -13
- package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +12 -0
- package/lib/modules/dialog/dialogs/end-meeting/index.js +45 -0
- package/lib/modules/dialog/{components/interpreter/electron.js → dialogs/interpreter/index.js} +17 -11
- package/lib/modules/dialog/dialogs/invite/index.d.ts +3 -0
- package/lib/modules/dialog/{components → dialogs}/invite/index.js +9 -25
- package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +2 -0
- package/lib/modules/dialog/{components → dialogs}/live-streaming/index.js +11 -34
- package/lib/modules/dialog/dialogs/participant/components/actions.d.ts +1 -0
- package/lib/modules/dialog/dialogs/participant/components/actions.js +32 -0
- package/lib/modules/dialog/dialogs/participant/components/title.d.ts +1 -0
- package/lib/modules/dialog/dialogs/participant/components/title.js +19 -0
- package/lib/modules/dialog/dialogs/participant/index.d.ts +2 -0
- package/lib/modules/dialog/dialogs/participant/index.js +53 -0
- package/lib/modules/dialog/dialogs/pre-setting/index.js +62 -0
- package/lib/modules/dialog/dialogs/rename/index.js +35 -0
- package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/{components → dialogs}/video-window/index.js +11 -8
- package/lib/modules/dialog/{components → dialogs}/whiteboard/index.js +2 -3
- package/lib/modules/dialog/{components → dialogs}/widget/electron.js +1 -1
- package/lib/modules/dialog/{components → dialogs}/widget/index.js +1 -1
- package/lib/modules/dialog/hooks/use-web-drag.d.ts +8 -0
- package/lib/modules/dialog/hooks/use-web-drag.js +73 -0
- package/lib/modules/dialog/hooks/useElectron.d.ts +2 -7
- package/lib/modules/dialog/hooks/useElectron.js +46 -156
- package/lib/modules/dialog/index.d.ts +4 -0
- package/lib/modules/dialog/index.js +4 -2
- package/lib/modules/dialog/level-config.d.ts +11 -0
- package/lib/modules/dialog/level-config.js +21 -0
- package/lib/modules/dialog/store.d.ts +15 -6
- package/lib/modules/dialog/store.js +40 -54
- package/lib/modules/dialog/type.d.ts +15 -12
- package/lib/modules/event-confirm/components/window/index.d.ts +1 -4
- package/lib/modules/event-confirm/components/window/index.js +34 -23
- package/lib/modules/event-confirm/index.d.ts +2 -0
- package/lib/modules/event-confirm/index.js +3 -2
- package/lib/modules/event-confirm/store.d.ts +9 -1
- package/lib/modules/event-confirm/store.js +24 -16
- package/lib/modules/event-confirm/view.js +11 -22
- package/lib/modules/event-sound/index.d.ts +2 -0
- package/lib/modules/event-sound/index.js +8 -1
- package/lib/modules/event-toast/index.css +10 -0
- package/lib/modules/event-toast/store.d.ts +1 -1
- package/lib/modules/event-toast/store.js +17 -15
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +4 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -1
- package/lib/modules/interpreter/store.d.ts +1 -0
- package/lib/modules/interpreter/store.js +12 -5
- package/lib/modules/interpreter/view.js +7 -1
- package/lib/modules/layout/components/Aside.js +4 -0
- package/lib/modules/layout/components/Carousel.js +3 -1
- package/lib/modules/layout/components/CommonVideoRenderer.d.ts +3 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +13 -9
- package/lib/modules/layout/components/Gallery.js +11 -3
- package/lib/modules/layout/index.css +1 -0
- package/lib/modules/layout/index.d.ts +2 -0
- package/lib/modules/layout/index.js +4 -3
- package/lib/modules/layout/store.d.ts +9 -5
- package/lib/modules/layout/store.js +38 -46
- package/lib/modules/participant/components/confirm-input/index.css +4 -0
- package/lib/modules/participant/components/confirm-input/index.d.ts +1 -0
- package/lib/modules/participant/components/confirm-input/index.js +2 -1
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +2 -1
- package/lib/modules/participant/components/participants/components/participants/index.js +11 -3
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +7 -3
- package/lib/modules/participant/components/participants/types.d.ts +1 -0
- package/lib/modules/participant/store.d.ts +2 -1
- package/lib/modules/participant/store.js +23 -9
- package/lib/modules/phone-audio-connect/store.d.ts +4 -4
- package/lib/modules/setting/audio-settings/audio-settings.js +6 -17
- package/lib/modules/setting/config.d.ts +16 -0
- package/lib/modules/setting/config.js +17 -1
- package/lib/modules/setting/index.d.ts +2 -4
- package/lib/modules/setting/index.js +7 -16
- package/lib/modules/setting/minutes-settings/minutes-settings.js +0 -4
- package/lib/modules/setting/state/index.js +5 -5
- package/lib/modules/setting/store.d.ts +37 -33
- package/lib/modules/setting/store.js +275 -261
- package/lib/modules/setting/translate-settings/language-select.js +0 -2
- package/lib/modules/setting/video-settings/video-settings-basic.js +6 -6
- package/lib/modules/setting/video-settings/video-settings.js +2 -2
- package/lib/modules/setting/view.js +1 -1
- package/lib/modules/share-screen/components/control-bar/index.css +75 -0
- package/lib/modules/share-screen/components/control-bar/index.d.ts +3 -0
- package/lib/modules/share-screen/components/control-bar/index.js +88 -0
- package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.d.ts +8 -0
- package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.js +46 -0
- package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.js +32 -0
- package/lib/modules/share-screen/components/selection/index.js +28 -14
- package/lib/modules/share-screen/components/share-scenario/index.d.ts +5 -0
- package/lib/modules/share-screen/components/share-scenario/index.js +47 -0
- package/lib/modules/share-screen/index.d.ts +4 -2
- package/lib/modules/share-screen/index.js +11 -2
- package/lib/modules/share-screen/store.d.ts +32 -11
- package/lib/modules/share-screen/store.js +273 -192
- package/lib/modules/share-screen/view.js +2 -2
- package/lib/modules/state-bar/index.js +2 -3
- package/lib/modules/state-bar/layout-config.d.ts +2 -4
- package/lib/modules/state-bar/layout-config.js +10 -5
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/store.d.ts +7 -7
- package/lib/modules/state-bar/store.js +17 -15
- package/lib/modules/state-bar/view.js +19 -23
- package/lib/modules/video-window/components/members/index.js +3 -2
- package/lib/modules/video-window/index.js +0 -3
- package/lib/modules/waiting-room-layout/index.css +3 -3
- package/lib/modules/waiting-room-layout/index.js +2 -2
- package/lib/modules/waiting-room-layout/view.js +1 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +2 -2
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +4 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +4 -4
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +0 -14
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +4 -155
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +4 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +37 -25
- package/lib/modules/whiteboard/components/toolbar/style.css +1 -0
- package/lib/modules/whiteboard/index.d.ts +3 -1
- package/lib/modules/whiteboard/index.js +26 -23
- package/lib/modules/widget/view.js +4 -0
- package/lib/providers/ability-provider.d.ts +2 -0
- package/lib/providers/annotation-provider.d.ts +43 -47
- package/lib/providers/annotation-provider.js +94 -142
- package/lib/providers/app-list-provider.d.ts +98 -0
- package/lib/providers/app-list-provider.js +251 -0
- package/lib/providers/device-provider.d.ts +31 -23
- package/lib/providers/device-provider.js +493 -444
- package/lib/providers/device-stream-provider.js +2 -2
- package/lib/providers/event-provider.d.ts +0 -4
- package/lib/providers/event-provider.js +0 -10
- package/lib/providers/interpreter-provider.js +10 -7
- package/lib/providers/privilege-provider.d.ts +1 -1
- package/lib/providers/privilege-provider.js +3 -2
- package/lib/providers/renderer-provider.d.ts +1 -0
- package/lib/providers/renderer-provider.js +7 -2
- package/lib/providers/room-provider.d.ts +3 -1
- package/lib/providers/room-provider.js +40 -14
- package/lib/providers/screen-share-provider.d.ts +73 -17
- package/lib/providers/screen-share-provider.js +222 -100
- package/lib/providers/sharing-provider.d.ts +0 -1
- package/lib/providers/sharing-provider.js +3 -9
- package/lib/providers/user-setting-storage-provider.d.ts +1 -0
- package/lib/providers/user-setting-storage-provider.js +5 -12
- package/lib/providers/widget-provider.d.ts +19 -0
- package/lib/providers/widget-provider.js +28 -2
- package/lib/runtime.d.ts +10 -1
- package/lib/scenes/main-scene.d.ts +12 -2
- package/lib/scenes/main-scene.js +54 -28
- package/lib/scenes/waiting-scene.d.ts +11 -0
- package/lib/scenes/waiting-scene.js +34 -8
- package/lib/schema.d.ts +6 -0
- package/lib/schema.js +5 -1
- package/lib/shared-data-source/annotation-data.d.ts +17 -0
- package/lib/shared-data-source/annotation-data.js +110 -0
- package/lib/shared-data-source/app-list-data.d.ts +34 -0
- package/lib/shared-data-source/app-list-data.js +133 -0
- package/lib/shared-data-source/config.d.ts +26 -7
- package/lib/shared-data-source/config.js +29 -11
- package/lib/shared-data-source/confirm-data.d.ts +25 -0
- package/lib/shared-data-source/confirm-data.js +97 -0
- package/lib/shared-data-source/interpreter.d.ts +1 -0
- package/lib/shared-data-source/layout-data.d.ts +2 -0
- package/lib/shared-data-source/layout-data.js +14 -3
- package/lib/shared-data-source/meeting-time.d.ts +23 -1
- package/lib/shared-data-source/meeting-time.js +160 -43
- package/lib/shared-data-source/member-data.d.ts +10 -9
- package/lib/shared-data-source/member-data.js +55 -48
- package/lib/shared-data-source/screen-share-data.d.ts +100 -17
- package/lib/shared-data-source/screen-share-data.js +142 -22
- package/lib/shared-data-source/setting.d.ts +36 -4
- package/lib/shared-data-source/setting.js +92 -57
- package/lib/shared-data-source/video-window.d.ts +3 -0
- package/lib/shared-data-source/video-window.js +52 -30
- package/lib/shared-data-source/waiting-room.js +4 -2
- package/lib/translations/enUS.d.ts +62 -7
- package/lib/translations/enUS.js +71 -14
- package/lib/translations/zhCN.d.ts +62 -7
- package/lib/translations/zhCN.js +73 -16
- package/lib/type.d.ts +23 -5
- package/lib/type.js +6 -2
- package/lib/ui-manager.d.ts +5 -16
- package/lib/ui-manager.js +15 -57
- package/lib/ui-scene.d.ts +31 -6
- package/lib/ui-scene.js +180 -169
- package/lib/utilities/constant.d.ts +67 -63
- package/lib/utilities/constant.js +65 -61
- package/lib/utilities/dialog-utils.d.ts +66 -0
- package/lib/utilities/dialog-utils.js +188 -0
- package/lib/utilities/logger.js +3 -3
- package/lib/utilities/meeting-detail.js +1 -1
- package/lib/utilities/parameters.d.ts +1 -0
- package/lib/utilities/parameters.js +5 -1
- package/lib/utilities/renderer-event.d.ts +1 -1
- package/lib/utilities/screen-capture-permission.d.ts +1 -0
- package/lib/utilities/screen-capture-permission.js +9 -1
- package/lib/utilities/tools.d.ts +0 -66
- package/lib/utilities/tools.js +9 -186
- package/package.json +5 -6
- package/public/index.html +11 -1
- package/lib/modules/action-bar/components/apps/app-list.d.ts +0 -3
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +0 -17
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -30
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +0 -10
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +0 -36
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +0 -14
- package/lib/modules/action-bar/components/apps/useInterpreter.js +0 -37
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +0 -16
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +0 -41
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +0 -10
- package/lib/modules/action-bar/components/apps/useWidgetList.js +0 -39
- package/lib/modules/annotation/components/control-bar/index.css +0 -48
- package/lib/modules/annotation/components/control-bar/index.d.ts +0 -3
- package/lib/modules/annotation/components/control-bar/index.js +0 -142
- package/lib/modules/annotation/components/toolbar/index.d.ts +0 -0
- package/lib/modules/annotation/components/toolbar/index.js +0 -1
- package/lib/modules/dialog/components/chat/electron.d.ts +0 -2
- package/lib/modules/dialog/components/chat/electron.js +0 -35
- package/lib/modules/dialog/components/chat/index.js +0 -67
- package/lib/modules/dialog/components/confirm-leave-meeting/index.d.ts +0 -6
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +0 -5
- package/lib/modules/dialog/components/connection-gateway/electron.js +0 -33
- package/lib/modules/dialog/components/device-setting/electron.d.ts +0 -2
- package/lib/modules/dialog/components/device-setting/electron.js +0 -37
- package/lib/modules/dialog/components/interpreter/electron.d.ts +0 -2
- package/lib/modules/dialog/components/interpreter/index.js +0 -33
- package/lib/modules/dialog/components/invite/index.d.ts +0 -3
- package/lib/modules/dialog/components/live-streaming/index.d.ts +0 -4
- package/lib/modules/dialog/components/participant/electron.d.ts +0 -2
- package/lib/modules/dialog/components/participant/electron.js +0 -35
- package/lib/modules/dialog/components/participant/index.d.ts +0 -2
- package/lib/modules/dialog/components/participant/index.js +0 -65
- package/lib/modules/dialog/components/pre-setting/electron.d.ts +0 -2
- package/lib/modules/dialog/components/pre-setting/electron.js +0 -51
- package/lib/modules/dialog/components/pre-setting/index.js +0 -38
- package/lib/modules/dialog/components/pre-setting-container/component/body.d.ts +0 -8
- package/lib/modules/dialog/components/pre-setting-container/component/body.js +0 -78
- package/lib/modules/dialog/components/pre-setting-container/index.css +0 -82
- package/lib/modules/dialog/components/pre-setting-container/index.d.ts +0 -18
- package/lib/modules/dialog/components/pre-setting-container/index.js +0 -116
- package/lib/modules/dialog/components/rename/index.js +0 -72
- package/lib/modules/dialog/dialogs.d.ts +0 -3
- package/lib/modules/dialog/dialogs.js +0 -28
- package/lib/utilities/setting-config-storage.d.ts +0 -18
- package/lib/utilities/setting-config-storage.js +0 -133
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.d.ts +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/app-item/index.css +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/app-item/index.js +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/confirm/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/confirm/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/control-bar/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/device-setting/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/device-setting/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/interpreter/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/interpreter/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/rename/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg1.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg2.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/fcr_png_host.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/toast/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/toast/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/video-window/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/whiteboard/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/widget/electron.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/widget/index.d.ts +0 -0
|
@@ -24,3 +24,13 @@
|
|
|
24
24
|
top: 0px;
|
|
25
25
|
z-index: 100;
|
|
26
26
|
}
|
|
27
|
+
|
|
28
|
+
.fcr-annotation-receiver-wrapper {
|
|
29
|
+
width: 100%;
|
|
30
|
+
position: absolute;
|
|
31
|
+
z-index: 10;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.fcr-annotation-receiver-wrapper:not(.fcr-annotation-receiver-wrapper--editing) * {
|
|
35
|
+
pointer-events: unset !important;
|
|
36
|
+
}
|
|
@@ -9,12 +9,12 @@ exports.Annotation = void 0;
|
|
|
9
9
|
var _mobxReact = require("mobx-react");
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
var _store = require("./store");
|
|
12
|
-
var _store2 = require("../whiteboard/components/toolbar/store");
|
|
13
|
-
var _toolbar = require("../whiteboard/components/toolbar");
|
|
14
12
|
require("./style.css");
|
|
15
13
|
require("./board-cursor.css");
|
|
16
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
15
|
var _enums = require("fcr-core/lib/room-control/whiteboard-control/enums");
|
|
16
|
+
var _annotationToolbarStore = require("./annotation-toolbar-store");
|
|
17
|
+
var _annotationIndex = require("./annotation-index");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
var Annotation = exports.Annotation = (0, _mobxReact.observer)(function () {
|
|
20
20
|
var _useContext = (0, _react.useContext)(_store.AnnotationStoreContext),
|
|
@@ -22,25 +22,23 @@ var Annotation = exports.Annotation = (0, _mobxReact.observer)(function () {
|
|
|
22
22
|
handleBoardContainerDomLoad = _useContext.handleBoardContainerDomLoad,
|
|
23
23
|
isShowToolbar = _useContext.isShowToolbar,
|
|
24
24
|
getToolbarStore = _useContext.getToolbarStore,
|
|
25
|
-
|
|
25
|
+
receiverAllOpenStateReady = _useContext.receiverAllOpenStateReady,
|
|
26
26
|
currentTool = _useContext.currentTool;
|
|
27
|
-
var cursorClassname =
|
|
28
|
-
var boardWidgetAppCls = (0, _classnames["default"])('netless-whiteboard-wrapper',
|
|
27
|
+
var cursorClassname = receiverAllOpenStateReady && isShowToolbar ? "board-widget-cursor-".concat([_enums.FcrBoardToolType[currentTool || _enums.FcrBoardToolType.NONE]]) : 'board-widget-cursor-normal';
|
|
28
|
+
var boardWidgetAppCls = (0, _classnames["default"])('fcr-annotation-receiver-wrapper', 'netless-whiteboard-wrapper', {
|
|
29
|
+
'fcr-annotation-receiver-wrapper--editing': isShowToolbar
|
|
30
|
+
}, cursorClassname.toLowerCase());
|
|
29
31
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
30
|
-
style: {
|
|
31
|
-
width: '100%',
|
|
32
|
-
position: 'absolute'
|
|
33
|
-
},
|
|
34
32
|
className: boardWidgetAppCls,
|
|
35
33
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
36
34
|
className: "annotation-container",
|
|
37
35
|
ref: handleBoardContainerDomLoad,
|
|
38
|
-
children:
|
|
36
|
+
children: receiverAllOpenStateReady ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_annotationToolbarStore.AnnotationReceiverToolbarContext.Provider, {
|
|
39
37
|
value: getToolbarStore(),
|
|
40
38
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
41
39
|
className: "annotation-main",
|
|
42
40
|
ref: handleBoardDomLoad
|
|
43
|
-
}), isShowToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
41
|
+
}), isShowToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_annotationIndex.Toolbar, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
44
42
|
className: "annotation-action-prevent"
|
|
45
43
|
})]
|
|
46
44
|
}) : null
|
|
@@ -149,7 +149,8 @@ var ChatRoomStore = exports.ChatRoomStore = /*#__PURE__*/function () {
|
|
|
149
149
|
userName: (0, _i18n.transI18n)('fmt_chat_tips_selecthost'),
|
|
150
150
|
userRole: _type2.FcrUserRole.ROBOT,
|
|
151
151
|
connectorType: _fcrCore.FcrRoomConnectorType.NONE,
|
|
152
|
-
platform: _type2.FcrPlatform.UNSUPPORTED
|
|
152
|
+
platform: _type2.FcrPlatform.UNSUPPORTED,
|
|
153
|
+
avatar: ''
|
|
153
154
|
});
|
|
154
155
|
_classPrivateFieldInitSpec(this, _A, _init__userInfo(this));
|
|
155
156
|
_classPrivateFieldInitSpec(this, _B, _init_needRecomputeRowIdMap(this, new Map()));
|
|
@@ -432,6 +433,7 @@ var ChatRoomStore = exports.ChatRoomStore = /*#__PURE__*/function () {
|
|
|
432
433
|
userId = _message$from.userId,
|
|
433
434
|
userName = _message$from.userName,
|
|
434
435
|
userRole = _message$from.userRole,
|
|
436
|
+
avatar = _message$from.avatar,
|
|
435
437
|
type = message.type,
|
|
436
438
|
timestamp = message.timestamp,
|
|
437
439
|
isPrivate = message.isPrivate;
|
|
@@ -459,7 +461,8 @@ var ChatRoomStore = exports.ChatRoomStore = /*#__PURE__*/function () {
|
|
|
459
461
|
nickName: userName,
|
|
460
462
|
uid: userId,
|
|
461
463
|
isPrivate: isPrivate,
|
|
462
|
-
target: target || (isPrivate ? (0, _i18n.transI18n)('fmt_participant_label_Me') : 'All')
|
|
464
|
+
target: target || (isPrivate ? (0, _i18n.transI18n)('fmt_participant_label_Me') : 'All'),
|
|
465
|
+
avatar: avatar
|
|
463
466
|
}, type === _type.FcrChatRoomMessageType.Text ? {
|
|
464
467
|
msg: message.content
|
|
465
468
|
} : {
|
|
@@ -39,7 +39,7 @@ var ChatSelect = exports.ChatSelect = (0, _mobxReact.observer)(function (_ref) {
|
|
|
39
39
|
(_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.recomputeGridSize();
|
|
40
40
|
}, [selectedUid]);
|
|
41
41
|
var filterUsers = users.filter(function (user) {
|
|
42
|
-
return user.userName.includes(filterKey);
|
|
42
|
+
return user.userName.toLowerCase().includes(filterKey.toLowerCase());
|
|
43
43
|
});
|
|
44
44
|
var listHeight = 0;
|
|
45
45
|
if (filterUsers.length < 5) {
|
|
@@ -74,7 +74,8 @@ var _default = exports["default"] = (0, _mobxReact.observer)(function (props) {
|
|
|
74
74
|
isShowFirstLetter: true,
|
|
75
75
|
size: 32,
|
|
76
76
|
nickName: currentUser.userName === _types.USER_ALL ? t('fmt_chat_option_all') : currentUser.userName,
|
|
77
|
-
textSize: 14
|
|
77
|
+
textSize: 14,
|
|
78
|
+
avatarImage: currentUser.avatar
|
|
78
79
|
})
|
|
79
80
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
80
81
|
className: "candidate",
|
|
@@ -125,8 +126,12 @@ function highlightMatches(str, matchStr) {
|
|
|
125
126
|
isHighlight: false
|
|
126
127
|
}];
|
|
127
128
|
}
|
|
129
|
+
|
|
130
|
+
// 转换为小写进行匹配,但保留原始字符串用于显示
|
|
131
|
+
var lowerStr = str.toLowerCase();
|
|
132
|
+
var lowerMatchStr = matchStr.toLowerCase();
|
|
128
133
|
while (start < str.length) {
|
|
129
|
-
var matchStart =
|
|
134
|
+
var matchStart = lowerStr.indexOf(lowerMatchStr, start);
|
|
130
135
|
if (matchStart === -1) {
|
|
131
136
|
result.push({
|
|
132
137
|
data: str.slice(start),
|
|
@@ -140,8 +145,10 @@ function highlightMatches(str, matchStr) {
|
|
|
140
145
|
isHighlight: false
|
|
141
146
|
});
|
|
142
147
|
}
|
|
148
|
+
|
|
149
|
+
// 使用原始字符串中对应位置的文本进行高亮
|
|
143
150
|
result.push({
|
|
144
|
-
data:
|
|
151
|
+
data: str.slice(matchStart, matchStart + matchLen),
|
|
145
152
|
isHighlight: true
|
|
146
153
|
});
|
|
147
154
|
start = matchStart + matchLen;
|
|
@@ -76,7 +76,8 @@ var _default = exports["default"] = (0, _mobxReact.observer)(function (props) {
|
|
|
76
76
|
publisherUid = datum.uid,
|
|
77
77
|
isPrivate = datum.isPrivate,
|
|
78
78
|
targetNickname = datum.target,
|
|
79
|
-
chatLevel = datum.chatLevel
|
|
79
|
+
chatLevel = datum.chatLevel,
|
|
80
|
+
avatar = datum.avatar;
|
|
80
81
|
var arr = messageList;
|
|
81
82
|
var idx = index;
|
|
82
83
|
var systemMsg = datum.systemMsg;
|
|
@@ -206,7 +207,8 @@ var _default = exports["default"] = (0, _mobxReact.observer)(function (props) {
|
|
|
206
207
|
avatar: publisherUid !== localUserId ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
207
208
|
size: 24,
|
|
208
209
|
textSize: 24,
|
|
209
|
-
nickName: publisherNickName
|
|
210
|
+
nickName: publisherNickName,
|
|
211
|
+
avatarImage: avatar
|
|
210
212
|
}) : null,
|
|
211
213
|
publisherIsSelf: publisherIsSelf,
|
|
212
214
|
targetIsSelf: isPrivate,
|
|
@@ -8,6 +8,7 @@ import { FcrUIChatProvider } from '../../providers/chat-provider';
|
|
|
8
8
|
import { FcrUISharedLayoutDataSource } from '../../shared-data-source/layout-data';
|
|
9
9
|
import { FcrUISharedWaitingRoomDataSource } from '../../shared-data-source/waiting-room';
|
|
10
10
|
import { FcrUISharedChatDataSource } from '../../shared-data-source/chat-data';
|
|
11
|
+
import { FcrUIMessageProvider } from '../../providers/message-provider';
|
|
11
12
|
export { CHAT_WRAPPER_CLASS };
|
|
12
13
|
export declare class ChatUIModule extends UIModule {
|
|
13
14
|
private _store?;
|
|
@@ -21,6 +22,7 @@ export declare class ChatUIModule extends UIModule {
|
|
|
21
22
|
sharedLayoutDataSource?: FcrUISharedLayoutDataSource;
|
|
22
23
|
sharedWaitingRoomDataSource?: FcrUISharedWaitingRoomDataSource;
|
|
23
24
|
sharedChatDataSource?: FcrUISharedChatDataSource;
|
|
25
|
+
messageProvider?: FcrUIMessageProvider;
|
|
24
26
|
onNodeWillActive(): void;
|
|
25
27
|
onNodeWillInactive(): void;
|
|
26
28
|
getComponent(params?: {
|
|
@@ -168,7 +168,7 @@ var ChatUIModule = exports.ChatUIModule = /*#__PURE__*/function (_UIModule) {
|
|
|
168
168
|
key: "sendMessage",
|
|
169
169
|
value: function () {
|
|
170
170
|
var _sendMessage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(msg, type) {
|
|
171
|
-
var _chatRoomStores$activ, _chatRoomStores$activ2, _reason, _t;
|
|
171
|
+
var _chatRoomStores$activ, _chatRoomStores$activ2, _reason, _this$messageProvider, _t;
|
|
172
172
|
return _regenerator["default"].wrap(function (_context) {
|
|
173
173
|
while (1) switch (_context.prev = _context.next) {
|
|
174
174
|
case 0:
|
|
@@ -176,11 +176,21 @@ var ChatUIModule = exports.ChatUIModule = /*#__PURE__*/function (_UIModule) {
|
|
|
176
176
|
_context.next = 1;
|
|
177
177
|
return (_chatRoomStores$activ = this._store.chatRoomStores[this._store.activeTabIndex]) === null || _chatRoomStores$activ === void 0 ? void 0 : _chatRoomStores$activ.sendMessage(msg, type);
|
|
178
178
|
case 1:
|
|
179
|
-
_context.next =
|
|
179
|
+
_context.next = 4;
|
|
180
180
|
break;
|
|
181
181
|
case 2:
|
|
182
182
|
_context.prev = 2;
|
|
183
183
|
_t = _context["catch"](0);
|
|
184
|
+
if (!(_t.error_code === 'MODERATION_001')) {
|
|
185
|
+
_context.next = 3;
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
(_this$messageProvider = this.messageProvider) === null || _this$messageProvider === void 0 || _this$messageProvider.showToast({
|
|
189
|
+
type: 'error',
|
|
190
|
+
message: (0, _i18n.transI18n)('fmt_chat_toast_infraction_error')
|
|
191
|
+
});
|
|
192
|
+
return _context.abrupt("return");
|
|
193
|
+
case 3:
|
|
184
194
|
(_chatRoomStores$activ2 = this._store.chatRoomStores[this._store.activeTabIndex]) === null || _chatRoomStores$activ2 === void 0 || _chatRoomStores$activ2.handleToast({
|
|
185
195
|
id: 'send-msg',
|
|
186
196
|
toastProps: {
|
|
@@ -189,7 +199,7 @@ var ChatUIModule = exports.ChatUIModule = /*#__PURE__*/function (_UIModule) {
|
|
|
189
199
|
size: 'small'
|
|
190
200
|
}
|
|
191
201
|
});
|
|
192
|
-
case
|
|
202
|
+
case 4:
|
|
193
203
|
case "end":
|
|
194
204
|
return _context.stop();
|
|
195
205
|
}
|
|
@@ -20,6 +20,8 @@ export default class ChatStore {
|
|
|
20
20
|
private _sharedLayoutDataSource;
|
|
21
21
|
private _sharedChatDataSource;
|
|
22
22
|
private _sharedWaitingRoomDataSource;
|
|
23
|
+
private _roomControl;
|
|
24
|
+
private _isMainRoom;
|
|
23
25
|
accessor chatRoomStores: ChatRoomStoreMap;
|
|
24
26
|
accessor activeTabIndex: FcrUIRoomType;
|
|
25
27
|
accessor copyMap: Map<number, boolean>;
|
|
@@ -37,6 +39,7 @@ export default class ChatStore {
|
|
|
37
39
|
sharedWaitingRoomDataSource: FcrUISharedWaitingRoomDataSource;
|
|
38
40
|
sharedChatDataSource: FcrUISharedChatDataSource;
|
|
39
41
|
});
|
|
42
|
+
get isMainRoom(): boolean;
|
|
40
43
|
hasWaitingRoomPermission(): boolean;
|
|
41
44
|
private _handleReceiveMessage;
|
|
42
45
|
handlerActiveTab(key: FcrUIRoomType): void;
|
|
@@ -85,8 +85,7 @@ _ref = (_handleReceiveMessageDecs = [_mobx.action, _mobx.action.bound], _handler
|
|
|
85
85
|
var ChatStore = exports["default"] = /*#__PURE__*/function () {
|
|
86
86
|
function ChatStore(_ref2) {
|
|
87
87
|
var _this = this,
|
|
88
|
-
_roomControl$getRoomI
|
|
89
|
-
_roomControl$getRoomI2;
|
|
88
|
+
_roomControl$getRoomI;
|
|
90
89
|
var chatRoomControl = _ref2.chatRoomControl,
|
|
91
90
|
userControl = _ref2.userControl,
|
|
92
91
|
uiEventStore = _ref2.uiEventStore,
|
|
@@ -110,6 +109,7 @@ var ChatStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
110
109
|
this._sharedLayoutDataSource = sharedLayoutDataSource;
|
|
111
110
|
this._sharedWaitingRoomDataSource = sharedWaitingRoomDataSource;
|
|
112
111
|
this._sharedChatDataSource = sharedChatDataSource;
|
|
112
|
+
this._roomControl = roomControl;
|
|
113
113
|
var roomObserver = {
|
|
114
114
|
onJoinWaitingRoom: function onJoinWaitingRoom(room) {
|
|
115
115
|
var userControl = room.getUserControl();
|
|
@@ -134,13 +134,14 @@ var ChatStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
134
134
|
var chatStoreObserver = {
|
|
135
135
|
onReceiveMessage: this._handleReceiveMessage
|
|
136
136
|
};
|
|
137
|
-
|
|
137
|
+
var isMainRoom = ((_roomControl$getRoomI = roomControl.getRoomInfo()) === null || _roomControl$getRoomI === void 0 ? void 0 : _roomControl$getRoomI.roomType) === _type2.FcrRoomType.Mainroom;
|
|
138
|
+
if (isMainRoom) {
|
|
138
139
|
roomProvider.addObserver(roomObserver);
|
|
139
140
|
}
|
|
140
141
|
this._observable.addObserver(chatStoreObserver);
|
|
141
|
-
|
|
142
|
-
var type =
|
|
143
|
-
this.activeTabIndex =
|
|
142
|
+
this._isMainRoom = isMainRoom;
|
|
143
|
+
var type = isMainRoom ? _type3.FcrUIRoomType.MAIN_ROOM : _type3.FcrUIRoomType.WAITING_ROOM;
|
|
144
|
+
this.activeTabIndex = isMainRoom ? _type3.FcrUIRoomType.MAIN_ROOM : _type3.FcrUIRoomType.WAITING_ROOM;
|
|
144
145
|
this.chatRoomStores[type] = new _chatRoomStore.ChatRoomStore({
|
|
145
146
|
chatRoomControl: chatRoomControl,
|
|
146
147
|
userControl: userControl,
|
|
@@ -196,6 +197,11 @@ var ChatStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
196
197
|
set: function set(v) {
|
|
197
198
|
_classPrivateFieldSet(_C, this, v);
|
|
198
199
|
}
|
|
200
|
+
}, {
|
|
201
|
+
key: "isMainRoom",
|
|
202
|
+
get: function get() {
|
|
203
|
+
return this._isMainRoom;
|
|
204
|
+
}
|
|
199
205
|
}, {
|
|
200
206
|
key: "hasWaitingRoomPermission",
|
|
201
207
|
value: function hasWaitingRoomPermission() {
|
package/lib/modules/chat/util.js
CHANGED
|
@@ -9,6 +9,7 @@ require("core-js/modules/es.array.concat.js");
|
|
|
9
9
|
require("core-js/modules/es.array.slice.js");
|
|
10
10
|
require("core-js/modules/es.date.to-string.js");
|
|
11
11
|
var _type = require("../../type");
|
|
12
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
12
13
|
var handleMessageTime = exports.handleMessageTime = function handleMessageTime(time) {
|
|
13
14
|
if (typeof time === 'string') {
|
|
14
15
|
return time;
|
|
@@ -21,7 +22,7 @@ var handleMessageTime = exports.handleMessageTime = function handleMessageTime(t
|
|
|
21
22
|
var day = date.getDate();
|
|
22
23
|
var hour = date.getHours();
|
|
23
24
|
var minute = date.getMinutes();
|
|
24
|
-
var amOrPm = hour >= 12 ? '
|
|
25
|
+
var amOrPm = hour >= 12 ? (0, _i18n.transI18n)('fmt_chat_label_pm') : (0, _i18n.transI18n)('fmt_chat_label_am');
|
|
25
26
|
var hh = hour % 12;
|
|
26
27
|
var mm = minute < 10 ? '0' + minute : minute;
|
|
27
28
|
if (year === nowYear) {
|
package/lib/modules/chat/view.js
CHANGED
|
@@ -65,13 +65,15 @@ var Chat = exports.Chat = (0, _mobxReact.observer)(function (_ref) {
|
|
|
65
65
|
chatRoomStores = _useContext.chatRoomStores,
|
|
66
66
|
activeTabIndex = _useContext.activeTabIndex,
|
|
67
67
|
copyMap = _useContext.copyMap,
|
|
68
|
-
clearCopyMap = _useContext.clearCopyMap
|
|
68
|
+
clearCopyMap = _useContext.clearCopyMap,
|
|
69
|
+
isMainRoom = _useContext.isMainRoom;
|
|
69
70
|
var defaultProps = {
|
|
70
71
|
errorMsg: t('fmt_chat_tips_exceedlimit'),
|
|
71
72
|
forbiddenTxt: t('fmt_chat_button_muteall'),
|
|
72
73
|
styles: {
|
|
73
74
|
display: 'flex',
|
|
74
|
-
height: (_chatRoomStores$FcrUI = chatRoomStores[_type.FcrUIRoomType.WAITING_ROOM]) !== null && _chatRoomStores$FcrUI !== void 0 && _chatRoomStores$FcrUI.userCount || 0 > 0 ? 'calc(100% - 34px)' : '100%'
|
|
75
|
+
height: ((_chatRoomStores$FcrUI = chatRoomStores[_type.FcrUIRoomType.WAITING_ROOM]) !== null && _chatRoomStores$FcrUI !== void 0 && _chatRoomStores$FcrUI.userCount || 0 > 0) && isMainRoom ? 'calc(100% - 34px)' : '100%',
|
|
76
|
+
width: '100%'
|
|
75
77
|
}
|
|
76
78
|
};
|
|
77
79
|
var styles = defaultProps.styles,
|
|
@@ -111,7 +113,8 @@ var Chat = exports.Chat = (0, _mobxReact.observer)(function (_ref) {
|
|
|
111
113
|
userName: t('fmt_chat_option_all'),
|
|
112
114
|
userRole: _type.FcrUserRole.ROBOT,
|
|
113
115
|
connectorType: _fcrCore.FcrRoomConnectorType.NONE,
|
|
114
|
-
platform: _type2.FcrPlatform.WEB_DESKTOP
|
|
116
|
+
platform: _type2.FcrPlatform.WEB_DESKTOP,
|
|
117
|
+
avatar: ''
|
|
115
118
|
});
|
|
116
119
|
}
|
|
117
120
|
users = users.filter(function (user) {
|
|
@@ -25,17 +25,15 @@ require("core-js/modules/esnext.iterator.constructor.js");
|
|
|
25
25
|
require("core-js/modules/esnext.iterator.map.js");
|
|
26
26
|
var _mobxReact = require("mobx-react");
|
|
27
27
|
var _appItem = require("./app-item");
|
|
28
|
-
var _useAppItemOptions = _interopRequireDefault(require("./useAppItemOptions"));
|
|
29
28
|
require("./index.css");
|
|
30
29
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
30
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32
31
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33
32
|
var AppList = exports.AppList = (0, _mobxReact.observer)(function (props) {
|
|
34
|
-
var
|
|
35
|
-
var options = (0, _useAppItemOptions["default"])(onAppClick);
|
|
33
|
+
var appItemProps = props.appItemProps;
|
|
36
34
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
37
35
|
className: "action-bar-apps-container",
|
|
38
|
-
children:
|
|
36
|
+
children: appItemProps.map(function (config) {
|
|
39
37
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_appItem.Appitem, _objectSpread({}, config), config.name);
|
|
40
38
|
})
|
|
41
39
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FcrIconProps } from 'agora-ui-foundation/lib/components/icon';
|
|
2
|
+
import { ToolTipProps } from 'agora-ui-foundation/lib/components/tooltip';
|
|
3
|
+
import { MouseEventHandler } from 'react';
|
|
4
|
+
export interface AppListProps {
|
|
5
|
+
appItemProps: AppItemProps[];
|
|
6
|
+
}
|
|
7
|
+
export interface AppItemProps {
|
|
8
|
+
name: string;
|
|
9
|
+
onClick: MouseEventHandler<HTMLDivElement>;
|
|
10
|
+
fcrToolTipProps?: ToolTipProps;
|
|
11
|
+
fcrIconProps?: FcrIconProps;
|
|
12
|
+
permission: boolean;
|
|
13
|
+
imgSrc?: string;
|
|
14
|
+
}
|
|
@@ -11,26 +11,26 @@ var _hooks = _interopRequireDefault(require("../../hooks"));
|
|
|
11
11
|
var _mobxReact = require("mobx-react");
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
14
|
-
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
15
14
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
16
15
|
var _popover = require("agora-ui-foundation/lib/components/popover");
|
|
17
16
|
var _videoMenu = _interopRequireDefault(require("../video-menu"));
|
|
18
17
|
var _store = require("../../store");
|
|
18
|
+
var _view = require("../../../../control-bar/view");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
var CameraControl = exports.CameraControl = (0, _mobxReact.observer)(function (props) {
|
|
21
21
|
var _props$showTitle = props.showTitle,
|
|
22
22
|
showTitle = _props$showTitle === void 0 ? true : _props$showTitle;
|
|
23
|
+
var _useContext = (0, _react.useContext)(_view.ControlbarContext),
|
|
24
|
+
browserWindow = _useContext.browserWindow;
|
|
23
25
|
var transI18n = (0, _i18n.useI18n)();
|
|
24
|
-
var
|
|
25
|
-
cameraEnabled =
|
|
26
|
-
enableCamera =
|
|
27
|
-
cameraList =
|
|
28
|
-
checkMediaPermission =
|
|
26
|
+
var _useContext2 = (0, _react.useContext)(_store.DeviceControlStoreContext),
|
|
27
|
+
cameraEnabled = _useContext2.cameraEnabled,
|
|
28
|
+
enableCamera = _useContext2.enableCamera,
|
|
29
|
+
cameraList = _useContext2.cameraList,
|
|
30
|
+
checkMediaPermission = _useContext2.checkMediaPermission;
|
|
29
31
|
var _useDeviceTooltipVisi = (0, _hooks["default"])(),
|
|
30
|
-
tooltipVisible = _useDeviceTooltipVisi.tooltipVisible,
|
|
31
32
|
popoverOpened = _useDeviceTooltipVisi.popoverOpened,
|
|
32
33
|
handlePopoverVisibleChanged = _useDeviceTooltipVisi.handlePopoverVisibleChanged,
|
|
33
|
-
handleTooltipVisibleChanged = _useDeviceTooltipVisi.handleTooltipVisibleChanged,
|
|
34
34
|
setPopoverOpened = _useDeviceTooltipVisi.setPopoverOpened;
|
|
35
35
|
var muteColor = {
|
|
36
36
|
iconPrimary: cameraEnabled ? "var(--fcr_web_ui_scene_mainicon1)" : 'var(--fcr_ui_scene_ramp_red6)',
|
|
@@ -38,73 +38,76 @@ var CameraControl = exports.CameraControl = (0, _mobxReact.observer)(function (p
|
|
|
38
38
|
};
|
|
39
39
|
var icon = cameraEnabled ? _type.FcrIconType.FCR_CAMERA : _type.FcrIconType.FCR_CAMERAOFF;
|
|
40
40
|
var title = cameraEnabled ? transI18n('fmt_toolbar_label_camera') : transI18n('fmt_toolbar_options_enablecamera');
|
|
41
|
-
var tooltip = title;
|
|
42
41
|
var noCam = cameraList.length === 0;
|
|
43
42
|
var noCamColor = {
|
|
44
43
|
iconPrimary: "var(--fcr_web_ui_scene_mainicon1)",
|
|
45
44
|
iconSecondary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
46
45
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
46
|
+
var handleBlur = function handleBlur() {
|
|
47
|
+
setPopoverOpened(false);
|
|
48
|
+
handlePopoverVisibleChanged(false);
|
|
49
|
+
};
|
|
50
|
+
(0, _react.useEffect)(function () {
|
|
51
|
+
browserWindow === null || browserWindow === void 0 || browserWindow.on('blur', handleBlur);
|
|
52
|
+
return function () {
|
|
53
|
+
browserWindow === null || browserWindow === void 0 || browserWindow.off('blur', handleBlur);
|
|
54
|
+
};
|
|
55
|
+
}, [popoverOpened]);
|
|
56
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
57
|
+
className: "device-control-item-wrapper",
|
|
58
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
59
|
+
className: "device-control ".concat(popoverOpened ? 'active' : ''),
|
|
60
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
61
|
+
className: "device-control-inner",
|
|
62
|
+
children: !noCam ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
63
|
+
onClick: function onClick() {
|
|
64
|
+
enableCamera(!cameraEnabled);
|
|
65
|
+
},
|
|
66
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
67
|
+
type: icon,
|
|
68
|
+
colors: muteColor,
|
|
69
|
+
size: 32
|
|
70
|
+
}), showTitle && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
71
|
+
className: "device-control-text",
|
|
72
|
+
children: title
|
|
73
|
+
})]
|
|
74
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
75
|
+
onClick: function onClick() {
|
|
76
|
+
return checkMediaPermission('camera');
|
|
77
|
+
},
|
|
78
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
79
|
+
type: _type.FcrIconType.FCR_CAMERACRASH,
|
|
80
|
+
colors: noCamColor,
|
|
81
|
+
size: 32
|
|
82
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
83
|
+
className: "device-control-text",
|
|
84
|
+
children: transI18n('fmt_internalsetting_status_nodevice')
|
|
85
|
+
})]
|
|
86
|
+
})
|
|
87
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
88
|
+
showArrow: false,
|
|
89
|
+
visible: popoverOpened,
|
|
90
|
+
onVisibleChange: handlePopoverVisibleChanged,
|
|
91
|
+
overlayClassName: "device-control--device-popover",
|
|
92
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_videoMenu["default"], {
|
|
93
|
+
setPopoverOpened: setPopoverOpened,
|
|
94
|
+
onMoreClick: function onMoreClick() {}
|
|
95
|
+
}),
|
|
96
|
+
trigger: "click",
|
|
97
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
98
|
+
onClick: function onClick(e) {
|
|
99
|
+
e.stopPropagation();
|
|
100
|
+
},
|
|
101
|
+
className: "device-control-extra ".concat(popoverOpened ? 'active' : ''),
|
|
102
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
103
|
+
type: _type.FcrIconType.FCR_DROPUP4,
|
|
104
|
+
colors: {
|
|
105
|
+
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
96
106
|
},
|
|
97
|
-
|
|
98
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
99
|
-
type: _type.FcrIconType.FCR_DROPUP4,
|
|
100
|
-
colors: {
|
|
101
|
-
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
102
|
-
},
|
|
103
|
-
size: 24
|
|
104
|
-
})
|
|
107
|
+
size: 24
|
|
105
108
|
})
|
|
106
|
-
})
|
|
107
|
-
})
|
|
109
|
+
})
|
|
110
|
+
})]
|
|
108
111
|
})
|
|
109
112
|
});
|
|
110
113
|
});
|