fcr-ui-scene 3.7.2 → 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 (301) hide show
  1. package/lib/creator.d.ts +2 -0
  2. package/lib/creator.js +37 -44
  3. package/lib/electron/app.js +7 -0
  4. package/lib/electron/injections.d.ts +1 -1
  5. package/lib/electron/injections.js +5 -3
  6. package/lib/electron/main.js +3 -1
  7. package/lib/fragments/annotation/index.d.ts +1 -0
  8. package/lib/fragments/annotation/index.js +13 -7
  9. package/lib/fragments/annotation/libs.d.ts +7 -6
  10. package/lib/fragments/annotation/libs.js +9 -8
  11. package/lib/fragments/annotation/store.d.ts +8 -4
  12. package/lib/fragments/annotation/store.js +351 -267
  13. package/lib/fragments/annotation/toolbar/components/color-tool/index.js +4 -0
  14. package/lib/fragments/annotation/toolbar/components/graphic-tool/index.js +4 -0
  15. package/lib/fragments/annotation/toolbar/components/item/item.d.ts +2 -0
  16. package/lib/fragments/annotation/toolbar/components/item/item.js +2 -4
  17. package/lib/fragments/annotation/toolbar/components/item/style.css +4 -2
  18. package/lib/fragments/annotation/toolbar/components/pen-tool/index.js +4 -0
  19. package/lib/fragments/annotation/utils.d.ts +1 -0
  20. package/lib/fragments/annotation/utils.js +27 -0
  21. package/lib/fragments/annotation/view.js +1 -6
  22. package/lib/fragments/base.js +5 -3
  23. package/lib/fragments/whiteboard/cursor.css +77 -0
  24. package/lib/fragments/whiteboard/index.d.ts +11 -0
  25. package/lib/fragments/whiteboard/index.js +91 -0
  26. package/lib/fragments/whiteboard/store.d.ts +31 -0
  27. package/lib/fragments/whiteboard/store.js +480 -0
  28. package/lib/fragments/whiteboard/style.css +4 -0
  29. package/lib/fragments/whiteboard/view.d.ts +4 -0
  30. package/lib/fragments/whiteboard/view.js +31 -0
  31. package/lib/global.css +6 -0
  32. package/lib/index.d.ts +1 -0
  33. package/lib/index.js +1 -0
  34. package/lib/modules/action-bar/components/apps/index.js +15 -5
  35. package/lib/modules/action-bar/components/leave/index.js +4 -11
  36. package/lib/modules/action-bar/components/screen-share/submenu.js +2 -2
  37. package/lib/modules/action-bar/index.d.ts +2 -0
  38. package/lib/modules/action-bar/index.js +2 -1
  39. package/lib/modules/action-bar/store.d.ts +6 -2
  40. package/lib/modules/action-bar/store.js +56 -93
  41. package/lib/modules/action-bar/view.d.ts +1 -0
  42. package/lib/modules/action-bar/view.js +3 -2
  43. package/lib/modules/annotation/annotation-toolbar-store.d.ts +4 -11
  44. package/lib/modules/annotation/annotation-toolbar-store.js +48 -90
  45. package/lib/modules/annotation/index.d.ts +2 -0
  46. package/lib/modules/annotation/index.js +2 -2
  47. package/lib/modules/annotation/store.d.ts +11 -49
  48. package/lib/modules/annotation/store.js +144 -429
  49. package/lib/modules/annotation/view.js +3 -6
  50. package/lib/modules/audio-stream/index.js +1 -2
  51. package/lib/modules/chat/components/chat-select/index.js +3 -0
  52. package/lib/modules/components/control-bar/components/loading/index.css +76 -0
  53. package/lib/modules/components/control-bar/components/loading/index.d.ts +8 -0
  54. package/lib/modules/components/control-bar/components/loading/index.js +64 -0
  55. package/lib/modules/components/control-bar/components/loading/loading.png +0 -0
  56. package/lib/modules/components/control-bar/components/progress/index.d.ts +5 -0
  57. package/lib/modules/components/control-bar/components/progress/index.js +43 -0
  58. package/lib/modules/components/control-bar/components/progress/style.css +51 -0
  59. package/lib/modules/components/control-bar/components/switch-theme/index.css +99 -0
  60. package/lib/modules/components/control-bar/components/switch-theme/index.d.ts +9 -0
  61. package/lib/modules/components/control-bar/components/switch-theme/index.js +94 -0
  62. package/lib/modules/components/control-bar/components/switch-theme/item.d.ts +9 -0
  63. package/lib/modules/components/control-bar/components/switch-theme/item.js +54 -0
  64. package/lib/modules/components/control-bar/components/switch-theme/libs.d.ts +4 -0
  65. package/lib/modules/components/control-bar/components/switch-theme/libs.js +31 -0
  66. package/lib/modules/components/control-bar/index.css +87 -0
  67. package/lib/modules/components/control-bar/index.d.ts +20 -0
  68. package/lib/modules/components/control-bar/index.js +276 -0
  69. package/lib/modules/components/device-control/store.js +2 -2
  70. package/lib/modules/components/leave-meeting/components/index.css +0 -9
  71. package/lib/modules/components/leave-meeting/index.d.ts +2 -1
  72. package/lib/modules/components/leave-meeting/index.js +19 -8
  73. package/lib/modules/components/leave-meeting/portal.d.ts +6 -0
  74. package/lib/modules/components/leave-meeting/portal.js +29 -0
  75. package/lib/modules/components/leave-meeting/style.css +9 -0
  76. package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +5 -2
  77. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +19 -9
  78. package/lib/modules/components/member-window/components/member-actions/components/share-status.js +4 -4
  79. package/lib/modules/components/member-window/components/member-actions/index.js +13 -6
  80. package/lib/modules/components/member-window/components/member-actions/provider.d.ts +1 -0
  81. package/lib/modules/components/member-window/components/member-actions/provider.js +4 -3
  82. package/lib/modules/components/member-window/components/member-actions/store.d.ts +2 -1
  83. package/lib/modules/components/member-window/components/member-actions/store.js +5 -1
  84. package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.d.ts +6 -4
  85. package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +77 -41
  86. package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +3 -3
  87. package/lib/modules/components/member-window/components/video-player/index.d.ts +3 -3
  88. package/lib/modules/components/member-window/index.css +4 -0
  89. package/lib/modules/components/member-window/types.d.ts +9 -5
  90. package/lib/modules/components/toolbar/components/capture-tool/index.d.ts +9 -0
  91. package/lib/modules/components/toolbar/components/capture-tool/index.js +68 -0
  92. package/lib/modules/components/toolbar/components/clean-tool/index.d.ts +11 -0
  93. package/lib/modules/components/toolbar/components/clean-tool/index.js +71 -0
  94. package/lib/modules/components/toolbar/components/color-tool/color-panel/index.d.ts +11 -0
  95. package/lib/modules/components/toolbar/components/color-tool/color-panel/index.js +77 -0
  96. package/lib/modules/components/toolbar/components/color-tool/index.d.ts +14 -0
  97. package/lib/modules/components/toolbar/components/color-tool/index.js +66 -0
  98. package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.d.ts +11 -0
  99. package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.js +64 -0
  100. package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +12 -0
  101. package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.js +65 -0
  102. package/lib/modules/components/toolbar/components/graphic-tool/index.d.ts +15 -0
  103. package/lib/modules/components/toolbar/components/graphic-tool/index.js +82 -0
  104. package/lib/modules/components/toolbar/components/group-tool/index.d.ts +5 -0
  105. package/lib/modules/components/toolbar/components/group-tool/index.js +43 -0
  106. package/lib/modules/components/toolbar/components/icons/fold-icon.d.ts +2 -0
  107. package/lib/modules/components/toolbar/components/icons/fold-icon.js +41 -0
  108. package/lib/modules/components/toolbar/components/icons/move-icon.d.ts +1 -0
  109. package/lib/modules/components/toolbar/components/icons/move-icon.js +66 -0
  110. package/lib/modules/components/toolbar/components/item/index.d.ts +25 -0
  111. package/lib/modules/components/toolbar/components/item/index.js +165 -0
  112. package/lib/modules/components/toolbar/components/item/style.css +94 -0
  113. package/lib/modules/components/toolbar/components/multiple-color-tool/index.d.ts +12 -0
  114. package/lib/modules/components/toolbar/components/multiple-color-tool/index.js +75 -0
  115. package/lib/modules/components/toolbar/components/panel/index.d.ts +9 -0
  116. package/lib/modules/components/toolbar/components/panel/index.js +28 -0
  117. package/lib/modules/components/toolbar/components/panel/style.css +86 -0
  118. package/lib/modules/components/toolbar/components/pen-tool/index.d.ts +13 -0
  119. package/lib/modules/components/toolbar/components/pen-tool/index.js +62 -0
  120. package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.d.ts +8 -0
  121. package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.js +39 -0
  122. package/lib/modules/components/toolbar/components/save-draft/index.d.ts +7 -0
  123. package/lib/modules/components/toolbar/components/save-draft/index.js +59 -0
  124. package/lib/modules/components/toolbar/components/vertical-frame/index.d.ts +8 -0
  125. package/lib/modules/components/toolbar/components/vertical-frame/index.js +179 -0
  126. package/lib/modules/components/toolbar/hooks/use-resize-visible.d.ts +4 -0
  127. package/lib/modules/components/toolbar/hooks/use-resize-visible.js +59 -0
  128. package/lib/modules/components/toolbar/index.d.ts +29 -0
  129. package/lib/modules/components/toolbar/index.js +258 -0
  130. package/lib/modules/components/toolbar/style.css +85 -0
  131. package/lib/modules/components/toolbar/types.d.ts +13 -0
  132. package/lib/modules/components/toolbar/types.js +6 -0
  133. package/lib/modules/control-bar/components/more-actions/index.js +0 -6
  134. package/lib/modules/control-bar/components/share-state-nav/index.js +3 -2
  135. package/lib/modules/control-bar/index.js +2 -1
  136. package/lib/modules/control-bar/store.d.ts +15 -12
  137. package/lib/modules/control-bar/store.js +68 -29
  138. package/lib/modules/control-bar/view.js +33 -67
  139. package/lib/modules/device-pretest/store.js +4 -2
  140. package/lib/modules/dialog/components/dialog-container/component/body.js +3 -24
  141. package/lib/modules/dialog/components/dialog-container/index.d.ts +4 -0
  142. package/lib/modules/dialog/components/dialog-container/index.js +67 -44
  143. package/lib/modules/dialog/components/normal-window/index.js +4 -0
  144. package/lib/modules/dialog/dialogs/control-bar/index.d.ts +1 -0
  145. package/lib/modules/dialog/dialogs/control-bar/index.js +26 -35
  146. package/lib/modules/dialog/dialogs/participant/components/title.js +1 -1
  147. package/lib/modules/dialog/dialogs/sub-window/index.d.ts +2 -0
  148. package/lib/modules/dialog/dialogs/sub-window/index.js +102 -0
  149. package/lib/modules/dialog/dialogs/video-window/index.d.ts +1 -0
  150. package/lib/modules/dialog/dialogs/video-window/index.js +31 -25
  151. package/lib/modules/dialog/dialogs/whiteboard/index.js +0 -1
  152. package/lib/modules/dialog/hooks/use-popover-watcher.js +1 -2
  153. package/lib/modules/dialog/hooks/useElectron.d.ts +13 -0
  154. package/lib/modules/dialog/hooks/useElectron.js +66 -13
  155. package/lib/modules/dialog/index.d.ts +6 -3
  156. package/lib/modules/dialog/index.js +5 -3
  157. package/lib/modules/dialog/level-config.js +1 -1
  158. package/lib/modules/dialog/store.d.ts +23 -9
  159. package/lib/modules/dialog/store.js +84 -12
  160. package/lib/modules/dialog/type.d.ts +8 -0
  161. package/lib/modules/event-confirm/components/window/index.d.ts +5 -2
  162. package/lib/modules/event-confirm/components/window/index.js +38 -14
  163. package/lib/modules/event-confirm/index.css +3 -2
  164. package/lib/modules/event-confirm/store.d.ts +10 -5
  165. package/lib/modules/event-confirm/store.js +68 -20
  166. package/lib/modules/event-confirm/view.js +10 -8
  167. package/lib/modules/event-sound/index.d.ts +1 -0
  168. package/lib/modules/event-sound/index.js +11 -24
  169. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +1 -2
  170. package/lib/modules/interpreter/store.js +11 -13
  171. package/lib/modules/invite/components/pstn-invite.js +0 -1
  172. package/lib/modules/layout/components/CommonVideoRenderer.js +26 -26
  173. package/lib/modules/layout/components/who-is-speaking.js +3 -6
  174. package/lib/modules/layout/index.d.ts +3 -1
  175. package/lib/modules/layout/index.js +2 -1
  176. package/lib/modules/layout/store.d.ts +7 -59
  177. package/lib/modules/layout/store.js +133 -45
  178. package/lib/modules/layout/type.d.ts +55 -0
  179. package/lib/modules/participant/components/can-moveable/index.js +0 -1
  180. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +4 -2
  181. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +14 -2
  182. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +1 -1
  183. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +3 -2
  184. package/lib/modules/participant/components/participants/components/participants/index.js +3 -2
  185. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +1 -0
  186. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +3 -1
  187. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +4 -2
  188. package/lib/modules/participant/components/participants/components/render-user/index.d.ts +4 -2
  189. package/lib/modules/participant/components/participants/components/render-user/index.js +5 -3
  190. package/lib/modules/participant/components/participants/index.js +5 -2
  191. package/lib/modules/participant/components/participants/types.d.ts +3 -0
  192. package/lib/modules/participant/index.d.ts +2 -0
  193. package/lib/modules/participant/index.js +2 -1
  194. package/lib/modules/participant/member-list-data-source.js +3 -5
  195. package/lib/modules/participant/store.d.ts +5 -1
  196. package/lib/modules/participant/store.js +51 -44
  197. package/lib/modules/secondary-window/index.d.ts +50 -0
  198. package/lib/modules/secondary-window/index.js +113 -0
  199. package/lib/modules/secondary-window/store.d.ts +76 -0
  200. package/lib/modules/secondary-window/store.js +407 -0
  201. package/lib/modules/secondary-window/type.d.ts +110 -0
  202. package/lib/modules/secondary-window/type.js +35 -0
  203. package/lib/modules/secondary-window/view.d.ts +6 -0
  204. package/lib/modules/secondary-window/view.js +257 -0
  205. package/lib/modules/setting/audio-settings/audio-settings.js +4 -2
  206. package/lib/modules/setting/config.d.ts +4 -0
  207. package/lib/modules/setting/config.js +6 -3
  208. package/lib/modules/setting/general-settings/general-settings.js +9 -0
  209. package/lib/modules/setting/state/index.js +0 -10
  210. package/lib/modules/setting/store.d.ts +9 -3
  211. package/lib/modules/setting/store.js +110 -77
  212. package/lib/modules/setting/view.js +3 -2
  213. package/lib/modules/share-screen/components/control-bar/index.d.ts +14 -1
  214. package/lib/modules/share-screen/components/control-bar/index.js +17 -12
  215. package/lib/modules/share-screen/components/selection/index.js +16 -23
  216. package/lib/modules/share-screen/index.d.ts +4 -1
  217. package/lib/modules/share-screen/index.js +6 -3
  218. package/lib/modules/share-screen/store.d.ts +18 -19
  219. package/lib/modules/share-screen/store.js +101 -151
  220. package/lib/modules/share-screen/types.d.ts +7 -8
  221. package/lib/modules/state-bar/index.d.ts +2 -0
  222. package/lib/modules/state-bar/index.js +2 -1
  223. package/lib/modules/state-bar/live-streaming-state.js +0 -1
  224. package/lib/modules/state-bar/store.d.ts +5 -2
  225. package/lib/modules/state-bar/store.js +14 -7
  226. package/lib/modules/state-bar/view.js +3 -3
  227. package/lib/modules/video-window/components/members/index.js +10 -15
  228. package/lib/modules/video-window/store.d.ts +1 -0
  229. package/lib/modules/video-window/store.js +8 -3
  230. package/lib/modules/whiteboard/components/control-bar/store.d.ts +3 -0
  231. package/lib/modules/whiteboard/components/control-bar/store.js +20 -11
  232. package/lib/modules/whiteboard/components/toolbar/store.d.ts +2 -2
  233. package/lib/modules/whiteboard/components/toolbar/store.js +2 -2
  234. package/lib/modules/whiteboard/index.d.ts +20 -17
  235. package/lib/modules/whiteboard/index.js +167 -132
  236. package/lib/plugins/module-dev-plugin.js +4 -0
  237. package/lib/providers/ability-provider.js +2 -0
  238. package/lib/providers/annotation-provider.js +3 -3
  239. package/lib/providers/device-privilege-provider.js +13 -12
  240. package/lib/providers/device-provider.d.ts +40 -31
  241. package/lib/providers/device-provider.js +657 -713
  242. package/lib/providers/device-stream-provider.js +4 -4
  243. package/lib/providers/interpreter-provider.js +7 -9
  244. package/lib/providers/multi-display-provider.d.ts +90 -0
  245. package/lib/providers/multi-display-provider.js +593 -0
  246. package/lib/providers/privilege-provider.d.ts +3 -11
  247. package/lib/providers/privilege-provider.js +3 -12
  248. package/lib/providers/renderer-provider.d.ts +3 -3
  249. package/lib/providers/renderer-provider.js +20 -32
  250. package/lib/providers/room-provider.js +21 -16
  251. package/lib/providers/screen-share-provider.d.ts +15 -11
  252. package/lib/providers/screen-share-provider.js +118 -99
  253. package/lib/providers/sharing-provider.d.ts +7 -1
  254. package/lib/providers/sharing-provider.js +39 -3
  255. package/lib/providers/whiteboard-provider.d.ts +24 -0
  256. package/lib/providers/whiteboard-provider.js +128 -0
  257. package/lib/runtime.d.ts +1 -0
  258. package/lib/scenes/main-scene.d.ts +6 -0
  259. package/lib/scenes/main-scene.js +44 -2
  260. package/lib/scenes/waiting-scene.d.ts +0 -2
  261. package/lib/scenes/waiting-scene.js +0 -6
  262. package/lib/schema.d.ts +3 -3
  263. package/lib/schema.js +1 -1
  264. package/lib/shared-data-source/confirm-data.d.ts +19 -0
  265. package/lib/shared-data-source/confirm-data.js +119 -15
  266. package/lib/shared-data-source/member-data.d.ts +2 -2
  267. package/lib/shared-data-source/screen-share-data.d.ts +35 -28
  268. package/lib/shared-data-source/screen-share-data.js +19 -8
  269. package/lib/shared-data-source/setting.js +4 -3
  270. package/lib/shared-data-source/video-window.js +1 -2
  271. package/lib/shared-data-source/whiteboard-data.d.ts +70 -0
  272. package/lib/shared-data-source/whiteboard-data.js +348 -0
  273. package/lib/translations/enUS.d.ts +1 -0
  274. package/lib/translations/enUS.js +2 -1
  275. package/lib/translations/zhCN.d.ts +1 -0
  276. package/lib/translations/zhCN.js +2 -1
  277. package/lib/ui-scene.d.ts +1 -0
  278. package/lib/ui-scene.js +77 -24
  279. package/lib/utilities/constant.d.ts +9 -2
  280. package/lib/utilities/constant.js +10 -3
  281. package/lib/utilities/debug.d.ts +4 -0
  282. package/lib/utilities/debug.js +40 -0
  283. package/lib/utilities/default-config.d.ts +4 -0
  284. package/lib/utilities/default-config.js +8 -4
  285. package/lib/utilities/dialog-utils.d.ts +3 -2
  286. package/lib/utilities/dialog-utils.js +56 -15
  287. package/lib/utilities/meeting-detail.js +4 -1
  288. package/lib/utilities/package-info.d.ts +3 -0
  289. package/lib/utilities/package-info.js +15 -0
  290. package/lib/utilities/renderer-event.d.ts +4 -6
  291. package/lib/utilities/renderer-event.js +23 -43
  292. package/lib/utilities/renderer.d.ts +1 -1
  293. package/lib/utilities/renderer.js +44 -10
  294. package/lib/utilities/shared-storage.d.ts +18 -0
  295. package/lib/utilities/shared-storage.js +63 -0
  296. package/lib/utilities/tools.js +2 -1
  297. package/lib/waiting-room-control-manager.js +6 -6
  298. package/package.json +6 -7
  299. package/public/index.html +5 -0
  300. package/lib/electron/tools.d.ts +0 -5
  301. package/lib/electron/tools.js +0 -62
@@ -71,13 +71,12 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
71
71
  var _fcrCore = require("fcr-core");
72
72
  var _type = require("fcr-core/lib/type");
73
73
  var _env = require("agora-foundation/lib/utilities/env");
74
- var _type2 = require("agora-rte-sdk/lib/core/rtc/type");
75
74
  var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/share-audio");
76
75
  var _mobx = require("mobx");
77
76
  var _i18n = require("agora-ui-foundation/lib/i18n");
78
77
  var _decorator = require("agora-foundation/lib/decorator");
79
78
  var _react = require("react");
80
- var _type3 = require("agora-ui-foundation/lib/components/icon/type");
79
+ var _type2 = require("agora-ui-foundation/lib/components/icon/type");
81
80
  var _renderer = require("../../utilities/renderer");
82
81
  var _screenCapturePermission = require("../../utilities/screen-capture-permission");
83
82
  var _constant = require("../../utilities/constant");
@@ -85,7 +84,7 @@ var _logger = require("../../utilities/logger");
85
84
  var _parameters = require("../../utilities/parameters");
86
85
  var _imports = require("fcr-core/lib/imports");
87
86
  var _ShareScreenStore;
88
- var _initProto, _init_boardOwnerUser, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _zoomInDecs, _zoomOutDecs, _fullContainerDecs, _setOriginScalcDecs, _hasLoopbackDeviceDecs, _setShareAudioProcessingChannelDecs, _openRelaunchTipsDialogDecs, _startRenderSharePreviewDecs, _stopRenderSharePreviewDecs, _handleStopShareDecs, _handleStopShareByExitRoomDecs, _handleStartShareDecs, _openShareScreenSelectionDecs, _closeShareScreenSelectionDecs, _setControlBarWindowIdDecs, _openVideoWindowDialogDecs, _closeControlBarDecs, _closeVideoWindowDialogDecs, _handleReplaceScreenDecs, _initControlbarDecs, _toggleShareWithScenarioTypeDecs, _ref;
87
+ var _initProto, _init_boardOwnerUser, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _zoomInDecs, _zoomOutDecs, _fullContainerDecs, _setOriginScalcDecs, _setShareAudioProcessingChannelDecs, _openRelaunchTipsDialogDecs, _startRenderSharePreviewDecs, _stopRenderSharePreviewDecs, _handleStopShareDecs, _handleStopShareByExitRoomDecs, _handleStartShareDecs, _openShareScreenSelectionDecs, _closeShareScreenSelectionDecs, _openVideoWindowDialogDecs, _closeControlBarDecs, _closeVideoWindowDialogDecs, _handleReplaceScreenDecs, _initControlbarDecs, _toggleShareWithScenarioTypeDecs, _ref;
89
88
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
90
89
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
91
90
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -97,7 +96,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
97
96
  function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
98
97
  function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
99
98
  var _A = /*#__PURE__*/new WeakMap();
100
- _ref = (_handleChooseScreenDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _zoomInDecs = [_mobx.action, _mobx.action.bound], _zoomOutDecs = [_mobx.action, _mobx.action.bound], _fullContainerDecs = [_mobx.action, _mobx.action.bound], _setOriginScalcDecs = [_mobx.action, _mobx.action.bound], _hasLoopbackDeviceDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _openRelaunchTipsDialogDecs = [_mobx.action, _mobx.action.bound], _startRenderSharePreviewDecs = [_mobx.action, _mobx.action.bound], _stopRenderSharePreviewDecs = [_mobx.action, _mobx.action.bound], _handleStopShareDecs = [_mobx.action, _mobx.action.bound], _handleStopShareByExitRoomDecs = [_mobx.action, _mobx.action.bound], _handleStartShareDecs = [_mobx.action, _mobx.action.bound], _openShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _closeShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _setControlBarWindowIdDecs = [_mobx.action, _mobx.action.bound], _openVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _closeControlBarDecs = [_mobx.action, _mobx.action.bound], _closeVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _handleReplaceScreenDecs = [_mobx.action, _mobx.action.bound], _initControlbarDecs = [_mobx.action, _mobx.action.bound], _toggleShareWithScenarioTypeDecs = [_mobx.action, _mobx.action.bound], "logger");
99
+ _ref = (_handleChooseScreenDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _zoomInDecs = [_mobx.action, _mobx.action.bound], _zoomOutDecs = [_mobx.action, _mobx.action.bound], _fullContainerDecs = [_mobx.action, _mobx.action.bound], _setOriginScalcDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _openRelaunchTipsDialogDecs = [_mobx.action, _mobx.action.bound], _startRenderSharePreviewDecs = [_mobx.action, _mobx.action.bound], _stopRenderSharePreviewDecs = [_mobx.action, _mobx.action.bound], _handleStopShareDecs = [_mobx.action, _mobx.action.bound], _handleStopShareByExitRoomDecs = [_mobx.action, _mobx.action.bound], _handleStartShareDecs = [_mobx.action, _mobx.action.bound], _openShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _closeShareScreenSelectionDecs = [_mobx.action, _mobx.action.bound], _openVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _closeControlBarDecs = [_mobx.action, _mobx.action.bound], _closeVideoWindowDialogDecs = [_mobx.action, _mobx.action.bound], _handleReplaceScreenDecs = [_mobx.action, _mobx.action.bound], _initControlbarDecs = [_mobx.action, _mobx.action.bound], _toggleShareWithScenarioTypeDecs = [_mobx.action, _mobx.action.bound], "logger");
101
100
  var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
102
101
  function ShareScreenStore(_ref2) {
103
102
  var _this = this;
@@ -114,13 +113,13 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
114
113
  annotationProvider = _ref2.annotationProvider,
115
114
  sharedScreenShareSharedDataSource = _ref2.sharedScreenShareSharedDataSource,
116
115
  abilityProvider = _ref2.abilityProvider,
117
- sharedAnnotationDataSource = _ref2.sharedAnnotationDataSource;
116
+ sharedAnnotationDataSource = _ref2.sharedAnnotationDataSource,
117
+ multiDisplayProvider = _ref2.multiDisplayProvider;
118
118
  (0, _classCallCheck2["default"])(this, ShareScreenStore);
119
119
  (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
120
120
  prefix: 'ShareScreenStore'
121
121
  })));
122
122
  (0, _defineProperty2["default"])(this, "_disposers", []);
123
- (0, _defineProperty2["default"])(this, "_controlBarWindowId", -1);
124
123
  (0, _defineProperty2["default"])(this, "_isOnline", true);
125
124
  (0, _defineProperty2["default"])(this, "_windowList", []);
126
125
  (0, _defineProperty2["default"])(this, "_displayList", []);
@@ -163,7 +162,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
163
162
  (0, _defineProperty2["default"])(this, "_videoWindowDialogId", '');
164
163
  _classPrivateFieldInitSpec(this, _A, _init_boardOwnerUser(this, undefined));
165
164
  (0, _defineProperty2["default"])(this, "handleChooseScreen", _init_handleChooseScreen(this, function (id) {
166
- var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type2.AgoraRtcScreenCaptureType.WINDOW;
165
+ var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type.FcrScreenCaptureType.WINDOW;
167
166
  _this._sharedScreenShareSharedDataSource.setCurrentSelection(id, type);
168
167
  }));
169
168
  this._deviceProvider = deviceProvider;
@@ -189,7 +188,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
189
188
  this._addEventListeners();
190
189
  if ((0, _parameters.getStartScreenSharing)(sharedConfigDataSource.creatorConfig.parameters)) {
191
190
  var display = window.runtime.screen.getAllDisplays()[0];
192
- this.handleStartShare(String(display.id), _type2.AgoraRtcScreenCaptureType.SCREEN, false, _shareAudio.AudioProcessingChannel.MONO, display.bounds);
191
+ this.handleStartShare(String(display.id), _type.FcrScreenCaptureType.SCREEN, false, _shareAudio.AudioProcessingChannel.MONO, display.bounds);
193
192
  }
194
193
  this._disposers.push((0, _mobx.reaction)(function () {
195
194
  return _this._securityStore.hasStartScreenSharePermission();
@@ -217,6 +216,25 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
217
216
  }
218
217
  }
219
218
  return (0, _createClass2["default"])(ShareScreenStore, [{
219
+ key: "_handleOnScreenCaptureStopped",
220
+ value: function _handleOnScreenCaptureStopped() {
221
+ this.handleStopShare();
222
+ }
223
+ }, {
224
+ key: "_handleOnScreenCaptureStarted",
225
+ value: function _handleOnScreenCaptureStarted() {
226
+ this.prepareShareScreen();
227
+ }
228
+ }, {
229
+ key: "_hasScreenSharePermission",
230
+ value: function _hasScreenSharePermission() {
231
+ if (!this._securityStore.hasStartScreenSharePermission()) {
232
+ this._showToast((0, _i18n.transI18n)('fmt_screenshare_cohost_can_not_share_remind'), 'error');
233
+ return false;
234
+ }
235
+ return true;
236
+ }
237
+ }, {
220
238
  key: "boardOwnerUser",
221
239
  get: function get() {
222
240
  return _classPrivateFieldGet(_A, this);
@@ -379,25 +397,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
379
397
  currentShareBounds: this.currentSelectionBounds
380
398
  }));
381
399
  }
382
- }, {
383
- key: "_handleOnScreenCaptureStopped",
384
- value: function _handleOnScreenCaptureStopped() {
385
- this.handleStopShare();
386
- }
387
- }, {
388
- key: "_handleOnScreenCaptureStarted",
389
- value: function _handleOnScreenCaptureStarted() {
390
- this.prepareShareScreen();
391
- }
392
- }, {
393
- key: "_hasScreenSharePermission",
394
- value: function _hasScreenSharePermission() {
395
- if (!this._securityStore.hasStartScreenSharePermission()) {
396
- this._showToast((0, _i18n.transI18n)('fmt_screenshare_cohost_can_not_share_remind'), 'error');
397
- return false;
398
- }
399
- return true;
400
- }
401
400
  }, {
402
401
  key: "allowAnnotationSelfWriteState",
403
402
  get: function get() {
@@ -408,6 +407,11 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
408
407
  get: function get() {
409
408
  return this._annotationProvider.isShowToolbar;
410
409
  }
410
+ }, {
411
+ key: "isAnnotationSupported",
412
+ get: function get() {
413
+ return this._abilityProvider.isAnnotationSupported();
414
+ }
411
415
  }, {
412
416
  key: "toggleIsShowToolbar",
413
417
  value: function toggleIsShowToolbar() {
@@ -440,30 +444,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
440
444
  value: function setOriginScalc() {
441
445
  this._screenShareProvider.setOriginScalc();
442
446
  }
443
- }, {
444
- key: "hasLoopbackDevice",
445
- value: function () {
446
- var _hasLoopbackDevice = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
447
- var res;
448
- return _regenerator["default"].wrap(function (_context) {
449
- while (1) switch (_context.prev = _context.next) {
450
- case 0:
451
- _context.next = 1;
452
- return this._deviceProvider.checkLoopbackDevice();
453
- case 1:
454
- res = _context.sent;
455
- return _context.abrupt("return", res === 0);
456
- case 2:
457
- case "end":
458
- return _context.stop();
459
- }
460
- }, _callee, this);
461
- }));
462
- function hasLoopbackDevice() {
463
- return _hasLoopbackDevice.apply(this, arguments);
464
- }
465
- return hasLoopbackDevice;
466
- }()
467
447
  }, {
468
448
  key: "setShareAudioProcessingChannel",
469
449
  value: function setShareAudioProcessingChannel(currentShareAudioProcessingChannel) {
@@ -567,14 +547,14 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
567
547
  }, {
568
548
  key: "prepareShareScreen",
569
549
  value: function () {
570
- var _prepareShareScreen = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
550
+ var _prepareShareScreen = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
571
551
  var _this3 = this;
572
552
  var dialogId;
573
- return _regenerator["default"].wrap(function (_context3) {
574
- while (1) switch (_context3.prev = _context3.next) {
553
+ return _regenerator["default"].wrap(function (_context2) {
554
+ while (1) switch (_context2.prev = _context2.next) {
575
555
  case 0:
576
556
  if ((0, _screenCapturePermission.hasScreenCapturePermission)()) {
577
- _context3.next = 1;
557
+ _context2.next = 1;
578
558
  break;
579
559
  }
580
560
  dialogId = this._dialogProvider.openConfirmDialog({
@@ -586,9 +566,9 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
586
566
  _this3._dialogProvider.closeConfirm(dialogId);
587
567
  },
588
568
  onOk: function () {
589
- var _onOk = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
590
- return _regenerator["default"].wrap(function (_context2) {
591
- while (1) switch (_context2.prev = _context2.next) {
569
+ var _onOk = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
570
+ return _regenerator["default"].wrap(function (_context) {
571
+ while (1) switch (_context.prev = _context.next) {
592
572
  case 0:
593
573
  // 检查权限
594
574
  // corner case: 拒绝过权限后,将应用从系统中移除,打开设置后无法找到app,需要重新检查
@@ -600,9 +580,9 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
600
580
  _this3._dialogProvider.closeConfirm(dialogId);
601
581
  case 1:
602
582
  case "end":
603
- return _context2.stop();
583
+ return _context.stop();
604
584
  }
605
- }, _callee2);
585
+ }, _callee);
606
586
  }));
607
587
  function onOk() {
608
588
  return _onOk.apply(this, arguments);
@@ -611,15 +591,15 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
611
591
  }(),
612
592
  closable: false
613
593
  });
614
- return _context3.abrupt("return");
594
+ return _context2.abrupt("return");
615
595
  case 1:
616
596
  this.supportEnumScreen && this._openShareScreenSelection();
617
- !(0, _env.isElectron)() && this.handleStartShare(this.currentSelectionId, _type2.AgoraRtcScreenCaptureType.SCREEN, true, _shareAudio.AudioProcessingChannel.MONO, this.currentSelectionBounds);
597
+ !(0, _env.isElectron)() && this.handleStartShare(this.currentSelectionId, _type.FcrScreenCaptureType.SCREEN, true, _shareAudio.AudioProcessingChannel.MONO, this.currentSelectionBounds);
618
598
  case 2:
619
599
  case "end":
620
- return _context3.stop();
600
+ return _context2.stop();
621
601
  }
622
- }, _callee3, this);
602
+ }, _callee2, this);
623
603
  }));
624
604
  function prepareShareScreen() {
625
605
  return _prepareShareScreen.apply(this, arguments);
@@ -629,38 +609,38 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
629
609
  }, {
630
610
  key: "handleStartShare",
631
611
  value: function () {
632
- var _handleStartShare = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(id, type, withAudio) {
612
+ var _handleStartShare = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(id, type, withAudio) {
633
613
  var audioProcessingChannel,
634
614
  bounds,
635
615
  electronBounds,
636
616
  needToReplaceMyself,
637
617
  validShareStart,
638
- _args4 = arguments;
639
- return _regenerator["default"].wrap(function (_context4) {
640
- while (1) switch (_context4.prev = _context4.next) {
618
+ _args3 = arguments;
619
+ return _regenerator["default"].wrap(function (_context3) {
620
+ while (1) switch (_context3.prev = _context3.next) {
641
621
  case 0:
642
- audioProcessingChannel = _args4.length > 3 && _args4[3] !== undefined ? _args4[3] : _shareAudio.AudioProcessingChannel.MONO;
643
- bounds = _args4.length > 4 ? _args4[4] : undefined;
622
+ audioProcessingChannel = _args3.length > 3 && _args3[3] !== undefined ? _args3[3] : _shareAudio.AudioProcessingChannel.MONO;
623
+ bounds = _args3.length > 4 ? _args3[4] : undefined;
644
624
  if (!(this.connectionState !== _fcrCore.FcrConnectionState.CONNECTED || !this._isOnline)) {
645
- _context4.next = 1;
625
+ _context3.next = 1;
646
626
  break;
647
627
  }
648
628
  this._showToast((0, _i18n.transI18n)('fmt_screenshare_toast_network_error_unable_start_screen_share'), 'error');
649
- return _context4.abrupt("return", Promise.reject(false));
629
+ return _context3.abrupt("return", Promise.reject(false));
650
630
  case 1:
651
631
  if ((0, _env.isElectron)()) this._closeShareScreenSelection();
652
632
  if (!id.startsWith('whiteboard-')) {
653
- _context4.next = 3;
633
+ _context3.next = 3;
654
634
  break;
655
635
  }
656
636
  if (!(!this._securityStore.hasStartBoardPermission() && !this.isHost)) {
657
- _context4.next = 2;
637
+ _context3.next = 2;
658
638
  break;
659
639
  }
660
- return _context4.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibits'), 'error'));
640
+ return _context3.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibits'), 'error'));
661
641
  case 2:
662
642
  this._eventProvider.sendEvent(_constant.FcrUIAction.OPEN_WHITEBOARD);
663
- return _context4.abrupt("return");
643
+ return _context3.abrupt("return");
664
644
  case 3:
665
645
  electronBounds = (0, _env.isElectron)() ? window.runtime.screen.getDisplayNearestPoint(bounds) : null;
666
646
  this._sharedScreenShareSharedDataSource.setCurrentSelectionBounds((electronBounds === null || electronBounds === void 0 ? void 0 : electronBounds.bounds) || bounds);
@@ -682,70 +662,66 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
682
662
  needToReplaceMyself = this.localUserScreenSharingState === _fcrCore.FcrMediaSourceState.OPEN;
683
663
  this.logger.info("[screen-share][handleStartShare]: needToReplaceMyself - ".concat(needToReplaceMyself));
684
664
  if (!needToReplaceMyself) {
685
- _context4.next = 4;
665
+ _context3.next = 4;
686
666
  break;
687
667
  }
688
668
  this._handleReplaceScreen(id, type, withAudio, audioProcessingChannel, bounds);
689
- return _context4.abrupt("return");
669
+ return _context3.abrupt("return");
690
670
  case 4:
691
- _context4.next = 5;
671
+ _context3.next = 5;
692
672
  return this._validateShareStart(id, type);
693
673
  case 5:
694
- validShareStart = _context4.sent;
674
+ validShareStart = _context3.sent;
695
675
  this.logger.info("[screen-share][handleStartShare]: validShareStart: ".concat(validShareStart));
696
676
  if (!(!this._hasScreenSharePermission() || !validShareStart)) {
697
- _context4.next = 6;
677
+ _context3.next = 6;
698
678
  break;
699
679
  }
700
- return _context4.abrupt("return");
680
+ return _context3.abrupt("return");
701
681
  case 6:
702
682
  if (!this.shareLock) {
703
- _context4.next = 7;
683
+ _context3.next = 7;
704
684
  break;
705
685
  }
706
- return _context4.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error'));
686
+ return _context3.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error'));
707
687
  case 7:
688
+ // 初始化 controlbar 并隐藏, controlbar 不能在 startShareScreen 之后初始化,否则获取不到窗口信息,在屏幕共享时无法排除
689
+ this._initControlbar();
708
690
  this._sharedScreenShareSharedDataSource.setCurrentShareIdInfos(id, type, bounds);
709
- _context4.next = 8;
691
+ _context3.next = 8;
710
692
  return this._screenShareProvider.startShareScreen(id, type, withAudio, false);
711
693
  case 8:
712
- this._initControlbar();
713
- case 9:
714
694
  case "end":
715
- return _context4.stop();
695
+ return _context3.stop();
716
696
  }
717
- }, _callee4, this);
697
+ }, _callee3, this);
718
698
  }));
719
699
  function handleStartShare(_x, _x2, _x3) {
720
700
  return _handleStartShare.apply(this, arguments);
721
701
  }
722
702
  return handleStartShare;
723
703
  }()
724
- }, {
725
- key: "isAnnotationSupported",
726
- value: function isAnnotationSupported() {
727
- return this._abilityProvider.isAnnotationSupported();
728
- }
729
704
  }, {
730
705
  key: "_openShareScreenSelection",
731
706
  value: function () {
732
- var _openShareScreenSelection2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
707
+ var _openShareScreenSelection2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
733
708
  var _this4 = this;
734
709
  var windowList, displayList;
735
- return _regenerator["default"].wrap(function (_context5) {
736
- while (1) switch (_context5.prev = _context5.next) {
710
+ return _regenerator["default"].wrap(function (_context4) {
711
+ while (1) switch (_context4.prev = _context4.next) {
737
712
  case 0:
738
713
  this._shareSelectionDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.SHARE_SCREEN, 'screen-selection');
739
- _context5.next = 1;
714
+ _context4.next = 1;
740
715
  return this.appWindowList;
741
716
  case 1:
742
- windowList = _context5.sent.filter(function (item) {
743
- return !['AgoraHighLighter', 'Toast', 'Confirm', 'Annotation tool bar', 'Annotation', 'Video Window', 'Control Bar'].includes(item.title) || item.isCurrent;
717
+ windowList = _context4.sent.filter(function (item) {
718
+ return !['AgoraHighLighter', 'Toast', 'Confirm', 'Annotation tool bar', 'Annotation', 'Video Window', 'Control Bar', window.runtime.browserWindow.getTitle() // 主窗口和副窗口 title 一致,副窗口也需要排除在可选择列表中
719
+ ].includes(item.title) || item.isCurrent;
744
720
  });
745
- _context5.next = 2;
721
+ _context4.next = 2;
746
722
  return this.displayList;
747
723
  case 2:
748
- displayList = _context5.sent;
724
+ displayList = _context4.sent;
749
725
  this._windowList = windowList;
750
726
  this._displayList = displayList;
751
727
  (0, _mobx.runInAction)(function () {
@@ -755,14 +731,14 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
755
731
  _this4._sharedScreenShareSharedDataSource.setScreenCaptureSources([{
756
732
  title: (0, _i18n.transI18n)('fmt_share_options_whiteboard'),
757
733
  id: "whiteboard-".concat(displayList[0].id),
758
- image: _type3.FcrIconType.FCR_WHITEBOARD2
734
+ image: _type2.FcrIconType.FCR_WHITEBOARD2
759
735
  }].concat((0, _toConsumableArray2["default"])(displayList)));
760
736
  });
761
737
  case 3:
762
738
  case "end":
763
- return _context5.stop();
739
+ return _context4.stop();
764
740
  }
765
- }, _callee5, this);
741
+ }, _callee4, this);
766
742
  }));
767
743
  function _openShareScreenSelection() {
768
744
  return _openShareScreenSelection2.apply(this, arguments);
@@ -775,11 +751,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
775
751
  this._dialogProvider.closeDialog(this._shareSelectionDialogId);
776
752
  this._shareSelectionDialogId = '';
777
753
  }
778
- }, {
779
- key: "_setControlBarWindowId",
780
- value: function _setControlBarWindowId(id) {
781
- this._controlBarWindowId = id;
782
- }
783
754
  }, {
784
755
  key: "_openVideoWindowDialog",
785
756
  value: function _openVideoWindowDialog() {
@@ -789,7 +760,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
789
760
  key: "_closeControlBar",
790
761
  value: function _closeControlBar() {
791
762
  if (!this._controlBarDialogId) return;
792
- this._setControlBarWindowId(-1);
793
763
  this._dialogProvider.closeDialog(this._controlBarDialogId);
794
764
  this._controlBarDialogId = '';
795
765
  }
@@ -862,6 +832,9 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
862
832
  case _constant.FcrUIAction.OPEN_TOP_VIDEO_WINDOW:
863
833
  this._openVideoWindowDialog();
864
834
  break;
835
+ case _constant.FcrUIAction.CLOSE_TOP_VIDEO_WINDOW:
836
+ this._closeVideoWindowDialog();
837
+ break;
865
838
  }
866
839
  }
867
840
  }, {
@@ -903,32 +876,32 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
903
876
  }, {
904
877
  key: "_validateShareStart",
905
878
  value: function () {
906
- var _validateShareStart2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(id, type) {
907
- return _regenerator["default"].wrap(function (_context6) {
908
- while (1) switch (_context6.prev = _context6.next) {
879
+ var _validateShareStart2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(id, type) {
880
+ return _regenerator["default"].wrap(function (_context5) {
881
+ while (1) switch (_context5.prev = _context5.next) {
909
882
  case 0:
910
883
  if (!this.supportEnumScreen) {
911
- _context6.next = 2;
884
+ _context5.next = 2;
912
885
  break;
913
886
  }
914
- if (!(type === _type2.AgoraRtcScreenCaptureType.WINDOW && !this._validateWindow(id))) {
915
- _context6.next = 1;
887
+ if (!(type === _type.FcrScreenCaptureType.WINDOW && !this._validateWindow(id))) {
888
+ _context5.next = 1;
916
889
  break;
917
890
  }
918
- return _context6.abrupt("return", false);
891
+ return _context5.abrupt("return", false);
919
892
  case 1:
920
- if (!(type === _type2.AgoraRtcScreenCaptureType.SCREEN && !this._validateDisplay(id))) {
921
- _context6.next = 2;
893
+ if (!(type === _type.FcrScreenCaptureType.SCREEN && !this._validateDisplay(id))) {
894
+ _context5.next = 2;
922
895
  break;
923
896
  }
924
- return _context6.abrupt("return", false);
897
+ return _context5.abrupt("return", false);
925
898
  case 2:
926
- return _context6.abrupt("return", true);
899
+ return _context5.abrupt("return", true);
927
900
  case 3:
928
901
  case "end":
929
- return _context6.stop();
902
+ return _context5.stop();
930
903
  }
931
- }, _callee6, this);
904
+ }, _callee5, this);
932
905
  }));
933
906
  function _validateShareStart(_x4, _x5) {
934
907
  return _validateShareStart2.apply(this, arguments);
@@ -937,32 +910,9 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
937
910
  }()
938
911
  }, {
939
912
  key: "_initControlbar",
940
- value: function () {
941
- var _initControlbar2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7() {
942
- var mainWindow;
943
- return _regenerator["default"].wrap(function (_context7) {
944
- while (1) switch (_context7.prev = _context7.next) {
945
- case 0:
946
- if ((0, _env.isElectron)()) {
947
- this._controlBarDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONTROL_BAR, _constant.FcrUIDialogKey.CONTROL_BAR);
948
- mainWindow = window.runtime.browserWindow;
949
- if (mainWindow) {
950
- mainWindow.hide();
951
- }
952
- } else {
953
- this._controlBarDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONTROL_BAR, _constant.FcrUIDialogKey.CONTROL_BAR);
954
- }
955
- case 1:
956
- case "end":
957
- return _context7.stop();
958
- }
959
- }, _callee7, this);
960
- }));
961
- function _initControlbar() {
962
- return _initControlbar2.apply(this, arguments);
963
- }
964
- return _initControlbar;
965
- }()
913
+ value: function _initControlbar() {
914
+ this._controlBarDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONTROL_BAR, _constant.FcrUIDialogKey.CONTROL_BAR);
915
+ }
966
916
  }, {
967
917
  key: "_handleBrowserShow",
968
918
  value: function _handleBrowserShow() {
@@ -993,7 +943,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
993
943
  }]);
994
944
  }();
995
945
  _ShareScreenStore = ShareScreenStore;
996
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "boardOwnerUser"], [_decorator.bound, 2, "toggleIsShowToolbar"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_zoomInDecs, 18, "zoomIn"], [_zoomOutDecs, 18, "zoomOut"], [_fullContainerDecs, 18, "fullContainer"], [_setOriginScalcDecs, 18, "setOriginScalc"], [_hasLoopbackDeviceDecs, 18, "hasLoopbackDevice"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_decorator.bound, 2, "setCardChooseBounds"], [_decorator.bound, 2, "handlerBoardShareStop"], [_decorator.bound, 2, "release"], [_openRelaunchTipsDialogDecs, 18, "openRelaunchTipsDialog"], [_startRenderSharePreviewDecs, 18, "startRenderSharePreview"], [_stopRenderSharePreviewDecs, 18, "stopRenderSharePreview"], [_handleStopShareDecs, 18, "handleStopShare"], [_handleStopShareByExitRoomDecs, 18, "handleStopShareByExitRoom"], [_decorator.bound, 2, "participantShareCanWeAnnotation"], [_handleStartShareDecs, 18, "handleStartShare"], [_decorator.bound, 2, "isAnnotationSupported"], [_openShareScreenSelectionDecs, 18, "_openShareScreenSelection"], [_closeShareScreenSelectionDecs, 18, "_closeShareScreenSelection"], [_setControlBarWindowIdDecs, 18, "_setControlBarWindowId"], [_openVideoWindowDialogDecs, 18, "_openVideoWindowDialog"], [_closeControlBarDecs, 18, "_closeControlBar"], [_closeVideoWindowDialogDecs, 18, "_closeVideoWindowDialog"], [_handleReplaceScreenDecs, 18, "_handleReplaceScreen"], [_decorator.bound, 2, "_handleOnline"], [_decorator.bound, 2, "_handleOffline"], [_initControlbarDecs, 18, "_initControlbar"], [_decorator.bound, 2, "_handleBrowserShow"], [_decorator.bound, 2, "_hendleBrowserHide"], [_decorator.bound, 2, "_handleOnScreenShareSeize"], [_decorator.bound, 2, "handleToggleScreenShareWithAudio"], [_toggleShareWithScenarioTypeDecs, 18, "toggleShareWithScenarioType"], [_handleChooseScreenDecs, 16, "handleChooseScreen"]], []).e, 3);
946
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "boardOwnerUser"], [_decorator.bound, 2, "toggleIsShowToolbar"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_zoomInDecs, 18, "zoomIn"], [_zoomOutDecs, 18, "zoomOut"], [_fullContainerDecs, 18, "fullContainer"], [_setOriginScalcDecs, 18, "setOriginScalc"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_decorator.bound, 2, "setCardChooseBounds"], [_decorator.bound, 2, "handlerBoardShareStop"], [_decorator.bound, 2, "release"], [_openRelaunchTipsDialogDecs, 18, "openRelaunchTipsDialog"], [_startRenderSharePreviewDecs, 18, "startRenderSharePreview"], [_stopRenderSharePreviewDecs, 18, "stopRenderSharePreview"], [_handleStopShareDecs, 18, "handleStopShare"], [_handleStopShareByExitRoomDecs, 18, "handleStopShareByExitRoom"], [_decorator.bound, 2, "participantShareCanWeAnnotation"], [_handleStartShareDecs, 18, "handleStartShare"], [_openShareScreenSelectionDecs, 18, "_openShareScreenSelection"], [_closeShareScreenSelectionDecs, 18, "_closeShareScreenSelection"], [_openVideoWindowDialogDecs, 18, "_openVideoWindowDialog"], [_closeControlBarDecs, 18, "_closeControlBar"], [_closeVideoWindowDialogDecs, 18, "_closeVideoWindowDialog"], [_handleReplaceScreenDecs, 18, "_handleReplaceScreen"], [_decorator.bound, 2, "_handleOnline"], [_decorator.bound, 2, "_handleOffline"], [_initControlbarDecs, 18, "_initControlbar"], [_decorator.bound, 2, "_handleBrowserShow"], [_decorator.bound, 2, "_hendleBrowserHide"], [_decorator.bound, 2, "_handleOnScreenShareSeize"], [_decorator.bound, 2, "handleToggleScreenShareWithAudio"], [_toggleShareWithScenarioTypeDecs, 18, "toggleShareWithScenarioType"], [_handleChooseScreenDecs, 16, "handleChooseScreen"]], []).e, 3);
997
947
  _init_boardOwnerUser = _applyDecs$e[0];
998
948
  _init_handleChooseScreen = _applyDecs$e[1];
999
949
  _initProto = _applyDecs$e[2];
@@ -1,27 +1,26 @@
1
- import { AgoraRtcScreenCaptureType } from 'agora-rte-sdk/lib/core/rtc/type';
2
1
  import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
3
2
  import { AudioProcessingChannel } from 'agora-ui-foundation/lib/components/room-screen-share-state-bar/share-audio';
4
- import { AgoraRtcDisplayInfo, AgoraRtcWindowInfo } from 'fcr-core/lib/imports';
3
+ import { FcrDisplayInfo, FcrWindowInfo, FcrScreenCaptureType } from 'fcr-core/lib/type';
5
4
  import { CurrentShareBounds } from '../control-bar/types';
6
- export type FcrUIWindowCaptureSource = AgoraRtcWindowInfo;
7
- export type FcrUIDisplayCaptureSource = Omit<AgoraRtcDisplayInfo, 'image'> & {
5
+ export type FcrUIWindowCaptureSource = FcrWindowInfo;
6
+ export type FcrUIDisplayCaptureSource = Omit<FcrDisplayInfo, 'image'> & {
8
7
  image: FcrIconType | Uint8Array;
9
8
  };
10
9
  export interface FcrUIShareSelectionWindowProps {
11
10
  currentShareType: string;
12
11
  onChangeShareType: (type: string) => void;
13
- screens: AgoraRtcWindowInfo[];
14
- applications: AgoraRtcDisplayInfo[];
12
+ screens: FcrWindowInfo[];
13
+ applications: FcrDisplayInfo[];
15
14
  }
16
15
  export interface FcrUIShareSelectionDisplayProps {
17
16
  currentShareAudioProcessingChannel: AudioProcessingChannel;
18
17
  currentShareId: string;
19
- currentShareType: AgoraRtcScreenCaptureType;
18
+ currentShareType: FcrScreenCaptureType;
20
19
  currentShareBounds: CurrentShareBounds;
21
20
  shareWithAudio: boolean;
22
21
  }
23
22
  export type CurrentShareScreenTypes = {
24
23
  id: string;
25
- type: AgoraRtcScreenCaptureType;
24
+ type: FcrScreenCaptureType;
26
25
  bounds: CurrentShareBounds;
27
26
  };
@@ -13,6 +13,7 @@ import { FcrUIMeetingTimeSharedDataSource } from '../../shared-data-source/meeti
13
13
  import { FcrUIAnnotationProvider } from '../../providers/annotation-provider';
14
14
  import { FcrUIDialogProvider } from '../../providers/dialog-provider';
15
15
  import { FcrUIScreenShareSharedDataSource } from '../../shared-data-source/screen-share-data';
16
+ import { FcrUIMultiDisplayProvider } from '../../providers/multi-display-provider';
16
17
  export declare class StateBarUIModule extends UIModule {
17
18
  private _store?;
18
19
  currentRoomControlProvider?: FcrUICurrentRoomControlProvider;
@@ -31,6 +32,7 @@ export declare class StateBarUIModule extends UIModule {
31
32
  annotationProvider: FcrUIAnnotationProvider;
32
33
  dialogProvider?: FcrUIDialogProvider;
33
34
  sharedScreenShareSharedDataSource?: FcrUIScreenShareSharedDataSource;
35
+ multiDisplayProvider?: FcrUIMultiDisplayProvider;
34
36
  onNodeWillActive(): void;
35
37
  getComponent(): import("react/jsx-runtime").JSX.Element;
36
38
  onNodeWillInactive(): void;
@@ -58,7 +58,8 @@ var StateBarUIModule = exports.StateBarUIModule = /*#__PURE__*/function (_UIModu
58
58
  sharedMeetingTimeDataSource: this.sharedMeetingTimeDataSource,
59
59
  annotationProvider: this.annotationProvider,
60
60
  dialogProvider: this.dialogProvider,
61
- sharedScreenShareSharedDataSource: this.sharedScreenShareSharedDataSource
61
+ sharedScreenShareSharedDataSource: this.sharedScreenShareSharedDataSource,
62
+ multiDisplayProvider: this.multiDisplayProvider
62
63
  });
63
64
  }
64
65
  }, {
@@ -48,7 +48,6 @@ var LiveStreamingState = exports.LiveStreamingState = (0, _mobxReact.observer)(f
48
48
  var MIN_WIDTH = 84;
49
49
  var textWidth = (_textRef$current = textRef.current) === null || _textRef$current === void 0 ? void 0 : _textRef$current.offsetWidth;
50
50
  var parentWidth = (_textRef$current2 = textRef.current) === null || _textRef$current2 === void 0 || (_textRef$current2 = _textRef$current2.parentNode) === null || _textRef$current2 === void 0 ? void 0 : _textRef$current2.offsetWidth;
51
- console.log(textWidth, parentWidth);
52
51
  if (textWidth > parentWidth || parentWidth < MIN_WIDTH || galleryWidth < _store.GALLERY_MIN_SIZE) {
53
52
  setHideLiveStreamingInfoOnOverflow(true);
54
53
  } else {
@@ -16,6 +16,7 @@ import { FcrUIMeetingTimeSharedDataSource } from '../../shared-data-source/meeti
16
16
  import { FcrUIAnnotationProvider } from '../../providers/annotation-provider';
17
17
  import { FcrUIDialogProvider } from '../../providers/dialog-provider';
18
18
  import { FcrUIScreenShareSharedDataSource } from '../../shared-data-source/screen-share-data';
19
+ import { FcrUIMultiDisplayProvider } from '../../providers/multi-display-provider';
19
20
  export type NetworkStatus = 'excellent' | 'average' | 'poor' | 'unknown';
20
21
  export declare const GALLERY_MIN_SIZE = 825;
21
22
  export default class StateBarStore {
@@ -32,6 +33,7 @@ export default class StateBarStore {
32
33
  private _messageProvider;
33
34
  private _sharedMemberDataSource;
34
35
  private _localStorageProvider;
36
+ private _multiDisplayProvider;
35
37
  private _roomObserver;
36
38
  private _abilityProvider;
37
39
  private _annotationProvider;
@@ -65,12 +67,13 @@ export default class StateBarStore {
65
67
  get meetingTime(): string;
66
68
  get password(): string | undefined;
67
69
  get isSharingScreen(): boolean;
70
+ get isLayoutSwitchDisabled(): boolean;
68
71
  get layoutSize(): number;
69
72
  get layoutView(): import("../../type").FcrUIVideoWindowLayoutType;
70
73
  get asideLayout(): import("../../type").FcrUIUpdateAsideParams;
71
74
  get isRoomDetailSupported(): boolean;
72
75
  get roomDetailCopyText(): string;
73
- constructor({ roomControl, uiEventStore, securityStore, parameters, sharedLayoutDataSource, roomProvider, sharedVideoWindowDataSource, messageProvider, sharedMemberDataSource, localStorageProvider, abilityProvider, sharedMeetingTimeDataSource, annotationProvider, dialogProvider, sharedScreenShareSharedDataSource, }: {
76
+ constructor({ roomControl, uiEventStore, securityStore, parameters, sharedLayoutDataSource, roomProvider, sharedVideoWindowDataSource, messageProvider, sharedMemberDataSource, localStorageProvider, abilityProvider, sharedMeetingTimeDataSource, annotationProvider, dialogProvider, sharedScreenShareSharedDataSource, multiDisplayProvider, }: {
74
77
  roomControl: FcrMainRoomControl | FcrWaitingRoomControl;
75
78
  uiEventStore: FcrUIEventProvider;
76
79
  securityStore: FcrUIPrivilegeProvider;
@@ -86,6 +89,7 @@ export default class StateBarStore {
86
89
  annotationProvider: FcrUIAnnotationProvider;
87
90
  dialogProvider: FcrUIDialogProvider;
88
91
  sharedScreenShareSharedDataSource: FcrUIScreenShareSharedDataSource;
92
+ multiDisplayProvider: FcrUIMultiDisplayProvider;
89
93
  });
90
94
  get roomId(): string | undefined;
91
95
  get meetingId(): string | undefined;
@@ -95,7 +99,6 @@ export default class StateBarStore {
95
99
  setRoomInfo(roomInfo: FcrRoomInfo | undefined): void;
96
100
  toggleLayout(layout: FcrUIVideoWindowLayoutType): void;
97
101
  toggleLayoutBarLock(state: boolean): void;
98
- openVideoWindowDialog(): void;
99
102
  release(): void;
100
103
  openDeviceSettingDialog(arg?: Partial<DeviceSettingDialogConfig>): void;
101
104
  stopLiveStreamingDialog(): void;