fcr-ui-scene 3.2.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/electron/app.js +148 -0
- package/dist/electron/bootstrap-dev.js +51 -0
- package/dist/electron/bootstrap-sdk.js +56 -0
- package/dist/electron/default-options.js +25 -0
- package/dist/electron/env.js +13 -0
- package/dist/electron/index.js +20 -0
- package/dist/electron/injections.js +702 -0
- package/dist/electron/logger.js +66 -0
- package/dist/electron/main.js +67 -0
- package/dist/electron/plugins/meeting-state.js +39 -0
- package/dist/electron/plugins/screenshot.js +49 -0
- package/dist/electron/preload.js +36 -0
- package/dist/electron/tools.js +66 -0
- package/dist/electron/window.js +124 -0
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/common/device-store.d.ts +1 -1
- package/lib/common/device-store.js +11 -3
- package/lib/common/event-store.d.ts +17 -1
- package/lib/common/event-store.js +38 -5
- package/lib/common/room-store.d.ts +55 -0
- package/lib/common/room-store.js +395 -0
- package/lib/common/security-store.d.ts +14 -4
- package/lib/common/security-store.js +149 -30
- package/lib/creator.js +2 -0
- package/lib/electron/app.js +8 -0
- 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 +57 -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 +2 -1
- package/lib/electron/injections.js +6 -6
- package/lib/electron/main.js +4 -16
- 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/fragments/control-bar/control-bar-store.d.ts +34 -1
- package/lib/fragments/control-bar/control-bar-store.js +371 -79
- package/lib/fragments/control-bar/device/index.js +5 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +18 -0
- 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 +72 -37
- package/lib/fragments/control-bar/security-content/index.css +10 -0
- package/lib/fragments/control-bar/security-content/index.js +40 -18
- package/lib/fragments/control-bar/view.js +8 -2
- package/lib/login-confirm-dialog.d.ts +12 -0
- package/lib/login-confirm-dialog.js +80 -0
- package/lib/modules/Interpreter/add-button/index.css +4 -0
- package/lib/modules/Interpreter/add-button/index.d.ts +11 -0
- package/lib/modules/Interpreter/add-button/index.js +41 -0
- package/lib/modules/Interpreter/config.d.ts +16 -0
- package/lib/modules/Interpreter/config.js +17 -0
- package/lib/modules/Interpreter/constant.d.ts +44 -0
- package/lib/modules/Interpreter/constant.js +60 -0
- package/lib/modules/Interpreter/context.d.ts +2 -0
- package/lib/modules/Interpreter/context.js +9 -0
- package/lib/modules/Interpreter/dialog-content/index.css +33 -0
- package/lib/modules/Interpreter/dialog-content/index.d.ts +8 -0
- package/lib/modules/Interpreter/dialog-content/index.js +34 -0
- package/lib/modules/Interpreter/footer/components/interpreter-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +56 -0
- package/lib/modules/Interpreter/footer/components/set-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/footer/components/set-btn/index.js +46 -0
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +28 -0
- package/lib/modules/Interpreter/footer/index.css +10 -0
- package/lib/modules/Interpreter/footer/index.d.ts +3 -0
- package/lib/modules/Interpreter/footer/index.js +35 -0
- package/lib/modules/Interpreter/index.css +8 -0
- package/lib/modules/Interpreter/index.d.ts +21 -0
- package/lib/modules/Interpreter/index.js +110 -0
- package/lib/modules/Interpreter/interpreter-list/index.css +21 -0
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +3 -0
- package/lib/modules/Interpreter/interpreter-list/index.js +65 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +31 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +11 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +141 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +11 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +119 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +41 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +12 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +118 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +34 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +8 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +65 -0
- package/lib/modules/Interpreter/loading-wrapper/index.css +53 -0
- package/lib/modules/Interpreter/loading-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/loading-wrapper/index.js +28 -0
- package/lib/modules/Interpreter/store.d.ts +82 -0
- package/lib/modules/Interpreter/store.js +1382 -0
- package/lib/modules/Interpreter/view.d.ts +3 -0
- package/lib/modules/Interpreter/view.js +32 -0
- package/lib/modules/action-bar/Interpreter/index.d.ts +6 -0
- package/lib/modules/action-bar/Interpreter/index.js +44 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +5 -5
- package/lib/modules/action-bar/apps/appitems.d.ts +2 -0
- package/lib/modules/action-bar/apps/appitems.js +40 -0
- package/lib/modules/action-bar/apps/index.css +6 -0
- package/lib/modules/action-bar/apps/index.d.ts +4 -0
- package/lib/modules/action-bar/apps/index.js +58 -0
- package/lib/modules/action-bar/chat/index.js +5 -5
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.js +4 -4
- package/lib/modules/action-bar/index.css +59 -12
- package/lib/modules/action-bar/index.d.ts +3 -2
- package/lib/modules/action-bar/index.dev.js +1 -1
- package/lib/modules/action-bar/index.js +21 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -0
- package/lib/modules/action-bar/leave/assign-host.js +2 -4
- package/lib/modules/action-bar/leave/index.js +29 -6
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -0
- package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
- package/lib/modules/action-bar/more/poppover-content.js +4 -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 +16 -22
- package/lib/modules/action-bar/security/drop-menu.js +90 -13
- package/lib/modules/action-bar/store.d.ts +38 -6
- package/lib/modules/action-bar/store.js +487 -95
- package/lib/modules/action-bar/switch-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/switch-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/switch-input-language-room/index.d.ts +17 -0
- package/lib/modules/action-bar/switch-input-language-room/index.js +145 -0
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.d.ts +1 -0
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +197 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.css +18 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +8 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +59 -0
- package/lib/modules/action-bar/switch-output-language-room/index.d.ts +12 -0
- package/lib/modules/action-bar/switch-output-language-room/index.js +238 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +54 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.d.ts +8 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +94 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +8 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +4 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +31 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +71 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +82 -0
- package/lib/modules/action-bar/view.js +65 -42
- package/lib/modules/chat/chat-bar/index.js +39 -27
- package/lib/modules/chat/chat-select/index.css +14 -4
- package/lib/modules/chat/chat.d.ts +1 -2
- package/lib/modules/chat/chat.js +184 -105
- package/lib/modules/chat/index.css +49 -0
- package/lib/modules/chat/index.d.ts +2 -2
- package/lib/modules/chat/index.dev.js +1 -1
- package/lib/modules/chat/index.js +13 -8
- package/lib/modules/chat/message-list.js +59 -48
- package/lib/modules/chat/store.d.ts +48 -2
- package/lib/modules/chat/store.js +258 -45
- package/lib/modules/connection-gateway/index.d.ts +2 -1
- package/lib/modules/connection-gateway/store.d.ts +6 -3
- package/lib/modules/connection-gateway/store.js +5 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
- package/lib/modules/device-pretest/index.css +0 -4
- package/lib/modules/device-pretest/settings/beauty.js +17 -6
- package/lib/modules/device-pretest/store.js +7 -11
- package/lib/modules/dialog/components/Interpreter/electron.d.ts +2 -0
- package/lib/modules/dialog/components/Interpreter/electron.js +72 -0
- package/lib/modules/dialog/components/Interpreter/index.css +30 -0
- package/lib/modules/dialog/components/Interpreter/index.d.ts +4 -0
- package/lib/modules/dialog/components/Interpreter/index.js +61 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.css +36 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +3 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.js +47 -0
- package/lib/modules/dialog/components/chat/electron.js +2 -1
- package/lib/modules/dialog/components/confirm/electron.js +5 -3
- package/lib/modules/dialog/components/connection-gateway/electron.js +3 -1
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/device-setting/electron.js +3 -1
- package/lib/modules/dialog/components/device-setting/index.css +0 -1
- 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 +2 -1
- 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/switch-language-channels/electron.d.ts +2 -0
- package/lib/modules/dialog/components/switch-language-channels/electron.js +72 -0
- package/lib/modules/dialog/components/switch-language-channels/index.css +30 -0
- package/lib/modules/dialog/components/switch-language-channels/index.d.ts +4 -0
- package/lib/modules/dialog/components/switch-language-channels/index.js +63 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.css +36 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.d.ts +3 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.js +47 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -1
- package/lib/modules/dialog/dialogs.js +17 -13
- package/lib/modules/dialog/index.css +2 -0
- package/lib/modules/dialog/store.d.ts +4 -0
- package/lib/modules/dialog/store.js +16 -2
- 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/invite/index.css +4 -4
- package/lib/modules/invite/pstn-invite.js +1 -0
- package/lib/modules/layout/components/Gallery.js +7 -1
- package/lib/modules/layout/components/Layout.js +82 -57
- package/lib/modules/layout/components/index.css +33 -6
- package/lib/modules/layout/index.css +30 -0
- package/lib/modules/layout/member-window/index.js +9 -3
- package/lib/modules/layout/store.d.ts +19 -2
- package/lib/modules/layout/store.js +177 -70
- package/lib/modules/layout/video-window-datasource.d.ts +1 -1
- package/lib/modules/layout/video-window-datasource.js +1 -1
- package/lib/modules/live-streaming/index.dev.js +1 -1
- package/lib/modules/notification/context.d.ts +2 -0
- package/lib/modules/notification/context.js +9 -0
- package/lib/modules/notification/index.css +58 -0
- package/lib/modules/notification/index.d.ts +15 -0
- package/lib/modules/notification/index.js +51 -0
- package/lib/modules/notification/interpreter-status/index.css +72 -0
- package/lib/modules/notification/interpreter-status/index.d.ts +3 -0
- package/lib/modules/notification/interpreter-status/index.js +59 -0
- package/lib/modules/notification/store.d.ts +16 -0
- package/lib/modules/notification/store.js +127 -0
- package/lib/modules/notification/view.d.ts +10 -0
- package/lib/modules/notification/view.js +116 -0
- package/lib/modules/participant/attendee/index.d.ts +12 -3
- package/lib/modules/participant/attendee/index.js +132 -30
- package/lib/modules/participant/index.css +20 -0
- package/lib/modules/participant/index.d.ts +5 -2
- package/lib/modules/participant/index.dev.js +1 -1
- package/lib/modules/participant/index.js +27 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/store.d.ts +30 -5
- package/lib/modules/participant/store.js +347 -74
- package/lib/modules/participant/view.js +133 -34
- package/lib/modules/setting/index.css +1 -5
- package/lib/modules/setting/index.dev.js +1 -1
- package/lib/modules/setting/store.d.ts +2 -2
- package/lib/modules/setting/store.js +3 -8
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/setting/video-settings/index.css +9 -6
- package/lib/modules/share-screen/index.d.ts +2 -0
- package/lib/modules/share-screen/index.dev.js +3 -2
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/store.d.ts +6 -3
- package/lib/modules/share-screen/store.js +170 -129
- 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 +1 -1
- package/lib/modules/state-bar/meeting-detail.css +6 -4
- package/lib/modules/state-bar/meeting-details.js +32 -5
- 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 +3 -5
- package/lib/modules/state-bar/store.d.ts +5 -2
- package/lib/modules/state-bar/store.js +32 -5
- package/lib/modules/state-bar/view.js +7 -10
- package/lib/modules/video-window/index.css +1 -0
- package/lib/modules/video-window/store.d.ts +2 -2
- package/lib/modules/video-window/store.js +14 -11
- 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 +0 -6
- package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +6 -1
- package/lib/modules/whiteboard/components/progress/electron.js +2 -1
- 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 +20 -15
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +9 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +14 -10
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +3 -0
- package/lib/modules/whiteboard/context.d.ts +4 -0
- package/lib/modules/whiteboard/context.js +4 -2
- package/lib/modules/whiteboard/index.js +22 -6
- package/lib/plugins/browser-runtime-plugin.js +4 -1
- package/lib/plugins/module-dev-plugin.js +8 -6
- package/lib/runtime.d.ts +2 -1
- package/lib/translations/enUS.d.ts +449 -6
- package/lib/translations/enUS.js +485 -32
- package/lib/translations/zhCN.d.ts +447 -6
- package/lib/translations/zhCN.js +468 -17
- package/lib/type.d.ts +6 -2
- package/lib/ui-manager.d.ts +7 -3
- package/lib/ui-manager.js +576 -139
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +26 -21
- package/lib/utilities/constant.d.ts +43 -4
- package/lib/utilities/constant.js +41 -1
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +6 -2
- package/package.json +14 -14
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/login_confirm.png +0 -0
- package/public/index.html +34 -11
- package/dist/132.js +0 -2
- package/dist/132.js.LICENSE.txt +0 -311
- package/dist/651.js +0 -2
- package/dist/651.js.LICENSE.txt +0 -1
- package/dist/73.js +0 -1
- package/dist/index.html +0 -13
- package/dist/main.da7c203ab32d15742cfe.css +0 -11760
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -254
- package/dist/worker-entry.worker.js.LICENSE.txt +0 -13
- 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 -278
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
|
7
|
+
require("core-js/modules/es.error.to-string.js");
|
|
8
|
+
require("core-js/modules/es.array.is-array.js");
|
|
9
|
+
require("core-js/modules/es.array.push.js");
|
|
10
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
11
|
+
require("core-js/modules/es.function.bind.js");
|
|
12
|
+
require("core-js/modules/es.function.name.js");
|
|
13
|
+
require("core-js/modules/es.map.js");
|
|
14
|
+
require("core-js/modules/es.number.constructor.js");
|
|
15
|
+
require("core-js/modules/es.object.create.js");
|
|
16
|
+
require("core-js/modules/es.object.define-property.js");
|
|
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");
|
|
34
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
35
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
36
|
+
Object.defineProperty(exports, "__esModule", {
|
|
37
|
+
value: true
|
|
38
|
+
});
|
|
39
|
+
exports["default"] = void 0;
|
|
40
|
+
require("core-js/modules/es.array.iterator.js");
|
|
41
|
+
require("core-js/modules/es.object.to-string.js");
|
|
42
|
+
require("core-js/modules/es.string.iterator.js");
|
|
43
|
+
require("core-js/modules/es.weak-map.js");
|
|
44
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
45
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
46
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
47
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
48
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
49
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
50
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
51
|
+
var _mobx = require("mobx");
|
|
52
|
+
var _LayoutStore;
|
|
53
|
+
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _setCameraEnabledDecs, _updateSlotsDecs, _ref;
|
|
54
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
55
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
56
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
57
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
58
|
+
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"); }
|
|
59
|
+
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
60
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
61
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
62
|
+
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
63
|
+
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
64
|
+
var _A = /*#__PURE__*/new WeakMap();
|
|
65
|
+
var _B = /*#__PURE__*/new WeakMap();
|
|
66
|
+
var _C = /*#__PURE__*/new WeakMap();
|
|
67
|
+
var _D = /*#__PURE__*/new WeakMap();
|
|
68
|
+
var _E = /*#__PURE__*/new WeakMap();
|
|
69
|
+
var _F = /*#__PURE__*/new WeakMap();
|
|
70
|
+
_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], _startPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _stopPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _setCameraEnabledDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], "_deviceStore");
|
|
71
|
+
var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
72
|
+
function LayoutStore(params) {
|
|
73
|
+
(0, _classCallCheck2["default"])(this, LayoutStore);
|
|
74
|
+
(0, _defineProperty2["default"])(this, _ref, void _initProto(this));
|
|
75
|
+
// Slots
|
|
76
|
+
_classPrivateFieldInitSpec(this, _A, _init_participant(this, null));
|
|
77
|
+
_classPrivateFieldInitSpec(this, _B, _init_chat(this, null));
|
|
78
|
+
_classPrivateFieldInitSpec(this, _C, _init_stateBar(this, null));
|
|
79
|
+
_classPrivateFieldInitSpec(this, _D, _init_actionBar(this, null));
|
|
80
|
+
_classPrivateFieldInitSpec(this, _E, _init_layers(this, null));
|
|
81
|
+
_classPrivateFieldInitSpec(this, _F, _init_whiteboard(this, null));
|
|
82
|
+
this._deviceStore = params.deviceStore;
|
|
83
|
+
this._userControl = params.userControl;
|
|
84
|
+
}
|
|
85
|
+
return (0, _createClass2["default"])(LayoutStore, [{
|
|
86
|
+
key: "participant",
|
|
87
|
+
get: function get() {
|
|
88
|
+
return _classPrivateFieldGet(_A, this);
|
|
89
|
+
},
|
|
90
|
+
set: function set(v) {
|
|
91
|
+
_classPrivateFieldSet(_A, this, v);
|
|
92
|
+
}
|
|
93
|
+
}, {
|
|
94
|
+
key: "chat",
|
|
95
|
+
get: function get() {
|
|
96
|
+
return _classPrivateFieldGet(_B, this);
|
|
97
|
+
},
|
|
98
|
+
set: function set(v) {
|
|
99
|
+
_classPrivateFieldSet(_B, this, v);
|
|
100
|
+
}
|
|
101
|
+
}, {
|
|
102
|
+
key: "stateBar",
|
|
103
|
+
get: function get() {
|
|
104
|
+
return _classPrivateFieldGet(_C, this);
|
|
105
|
+
},
|
|
106
|
+
set: function set(v) {
|
|
107
|
+
_classPrivateFieldSet(_C, this, v);
|
|
108
|
+
}
|
|
109
|
+
}, {
|
|
110
|
+
key: "actionBar",
|
|
111
|
+
get: function get() {
|
|
112
|
+
return _classPrivateFieldGet(_D, this);
|
|
113
|
+
},
|
|
114
|
+
set: function set(v) {
|
|
115
|
+
_classPrivateFieldSet(_D, this, v);
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
key: "layers",
|
|
119
|
+
get: function get() {
|
|
120
|
+
return _classPrivateFieldGet(_E, this);
|
|
121
|
+
},
|
|
122
|
+
set: function set(v) {
|
|
123
|
+
_classPrivateFieldSet(_E, this, v);
|
|
124
|
+
}
|
|
125
|
+
}, {
|
|
126
|
+
key: "whiteboard",
|
|
127
|
+
get: function get() {
|
|
128
|
+
return _classPrivateFieldGet(_F, this);
|
|
129
|
+
},
|
|
130
|
+
set: function set(v) {
|
|
131
|
+
_classPrivateFieldSet(_F, this, v);
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
key: "localUser",
|
|
135
|
+
get: function get() {
|
|
136
|
+
return this._userControl.getLocalUser();
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
key: "cameraId",
|
|
140
|
+
get: function get() {
|
|
141
|
+
return this._deviceStore.cameraId;
|
|
142
|
+
}
|
|
143
|
+
}, {
|
|
144
|
+
key: "cameraEnabled",
|
|
145
|
+
get: function get() {
|
|
146
|
+
return this._deviceStore.cameraEnabled;
|
|
147
|
+
}
|
|
148
|
+
}, {
|
|
149
|
+
key: "startPlayLocalVideo",
|
|
150
|
+
value: function startPlayLocalVideo(view, isMirror) {
|
|
151
|
+
return this._deviceStore.startPlayLocalVideo(view, isMirror);
|
|
152
|
+
}
|
|
153
|
+
}, {
|
|
154
|
+
key: "stopPlayLocalVideo",
|
|
155
|
+
value: function stopPlayLocalVideo(view) {
|
|
156
|
+
return this._deviceStore.stopPlayLocalVideo(view);
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
159
|
+
key: "setCameraEnabled",
|
|
160
|
+
value: function setCameraEnabled(enable) {
|
|
161
|
+
this._deviceStore.handleRealCameraEnabledChanged(enable);
|
|
162
|
+
this._deviceStore.cameraEnabled = enable;
|
|
163
|
+
}
|
|
164
|
+
}, {
|
|
165
|
+
key: "updateSlots",
|
|
166
|
+
value: function updateSlots(slots) {
|
|
167
|
+
for (var key in slots) {
|
|
168
|
+
var slot = slots[key];
|
|
169
|
+
if (key in this && slot !== undefined) {
|
|
170
|
+
this[key] = slot;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}, {
|
|
175
|
+
key: "release",
|
|
176
|
+
value: function release() {
|
|
177
|
+
// this._chatRoomControl.removeObserver(this._chatRoomObserver);
|
|
178
|
+
}
|
|
179
|
+
}]);
|
|
180
|
+
}();
|
|
181
|
+
_LayoutStore = LayoutStore;
|
|
182
|
+
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"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [_setCameraEnabledDecs, 18, "setCameraEnabled"], [_updateSlotsDecs, 18, "updateSlots"]], []).e, 7);
|
|
183
|
+
_init_participant = _applyDecs$e[0];
|
|
184
|
+
_init_chat = _applyDecs$e[1];
|
|
185
|
+
_init_stateBar = _applyDecs$e[2];
|
|
186
|
+
_init_actionBar = _applyDecs$e[3];
|
|
187
|
+
_init_layers = _applyDecs$e[4];
|
|
188
|
+
_init_whiteboard = _applyDecs$e[5];
|
|
189
|
+
_initProto = _applyDecs$e[6];
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -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;
|
|
@@ -32,12 +32,6 @@ var Whiteboard = exports.Whiteboard = (0, _mobxReact.observer)(function () {
|
|
|
32
32
|
handleClose = _useContext2.handleClose,
|
|
33
33
|
handleOpen = _useContext2.handleOpen;
|
|
34
34
|
var loading = connectionState === _agoraEduCore.FcrConnectionState.CONNECTING || connectionState === _agoraEduCore.FcrConnectionState.RECONNECTING;
|
|
35
|
-
(0, _react.useEffect)(function () {
|
|
36
|
-
handleOpen();
|
|
37
|
-
return function () {
|
|
38
|
-
handleClose();
|
|
39
|
-
};
|
|
40
|
-
}, []);
|
|
41
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
42
36
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
43
37
|
className: "board-widget-app",
|
|
@@ -17,10 +17,14 @@ 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
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
|
});
|
|
@@ -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);
|
|
@@ -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,7 +5,7 @@ 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");
|
|
@@ -14,7 +14,6 @@ require("core-js/modules/esnext.async-iterator.map.js");
|
|
|
14
14
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
15
15
|
require("core-js/modules/esnext.iterator.find.js");
|
|
16
16
|
require("core-js/modules/esnext.iterator.map.js");
|
|
17
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
18
17
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
19
18
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
20
19
|
var _popover = require("agora-ui-foundation/lib/components/popover");
|
|
@@ -24,15 +23,21 @@ var _libs = _interopRequireDefault(require("./libs"));
|
|
|
24
23
|
var _react = require("react");
|
|
25
24
|
var _store = require("../toolbar/store");
|
|
26
25
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
26
|
+
var _context = require("../../context");
|
|
27
|
+
var _mobxReact = require("mobx-react");
|
|
27
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
28
|
-
|
|
29
|
+
var WhiteboardSwitchTheme = (0, _mobxReact.observer)(function () {
|
|
29
30
|
var _useContext = (0, _react.useContext)(_store.ToolbarContext),
|
|
30
|
-
setTheme = _useContext.setTheme
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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;
|
|
35
37
|
var t = (0, _i18n.useI18n)();
|
|
38
|
+
var handleCancel = function handleCancel() {
|
|
39
|
+
setWhiteboardVisible(false);
|
|
40
|
+
};
|
|
36
41
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
37
42
|
trigger: "click",
|
|
38
43
|
overlayClassName: "whiteboard-switch-theme-popover",
|
|
@@ -40,7 +45,7 @@ function WhiteboardSwitchTheme() {
|
|
|
40
45
|
width: '100%'
|
|
41
46
|
},
|
|
42
47
|
overlayOffset: 2,
|
|
43
|
-
visible:
|
|
48
|
+
visible: whiteboardVisible,
|
|
44
49
|
content: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
45
50
|
className: "whiteboard-switch-theme",
|
|
46
51
|
children: [(0, _libs["default"])(t).map(function (theme, idx) {
|
|
@@ -48,19 +53,18 @@ function WhiteboardSwitchTheme() {
|
|
|
48
53
|
colors: theme.showColors,
|
|
49
54
|
title: theme.title,
|
|
50
55
|
theme: theme.theme,
|
|
56
|
+
isActive: currentThemeType.theme === theme.theme,
|
|
51
57
|
onClick: function onClick(theme) {
|
|
52
58
|
var result = (0, _libs["default"])(t).find(function (item) {
|
|
53
59
|
return item.theme === theme.theme;
|
|
54
60
|
});
|
|
55
61
|
setTheme(result);
|
|
56
|
-
|
|
62
|
+
setWhiteboardVisible(false);
|
|
57
63
|
}
|
|
58
64
|
}, theme.theme);
|
|
59
65
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
60
66
|
className: "whiteboard-switch-theme_item-close",
|
|
61
|
-
onClick:
|
|
62
|
-
return setVisible(false);
|
|
63
|
-
},
|
|
67
|
+
onClick: handleCancel,
|
|
64
68
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
65
69
|
size: 20,
|
|
66
70
|
type: _type.FcrIconType.FCR_CLOSE,
|
|
@@ -77,8 +81,9 @@ function WhiteboardSwitchTheme() {
|
|
|
77
81
|
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
78
82
|
},
|
|
79
83
|
onClick: function onClick() {
|
|
80
|
-
return
|
|
84
|
+
return setWhiteboardVisible(!whiteboardVisible);
|
|
81
85
|
}
|
|
82
86
|
})
|
|
83
87
|
});
|
|
84
|
-
}
|
|
88
|
+
});
|
|
89
|
+
var _default = exports["default"] = WhiteboardSwitchTheme;
|
|
@@ -1,6 +1,7 @@
|
|
|
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
|
});
|
|
@@ -9,13 +10,19 @@ require("core-js/modules/es.array.concat.js");
|
|
|
9
10
|
require("core-js/modules/es.array.map.js");
|
|
10
11
|
require("core-js/modules/esnext.async-iterator.map.js");
|
|
11
12
|
require("core-js/modules/esnext.iterator.map.js");
|
|
13
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
15
|
function WhiteboardSwitchThemeItem(props) {
|
|
14
16
|
var title = props.title,
|
|
15
17
|
colors = props.colors,
|
|
16
|
-
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
|
+
});
|
|
17
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
18
|
-
className:
|
|
25
|
+
className: cls,
|
|
19
26
|
onClick: function onClick() {
|
|
20
27
|
return props.onClick({
|
|
21
28
|
colors: colors,
|
|
@@ -73,19 +73,23 @@ var ShapePickerPanel = (0, _mobxReact.observer)(function () {
|
|
|
73
73
|
type: _type.FcrBoardShape.Ellipse,
|
|
74
74
|
icon: _type2.FcrIconType.FCR_WHITEBOARD_SHAP_CIRCLE,
|
|
75
75
|
tip: t('fmt_whiteboard_tips_circle')
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
},
|
|
77
|
+
// {
|
|
78
|
+
// type: FcrBoardShape.Pentagram,
|
|
79
|
+
// icon: FcrIconType.FCR_WHITEBOARD_SHAP_STAR,
|
|
80
|
+
// tip: t('fmt_whiteboard_label_pentagon'),
|
|
81
|
+
// },
|
|
82
|
+
{
|
|
81
83
|
type: _type.FcrBoardShape.Triangle,
|
|
82
84
|
icon: _type2.FcrIconType.FCR_WHITEBOARD_SHAP_TRIANGLE,
|
|
83
85
|
tip: t('fmt_whiteboard_tips_triangle')
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
},
|
|
87
|
+
// {
|
|
88
|
+
// type: FcrBoardShape.Rhombus,
|
|
89
|
+
// icon: FcrIconType.FCR_WHITEBOARD_SHAP_REHUMBUS,
|
|
90
|
+
// tip: t('fmt_whiteboard_label_prismatic'),
|
|
91
|
+
// },
|
|
92
|
+
{
|
|
89
93
|
type: _type.FcrBoardShape.Straight,
|
|
90
94
|
icon: _type2.FcrIconType.FCR_WHITEBOARD_SHAP_LINE,
|
|
91
95
|
tip: t('fmt_whiteboard_tips_straight')
|
|
@@ -51,6 +51,8 @@ var _mobx = require("mobx");
|
|
|
51
51
|
var _type = require("../../type");
|
|
52
52
|
var _react = require("react");
|
|
53
53
|
var _rendererEvent = require("../../../../utilities/renderer-event");
|
|
54
|
+
var _libs = _interopRequireDefault(require("../switch-theme/libs"));
|
|
55
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
54
56
|
var _ToolbarStore;
|
|
55
57
|
var _initProto, _init_observables;
|
|
56
58
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
@@ -72,6 +74,7 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
72
74
|
currentShape: undefined,
|
|
73
75
|
currentColor: '',
|
|
74
76
|
currentStrokeWidth: 0,
|
|
77
|
+
currentThemeType: (0, _libs["default"])(_i18n.transI18n)[0],
|
|
75
78
|
toolbarPosition: {
|
|
76
79
|
x: 0,
|
|
77
80
|
y: 0
|
|
@@ -32,6 +32,7 @@ declare const boardUIContextDefault: {
|
|
|
32
32
|
};
|
|
33
33
|
progress: number;
|
|
34
34
|
writeEnabled: boolean;
|
|
35
|
+
whiteboardVisible: boolean;
|
|
35
36
|
};
|
|
36
37
|
handleBoardDomLoad: (ref: HTMLDivElement | null) => void;
|
|
37
38
|
handleCollectorDomLoad: (ref: HTMLDivElement | null) => void;
|
|
@@ -39,6 +40,7 @@ declare const boardUIContextDefault: {
|
|
|
39
40
|
handleOpen: () => void;
|
|
40
41
|
setPrivilege: (canOperate: boolean) => void;
|
|
41
42
|
setWriteEnable: (enable: boolean) => void;
|
|
43
|
+
setWhiteboardVisible: (visible: boolean) => void;
|
|
42
44
|
};
|
|
43
45
|
export declare const BoardUIContext: React.Context<{
|
|
44
46
|
observables: {
|
|
@@ -54,6 +56,7 @@ export declare const BoardUIContext: React.Context<{
|
|
|
54
56
|
};
|
|
55
57
|
progress: number;
|
|
56
58
|
writeEnabled: boolean;
|
|
59
|
+
whiteboardVisible: boolean;
|
|
57
60
|
};
|
|
58
61
|
handleBoardDomLoad: (ref: HTMLDivElement | null) => void;
|
|
59
62
|
handleCollectorDomLoad: (ref: HTMLDivElement | null) => void;
|
|
@@ -61,6 +64,7 @@ export declare const BoardUIContext: React.Context<{
|
|
|
61
64
|
handleOpen: () => void;
|
|
62
65
|
setPrivilege: (canOperate: boolean) => void;
|
|
63
66
|
setWriteEnable: (enable: boolean) => void;
|
|
67
|
+
setWhiteboardVisible: (visible: boolean) => void;
|
|
64
68
|
}>;
|
|
65
69
|
export type BoardUIContextValue = typeof boardUIContextDefault;
|
|
66
70
|
export {};
|
|
@@ -22,13 +22,15 @@ var boardUIContextDefault = {
|
|
|
22
22
|
top: 0
|
|
23
23
|
},
|
|
24
24
|
progress: 0,
|
|
25
|
-
writeEnabled: false
|
|
25
|
+
writeEnabled: false,
|
|
26
|
+
whiteboardVisible: false
|
|
26
27
|
},
|
|
27
28
|
handleBoardDomLoad: function handleBoardDomLoad(ref) {},
|
|
28
29
|
handleCollectorDomLoad: function handleCollectorDomLoad(ref) {},
|
|
29
30
|
handleClose: function handleClose() {},
|
|
30
31
|
handleOpen: function handleOpen() {},
|
|
31
32
|
setPrivilege: function setPrivilege(canOperate) {},
|
|
32
|
-
setWriteEnable: function setWriteEnable(enable) {}
|
|
33
|
+
setWriteEnable: function setWriteEnable(enable) {},
|
|
34
|
+
setWhiteboardVisible: function setWhiteboardVisible(visible) {}
|
|
33
35
|
};
|
|
34
36
|
var BoardUIContext = exports.BoardUIContext = /*#__PURE__*/(0, _react.createContext)(boardUIContextDefault);
|