fcr-ui-scene 3.1.1 → 3.3.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/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/base.d.ts +0 -1
- package/lib/base.js +16 -0
- package/lib/common/device-store.d.ts +4 -5
- package/lib/common/device-store.js +178 -86
- package/lib/common/device-stream-store.d.ts +3 -2
- package/lib/common/device-stream-store.js +94 -72
- package/lib/common/event-store.d.ts +20 -3
- package/lib/common/event-store.js +43 -5
- package/lib/common/security-store.d.ts +16 -16
- package/lib/common/security-store.js +278 -124
- package/lib/electron/app.js +13 -5
- package/lib/electron/bootstrap-dev.d.ts +1 -0
- package/lib/electron/bootstrap-dev.js +51 -0
- package/lib/electron/bootstrap-sdk.d.ts +1 -0
- package/lib/electron/bootstrap-sdk.js +56 -0
- package/lib/electron/bootstrap.d.ts +1 -0
- package/lib/electron/bootstrap.js +56 -0
- package/lib/electron/default-options.js +1 -1
- package/lib/electron/dev.d.ts +1 -0
- package/lib/electron/dev.js +51 -0
- package/lib/electron/injections.d.ts +3 -4
- package/lib/electron/injections.js +46 -33
- package/lib/electron/logger.d.ts +6 -0
- package/lib/electron/logger.js +66 -0
- package/lib/electron/main.js +15 -11
- package/lib/electron/plugins/meeting-state.d.ts +2 -0
- package/lib/electron/plugins/meeting-state.js +39 -0
- package/lib/electron/preload.js +2 -1
- package/lib/electron/tools.js +9 -0
- package/lib/electron/window.d.ts +1 -1
- package/lib/electron/window.js +14 -2
- package/lib/fragments/control-bar/context.d.ts +0 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
- package/lib/fragments/control-bar/control-bar-store.js +394 -81
- package/lib/fragments/control-bar/device/index.js +12 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +19 -1
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
- package/lib/fragments/control-bar/more-actions/index.css +53 -0
- package/lib/fragments/control-bar/more-actions/index.js +77 -37
- package/lib/fragments/control-bar/security-content/index.css +10 -0
- package/lib/fragments/control-bar/security-content/index.js +43 -18
- package/lib/fragments/control-bar/view.js +8 -2
- package/lib/fragments/live-streaming/context.d.ts +0 -1
- package/lib/fragments/live-streaming/store.js +27 -17
- package/lib/fragments/share-screen-selection/context.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.js +34 -33
- package/lib/fragments/share-screen-selection/view.js +7 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +4 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +5 -1
- package/lib/fragments/toolbar/components/color-picker.js +3 -1
- package/lib/fragments/toolbar/components/eraser-picker.js +4 -13
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +5 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +2 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +2 -0
- package/lib/fragments/toolbar/components/shape-picker.js +2 -0
- package/lib/fragments/toolbar/hooks.d.ts +1 -1
- package/lib/fragments/toolbar/hooks.js +13 -8
- package/lib/fragments/toolbar/store.d.ts +4 -4
- package/lib/fragments/toolbar/store.js +20 -2
- package/lib/fragments/toolbar/view.js +2 -0
- package/lib/global.d.ts +1 -0
- package/lib/hooks/meeting-time.d.ts +2 -2
- package/lib/login-confirm-dialog.d.ts +12 -0
- package/lib/login-confirm-dialog.js +80 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +14 -5
- package/lib/modules/action-bar/chat/index.js +6 -6
- package/lib/modules/action-bar/context.d.ts +0 -1
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.d.ts +2 -2
- package/lib/modules/action-bar/device/index.js +6 -4
- package/lib/modules/action-bar/index.css +63 -12
- package/lib/modules/action-bar/index.d.ts +3 -2
- package/lib/modules/action-bar/index.dev.js +8 -7
- package/lib/modules/action-bar/index.js +21 -0
- package/lib/modules/action-bar/item-placement.d.ts +1 -2
- package/lib/modules/action-bar/item.js +5 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -1
- package/lib/modules/action-bar/leave/assign-host.js +7 -7
- package/lib/modules/action-bar/leave/index.js +35 -7
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -1
- package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
- package/lib/modules/action-bar/more/poppover-content.d.ts +0 -1
- package/lib/modules/action-bar/more/poppover-content.js +14 -4
- package/lib/modules/action-bar/participants/index.css +12 -0
- package/lib/modules/action-bar/participants/index.js +21 -14
- package/lib/modules/action-bar/screen-share/index.js +5 -1
- package/lib/modules/action-bar/screen-share/submenu.js +17 -22
- package/lib/modules/action-bar/security/drop-menu.js +124 -14
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/settings/index.js +1 -1
- package/lib/modules/action-bar/store.d.ts +45 -21
- package/lib/modules/action-bar/store.js +544 -134
- package/lib/modules/action-bar/view.js +65 -42
- package/lib/modules/audio-stream/index.js +12 -6
- package/lib/modules/chat/chat-bar/index.js +46 -27
- package/lib/modules/chat/chat-select/index.css +19 -4
- package/lib/modules/chat/chat-select/index.d.ts +0 -1
- package/lib/modules/chat/chat-select/index.js +29 -3
- package/lib/modules/chat/chat.d.ts +2 -3
- package/lib/modules/chat/chat.js +210 -107
- package/lib/modules/chat/contex.d.ts +0 -1
- package/lib/modules/chat/demo-wrapper.d.ts +0 -1
- package/lib/modules/chat/index.css +49 -0
- package/lib/modules/chat/index.d.ts +3 -3
- package/lib/modules/chat/index.dev.js +4 -4
- package/lib/modules/chat/index.js +32 -11
- package/lib/modules/chat/message-list.js +81 -49
- package/lib/modules/chat/store.d.ts +50 -4
- package/lib/modules/chat/store.js +303 -124
- package/lib/modules/chat/util.js +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -0
- package/lib/modules/connection-gateway/components/phone/index.js +2 -0
- package/lib/modules/connection-gateway/index.d.ts +3 -2
- package/lib/modules/connection-gateway/index.js +2 -0
- package/lib/modules/connection-gateway/store.d.ts +6 -4
- package/lib/modules/connection-gateway/store.js +46 -15
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +1 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -2
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +0 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
- package/lib/modules/device-pretest/context.d.ts +0 -1
- package/lib/modules/device-pretest/index.css +0 -4
- package/lib/modules/device-pretest/index.d.ts +0 -1
- package/lib/modules/device-pretest/index.js +2 -1
- package/lib/modules/device-pretest/settings/beauty.js +19 -6
- package/lib/modules/device-pretest/settings/video-effect.d.ts +0 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -0
- package/lib/modules/device-pretest/store.js +34 -19
- package/lib/modules/dialog/components/chat/electron.js +3 -2
- package/lib/modules/dialog/components/chat/index.js +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +7 -5
- package/lib/modules/dialog/components/confirm/index.js +16 -2
- package/lib/modules/dialog/components/connection-gateway/electron.js +4 -2
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/device-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/device-setting/electron.js +74 -0
- package/lib/modules/dialog/components/device-setting/index.css +26 -0
- package/lib/modules/dialog/components/device-setting/index.d.ts +4 -0
- package/lib/modules/dialog/components/device-setting/index.js +60 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
- package/lib/modules/dialog/components/participant/electron.js +8 -2
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/components/whiteboard/index.js +2 -1
- package/lib/modules/dialog/context.d.ts +0 -1
- package/lib/modules/dialog/dialogs.d.ts +0 -2
- package/lib/modules/dialog/dialogs.js +62 -103
- package/lib/modules/dialog/index.css +7 -6
- package/lib/modules/dialog/index.d.ts +1 -1
- package/lib/modules/dialog/index.js +17 -0
- package/lib/modules/dialog/store.d.ts +6 -2
- package/lib/modules/dialog/store.js +52 -9
- package/lib/modules/dialog/view.js +2 -0
- package/lib/modules/event-notification/context.d.ts +2 -0
- package/lib/modules/event-notification/context.js +9 -0
- package/lib/modules/event-notification/index.css +58 -0
- package/lib/modules/event-notification/index.d.ts +13 -0
- package/lib/modules/event-notification/index.js +48 -0
- package/lib/modules/event-notification/store.d.ts +17 -0
- package/lib/modules/event-notification/store.js +133 -0
- package/lib/modules/event-notification/view.d.ts +5 -0
- package/lib/modules/event-notification/view.js +114 -0
- package/lib/modules/event-toast/context.d.ts +0 -1
- package/lib/modules/event-toast/store.js +16 -0
- package/lib/modules/invite/context.d.ts +0 -1
- package/lib/modules/invite/index.css +4 -4
- package/lib/modules/invite/index.d.ts +2 -2
- package/lib/modules/invite/pstn-invite.js +4 -1
- package/lib/modules/invite/store.d.ts +2 -2
- package/lib/modules/invite/store.js +27 -7
- package/lib/modules/invite/voip-invite.d.ts +0 -1
- package/lib/modules/invite/voip-invite.js +1 -1
- package/lib/modules/layout/components/Aside.d.ts +0 -1
- package/lib/modules/layout/components/Aside.js +4 -1
- package/lib/modules/layout/components/Carousel.js +6 -5
- package/lib/modules/layout/components/Gallery.js +16 -9
- package/lib/modules/layout/components/Layout.js +82 -57
- package/lib/modules/layout/components/index.css +42 -5
- package/lib/modules/layout/components/index.js +3 -0
- package/lib/modules/layout/context.d.ts +0 -1
- package/lib/modules/layout/index.css +30 -0
- package/lib/modules/layout/index.dev.js +11 -11
- package/lib/modules/layout/index.js +0 -6
- package/lib/modules/layout/member-window/index.css +5 -5
- package/lib/modules/layout/member-window/index.d.ts +7 -7
- package/lib/modules/layout/member-window/index.js +59 -13
- package/lib/modules/layout/store.d.ts +61 -50
- package/lib/modules/layout/store.js +517 -342
- package/lib/modules/layout/type.d.ts +2 -1
- package/lib/modules/layout/video-window-datasource.d.ts +14 -8
- package/lib/modules/layout/video-window-datasource.js +129 -78
- package/lib/modules/live-streaming/context.d.ts +0 -1
- package/lib/modules/live-streaming/index.d.ts +2 -2
- package/lib/modules/live-streaming/index.dev.js +5 -4
- package/lib/modules/live-streaming/store.d.ts +2 -2
- package/lib/modules/live-streaming/store.js +32 -11
- package/lib/modules/participant/attendee/index.d.ts +12 -3
- package/lib/modules/participant/attendee/index.js +142 -30
- package/lib/modules/participant/context.d.ts +0 -1
- package/lib/modules/participant/index.css +20 -0
- package/lib/modules/participant/index.d.ts +5 -2
- package/lib/modules/participant/index.dev.js +14 -12
- package/lib/modules/participant/index.js +27 -0
- package/lib/modules/participant/member-list-data-source.d.ts +3 -3
- package/lib/modules/participant/member-list-data-source.js +29 -3
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +35 -1
- package/lib/modules/participant/store.d.ts +59 -34
- package/lib/modules/participant/store.js +541 -222
- package/lib/modules/participant/view.d.ts +6 -6
- package/lib/modules/participant/view.js +138 -34
- package/lib/modules/setting/audio-settings/audio-settings.js +16 -12
- package/lib/modules/setting/audio-settings/index.css +2 -2
- package/lib/modules/setting/context.d.ts +0 -1
- package/lib/modules/setting/general-settings/general-settings.js +2 -1
- package/lib/modules/setting/general-settings/index.css +2 -2
- package/lib/modules/setting/index.css +1 -5
- package/lib/modules/setting/index.d.ts +2 -2
- package/lib/modules/setting/index.dev.js +14 -12
- package/lib/modules/setting/index.js +16 -0
- package/lib/modules/setting/minutes-settings/index.css +65 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.d.ts +4 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.js +159 -0
- package/lib/modules/setting/state/index.css +0 -4
- package/lib/modules/setting/state/index.js +11 -1
- package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib/modules/setting/store.d.ts +7 -5
- package/lib/modules/setting/store.js +69 -46
- package/lib/modules/setting/translate-settings/index.css +45 -0
- package/lib/modules/setting/translate-settings/language-select.d.ts +12 -0
- package/lib/modules/setting/translate-settings/language-select.js +50 -0
- package/lib/modules/setting/translate-settings/translate-settings.d.ts +4 -0
- package/lib/modules/setting/translate-settings/translate-settings.js +139 -0
- package/lib/modules/setting/video-settings/index.css +15 -6
- package/lib/modules/setting/video-settings/video-settings-basic.js +3 -2
- package/lib/modules/setting/video-settings/video-settings.js +5 -1
- package/lib/modules/setting/view.js +34 -2
- package/lib/modules/share-screen/index.d.ts +4 -2
- package/lib/modules/share-screen/index.dev.js +17 -14
- package/lib/modules/share-screen/index.js +2 -0
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +44 -6
- package/lib/modules/share-screen/share-state-bar/index.css +49 -11
- package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -1
- package/lib/modules/share-screen/share-state-bar/index.js +51 -20
- package/lib/modules/share-screen/store.d.ts +23 -13
- package/lib/modules/share-screen/store.js +733 -606
- package/lib/modules/state-bar/context.d.ts +0 -1
- package/lib/modules/state-bar/index.css +2 -2
- package/lib/modules/state-bar/index.d.ts +2 -2
- package/lib/modules/state-bar/index.dev.js +12 -10
- package/lib/modules/state-bar/layout-config.js +2 -0
- package/lib/modules/state-bar/live-streaming-state.js +3 -0
- package/lib/modules/state-bar/meeting-detail.css +6 -4
- package/lib/modules/state-bar/meeting-details.js +29 -3
- package/lib/modules/state-bar/meeting-network-state.css +14 -3
- package/lib/modules/state-bar/meeting-network-state.js +10 -4
- package/lib/modules/state-bar/recording.js +9 -11
- package/lib/modules/state-bar/store.d.ts +7 -5
- package/lib/modules/state-bar/store.js +68 -8
- package/lib/modules/state-bar/view.js +4 -8
- package/lib/modules/video-window/context.d.ts +0 -1
- package/lib/modules/video-window/deviceState/index.d.ts +3 -3
- package/lib/modules/video-window/index.css +1 -0
- package/lib/modules/video-window/members/index.js +7 -4
- package/lib/modules/video-window/store.d.ts +5 -4
- package/lib/modules/video-window/store.js +49 -17
- package/lib/modules/video-window/topControl/index.js +7 -0
- package/lib/modules/video-window/view.js +2 -0
- package/lib/modules/waiting-room-layout/context.d.ts +2 -0
- package/lib/modules/waiting-room-layout/context.js +9 -0
- package/lib/modules/waiting-room-layout/index.css +71 -0
- package/lib/modules/waiting-room-layout/index.d.ts +8 -0
- package/lib/modules/waiting-room-layout/index.js +47 -0
- package/lib/modules/waiting-room-layout/store.d.ts +30 -0
- package/lib/modules/waiting-room-layout/store.js +189 -0
- package/lib/modules/waiting-room-layout/type.d.ts +0 -0
- package/lib/modules/waiting-room-layout/type.js +1 -0
- package/lib/modules/waiting-room-layout/view.d.ts +3 -0
- package/lib/modules/waiting-room-layout/view.js +67 -0
- package/lib/modules/whiteboard/app.js +2 -8
- package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +29 -29
- package/lib/modules/whiteboard/components/loading/index.js +2 -2
- package/lib/modules/whiteboard/components/multi-window/index.js +8 -3
- package/lib/modules/whiteboard/components/pagination/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +3 -2
- package/lib/modules/whiteboard/components/progress/style.css +4 -3
- package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.js +29 -17
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +11 -2
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +21 -20
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +11 -9
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +18 -12
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +16 -11
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +8 -7
- package/lib/modules/whiteboard/components/toolbar/store.js +25 -4
- package/lib/modules/whiteboard/context.d.ts +7 -3
- package/lib/modules/whiteboard/context.js +6 -4
- package/lib/modules/whiteboard/index.d.ts +6 -8
- package/lib/modules/whiteboard/index.js +310 -255
- package/lib/modules/whiteboard/type.d.ts +4 -12
- package/lib/modules/whiteboard/type.js +6 -16
- package/lib/modules/whiteboard/utils.d.ts +1 -0
- package/lib/modules/whiteboard/utils.js +12 -1
- package/lib/plugins/browser-runtime-plugin.js +2 -1
- package/lib/plugins/module-dev-plugin.js +12 -10
- package/lib/plugins/multi-lang-plugin.d.ts +1 -5
- package/lib/plugins/multi-lang-plugin.js +2 -0
- package/lib/runtime.d.ts +3 -5
- package/lib/translations/enUS.d.ts +590 -0
- package/lib/translations/enUS.js +608 -6
- package/lib/translations/zhCN.d.ts +588 -0
- package/lib/translations/zhCN.js +604 -4
- package/lib/type.d.ts +6 -2
- package/lib/ui-manager.d.ts +7 -3
- package/lib/ui-manager.js +597 -143
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +32 -22
- package/lib/utilities/board-context.d.ts +0 -1
- package/lib/utilities/constant.d.ts +47 -5
- package/lib/utilities/constant.js +44 -1
- package/lib/utilities/copyText.js +1 -1
- package/lib/utilities/extract.js +26 -3
- package/lib/utilities/hooks.js +2 -0
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/renderer-event.js +28 -0
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +15 -6
- package/lib/utilities/tools.js +5 -2
- package/lib/utilities/ui-resources.d.ts +2 -2
- package/lib/utilities/ui-resources.js +20 -3
- package/lib/utilities/video-track-render-context.d.ts +0 -1
- package/package.json +17 -16
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/login_confirm.png +0 -0
- package/public/index.html +29 -11
- package/lib/modules/device-pretest/settings/index.css +0 -15
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -275
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var _context = require("./context");
|
|
10
|
+
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
11
|
+
require("./index.css");
|
|
12
|
+
var _mobxReact = require("mobx-react");
|
|
13
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
var View = (0, _mobxReact.observer)(function () {
|
|
16
|
+
var t = (0, _i18n.useI18n)();
|
|
17
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
18
|
+
stateBar = _useContext.stateBar,
|
|
19
|
+
actionBar = _useContext.actionBar,
|
|
20
|
+
chat = _useContext.chat,
|
|
21
|
+
cameraDeviceId = _useContext.cameraId,
|
|
22
|
+
startPlayLocalVideo = _useContext.startPlayLocalVideo,
|
|
23
|
+
stopPlayLocalVideo = _useContext.stopPlayLocalVideo,
|
|
24
|
+
cameraEnabled = _useContext.cameraEnabled,
|
|
25
|
+
localUser = _useContext.localUser;
|
|
26
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
27
|
+
className: "waiting-room-layout",
|
|
28
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
29
|
+
className: "waiting-room-module",
|
|
30
|
+
children: stateBar
|
|
31
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32
|
+
className: "waiting-room-title",
|
|
33
|
+
children: t('fmt_waitingroom_attendie_overview_label_waitingroom')
|
|
34
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
|
+
className: "waiting-room-desc",
|
|
36
|
+
children: t('fmt_waitingroom_attendie_overview_label_wait_moment')
|
|
37
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
38
|
+
className: "waiting-room-content",
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
40
|
+
className: "waiting-room-video-content",
|
|
41
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_localVideoPlayer.LocalVideoPlayer, {
|
|
42
|
+
isLocalMirrorEnabled: false,
|
|
43
|
+
userName: localUser.userName,
|
|
44
|
+
showSlider: false,
|
|
45
|
+
cameraDeviceId: cameraDeviceId,
|
|
46
|
+
showCameraPreview: cameraEnabled,
|
|
47
|
+
showTopTips: false,
|
|
48
|
+
startLocalVideo: startPlayLocalVideo,
|
|
49
|
+
stopLocalVideo: stopPlayLocalVideo
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
51
|
+
className: "waiting-room-attendee-name",
|
|
52
|
+
children: [localUser.userName, /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
53
|
+
className: "attendee__me-badge",
|
|
54
|
+
children: ["(", t('fmt_participant_label_Me'), ")"]
|
|
55
|
+
})]
|
|
56
|
+
})]
|
|
57
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
58
|
+
className: "waiting-room-chat-content",
|
|
59
|
+
children: chat
|
|
60
|
+
})]
|
|
61
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
62
|
+
className: "waiting-room-module waiting-room-bottom",
|
|
63
|
+
children: actionBar
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
var _default = exports["default"] = View;
|
|
@@ -12,10 +12,10 @@ var _context = require("./context");
|
|
|
12
12
|
var _mobxReact = require("mobx-react");
|
|
13
13
|
var _loading = require("./components/loading");
|
|
14
14
|
var _progress = _interopRequireDefault(require("./components/progress"));
|
|
15
|
-
var _enums = require("agora-edu-core/lib/room-control/whiteboard-control/enums");
|
|
16
15
|
require("./style.css");
|
|
17
16
|
var _boardContext = _interopRequireDefault(require("../../utilities/board-context"));
|
|
18
17
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
18
|
+
var _agoraEduCore = require("agora-edu-core");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
var Whiteboard = exports.Whiteboard = (0, _mobxReact.observer)(function () {
|
|
21
21
|
var _useContext = (0, _react.useContext)(_boardContext["default"]),
|
|
@@ -31,13 +31,7 @@ var Whiteboard = exports.Whiteboard = (0, _mobxReact.observer)(function () {
|
|
|
31
31
|
handleCollectorDomLoad = _useContext2.handleCollectorDomLoad,
|
|
32
32
|
handleClose = _useContext2.handleClose,
|
|
33
33
|
handleOpen = _useContext2.handleOpen;
|
|
34
|
-
var loading = connectionState ===
|
|
35
|
-
(0, _react.useEffect)(function () {
|
|
36
|
-
handleOpen();
|
|
37
|
-
return function () {
|
|
38
|
-
handleClose();
|
|
39
|
-
};
|
|
40
|
-
}, []);
|
|
34
|
+
var loading = connectionState === _agoraEduCore.FcrConnectionState.CONNECTING || connectionState === _agoraEduCore.FcrConnectionState.RECONNECTING;
|
|
41
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
42
36
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
43
37
|
className: "board-widget-app",
|
|
@@ -15,6 +15,22 @@ require("core-js/modules/es.number.constructor.js");
|
|
|
15
15
|
require("core-js/modules/es.object.create.js");
|
|
16
16
|
require("core-js/modules/es.object.define-property.js");
|
|
17
17
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
18
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
19
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
20
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
21
|
+
require("core-js/modules/esnext.map.every.js");
|
|
22
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
23
|
+
require("core-js/modules/esnext.map.find.js");
|
|
24
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
25
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
26
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
27
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
28
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
29
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
30
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
31
|
+
require("core-js/modules/esnext.map.some.js");
|
|
32
|
+
require("core-js/modules/esnext.map.update.js");
|
|
33
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
18
34
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
19
35
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
20
36
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -27,6 +43,8 @@ require("core-js/modules/es.object.to-string.js");
|
|
|
27
43
|
require("core-js/modules/es.string.includes.js");
|
|
28
44
|
require("core-js/modules/es.string.iterator.js");
|
|
29
45
|
require("core-js/modules/es.weak-map.js");
|
|
46
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
47
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
30
48
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
31
49
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
32
50
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -39,8 +57,8 @@ var _mobx = require("mobx");
|
|
|
39
57
|
var _type2 = require("agora-edu-core/lib/type");
|
|
40
58
|
var _WhiteboardControlBarStore;
|
|
41
59
|
var _initProto, _init_ownerUser, _init_currentUser, _init_lonelywindowOpened, _init_isMinimum, _init_isMaxmum, _init_isAdaptived, _init_isOriginal, _init_scaleValue, _init_controlEnabled, _init_isHost, _setOwnerUserDecs, _onEnableDecs, _ref;
|
|
42
|
-
function _classPrivateFieldInitSpec(
|
|
43
|
-
function _checkPrivateRedeclaration(
|
|
60
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
61
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
44
62
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
45
63
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
46
64
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
@@ -122,9 +140,7 @@ var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*
|
|
|
122
140
|
key: "currentUser",
|
|
123
141
|
get: function get() {
|
|
124
142
|
return _classPrivateFieldGet(_B, this);
|
|
125
|
-
}
|
|
126
|
-
}, {
|
|
127
|
-
key: "currentUser",
|
|
143
|
+
},
|
|
128
144
|
set: function set(v) {
|
|
129
145
|
_classPrivateFieldSet(_B, this, v);
|
|
130
146
|
}
|
|
@@ -132,9 +148,7 @@ var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*
|
|
|
132
148
|
key: "lonelywindowOpened",
|
|
133
149
|
get: function get() {
|
|
134
150
|
return _classPrivateFieldGet(_C, this);
|
|
135
|
-
}
|
|
136
|
-
}, {
|
|
137
|
-
key: "lonelywindowOpened",
|
|
151
|
+
},
|
|
138
152
|
set: function set(v) {
|
|
139
153
|
_classPrivateFieldSet(_C, this, v);
|
|
140
154
|
}
|
|
@@ -142,9 +156,7 @@ var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*
|
|
|
142
156
|
key: "isMinimum",
|
|
143
157
|
get: function get() {
|
|
144
158
|
return _classPrivateFieldGet(_D, this);
|
|
145
|
-
}
|
|
146
|
-
}, {
|
|
147
|
-
key: "isMinimum",
|
|
159
|
+
},
|
|
148
160
|
set: function set(v) {
|
|
149
161
|
_classPrivateFieldSet(_D, this, v);
|
|
150
162
|
}
|
|
@@ -152,9 +164,7 @@ var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*
|
|
|
152
164
|
key: "isMaxmum",
|
|
153
165
|
get: function get() {
|
|
154
166
|
return _classPrivateFieldGet(_E, this);
|
|
155
|
-
}
|
|
156
|
-
}, {
|
|
157
|
-
key: "isMaxmum",
|
|
167
|
+
},
|
|
158
168
|
set: function set(v) {
|
|
159
169
|
_classPrivateFieldSet(_E, this, v);
|
|
160
170
|
}
|
|
@@ -162,9 +172,7 @@ var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*
|
|
|
162
172
|
key: "isAdaptived",
|
|
163
173
|
get: function get() {
|
|
164
174
|
return _classPrivateFieldGet(_F, this);
|
|
165
|
-
}
|
|
166
|
-
}, {
|
|
167
|
-
key: "isAdaptived",
|
|
175
|
+
},
|
|
168
176
|
set: function set(v) {
|
|
169
177
|
_classPrivateFieldSet(_F, this, v);
|
|
170
178
|
}
|
|
@@ -172,9 +180,7 @@ var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*
|
|
|
172
180
|
key: "isOriginal",
|
|
173
181
|
get: function get() {
|
|
174
182
|
return _classPrivateFieldGet(_G, this);
|
|
175
|
-
}
|
|
176
|
-
}, {
|
|
177
|
-
key: "isOriginal",
|
|
183
|
+
},
|
|
178
184
|
set: function set(v) {
|
|
179
185
|
_classPrivateFieldSet(_G, this, v);
|
|
180
186
|
}
|
|
@@ -182,9 +188,7 @@ var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*
|
|
|
182
188
|
key: "scaleValue",
|
|
183
189
|
get: function get() {
|
|
184
190
|
return _classPrivateFieldGet(_H, this);
|
|
185
|
-
}
|
|
186
|
-
}, {
|
|
187
|
-
key: "scaleValue",
|
|
191
|
+
},
|
|
188
192
|
set: function set(v) {
|
|
189
193
|
_classPrivateFieldSet(_H, this, v);
|
|
190
194
|
}
|
|
@@ -192,9 +196,7 @@ var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*
|
|
|
192
196
|
key: "controlEnabled",
|
|
193
197
|
get: function get() {
|
|
194
198
|
return _classPrivateFieldGet(_I, this);
|
|
195
|
-
}
|
|
196
|
-
}, {
|
|
197
|
-
key: "controlEnabled",
|
|
199
|
+
},
|
|
198
200
|
set: function set(v) {
|
|
199
201
|
_classPrivateFieldSet(_I, this, v);
|
|
200
202
|
}
|
|
@@ -202,9 +204,7 @@ var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*
|
|
|
202
204
|
key: "isHost",
|
|
203
205
|
get: function get() {
|
|
204
206
|
return _classPrivateFieldGet(_J, this);
|
|
205
|
-
}
|
|
206
|
-
}, {
|
|
207
|
-
key: "isHost",
|
|
207
|
+
},
|
|
208
208
|
set: function set(v) {
|
|
209
209
|
_classPrivateFieldSet(_J, this, v);
|
|
210
210
|
}
|
|
@@ -15,7 +15,7 @@ var _mobxReact = require("mobx-react");
|
|
|
15
15
|
var _context = require("../../context");
|
|
16
16
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
17
17
|
var _button = require("agora-ui-foundation/lib/components/button");
|
|
18
|
-
var
|
|
18
|
+
var _agoraEduCore = require("agora-edu-core");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
var Loading = exports.Loading = (0, _mobxReact.observer)(function () {
|
|
21
21
|
var transI18n = (0, _i18n.useI18n)();
|
|
@@ -25,7 +25,7 @@ var Loading = exports.Loading = (0, _mobxReact.observer)(function () {
|
|
|
25
25
|
joinSuccessed = _useContext$observabl.joinSuccessed,
|
|
26
26
|
canOperate = _useContext$observabl.canOperate,
|
|
27
27
|
handleClose = _useContext.handleClose;
|
|
28
|
-
var isReconnecting = connectionState ===
|
|
28
|
+
var isReconnecting = connectionState === _agoraEduCore.FcrConnectionState.RECONNECTING || connectionState === _agoraEduCore.FcrConnectionState.CONNECTING && joinSuccessed;
|
|
29
29
|
var _useState = (0, _react.useState)(!isReconnecting || !canOperate),
|
|
30
30
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
31
31
|
minimize = _useState2[0],
|
|
@@ -10,17 +10,21 @@ var _mobxReact = require("mobx-react");
|
|
|
10
10
|
var _controlBar = require("../control-bar");
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _context = require("../../context");
|
|
13
|
-
var _enums = require("agora-edu-core/lib/room-control/whiteboard-control/enums");
|
|
14
13
|
require("./index.css");
|
|
15
14
|
var _boardContext = _interopRequireDefault(require("../../../../utilities/board-context"));
|
|
15
|
+
var _agoraEduCore = require("agora-edu-core");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
var MultiWindowWidgetDialog = exports.MultiWindowWidgetDialog = (0, _mobxReact.observer)(function (_ref) {
|
|
18
18
|
var children = _ref.children;
|
|
19
19
|
var _useContext = (0, _react.useContext)(_context.BoardUIContext),
|
|
20
|
-
connectionState = _useContext.observables.connectionState
|
|
20
|
+
connectionState = _useContext.observables.connectionState,
|
|
21
|
+
setWhiteboardVisible = _useContext.setWhiteboardVisible;
|
|
21
22
|
var _useContext2 = (0, _react.useContext)(_boardContext["default"]),
|
|
22
23
|
showToolbar = _useContext2.showToolbar;
|
|
23
|
-
var showControlbar = connectionState ===
|
|
24
|
+
var showControlbar = connectionState === _agoraEduCore.FcrConnectionState.CONNECTED;
|
|
25
|
+
var handleCancel = function handleCancel() {
|
|
26
|
+
setWhiteboardVisible(false);
|
|
27
|
+
};
|
|
24
28
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
25
29
|
className: "fcr-widget-dialog-zindex-wrapper fcr-widget-dialog",
|
|
26
30
|
children: [showControlbar && showToolbar && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -28,6 +32,7 @@ var MultiWindowWidgetDialog = exports.MultiWindowWidgetDialog = (0, _mobxReact.o
|
|
|
28
32
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_controlBar.WhiteboardControlbar, {})
|
|
29
33
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
30
34
|
className: "fcr-widget-dialog-content",
|
|
35
|
+
onClick: handleCancel,
|
|
31
36
|
children: children
|
|
32
37
|
})]
|
|
33
38
|
});
|
|
@@ -12,7 +12,7 @@ var ProgressElectronDialog = (0, _mobxReact.observer)(function (_ref) {
|
|
|
12
12
|
var node;
|
|
13
13
|
window.runtime.openRendererWindow('progress-dialog', function (dom) {
|
|
14
14
|
node = dom;
|
|
15
|
-
(0, _reactDom.render)(
|
|
15
|
+
(0, _reactDom.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_context.StoreContext.Provider, {
|
|
16
16
|
value: store,
|
|
17
17
|
children: children
|
|
18
18
|
}), dom);
|
|
@@ -21,7 +21,8 @@ var ProgressElectronDialog = (0, _mobxReact.observer)(function (_ref) {
|
|
|
21
21
|
fullscreen: false,
|
|
22
22
|
maximizable: false,
|
|
23
23
|
width: 290,
|
|
24
|
-
height: 60
|
|
24
|
+
height: 60,
|
|
25
|
+
transparent: true
|
|
25
26
|
});
|
|
26
27
|
return function () {
|
|
27
28
|
(0, _reactDom.unmountComponentAtNode)(node);
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
.progress-dialog-frame {
|
|
2
2
|
width: 290px;
|
|
3
|
-
height: 58px;
|
|
3
|
+
min-height: 58px;
|
|
4
|
+
padding: 10px 0;
|
|
4
5
|
border-radius: var(--fcr_cornerradius_s);
|
|
5
6
|
background: var(--fcr_ui_scene_white6);
|
|
6
7
|
box-shadow: var(--fcr_web_light_dropup);
|
|
7
8
|
display: flex;
|
|
8
9
|
align-items: center;
|
|
9
10
|
z-index: 1000;
|
|
10
|
-
position:
|
|
11
|
-
top: calc(100% -
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: calc(100% - 98px);
|
|
12
13
|
left: calc(100vw - 310px);
|
|
13
14
|
}
|
|
14
15
|
.progress-dialog-icon {
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
background: var(--fcr_web_ui_scene_fill4_popup);
|
|
31
31
|
color: var(--fcr_ui_scene_icontext1);
|
|
32
32
|
}
|
|
33
|
+
.whiteboard-switch-theme_item-active {
|
|
34
|
+
background-color: var(--fcr_ui_scene_ramp_brand6);
|
|
35
|
+
}
|
|
36
|
+
|
|
33
37
|
.whiteboard-switch-theme_item-close {
|
|
34
38
|
width: 30px;
|
|
35
39
|
height: 30px;
|
|
@@ -5,11 +5,15 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] =
|
|
8
|
+
exports["default"] = void 0;
|
|
9
9
|
require("core-js/modules/es.array.find.js");
|
|
10
10
|
require("core-js/modules/es.array.map.js");
|
|
11
11
|
require("core-js/modules/es.object.to-string.js");
|
|
12
|
-
|
|
12
|
+
require("core-js/modules/esnext.async-iterator.find.js");
|
|
13
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
14
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
15
|
+
require("core-js/modules/esnext.iterator.find.js");
|
|
16
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
13
17
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
14
18
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
15
19
|
var _popover = require("agora-ui-foundation/lib/components/popover");
|
|
@@ -18,14 +22,22 @@ var _item = _interopRequireDefault(require("./item"));
|
|
|
18
22
|
var _libs = _interopRequireDefault(require("./libs"));
|
|
19
23
|
var _react = require("react");
|
|
20
24
|
var _store = require("../toolbar/store");
|
|
25
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
26
|
+
var _context = require("../../context");
|
|
27
|
+
var _mobxReact = require("mobx-react");
|
|
21
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
|
-
|
|
29
|
+
var WhiteboardSwitchTheme = (0, _mobxReact.observer)(function () {
|
|
23
30
|
var _useContext = (0, _react.useContext)(_store.ToolbarContext),
|
|
24
|
-
setTheme = _useContext.setTheme
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
setTheme = _useContext.setTheme,
|
|
32
|
+
currentThemeType = _useContext.observables.currentThemeType;
|
|
33
|
+
// const [visible, setVisible] = useState(false);
|
|
34
|
+
var _useContext2 = (0, _react.useContext)(_context.BoardUIContext),
|
|
35
|
+
whiteboardVisible = _useContext2.observables.whiteboardVisible,
|
|
36
|
+
setWhiteboardVisible = _useContext2.setWhiteboardVisible;
|
|
37
|
+
var t = (0, _i18n.useI18n)();
|
|
38
|
+
var handleCancel = function handleCancel() {
|
|
39
|
+
setWhiteboardVisible(false);
|
|
40
|
+
};
|
|
29
41
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
30
42
|
trigger: "click",
|
|
31
43
|
overlayClassName: "whiteboard-switch-theme-popover",
|
|
@@ -33,27 +45,26 @@ function WhiteboardSwitchTheme() {
|
|
|
33
45
|
width: '100%'
|
|
34
46
|
},
|
|
35
47
|
overlayOffset: 2,
|
|
36
|
-
visible:
|
|
48
|
+
visible: whiteboardVisible,
|
|
37
49
|
content: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
38
50
|
className: "whiteboard-switch-theme",
|
|
39
|
-
children: [_libs["default"].map(function (theme, idx) {
|
|
51
|
+
children: [(0, _libs["default"])(t).map(function (theme, idx) {
|
|
40
52
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_item["default"], {
|
|
41
53
|
colors: theme.showColors,
|
|
42
54
|
title: theme.title,
|
|
43
55
|
theme: theme.theme,
|
|
56
|
+
isActive: currentThemeType.theme === theme.theme,
|
|
44
57
|
onClick: function onClick(theme) {
|
|
45
|
-
var result = _libs["default"].find(function (item) {
|
|
58
|
+
var result = (0, _libs["default"])(t).find(function (item) {
|
|
46
59
|
return item.theme === theme.theme;
|
|
47
60
|
});
|
|
48
61
|
setTheme(result);
|
|
49
|
-
|
|
62
|
+
setWhiteboardVisible(false);
|
|
50
63
|
}
|
|
51
64
|
}, theme.theme);
|
|
52
65
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
53
66
|
className: "whiteboard-switch-theme_item-close",
|
|
54
|
-
onClick:
|
|
55
|
-
return setVisible(false);
|
|
56
|
-
},
|
|
67
|
+
onClick: handleCancel,
|
|
57
68
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
58
69
|
size: 20,
|
|
59
70
|
type: _type.FcrIconType.FCR_CLOSE,
|
|
@@ -70,8 +81,9 @@ function WhiteboardSwitchTheme() {
|
|
|
70
81
|
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
71
82
|
},
|
|
72
83
|
onClick: function onClick() {
|
|
73
|
-
return
|
|
84
|
+
return setWhiteboardVisible(!whiteboardVisible);
|
|
74
85
|
}
|
|
75
86
|
})
|
|
76
87
|
});
|
|
77
|
-
}
|
|
88
|
+
});
|
|
89
|
+
var _default = exports["default"] = WhiteboardSwitchTheme;
|
|
@@ -1,19 +1,28 @@
|
|
|
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"] = WhiteboardSwitchThemeItem;
|
|
8
9
|
require("core-js/modules/es.array.concat.js");
|
|
9
10
|
require("core-js/modules/es.array.map.js");
|
|
11
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
12
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
13
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
15
|
function WhiteboardSwitchThemeItem(props) {
|
|
12
16
|
var title = props.title,
|
|
13
17
|
colors = props.colors,
|
|
14
|
-
theme = props.theme
|
|
18
|
+
theme = props.theme,
|
|
19
|
+
_props$isActive = props.isActive,
|
|
20
|
+
isActive = _props$isActive === void 0 ? false : _props$isActive;
|
|
21
|
+
var cls = (0, _classnames["default"])('whiteboard-switch-theme_item', {
|
|
22
|
+
'whiteboard-switch-theme_item-active': isActive
|
|
23
|
+
});
|
|
15
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
16
|
-
className:
|
|
25
|
+
className: cls,
|
|
17
26
|
onClick: function onClick() {
|
|
18
27
|
return props.onClick({
|
|
19
28
|
colors: colors,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GenerateI18nKey } from 'agora-ui-foundation/lib/i18n';
|
|
1
2
|
import { WhiteboardThemeType } from '../../type';
|
|
2
|
-
declare const whiteboardTheme: Required<WhiteboardThemeType>[];
|
|
3
|
+
declare const whiteboardTheme: (t: (t: GenerateI18nKey<I18nResouceTypes>) => string) => Required<WhiteboardThemeType>[];
|
|
3
4
|
export default whiteboardTheme;
|
|
@@ -5,24 +5,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}, {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}];
|
|
8
|
+
var whiteboardTheme = function whiteboardTheme(t) {
|
|
9
|
+
return [{
|
|
10
|
+
showColors: [['#E2E2E2', '#968D86', '#0E0E0E'], ['#A1C473', '#FFC908', '#FF86C9', '#FC3141']],
|
|
11
|
+
colors: ['#E2E2E2', '#A1C473', '#FFC908', '#CC3100', '#968D86', '#4262FF', '#51BD69', '#EB47A2', '#0E0E0E', '#50E3C2', '#FC3141', '#7740EC'],
|
|
12
|
+
background: '#ffffff',
|
|
13
|
+
title: t('fmt_screenshare_whiteboard_tips_defaultwhiteboard'),
|
|
14
|
+
theme: 'whiteboard'
|
|
15
|
+
}, {
|
|
16
|
+
showColors: [['#FFFFFF', '#968D86', '#717171'], ['#A1C473', '#FFC908', '#FF86C9', '#FC3141']],
|
|
17
|
+
colors: ['#FFFFFF', '#A1C473', '#FFC908', '#CC3100', '#968D86', '#4262FF', '#51BD69', '#EB47A2', '#0E0E0E', '#50E3C2', '#FC3141', '#7740EC'],
|
|
18
|
+
background: '#000000',
|
|
19
|
+
title: t('fmt_screenshare_whiteboard_tips_blackboard'),
|
|
20
|
+
theme: 'blackboard'
|
|
21
|
+
}, {
|
|
22
|
+
showColors: [['#E2E2E2', '#E8B288', '#0E0E0E'], ['#A1C473', '#FFC908', '#FFAFDC', '#FF616D']],
|
|
23
|
+
colors: ['#E2E2E2', '#A1C473', '#FFC908', '#CC3100', '#968D86', '#4262FF', '#51BD69', '#EB47A2', '#0E0E0E', '#50E3C2', '#FC3141', '#7740EC'],
|
|
24
|
+
background: '#5A7D75',
|
|
25
|
+
title: t('fmt_screenshare_whiteboard_lables_wallpoaster'),
|
|
26
|
+
theme: 'chalkboard'
|
|
27
|
+
}];
|
|
28
|
+
};
|
|
28
29
|
var _default = exports["default"] = whiteboardTheme;
|
package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js
CHANGED
|
@@ -10,6 +10,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
10
10
|
require("core-js/modules/es.array.includes.js");
|
|
11
11
|
require("core-js/modules/es.array.map.js");
|
|
12
12
|
require("core-js/modules/es.string.includes.js");
|
|
13
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
14
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
13
15
|
var _mobxReact = require("mobx-react");
|
|
14
16
|
var _react = require("react");
|
|
15
17
|
var _store = require("../../../store");
|
|
@@ -8,6 +8,8 @@ exports.ColorPickerItem = void 0;
|
|
|
8
8
|
require("core-js/modules/es.array.map.js");
|
|
9
9
|
require("core-js/modules/es.array.push.js");
|
|
10
10
|
require("core-js/modules/es.array.slice.js");
|
|
11
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
12
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
11
13
|
var _mobxReact = require("mobx-react");
|
|
12
14
|
var _react = require("react");
|
|
13
15
|
var _store = require("../../store");
|
|
@@ -32,7 +34,7 @@ var ColorPickerItem = exports.ColorPickerItem = (0, _mobxReact.observer)(functio
|
|
|
32
34
|
}, color);
|
|
33
35
|
}).slice(0, Math.min(showColorCount - commonColors.length + 1, commonColors.length));
|
|
34
36
|
if (showColorCount > 0) {
|
|
35
|
-
list.push(
|
|
37
|
+
list.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(_picker.Picker, {}, "picker"));
|
|
36
38
|
}
|
|
37
39
|
} else {
|
|
38
40
|
list = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_picker.Picker, {}, "picker")];
|