fcr-ui-scene 3.5.1 → 3.6.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 +14 -0
- package/lib/creator.js +239 -14
- package/lib/electron/app.js +0 -21
- package/lib/electron/bootstrap-sdk.js +136 -7
- package/lib/electron/injections.d.ts +19 -7
- package/lib/electron/injections.js +206 -77
- package/lib/electron/ipc/ipc.d.ts +26 -0
- package/lib/electron/ipc/ipc.js +137 -0
- package/lib/electron/ipc/type.d.ts +11 -0
- package/lib/electron/ipc/type.js +19 -0
- package/lib/electron/logger.js +1 -1
- package/lib/electron/main.js +1 -1
- package/lib/electron/plugins/meeting-state.d.ts +1 -0
- package/lib/electron/plugins/meeting-state.js +3 -3
- package/lib/electron/plugins/screenshot.js +2 -2
- package/lib/electron/preload.js +67 -5
- package/lib/electron/window.js +0 -2
- package/lib/global.css +21 -0
- package/lib/modules/action-bar/components/apps/index.js +1 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.js +1 -1
- package/lib/modules/action-bar/components/item/index.d.ts +2 -0
- package/lib/modules/action-bar/components/item/index.js +4 -2
- package/lib/modules/action-bar/components/leave/index.js +1 -0
- package/lib/modules/action-bar/components/more/index.js +1 -0
- package/lib/modules/action-bar/components/record/index.js +43 -106
- package/lib/modules/action-bar/components/record/popover.d.ts +4 -0
- package/lib/modules/action-bar/components/record/popover.js +57 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.js +1 -0
- package/lib/modules/action-bar/components/screen-share/index.js +15 -3
- package/lib/modules/action-bar/components/screen-share/submenu.js +2 -2
- package/lib/modules/action-bar/components/security/index.js +2 -1
- package/lib/modules/action-bar/components/smaller/index.js +1 -1
- package/lib/modules/action-bar/components/trigger-output-language/index.js +17 -22
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +2 -1
- package/lib/modules/action-bar/index.css +3 -2
- package/lib/modules/action-bar/index.js +2 -1
- package/lib/modules/action-bar/store.d.ts +5 -0
- package/lib/modules/action-bar/store.js +30 -12
- package/lib/modules/action-bar/types.d.ts +1 -0
- package/lib/modules/chat/chat-room-store.js +1 -1
- package/lib/modules/chat/components/chat-bar/index.d.ts +1 -1
- package/lib/modules/chat/components/chat-bar/index.js +5 -3
- package/lib/modules/chat/components/chat-select/select-item/index.js +1 -1
- package/lib/modules/chat/components/message-list/index.js +1 -2
- package/lib/modules/chat/components/message-list/message-item/index.d.ts +0 -1
- package/lib/modules/chat/components/message-list/message-item/index.js +9 -10
- package/lib/modules/chat/index.css +24 -0
- package/lib/modules/chat/view.js +13 -3
- package/lib/modules/components/device-control/components/carmera/index.js +4 -5
- package/lib/modules/components/device-control/components/microphone/index.js +4 -5
- package/lib/modules/components/device-control/index.css +6 -3
- package/lib/modules/components/leave-meeting/components/assign-host.js +26 -4
- package/lib/modules/components/leave-meeting/components/index.css +35 -0
- package/lib/modules/components/leave-meeting/index.js +1 -0
- package/lib/modules/components/leave-meeting/store.js +25 -67
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +3 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +1 -1
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +10 -9
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -2
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +1 -1
- package/lib/modules/components/member-window/components/member-actions/index.js +2 -2
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +3 -14
- package/lib/modules/components/member-window/index.css +18 -7
- package/lib/modules/components/member-window/types.d.ts +1 -1
- package/lib/modules/components/security-menu/index.css +2 -2
- package/lib/modules/components/security-menu/index.js +80 -28
- package/lib/modules/components/tab-frame/index.css +1 -1
- package/lib/modules/control-bar/components/meeting-details/index.css +1 -1
- package/lib/modules/control-bar/components/meeting-details/index.js +15 -9
- package/lib/modules/control-bar/components/more-actions/index.js +3 -21
- package/lib/modules/control-bar/components/share-state-nav/index.js +4 -20
- package/lib/modules/control-bar/index.d.ts +2 -0
- package/lib/modules/control-bar/index.js +3 -1
- package/lib/modules/control-bar/store.d.ts +11 -2
- package/lib/modules/control-bar/store.js +103 -95
- package/lib/modules/control-bar/view.js +1 -6
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -3
- package/lib/modules/dialog/components/chat/index.js +24 -17
- package/lib/modules/dialog/components/confirm-leave-meeting/index.d.ts +6 -0
- package/lib/modules/dialog/components/confirm-leave-meeting/index.js +86 -0
- package/lib/modules/dialog/components/control-bar/index.d.ts +1 -2
- package/lib/modules/dialog/components/control-bar/index.js +5 -17
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +4 -2
- package/lib/modules/dialog/components/dialog-container/index.css +2 -1
- package/lib/modules/dialog/components/dialog-container/index.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/index.js +3 -1
- package/lib/modules/dialog/components/participant/index.d.ts +0 -1
- package/lib/modules/dialog/components/participant/index.js +15 -24
- package/lib/modules/dialog/components/pre-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/pre-setting/electron.js +51 -0
- package/lib/modules/dialog/components/pre-setting/index.css +26 -0
- package/lib/modules/dialog/components/pre-setting/index.d.ts +6 -0
- package/lib/modules/dialog/components/pre-setting/index.js +38 -0
- package/lib/modules/dialog/components/pre-setting-container/component/body.d.ts +8 -0
- package/lib/modules/dialog/components/pre-setting-container/component/body.js +80 -0
- package/lib/modules/dialog/components/pre-setting-container/index.css +82 -0
- package/lib/modules/dialog/components/pre-setting-container/index.d.ts +18 -0
- package/lib/modules/dialog/components/pre-setting-container/index.js +117 -0
- package/lib/modules/dialog/components/rename/index.d.ts +4 -0
- package/lib/modules/dialog/components/rename/index.js +72 -0
- package/lib/modules/dialog/components/video-window/index.js +18 -16
- package/lib/modules/dialog/components/widget/electron.d.ts +2 -1
- package/lib/modules/dialog/components/widget/electron.js +3 -2
- package/lib/modules/dialog/components/widget/index.d.ts +2 -1
- package/lib/modules/dialog/components/widget/index.js +4 -6
- package/lib/modules/dialog/dialogs.d.ts +1 -0
- package/lib/modules/dialog/dialogs.js +3 -2
- package/lib/modules/dialog/hooks/useElectron.d.ts +2 -0
- package/lib/modules/dialog/hooks/useElectron.js +11 -13
- package/lib/modules/dialog/index.d.ts +2 -0
- package/lib/modules/dialog/index.js +2 -1
- package/lib/modules/dialog/store.d.ts +8 -3
- package/lib/modules/dialog/store.js +38 -26
- package/lib/modules/dialog/type.d.ts +1 -0
- package/lib/modules/dialog/view.js +2 -1
- package/lib/modules/event-confirm/index.d.ts +2 -0
- package/lib/modules/event-confirm/index.js +2 -1
- package/lib/modules/event-confirm/store.d.ts +9 -1
- package/lib/modules/event-confirm/store.js +94 -8
- package/lib/modules/event-confirm/view.js +55 -46
- package/lib/modules/{sound-effect → event-sound}/index.d.ts +3 -2
- package/lib/modules/{sound-effect → event-sound}/index.js +9 -5
- package/lib/modules/event-toast/store.js +2 -0
- package/lib/modules/interpreter/dialog-content/index.js +4 -1
- package/lib/modules/interpreter/index.d.ts +2 -0
- package/lib/modules/interpreter/index.js +2 -1
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -0
- package/lib/modules/interpreter/store.d.ts +2 -2
- package/lib/modules/interpreter/store.js +30 -24
- package/lib/modules/interpreter/type.d.ts +2 -0
- package/lib/modules/invite/components/pstn-invite.js +3 -9
- package/lib/modules/invite/components/voip-invite.css +26 -0
- package/lib/modules/invite/components/voip-invite.d.ts +1 -0
- package/lib/modules/invite/components/voip-invite.js +8 -11
- package/lib/modules/invite/index.css +16 -3
- package/lib/modules/invite/index.d.ts +2 -1
- package/lib/modules/invite/index.js +2 -1
- package/lib/modules/invite/store.d.ts +5 -1
- package/lib/modules/invite/store.js +8 -1
- package/lib/modules/layout/components/Carousel.d.ts +1 -1
- package/lib/modules/layout/components/Carousel.js +16 -118
- package/lib/modules/layout/components/CommonVideoRenderer.d.ts +13 -0
- package/lib/modules/layout/components/CommonVideoRenderer.js +214 -0
- package/lib/modules/layout/components/Gallery.d.ts +1 -0
- package/lib/modules/layout/components/Gallery.js +62 -205
- package/lib/modules/layout/components/index.css +17 -34
- package/lib/modules/layout/index.d.ts +2 -0
- package/lib/modules/layout/index.js +2 -1
- package/lib/modules/layout/store.d.ts +5 -2
- package/lib/modules/layout/store.js +47 -39
- package/lib/modules/layout/type.d.ts +4 -0
- package/lib/modules/layout/type.js +6 -1
- package/lib/modules/live-streaming/store.d.ts +1 -0
- package/lib/modules/live-streaming/store.js +19 -8
- package/lib/modules/participant/components/confirm-input/index.d.ts +4 -4
- package/lib/modules/participant/components/confirm-input/index.js +74 -6
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +27 -3
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +4 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +3 -2
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +4 -3
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +1 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +9 -1
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +1 -1
- package/lib/modules/participant/components/participants/components/participants/index.css +1 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +18 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +12 -5
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +1 -8
- package/lib/modules/participant/index.css +6 -0
- package/lib/modules/participant/index.d.ts +1 -0
- package/lib/modules/participant/index.js +9 -0
- package/lib/modules/participant/store.d.ts +6 -0
- package/lib/modules/participant/store.js +130 -96
- package/lib/modules/pc-audio-connect/store.js +1 -1
- package/lib/modules/phone-audio-connect/index.d.ts +2 -0
- package/lib/modules/phone-audio-connect/index.js +2 -1
- package/lib/modules/phone-audio-connect/store.d.ts +4 -1
- package/lib/modules/phone-audio-connect/store.js +4 -2
- package/lib/modules/setting/audio-settings/audio-settings.js +70 -48
- package/lib/modules/setting/audio-settings/index.css +23 -6
- package/lib/modules/setting/general-settings/general-settings.d.ts +1 -2
- package/lib/modules/setting/general-settings/general-settings.js +111 -37
- package/lib/modules/setting/general-settings/index.css +15 -0
- package/lib/modules/setting/index.d.ts +4 -1
- package/lib/modules/setting/index.js +7 -4
- package/lib/modules/setting/state/index.js +1 -1
- package/lib/modules/setting/store.d.ts +24 -11
- package/lib/modules/setting/store.js +203 -142
- package/lib/modules/setting/video-settings/index.css +13 -2
- package/lib/modules/setting/video-settings/video-settings-basic.js +18 -27
- package/lib/modules/setting/video-settings/video-settings.d.ts +0 -2
- package/lib/modules/setting/video-settings/video-settings.js +3 -2
- package/lib/modules/setting/view.d.ts +11 -2
- package/lib/modules/setting/view.js +93 -71
- package/lib/modules/share-screen/components/selection/index.js +6 -2
- package/lib/modules/share-screen/index.d.ts +4 -1
- package/lib/modules/share-screen/index.js +3 -1
- package/lib/modules/share-screen/store.d.ts +15 -5
- package/lib/modules/share-screen/store.js +105 -59
- package/lib/modules/share-screen/view.js +1 -1
- package/lib/modules/state-bar/index.css +4 -2
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +2 -1
- package/lib/modules/state-bar/layout-config.js +1 -0
- package/lib/modules/state-bar/live-streaming-state.js +1 -0
- package/lib/modules/state-bar/meeting-detail.css +10 -1
- package/lib/modules/state-bar/meeting-details.js +42 -26
- package/lib/modules/state-bar/meeting-network-state.css +8 -0
- package/lib/modules/state-bar/meeting-time.js +9 -20
- package/lib/modules/state-bar/store.d.ts +5 -1
- package/lib/modules/state-bar/store.js +10 -3
- package/lib/modules/state-bar/view.js +17 -6
- package/lib/modules/video-window/components/members/index.js +0 -3
- package/lib/modules/waiting-room-layout/index.css +13 -0
- package/lib/modules/waiting-room-layout/index.d.ts +2 -1
- package/lib/modules/waiting-room-layout/index.js +2 -1
- package/lib/modules/waiting-room-layout/store.d.ts +12 -1
- package/lib/modules/waiting-room-layout/store.js +42 -6
- package/lib/modules/waiting-room-layout/view.js +22 -5
- package/lib/modules/whiteboard/components/control-bar/index.css +1 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +1 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/ style.css +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +3 -14
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.js +83 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/history.js +3 -3
- package/lib/modules/whiteboard/components/toolbar/components/item/index.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/item/index.js +42 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +6 -6
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -113
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +18 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +276 -83
- package/lib/modules/whiteboard/context.d.ts +1 -2
- package/lib/modules/whiteboard/index.d.ts +1 -14
- package/lib/modules/whiteboard/index.js +131 -426
- package/lib/modules/whiteboard/view.js +12 -10
- package/lib/modules/widget/sdk.js +2 -1
- package/lib/object-manager.d.ts +8 -0
- package/lib/object-manager.js +75 -0
- package/lib/plugins/browser-runtime-plugin.js +19 -14
- package/lib/providers/ability-provider.d.ts +8 -0
- package/lib/providers/ability-provider.js +14 -0
- package/lib/providers/device-privilege-provider.d.ts +1 -0
- package/lib/providers/device-privilege-provider.js +53 -75
- package/lib/providers/device-provider.d.ts +18 -8
- package/lib/providers/device-provider.js +397 -209
- package/lib/providers/device-stream-provider.js +0 -4
- package/lib/providers/dialog-provider.d.ts +1 -0
- package/lib/providers/dialog-provider.js +4 -18
- package/lib/providers/event-provider.js +45 -2
- package/lib/providers/interpreter-provider.d.ts +4 -0
- package/lib/providers/interpreter-provider.js +166 -137
- package/lib/providers/message-provider.js +44 -2
- package/lib/providers/privilege-provider.d.ts +33 -0
- package/lib/providers/privilege-provider.js +120 -45
- package/lib/providers/room-provider.d.ts +12 -10
- package/lib/providers/room-provider.js +162 -262
- package/lib/providers/screen-share-provider.d.ts +4 -0
- package/lib/providers/screen-share-provider.js +3 -6
- package/lib/providers/widget-provider.js +6 -4
- package/lib/runtime.d.ts +20 -8
- package/lib/scenes/main-scene.d.ts +2 -0
- package/lib/scenes/main-scene.js +95 -37
- package/lib/scenes/waiting-scene.js +16 -13
- package/lib/schema.d.ts +55 -32
- package/lib/schema.js +23 -9
- package/lib/shared-data-source/config.d.ts +6 -2
- package/lib/shared-data-source/config.js +81 -10
- package/lib/shared-data-source/member-data.d.ts +16 -20
- package/lib/shared-data-source/member-data.js +121 -110
- package/lib/shared-data-source/screen-share-data-source.d.ts +37 -0
- package/lib/shared-data-source/screen-share-data-source.js +134 -0
- package/lib/shared-data-source/security-data.d.ts +1 -0
- package/lib/shared-data-source/security-data.js +3 -5
- package/lib/shared-data-source/setting.d.ts +1 -0
- package/lib/shared-data-source/setting.js +33 -17
- package/lib/shared-data-source/video-window.d.ts +3 -3
- package/lib/shared-data-source/video-window.js +55 -38
- package/lib/translations/enUS.d.ts +48 -1
- package/lib/translations/enUS.js +101 -17
- package/lib/translations/zhCN.d.ts +48 -1
- package/lib/translations/zhCN.js +88 -4
- package/lib/type.d.ts +40 -20
- package/lib/type.js +14 -1
- package/lib/ui-manager.d.ts +11 -9
- package/lib/ui-manager.js +118 -29
- package/lib/ui-scene.d.ts +7 -4
- package/lib/ui-scene.js +111 -128
- package/lib/utilities/constant.d.ts +3 -1
- package/lib/utilities/constant.js +2 -0
- package/lib/utilities/copyText.js +15 -11
- package/lib/utilities/default-config.d.ts +2 -0
- package/lib/utilities/default-config.js +11 -5
- package/lib/utilities/i18n-common-data.d.ts +2 -0
- package/lib/utilities/i18n-common-data.js +15 -0
- package/lib/utilities/logger.d.ts +0 -1
- package/lib/utilities/logger.js +3 -4
- package/lib/utilities/renderer.d.ts +0 -9
- package/lib/utilities/renderer.js +1 -70
- package/lib/utilities/screen.js +3 -1
- package/lib/utilities/setting-config-storage.d.ts +6 -1
- package/lib/utilities/setting-config-storage.js +21 -4
- package/lib/utilities/tools.d.ts +7 -6
- package/lib/utilities/tools.js +56 -44
- package/lib/utilities/ui-resources.d.ts +6 -0
- package/lib/utilities/ui-resources.js +47 -9
- package/lib/waiting-room-control-manager.d.ts +4 -4
- package/lib/waiting-room-control-manager.js +29 -9
- package/package.json +6 -6
- package/public/assets/browser/images/default1.jpg +0 -0
- package/public/assets/browser/images/default2.jpg +0 -0
- package/public/assets/browser/images/default3.jpg +0 -0
- package/public/assets/browser/images/default4.jpg +0 -0
- package/public/assets/browser/images/default5.jpg +0 -0
- package/public/assets/browser/images/default6.jpg +0 -0
- package/public/assets/browser/images/default7.jpg +0 -0
- package/public/assets/browser/sound_effects/pretest.mp3 +0 -0
- package/public/assets/browser/sound_effects/recording_started.mp3 +0 -0
- package/public/assets/browser/sound_effects/remote_user_joined.mp3 +0 -0
- package/public/assets/browser/sound_effects/speaker_test.mp3 +0 -0
- package/public/assets/browser/videos/default8.mp4 +0 -0
- package/public/assets/browser/videos/default9.mp4 +0 -0
- package/public/assets/electron/images/default1.jpg +0 -0
- package/public/assets/electron/images/default2.jpg +0 -0
- package/public/assets/electron/sound_effects/pretest.mp3 +0 -0
- package/public/assets/electron/videos/default8.mp4 +0 -0
- package/public/index.html +103 -82
- package/lib/hooks/meeting-time.d.ts +0 -15
- package/lib/hooks/meeting-time.js +0 -92
- package/lib/login-confirm-dialog.d.ts +0 -13
- package/lib/login-confirm-dialog.js +0 -85
- package/lib/modules/action-bar/components/apps/appitems.d.ts +0 -3
- package/lib/modules/action-bar/components/apps/appitems.js +0 -45
- package/lib/modules/components/member-window/components/member-board.d.ts +0 -2
- package/lib/modules/components/member-window/components/member-board.js +0 -63
- package/lib/modules/dialog/components/system-preference/bg1.png +0 -0
- package/lib/modules/dialog/components/system-preference/bg2.png +0 -0
- package/lib/modules/dialog/types/index.d.ts +0 -70
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.d.ts +0 -6
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.js +0 -28
- package/lib/modules/participant/components/attendee/components/user-avatar/index.d.ts +0 -7
- package/lib/modules/participant/components/attendee/components/user-avatar/index.js +0 -39
- package/lib/modules/participant/components/attendee/index.css +0 -69
- package/lib/modules/participant/components/attendee/index.d.ts +0 -4
- package/lib/modules/participant/components/attendee/index.js +0 -337
- package/lib/modules/participant/components/drop-menu/index.css +0 -60
- package/lib/modules/participant/components/drop-menu/index.d.ts +0 -2
- package/lib/modules/participant/components/drop-menu/index.js +0 -189
- package/lib/modules/participant/components/footer/buttons.d.ts +0 -6
- package/lib/modules/participant/components/footer/buttons.js +0 -52
- package/lib/modules/participant/components/footer/index.d.ts +0 -4
- package/lib/modules/participant/components/footer/index.js +0 -37
- package/lib/modules/participant/components/merge/index.d.ts +0 -11
- package/lib/modules/participant/components/merge/index.js +0 -49
- package/lib/modules/participant/components/rename/index.d.ts +0 -4
- package/lib/modules/participant/components/rename/index.js +0 -45
- package/lib/modules/participant/components/user-action/index.d.ts +0 -17
- package/lib/modules/participant/components/user-action/index.js +0 -169
- package/lib/modules/video-window/deviceState/index.d.ts +0 -16
- package/lib/modules/video-window/deviceState/index.js +0 -75
- package/lib/modules/video-window/members/index.css +0 -51
- package/lib/modules/video-window/members/index.d.ts +0 -2
- package/lib/modules/video-window/members/index.js +0 -157
- package/lib/modules/video-window/speaking/index.css +0 -69
- package/lib/modules/video-window/speaking/index.d.ts +0 -3
- package/lib/modules/video-window/speaking/index.js +0 -57
- package/lib/modules/video-window/topControl/index.css +0 -35
- package/lib/modules/video-window/topControl/index.d.ts +0 -3
- package/lib/modules/video-window/topControl/index.js +0 -92
- /package/lib/modules/{sound-effect → event-sound}/sound-effect-player.d.ts +0 -0
- /package/lib/modules/{sound-effect → event-sound}/sound-effect-player.js +0 -0
|
@@ -125,6 +125,14 @@
|
|
|
125
125
|
background: var(--fcr_web_ui_scene_hover);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
.meeting-network-state__state-info:hover svg path {
|
|
129
|
+
fill: var(--fcr_web_ui_scene_mainicon2);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.meeting-network-state__state-info:hover .meeting-network-state__state-info-text {
|
|
133
|
+
color: var(--fcr_web_ui_scene_mainicon2);
|
|
134
|
+
}
|
|
135
|
+
|
|
128
136
|
.meeting-network-state__state-info-icon {
|
|
129
137
|
flex-shrink: 0;
|
|
130
138
|
}
|
|
@@ -6,39 +6,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.MeetingTime = void 0;
|
|
9
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
10
9
|
var _mobxReact = require("mobx-react");
|
|
11
10
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
12
11
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
13
12
|
var _useNamespace = require("../../utilities/useNamespace");
|
|
14
13
|
require("./index.css");
|
|
15
|
-
var _view = require("./view");
|
|
16
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
15
|
var _react = require("react");
|
|
18
16
|
var _store = require("./store");
|
|
19
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
18
|
var MeetingTime = exports.MeetingTime = (0, _mobxReact.observer)(function () {
|
|
21
|
-
var t = (0, _i18n.useI18n)();
|
|
22
19
|
var ns = (0, _useNamespace.useNamespace)('meeting-time');
|
|
23
20
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
24
|
-
totalHourText = _useContext.totalHourText,
|
|
25
|
-
totalMinuteText = _useContext.totalMinuteText,
|
|
26
21
|
meetingTime = _useContext.meetingTime,
|
|
27
22
|
meetingTimeStatus = _useContext.meetingTimeStatus;
|
|
28
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
children:
|
|
36
|
-
|
|
37
|
-
className: ns.e('icon'),
|
|
38
|
-
size: 22
|
|
39
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
40
|
-
children: [meetingTime, "(", totalHourText, totalMinuteText, ")"]
|
|
41
|
-
})]
|
|
42
|
-
})
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
24
|
+
className: (0, _classnames["default"])(ns.b(), ns.m(meetingTimeStatus)),
|
|
25
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
26
|
+
type: _type.FcrIconType.FCR_CLOCK,
|
|
27
|
+
className: ns.e('icon'),
|
|
28
|
+
size: 22
|
|
29
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
30
|
+
children: meetingTime
|
|
31
|
+
})]
|
|
43
32
|
});
|
|
44
33
|
});
|
|
@@ -13,6 +13,7 @@ import { FcrUIMemberSharedDataSource } from '../../shared-data-source/member-dat
|
|
|
13
13
|
import { FcrUILocalStorageProvider } from '../../providers/local-storage-provider';
|
|
14
14
|
import { FcrUIAbilityProviderImpl } from 'fcr-ui-scene/src/providers/ability-provider';
|
|
15
15
|
import { FcrUIMeetingTimeSharedDataSource } from '../../shared-data-source/meeting-time';
|
|
16
|
+
import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
16
17
|
export type NetworkStatus = 'excellent' | 'average' | 'poor' | 'unknown';
|
|
17
18
|
export declare const GALLERY_MIN_SIZE = 825;
|
|
18
19
|
export default class StateBarStore {
|
|
@@ -31,6 +32,7 @@ export default class StateBarStore {
|
|
|
31
32
|
private _localStorageProvider;
|
|
32
33
|
private _roomObserver;
|
|
33
34
|
private _abilityProvider;
|
|
35
|
+
private _dialogProvider;
|
|
34
36
|
accessor networkStatus: NetworkStatus;
|
|
35
37
|
accessor roomInfo: FcrRoomInfo | undefined;
|
|
36
38
|
accessor isLiveStreaming: boolean;
|
|
@@ -61,7 +63,8 @@ export default class StateBarStore {
|
|
|
61
63
|
get layoutView(): import("../../type").FcrUIVideoWindowLayoutType;
|
|
62
64
|
get asideLayout(): import("../../type").FcrUIUpdateAsideParams;
|
|
63
65
|
get isRoomDetailSupported(): boolean;
|
|
64
|
-
|
|
66
|
+
get roomDetailCopyText(): string;
|
|
67
|
+
constructor({ roomControl, uiEventStore, securityStore, config, parameters, sharedLayoutDataSource, roomProvider, sharedVideoWindowDataSource, messageProvider, sharedMemberDataSource, localStorageProvider, abilityProvider, sharedMeetingTimeDataSource, dialogProvider, }: {
|
|
65
68
|
roomControl: FcrMainRoomControl | FcrWaitingRoomControl;
|
|
66
69
|
uiEventStore: FcrUIEventProvider;
|
|
67
70
|
securityStore: FcrUIPrivilegeProvider;
|
|
@@ -75,6 +78,7 @@ export default class StateBarStore {
|
|
|
75
78
|
localStorageProvider: FcrUILocalStorageProvider;
|
|
76
79
|
abilityProvider: FcrUIAbilityProviderImpl;
|
|
77
80
|
sharedMeetingTimeDataSource: FcrUIMeetingTimeSharedDataSource;
|
|
81
|
+
dialogProvider: FcrUIDialogProvider;
|
|
78
82
|
});
|
|
79
83
|
get roomId(): string | undefined;
|
|
80
84
|
get meetingId(): string | undefined;
|
|
@@ -129,7 +129,8 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
129
129
|
sharedMemberDataSource = _ref2.sharedMemberDataSource,
|
|
130
130
|
localStorageProvider = _ref2.localStorageProvider,
|
|
131
131
|
abilityProvider = _ref2.abilityProvider,
|
|
132
|
-
sharedMeetingTimeDataSource = _ref2.sharedMeetingTimeDataSource
|
|
132
|
+
sharedMeetingTimeDataSource = _ref2.sharedMeetingTimeDataSource,
|
|
133
|
+
dialogProvider = _ref2.dialogProvider;
|
|
133
134
|
(0, _classCallCheck2["default"])(this, StateBarStore);
|
|
134
135
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
135
136
|
prefix: 'StateBarStore'
|
|
@@ -162,6 +163,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
162
163
|
this._uiEventStore = uiEventStore;
|
|
163
164
|
this._securityStore = securityStore;
|
|
164
165
|
this._roomProvider = roomProvider;
|
|
166
|
+
this._dialogProvider = dialogProvider;
|
|
165
167
|
this.attendeeCount = 0;
|
|
166
168
|
this.isLiveStreaming = this._roomControl.getLiveStreamingState() === _type.FcrLiveStreamingState.STARTED;
|
|
167
169
|
if (this.isLiveStreaming) {
|
|
@@ -376,6 +378,11 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
376
378
|
get: function get() {
|
|
377
379
|
return this._abilityProvider.isRoomDetailSupported();
|
|
378
380
|
}
|
|
381
|
+
}, {
|
|
382
|
+
key: "roomDetailCopyText",
|
|
383
|
+
get: function get() {
|
|
384
|
+
return this._roomProvider.getRoomDetailCopyText();
|
|
385
|
+
}
|
|
379
386
|
}, {
|
|
380
387
|
key: "roomId",
|
|
381
388
|
get: function get() {
|
|
@@ -440,7 +447,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
440
447
|
value: function openDeviceSettingDialog(arg) {
|
|
441
448
|
var activeTab = (arg === null || arg === void 0 ? void 0 : arg.activeTab) || _store.DeviceSettingTab.VIDEO;
|
|
442
449
|
var highlightSelector = (arg === null || arg === void 0 ? void 0 : arg.highlightSelector) || _constant.FcrUIHighlightElement.VIDEO_MAX_PERSON;
|
|
443
|
-
this.
|
|
450
|
+
this._dialogProvider.openDeviceSettingDialog({
|
|
444
451
|
activeTab: activeTab,
|
|
445
452
|
highlightSelector: highlightSelector
|
|
446
453
|
});
|
|
@@ -619,7 +626,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
619
626
|
}]);
|
|
620
627
|
}();
|
|
621
628
|
_StateBarStore = StateBarStore;
|
|
622
|
-
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, "
|
|
629
|
+
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, "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);
|
|
623
630
|
_init_networkStatus = _applyDecs$e[0];
|
|
624
631
|
_init_roomInfo = _applyDecs$e[1];
|
|
625
632
|
_init_isLiveStreaming = _applyDecs$e[2];
|
|
@@ -71,6 +71,14 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
71
71
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
72
72
|
isFullScreen = _useState2[0],
|
|
73
73
|
setIsFullScreen = _useState2[1];
|
|
74
|
+
var _useState3 = (0, _react.useState)(false),
|
|
75
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
76
|
+
isNetworkDetailVisible = _useState4[0],
|
|
77
|
+
setIsNetworkDetailVisible = _useState4[1];
|
|
78
|
+
var _useState5 = (0, _react.useState)(false),
|
|
79
|
+
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
80
|
+
isMeetingDetailVisible = _useState6[0],
|
|
81
|
+
setIsMeetingDetailVisible = _useState6[1];
|
|
74
82
|
var displayMeetingId = meetingId ? (0, _tools.renderMeetingId)(meetingId, (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId) || '') : (0, _tools.renderMeetingId)(meetingId, (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId) || '').replace(/\s+/g, '');
|
|
75
83
|
(0, _react.useEffect)(function () {
|
|
76
84
|
isFullScreen ? (0, _screen.enterFullScreen)() : (0, _screen.exitFullScreen)();
|
|
@@ -111,8 +119,9 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
111
119
|
};
|
|
112
120
|
}, [isFullScreen]);
|
|
113
121
|
var onMeetingIdCopy = function onMeetingIdCopy() {
|
|
114
|
-
|
|
115
|
-
|
|
122
|
+
var copyMeetingId = meetingId || (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId);
|
|
123
|
+
if (!copyMeetingId) return;
|
|
124
|
+
(0, _copyText.copyText)(copyMeetingId).then(function () {
|
|
116
125
|
showToast({
|
|
117
126
|
type: 'normal',
|
|
118
127
|
message: t('fmt_information_tips_beencopied')
|
|
@@ -148,13 +157,14 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
148
157
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
|
|
149
158
|
content: 'Show Network Details',
|
|
150
159
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
160
|
+
showArrow: false,
|
|
151
161
|
trigger: "click",
|
|
152
162
|
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingNetworkState.MeetingNetworkState, {}),
|
|
153
163
|
placement: "bottom",
|
|
154
|
-
onVisibleChange:
|
|
164
|
+
onVisibleChange: setIsNetworkDetailVisible,
|
|
155
165
|
overlayClassName: ns.e('popover'),
|
|
156
166
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
157
|
-
className: ns.e('info-network'),
|
|
167
|
+
className: "".concat(ns.e('info-network'), " ").concat(isNetworkDetailVisible ? 'active' : ''),
|
|
158
168
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_networkQuality.NetworkQuality, {})
|
|
159
169
|
})
|
|
160
170
|
})
|
|
@@ -166,13 +176,14 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
166
176
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
|
|
167
177
|
content: t('fmt_information_options_sharedetail'),
|
|
168
178
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
179
|
+
showArrow: false,
|
|
169
180
|
trigger: "click",
|
|
170
181
|
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingDetails.MeetingDetails, {}),
|
|
171
182
|
placement: "bottomLeft",
|
|
172
|
-
onVisibleChange:
|
|
183
|
+
onVisibleChange: setIsMeetingDetailVisible,
|
|
173
184
|
overlayClassName: ns.e('popover'),
|
|
174
185
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
175
|
-
className: (0, _classnames["default"])(ns.e('info-detail'), (0, _defineProperty2["default"])({}, ns.e('inwaitingroom-disable-action'), (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomType) === _type3.FcrRoomType.Waitingroom)),
|
|
186
|
+
className: (0, _classnames["default"])(ns.e('info-detail'), (0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, ns.e('inwaitingroom-disable-action'), (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomType) === _type3.FcrRoomType.Waitingroom), 'active', isMeetingDetailVisible)),
|
|
176
187
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
177
188
|
type: _type.FcrIconType.FCR_V2_TANHAO_ALART,
|
|
178
189
|
className: ns.e('info-detail-icon'),
|
|
@@ -102,9 +102,6 @@ var Members = exports.Members = (0, _mobxReact.observer)(function () {
|
|
|
102
102
|
videoRenderMode: _type3.AgoraRtcRenderMode.FIT,
|
|
103
103
|
videoStreamType: _type3.AgoraRtcVideoStreamType.LOW_STREAM,
|
|
104
104
|
windowData: windowData,
|
|
105
|
-
onDoubleClick: function onDoubleClick() {
|
|
106
|
-
!windowData.isPin && addPin(windowData.windowId);
|
|
107
|
-
},
|
|
108
105
|
showAvatar: true,
|
|
109
106
|
isVideoSuspended: false
|
|
110
107
|
})
|
|
@@ -81,3 +81,16 @@
|
|
|
81
81
|
padding: 5px 10px;
|
|
82
82
|
z-index: 100;
|
|
83
83
|
}
|
|
84
|
+
|
|
85
|
+
.waiting-room-title-jbh {
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.waiting-room-title-jbh-icon {
|
|
91
|
+
margin-right: 5px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.waiting-room-title-jbh-joining {
|
|
95
|
+
color: var(--fcr_ui_scene_icontext7);
|
|
96
|
+
}
|
|
@@ -2,12 +2,13 @@ import { UIModule } from '../../base';
|
|
|
2
2
|
import { FcrUIDeviceProvider } from '../../providers/device-provider';
|
|
3
3
|
import { FcrUILocalVideoRenderProvider } from '../../providers/renderer-provider';
|
|
4
4
|
import { FcrLayoutSlots } from './store';
|
|
5
|
-
import { FcrUICurrentRoomControlProvider } from '../../providers/room-provider';
|
|
5
|
+
import { FcrUICurrentRoomControlProvider, FcrUIRoomProvider } from '../../providers/room-provider';
|
|
6
6
|
export declare class WaitingRoomLayout extends UIModule {
|
|
7
7
|
private _store?;
|
|
8
8
|
deviceProvider?: FcrUIDeviceProvider;
|
|
9
9
|
localVideoRenderProvider?: FcrUILocalVideoRenderProvider;
|
|
10
10
|
currentRoomControlProvider?: FcrUICurrentRoomControlProvider;
|
|
11
|
+
roomProvider?: FcrUIRoomProvider;
|
|
11
12
|
onNodeWillActive(): void;
|
|
12
13
|
onNodeWillInactive(): void;
|
|
13
14
|
getComponent(slots?: Partial<FcrLayoutSlots & {
|
|
@@ -46,7 +46,8 @@ var WaitingRoomLayout = exports.WaitingRoomLayout = /*#__PURE__*/function (_UIMo
|
|
|
46
46
|
this._store = new _store["default"]({
|
|
47
47
|
deviceProvider: this.deviceProvider,
|
|
48
48
|
localVideoRenderProvider: this.localVideoRenderProvider,
|
|
49
|
-
userControl: (_this$currentRoomCont = this.currentRoomControlProvider) === null || _this$currentRoomCont === void 0 ? void 0 : _this$currentRoomCont.currentRoomControl.getUserControl()
|
|
49
|
+
userControl: (_this$currentRoomCont = this.currentRoomControlProvider) === null || _this$currentRoomCont === void 0 ? void 0 : _this$currentRoomCont.currentRoomControl.getUserControl(),
|
|
50
|
+
roomProvider: this.roomProvider
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
53
|
}, {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { FcrUserControl } from 'fcr-core';
|
|
2
2
|
import { FcrUIDeviceProvider } from '../../providers/device-provider';
|
|
3
3
|
import { FcrUILocalVideoRenderProvider } from '../../providers/renderer-provider';
|
|
4
|
+
import { FcrUIRoomProvider } from '../../providers/room-provider';
|
|
5
|
+
import { FcrUserInfo } from 'fcr-core/lib/type';
|
|
4
6
|
export interface FcrLayoutSlots {
|
|
5
7
|
chat: React.ReactNode;
|
|
6
8
|
stateBar: React.ReactNode;
|
|
@@ -11,21 +13,30 @@ export interface LayoutStoreParams {
|
|
|
11
13
|
deviceProvider: FcrUIDeviceProvider;
|
|
12
14
|
localVideoRenderProvider: FcrUILocalVideoRenderProvider;
|
|
13
15
|
userControl: FcrUserControl;
|
|
16
|
+
roomProvider: FcrUIRoomProvider;
|
|
14
17
|
}
|
|
15
18
|
export default class LayoutStore implements FcrLayoutSlots {
|
|
16
19
|
private _deviceProvider;
|
|
17
20
|
private _localVideoRenderProvider;
|
|
18
21
|
private _userControl;
|
|
22
|
+
private _roomControl;
|
|
23
|
+
private _roomProvider;
|
|
24
|
+
private _localUser;
|
|
25
|
+
private _roomInfo;
|
|
26
|
+
private _roomProviderObserver;
|
|
19
27
|
accessor participant: React.ReactNode;
|
|
20
28
|
accessor chat: React.ReactNode;
|
|
21
29
|
accessor stateBar: React.ReactNode;
|
|
22
30
|
accessor actionBar: React.ReactNode;
|
|
23
31
|
accessor layers: React.ReactNode;
|
|
24
32
|
accessor whiteboard: React.ReactNode;
|
|
33
|
+
accessor isJbhToMainRoom: boolean;
|
|
25
34
|
constructor(params: LayoutStoreParams);
|
|
26
|
-
get localUser():
|
|
35
|
+
get localUser(): FcrUserInfo;
|
|
27
36
|
get cameraId(): string;
|
|
28
37
|
get cameraEnabled(): boolean;
|
|
38
|
+
get isWaitingRoom(): boolean;
|
|
39
|
+
get roomName(): string;
|
|
29
40
|
startPlayLocalVideo(view: HTMLElement, isMirror?: boolean): void;
|
|
30
41
|
stopPlayLocalVideo(view: HTMLElement): void;
|
|
31
42
|
setCameraEnabled(enable: boolean): void;
|
|
@@ -51,8 +51,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
51
51
|
var _mobx = require("mobx");
|
|
52
52
|
var _react = require("react");
|
|
53
53
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
54
|
+
var _type = require("fcr-core/lib/room-control/type");
|
|
54
55
|
var _LayoutStore;
|
|
55
|
-
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _updateSlotsDecs, _ref;
|
|
56
|
+
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _isJbhToMainRoomDecs, _init_isJbhToMainRoom, _updateSlotsDecs, _ref;
|
|
56
57
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
57
58
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
58
59
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -69,11 +70,18 @@ var _C = /*#__PURE__*/new WeakMap();
|
|
|
69
70
|
var _D = /*#__PURE__*/new WeakMap();
|
|
70
71
|
var _E = /*#__PURE__*/new WeakMap();
|
|
71
72
|
var _F = /*#__PURE__*/new WeakMap();
|
|
72
|
-
|
|
73
|
+
var _G = /*#__PURE__*/new WeakMap();
|
|
74
|
+
_ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _isJbhToMainRoomDecs = [_mobx.observable, _mobx.observable.ref], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], "_deviceProvider");
|
|
73
75
|
var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
74
76
|
function LayoutStore(params) {
|
|
77
|
+
var _this = this;
|
|
75
78
|
(0, _classCallCheck2["default"])(this, LayoutStore);
|
|
76
79
|
(0, _defineProperty2["default"])(this, _ref, void _initProto(this));
|
|
80
|
+
(0, _defineProperty2["default"])(this, "_roomProviderObserver", {
|
|
81
|
+
onLeaveJBH: function onLeaveJBH() {
|
|
82
|
+
_this.isJbhToMainRoom = true;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
77
85
|
// Slots
|
|
78
86
|
_classPrivateFieldInitSpec(this, _A, _init_participant(this, null));
|
|
79
87
|
_classPrivateFieldInitSpec(this, _B, _init_chat(this, null));
|
|
@@ -81,9 +89,15 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
81
89
|
_classPrivateFieldInitSpec(this, _D, _init_actionBar(this, null));
|
|
82
90
|
_classPrivateFieldInitSpec(this, _E, _init_layers(this, null));
|
|
83
91
|
_classPrivateFieldInitSpec(this, _F, _init_whiteboard(this, null));
|
|
92
|
+
_classPrivateFieldInitSpec(this, _G, _init_isJbhToMainRoom(this, false));
|
|
84
93
|
this._deviceProvider = params.deviceProvider;
|
|
85
94
|
this._localVideoRenderProvider = params.localVideoRenderProvider;
|
|
86
95
|
this._userControl = params.userControl;
|
|
96
|
+
this._roomControl = params.roomProvider.currentRoomControl;
|
|
97
|
+
this._roomProvider = params.roomProvider;
|
|
98
|
+
this._roomProvider.addObserver(this._roomProviderObserver);
|
|
99
|
+
this._localUser = this._userControl.getLocalUser();
|
|
100
|
+
this._roomInfo = this._roomControl.getRoomInfo();
|
|
87
101
|
}
|
|
88
102
|
return (0, _createClass2["default"])(LayoutStore, [{
|
|
89
103
|
key: "participant",
|
|
@@ -133,10 +147,18 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
133
147
|
set: function set(v) {
|
|
134
148
|
_classPrivateFieldSet(_F, this, v);
|
|
135
149
|
}
|
|
150
|
+
}, {
|
|
151
|
+
key: "isJbhToMainRoom",
|
|
152
|
+
get: function get() {
|
|
153
|
+
return _classPrivateFieldGet(_G, this);
|
|
154
|
+
},
|
|
155
|
+
set: function set(v) {
|
|
156
|
+
_classPrivateFieldSet(_G, this, v);
|
|
157
|
+
}
|
|
136
158
|
}, {
|
|
137
159
|
key: "localUser",
|
|
138
160
|
get: function get() {
|
|
139
|
-
return this.
|
|
161
|
+
return this._localUser;
|
|
140
162
|
}
|
|
141
163
|
}, {
|
|
142
164
|
key: "cameraId",
|
|
@@ -148,6 +170,16 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
148
170
|
get: function get() {
|
|
149
171
|
return this._deviceProvider.cameraEnabled;
|
|
150
172
|
}
|
|
173
|
+
}, {
|
|
174
|
+
key: "isWaitingRoom",
|
|
175
|
+
get: function get() {
|
|
176
|
+
return this._roomInfo.roomType === _type.FcrRoomType.Waitingroom;
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
key: "roomName",
|
|
180
|
+
get: function get() {
|
|
181
|
+
return this._roomInfo.roomName;
|
|
182
|
+
}
|
|
151
183
|
}, {
|
|
152
184
|
key: "startPlayLocalVideo",
|
|
153
185
|
value: function startPlayLocalVideo(view) {
|
|
@@ -183,16 +215,20 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
183
215
|
}
|
|
184
216
|
}, {
|
|
185
217
|
key: "release",
|
|
186
|
-
value: function release() {
|
|
218
|
+
value: function release() {
|
|
219
|
+
this.isJbhToMainRoom = false;
|
|
220
|
+
this._roomProvider.removeObserver(this._roomProviderObserver);
|
|
221
|
+
}
|
|
187
222
|
}]);
|
|
188
223
|
}();
|
|
189
224
|
_LayoutStore = LayoutStore;
|
|
190
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_decorator.bound, 2, "startPlayLocalVideo"], [_decorator.bound, 2, "stopPlayLocalVideo"], [_decorator.bound, 2, "setCameraEnabled"], [_decorator.bound, 2, "setVideoOrientation"], [_updateSlotsDecs, 18, "updateSlots"], [_decorator.bound, 2, "release"]], []).e,
|
|
225
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_isJbhToMainRoomDecs, 17, "isJbhToMainRoom"], [_decorator.bound, 2, "startPlayLocalVideo"], [_decorator.bound, 2, "stopPlayLocalVideo"], [_decorator.bound, 2, "setCameraEnabled"], [_decorator.bound, 2, "setVideoOrientation"], [_updateSlotsDecs, 18, "updateSlots"], [_decorator.bound, 2, "release"]], []).e, 8);
|
|
191
226
|
_init_participant = _applyDecs$e[0];
|
|
192
227
|
_init_chat = _applyDecs$e[1];
|
|
193
228
|
_init_stateBar = _applyDecs$e[2];
|
|
194
229
|
_init_actionBar = _applyDecs$e[3];
|
|
195
230
|
_init_layers = _applyDecs$e[4];
|
|
196
231
|
_init_whiteboard = _applyDecs$e[5];
|
|
197
|
-
|
|
232
|
+
_init_isJbhToMainRoom = _applyDecs$e[6];
|
|
233
|
+
_initProto = _applyDecs$e[7];
|
|
198
234
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports["default"] = void 0;
|
|
9
|
+
require("core-js/modules/es.array.concat.js");
|
|
8
10
|
var _react = require("react");
|
|
9
11
|
var _store = require("./store");
|
|
10
12
|
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
@@ -12,6 +14,9 @@ require("./index.css");
|
|
|
12
14
|
var _mobxReact = require("mobx-react");
|
|
13
15
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
14
16
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
17
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
18
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
19
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
21
|
var View = (0, _mobxReact.observer)(function () {
|
|
17
22
|
var t = (0, _i18n.useI18n)();
|
|
@@ -25,7 +30,10 @@ var View = (0, _mobxReact.observer)(function () {
|
|
|
25
30
|
stopPlayLocalVideo = _useContext.stopPlayLocalVideo,
|
|
26
31
|
cameraEnabled = _useContext.cameraEnabled,
|
|
27
32
|
localUser = _useContext.localUser,
|
|
28
|
-
setVideoOrientation = _useContext.setVideoOrientation
|
|
33
|
+
setVideoOrientation = _useContext.setVideoOrientation,
|
|
34
|
+
isWaitingRoom = _useContext.isWaitingRoom,
|
|
35
|
+
roomName = _useContext.roomName,
|
|
36
|
+
isJbhToMainRoom = _useContext.isJbhToMainRoom;
|
|
29
37
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
30
38
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
31
39
|
className: "waiting-room-module",
|
|
@@ -34,10 +42,19 @@ var View = (0, _mobxReact.observer)(function () {
|
|
|
34
42
|
className: "waiting-room-layout",
|
|
35
43
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
36
44
|
className: "waiting-room-title",
|
|
37
|
-
children: t('fmt_waitingroom_attendie_overview_label_waitingroom')
|
|
45
|
+
children: isWaitingRoom ? t('fmt_waitingroom_attendie_overview_label_waitingroom') : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
46
|
+
className: (0, _classnames["default"])('waiting-room-title-jbh', {
|
|
47
|
+
'waiting-room-title-jbh-joining': isJbhToMainRoom
|
|
48
|
+
}),
|
|
49
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
50
|
+
className: "waiting-room-title-jbh-icon",
|
|
51
|
+
type: isJbhToMainRoom ? _type.FcrIconType.FCR_JBH_INVITE : _type.FcrIconType.FCR_JBH,
|
|
52
|
+
size: isJbhToMainRoom ? 32 : 20
|
|
53
|
+
}), isJbhToMainRoom ? t('fmt_jbh_title_host_in_meeting') : t('fmt_jbh_title_host_not_in_meeting')]
|
|
54
|
+
})
|
|
38
55
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
39
56
|
className: "waiting-room-desc",
|
|
40
|
-
children: t('fmt_waitingroom_attendie_overview_label_wait_moment')
|
|
57
|
+
children: isWaitingRoom ? t('fmt_waitingroom_attendie_overview_label_wait_moment') : "".concat(t('fmt_jbh_title_meeting_topic'), " ").concat(roomName)
|
|
41
58
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
42
59
|
className: "waiting-room-content",
|
|
43
60
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -60,10 +77,10 @@ var View = (0, _mobxReact.observer)(function () {
|
|
|
60
77
|
children: ["(", t('fmt_participant_label_Me'), ")"]
|
|
61
78
|
})]
|
|
62
79
|
})]
|
|
63
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
80
|
+
}), isWaitingRoom ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
64
81
|
className: "waiting-room-chat-content",
|
|
65
82
|
children: chat
|
|
66
|
-
})]
|
|
83
|
+
}) : null]
|
|
67
84
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
68
85
|
className: "waiting-room-module waiting-room-bottom",
|
|
69
86
|
children: actionBar
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GenerateI18nKey } from 'agora-ui-foundation/lib/i18n';
|
|
2
2
|
import { WhiteboardThemeType } from '../../type';
|
|
3
|
-
declare const whiteboardTheme: (
|
|
3
|
+
declare const whiteboardTheme: (useI18n?: (text: GenerateI18nKey<I18nResouceTypes>) => string) => Required<WhiteboardThemeType>[];
|
|
4
4
|
export default whiteboardTheme;
|
|
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
9
|
+
var whiteboardTheme = function whiteboardTheme(useI18n) {
|
|
10
|
+
var t = useI18n || _i18n.transI18n;
|
|
9
11
|
return [{
|
|
10
12
|
showColors: [['#E2E2E2', '#968D86', '#0E0E0E'], ['#A1C473', '#FFC908', '#FF86C9', '#FC3141']],
|
|
11
13
|
colors: ['#E2E2E2', '#A1C473', '#FFC908', '#CC3100', '#968D86', '#4262FF', '#51BD69', '#EB47A2', '#0E0E0E', '#50E3C2', '#FC3141', '#7740EC'],
|
package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js
CHANGED
|
@@ -58,6 +58,7 @@ var CommonColorMenu = (0, _mobxReact.observer)(function (_ref) {
|
|
|
58
58
|
});
|
|
59
59
|
var transI18n = (0, _i18n.useI18n)();
|
|
60
60
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
61
|
+
showArrow: false,
|
|
61
62
|
visible: visibleMenu,
|
|
62
63
|
overlayInnerStyle: {
|
|
63
64
|
borderRadius: '4px',
|
package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js
CHANGED
|
@@ -35,6 +35,7 @@ var Picker = exports.Picker = (0, _mobxReact.observer)(function () {
|
|
|
35
35
|
return isDisabled ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
36
36
|
className: cls
|
|
37
37
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
38
|
+
showArrow: false,
|
|
38
39
|
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_panel.ColorPickerPanel, {}),
|
|
39
40
|
trigger: "click",
|
|
40
41
|
placement: toolbarDockPosition.placement === 'left' ? 'right' : 'left',
|
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.array.iterator.js");
|
|
4
3
|
require("core-js/modules/es.object.define-property.js");
|
|
5
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
6
|
-
require("core-js/modules/es.object.to-string.js");
|
|
7
|
-
require("core-js/modules/es.string.iterator.js");
|
|
8
|
-
require("core-js/modules/es.weak-map.js");
|
|
9
|
-
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
10
|
-
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
11
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
13
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
14
5
|
Object.defineProperty(exports, "__esModule", {
|
|
15
6
|
value: true
|
|
16
7
|
});
|
|
17
8
|
exports.EraserPickerItem = void 0;
|
|
18
9
|
var _mobxReact = require("mobx-react");
|
|
19
|
-
var _react =
|
|
20
|
-
var _ = require("..");
|
|
10
|
+
var _react = require("react");
|
|
21
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
22
12
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
23
13
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
@@ -25,9 +15,8 @@ var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
|
25
15
|
var _store = require("../store");
|
|
26
16
|
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
27
17
|
var _enums = require("fcr-core/lib/room-control/whiteboard-control/enums");
|
|
18
|
+
var _expansion = require("./expansion");
|
|
28
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
30
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
31
20
|
var EraserPickerItem = exports.EraserPickerItem = (0, _mobxReact.observer)(function (_ref) {
|
|
32
21
|
var offset = _ref.offset;
|
|
33
22
|
var _useContext = (0, _react.useContext)(_store.ToolbarContext),
|
|
@@ -36,7 +25,7 @@ var EraserPickerItem = exports.EraserPickerItem = (0, _mobxReact.observer)(funct
|
|
|
36
25
|
toolbarDockPosition = _useContext$observabl.toolbarDockPosition;
|
|
37
26
|
var transI18n = (0, _i18n.useI18n)();
|
|
38
27
|
var isActive = currentTool === _enums.FcrBoardToolType.ERASER;
|
|
39
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
28
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_expansion.ExpansionToolbarItem, {
|
|
40
29
|
isActive: isActive,
|
|
41
30
|
tooltip: transI18n('fmt_screenshare_whiteboard_button_eraser'),
|
|
42
31
|
tooltipPlacement: toolbarDockPosition.placement === 'left' ? 'right' : 'left',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|