fcr-ui-scene 3.7.2 → 3.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/creator.d.ts +2 -0
- package/lib/creator.js +37 -44
- package/lib/electron/app.js +7 -0
- package/lib/electron/injections.d.ts +1 -1
- package/lib/electron/injections.js +5 -3
- package/lib/electron/main.js +3 -1
- package/lib/fragments/annotation/index.d.ts +1 -0
- package/lib/fragments/annotation/index.js +13 -7
- package/lib/fragments/annotation/libs.d.ts +7 -6
- package/lib/fragments/annotation/libs.js +9 -8
- package/lib/fragments/annotation/store.d.ts +8 -4
- package/lib/fragments/annotation/store.js +351 -267
- package/lib/fragments/annotation/toolbar/components/color-tool/index.js +4 -0
- package/lib/fragments/annotation/toolbar/components/graphic-tool/index.js +4 -0
- package/lib/fragments/annotation/toolbar/components/item/item.d.ts +2 -0
- package/lib/fragments/annotation/toolbar/components/item/item.js +2 -4
- package/lib/fragments/annotation/toolbar/components/item/style.css +4 -2
- package/lib/fragments/annotation/toolbar/components/pen-tool/index.js +4 -0
- package/lib/fragments/annotation/utils.d.ts +1 -0
- package/lib/fragments/annotation/utils.js +27 -0
- package/lib/fragments/annotation/view.js +1 -6
- package/lib/fragments/base.js +5 -3
- package/lib/fragments/whiteboard/cursor.css +77 -0
- package/lib/fragments/whiteboard/index.d.ts +11 -0
- package/lib/fragments/whiteboard/index.js +91 -0
- package/lib/fragments/whiteboard/store.d.ts +31 -0
- package/lib/fragments/whiteboard/store.js +480 -0
- package/lib/fragments/whiteboard/style.css +4 -0
- package/lib/fragments/whiteboard/view.d.ts +4 -0
- package/lib/fragments/whiteboard/view.js +31 -0
- package/lib/global.css +6 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/modules/action-bar/components/apps/index.js +15 -5
- package/lib/modules/action-bar/components/leave/index.js +4 -11
- package/lib/modules/action-bar/components/screen-share/submenu.js +2 -2
- package/lib/modules/action-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/index.js +2 -1
- package/lib/modules/action-bar/store.d.ts +6 -2
- package/lib/modules/action-bar/store.js +56 -93
- package/lib/modules/action-bar/view.d.ts +1 -0
- package/lib/modules/action-bar/view.js +3 -2
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +4 -11
- package/lib/modules/annotation/annotation-toolbar-store.js +48 -90
- package/lib/modules/annotation/index.d.ts +2 -0
- package/lib/modules/annotation/index.js +2 -2
- package/lib/modules/annotation/store.d.ts +11 -49
- package/lib/modules/annotation/store.js +144 -429
- package/lib/modules/annotation/view.js +3 -6
- package/lib/modules/audio-stream/index.js +1 -2
- package/lib/modules/chat/components/chat-select/index.js +3 -0
- package/lib/modules/components/control-bar/components/loading/index.css +76 -0
- package/lib/modules/components/control-bar/components/loading/index.d.ts +8 -0
- package/lib/modules/components/control-bar/components/loading/index.js +64 -0
- package/lib/modules/components/control-bar/components/loading/loading.png +0 -0
- package/lib/modules/components/control-bar/components/progress/index.d.ts +5 -0
- package/lib/modules/components/control-bar/components/progress/index.js +43 -0
- package/lib/modules/components/control-bar/components/progress/style.css +51 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.css +99 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.d.ts +9 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.js +94 -0
- package/lib/modules/components/control-bar/components/switch-theme/item.d.ts +9 -0
- package/lib/modules/components/control-bar/components/switch-theme/item.js +54 -0
- package/lib/modules/components/control-bar/components/switch-theme/libs.d.ts +4 -0
- package/lib/modules/components/control-bar/components/switch-theme/libs.js +31 -0
- package/lib/modules/components/control-bar/index.css +87 -0
- package/lib/modules/components/control-bar/index.d.ts +20 -0
- package/lib/modules/components/control-bar/index.js +276 -0
- package/lib/modules/components/device-control/store.js +2 -2
- package/lib/modules/components/leave-meeting/components/index.css +0 -9
- package/lib/modules/components/leave-meeting/index.d.ts +2 -1
- package/lib/modules/components/leave-meeting/index.js +19 -8
- package/lib/modules/components/leave-meeting/portal.d.ts +6 -0
- package/lib/modules/components/leave-meeting/portal.js +29 -0
- package/lib/modules/components/leave-meeting/style.css +9 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +5 -2
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +19 -9
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +4 -4
- package/lib/modules/components/member-window/components/member-actions/index.js +13 -6
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +1 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +4 -3
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +2 -1
- package/lib/modules/components/member-window/components/member-actions/store.js +5 -1
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.d.ts +6 -4
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +77 -41
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +3 -3
- package/lib/modules/components/member-window/components/video-player/index.d.ts +3 -3
- package/lib/modules/components/member-window/index.css +4 -0
- package/lib/modules/components/member-window/types.d.ts +9 -5
- package/lib/modules/components/toolbar/components/capture-tool/index.d.ts +9 -0
- package/lib/modules/components/toolbar/components/capture-tool/index.js +68 -0
- package/lib/modules/components/toolbar/components/clean-tool/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/clean-tool/index.js +71 -0
- package/lib/modules/components/toolbar/components/color-tool/color-panel/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/color-tool/color-panel/index.js +77 -0
- package/lib/modules/components/toolbar/components/color-tool/index.d.ts +14 -0
- package/lib/modules/components/toolbar/components/color-tool/index.js +66 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.js +64 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +12 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.js +65 -0
- package/lib/modules/components/toolbar/components/graphic-tool/index.d.ts +15 -0
- package/lib/modules/components/toolbar/components/graphic-tool/index.js +82 -0
- package/lib/modules/components/toolbar/components/group-tool/index.d.ts +5 -0
- package/lib/modules/components/toolbar/components/group-tool/index.js +43 -0
- package/lib/modules/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/components/toolbar/components/icons/fold-icon.js +41 -0
- package/lib/modules/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/components/toolbar/components/item/index.d.ts +25 -0
- package/lib/modules/components/toolbar/components/item/index.js +165 -0
- package/lib/modules/components/toolbar/components/item/style.css +94 -0
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.d.ts +12 -0
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.js +75 -0
- package/lib/modules/components/toolbar/components/panel/index.d.ts +9 -0
- package/lib/modules/components/toolbar/components/panel/index.js +28 -0
- package/lib/modules/components/toolbar/components/panel/style.css +86 -0
- package/lib/modules/components/toolbar/components/pen-tool/index.d.ts +13 -0
- package/lib/modules/components/toolbar/components/pen-tool/index.js +62 -0
- package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.d.ts +8 -0
- package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.js +39 -0
- package/lib/modules/components/toolbar/components/save-draft/index.d.ts +7 -0
- package/lib/modules/components/toolbar/components/save-draft/index.js +59 -0
- package/lib/modules/components/toolbar/components/vertical-frame/index.d.ts +8 -0
- package/lib/modules/components/toolbar/components/vertical-frame/index.js +179 -0
- package/lib/modules/components/toolbar/hooks/use-resize-visible.d.ts +4 -0
- package/lib/modules/components/toolbar/hooks/use-resize-visible.js +59 -0
- package/lib/modules/components/toolbar/index.d.ts +29 -0
- package/lib/modules/components/toolbar/index.js +258 -0
- package/lib/modules/components/toolbar/style.css +85 -0
- package/lib/modules/components/toolbar/types.d.ts +13 -0
- package/lib/modules/components/toolbar/types.js +6 -0
- package/lib/modules/control-bar/components/more-actions/index.js +0 -6
- package/lib/modules/control-bar/components/share-state-nav/index.js +3 -2
- package/lib/modules/control-bar/index.js +2 -1
- package/lib/modules/control-bar/store.d.ts +15 -12
- package/lib/modules/control-bar/store.js +68 -29
- package/lib/modules/control-bar/view.js +33 -67
- package/lib/modules/device-pretest/store.js +4 -2
- package/lib/modules/dialog/components/dialog-container/component/body.js +3 -24
- package/lib/modules/dialog/components/dialog-container/index.d.ts +4 -0
- package/lib/modules/dialog/components/dialog-container/index.js +67 -44
- package/lib/modules/dialog/components/normal-window/index.js +4 -0
- package/lib/modules/dialog/dialogs/control-bar/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/control-bar/index.js +26 -35
- package/lib/modules/dialog/dialogs/participant/components/title.js +1 -1
- package/lib/modules/dialog/dialogs/sub-window/index.d.ts +2 -0
- package/lib/modules/dialog/dialogs/sub-window/index.js +102 -0
- package/lib/modules/dialog/dialogs/video-window/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/video-window/index.js +31 -25
- package/lib/modules/dialog/dialogs/whiteboard/index.js +0 -1
- package/lib/modules/dialog/hooks/use-popover-watcher.js +1 -2
- package/lib/modules/dialog/hooks/useElectron.d.ts +13 -0
- package/lib/modules/dialog/hooks/useElectron.js +66 -13
- package/lib/modules/dialog/index.d.ts +6 -3
- package/lib/modules/dialog/index.js +5 -3
- package/lib/modules/dialog/level-config.js +1 -1
- package/lib/modules/dialog/store.d.ts +23 -9
- package/lib/modules/dialog/store.js +84 -12
- package/lib/modules/dialog/type.d.ts +8 -0
- package/lib/modules/event-confirm/components/window/index.d.ts +5 -2
- package/lib/modules/event-confirm/components/window/index.js +38 -14
- package/lib/modules/event-confirm/index.css +3 -2
- package/lib/modules/event-confirm/store.d.ts +10 -5
- package/lib/modules/event-confirm/store.js +68 -20
- package/lib/modules/event-confirm/view.js +10 -8
- package/lib/modules/event-sound/index.d.ts +1 -0
- package/lib/modules/event-sound/index.js +11 -24
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +1 -2
- package/lib/modules/interpreter/store.js +11 -13
- package/lib/modules/invite/components/pstn-invite.js +0 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +26 -26
- package/lib/modules/layout/components/who-is-speaking.js +3 -6
- package/lib/modules/layout/index.d.ts +3 -1
- package/lib/modules/layout/index.js +2 -1
- package/lib/modules/layout/store.d.ts +7 -59
- package/lib/modules/layout/store.js +133 -45
- package/lib/modules/layout/type.d.ts +55 -0
- package/lib/modules/participant/components/can-moveable/index.js +0 -1
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +4 -2
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +14 -2
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +1 -1
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +3 -2
- package/lib/modules/participant/components/participants/components/participants/index.js +3 -2
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +1 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +3 -1
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +4 -2
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +4 -2
- package/lib/modules/participant/components/participants/components/render-user/index.js +5 -3
- package/lib/modules/participant/components/participants/index.js +5 -2
- package/lib/modules/participant/components/participants/types.d.ts +3 -0
- package/lib/modules/participant/index.d.ts +2 -0
- package/lib/modules/participant/index.js +2 -1
- package/lib/modules/participant/member-list-data-source.js +3 -5
- package/lib/modules/participant/store.d.ts +5 -1
- package/lib/modules/participant/store.js +51 -44
- package/lib/modules/secondary-window/index.d.ts +50 -0
- package/lib/modules/secondary-window/index.js +113 -0
- package/lib/modules/secondary-window/store.d.ts +76 -0
- package/lib/modules/secondary-window/store.js +407 -0
- package/lib/modules/secondary-window/type.d.ts +110 -0
- package/lib/modules/secondary-window/type.js +35 -0
- package/lib/modules/secondary-window/view.d.ts +6 -0
- package/lib/modules/secondary-window/view.js +257 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +4 -2
- package/lib/modules/setting/config.d.ts +4 -0
- package/lib/modules/setting/config.js +6 -3
- package/lib/modules/setting/general-settings/general-settings.js +9 -0
- package/lib/modules/setting/state/index.js +0 -10
- package/lib/modules/setting/store.d.ts +9 -3
- package/lib/modules/setting/store.js +110 -77
- package/lib/modules/setting/view.js +3 -2
- package/lib/modules/share-screen/components/control-bar/index.d.ts +14 -1
- package/lib/modules/share-screen/components/control-bar/index.js +17 -12
- package/lib/modules/share-screen/components/selection/index.js +16 -23
- package/lib/modules/share-screen/index.d.ts +4 -1
- package/lib/modules/share-screen/index.js +6 -3
- package/lib/modules/share-screen/store.d.ts +18 -19
- package/lib/modules/share-screen/store.js +101 -151
- package/lib/modules/share-screen/types.d.ts +7 -8
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +2 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/store.d.ts +5 -2
- package/lib/modules/state-bar/store.js +14 -7
- package/lib/modules/state-bar/view.js +3 -3
- package/lib/modules/video-window/components/members/index.js +10 -15
- package/lib/modules/video-window/store.d.ts +1 -0
- package/lib/modules/video-window/store.js +8 -3
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +3 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +20 -11
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +2 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +2 -2
- package/lib/modules/whiteboard/index.d.ts +20 -17
- package/lib/modules/whiteboard/index.js +167 -132
- package/lib/plugins/module-dev-plugin.js +4 -0
- package/lib/providers/ability-provider.js +2 -0
- package/lib/providers/annotation-provider.js +3 -3
- package/lib/providers/device-privilege-provider.js +13 -12
- package/lib/providers/device-provider.d.ts +40 -31
- package/lib/providers/device-provider.js +657 -713
- package/lib/providers/device-stream-provider.js +4 -4
- package/lib/providers/interpreter-provider.js +7 -9
- package/lib/providers/multi-display-provider.d.ts +90 -0
- package/lib/providers/multi-display-provider.js +593 -0
- package/lib/providers/privilege-provider.d.ts +3 -11
- package/lib/providers/privilege-provider.js +3 -12
- package/lib/providers/renderer-provider.d.ts +3 -3
- package/lib/providers/renderer-provider.js +20 -32
- package/lib/providers/room-provider.js +21 -16
- package/lib/providers/screen-share-provider.d.ts +15 -11
- package/lib/providers/screen-share-provider.js +118 -99
- package/lib/providers/sharing-provider.d.ts +7 -1
- package/lib/providers/sharing-provider.js +39 -3
- package/lib/providers/whiteboard-provider.d.ts +24 -0
- package/lib/providers/whiteboard-provider.js +128 -0
- package/lib/runtime.d.ts +1 -0
- package/lib/scenes/main-scene.d.ts +6 -0
- package/lib/scenes/main-scene.js +44 -2
- package/lib/scenes/waiting-scene.d.ts +0 -2
- package/lib/scenes/waiting-scene.js +0 -6
- package/lib/schema.d.ts +3 -3
- package/lib/schema.js +1 -1
- package/lib/shared-data-source/confirm-data.d.ts +19 -0
- package/lib/shared-data-source/confirm-data.js +119 -15
- package/lib/shared-data-source/member-data.d.ts +2 -2
- package/lib/shared-data-source/screen-share-data.d.ts +35 -28
- package/lib/shared-data-source/screen-share-data.js +19 -8
- package/lib/shared-data-source/setting.js +4 -3
- package/lib/shared-data-source/video-window.js +1 -2
- package/lib/shared-data-source/whiteboard-data.d.ts +70 -0
- package/lib/shared-data-source/whiteboard-data.js +348 -0
- package/lib/translations/enUS.d.ts +1 -0
- package/lib/translations/enUS.js +2 -1
- package/lib/translations/zhCN.d.ts +1 -0
- package/lib/translations/zhCN.js +2 -1
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +77 -24
- package/lib/utilities/constant.d.ts +9 -2
- package/lib/utilities/constant.js +10 -3
- package/lib/utilities/debug.d.ts +4 -0
- package/lib/utilities/debug.js +40 -0
- package/lib/utilities/default-config.d.ts +4 -0
- package/lib/utilities/default-config.js +8 -4
- package/lib/utilities/dialog-utils.d.ts +3 -2
- package/lib/utilities/dialog-utils.js +56 -15
- package/lib/utilities/meeting-detail.js +4 -1
- package/lib/utilities/package-info.d.ts +3 -0
- package/lib/utilities/package-info.js +15 -0
- package/lib/utilities/renderer-event.d.ts +4 -6
- package/lib/utilities/renderer-event.js +23 -43
- package/lib/utilities/renderer.d.ts +1 -1
- package/lib/utilities/renderer.js +44 -10
- package/lib/utilities/shared-storage.d.ts +18 -0
- package/lib/utilities/shared-storage.js +63 -0
- package/lib/utilities/tools.js +2 -1
- package/lib/waiting-room-control-manager.js +6 -6
- package/package.json +6 -7
- package/public/index.html +5 -0
- package/lib/electron/tools.d.ts +0 -5
- package/lib/electron/tools.js +0 -62
|
@@ -21,6 +21,7 @@ import { FcrUISecuritySharedDataSource } from '../../shared-data-source/security
|
|
|
21
21
|
import { FcrUIScreenShareSharedDataSource } from '../../shared-data-source/screen-share-data';
|
|
22
22
|
import { FcrUIApplistProvider } from '../../providers/app-list-provider';
|
|
23
23
|
import { FcrUISharedApplistSource } from '../../shared-data-source/app-list-data';
|
|
24
|
+
import { FcrUISharedWhiteboardDataSource } from '../../shared-data-source/whiteboard-data';
|
|
24
25
|
export declare class FcrActionBarUIModule extends UIModule {
|
|
25
26
|
private _store?;
|
|
26
27
|
private _deviceControlStore?;
|
|
@@ -49,6 +50,7 @@ export declare class FcrActionBarUIModule extends UIModule {
|
|
|
49
50
|
sharedScreenShareSharedDataSource?: FcrUIScreenShareSharedDataSource;
|
|
50
51
|
applistProvider?: FcrUIApplistProvider;
|
|
51
52
|
sharedApplistDataSource?: FcrUISharedApplistSource;
|
|
53
|
+
sharedWhiteboardDataSource?: FcrUISharedWhiteboardDataSource;
|
|
52
54
|
onNodeWillActive(): void;
|
|
53
55
|
onNodeWillInactive(): void;
|
|
54
56
|
getComponent(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -70,7 +70,8 @@ var FcrActionBarUIModule = exports.FcrActionBarUIModule = /*#__PURE__*/function
|
|
|
70
70
|
sharedScreenShareSharedDataSource: this.sharedScreenShareSharedDataSource,
|
|
71
71
|
abilityProvider: this.abilityProvider,
|
|
72
72
|
applistProvider: this.applistProvider,
|
|
73
|
-
sharedApplistDataSource: this.sharedApplistDataSource
|
|
73
|
+
sharedApplistDataSource: this.sharedApplistDataSource,
|
|
74
|
+
sharedWhiteboardDataSource: this.sharedWhiteboardDataSource
|
|
74
75
|
});
|
|
75
76
|
this._deviceControlStore = new _store2.DeviceControlStore((_this$currentRoomCont3 = this.currentRoomControlProvider) === null || _this$currentRoomCont3 === void 0 ? void 0 : _this$currentRoomCont3.currentRoomControl, this.deviceProvider, this.dialogProvider, this.deviceStreamProvider, this.sharedDevicePrivilegeDataSource);
|
|
76
77
|
this._leaveMeetingStore = new _store3.LeaveMeetingStore(privilegeProvider, this.roomProvider, (_this$currentRoomCont4 = this.currentRoomControlProvider) === null || _this$currentRoomCont4 === void 0 ? void 0 : _this$currentRoomCont4.currentRoomControl, this.sharedMemberDataSource, this.abilityProvider, this.dialogProvider);
|
|
@@ -29,6 +29,7 @@ import { FcrUIScreenShareSharedDataSource } from '../../shared-data-source/scree
|
|
|
29
29
|
import { FcrUIAbilityProviderImpl } from '../../providers/ability-provider';
|
|
30
30
|
import { FcrUISharedApplistSource } from '../../shared-data-source/app-list-data';
|
|
31
31
|
import { FcrUIApplistProvider } from '../../providers/app-list-provider';
|
|
32
|
+
import { FcrUISharedWhiteboardDataSource } from '../../shared-data-source/whiteboard-data';
|
|
32
33
|
export declare enum AudioConnectType {
|
|
33
34
|
NONE = 0,
|
|
34
35
|
COMPUTER = 1,
|
|
@@ -62,6 +63,7 @@ export default class ActionBarStore {
|
|
|
62
63
|
private _abilityProvider;
|
|
63
64
|
private _applistProvider;
|
|
64
65
|
private _sharedApplistDataSource;
|
|
66
|
+
private _sharedWhiteboardDataSource;
|
|
65
67
|
private _userObserver;
|
|
66
68
|
private _roomObserver;
|
|
67
69
|
private _mainRoomObserver;
|
|
@@ -78,7 +80,6 @@ export default class ActionBarStore {
|
|
|
78
80
|
accessor cloudRecordingState: FcrRecordingState;
|
|
79
81
|
accessor connectionSettingVisible: boolean;
|
|
80
82
|
accessor folded: boolean;
|
|
81
|
-
accessor boardOwnerUser: FcrUserInfo | null;
|
|
82
83
|
accessor showArrow: boolean;
|
|
83
84
|
accessor phoneMicEnabled: boolean;
|
|
84
85
|
accessor chatTabIndex: FcrUIRoomType;
|
|
@@ -110,6 +111,7 @@ export default class ActionBarStore {
|
|
|
110
111
|
abilityProvider: FcrUIAbilityProviderImpl;
|
|
111
112
|
applistProvider: FcrUIApplistProvider;
|
|
112
113
|
sharedApplistDataSource: FcrUISharedApplistSource;
|
|
114
|
+
sharedWhiteboardDataSource: FcrUISharedWhiteboardDataSource;
|
|
113
115
|
});
|
|
114
116
|
private _handleApplistItemClick;
|
|
115
117
|
get checkedStateMap(): FcrSecurityCheckedStateType;
|
|
@@ -152,7 +154,6 @@ export default class ActionBarStore {
|
|
|
152
154
|
get hasWatermarkDisablePermission(): boolean;
|
|
153
155
|
get hasEnableStartSharePermission(): boolean;
|
|
154
156
|
get hasAllowWriteBoardPermission(): boolean;
|
|
155
|
-
get hasCloseWriteBoardPermission(): boolean;
|
|
156
157
|
get hasScreenShare(): boolean;
|
|
157
158
|
get hasAllowScreenShareAndBoardPermission(): boolean;
|
|
158
159
|
get hasAllowChatPermission(): boolean;
|
|
@@ -175,6 +176,9 @@ export default class ActionBarStore {
|
|
|
175
176
|
set newMessageCount(value: import("./types").ChatRoomStoreMap);
|
|
176
177
|
get latestMessage(): import("../../providers/chat-provider").FcrChatRoomReceiveMessage | undefined;
|
|
177
178
|
get hasSecurityPermissions(): boolean;
|
|
179
|
+
get isMeSharingScreen(): boolean;
|
|
180
|
+
get isMeSharingBoard(): boolean;
|
|
181
|
+
get boardOwnerUser(): FcrUserInfo | undefined;
|
|
178
182
|
pauseCloudRecording(): void;
|
|
179
183
|
resumeCloudRecording(): void;
|
|
180
184
|
stopCloudRecording(): void;
|
|
@@ -75,16 +75,15 @@ var _type = require("fcr-core/lib/type");
|
|
|
75
75
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
76
76
|
var _type2 = require("../../type");
|
|
77
77
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
78
|
-
var _type3 = require("
|
|
79
|
-
var _type4 = require("agora-ui-foundation/lib/components/icon/type");
|
|
78
|
+
var _type3 = require("agora-ui-foundation/lib/components/icon/type");
|
|
80
79
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
81
|
-
var
|
|
80
|
+
var _type4 = require("fcr-core/lib/room-control/type");
|
|
82
81
|
var _react = require("react");
|
|
83
82
|
var _constant = require("../../utilities/constant");
|
|
84
83
|
var _enums = require("./enums");
|
|
85
84
|
var _logger = require("../../utilities/logger");
|
|
86
85
|
var _ActionBarStore;
|
|
87
|
-
var _initProto, _init_newMessageTooltipVisible, _init_totalWaitingRoomUser, _init_liveStreamingState, _init_currentMenuIs, _init_cloudRecordingState, _init_connectionSettingVisible, _init_folded,
|
|
86
|
+
var _initProto, _init_newMessageTooltipVisible, _init_totalWaitingRoomUser, _init_liveStreamingState, _init_currentMenuIs, _init_cloudRecordingState, _init_connectionSettingVisible, _init_folded, _init_showArrow, _init_phoneMicEnabled, _init_chatTabIndex, _init_stateBarLeaveMeeting, _init_hasOfflineUserExistence, _init_connectionState, _init_appActionbarPopoverVisible, _setCheckedStateMapDecs, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _showLockedRoomToastDecs, _toggleLayoutBarLockDecs, _showNewMessageTooltipDecs, _hideNewMessageTooltipDecs, _switchMenuDecs, _setPopoverOpenedDecs, _setStateBarLeaveMeetingDecs, _handleJoinWaitingRoomDecs, _toggleFoldDecs, _setShowArrowDecs, _setEnableWaitingRoomDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleLiveStreamingStateUpdatedDecs, _handleChatVisibleDecs, _setAppActionbarPopoverVisibleDecs, _operateWaitingRoomDecs, _handleCloudRecordingStateUpdatedDecs, _setOutputLanguageDecs, _subscribeLanguageDecs, _subscribeExtraOriginLanguageDecs, _getOfflineUserExistenceStateDecs, _clickWidgetDecs, _closeWidgetDecs, _ref;
|
|
88
87
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
89
88
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
90
89
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
@@ -117,7 +116,6 @@ var _K = /*#__PURE__*/new WeakMap();
|
|
|
117
116
|
var _L = /*#__PURE__*/new WeakMap();
|
|
118
117
|
var _M = /*#__PURE__*/new WeakMap();
|
|
119
118
|
var _N = /*#__PURE__*/new WeakMap();
|
|
120
|
-
var _O = /*#__PURE__*/new WeakMap();
|
|
121
119
|
_ref = (_setCheckedStateMapDecs = [_mobx.action, _mobx.action.bound], _pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
122
120
|
leading: true
|
|
123
121
|
})], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
@@ -170,14 +168,13 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
170
168
|
_classPrivateFieldInitSpec(this, _E, _init_cloudRecordingState(this));
|
|
171
169
|
_classPrivateFieldInitSpec(this, _F, _init_connectionSettingVisible(this, false));
|
|
172
170
|
_classPrivateFieldInitSpec(this, _G, _init_folded(this, false));
|
|
173
|
-
_classPrivateFieldInitSpec(this, _H,
|
|
174
|
-
_classPrivateFieldInitSpec(this, _I,
|
|
175
|
-
_classPrivateFieldInitSpec(this, _J,
|
|
176
|
-
_classPrivateFieldInitSpec(this, _K,
|
|
177
|
-
_classPrivateFieldInitSpec(this, _L,
|
|
178
|
-
_classPrivateFieldInitSpec(this, _M,
|
|
179
|
-
_classPrivateFieldInitSpec(this, _N,
|
|
180
|
-
_classPrivateFieldInitSpec(this, _O, _init_appActionbarPopoverVisible(this, false));
|
|
171
|
+
_classPrivateFieldInitSpec(this, _H, _init_showArrow(this, false));
|
|
172
|
+
_classPrivateFieldInitSpec(this, _I, _init_phoneMicEnabled(this, false));
|
|
173
|
+
_classPrivateFieldInitSpec(this, _J, _init_chatTabIndex(this, _type2.FcrUIRoomType.MAIN_ROOM));
|
|
174
|
+
_classPrivateFieldInitSpec(this, _K, _init_stateBarLeaveMeeting(this, false));
|
|
175
|
+
_classPrivateFieldInitSpec(this, _L, _init_hasOfflineUserExistence(this, true));
|
|
176
|
+
_classPrivateFieldInitSpec(this, _M, _init_connectionState(this, _fcrCore.FcrConnectionState.CONNECTED));
|
|
177
|
+
_classPrivateFieldInitSpec(this, _N, _init_appActionbarPopoverVisible(this, false));
|
|
181
178
|
this._roomProvider = args.roomProvider;
|
|
182
179
|
this._roomControl = args.roomControl;
|
|
183
180
|
this._deviceProvider = args.deviceProvider;
|
|
@@ -199,6 +196,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
199
196
|
this._abilityProvider = args.abilityProvider;
|
|
200
197
|
this._applistProvider = args.applistProvider;
|
|
201
198
|
this._sharedApplistDataSource = args.sharedApplistDataSource;
|
|
199
|
+
this._sharedWhiteboardDataSource = args.sharedWhiteboardDataSource;
|
|
202
200
|
this._applistProvider.addObserver(this._applistObserver);
|
|
203
201
|
this._userControl = this._roomControl.getUserControl();
|
|
204
202
|
this._roomType = (_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType;
|
|
@@ -206,7 +204,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
206
204
|
this.cloudRecordingState = this._roomControl.getCloudRecordingState();
|
|
207
205
|
if (args.interpreterProvider) {
|
|
208
206
|
this._interpreterProvider = args.interpreterProvider;
|
|
209
|
-
if (this._roomType ===
|
|
207
|
+
if (this._roomType === _type4.FcrRoomType.Mainroom) {
|
|
210
208
|
this._roomProvider.addObserver(this._roomObserver);
|
|
211
209
|
this._interpreterProvider.addObserver(this._interpreterProviderObserver);
|
|
212
210
|
}
|
|
@@ -317,7 +315,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
317
315
|
_classPrivateFieldSet(_G, this, v);
|
|
318
316
|
}
|
|
319
317
|
}, {
|
|
320
|
-
key: "
|
|
318
|
+
key: "showArrow",
|
|
321
319
|
get: function get() {
|
|
322
320
|
return _classPrivateFieldGet(_H, this);
|
|
323
321
|
},
|
|
@@ -325,7 +323,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
325
323
|
_classPrivateFieldSet(_H, this, v);
|
|
326
324
|
}
|
|
327
325
|
}, {
|
|
328
|
-
key: "
|
|
326
|
+
key: "phoneMicEnabled",
|
|
329
327
|
get: function get() {
|
|
330
328
|
return _classPrivateFieldGet(_I, this);
|
|
331
329
|
},
|
|
@@ -333,7 +331,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
333
331
|
_classPrivateFieldSet(_I, this, v);
|
|
334
332
|
}
|
|
335
333
|
}, {
|
|
336
|
-
key: "
|
|
334
|
+
key: "chatTabIndex",
|
|
337
335
|
get: function get() {
|
|
338
336
|
return _classPrivateFieldGet(_J, this);
|
|
339
337
|
},
|
|
@@ -341,7 +339,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
341
339
|
_classPrivateFieldSet(_J, this, v);
|
|
342
340
|
}
|
|
343
341
|
}, {
|
|
344
|
-
key: "
|
|
342
|
+
key: "stateBarLeaveMeeting",
|
|
345
343
|
get: function get() {
|
|
346
344
|
return _classPrivateFieldGet(_K, this);
|
|
347
345
|
},
|
|
@@ -349,7 +347,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
349
347
|
_classPrivateFieldSet(_K, this, v);
|
|
350
348
|
}
|
|
351
349
|
}, {
|
|
352
|
-
key: "
|
|
350
|
+
key: "hasOfflineUserExistence",
|
|
353
351
|
get: function get() {
|
|
354
352
|
return _classPrivateFieldGet(_L, this);
|
|
355
353
|
},
|
|
@@ -357,7 +355,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
357
355
|
_classPrivateFieldSet(_L, this, v);
|
|
358
356
|
}
|
|
359
357
|
}, {
|
|
360
|
-
key: "
|
|
358
|
+
key: "connectionState",
|
|
361
359
|
get: function get() {
|
|
362
360
|
return _classPrivateFieldGet(_M, this);
|
|
363
361
|
},
|
|
@@ -365,21 +363,13 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
365
363
|
_classPrivateFieldSet(_M, this, v);
|
|
366
364
|
}
|
|
367
365
|
}, {
|
|
368
|
-
key: "
|
|
366
|
+
key: "appActionbarPopoverVisible",
|
|
369
367
|
get: function get() {
|
|
370
368
|
return _classPrivateFieldGet(_N, this);
|
|
371
369
|
},
|
|
372
370
|
set: function set(v) {
|
|
373
371
|
_classPrivateFieldSet(_N, this, v);
|
|
374
372
|
}
|
|
375
|
-
}, {
|
|
376
|
-
key: "appActionbarPopoverVisible",
|
|
377
|
-
get: function get() {
|
|
378
|
-
return _classPrivateFieldGet(_O, this);
|
|
379
|
-
},
|
|
380
|
-
set: function set(v) {
|
|
381
|
-
_classPrivateFieldSet(_O, this, v);
|
|
382
|
-
}
|
|
383
373
|
}, {
|
|
384
374
|
key: "_handleApplistItemClick",
|
|
385
375
|
value: function _handleApplistItemClick() {
|
|
@@ -526,8 +516,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
526
516
|
}, {
|
|
527
517
|
key: "hasStopScreenSharePermission",
|
|
528
518
|
get: function get() {
|
|
529
|
-
|
|
530
|
-
return this.hasScreenShare && this.hasEnableStartScreenSharePermission && this.sharingOwnerUser && this.localUserId !== ((_this$sharingOwnerUse = this.sharingOwnerUser) === null || _this$sharingOwnerUse === void 0 ? void 0 : _this$sharingOwnerUse.userId);
|
|
519
|
+
return this.hasScreenShare && this.hasEnableStartScreenSharePermission && this.sharingOwnerUser && !this.isMeSharingScreen;
|
|
531
520
|
}
|
|
532
521
|
}, {
|
|
533
522
|
key: "sharingOwnerUser",
|
|
@@ -537,8 +526,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
537
526
|
}, {
|
|
538
527
|
key: "hasEnableStartScreenSharePermission",
|
|
539
528
|
get: function get() {
|
|
540
|
-
|
|
541
|
-
return this._privilegeProvider.hasStopScreenSharePermission((_this$sharingOwnerUse2 = this.sharingOwnerUser) === null || _this$sharingOwnerUse2 === void 0 ? void 0 : _this$sharingOwnerUse2.userRole);
|
|
529
|
+
return this._privilegeProvider.hasStopScreenSharePermission();
|
|
542
530
|
}
|
|
543
531
|
}, {
|
|
544
532
|
key: "hasStartLiveStreamingPermission",
|
|
@@ -595,12 +583,6 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
595
583
|
get: function get() {
|
|
596
584
|
return this._privilegeProvider.hasAllowWriteBoardPermission();
|
|
597
585
|
}
|
|
598
|
-
}, {
|
|
599
|
-
key: "hasCloseWriteBoardPermission",
|
|
600
|
-
get: function get() {
|
|
601
|
-
var _this$boardOwnerUser;
|
|
602
|
-
return this._privilegeProvider.hasCloseBoardPermission((_this$boardOwnerUser = this.boardOwnerUser) === null || _this$boardOwnerUser === void 0 ? void 0 : _this$boardOwnerUser.userRole);
|
|
603
|
-
}
|
|
604
586
|
}, {
|
|
605
587
|
key: "hasScreenShare",
|
|
606
588
|
get: function get() {
|
|
@@ -676,7 +658,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
676
658
|
}, {
|
|
677
659
|
key: "isMainRoom",
|
|
678
660
|
get: function get() {
|
|
679
|
-
return this._roomType ===
|
|
661
|
+
return this._roomType === _type4.FcrRoomType.Mainroom;
|
|
680
662
|
}
|
|
681
663
|
}, {
|
|
682
664
|
key: "hasAllowChangeNamePromission",
|
|
@@ -711,6 +693,23 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
711
693
|
get: function get() {
|
|
712
694
|
return this.hasEnableStartSharePermission || this.hasAllowChatPermission || this.hasEnableStartAudioPermission || this.hasEnableChangeNamePermission || this.hasEnableStartVideoPermission || this.hasLockRoomPermission;
|
|
713
695
|
}
|
|
696
|
+
}, {
|
|
697
|
+
key: "isMeSharingScreen",
|
|
698
|
+
get: function get() {
|
|
699
|
+
var _this$_sharedScreenSh;
|
|
700
|
+
return ((_this$_sharedScreenSh = this._sharedScreenShareSharedDataSource.screenSharingOwner) === null || _this$_sharedScreenSh === void 0 ? void 0 : _this$_sharedScreenSh.userId) === this.localUserId;
|
|
701
|
+
}
|
|
702
|
+
}, {
|
|
703
|
+
key: "isMeSharingBoard",
|
|
704
|
+
get: function get() {
|
|
705
|
+
var _this$_sharedWhiteboa;
|
|
706
|
+
return ((_this$_sharedWhiteboa = this._sharedWhiteboardDataSource) === null || _this$_sharedWhiteboa === void 0 || (_this$_sharedWhiteboa = _this$_sharedWhiteboa.sharingUserInfo) === null || _this$_sharedWhiteboa === void 0 ? void 0 : _this$_sharedWhiteboa.userId) === this.localUserId;
|
|
707
|
+
}
|
|
708
|
+
}, {
|
|
709
|
+
key: "boardOwnerUser",
|
|
710
|
+
get: function get() {
|
|
711
|
+
return this._sharedWhiteboardDataSource.sharingUserInfo;
|
|
712
|
+
}
|
|
714
713
|
}, {
|
|
715
714
|
key: "pauseCloudRecording",
|
|
716
715
|
value: function pauseCloudRecording() {
|
|
@@ -737,7 +736,8 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
737
736
|
height: 720
|
|
738
737
|
},
|
|
739
738
|
bitrate: 1200,
|
|
740
|
-
frameRate: 15
|
|
739
|
+
frameRate: 15,
|
|
740
|
+
isMirror: false
|
|
741
741
|
},
|
|
742
742
|
retryTimeout: 60
|
|
743
743
|
});
|
|
@@ -831,7 +831,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
831
831
|
this._roomControl.removeObserver(this._mainRoomObserver);
|
|
832
832
|
this._eventProvider.removeObserver(this._uiEventObserver);
|
|
833
833
|
this._applistProvider.removeObserver(this._applistObserver);
|
|
834
|
-
if (this._roomType ===
|
|
834
|
+
if (this._roomType === _type4.FcrRoomType.Mainroom) {
|
|
835
835
|
var _this$_interpreterPro;
|
|
836
836
|
this._roomProvider.removeObserver(this._roomObserver);
|
|
837
837
|
(_this$_interpreterPro = this._interpreterProvider) === null || _this$_interpreterPro === void 0 || _this$_interpreterPro.removeObserver(this._interpreterProviderObserver);
|
|
@@ -1198,12 +1198,12 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1198
1198
|
key: "_interceptShareScreen",
|
|
1199
1199
|
value: function _interceptShareScreen() {
|
|
1200
1200
|
var _this5 = this;
|
|
1201
|
-
if (this.
|
|
1202
|
-
var _this$
|
|
1201
|
+
if (this.sharingOwnerUser && !this.isMeSharingScreen || this.boardOwnerUser && !this.isMeSharingBoard) {
|
|
1202
|
+
var _this$sharingOwnerUse;
|
|
1203
1203
|
var confirmKey = this._dialogProvider.openConfirmDialog({
|
|
1204
1204
|
title: (0, _i18n.transI18n)('fmt_share_tips_otherssharing'),
|
|
1205
1205
|
content: (0, _i18n.transI18n)("fmt_share_tips_stopothersharing", {
|
|
1206
|
-
reason1: ((_this$
|
|
1206
|
+
reason1: ((_this$sharingOwnerUse = this.sharingOwnerUser) === null || _this$sharingOwnerUse === void 0 ? void 0 : _this$sharingOwnerUse.userName) || (0, _i18n.transI18n)('fmt_actionbar_screenshare_labels_others')
|
|
1207
1207
|
}),
|
|
1208
1208
|
okText: (0, _i18n.transI18n)('fmt_screenshare_continue_share'),
|
|
1209
1209
|
okButtonProps: {
|
|
@@ -1228,9 +1228,9 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1228
1228
|
key: "_interceptShareBoard",
|
|
1229
1229
|
value: function _interceptShareBoard() {
|
|
1230
1230
|
var _this6 = this;
|
|
1231
|
-
if (this.boardOwnerUser && this.
|
|
1231
|
+
if (this.boardOwnerUser && !this.isMeSharingBoard) {
|
|
1232
1232
|
var confirmKey = this._dialogProvider.openConfirmDialog({
|
|
1233
|
-
icon:
|
|
1233
|
+
icon: _type3.FcrIconType.FCR_SCREENSHARING,
|
|
1234
1234
|
title: (0, _i18n.transI18n)('fmt_share_tips_othersharingboard'),
|
|
1235
1235
|
content: (0, _i18n.transI18n)("fmt_share_tips_boardonly"),
|
|
1236
1236
|
okText: (0, _i18n.transI18n)('fmt_screenshare_whiteboard_button_gotit'),
|
|
@@ -1297,26 +1297,6 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1297
1297
|
}, {
|
|
1298
1298
|
key: "_onEvent",
|
|
1299
1299
|
value: function _onEvent(action, payload) {
|
|
1300
|
-
// if (action === FcrUIAction.UPDATE_ASIDE) {
|
|
1301
|
-
// const { chat, participant } = payload as FcrUIUpdateAsideParams;
|
|
1302
|
-
// if (chat) {
|
|
1303
|
-
// this._chatRenderAt = 'aside';
|
|
1304
|
-
// this._handleChatVisible(true);
|
|
1305
|
-
// }
|
|
1306
|
-
// if (chat === false) {
|
|
1307
|
-
// this._handleChatVisible(false);
|
|
1308
|
-
// }
|
|
1309
|
-
// if (participant) {
|
|
1310
|
-
// this._participantsRenderAt = 'aside';
|
|
1311
|
-
// this._participantVisible = true;
|
|
1312
|
-
// }
|
|
1313
|
-
// if (participant === false) {
|
|
1314
|
-
// this._participantVisible = false;
|
|
1315
|
-
// }
|
|
1316
|
-
// }
|
|
1317
|
-
// if (action === FcrUIAction.RECEIVE_NEW_CHAT_MESSAGES) {
|
|
1318
|
-
// this._handleNewMessageEvent(payload as FcrUINewChatMessagesParams);
|
|
1319
|
-
// }
|
|
1320
1300
|
if (action === _constant.FcrUIAction.CLOSE_DIALOG) {
|
|
1321
1301
|
var _ref2 = payload,
|
|
1322
1302
|
dialogId = _ref2.dialogId;
|
|
@@ -1356,27 +1336,11 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1356
1336
|
if (action === _constant.FcrUIAction.CLOSE_CONNECTION_DIALOG) {
|
|
1357
1337
|
this.closeConnection();
|
|
1358
1338
|
}
|
|
1359
|
-
if (action === _constant.FcrUIAction.WHITEBOARD_CHANGED) {
|
|
1360
|
-
var _ref4 = payload,
|
|
1361
|
-
_action = _ref4.action,
|
|
1362
|
-
value = _ref4.payload;
|
|
1363
|
-
if (_action === _type3.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
|
|
1364
|
-
this.boardOwnerUser = value ? this.users.find(function (u) {
|
|
1365
|
-
return u.userId === value;
|
|
1366
|
-
}) : null;
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
1339
|
if (action === _constant.FcrUIAction.TOGGLE_PARTICIPANT_TAB) {
|
|
1370
1340
|
if (!this.participantVisible) {
|
|
1371
1341
|
this.toggleParticipants();
|
|
1372
1342
|
}
|
|
1373
1343
|
}
|
|
1374
|
-
// if (action === FcrUIAction.CURRENT_PARTITIPANT_TAB) {
|
|
1375
|
-
// if (payload === FcrRoomType.Waitingroom) {
|
|
1376
|
-
// this.isNewWaitingRoomUserEnter = false;
|
|
1377
|
-
// }
|
|
1378
|
-
// this._participantTab = payload as FcrRoomType;
|
|
1379
|
-
// }
|
|
1380
1344
|
if (action === _constant.FcrUIAction.CHAT_ROOM_TAB_CHANGE) {
|
|
1381
1345
|
this.chatTabIndex = payload;
|
|
1382
1346
|
this.newMessageCount[this.chatTabIndex] = 0;
|
|
@@ -1546,7 +1510,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1546
1510
|
}]);
|
|
1547
1511
|
}();
|
|
1548
1512
|
_ActionBarStore = ActionBarStore;
|
|
1549
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarStore, [[_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "totalWaitingRoomUser"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "currentMenuIs"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "connectionSettingVisible"], [_mobx.observable, 1, "folded"], [_mobx.observable, 1, "
|
|
1513
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarStore, [[_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "totalWaitingRoomUser"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "currentMenuIs"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "connectionSettingVisible"], [_mobx.observable, 1, "folded"], [_mobx.observable, 1, "showArrow"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.observable, 1, "chatTabIndex"], [_mobx.observable, 1, "stateBarLeaveMeeting"], [_mobx.observable, 1, "hasOfflineUserExistence"], [_mobx.observable, 1, "connectionState"], [_mobx.observable, 1, "appActionbarPopoverVisible"], [_mobx.computed, 3, "checkedStateMap"], [_setCheckedStateMapDecs, 18, "setCheckedStateMap"], [_mobx.computed, 3, "registeredWidgetConfigs"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "chatRenderAt"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "participantVisible"], [_mobx.computed, 3, "chatVisible"], [_mobx.computed, 3, "hasStartScreenSharePermission"], [_mobx.computed, 3, "hasStopScreenSharePermission"], [_mobx.computed, 3, "sharingOwnerUser"], [_mobx.computed, 3, "hasEnableStartScreenSharePermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasEnableStartAudioPermission"], [_mobx.computed, 3, "hasEnableChangeNamePermission"], [_mobx.computed, 3, "hasEnableStartVideoPermission"], [_mobx.computed, 3, "hasLockRoomPermission"], [_mobx.computed, 3, "hasEnableJoinWithAudioPermission"], [_mobx.computed, 3, "hasWaitingRoomPermission"], [_mobx.computed, 3, "hasWatermarkDisablePermission"], [_mobx.computed, 3, "hasEnableStartSharePermission"], [_mobx.computed, 3, "hasAllowWriteBoardPermission"], [_mobx.computed, 3, "hasAllowScreenShareAndBoardPermission"], [_mobx.computed, 3, "hasAllowChatPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "isScreenShareAndBoardEnabled"], [_mobx.computed, 3, "isBoardWriteEnabled"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "hasEnableInterpreterPermission"], [_mobx.computed, 3, "hasDisableInterpreterPermission"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "allNewMessage"], [_mobx.computed, 3, "isMainRoom"], [_mobx.computed, 3, "hasAllowChangeNamePromission"], [_mobx.computed, 3, "hasDisallowChangeNamePromission"], [_mobx.computed, 3, "newMessageCount"], [_mobx.computed, 3, "endMeetingPopoverOpened"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_showLockedRoomToastDecs, 18, "showLockedRoomToast"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_showNewMessageTooltipDecs, 18, "showNewMessageTooltip"], [_hideNewMessageTooltipDecs, 18, "hideNewMessageTooltip"], [_switchMenuDecs, 18, "switchMenu"], [_mobx.computed, 3, "isLocked"], [_decorator.bound, 2, "isWaitingRoomEnabled"], [_decorator.bound, 2, "isAllowJoinWithAudioEnabled"], [_decorator.bound, 2, "enableMicrophone"], [_decorator.bound, 2, "setAllowWriteBoard"], [_decorator.bound, 2, "setAllowAnnotation"], [_decorator.bound, 2, "setAllowScreenShare"], [_setPopoverOpenedDecs, 18, "setPopoverOpened"], [_setStateBarLeaveMeetingDecs, 18, "setStateBarLeaveMeeting"], [_decorator.bound, 2, "allowJoinWithMuteAudio"], [_decorator.bound, 2, "setAllowJoinWithMuteAudio"], [_decorator.bound, 2, "isLockRoomEnabled"], [_decorator.bound, 2, "setLockRoomEnabled"], [_decorator.bound, 2, "setAllowShareScreen"], [_decorator.bound, 2, "allowShareScreen"], [_decorator.bound, 2, "allowWriteBoard"], [_decorator.bound, 2, "allowChat"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "allowUnmuteSelfAudio"], [_decorator.bound, 2, "setAllowUnmuteSelfAudio"], [_decorator.bound, 2, "allowUnmuteSelfVideo"], [_decorator.bound, 2, "setAllowUnmuteSelfVideo"], [_decorator.bound, 2, "allowChangeName"], [_decorator.bound, 2, "toggleChat"], [_decorator.bound, 2, "openChat"], [_decorator.bound, 2, "closeChat"], [_decorator.bound, 2, "toggleParticipants"], [_decorator.bound, 2, "openParticipants"], [_decorator.bound, 2, "closeParticipants"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_decorator.bound, 2, "startScreenShare"], [_decorator.bound, 2, "openInterpreterDialog"], [_decorator.bound, 2, "openWhiteboard"], [_decorator.bound, 2, "closeWhiteboard"], [_decorator.bound, 2, "closeShareScreen"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_decorator.bound, 2, "toggleConnection"], [_decorator.bound, 2, "openConnection"], [_decorator.bound, 2, "closeConnection"], [_handleJoinWaitingRoomDecs, 18, "_handleJoinWaitingRoom"], [_toggleFoldDecs, 18, "toggleFold"], [_setShowArrowDecs, 18, "setShowArrow"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "_interceptShareScreen"], [_decorator.bound, 2, "_interceptShareBoard"], [_handleRemoteUsersJoinedDecs, 18, "_handleRemoteUsersJoined"], [_handleRemoteUsersLeftDecs, 18, "_handleRemoteUsersLeft"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_handleChatVisibleDecs, 18, "_handleChatVisible"], [_setAppActionbarPopoverVisibleDecs, 18, "setAppActionbarPopoverVisible"], [_decorator.bound, 2, "setAllowWaterMark"], [_decorator.bound, 2, "setWaterMarkLineType"], [_decorator.bound, 2, "setAlllowChangeName"], [_decorator.bound, 2, "_onEvent"], [_operateWaitingRoomDecs, 18, "_operateWaitingRoom"], [_handleCloudRecordingStateUpdatedDecs, 18, "_handleCloudRecordingStateUpdated"], [_setOutputLanguageDecs, 18, "setOutputLanguage"], [_subscribeLanguageDecs, 18, "subscribeLanguage"], [_subscribeExtraOriginLanguageDecs, 18, "subscribeExtraOriginLanguage"], [_getOfflineUserExistenceStateDecs, 18, "getOfflineUserExistenceState"], [_clickWidgetDecs, 18, "clickWidget"], [_closeWidgetDecs, 18, "closeWidget"]], []).e, 15);
|
|
1550
1514
|
_init_newMessageTooltipVisible = _applyDecs$e[0];
|
|
1551
1515
|
_init_totalWaitingRoomUser = _applyDecs$e[1];
|
|
1552
1516
|
_init_liveStreamingState = _applyDecs$e[2];
|
|
@@ -1554,13 +1518,12 @@ _init_currentMenuIs = _applyDecs$e[3];
|
|
|
1554
1518
|
_init_cloudRecordingState = _applyDecs$e[4];
|
|
1555
1519
|
_init_connectionSettingVisible = _applyDecs$e[5];
|
|
1556
1520
|
_init_folded = _applyDecs$e[6];
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
_initProto = _applyDecs$e[15];
|
|
1521
|
+
_init_showArrow = _applyDecs$e[7];
|
|
1522
|
+
_init_phoneMicEnabled = _applyDecs$e[8];
|
|
1523
|
+
_init_chatTabIndex = _applyDecs$e[9];
|
|
1524
|
+
_init_stateBarLeaveMeeting = _applyDecs$e[10];
|
|
1525
|
+
_init_hasOfflineUserExistence = _applyDecs$e[11];
|
|
1526
|
+
_init_connectionState = _applyDecs$e[12];
|
|
1527
|
+
_init_appActionbarPopoverVisible = _applyDecs$e[13];
|
|
1528
|
+
_initProto = _applyDecs$e[14];
|
|
1566
1529
|
var ActionBarContext = exports.ActionBarContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -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.FcrActionBar = void 0;
|
|
8
|
+
exports.actionBarClassName = exports.FcrActionBar = void 0;
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -24,6 +24,7 @@ var _notificationBar = require("./components/notification-bar");
|
|
|
24
24
|
var _deviceControl = _interopRequireDefault(require("../components/device-control"));
|
|
25
25
|
var _leave = require("./components/leave");
|
|
26
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
+
var actionBarClassName = exports.actionBarClassName = 'fcr-action-bar';
|
|
27
28
|
/**
|
|
28
29
|
* @param toggleFold 用于点击折叠底部操作栏
|
|
29
30
|
* @returns
|
|
@@ -77,7 +78,7 @@ var FcrActionBar = exports.FcrActionBar = (0, _mobxReact.observer)(function () {
|
|
|
77
78
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
78
79
|
className: "fcr-action-bar--fold-hotarea"
|
|
79
80
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
80
|
-
className: (0, _classnames["default"])(
|
|
81
|
+
className: (0, _classnames["default"])(actionBarClassName, {
|
|
81
82
|
'fcr-action-bar-fold-style': folded
|
|
82
83
|
}),
|
|
83
84
|
onMouseEnter: function onMouseEnter() {
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
import { FcrBoardShape, WhiteboardThemeType } from '../whiteboard/type';
|
|
2
2
|
import { FcrBoardToolType } from 'fcr-core/lib/room-control/whiteboard-control/enums';
|
|
3
|
-
import { FcrBoardMainWindow } from 'fcr-core/lib/room-control/whiteboard-control/types';
|
|
4
3
|
import { FcrBaseRoomControl } from 'fcr-core/lib/room-control/type';
|
|
5
|
-
import { FcrWhiteboardControl } from 'fcr-core/lib/room-control/whiteboard-control-v2/whiteboard-control/type';
|
|
6
|
-
import { FcrUIAnnotationProvider } from '../../providers/annotation-provider';
|
|
7
4
|
import { FcrUIEventProvider } from '../../providers/event-provider';
|
|
8
5
|
import { FcrUISharedAnnotationSource } from '../../shared-data-source/annotation-data';
|
|
6
|
+
import { FcrPrivilegedAnnotationControl } from 'fcr-core/lib/room-control/whiteboard-control-v2/annotation-control/type';
|
|
9
7
|
export declare class AnnotationReceiverToolbarStore {
|
|
10
8
|
private _whiteboardControl;
|
|
11
9
|
private _roomControl;
|
|
12
|
-
private _annotationProvider;
|
|
13
10
|
private _eventProvider;
|
|
14
11
|
private _sharedAnnotationDataSource;
|
|
15
|
-
|
|
12
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
16
13
|
private _lastStrokeWidth;
|
|
17
14
|
private _boardObserver;
|
|
18
15
|
private _whiteboardObserver;
|
|
19
|
-
private _uiEventObserver;
|
|
20
16
|
accessor observables: {
|
|
21
17
|
currentTool: FcrBoardToolType | undefined;
|
|
22
18
|
currentShape: FcrBoardShape | undefined;
|
|
@@ -46,9 +42,8 @@ export declare class AnnotationReceiverToolbarStore {
|
|
|
46
42
|
progress: number;
|
|
47
43
|
};
|
|
48
44
|
get roomInfo(): import("fcr-core/lib/type").FcrRoomInfo | undefined;
|
|
49
|
-
get boardMainWindow(): FcrBoardMainWindow | null;
|
|
50
|
-
constructor(_whiteboardControl:
|
|
51
|
-
private _onUiEvent;
|
|
45
|
+
get boardMainWindow(): import("fcr-core/lib/room-control/whiteboard-control/types").FcrBoardMainWindow | null;
|
|
46
|
+
constructor(_whiteboardControl: FcrPrivilegedAnnotationControl, _roomControl: FcrBaseRoomControl, _eventProvider: FcrUIEventProvider, _sharedAnnotationDataSource: FcrUISharedAnnotationSource);
|
|
52
47
|
resetToolbarVars(): void;
|
|
53
48
|
get annotationHasStart(): boolean;
|
|
54
49
|
redo(): void;
|
|
@@ -68,14 +63,12 @@ export declare class AnnotationReceiverToolbarStore {
|
|
|
68
63
|
releaseToolbar(): void;
|
|
69
64
|
captureScreen(hideWindow?: boolean): void;
|
|
70
65
|
saveDraft(): void;
|
|
71
|
-
setTheme(theme: WhiteboardThemeType): void;
|
|
72
66
|
setCommonColor(color: string): void;
|
|
73
67
|
repositionToolbar(): void;
|
|
74
68
|
release(): void;
|
|
75
69
|
private _updateDockPlacement;
|
|
76
70
|
private _updateDockPosition;
|
|
77
71
|
private _updateMaxVisibleTools;
|
|
78
|
-
private _setBackgroundColor;
|
|
79
72
|
private _getSnapshotImage;
|
|
80
73
|
private _convertShapeToBoardToolType;
|
|
81
74
|
}
|