fcr-ui-scene 3.7.3 → 3.7.4-rc.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.
Files changed (111) hide show
  1. package/lib/creator.d.ts +2 -0
  2. package/lib/creator.js +14 -0
  3. package/lib/fragments/annotation/libs.d.ts +7 -6
  4. package/lib/fragments/annotation/libs.js +9 -8
  5. package/lib/fragments/whiteboard/store.js +13 -8
  6. package/lib/global.css +6 -0
  7. package/lib/modules/action-bar/components/screen-share/submenu.js +2 -2
  8. package/lib/modules/action-bar/index.d.ts +2 -0
  9. package/lib/modules/action-bar/index.js +2 -1
  10. package/lib/modules/action-bar/store.d.ts +6 -2
  11. package/lib/modules/action-bar/store.js +56 -93
  12. package/lib/modules/annotation/annotation-toolbar-store.js +2 -2
  13. package/lib/modules/annotation/store.js +12 -14
  14. package/lib/modules/audio-stream/index.js +1 -2
  15. package/lib/modules/chat/components/chat-select/index.js +3 -0
  16. package/lib/modules/components/device-control/store.js +2 -2
  17. package/lib/modules/components/leave-meeting/index.js +4 -1
  18. package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.d.ts +6 -4
  19. package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +77 -41
  20. package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +3 -3
  21. package/lib/modules/components/member-window/components/video-player/index.d.ts +3 -3
  22. package/lib/modules/components/member-window/types.d.ts +3 -3
  23. package/lib/modules/control-bar/store.d.ts +10 -8
  24. package/lib/modules/control-bar/store.js +47 -15
  25. package/lib/modules/control-bar/view.js +27 -13
  26. package/lib/modules/device-pretest/store.js +4 -2
  27. package/lib/modules/dialog/components/dialog-container/component/body.js +3 -24
  28. package/lib/modules/dialog/components/dialog-container/index.d.ts +4 -0
  29. package/lib/modules/dialog/components/dialog-container/index.js +67 -44
  30. package/lib/modules/dialog/components/normal-window/index.js +4 -0
  31. package/lib/modules/dialog/dialogs/control-bar/index.js +9 -32
  32. package/lib/modules/dialog/dialogs/sub-window/index.js +4 -0
  33. package/lib/modules/dialog/dialogs/video-window/index.js +28 -23
  34. package/lib/modules/dialog/hooks/useElectron.js +4 -1
  35. package/lib/modules/dialog/level-config.js +1 -1
  36. package/lib/modules/dialog/store.d.ts +4 -3
  37. package/lib/modules/dialog/store.js +14 -10
  38. package/lib/modules/event-confirm/components/window/index.d.ts +5 -2
  39. package/lib/modules/event-confirm/components/window/index.js +38 -14
  40. package/lib/modules/event-confirm/index.css +0 -2
  41. package/lib/modules/event-confirm/store.d.ts +10 -5
  42. package/lib/modules/event-confirm/store.js +62 -13
  43. package/lib/modules/event-confirm/view.js +9 -7
  44. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +1 -2
  45. package/lib/modules/interpreter/store.js +11 -13
  46. package/lib/modules/layout/components/CommonVideoRenderer.js +5 -5
  47. package/lib/modules/layout/store.js +8 -22
  48. package/lib/modules/participant/member-list-data-source.js +3 -5
  49. package/lib/modules/participant/store.js +43 -43
  50. package/lib/modules/secondary-window/index.d.ts +2 -1
  51. package/lib/modules/secondary-window/index.js +5 -0
  52. package/lib/modules/secondary-window/type.d.ts +13 -9
  53. package/lib/modules/secondary-window/view.js +12 -12
  54. package/lib/modules/setting/audio-settings/audio-settings.js +4 -2
  55. package/lib/modules/setting/config.d.ts +4 -0
  56. package/lib/modules/setting/config.js +6 -3
  57. package/lib/modules/setting/store.d.ts +8 -3
  58. package/lib/modules/setting/store.js +104 -74
  59. package/lib/modules/setting/view.js +3 -2
  60. package/lib/modules/share-screen/components/selection/index.js +6 -8
  61. package/lib/modules/share-screen/store.d.ts +9 -10
  62. package/lib/modules/share-screen/store.js +65 -90
  63. package/lib/modules/share-screen/types.d.ts +7 -8
  64. package/lib/modules/video-window/components/members/index.js +3 -3
  65. package/lib/modules/video-window/store.js +3 -3
  66. package/lib/modules/whiteboard/components/control-bar/store.d.ts +3 -0
  67. package/lib/modules/whiteboard/components/control-bar/store.js +20 -11
  68. package/lib/modules/whiteboard/components/toolbar/store.js +2 -2
  69. package/lib/modules/whiteboard/index.d.ts +10 -4
  70. package/lib/modules/whiteboard/index.js +158 -124
  71. package/lib/plugins/module-dev-plugin.js +4 -0
  72. package/lib/providers/annotation-provider.js +3 -3
  73. package/lib/providers/device-privilege-provider.js +13 -12
  74. package/lib/providers/device-provider.d.ts +37 -31
  75. package/lib/providers/device-provider.js +692 -746
  76. package/lib/providers/device-stream-provider.js +4 -4
  77. package/lib/providers/interpreter-provider.js +7 -9
  78. package/lib/providers/multi-display-provider.d.ts +8 -3
  79. package/lib/providers/multi-display-provider.js +18 -6
  80. package/lib/providers/privilege-provider.d.ts +3 -11
  81. package/lib/providers/privilege-provider.js +2 -5
  82. package/lib/providers/renderer-provider.d.ts +3 -3
  83. package/lib/providers/renderer-provider.js +20 -32
  84. package/lib/providers/room-provider.js +14 -15
  85. package/lib/providers/screen-share-provider.d.ts +12 -10
  86. package/lib/providers/screen-share-provider.js +79 -59
  87. package/lib/providers/sharing-provider.js +7 -0
  88. package/lib/providers/whiteboard-provider.js +1 -0
  89. package/lib/scenes/main-scene.js +15 -9
  90. package/lib/schema.d.ts +3 -3
  91. package/lib/schema.js +1 -1
  92. package/lib/shared-data-source/confirm-data.d.ts +19 -0
  93. package/lib/shared-data-source/confirm-data.js +119 -15
  94. package/lib/shared-data-source/screen-share-data.d.ts +29 -28
  95. package/lib/shared-data-source/screen-share-data.js +14 -8
  96. package/lib/shared-data-source/setting.js +2 -2
  97. package/lib/shared-data-source/whiteboard-data.d.ts +7 -5
  98. package/lib/shared-data-source/whiteboard-data.js +9 -8
  99. package/lib/ui-scene.d.ts +2 -0
  100. package/lib/ui-scene.js +77 -21
  101. package/lib/utilities/constant.d.ts +5 -0
  102. package/lib/utilities/constant.js +7 -2
  103. package/lib/utilities/default-config.d.ts +4 -0
  104. package/lib/utilities/default-config.js +8 -4
  105. package/lib/utilities/dialog-utils.d.ts +3 -2
  106. package/lib/utilities/dialog-utils.js +33 -14
  107. package/lib/utilities/package-info.d.ts +3 -0
  108. package/lib/utilities/package-info.js +15 -0
  109. package/lib/waiting-room-control-manager.js +6 -6
  110. package/package.json +6 -6
  111. package/public/index.html +5 -0
@@ -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("../whiteboard/type");
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 _type5 = require("fcr-core/lib/room-control/type");
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, _init_boardOwnerUser, _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;
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, _init_boardOwnerUser(this, null));
174
- _classPrivateFieldInitSpec(this, _I, _init_showArrow(this, false));
175
- _classPrivateFieldInitSpec(this, _J, _init_phoneMicEnabled(this, false));
176
- _classPrivateFieldInitSpec(this, _K, _init_chatTabIndex(this, _type2.FcrUIRoomType.MAIN_ROOM));
177
- _classPrivateFieldInitSpec(this, _L, _init_stateBarLeaveMeeting(this, false));
178
- _classPrivateFieldInitSpec(this, _M, _init_hasOfflineUserExistence(this, true));
179
- _classPrivateFieldInitSpec(this, _N, _init_connectionState(this, _fcrCore.FcrConnectionState.CONNECTED));
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 === _type5.FcrRoomType.Mainroom) {
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: "boardOwnerUser",
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: "showArrow",
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: "phoneMicEnabled",
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: "chatTabIndex",
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: "stateBarLeaveMeeting",
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: "hasOfflineUserExistence",
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: "connectionState",
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
- var _this$sharingOwnerUse;
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
- var _this$sharingOwnerUse2;
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 === _type5.FcrRoomType.Mainroom;
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 === _type5.FcrRoomType.Mainroom) {
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.hasScreenShare || this.boardOwnerUser && this.boardOwnerUser.userId !== this.localUserId) {
1202
- var _this$sharingOwnerUse3;
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$sharingOwnerUse3 = this.sharingOwnerUser) === null || _this$sharingOwnerUse3 === void 0 ? void 0 : _this$sharingOwnerUse3.userName) || (0, _i18n.transI18n)('fmt_actionbar_screenshare_labels_others')
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.boardOwnerUser.userId !== this.localUserId) {
1231
+ if (this.boardOwnerUser && !this.isMeSharingBoard) {
1232
1232
  var confirmKey = this._dialogProvider.openConfirmDialog({
1233
- icon: _type4.FcrIconType.FCR_SCREENSHARING,
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, "boardOwnerUser"], [_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, "hasCloseWriteBoardPermission"], [_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, 16);
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
- _init_boardOwnerUser = _applyDecs$e[7];
1558
- _init_showArrow = _applyDecs$e[8];
1559
- _init_phoneMicEnabled = _applyDecs$e[9];
1560
- _init_chatTabIndex = _applyDecs$e[10];
1561
- _init_stateBarLeaveMeeting = _applyDecs$e[11];
1562
- _init_hasOfflineUserExistence = _applyDecs$e[12];
1563
- _init_connectionState = _applyDecs$e[13];
1564
- _init_appActionbarPopoverVisible = _applyDecs$e[14];
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);
@@ -58,8 +58,8 @@ var _react = require("react");
58
58
  var _enums = require("fcr-core/lib/room-control/whiteboard-control/enums");
59
59
  var _libs = _interopRequireDefault(require("../whiteboard/components/switch-theme/libs"));
60
60
  var _tinycolor = _interopRequireDefault(require("tinycolor2"));
61
+ var _type2 = require("fcr-core/lib/type");
61
62
  var _decorator = require("agora-foundation/lib/decorator");
62
- var _imports = require("fcr-core/lib/imports");
63
63
  var _utils = require("../whiteboard/utils");
64
64
  var _dayjs = _interopRequireDefault(require("dayjs"));
65
65
  var _logger = require("../../utilities/logger");
@@ -99,7 +99,7 @@ var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*
99
99
  if (!_this._whiteboardControl) {
100
100
  return;
101
101
  }
102
- if (state === _imports.AgoraRteConnectionState.CONNECTED) {
102
+ if (state === _type2.FcrConnectionState.CONNECTED) {
103
103
  var _this$boardMainWindow;
104
104
  _this._lastStrokeWidth = 0;
105
105
  (_this$boardMainWindow = _this.boardMainWindow) === null || _this$boardMainWindow === void 0 || _this$boardMainWindow.addObserver(_this._boardObserver);
@@ -73,7 +73,7 @@ var _react = require("react");
73
73
  var _constant = require("../../utilities/constant");
74
74
  var _decorator = require("agora-foundation/lib/decorator");
75
75
  var _rendererEvent = require("../../utilities/renderer-event");
76
- var _type = require("agora-rte-sdk/lib/core/rtc/type");
76
+ var _type = require("fcr-core/lib/type");
77
77
  var _annotationProvider = require("../../providers/annotation-provider");
78
78
  var _mobx = require("mobx");
79
79
  var _fcrCore = require("fcr-core");
@@ -82,7 +82,6 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
82
82
  var _logger = require("../../utilities/logger");
83
83
  var _env = require("agora-foundation/lib/utilities/env");
84
84
  var _type3 = require("../whiteboard/type");
85
- var _type4 = require("fcr-core/lib/type");
86
85
  var _annotationToolbarStore = require("./annotation-toolbar-store");
87
86
  var _sharedStorage = require("../../utilities/shared-storage");
88
87
  var _AnnotationStore;
@@ -118,7 +117,7 @@ var AnnotationStore = exports.AnnotationStore = /*#__PURE__*/function () {
118
117
  (0, _defineProperty2["default"])(this, "_shareScreenOwnerId", '');
119
118
  (0, _defineProperty2["default"])(this, "_currentShareInfo", {
120
119
  id: '',
121
- type: _type.AgoraRtcScreenCaptureType.SCREEN,
120
+ type: _type.FcrScreenCaptureType.SCREEN,
122
121
  bounds: {
123
122
  x: 0,
124
123
  y: 0,
@@ -513,26 +512,25 @@ var AnnotationStore = exports.AnnotationStore = /*#__PURE__*/function () {
513
512
  }, {
514
513
  key: "_addWindowResizeListener",
515
514
  value: function _addWindowResizeListener() {
516
- var _this3 = this;
517
- if (!this._resizeWatcherTimer && (0, _env.isElectron)()) {
518
- this._resizeWatcherTimer = setInterval(function () {
519
- _this3._updateBoundsByActiveWindow();
520
- }, 2000);
521
- }
515
+ // if (!this._resizeWatcherTimer && isElectron()) {
516
+ // this._resizeWatcherTimer = setInterval(() => {
517
+ // this._updateBoundsByActiveWindow();
518
+ // }, 2000);
519
+ // }
522
520
  }
523
521
  }, {
524
522
  key: "_removeWindowResizeListenner",
525
523
  value: function _removeWindowResizeListenner() {
526
- if (this._resizeWatcherTimer && (0, _env.isElectron)()) {
527
- clearInterval(this._resizeWatcherTimer);
528
- this._resizeWatcherTimer = null;
529
- }
524
+ // if (this._resizeWatcherTimer && isElectron()) {
525
+ // clearInterval(this._resizeWatcherTimer);
526
+ // this._resizeWatcherTimer = null;
527
+ // }
530
528
  }
531
529
  }, {
532
530
  key: "_checkIfAnnotationCanStart",
533
531
  value: function _checkIfAnnotationCanStart() {
534
532
  var streams = this._streamControl.getStreams();
535
- var notSupportPlatform = [_type4.FcrPlatform.WEB_DESKTOP, _type4.FcrPlatform.WEB_MOBILE, _type4.FcrPlatform.IOS];
533
+ var notSupportPlatform = [_type.FcrPlatform.WEB_DESKTOP, _type.FcrPlatform.WEB_MOBILE, _type.FcrPlatform.IOS];
536
534
  var streamLists = Object.keys(streams).map(function (key) {
537
535
  return streams[key];
538
536
  });
@@ -46,7 +46,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
46
46
  var _base = require("../../base");
47
47
  var _fcrCore = require("fcr-core");
48
48
  var _constant = require("../../utilities/constant");
49
- var _imports = require("fcr-core/lib/imports");
50
49
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
51
50
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
52
51
  var EventType = /*#__PURE__*/function (EventType) {
@@ -260,7 +259,7 @@ var AudioStreamUIModule = exports.AudioStreamUIModule = /*#__PURE__*/function (_
260
259
  (0, _defineProperty2["default"])(_this, "_setMainRoomVolume", function (volume) {
261
260
  var mainStreamControl = _this._streamControl;
262
261
  mainStreamControl.getStreamList().forEach(function (stream) {
263
- var needSetVolume = [_imports.AgoraRteMediaStreamType.AUDIO, _imports.AgoraRteMediaStreamType.BOTH].includes(stream.streamType);
262
+ var needSetVolume = [_fcrCore.FcrStreamType.AUDIO, _fcrCore.FcrStreamType.BOTH].includes(stream.streamType);
264
263
  if (needSetVolume) mainStreamControl.adjustRemoteAudioStreamVolume(stream.streamId, volume);
265
264
  });
266
265
  _this._clearTimer();
@@ -88,6 +88,9 @@ var ChatSelect = exports.ChatSelect = (0, _mobxReact.observer)(function (_ref) {
88
88
  })]
89
89
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
90
90
  className: "assign-host-body-list",
91
+ onClick: function onClick(e) {
92
+ return e.stopPropagation();
93
+ },
91
94
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactVirtualized.List, {
92
95
  ref: ref
93
96
  // autoHeight={true}
@@ -54,7 +54,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
54
54
  var _react = require("react");
55
55
  var _fcrCore = require("fcr-core");
56
56
  var _mobx = require("mobx");
57
- var _type = require("agora-rte-sdk/lib/core/scene/type");
57
+ var _type = require("fcr-core/lib/type");
58
58
  var _decorator = require("agora-foundation/lib/decorator");
59
59
  var _constant = require("../../../utilities/constant");
60
60
  var _DeviceControlStore;
@@ -228,7 +228,7 @@ var DeviceControlStore = exports.DeviceControlStore = /*#__PURE__*/function () {
228
228
  var hasPstnStream = !!pstnStream;
229
229
  this.isPstnUser = hasPstnStream;
230
230
  if (hasPstnStream) {
231
- this.phoneMicEnabled = pstnStream.streamType === _type.AgoraRteMediaStreamType.BOTH || pstnStream.audioSourceState === _fcrCore.FcrMediaSourceState.OPEN;
231
+ this.phoneMicEnabled = pstnStream.streamType === _type.FcrStreamType.BOTH || pstnStream.audioSourceState === _fcrCore.FcrMediaSourceState.OPEN;
232
232
  }
233
233
  }
234
234
  }]);
@@ -107,7 +107,10 @@ var LeaveMeeting = exports.LeaveMeeting = (0, _mobxReact.observer)(function (pro
107
107
  children: t('fmt_popup_button_endmeeting')
108
108
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
109
109
  className: "leave-cancel",
110
- onClick: handleLeave,
110
+ onClick: function onClick(e) {
111
+ e.stopPropagation();
112
+ handleLeave();
113
+ },
111
114
  children: t('fmt_popup_button_leavemeeting')
112
115
  })]
113
116
  })
@@ -1,7 +1,7 @@
1
- import { AgoraRtcRenderMode } from 'fcr-core/lib/imports';
1
+ import { FcrVideoRenderMode } from 'fcr-core/lib/type';
2
2
  import { FcrVideoSourceType } from 'fcr-core';
3
- export declare const FcrUILocalVideoPlayerWithZoom: (props: {
4
- renderMode: AgoraRtcRenderMode;
3
+ type FcrUILocalVideoPlayerProps = {
4
+ renderMode: FcrVideoRenderMode;
5
5
  hasScreenSharing: boolean;
6
6
  videoSourceType: FcrVideoSourceType;
7
7
  scalcValue: number;
@@ -9,4 +9,6 @@ export declare const FcrUILocalVideoPlayerWithZoom: (props: {
9
9
  minScale?: number;
10
10
  maxScale?: number;
11
11
  onScaleChange?: (scale: number) => void;
12
- }) => import("react/jsx-runtime").JSX.Element;
12
+ };
13
+ export declare const FcrUILocalVideoPlayerWithZoom: React.FC<FcrUILocalVideoPlayerProps>;
14
+ export {};