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
@@ -115,9 +115,10 @@ var _types = require("fcr-core/lib/room-control/whiteboard-control/types");
115
115
  var _i18n = require("agora-ui-foundation/lib/i18n");
116
116
  var _type3 = require("agora-ui-foundation/lib/components/icon/type");
117
117
  var _logger = require("../../utilities/logger");
118
+ var _type4 = require("../secondary-window/type");
118
119
  var _jsxRuntime = require("react/jsx-runtime");
119
120
  var _FcrWhiteboardUIModule;
120
- var _initProto, _init__lonelyWindowState, _init__ownerUser, _init__isHost, _init__boardBackground, _init__localUser, _onPropertiesUpdateDecs, _mountDecs, _unmountDecs, _unloadDecs, _setBackgroundDecs, _boardUIEventsDecs, _repositionToolbarDecs, _setConnectionStateDecs, _openLonelyWindowDecs, _setJoinSuccessedDecs, _ref;
121
+ var _initProto, _init__isMultiDisplay, _init__lonelyWindowState, _init__ownerUser, _init__isHost, _init__boardBackground, _init__localUser, _handleActiveDecs, _mountDecs, _unmountDecs, _unloadDecs, _setBackgroundDecs, _boardUIEventsDecs, _repositionToolbarDecs, _setConnectionStateDecs, _setJoinSuccessedDecs, _ref;
121
122
  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; }
122
123
  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; }
123
124
  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)); }
@@ -137,7 +138,8 @@ var _B = /*#__PURE__*/new WeakMap();
137
138
  var _C = /*#__PURE__*/new WeakMap();
138
139
  var _D = /*#__PURE__*/new WeakMap();
139
140
  var _E = /*#__PURE__*/new WeakMap();
140
- _ref = (_onPropertiesUpdateDecs = [_mobx.action, _mobx.action.bound], _mountDecs = [_mobx.action, _mobx.action.bound], _unmountDecs = [_mobx.action, _mobx.action.bound], _unloadDecs = [_mobx.action, _mobx.action.bound], _setBackgroundDecs = [_mobx.action, _mobx.action.bound], _boardUIEventsDecs = [_mobx.action, _mobx.action.bound], _repositionToolbarDecs = [_mobx.action, _mobx.action.bound], _setConnectionStateDecs = [_mobx.action, _mobx.action.bound], _openLonelyWindowDecs = [_mobx.action, _mobx.action.bound], _setJoinSuccessedDecs = [_mobx.action, _mobx.action.bound], "logger");
141
+ var _F = /*#__PURE__*/new WeakMap();
142
+ _ref = (_handleActiveDecs = [_mobx.action, _mobx.action.bound], _mountDecs = [_mobx.action, _mobx.action.bound], _unmountDecs = [_mobx.action, _mobx.action.bound], _unloadDecs = [_mobx.action, _mobx.action.bound], _setBackgroundDecs = [_mobx.action, _mobx.action.bound], _boardUIEventsDecs = [_mobx.action, _mobx.action.bound], _repositionToolbarDecs = [_mobx.action, _mobx.action.bound], _setConnectionStateDecs = [_mobx.action, _mobx.action.bound], _setJoinSuccessedDecs = [_mobx.action, _mobx.action.bound], "logger");
141
143
  var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/function (_UIModule) {
142
144
  function FcrWhiteboardUIModule() {
143
145
  var _this;
@@ -159,7 +161,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
159
161
  (0, _defineProperty2["default"])(_this, "_isMyBoard", false);
160
162
  (0, _defineProperty2["default"])(_this, "_boardObserver", {
161
163
  onActive: function onActive(_, operatorUser) {
162
- return _this.onPropertiesUpdate({
164
+ return _this._handleActive({
163
165
  operatorUser: operatorUser
164
166
  });
165
167
  },
@@ -219,20 +221,68 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
219
221
  return onConnectionStateUpdated;
220
222
  }()
221
223
  });
224
+ (0, _defineProperty2["default"])(_this, "_multiDisplayObserver", {
225
+ onContentDistributionUpdated: function onContentDistributionUpdated(distribution) {
226
+ if (distribution.secondaryWindow.type === _type4.FcrUIDisplayDistributionContentType.HIDDEN) {
227
+ _this._isActive && _this._checkBoard();
228
+ } else {
229
+ _this.unmount();
230
+ }
231
+ }
232
+ });
233
+ (0, _defineProperty2["default"])(_this, "_streamObserver", {
234
+ onStreamsRemoved: function onStreamsRemoved(roomId, events) {
235
+ var seizeData = events.find(function (event) {
236
+ var _event$cause;
237
+ return ((_event$cause = event.cause) === null || _event$cause === void 0 ? void 0 : _event$cause.data.reason) === _types.FcrBoardInactiveReason.SEIZE;
238
+ });
239
+ var isMyStream = events.some(function (event) {
240
+ var _this$_localUser2;
241
+ return event.modifiedStream.owner.userId === ((_this$_localUser2 = _this._localUser) === null || _this$_localUser2 === void 0 ? void 0 : _this$_localUser2.userId);
242
+ });
243
+ if (seizeData) {
244
+ var _seizeData$operatorUs, _this$_localUser3;
245
+ var operatorIsMe = ((_seizeData$operatorUs = seizeData.operatorUser) === null || _seizeData$operatorUs === void 0 ? void 0 : _seizeData$operatorUs.userId) !== ((_this$_localUser3 = _this._localUser) === null || _this$_localUser3 === void 0 ? void 0 : _this$_localUser3.userId);
246
+ if (isMyStream && operatorIsMe) {
247
+ _this._alertWhenBeenStopByOthers(seizeData === null || seizeData === void 0 ? void 0 : seizeData.operatorUser);
248
+ }
249
+ if (!isMyStream) {
250
+ var _this$_uiEventStore, _seizeData$operatorUs2;
251
+ (_this$_uiEventStore = _this._uiEventStore) === null || _this$_uiEventStore === void 0 || _this$_uiEventStore.showToast({
252
+ type: 'info',
253
+ message: "".concat(seizeData === null || seizeData === void 0 || (_seizeData$operatorUs2 = seizeData.operatorUser) === null || _seizeData$operatorUs2 === void 0 ? void 0 : _seizeData$operatorUs2.userName, " ").concat((0, _i18n.transI18n)('fmt_screenshare_whiteboard_lables_newshare'))
254
+ });
255
+ }
256
+ }
257
+ }
258
+ });
259
+ (0, _defineProperty2["default"])(_this, "_userObserver", {
260
+ onUserInfoUpdated: function onUserInfoUpdated(_, event) {
261
+ var _this$_localUser4;
262
+ if (event.modifiedUser.userId === ((_this$_localUser4 = _this._localUser) === null || _this$_localUser4 === void 0 ? void 0 : _this$_localUser4.userId)) {
263
+ _this._localUser = event.modifiedUser;
264
+ _this._isHost = [_type2.FcrUserRole.HOST, _type2.FcrUserRole.COHOST].includes(_this._localUser.userRole);
265
+ }
266
+ }
267
+ });
268
+ (0, _defineProperty2["default"])(_this, "_eventObserver", {
269
+ onEvent: _this.onEvent.bind(_this)
270
+ });
222
271
  (0, _defineProperty2["default"])(_this, "_mounted", false);
223
272
  (0, _defineProperty2["default"])(_this, "_initialized", false);
224
273
  (0, _defineProperty2["default"])(_this, "_joined", false);
225
274
  (0, _defineProperty2["default"])(_this, "_grantedUsers", new Set());
226
- _classPrivateFieldInitSpec(_this, _A, _init__lonelyWindowState(_this, _type.LonelyWindowState.DEFAULT));
227
- _classPrivateFieldInitSpec(_this, _B, _init__ownerUser(_this, undefined));
228
- _classPrivateFieldInitSpec(_this, _C, _init__isHost(_this, false));
229
- _classPrivateFieldInitSpec(_this, _D, _init__boardBackground(_this, '#ffffff'));
230
- _classPrivateFieldInitSpec(_this, _E, _init__localUser(_this, undefined));
275
+ _classPrivateFieldInitSpec(_this, _A, _init__isMultiDisplay(_this, false));
276
+ _classPrivateFieldInitSpec(_this, _B, _init__lonelyWindowState(_this, _type.LonelyWindowState.DEFAULT));
277
+ _classPrivateFieldInitSpec(_this, _C, _init__ownerUser(_this, undefined));
278
+ _classPrivateFieldInitSpec(_this, _D, _init__isHost(_this, false));
279
+ _classPrivateFieldInitSpec(_this, _E, _init__boardBackground(_this, '#ffffff'));
280
+ _classPrivateFieldInitSpec(_this, _F, _init__localUser(_this, undefined));
231
281
  return _this;
232
282
  }
233
283
  (0, _inherits2["default"])(FcrWhiteboardUIModule, _UIModule);
234
284
  return (0, _createClass2["default"])(FcrWhiteboardUIModule, [{
235
- key: "_lonelyWindowState",
285
+ key: "_isMultiDisplay",
236
286
  get: function get() {
237
287
  return _classPrivateFieldGet(_A, this);
238
288
  },
@@ -240,7 +290,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
240
290
  _classPrivateFieldSet(_A, this, v);
241
291
  }
242
292
  }, {
243
- key: "_ownerUser",
293
+ key: "_lonelyWindowState",
244
294
  get: function get() {
245
295
  return _classPrivateFieldGet(_B, this);
246
296
  },
@@ -248,7 +298,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
248
298
  _classPrivateFieldSet(_B, this, v);
249
299
  }
250
300
  }, {
251
- key: "_isHost",
301
+ key: "_ownerUser",
252
302
  get: function get() {
253
303
  return _classPrivateFieldGet(_C, this);
254
304
  },
@@ -256,7 +306,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
256
306
  _classPrivateFieldSet(_C, this, v);
257
307
  }
258
308
  }, {
259
- key: "_boardBackground",
309
+ key: "_isHost",
260
310
  get: function get() {
261
311
  return _classPrivateFieldGet(_D, this);
262
312
  },
@@ -264,13 +314,21 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
264
314
  _classPrivateFieldSet(_D, this, v);
265
315
  }
266
316
  }, {
267
- key: "_localUser",
317
+ key: "_boardBackground",
268
318
  get: function get() {
269
319
  return _classPrivateFieldGet(_E, this);
270
320
  },
271
321
  set: function set(v) {
272
322
  _classPrivateFieldSet(_E, this, v);
273
323
  }
324
+ }, {
325
+ key: "_localUser",
326
+ get: function get() {
327
+ return _classPrivateFieldGet(_F, this);
328
+ },
329
+ set: function set(v) {
330
+ _classPrivateFieldSet(_F, this, v);
331
+ }
274
332
  }, {
275
333
  key: "hasPrivilege",
276
334
  get: function get() {
@@ -303,9 +361,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
303
361
  }, {
304
362
  key: "onNodeWillActive",
305
363
  value: function onNodeWillActive() {
306
- var _this$currentRoomCont,
307
- _this2 = this,
308
- _this$_uiEventStore;
364
+ var _this$currentRoomCont, _this$_uiEventStore2;
309
365
  this._uiEventStore = this.eventProvider;
310
366
  this._roomControl = (_this$currentRoomCont = this.currentRoomControlProvider) === null || _this$currentRoomCont === void 0 ? void 0 : _this$currentRoomCont.currentRoomControl;
311
367
  this._securityStore = this.privilegeProvider;
@@ -314,6 +370,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
314
370
  var streamControl = this._roomControl.getStreamControl();
315
371
  var userControl = this._roomControl.getUserControl();
316
372
  this._userControl = userControl;
373
+ this._streamControl = streamControl;
317
374
  this._controlbarStore = new _store2.WhiteboardControlBarStore({
318
375
  uiEventStore: this.eventProvider,
319
376
  streamControl: streamControl,
@@ -323,44 +380,11 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
323
380
  sharedAnnotationDataSource: this.sharedAnnotationDataSource
324
381
  });
325
382
  this._whiteboardControl.addObserver(this._boardObserver);
326
- streamControl.addObserver({
327
- onStreamsRemoved: function onStreamsRemoved(roomId, events) {
328
- var seizeData = events.find(function (event) {
329
- var _event$cause;
330
- return ((_event$cause = event.cause) === null || _event$cause === void 0 ? void 0 : _event$cause.data.reason) === _types.FcrBoardInactiveReason.SEIZE;
331
- });
332
- var isMyStream = events.some(function (event) {
333
- var _this2$_localUser;
334
- return event.modifiedStream.owner.userId === ((_this2$_localUser = _this2._localUser) === null || _this2$_localUser === void 0 ? void 0 : _this2$_localUser.userId);
335
- });
336
- if (seizeData) {
337
- var _seizeData$operatorUs, _this2$_localUser2;
338
- var operatorIsMe = ((_seizeData$operatorUs = seizeData.operatorUser) === null || _seizeData$operatorUs === void 0 ? void 0 : _seizeData$operatorUs.userId) !== ((_this2$_localUser2 = _this2._localUser) === null || _this2$_localUser2 === void 0 ? void 0 : _this2$_localUser2.userId);
339
- if (isMyStream && operatorIsMe) {
340
- _this2._alertWhenBeenStopByOthers(seizeData === null || seizeData === void 0 ? void 0 : seizeData.operatorUser);
341
- }
342
- if (!isMyStream) {
343
- var _this2$_uiEventStore, _seizeData$operatorUs2;
344
- (_this2$_uiEventStore = _this2._uiEventStore) === null || _this2$_uiEventStore === void 0 || _this2$_uiEventStore.showToast({
345
- type: 'info',
346
- message: "".concat(seizeData === null || seizeData === void 0 || (_seizeData$operatorUs2 = seizeData.operatorUser) === null || _seizeData$operatorUs2 === void 0 ? void 0 : _seizeData$operatorUs2.userName, " ").concat((0, _i18n.transI18n)('fmt_screenshare_whiteboard_lables_newshare'))
347
- });
348
- }
349
- }
350
- }
351
- });
352
- userControl.addObserver({
353
- onUserInfoUpdated: function onUserInfoUpdated(_, event) {
354
- var _this2$_localUser3;
355
- if (event.modifiedUser.userId === ((_this2$_localUser3 = _this2._localUser) === null || _this2$_localUser3 === void 0 ? void 0 : _this2$_localUser3.userId)) {
356
- _this2._localUser = event.modifiedUser;
357
- _this2._isHost = [_type2.FcrUserRole.HOST, _type2.FcrUserRole.COHOST].includes(_this2._localUser.userRole);
358
- }
359
- }
360
- });
361
- (_this$_uiEventStore = this._uiEventStore) === null || _this$_uiEventStore === void 0 || _this$_uiEventStore.addObserver({
362
- onEvent: this.onEvent.bind(this)
363
- });
383
+ this.multiDisplayProvider.addObserver(this._multiDisplayObserver);
384
+ this._streamControl.addObserver(this._streamObserver);
385
+ this._userControl.addObserver(this._userObserver);
386
+ (_this$_uiEventStore2 = this._uiEventStore) === null || _this$_uiEventStore2 === void 0 || _this$_uiEventStore2.addObserver(this._eventObserver);
387
+ this._isMultiDisplay = this.multiDisplayProvider.isActive;
364
388
  this._boardStore = this._createBoardUIContext();
365
389
  this._localUser = this._userControl.getLocalUser();
366
390
  this._isHost = [_type2.FcrUserRole.HOST, _type2.FcrUserRole.COHOST].includes(this._localUser.userRole);
@@ -369,15 +393,19 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
369
393
  var ownerUserId = this._whiteboardControl.getOwnerId();
370
394
  this._isActive = isActive;
371
395
  if (isActive) {
372
- this._checkBoard();
373
- this._ownerUser = this._userControl.getUser(ownerUserId);
374
- this._boardBackground = this._whiteboardControl.getBackgroundColor();
396
+ if (!this._isMultiDisplay) {
397
+ this.logger.info('[whiteboard]: is active');
398
+ this._checkBoard();
399
+ this._ownerUser = this._userControl.getUser(ownerUserId);
400
+ this._boardBackground = this._whiteboardControl.getBackgroundColor();
401
+ }
375
402
  }
376
403
  }
377
404
  }, {
378
405
  key: "onNodeWillInactive",
379
406
  value: function onNodeWillInactive() {
380
407
  this.onDestroy();
408
+ this.release();
381
409
  }
382
410
  }, {
383
411
  key: "getComponent",
@@ -453,20 +481,21 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
453
481
  }
454
482
  }
455
483
  }, {
456
- key: "onPropertiesUpdate",
457
- value: function onPropertiesUpdate(params) {
484
+ key: "_handleActive",
485
+ value: function _handleActive(params) {
458
486
  // this._checkPrivilege(props);
487
+ this.logger.info('[whiteboard] active');
459
488
  this._checkBoard();
460
489
  }
461
490
  }, {
462
491
  key: "onDestroy",
463
492
  value: function onDestroy(params) {
464
- var _this$_securityStore2, _this$_localUser2;
493
+ var _this$_securityStore2, _this$_localUser5;
465
494
  var _ref2 = params || {},
466
495
  operatorUser = _ref2.operatorUser;
467
- if ((_this$_securityStore2 = this._securityStore) !== null && _this$_securityStore2 !== void 0 && _this$_securityStore2.hasStartScreenSharePermission() && (operatorUser === null || operatorUser === void 0 ? void 0 : operatorUser.userId) !== ((_this$_localUser2 = this._localUser) === null || _this$_localUser2 === void 0 ? void 0 : _this$_localUser2.userId) && this._isActive) {
468
- var _this$_uiEventStore2;
469
- (_this$_uiEventStore2 = this._uiEventStore) === null || _this$_uiEventStore2 === void 0 || _this$_uiEventStore2.showToast({
496
+ if ((_this$_securityStore2 = this._securityStore) !== null && _this$_securityStore2 !== void 0 && _this$_securityStore2.hasStartScreenSharePermission() && (operatorUser === null || operatorUser === void 0 ? void 0 : operatorUser.userId) !== ((_this$_localUser5 = this._localUser) === null || _this$_localUser5 === void 0 ? void 0 : _this$_localUser5.userId) && this._isActive) {
497
+ var _this$_uiEventStore3;
498
+ (_this$_uiEventStore3 = this._uiEventStore) === null || _this$_uiEventStore3 === void 0 || _this$_uiEventStore3.showToast({
470
499
  message: this._isMyBoard ? (0, _i18n.transI18n)('fmt_screenshare_whiteboard_tips_stoppedboard') : (0, _i18n.transI18n)('fmt_screenshare_whiteboard_tips_stopped'),
471
500
  type: 'info'
472
501
  });
@@ -488,6 +517,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
488
517
  var _boardMainWindow = this._boardMainWindow,
489
518
  _boardDom = this._boardDom;
490
519
  if (_boardDom && _boardMainWindow && !this._mounted) {
520
+ this.logger.info('[whiteboard] mount');
491
521
  this._mounted = true;
492
522
  var aspectRatio = this._initHeight / this._initWidth;
493
523
  var view = _boardMainWindow.getContentView();
@@ -505,13 +535,13 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
505
535
 
506
536
  var isActive = (_this$_whiteboardCont6 = this._whiteboardControl) === null || _this$_whiteboardCont6 === void 0 ? void 0 : _this$_whiteboardCont6.getActivity();
507
537
  if (isActive && this._whiteboardControl) {
508
- var _this$_userControl2, _this$_ownerUser2, _this$_localUser3, _this$_boardStore2, _this$_boardStore3, _this$_uiEventStore3, _this$_toolbarStore;
538
+ var _this$_userControl2, _this$_ownerUser2, _this$_localUser6, _this$_boardStore2, _this$_boardStore3, _this$_uiEventStore4, _this$_toolbarStore;
509
539
  var ownerUserId = this._whiteboardControl.getOwnerId();
510
540
  this._ownerUser = (_this$_userControl2 = this._userControl) === null || _this$_userControl2 === void 0 ? void 0 : _this$_userControl2.getUser(ownerUserId);
511
- this._isMyBoard = ((_this$_ownerUser2 = this._ownerUser) === null || _this$_ownerUser2 === void 0 ? void 0 : _this$_ownerUser2.userId) === ((_this$_localUser3 = this._localUser) === null || _this$_localUser3 === void 0 ? void 0 : _this$_localUser3.userId);
541
+ this._isMyBoard = ((_this$_ownerUser2 = this._ownerUser) === null || _this$_ownerUser2 === void 0 ? void 0 : _this$_ownerUser2.userId) === ((_this$_localUser6 = this._localUser) === null || _this$_localUser6 === void 0 ? void 0 : _this$_localUser6.userId);
512
542
  (_this$_boardStore2 = this._boardStore) === null || _this$_boardStore2 === void 0 || _this$_boardStore2.setPrivilege(this._isMyBoard || this._isHost);
513
543
  (_this$_boardStore3 = this._boardStore) === null || _this$_boardStore3 === void 0 || _this$_boardStore3.setWriteEnable(this._isMyBoard || this._isHost);
514
- (_this$_uiEventStore3 = this._uiEventStore) === null || _this$_uiEventStore3 === void 0 || _this$_uiEventStore3.sendEvent(_constant.FcrUIAction.WHITEBOARD_CHANGED, {
544
+ (_this$_uiEventStore4 = this._uiEventStore) === null || _this$_uiEventStore4 === void 0 || _this$_uiEventStore4.sendEvent(_constant.FcrUIAction.WHITEBOARD_CHANGED, {
515
545
  action: _type.WhiteboardBaseEvents.SET_OWNER_USER_ID,
516
546
  payload: ownerUserId
517
547
  });
@@ -526,16 +556,11 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
526
556
  key: "unmount",
527
557
  value: function unmount() {
528
558
  if (this._mounted && this._boardMainWindow) {
529
- var _this$_boardDom, _this$_uiEventStore4;
559
+ var _this$_boardDom, _this$_uiEventStore5;
560
+ this.logger.info('[whiteboard] unmount');
530
561
  (_this$_boardDom = this._boardDom) === null || _this$_boardDom === void 0 || _this$_boardDom.removeChild(this._boardMainWindow.getContentView());
531
562
  this._boardMainWindow = undefined;
532
- if (this._lonelyWindowState === _type.LonelyWindowState.OPEN) {
533
- this._openLonelyWindow();
534
- }
535
- if (this._lonelyWindowState === _type.LonelyWindowState.CLOSE) {
536
- this._open();
537
- }
538
- (_this$_uiEventStore4 = this._uiEventStore) === null || _this$_uiEventStore4 === void 0 || _this$_uiEventStore4.sendEvent(_constant.FcrUIAction.WHITEBOARD_CHANGED, {
563
+ (_this$_uiEventStore5 = this._uiEventStore) === null || _this$_uiEventStore5 === void 0 || _this$_uiEventStore5.sendEvent(_constant.FcrUIAction.WHITEBOARD_CHANGED, {
539
564
  action: _type.WhiteboardBaseEvents.SET_OWNER_USER_ID,
540
565
  payload: null
541
566
  });
@@ -554,6 +579,21 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
554
579
  this._outerDom = undefined;
555
580
  }
556
581
  }
582
+ }, {
583
+ key: "release",
584
+ value: function release() {
585
+ var _this$_toolbarStore2, _this$_controlbarStor, _this$_whiteboardCont7, _this$_uiEventStore6, _this$_userControl3, _this$_streamControl;
586
+ (_this$_toolbarStore2 = this._toolbarStore) === null || _this$_toolbarStore2 === void 0 || _this$_toolbarStore2.release();
587
+ (_this$_controlbarStor = this._controlbarStore) === null || _this$_controlbarStor === void 0 || _this$_controlbarStor.release();
588
+ this._boardStore = undefined;
589
+ this._toolbarStore = undefined;
590
+ this._controlbarStore = undefined;
591
+ (_this$_whiteboardCont7 = this._whiteboardControl) === null || _this$_whiteboardCont7 === void 0 || _this$_whiteboardCont7.removeObserver(this._boardObserver);
592
+ this.multiDisplayProvider.removeObserver(this._multiDisplayObserver);
593
+ (_this$_uiEventStore6 = this._uiEventStore) === null || _this$_uiEventStore6 === void 0 || _this$_uiEventStore6.removeObserver(this._eventObserver);
594
+ (_this$_userControl3 = this._userControl) === null || _this$_userControl3 === void 0 || _this$_userControl3.removeObserver(this._userObserver);
595
+ (_this$_streamControl = this._streamControl) === null || _this$_streamControl === void 0 || _this$_streamControl.removeObserver(this._streamObserver);
596
+ }
557
597
  }, {
558
598
  key: "_setBackground",
559
599
  value: function _setBackground() {
@@ -583,18 +623,18 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
583
623
  }, {
584
624
  key: "_boardUIEvents",
585
625
  value: function _boardUIEvents(observables) {
586
- var _this3 = this;
626
+ var _this2 = this;
587
627
  return {
588
628
  handleBoardDomLoad: function handleBoardDomLoad(ref) {
589
- _this3._boardDom = ref;
590
- if (_this3._boardDom) {
591
- _this3.mount();
629
+ _this2._boardDom = ref;
630
+ if (_this2._boardDom) {
631
+ _this2.mount();
592
632
  } else {
593
- _this3._mounted = false;
633
+ _this2._mounted = false;
594
634
  }
595
635
  },
596
636
  handleCollectorDomLoad: function handleCollectorDomLoad(ref) {
597
- _this3._collectorDom = ref;
637
+ _this2._collectorDom = ref;
598
638
  },
599
639
  handleClose: function handleClose() {
600
640
  // this._close();
@@ -612,7 +652,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
612
652
  setWriteEnable: function setWriteEnable(enable) {
613
653
  observables.writeEnabled = enable;
614
654
  observables.canOperate = enable;
615
- _this3._repositionToolbar();
655
+ _this2._repositionToolbar();
616
656
  },
617
657
  setWhiteboardVisible: function setWhiteboardVisible(visible) {
618
658
  observables.whiteboardVisible = visible;
@@ -683,13 +723,13 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
683
723
  }, {
684
724
  key: "_resetCanvasPosition",
685
725
  value: function _resetCanvasPosition() {
686
- var _this4 = this;
726
+ var _this3 = this;
687
727
  if (this._timer) clearTimeout(this._timer);
688
728
  this._timer = setTimeout(function () {
689
- if (!_this4._boardDom) return;
690
- _this4._repositionToolbar();
691
- var thatStyle = _this4._boardDom.style;
692
- _this4._controlbarStore.scaleValue = 1;
729
+ if (!_this3._boardDom) return;
730
+ _this3._repositionToolbar();
731
+ var thatStyle = _this3._boardDom.style;
732
+ _this3._controlbarStore.scaleValue = 1;
693
733
  thatStyle.transform = "scale(1)";
694
734
  }, 300);
695
735
  }
@@ -734,10 +774,11 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
734
774
  }, {
735
775
  key: "_open",
736
776
  value: function _open() {
737
- var _this$_whiteboardCont7;
777
+ var _this$_whiteboardCont8;
738
778
  this._joined = true;
739
779
  this._initialized = true;
740
- (_this$_whiteboardCont7 = this._whiteboardControl) === null || _this$_whiteboardCont7 === void 0 || _this$_whiteboardCont7.open();
780
+ (_this$_whiteboardCont8 = this._whiteboardControl) === null || _this$_whiteboardCont8 === void 0 || _this$_whiteboardCont8.open();
781
+ this.logger.info('[whiteboard] open');
741
782
  }
742
783
  }, {
743
784
  key: "_close",
@@ -746,17 +787,9 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
746
787
  this._setJoinSuccessed(false);
747
788
  if (this._whiteboardControl) {
748
789
  this._whiteboardControl.close();
790
+ this.logger.info('[whiteboard] close');
749
791
  }
750
792
  }
751
- }, {
752
- key: "_openLonelyWindow",
753
- value: function _openLonelyWindow() {
754
- var _this$_uiEventStore5, _this$_uiEventStore6;
755
- (_this$_uiEventStore5 = this._uiEventStore) === null || _this$_uiEventStore5 === void 0 || _this$_uiEventStore5.openDialog(_constant.FcrUIDialogKey.WHITEBOARD);
756
- (_this$_uiEventStore6 = this._uiEventStore) === null || _this$_uiEventStore6 === void 0 || _this$_uiEventStore6.openDialog(_constant.FcrUIDialogKey.TOOLBAR);
757
- // this._toolbarStore!.observables.layoutReady = false;
758
- this._open();
759
- }
760
793
  }, {
761
794
  key: "_setJoinSuccessed",
762
795
  value: function _setJoinSuccessed(joinSuccessed) {
@@ -767,32 +800,32 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
767
800
  }, {
768
801
  key: "_addDisposers",
769
802
  value: function _addDisposers() {
770
- var _this5 = this;
803
+ var _this4 = this;
771
804
  this._disposers.push((0, _mobx.reaction)(function () {
772
- return _this5.hasPrivilege;
805
+ return _this4.hasPrivilege;
773
806
  }, function (privilege) {
774
- var _this5$_boardStore, _this5$_boardStore2;
775
- var p = privilege || _this5._isHost || _this5._isMyBoard;
776
- (_this5$_boardStore = _this5._boardStore) === null || _this5$_boardStore === void 0 || _this5$_boardStore.setWriteEnable(_this5._isHost || _this5._isMyBoard);
777
- (_this5$_boardStore2 = _this5._boardStore) === null || _this5$_boardStore2 === void 0 || _this5$_boardStore2.setPrivilege(p);
807
+ var _this4$_boardStore, _this4$_boardStore2;
808
+ var p = privilege || _this4._isHost || _this4._isMyBoard;
809
+ (_this4$_boardStore = _this4._boardStore) === null || _this4$_boardStore === void 0 || _this4$_boardStore.setWriteEnable(_this4._isHost || _this4._isMyBoard);
810
+ (_this4$_boardStore2 = _this4._boardStore) === null || _this4$_boardStore2 === void 0 || _this4$_boardStore2.setPrivilege(p);
778
811
  }), (0, _mobx.reaction)(function () {
779
- return _this5._boardStore.observables.writeEnabled;
812
+ return _this4._boardStore.observables.writeEnabled;
780
813
  }, function (writeEnabled) {
781
- if (writeEnabled) setTimeout(_this5._repositionToolbar, 0);
814
+ if (writeEnabled) setTimeout(_this4._repositionToolbar, 0);
782
815
  }), (0, _mobx.reaction)(function () {
783
- return _this5._localUser;
816
+ return _this4._localUser;
784
817
  }, function (user) {
785
- var _this5$_boardStore3;
786
- _this5._isHost = [_type2.FcrUserRole.HOST, _type2.FcrUserRole.COHOST].includes(user.userRole);
787
- var hasPrivilege = _this5.hasPrivilege || _this5._isHost || _this5._isMyBoard;
788
- (_this5$_boardStore3 = _this5._boardStore) === null || _this5$_boardStore3 === void 0 || _this5$_boardStore3.setPrivilege(hasPrivilege);
789
- _this5._boardStore.setWriteEnable(_this5._isHost || _this5._isMyBoard);
818
+ var _this4$_boardStore3;
819
+ _this4._isHost = [_type2.FcrUserRole.HOST, _type2.FcrUserRole.COHOST].includes(user.userRole);
820
+ var hasPrivilege = _this4.hasPrivilege || _this4._isHost || _this4._isMyBoard;
821
+ (_this4$_boardStore3 = _this4._boardStore) === null || _this4$_boardStore3 === void 0 || _this4$_boardStore3.setPrivilege(hasPrivilege);
822
+ _this4._boardStore.setWriteEnable(_this4._isHost || _this4._isMyBoard);
790
823
  }));
791
824
  }
792
825
  }, {
793
826
  key: "_alertWhenBeenStopByOthers",
794
827
  value: function _alertWhenBeenStopByOthers(userInfo) {
795
- var _this6 = this;
828
+ var _this5 = this;
796
829
  var userRole = userInfo.userRole,
797
830
  userName = userInfo.userName;
798
831
  var content = (0, _i18n.transI18n)("fmt_whiteboard_dialog_share_stopped_message_".concat(_type2.FcrUserRole.HOST === userRole ? 'host' : 'cohost'), {
@@ -805,12 +838,12 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
805
838
  showCancel: false,
806
839
  icon: _type3.FcrIconType.FCR_SCREENSHARING,
807
840
  onOk: function onOk() {
808
- var _this6$_uiEventStore;
809
- (_this6$_uiEventStore = _this6._uiEventStore) === null || _this6$_uiEventStore === void 0 || _this6$_uiEventStore.closeConfirm(dialogId);
841
+ var _this5$_uiEventStore;
842
+ (_this5$_uiEventStore = _this5._uiEventStore) === null || _this5$_uiEventStore === void 0 || _this5$_uiEventStore.closeConfirm(dialogId);
810
843
  },
811
844
  onCancel: function onCancel() {
812
- var _this6$_uiEventStore2;
813
- (_this6$_uiEventStore2 = _this6._uiEventStore) === null || _this6$_uiEventStore2 === void 0 || _this6$_uiEventStore2.closeConfirm(dialogId);
845
+ var _this5$_uiEventStore2;
846
+ (_this5$_uiEventStore2 = _this5._uiEventStore) === null || _this5$_uiEventStore2 === void 0 || _this5$_uiEventStore2.closeConfirm(dialogId);
814
847
  },
815
848
  width: 400,
816
849
  height: 160
@@ -819,12 +852,13 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
819
852
  }]);
820
853
  }(_base.UIModule);
821
854
  _FcrWhiteboardUIModule = FcrWhiteboardUIModule;
822
- var _applyDecs$e = _applyDecs(_FcrWhiteboardUIModule, [[_mobx.observable, 1, "_lonelyWindowState"], [_mobx.observable, 1, "_ownerUser"], [_mobx.observable, 1, "_isHost"], [_mobx.observable, 1, "_boardBackground"], [_mobx.observable, 1, "_localUser"], [_mobx.computed, 3, "hasPrivilege"], [_onPropertiesUpdateDecs, 18, "onPropertiesUpdate"], [_mountDecs, 18, "mount"], [_unmountDecs, 18, "unmount"], [_unloadDecs, 18, "unload"], [_setBackgroundDecs, 18, "_setBackground"], [_boardUIEventsDecs, 18, "_boardUIEvents"], [_decorator.bound, 2, "_setCanvasBound"], [_decorator.bound, 2, "_resetCanvasPosition"], [_repositionToolbarDecs, 18, "_repositionToolbar"], [_setConnectionStateDecs, 18, "_setConnectionState"], [_decorator.bound, 2, "_close"], [_openLonelyWindowDecs, 18, "_openLonelyWindow"], [_setJoinSuccessedDecs, 18, "_setJoinSuccessed"]], [], 0, void 0, _base.UIModule).e;
823
- var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 6);
824
- _init__lonelyWindowState = _applyDecs$e2[0];
825
- _init__ownerUser = _applyDecs$e2[1];
826
- _init__isHost = _applyDecs$e2[2];
827
- _init__boardBackground = _applyDecs$e2[3];
828
- _init__localUser = _applyDecs$e2[4];
829
- _initProto = _applyDecs$e2[5];
855
+ var _applyDecs$e = _applyDecs(_FcrWhiteboardUIModule, [[_mobx.observable, 1, "_isMultiDisplay"], [_mobx.observable, 1, "_lonelyWindowState"], [_mobx.observable, 1, "_ownerUser"], [_mobx.observable, 1, "_isHost"], [_mobx.observable, 1, "_boardBackground"], [_mobx.observable, 1, "_localUser"], [_mobx.computed, 3, "hasPrivilege"], [_handleActiveDecs, 18, "_handleActive"], [_mountDecs, 18, "mount"], [_unmountDecs, 18, "unmount"], [_unloadDecs, 18, "unload"], [_setBackgroundDecs, 18, "_setBackground"], [_boardUIEventsDecs, 18, "_boardUIEvents"], [_decorator.bound, 2, "_setCanvasBound"], [_decorator.bound, 2, "_resetCanvasPosition"], [_repositionToolbarDecs, 18, "_repositionToolbar"], [_setConnectionStateDecs, 18, "_setConnectionState"], [_decorator.bound, 2, "_close"], [_setJoinSuccessedDecs, 18, "_setJoinSuccessed"]], [], 0, void 0, _base.UIModule).e;
856
+ var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 7);
857
+ _init__isMultiDisplay = _applyDecs$e2[0];
858
+ _init__lonelyWindowState = _applyDecs$e2[1];
859
+ _init__ownerUser = _applyDecs$e2[2];
860
+ _init__isHost = _applyDecs$e2[3];
861
+ _init__boardBackground = _applyDecs$e2[4];
862
+ _init__localUser = _applyDecs$e2[5];
863
+ _initProto = _applyDecs$e2[6];
830
864
  _applyDecs$e;
@@ -126,6 +126,7 @@ window.__DEV_ENGINE_IS_READY__ = createRoom(roomId).then(/*#__PURE__*/function (
126
126
  },
127
127
  frameRate: 15,
128
128
  bitrate: 800
129
+ // isMirror: false,
129
130
  },
130
131
  lowVideoEncoderConfig: {
131
132
  dimensions: {
@@ -134,6 +135,7 @@ window.__DEV_ENGINE_IS_READY__ = createRoom(roomId).then(/*#__PURE__*/function (
134
135
  },
135
136
  frameRate: 15,
136
137
  bitrate: 400
138
+ // isMirror: false,
137
139
  },
138
140
  enableDualStreamMode: false
139
141
  },
@@ -145,6 +147,7 @@ window.__DEV_ENGINE_IS_READY__ = createRoom(roomId).then(/*#__PURE__*/function (
145
147
  },
146
148
  frameRate: 15,
147
149
  bitrate: 800
150
+ // isMirror: false,
148
151
  },
149
152
  lowVideoEncoderConfig: {
150
153
  dimensions: {
@@ -153,6 +156,7 @@ window.__DEV_ENGINE_IS_READY__ = createRoom(roomId).then(/*#__PURE__*/function (
153
156
  },
154
157
  frameRate: 15,
155
158
  bitrate: 400
159
+ // isMirror: false,
156
160
  },
157
161
  enableDualStreamMode: false
158
162
  },
@@ -62,8 +62,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
62
62
  var _constant = require("../utilities/constant");
63
63
  var _base = require("../base");
64
64
  var _mobx = require("mobx");
65
- var _type = require("agora-rte-sdk/lib/core/rtc/type");
66
65
  var _imports = require("fcr-core/lib/imports");
66
+ var _type = require("fcr-core/lib/type");
67
67
  var _rendererEvent = require("../utilities/renderer-event");
68
68
  var _type2 = require("../modules/whiteboard/type");
69
69
  var _dialogUtils = require("../utilities/dialog-utils");
@@ -104,7 +104,7 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
104
104
  _classPrivateFieldInitSpec(this, _C, _init_isShowToolbar(this, false));
105
105
  _classPrivateFieldInitSpec(this, _D, _init_currentShareInfo(this, {
106
106
  id: '',
107
- type: _type.AgoraRtcScreenCaptureType.SCREEN,
107
+ type: _type.FcrScreenCaptureType.SCREEN,
108
108
  bounds: {
109
109
  x: 0,
110
110
  y: 0,
@@ -284,7 +284,7 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
284
284
  while (1) switch (_context2.prev = _context2.next) {
285
285
  case 0:
286
286
  targetBounds = null;
287
- if (this.currentShareInfo.type === _type.AgoraRtcScreenCaptureType.SCREEN) {
287
+ if (this.currentShareInfo.type === _type.FcrScreenCaptureType.SCREEN) {
288
288
  _ref2 = info || this.currentShareInfo, bounds = _ref2.bounds;
289
289
  _getCurrentSharingWor = (0, _dialogUtils.getCurrentSharingWorkArea)({
290
290
  currentShareBounds: bounds