fcr-ui-scene 3.6.4-rc.1 → 3.7.0

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 (468) hide show
  1. package/lib/creator.d.ts +4 -3
  2. package/lib/creator.js +136 -98
  3. package/lib/electron/app.js +1 -1
  4. package/lib/electron/bootstrap-sdk.js +49 -4
  5. package/lib/electron/injections.d.ts +5 -1
  6. package/lib/electron/injections.js +14 -2
  7. package/lib/electron/ipc/type.d.ts +8 -4
  8. package/lib/electron/ipc/type.js +10 -4
  9. package/lib/electron/logger.js +1 -1
  10. package/lib/electron/main.js +5 -2
  11. package/lib/electron/preload.js +34 -5
  12. package/lib/fragments/annotation/index.d.ts +2 -2
  13. package/lib/fragments/annotation/index.js +38 -28
  14. package/lib/fragments/annotation/libs.d.ts +2 -2
  15. package/lib/fragments/annotation/store.d.ts +21 -4
  16. package/lib/fragments/annotation/store.js +281 -84
  17. package/lib/fragments/annotation/style.css +9 -0
  18. package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.js +1 -1
  19. package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.js +1 -1
  20. package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.d.ts +26 -2
  21. package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.js +57 -8
  22. package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.js +36 -3
  23. package/lib/fragments/annotation/view.d.ts +1 -0
  24. package/lib/fragments/annotation/view.js +52 -10
  25. package/lib/modules/action-bar/components/apps/index.js +54 -38
  26. package/lib/modules/action-bar/components/chat/index.js +13 -34
  27. package/lib/modules/action-bar/components/collapse/index.js +1 -1
  28. package/lib/modules/action-bar/components/leave/index.js +9 -9
  29. package/lib/modules/action-bar/components/more/index.js +26 -27
  30. package/lib/modules/action-bar/components/participants/index.js +23 -39
  31. package/lib/modules/action-bar/components/record/index.js +7 -13
  32. package/lib/modules/action-bar/components/screen-share/index.js +4 -24
  33. package/lib/modules/action-bar/components/security/index.js +29 -34
  34. package/lib/modules/action-bar/components/settings/index.js +13 -19
  35. package/lib/modules/action-bar/index.d.ts +4 -0
  36. package/lib/modules/action-bar/index.js +3 -1
  37. package/lib/modules/action-bar/store.d.ts +16 -6
  38. package/lib/modules/action-bar/store.js +63 -25
  39. package/lib/modules/action-bar/types.d.ts +3 -3
  40. package/lib/modules/action-bar/view.js +2 -3
  41. package/lib/modules/annotation/annotation-index.d.ts +2 -0
  42. package/lib/modules/annotation/annotation-index.js +80 -0
  43. package/lib/modules/annotation/annotation-toolbar-store.d.ts +82 -0
  44. package/lib/modules/annotation/annotation-toolbar-store.js +501 -0
  45. package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
  46. package/lib/modules/annotation/components/color-picker/components/color.js +38 -0
  47. package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
  48. package/lib/modules/annotation/components/color-picker/components/panel.js +109 -0
  49. package/lib/modules/annotation/components/color-picker/components/picker.d.ts +1 -0
  50. package/lib/modules/annotation/components/color-picker/components/picker.js +75 -0
  51. package/lib/modules/annotation/components/color-picker/index.d.ts +2 -0
  52. package/lib/modules/annotation/components/color-picker/index.js +47 -0
  53. package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
  54. package/lib/modules/annotation/components/eraser-picker.js +144 -0
  55. package/lib/modules/annotation/components/expansion/index.d.ts +1 -0
  56. package/lib/modules/annotation/components/expansion/index.js +100 -0
  57. package/lib/modules/annotation/components/extra-tool-picker.d.ts +1 -0
  58. package/lib/modules/annotation/components/extra-tool-picker.js +62 -0
  59. package/lib/modules/annotation/components/history.d.ts +2 -0
  60. package/lib/modules/annotation/components/history.js +78 -0
  61. package/lib/modules/annotation/components/icons/fold-icon.d.ts +2 -0
  62. package/lib/modules/annotation/components/icons/fold-icon.js +41 -0
  63. package/lib/modules/annotation/components/icons/move-icon.d.ts +1 -0
  64. package/lib/modules/annotation/components/icons/move-icon.js +66 -0
  65. package/lib/modules/annotation/components/item/index.d.ts +1 -0
  66. package/lib/modules/annotation/components/item/index.js +43 -0
  67. package/lib/modules/annotation/components/move-handle.d.ts +5 -0
  68. package/lib/modules/annotation/components/move-handle.js +134 -0
  69. package/lib/modules/annotation/components/pen-picker.d.ts +4 -0
  70. package/lib/modules/annotation/components/pen-picker.js +155 -0
  71. package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
  72. package/lib/modules/annotation/components/screen-capture-picker.js +85 -0
  73. package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
  74. package/lib/modules/annotation/components/shape-picker.js +210 -0
  75. package/lib/modules/annotation/hooks/index.d.ts +14 -0
  76. package/lib/modules/annotation/hooks/index.js +292 -0
  77. package/lib/modules/annotation/index.d.ts +4 -1
  78. package/lib/modules/annotation/index.js +20 -22
  79. package/lib/modules/annotation/store.d.ts +59 -18
  80. package/lib/modules/annotation/store.js +503 -263
  81. package/lib/modules/annotation/style.css +10 -0
  82. package/lib/modules/annotation/view.js +9 -11
  83. package/lib/modules/chat/chat-room-store.js +5 -2
  84. package/lib/modules/chat/components/chat-select/index.js +1 -1
  85. package/lib/modules/chat/components/chat-select/select-item/index.js +10 -3
  86. package/lib/modules/chat/components/message-list/message-item/index.js +4 -2
  87. package/lib/modules/chat/index.d.ts +2 -0
  88. package/lib/modules/chat/index.js +13 -3
  89. package/lib/modules/chat/store.d.ts +3 -0
  90. package/lib/modules/chat/store.js +12 -6
  91. package/lib/modules/chat/types.d.ts +1 -0
  92. package/lib/modules/chat/types.js +2 -1
  93. package/lib/modules/chat/util.js +2 -1
  94. package/lib/modules/chat/view.js +6 -3
  95. package/lib/modules/{action-bar/components → components}/apps/app-item/index.d.ts +1 -1
  96. package/lib/modules/components/apps/app-list.d.ts +3 -0
  97. package/lib/modules/{action-bar/components → components}/apps/app-list.js +2 -4
  98. package/lib/modules/components/apps/types.d.ts +14 -0
  99. package/lib/modules/components/apps/types.js +6 -0
  100. package/lib/modules/components/device-control/components/carmera/index.js +71 -68
  101. package/lib/modules/components/device-control/components/microphone/index.js +99 -97
  102. package/lib/modules/components/device-control/store.d.ts +1 -1
  103. package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +7 -7
  104. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +0 -2
  105. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +4 -7
  106. package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +0 -1
  107. package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +19 -36
  108. package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +1 -0
  109. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +9 -2
  110. package/lib/modules/components/member-window/components/member-actions/components/user-info.js +0 -3
  111. package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +15 -11
  112. package/lib/modules/components/member-window/components/member-actions/index.js +10 -2
  113. package/lib/modules/components/member-window/components/member-actions/libs/index.js +2 -2
  114. package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.d.ts +12 -0
  115. package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +75 -0
  116. package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +1 -7
  117. package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +7 -47
  118. package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +12 -0
  119. package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +68 -0
  120. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +1 -9
  121. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +7 -49
  122. package/lib/modules/components/member-window/components/video-player/components/zoomable-container.d.ts +15 -0
  123. package/lib/modules/components/member-window/components/video-player/components/zoomable-container.js +255 -0
  124. package/lib/modules/components/member-window/components/video-player/index.d.ts +2 -0
  125. package/lib/modules/components/member-window/components/video-player/index.js +8 -2
  126. package/lib/modules/components/member-window/index.css +16 -6
  127. package/lib/modules/components/member-window/index.d.ts +1 -1
  128. package/lib/modules/components/member-window/index.js +12 -4
  129. package/lib/modules/components/member-window/types.d.ts +2 -0
  130. package/lib/modules/components/security-menu/index.js +6 -5
  131. package/lib/modules/control-bar/components/annotation-button/index.js +21 -8
  132. package/lib/modules/control-bar/components/more-actions/index.css +13 -0
  133. package/lib/modules/control-bar/components/more-actions/index.js +1 -1
  134. package/lib/modules/control-bar/components/share-audio/index.css +90 -0
  135. package/lib/modules/control-bar/components/share-audio/index.d.ts +15 -0
  136. package/lib/modules/control-bar/components/share-audio/index.js +173 -0
  137. package/lib/modules/control-bar/components/share-state-nav/index.css +5 -0
  138. package/lib/modules/control-bar/components/share-state-nav/index.js +14 -2
  139. package/lib/modules/control-bar/index.d.ts +2 -0
  140. package/lib/modules/control-bar/index.js +9 -1
  141. package/lib/modules/control-bar/store.d.ts +16 -7
  142. package/lib/modules/control-bar/store.js +36 -12
  143. package/lib/modules/control-bar/view.d.ts +4 -0
  144. package/lib/modules/control-bar/view.js +180 -90
  145. package/lib/modules/device-pretest/store.d.ts +1 -1
  146. package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -1
  147. package/lib/modules/dialog/components/dialog-container/index.css +1 -0
  148. package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -1
  149. package/lib/modules/dialog/components/dialog-container/index.js +27 -10
  150. package/lib/modules/dialog/components/host-area-container/index.js +4 -4
  151. package/lib/modules/dialog/components/normal-window/index.d.ts +19 -0
  152. package/lib/modules/dialog/components/normal-window/index.js +69 -0
  153. package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.js +17 -15
  154. package/lib/modules/dialog/dialogs/chat/components/actions.d.ts +1 -0
  155. package/lib/modules/dialog/dialogs/chat/components/actions.js +33 -0
  156. package/lib/modules/dialog/{components → dialogs}/chat/index.d.ts +1 -1
  157. package/lib/modules/dialog/dialogs/chat/index.js +59 -0
  158. package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +6 -0
  159. package/lib/modules/dialog/{components → dialogs}/confirm-leave-meeting/index.js +13 -37
  160. package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.js +19 -12
  161. package/lib/modules/dialog/{components → dialogs}/control-bar/index.js +2 -2
  162. package/lib/modules/dialog/{components → dialogs}/device-setting/index.js +20 -13
  163. package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +12 -0
  164. package/lib/modules/dialog/dialogs/end-meeting/index.js +45 -0
  165. package/lib/modules/dialog/{components/interpreter/electron.js → dialogs/interpreter/index.js} +17 -11
  166. package/lib/modules/dialog/dialogs/invite/index.d.ts +3 -0
  167. package/lib/modules/dialog/{components → dialogs}/invite/index.js +9 -25
  168. package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +2 -0
  169. package/lib/modules/dialog/{components → dialogs}/live-streaming/index.js +11 -34
  170. package/lib/modules/dialog/dialogs/participant/components/actions.d.ts +1 -0
  171. package/lib/modules/dialog/dialogs/participant/components/actions.js +32 -0
  172. package/lib/modules/dialog/dialogs/participant/components/title.d.ts +1 -0
  173. package/lib/modules/dialog/dialogs/participant/components/title.js +19 -0
  174. package/lib/modules/dialog/dialogs/participant/index.d.ts +2 -0
  175. package/lib/modules/dialog/dialogs/participant/index.js +53 -0
  176. package/lib/modules/dialog/dialogs/pre-setting/index.js +62 -0
  177. package/lib/modules/dialog/dialogs/rename/index.js +35 -0
  178. package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.js +1 -1
  179. package/lib/modules/dialog/{components → dialogs}/video-window/index.js +11 -8
  180. package/lib/modules/dialog/{components → dialogs}/whiteboard/index.js +2 -3
  181. package/lib/modules/dialog/{components → dialogs}/widget/electron.js +1 -1
  182. package/lib/modules/dialog/{components → dialogs}/widget/index.js +1 -1
  183. package/lib/modules/dialog/hooks/use-web-drag.d.ts +8 -0
  184. package/lib/modules/dialog/hooks/use-web-drag.js +73 -0
  185. package/lib/modules/dialog/hooks/useElectron.d.ts +2 -7
  186. package/lib/modules/dialog/hooks/useElectron.js +46 -156
  187. package/lib/modules/dialog/index.d.ts +4 -0
  188. package/lib/modules/dialog/index.js +4 -2
  189. package/lib/modules/dialog/level-config.d.ts +11 -0
  190. package/lib/modules/dialog/level-config.js +21 -0
  191. package/lib/modules/dialog/store.d.ts +15 -6
  192. package/lib/modules/dialog/store.js +40 -54
  193. package/lib/modules/dialog/type.d.ts +15 -12
  194. package/lib/modules/event-confirm/components/window/index.d.ts +1 -4
  195. package/lib/modules/event-confirm/components/window/index.js +34 -23
  196. package/lib/modules/event-confirm/index.d.ts +2 -0
  197. package/lib/modules/event-confirm/index.js +3 -2
  198. package/lib/modules/event-confirm/store.d.ts +9 -1
  199. package/lib/modules/event-confirm/store.js +24 -16
  200. package/lib/modules/event-confirm/view.js +11 -22
  201. package/lib/modules/event-sound/index.d.ts +2 -0
  202. package/lib/modules/event-sound/index.js +8 -1
  203. package/lib/modules/event-toast/index.css +10 -0
  204. package/lib/modules/event-toast/store.d.ts +1 -1
  205. package/lib/modules/event-toast/store.js +17 -15
  206. package/lib/modules/event-toast/view.js +2 -1
  207. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +4 -2
  208. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -1
  209. package/lib/modules/interpreter/store.d.ts +1 -0
  210. package/lib/modules/interpreter/store.js +12 -5
  211. package/lib/modules/interpreter/view.js +7 -1
  212. package/lib/modules/layout/components/Aside.js +4 -0
  213. package/lib/modules/layout/components/Carousel.js +3 -1
  214. package/lib/modules/layout/components/CommonVideoRenderer.d.ts +3 -1
  215. package/lib/modules/layout/components/CommonVideoRenderer.js +13 -9
  216. package/lib/modules/layout/components/Gallery.js +11 -3
  217. package/lib/modules/layout/index.css +1 -0
  218. package/lib/modules/layout/index.d.ts +2 -0
  219. package/lib/modules/layout/index.js +4 -3
  220. package/lib/modules/layout/store.d.ts +9 -5
  221. package/lib/modules/layout/store.js +38 -46
  222. package/lib/modules/participant/components/confirm-input/index.css +4 -0
  223. package/lib/modules/participant/components/confirm-input/index.d.ts +1 -0
  224. package/lib/modules/participant/components/confirm-input/index.js +2 -1
  225. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +2 -1
  226. package/lib/modules/participant/components/participants/components/participants/index.js +11 -3
  227. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +7 -3
  228. package/lib/modules/participant/components/participants/types.d.ts +1 -0
  229. package/lib/modules/participant/store.d.ts +2 -1
  230. package/lib/modules/participant/store.js +23 -9
  231. package/lib/modules/phone-audio-connect/store.d.ts +4 -4
  232. package/lib/modules/setting/audio-settings/audio-settings.js +6 -17
  233. package/lib/modules/setting/config.d.ts +16 -0
  234. package/lib/modules/setting/config.js +17 -1
  235. package/lib/modules/setting/index.d.ts +2 -4
  236. package/lib/modules/setting/index.js +7 -16
  237. package/lib/modules/setting/minutes-settings/minutes-settings.js +0 -4
  238. package/lib/modules/setting/state/index.js +5 -5
  239. package/lib/modules/setting/store.d.ts +37 -33
  240. package/lib/modules/setting/store.js +275 -261
  241. package/lib/modules/setting/translate-settings/language-select.js +0 -2
  242. package/lib/modules/setting/video-settings/video-settings-basic.js +6 -6
  243. package/lib/modules/setting/video-settings/video-settings.js +2 -2
  244. package/lib/modules/setting/view.js +1 -1
  245. package/lib/modules/share-screen/components/control-bar/index.css +75 -0
  246. package/lib/modules/share-screen/components/control-bar/index.d.ts +3 -0
  247. package/lib/modules/share-screen/components/control-bar/index.js +88 -0
  248. package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.d.ts +8 -0
  249. package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.js +46 -0
  250. package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.d.ts +6 -0
  251. package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.js +32 -0
  252. package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.d.ts +6 -0
  253. package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.js +32 -0
  254. package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.d.ts +6 -0
  255. package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.js +32 -0
  256. package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.d.ts +6 -0
  257. package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.js +32 -0
  258. package/lib/modules/share-screen/components/selection/index.js +28 -14
  259. package/lib/modules/share-screen/components/share-scenario/index.d.ts +5 -0
  260. package/lib/modules/share-screen/components/share-scenario/index.js +47 -0
  261. package/lib/modules/share-screen/index.d.ts +4 -2
  262. package/lib/modules/share-screen/index.js +11 -2
  263. package/lib/modules/share-screen/store.d.ts +32 -11
  264. package/lib/modules/share-screen/store.js +273 -192
  265. package/lib/modules/share-screen/view.js +2 -2
  266. package/lib/modules/state-bar/index.js +2 -3
  267. package/lib/modules/state-bar/layout-config.d.ts +2 -4
  268. package/lib/modules/state-bar/layout-config.js +10 -5
  269. package/lib/modules/state-bar/live-streaming-state.js +0 -1
  270. package/lib/modules/state-bar/store.d.ts +7 -7
  271. package/lib/modules/state-bar/store.js +17 -15
  272. package/lib/modules/state-bar/view.js +19 -23
  273. package/lib/modules/video-window/components/members/index.js +3 -2
  274. package/lib/modules/video-window/index.js +0 -3
  275. package/lib/modules/waiting-room-layout/index.css +3 -3
  276. package/lib/modules/waiting-room-layout/index.js +2 -2
  277. package/lib/modules/waiting-room-layout/view.js +1 -0
  278. package/lib/modules/whiteboard/components/control-bar/index.js +2 -2
  279. package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -1
  280. package/lib/modules/whiteboard/components/control-bar/store.js +4 -2
  281. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +4 -4
  282. package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +0 -14
  283. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +4 -155
  284. package/lib/modules/whiteboard/components/toolbar/store.d.ts +4 -2
  285. package/lib/modules/whiteboard/components/toolbar/store.js +37 -25
  286. package/lib/modules/whiteboard/components/toolbar/style.css +1 -0
  287. package/lib/modules/whiteboard/index.d.ts +3 -1
  288. package/lib/modules/whiteboard/index.js +26 -23
  289. package/lib/modules/widget/view.js +4 -0
  290. package/lib/providers/ability-provider.d.ts +2 -0
  291. package/lib/providers/annotation-provider.d.ts +43 -47
  292. package/lib/providers/annotation-provider.js +94 -142
  293. package/lib/providers/app-list-provider.d.ts +98 -0
  294. package/lib/providers/app-list-provider.js +251 -0
  295. package/lib/providers/device-provider.d.ts +31 -23
  296. package/lib/providers/device-provider.js +493 -444
  297. package/lib/providers/device-stream-provider.js +2 -2
  298. package/lib/providers/event-provider.d.ts +0 -4
  299. package/lib/providers/event-provider.js +0 -10
  300. package/lib/providers/interpreter-provider.js +10 -7
  301. package/lib/providers/privilege-provider.d.ts +1 -1
  302. package/lib/providers/privilege-provider.js +3 -2
  303. package/lib/providers/renderer-provider.d.ts +1 -0
  304. package/lib/providers/renderer-provider.js +7 -2
  305. package/lib/providers/room-provider.d.ts +3 -1
  306. package/lib/providers/room-provider.js +40 -14
  307. package/lib/providers/screen-share-provider.d.ts +73 -17
  308. package/lib/providers/screen-share-provider.js +222 -100
  309. package/lib/providers/sharing-provider.d.ts +0 -1
  310. package/lib/providers/sharing-provider.js +3 -9
  311. package/lib/providers/user-setting-storage-provider.d.ts +1 -0
  312. package/lib/providers/user-setting-storage-provider.js +5 -12
  313. package/lib/providers/widget-provider.d.ts +19 -0
  314. package/lib/providers/widget-provider.js +28 -2
  315. package/lib/runtime.d.ts +10 -1
  316. package/lib/scenes/main-scene.d.ts +12 -2
  317. package/lib/scenes/main-scene.js +54 -28
  318. package/lib/scenes/waiting-scene.d.ts +11 -0
  319. package/lib/scenes/waiting-scene.js +34 -8
  320. package/lib/schema.d.ts +6 -0
  321. package/lib/schema.js +5 -1
  322. package/lib/shared-data-source/annotation-data.d.ts +17 -0
  323. package/lib/shared-data-source/annotation-data.js +110 -0
  324. package/lib/shared-data-source/app-list-data.d.ts +34 -0
  325. package/lib/shared-data-source/app-list-data.js +133 -0
  326. package/lib/shared-data-source/config.d.ts +26 -7
  327. package/lib/shared-data-source/config.js +29 -11
  328. package/lib/shared-data-source/confirm-data.d.ts +25 -0
  329. package/lib/shared-data-source/confirm-data.js +97 -0
  330. package/lib/shared-data-source/interpreter.d.ts +1 -0
  331. package/lib/shared-data-source/layout-data.d.ts +2 -0
  332. package/lib/shared-data-source/layout-data.js +14 -3
  333. package/lib/shared-data-source/meeting-time.d.ts +23 -1
  334. package/lib/shared-data-source/meeting-time.js +160 -43
  335. package/lib/shared-data-source/member-data.d.ts +10 -9
  336. package/lib/shared-data-source/member-data.js +55 -48
  337. package/lib/shared-data-source/screen-share-data.d.ts +100 -17
  338. package/lib/shared-data-source/screen-share-data.js +142 -22
  339. package/lib/shared-data-source/setting.d.ts +36 -4
  340. package/lib/shared-data-source/setting.js +92 -57
  341. package/lib/shared-data-source/video-window.d.ts +3 -0
  342. package/lib/shared-data-source/video-window.js +52 -30
  343. package/lib/shared-data-source/waiting-room.js +4 -2
  344. package/lib/translations/enUS.d.ts +62 -7
  345. package/lib/translations/enUS.js +71 -14
  346. package/lib/translations/zhCN.d.ts +62 -7
  347. package/lib/translations/zhCN.js +73 -16
  348. package/lib/type.d.ts +23 -5
  349. package/lib/type.js +6 -2
  350. package/lib/ui-manager.d.ts +5 -16
  351. package/lib/ui-manager.js +15 -57
  352. package/lib/ui-scene.d.ts +31 -6
  353. package/lib/ui-scene.js +180 -169
  354. package/lib/utilities/constant.d.ts +67 -63
  355. package/lib/utilities/constant.js +65 -61
  356. package/lib/utilities/dialog-utils.d.ts +66 -0
  357. package/lib/utilities/dialog-utils.js +188 -0
  358. package/lib/utilities/logger.js +3 -3
  359. package/lib/utilities/meeting-detail.js +1 -1
  360. package/lib/utilities/parameters.d.ts +1 -0
  361. package/lib/utilities/parameters.js +5 -1
  362. package/lib/utilities/renderer-event.d.ts +1 -1
  363. package/lib/utilities/screen-capture-permission.d.ts +1 -0
  364. package/lib/utilities/screen-capture-permission.js +9 -1
  365. package/lib/utilities/tools.d.ts +0 -66
  366. package/lib/utilities/tools.js +9 -186
  367. package/package.json +5 -6
  368. package/public/index.html +11 -1
  369. package/lib/modules/action-bar/components/apps/app-list.d.ts +0 -3
  370. package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +0 -17
  371. package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -30
  372. package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +0 -10
  373. package/lib/modules/action-bar/components/apps/useBeautyBackground.js +0 -36
  374. package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +0 -14
  375. package/lib/modules/action-bar/components/apps/useInterpreter.js +0 -37
  376. package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +0 -16
  377. package/lib/modules/action-bar/components/apps/useLiveStreaming.js +0 -41
  378. package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +0 -10
  379. package/lib/modules/action-bar/components/apps/useWidgetList.js +0 -39
  380. package/lib/modules/annotation/components/control-bar/index.css +0 -48
  381. package/lib/modules/annotation/components/control-bar/index.d.ts +0 -3
  382. package/lib/modules/annotation/components/control-bar/index.js +0 -142
  383. package/lib/modules/annotation/components/toolbar/index.d.ts +0 -0
  384. package/lib/modules/annotation/components/toolbar/index.js +0 -1
  385. package/lib/modules/dialog/components/chat/electron.d.ts +0 -2
  386. package/lib/modules/dialog/components/chat/electron.js +0 -35
  387. package/lib/modules/dialog/components/chat/index.js +0 -67
  388. package/lib/modules/dialog/components/confirm-leave-meeting/index.d.ts +0 -6
  389. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +0 -5
  390. package/lib/modules/dialog/components/connection-gateway/electron.js +0 -33
  391. package/lib/modules/dialog/components/device-setting/electron.d.ts +0 -2
  392. package/lib/modules/dialog/components/device-setting/electron.js +0 -37
  393. package/lib/modules/dialog/components/interpreter/electron.d.ts +0 -2
  394. package/lib/modules/dialog/components/interpreter/index.js +0 -33
  395. package/lib/modules/dialog/components/invite/index.d.ts +0 -3
  396. package/lib/modules/dialog/components/live-streaming/index.d.ts +0 -4
  397. package/lib/modules/dialog/components/participant/electron.d.ts +0 -2
  398. package/lib/modules/dialog/components/participant/electron.js +0 -35
  399. package/lib/modules/dialog/components/participant/index.d.ts +0 -2
  400. package/lib/modules/dialog/components/participant/index.js +0 -65
  401. package/lib/modules/dialog/components/pre-setting/electron.d.ts +0 -2
  402. package/lib/modules/dialog/components/pre-setting/electron.js +0 -51
  403. package/lib/modules/dialog/components/pre-setting/index.js +0 -38
  404. package/lib/modules/dialog/components/pre-setting-container/component/body.d.ts +0 -8
  405. package/lib/modules/dialog/components/pre-setting-container/component/body.js +0 -78
  406. package/lib/modules/dialog/components/pre-setting-container/index.css +0 -82
  407. package/lib/modules/dialog/components/pre-setting-container/index.d.ts +0 -18
  408. package/lib/modules/dialog/components/pre-setting-container/index.js +0 -116
  409. package/lib/modules/dialog/components/rename/index.js +0 -72
  410. package/lib/modules/dialog/dialogs.d.ts +0 -3
  411. package/lib/modules/dialog/dialogs.js +0 -28
  412. package/lib/utilities/setting-config-storage.d.ts +0 -18
  413. package/lib/utilities/setting-config-storage.js +0 -133
  414. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.d.ts +0 -0
  415. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.js +0 -0
  416. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.d.ts +0 -0
  417. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.js +0 -0
  418. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.d.ts +0 -0
  419. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.js +0 -0
  420. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +0 -0
  421. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.js +0 -0
  422. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.d.ts +0 -0
  423. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.js +0 -0
  424. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.d.ts +0 -0
  425. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/style.css +0 -0
  426. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.d.ts +0 -0
  427. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.js +0 -0
  428. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/style.css +0 -0
  429. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.d.ts +0 -0
  430. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.js +0 -0
  431. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.d.ts +0 -0
  432. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.d.ts +0 -0
  433. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.js +0 -0
  434. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/style.css +0 -0
  435. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/style.css +0 -0
  436. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.d.ts +0 -0
  437. /package/lib/modules/{action-bar/components → components}/apps/app-item/index.css +0 -0
  438. /package/lib/modules/{action-bar/components → components}/apps/app-item/index.js +0 -0
  439. /package/lib/modules/{action-bar/components → components}/apps/index.css +0 -0
  440. /package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.d.ts +0 -0
  441. /package/lib/modules/dialog/{components → dialogs}/confirm/index.d.ts +0 -0
  442. /package/lib/modules/dialog/{components → dialogs}/confirm/index.js +0 -0
  443. /package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.d.ts +0 -0
  444. /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.d.ts +0 -0
  445. /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.js +0 -0
  446. /package/lib/modules/dialog/{components → dialogs}/control-bar/index.d.ts +0 -0
  447. /package/lib/modules/dialog/{components → dialogs}/device-setting/index.css +0 -0
  448. /package/lib/modules/dialog/{components → dialogs}/device-setting/index.d.ts +0 -0
  449. /package/lib/modules/dialog/{components → dialogs}/interpreter/index.css +0 -0
  450. /package/lib/modules/dialog/{components → dialogs}/interpreter/index.d.ts +0 -0
  451. /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.css +0 -0
  452. /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.d.ts +0 -0
  453. /package/lib/modules/dialog/{components → dialogs}/rename/index.d.ts +0 -0
  454. /package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.d.ts +0 -0
  455. /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg1.png +0 -0
  456. /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg2.png +0 -0
  457. /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/fcr_png_host.png +0 -0
  458. /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.d.ts +0 -0
  459. /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.js +0 -0
  460. /package/lib/modules/dialog/{components → dialogs}/system-preference/index.css +0 -0
  461. /package/lib/modules/dialog/{components → dialogs}/system-preference/index.d.ts +0 -0
  462. /package/lib/modules/dialog/{components → dialogs}/system-preference/index.js +0 -0
  463. /package/lib/modules/dialog/{components → dialogs}/toast/index.d.ts +0 -0
  464. /package/lib/modules/dialog/{components → dialogs}/toast/index.js +0 -0
  465. /package/lib/modules/dialog/{components → dialogs}/video-window/index.d.ts +0 -0
  466. /package/lib/modules/dialog/{components → dialogs}/whiteboard/index.d.ts +0 -0
  467. /package/lib/modules/dialog/{components → dialogs}/widget/electron.d.ts +0 -0
  468. /package/lib/modules/dialog/{components → dialogs}/widget/index.d.ts +0 -0
@@ -42,10 +42,12 @@ require("core-js/modules/es.array.find.js");
42
42
  require("core-js/modules/es.array.for-each.js");
43
43
  require("core-js/modules/es.array.includes.js");
44
44
  require("core-js/modules/es.array.iterator.js");
45
+ require("core-js/modules/es.array.map.js");
45
46
  require("core-js/modules/es.array.push.js");
46
47
  require("core-js/modules/es.date.to-json.js");
47
48
  require("core-js/modules/es.function.bind.js");
48
49
  require("core-js/modules/es.json.stringify.js");
50
+ require("core-js/modules/es.object.keys.js");
49
51
  require("core-js/modules/es.object.to-string.js");
50
52
  require("core-js/modules/es.promise.js");
51
53
  require("core-js/modules/es.string.iterator.js");
@@ -55,6 +57,7 @@ require("core-js/modules/esnext.iterator.constructor.js");
55
57
  require("core-js/modules/esnext.iterator.filter.js");
56
58
  require("core-js/modules/esnext.iterator.find.js");
57
59
  require("core-js/modules/esnext.iterator.for-each.js");
60
+ require("core-js/modules/esnext.iterator.map.js");
58
61
  require("core-js/modules/esnext.weak-map.delete-all.js");
59
62
  require("core-js/modules/esnext.weak-map.emplace.js");
60
63
  require("core-js/modules/web.dom-collections.for-each.js");
@@ -66,21 +69,23 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
66
69
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
67
70
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
68
71
  var _fcrCore = require("fcr-core");
72
+ var _type = require("fcr-core/lib/type");
69
73
  var _env = require("agora-foundation/lib/utilities/env");
70
- var _type = require("agora-rte-sdk/lib/core/rtc/type");
74
+ var _type2 = require("agora-rte-sdk/lib/core/rtc/type");
71
75
  var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/share-audio");
72
76
  var _mobx = require("mobx");
73
77
  var _i18n = require("agora-ui-foundation/lib/i18n");
74
78
  var _decorator = require("agora-foundation/lib/decorator");
75
79
  var _react = require("react");
76
- var _type2 = require("agora-ui-foundation/lib/components/icon/type");
80
+ var _type3 = require("agora-ui-foundation/lib/components/icon/type");
77
81
  var _renderer = require("../../utilities/renderer");
78
82
  var _screenCapturePermission = require("../../utilities/screen-capture-permission");
79
83
  var _constant = require("../../utilities/constant");
80
84
  var _logger = require("../../utilities/logger");
81
85
  var _parameters = require("../../utilities/parameters");
86
+ var _imports = require("fcr-core/lib/imports");
82
87
  var _ShareScreenStore;
83
- var _initProto, _init_boardOwnerUser, _handleChooseScreenDecs, _init_handleChooseScreen, _setShareWithAudioStateDecs, _hasLoopbackDeviceDecs, _setShareAudioProcessingChannelDecs, _openRelaunchTipsDialogDecs, _startRenderSharePreviewDecs, _stopRenderSharePreviewDecs, _handleStopShareDecs, _handleStartShareDecs, _openShareScreenSelectionDecs, _closeShareScreenSelectionDecs, _setControlBarWindowIdDecs, _openVideoWindowDialogDecs, _closeControlBarDecs, _closeVideoWindowDialogDecs, _handleReplaceScreenDecs, _initControlbarDecs, _ref;
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;
84
89
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
85
90
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
86
91
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -92,7 +97,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
92
97
  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; }
93
98
  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; }
94
99
  var _A = /*#__PURE__*/new WeakMap();
95
- _ref = (_handleChooseScreenDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_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], _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], "logger");
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");
96
101
  var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
97
102
  function ShareScreenStore(_ref2) {
98
103
  var _this = this;
@@ -108,16 +113,17 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
108
113
  screenShareProvider = _ref2.screenShareProvider,
109
114
  annotationProvider = _ref2.annotationProvider,
110
115
  sharedScreenShareSharedDataSource = _ref2.sharedScreenShareSharedDataSource,
111
- connectionProvider = _ref2.connectionProvider,
112
- abilityProvider = _ref2.abilityProvider;
116
+ abilityProvider = _ref2.abilityProvider,
117
+ sharedAnnotationDataSource = _ref2.sharedAnnotationDataSource;
113
118
  (0, _classCallCheck2["default"])(this, ShareScreenStore);
114
119
  (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
115
120
  prefix: 'ShareScreenStore'
116
121
  })));
117
122
  (0, _defineProperty2["default"])(this, "_disposers", []);
118
123
  (0, _defineProperty2["default"])(this, "_controlBarWindowId", -1);
119
- (0, _defineProperty2["default"])(this, "_removeScreenStreamFailed", false);
120
124
  (0, _defineProperty2["default"])(this, "_isOnline", true);
125
+ (0, _defineProperty2["default"])(this, "_windowList", []);
126
+ (0, _defineProperty2["default"])(this, "_displayList", []);
121
127
  (0, _defineProperty2["default"])(this, "_cardChooseBounds", {
122
128
  x: 0,
123
129
  y: 0,
@@ -125,8 +131,12 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
125
131
  height: 0
126
132
  });
127
133
  (0, _defineProperty2["default"])(this, "_roomObserver", {
134
+ // 房间关闭时,需要停止共享屏幕
128
135
  onRoomClosed: this.handleStopShare,
129
- onLeaveMainRoom: this.handleStopShare
136
+ // 被移出主房间房间时,需要停止共享屏幕
137
+ onLeaveMainRoom: this.handleStopShare,
138
+ // 离开房间时,需要停止共享屏幕
139
+ onExitRoom: this.handleStopShareByExitRoom
130
140
  });
131
141
  (0, _defineProperty2["default"])(this, "_uiEventObserver", {
132
142
  onEvent: this._onUiEvent.bind(this)
@@ -134,7 +144,8 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
134
144
  (0, _defineProperty2["default"])(this, "_screenCaptureStateObserver", {
135
145
  onScreenCaptureStopped: this._handleOnScreenCaptureStopped.bind(this),
136
146
  onScreenShareReplaceBegin: this._handleOnScreenShareReplaceBegin.bind(this),
137
- onScreenCaptureStarted: this._handleOnScreenCaptureStarted.bind(this)
147
+ onScreenCaptureStarted: this._handleOnScreenCaptureStarted.bind(this),
148
+ onScreenShareSeize: this._handleOnScreenShareSeize.bind(this)
138
149
  });
139
150
  (0, _defineProperty2["default"])(this, "_boardObserver", {
140
151
  onActive: function onActive(ownerId) {
@@ -152,7 +163,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
152
163
  (0, _defineProperty2["default"])(this, "_videoWindowDialogId", '');
153
164
  _classPrivateFieldInitSpec(this, _A, _init_boardOwnerUser(this, undefined));
154
165
  (0, _defineProperty2["default"])(this, "handleChooseScreen", _init_handleChooseScreen(this, function (id) {
155
- var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type.AgoraRtcScreenCaptureType.WINDOW;
166
+ var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _type2.AgoraRtcScreenCaptureType.WINDOW;
156
167
  _this._sharedScreenShareSharedDataSource.setCurrentSelection(id, type);
157
168
  }));
158
169
  this._deviceProvider = deviceProvider;
@@ -165,10 +176,12 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
165
176
  this._screenShareProvider = screenShareProvider;
166
177
  this._annotationProvider = annotationProvider;
167
178
  this._sharedScreenShareSharedDataSource = sharedScreenShareSharedDataSource;
168
- this._connectionProvider = connectionProvider;
169
179
  this._abilityProvider = abilityProvider;
180
+ this._sharedAnnotationDataSource = sharedAnnotationDataSource;
181
+ roomControl.getStreamControl();
170
182
  this._userControl = roomControl.getUserControl();
171
183
  this._boardControl = roomControl.getSharingControl().getBoardControl();
184
+ this._streamControl = roomControl.getStreamControl();
172
185
  this._roomProvider.addObserver(this._roomObserver);
173
186
  this._eventProvider.addObserver(this._uiEventObserver);
174
187
  this._boardControl.addObserver(this._boardObserver);
@@ -176,7 +189,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
176
189
  this._addEventListeners();
177
190
  if ((0, _parameters.getStartScreenSharing)(sharedConfigDataSource.creatorConfig.parameters)) {
178
191
  var display = window.runtime.screen.getAllDisplays()[0];
179
- this.handleStartShare(String(display.id), _type.AgoraRtcScreenCaptureType.SCREEN, false, _shareAudio.AudioProcessingChannel.MONO, display.bounds);
192
+ this.handleStartShare(String(display.id), _type2.AgoraRtcScreenCaptureType.SCREEN, false, _shareAudio.AudioProcessingChannel.MONO, display.bounds);
180
193
  }
181
194
  this._disposers.push((0, _mobx.reaction)(function () {
182
195
  return _this._securityStore.hasStartScreenSharePermission();
@@ -231,6 +244,11 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
231
244
  get: function get() {
232
245
  return this._sharedScreenShareSharedDataSource.currentShareType;
233
246
  }
247
+ }, {
248
+ key: "isCurrentOriginal",
249
+ get: function get() {
250
+ return this._sharedScreenShareSharedDataSource.isCurrentOriginal;
251
+ }
234
252
  }, {
235
253
  key: "localUser",
236
254
  get: function get() {
@@ -267,9 +285,9 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
267
285
  return this._sharedScreenShareSharedDataSource.connectionState;
268
286
  }
269
287
  }, {
270
- key: "screenSharingState",
288
+ key: "localUserScreenSharingState",
271
289
  get: function get() {
272
- return this._sharedScreenShareSharedDataSource.screenSharingState;
290
+ return this._sharedScreenShareSharedDataSource.localUserScreenSharingState;
273
291
  }
274
292
  }, {
275
293
  key: "applicationCaptureSources",
@@ -316,11 +334,46 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
316
334
  get: function get() {
317
335
  return this._sharedScreenShareSharedDataSource.currentShareId;
318
336
  }
337
+ }, {
338
+ key: "annotationHasStart",
339
+ get: function get() {
340
+ return this._sharedAnnotationDataSource.annotationHasStart;
341
+ }
342
+ }, {
343
+ key: "allowAnnotationWrite",
344
+ get: function get() {
345
+ return this._annotationProvider.allowAnnotationWrite;
346
+ }
347
+ }, {
348
+ key: "screenShareWindowData",
349
+ get: function get() {
350
+ return this._annotationProvider.screenShareWindowData;
351
+ }
352
+ }, {
353
+ key: "isZoomMaxmum",
354
+ get: function get() {
355
+ return this._sharedScreenShareSharedDataSource.isZoomMaxmum;
356
+ }
357
+ }, {
358
+ key: "isZoomMinimum",
359
+ get: function get() {
360
+ return this._sharedScreenShareSharedDataSource.isZoomMinimum;
361
+ }
362
+ }, {
363
+ key: "isAspectRatioPreserved",
364
+ get: function get() {
365
+ return this._screenShareProvider.isAspectRatioPreserved;
366
+ }
367
+ }, {
368
+ key: "isCurrentScreenShareInSmoothType",
369
+ get: function get() {
370
+ return this._sharedScreenShareSharedDataSource.isCurrentScreenShareInSmoothType;
371
+ }
319
372
  }, {
320
373
  key: "_screenShareInfoForLog",
321
374
  get: function get() {
322
375
  return "Screen Share Info : ".concat(JSON.stringify({
323
- isSharingScreen: this.screenSharingState,
376
+ isSharingScreen: this.localUserScreenSharingState,
324
377
  currentShareId: this.currentShareId,
325
378
  currentShareType: this.currentShareType,
326
379
  currentShareBounds: this.currentSelectionBounds
@@ -345,11 +398,48 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
345
398
  }
346
399
  return true;
347
400
  }
401
+ }, {
402
+ key: "allowAnnotationSelfWriteState",
403
+ get: function get() {
404
+ return this._annotationProvider.allowAnnotationSelfWrite;
405
+ }
406
+ }, {
407
+ key: "isShowToolbar",
408
+ get: function get() {
409
+ return this._annotationProvider.isShowToolbar;
410
+ }
411
+ }, {
412
+ key: "toggleIsShowToolbar",
413
+ value: function toggleIsShowToolbar() {
414
+ if (this.allowAnnotationSelfWriteState) {
415
+ this._annotationProvider.setIsShowToolbar(!this.isShowToolbar);
416
+ }
417
+ }
348
418
  }, {
349
419
  key: "setShareWithAudioState",
350
420
  value: function setShareWithAudioState(withAudio) {
351
421
  this._sharedScreenShareSharedDataSource.setShareWithAudio(withAudio);
352
422
  }
423
+ }, {
424
+ key: "zoomIn",
425
+ value: function zoomIn() {
426
+ this._screenShareProvider.zoomIn();
427
+ }
428
+ }, {
429
+ key: "zoomOut",
430
+ value: function zoomOut() {
431
+ this._screenShareProvider.zoomOut();
432
+ }
433
+ }, {
434
+ key: "fullContainer",
435
+ value: function fullContainer() {
436
+ this._screenShareProvider.fullContainer();
437
+ }
438
+ }, {
439
+ key: "setOriginScalc",
440
+ value: function setOriginScalc() {
441
+ this._screenShareProvider.setOriginScalc();
442
+ }
353
443
  }, {
354
444
  key: "hasLoopbackDevice",
355
445
  value: function () {
@@ -443,17 +533,48 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
443
533
  this._closeShareScreenComps();
444
534
  this._screenShareProvider.stopShareScreen();
445
535
  }
536
+ }, {
537
+ key: "handleStopShareByExitRoom",
538
+ value: function handleStopShareByExitRoom() {
539
+ this._closeShareScreenComps();
540
+ this._screenShareProvider.stopShareScreenByExitRoom();
541
+ }
542
+ }, {
543
+ key: "participantShareCanWeAnnotation",
544
+ value: function participantShareCanWeAnnotation() {
545
+ var streams = this._streamControl.getStreams();
546
+ var _notSupportPlatform = [_type.FcrPlatform.WEB_DESKTOP, _type.FcrPlatform.WEB_MOBILE, _type.FcrPlatform.IOS];
547
+ var streamLists = Object.keys(streams).map(function (key) {
548
+ return streams[key];
549
+ });
550
+ var screenShareStreams = streamLists.map(function (streamList) {
551
+ return streamList.find(function (streamInfo) {
552
+ return streamInfo.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN;
553
+ });
554
+ }).filter(Boolean);
555
+ if (screenShareStreams.length > 0) {
556
+ var screenShareOwnerInfo = screenShareStreams[0];
557
+ var _participantPlatform = screenShareOwnerInfo === null || screenShareOwnerInfo === void 0 ? void 0 : screenShareOwnerInfo.owner.platform;
558
+ this.logger.info("[Annotation] current share participant platform: ".concat(_participantPlatform));
559
+ if (typeof _participantPlatform !== 'undefined' && !_notSupportPlatform.includes(_participantPlatform)) {
560
+ return true;
561
+ } else {
562
+ return false;
563
+ }
564
+ }
565
+ return false;
566
+ }
446
567
  }, {
447
568
  key: "prepareShareScreen",
448
569
  value: function () {
449
- var _prepareShareScreen = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
570
+ var _prepareShareScreen = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
450
571
  var _this3 = this;
451
572
  var dialogId;
452
- return _regenerator["default"].wrap(function (_context2) {
453
- while (1) switch (_context2.prev = _context2.next) {
573
+ return _regenerator["default"].wrap(function (_context3) {
574
+ while (1) switch (_context3.prev = _context3.next) {
454
575
  case 0:
455
576
  if ((0, _screenCapturePermission.hasScreenCapturePermission)()) {
456
- _context2.next = 1;
577
+ _context3.next = 1;
457
578
  break;
458
579
  }
459
580
  dialogId = this._dialogProvider.openConfirmDialog({
@@ -464,21 +585,41 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
464
585
  onCancel: function onCancel() {
465
586
  _this3._dialogProvider.closeConfirm(dialogId);
466
587
  },
467
- onOk: function onOk() {
468
- window.runtime.checkMediaPermission('sharing');
469
- _this3._dialogProvider.closeConfirm(dialogId);
470
- },
588
+ 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) {
592
+ case 0:
593
+ // 检查权限
594
+ // corner case: 拒绝过权限后,将应用从系统中移除,打开设置后无法找到app,需要重新检查
595
+ // 所以无论是否拒绝过权限,直接checkMediaPermission一次
596
+ window.runtime.checkMediaPermission('sharing');
597
+ if ((0, _screenCapturePermission.hasDeniedScreenCapturePermission)()) {
598
+ window.runtime.openSystemPreferences('sharing');
599
+ }
600
+ _this3._dialogProvider.closeConfirm(dialogId);
601
+ case 1:
602
+ case "end":
603
+ return _context2.stop();
604
+ }
605
+ }, _callee2);
606
+ }));
607
+ function onOk() {
608
+ return _onOk.apply(this, arguments);
609
+ }
610
+ return onOk;
611
+ }(),
471
612
  closable: false
472
613
  });
473
- return _context2.abrupt("return");
614
+ return _context3.abrupt("return");
474
615
  case 1:
475
616
  this.supportEnumScreen && this._openShareScreenSelection();
476
- !(0, _env.isElectron)() && this.handleStartShare(this.currentSelectionId, _type.AgoraRtcScreenCaptureType.SCREEN, true, _shareAudio.AudioProcessingChannel.MONO, this.currentSelectionBounds);
617
+ !(0, _env.isElectron)() && this.handleStartShare(this.currentSelectionId, _type2.AgoraRtcScreenCaptureType.SCREEN, true, _shareAudio.AudioProcessingChannel.MONO, this.currentSelectionBounds);
477
618
  case 2:
478
619
  case "end":
479
- return _context2.stop();
620
+ return _context3.stop();
480
621
  }
481
- }, _callee2, this);
622
+ }, _callee3, this);
482
623
  }));
483
624
  function prepareShareScreen() {
484
625
  return _prepareShareScreen.apply(this, arguments);
@@ -488,37 +629,38 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
488
629
  }, {
489
630
  key: "handleStartShare",
490
631
  value: function () {
491
- var _handleStartShare = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(id, type, withAudio) {
632
+ var _handleStartShare = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(id, type, withAudio) {
492
633
  var audioProcessingChannel,
493
634
  bounds,
494
635
  electronBounds,
495
- hasValidShare,
496
- _args3 = arguments;
497
- return _regenerator["default"].wrap(function (_context3) {
498
- while (1) switch (_context3.prev = _context3.next) {
636
+ needToReplaceMyself,
637
+ validShareStart,
638
+ _args4 = arguments;
639
+ return _regenerator["default"].wrap(function (_context4) {
640
+ while (1) switch (_context4.prev = _context4.next) {
499
641
  case 0:
500
- audioProcessingChannel = _args3.length > 3 && _args3[3] !== undefined ? _args3[3] : _shareAudio.AudioProcessingChannel.MONO;
501
- bounds = _args3.length > 4 ? _args3[4] : undefined;
642
+ audioProcessingChannel = _args4.length > 3 && _args4[3] !== undefined ? _args4[3] : _shareAudio.AudioProcessingChannel.MONO;
643
+ bounds = _args4.length > 4 ? _args4[4] : undefined;
502
644
  if (!(this.connectionState !== _fcrCore.FcrConnectionState.CONNECTED || !this._isOnline)) {
503
- _context3.next = 1;
645
+ _context4.next = 1;
504
646
  break;
505
647
  }
506
648
  this._showToast((0, _i18n.transI18n)('fmt_screenshare_toast_network_error_unable_start_screen_share'), 'error');
507
- return _context3.abrupt("return", Promise.reject(false));
649
+ return _context4.abrupt("return", Promise.reject(false));
508
650
  case 1:
509
651
  if ((0, _env.isElectron)()) this._closeShareScreenSelection();
510
652
  if (!id.startsWith('whiteboard-')) {
511
- _context3.next = 3;
653
+ _context4.next = 3;
512
654
  break;
513
655
  }
514
656
  if (!(!this._securityStore.hasStartBoardPermission() && !this.isHost)) {
515
- _context3.next = 2;
657
+ _context4.next = 2;
516
658
  break;
517
659
  }
518
- return _context3.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibits'), 'error'));
660
+ return _context4.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_hostprohibits'), 'error'));
519
661
  case 2:
520
662
  this._eventProvider.sendEvent(_constant.FcrUIAction.OPEN_WHITEBOARD);
521
- return _context3.abrupt("return");
663
+ return _context4.abrupt("return");
522
664
  case 3:
523
665
  electronBounds = (0, _env.isElectron)() ? window.runtime.screen.getDisplayNearestPoint(bounds) : null;
524
666
  this._sharedScreenShareSharedDataSource.setCurrentSelectionBounds((electronBounds === null || electronBounds === void 0 ? void 0 : electronBounds.bounds) || bounds);
@@ -537,37 +679,42 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
537
679
  type: type,
538
680
  bounds: bounds
539
681
  });
540
- if (!(this.screenSharingState === _fcrCore.FcrMediaSourceState.OPEN)) {
541
- _context3.next = 4;
682
+ needToReplaceMyself = this.localUserScreenSharingState === _fcrCore.FcrMediaSourceState.OPEN;
683
+ this.logger.info("[screen-share][handleStartShare]: needToReplaceMyself - ".concat(needToReplaceMyself));
684
+ if (!needToReplaceMyself) {
685
+ _context4.next = 4;
542
686
  break;
543
687
  }
544
688
  this._handleReplaceScreen(id, type, withAudio, audioProcessingChannel, bounds);
545
- return _context3.abrupt("return");
689
+ return _context4.abrupt("return");
546
690
  case 4:
547
- _context3.next = 5;
691
+ _context4.next = 5;
548
692
  return this._validateShareStart(id, type);
549
693
  case 5:
550
- hasValidShare = _context3.sent;
551
- if (!(!this._hasScreenSharePermission() || !hasValidShare)) {
552
- _context3.next = 6;
694
+ validShareStart = _context4.sent;
695
+ this.logger.info("[screen-share][handleStartShare]: validShareStart: ".concat(validShareStart));
696
+ if (!(!this._hasScreenSharePermission() || !validShareStart)) {
697
+ _context4.next = 6;
553
698
  break;
554
699
  }
555
- return _context3.abrupt("return");
700
+ return _context4.abrupt("return");
556
701
  case 6:
557
702
  if (!this.shareLock) {
558
- _context3.next = 7;
703
+ _context4.next = 7;
559
704
  break;
560
705
  }
561
- return _context3.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error'));
706
+ return _context4.abrupt("return", this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_enablecollection'), 'error'));
562
707
  case 7:
563
708
  this._sharedScreenShareSharedDataSource.setCurrentShareIdInfos(id, type, bounds);
564
- this._screenShareProvider.startShareScreen(id, type, withAudio, false);
565
- this._initControlbar();
709
+ _context4.next = 8;
710
+ return this._screenShareProvider.startShareScreen(id, type, withAudio, false);
566
711
  case 8:
712
+ this._initControlbar();
713
+ case 9:
567
714
  case "end":
568
- return _context3.stop();
715
+ return _context4.stop();
569
716
  }
570
- }, _callee3, this);
717
+ }, _callee4, this);
571
718
  }));
572
719
  function handleStartShare(_x, _x2, _x3) {
573
720
  return _handleStartShare.apply(this, arguments);
@@ -582,23 +729,25 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
582
729
  }, {
583
730
  key: "_openShareScreenSelection",
584
731
  value: function () {
585
- var _openShareScreenSelection2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
732
+ var _openShareScreenSelection2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
586
733
  var _this4 = this;
587
734
  var windowList, displayList;
588
- return _regenerator["default"].wrap(function (_context4) {
589
- while (1) switch (_context4.prev = _context4.next) {
735
+ return _regenerator["default"].wrap(function (_context5) {
736
+ while (1) switch (_context5.prev = _context5.next) {
590
737
  case 0:
591
738
  this._shareSelectionDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.SHARE_SCREEN, 'screen-selection');
592
- _context4.next = 1;
739
+ _context5.next = 1;
593
740
  return this.appWindowList;
594
741
  case 1:
595
- windowList = _context4.sent.filter(function (item) {
742
+ windowList = _context5.sent.filter(function (item) {
596
743
  return !['AgoraHighLighter', 'Toast', 'Confirm', 'Annotation tool bar', 'Annotation', 'Video Window', 'Control Bar'].includes(item.title) || item.isCurrent;
597
744
  });
598
- _context4.next = 2;
745
+ _context5.next = 2;
599
746
  return this.displayList;
600
747
  case 2:
601
- displayList = _context4.sent;
748
+ displayList = _context5.sent;
749
+ this._windowList = windowList;
750
+ this._displayList = displayList;
602
751
  (0, _mobx.runInAction)(function () {
603
752
  _this4._sharedScreenShareSharedDataSource.setApplicationCaptureSources(windowList.filter(function (item) {
604
753
  return !item.isCurrent;
@@ -606,14 +755,14 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
606
755
  _this4._sharedScreenShareSharedDataSource.setScreenCaptureSources([{
607
756
  title: (0, _i18n.transI18n)('fmt_share_options_whiteboard'),
608
757
  id: "whiteboard-".concat(displayList[0].id),
609
- image: _type2.FcrIconType.FCR_WHITEBOARD2
758
+ image: _type3.FcrIconType.FCR_WHITEBOARD2
610
759
  }].concat((0, _toConsumableArray2["default"])(displayList)));
611
760
  });
612
761
  case 3:
613
762
  case "end":
614
- return _context4.stop();
763
+ return _context5.stop();
615
764
  }
616
- }, _callee4, this);
765
+ }, _callee5, this);
617
766
  }));
618
767
  function _openShareScreenSelection() {
619
768
  return _openShareScreenSelection2.apply(this, arguments);
@@ -672,17 +821,13 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
672
821
  var bounds = arguments.length > 4 ? arguments[4] : undefined;
673
822
  this._screenShareProvider.replaceScreenShare(id, type, withAudio, bounds);
674
823
  }
675
- }, {
676
- key: "_setShareLock",
677
- value: function _setShareLock(lock) {
678
- this._screenShareProvider.setShareLock(lock);
679
- }
680
824
  }, {
681
825
  key: "_closeShareScreenComps",
682
826
  value: function _closeShareScreenComps() {
683
827
  if ((0, _env.isElectron)()) {
684
828
  this._closeControlBar();
685
829
  this._closeVideoWindowDialog();
830
+ this._annotationProvider.closeAnnotationWindow();
686
831
  window.runtime.browserWindow.show();
687
832
  }
688
833
  }
@@ -712,46 +857,13 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
712
857
  }
713
858
  }, {
714
859
  key: "_onUiEvent",
715
- value: function () {
716
- var _onUiEvent2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(event, params) {
717
- var _t;
718
- return _regenerator["default"].wrap(function (_context5) {
719
- while (1) switch (_context5.prev = _context5.next) {
720
- case 0:
721
- _t = event;
722
- _context5.next = _t === _constant.FcrUIAction.START_SHARE_SCREEN ? 1 : _t === _constant.FcrUIAction.STOP_SCREEN_CAPTURE ? 2 : _t === _constant.FcrUIAction.ENGINE_RECONNECTED ? 3 : _t === _constant.FcrUIAction.STOP_SHARE_SCREEN ? 4 : _t === _constant.FcrUIAction.SET_SHARE_WITH_AUDIO ? 5 : _t === _constant.FcrUIAction.OPEN_TOP_VIDEO_WINDOW ? 6 : 7;
723
- break;
724
- case 1:
725
- this.prepareShareScreen();
726
- return _context5.abrupt("continue", 7);
727
- case 2:
728
- this.handleStopShare();
729
- return _context5.abrupt("continue", 7);
730
- case 3:
731
- if (this._removeScreenStreamFailed) {
732
- this._removeScreenStreamFailed = !this._screenShareProvider.removeScreenStream();
733
- }
734
- return _context5.abrupt("continue", 7);
735
- case 4:
736
- this.handleStopShare();
737
- return _context5.abrupt("continue", 7);
738
- case 5:
739
- this._screenShareProvider.toggleScreenshareWithAudio(params.withAudio);
740
- return _context5.abrupt("continue", 7);
741
- case 6:
742
- this._openVideoWindowDialog();
743
- return _context5.abrupt("continue", 7);
744
- case 7:
745
- case "end":
746
- return _context5.stop();
747
- }
748
- }, _callee5, this);
749
- }));
750
- function _onUiEvent(_x4, _x5) {
751
- return _onUiEvent2.apply(this, arguments);
860
+ value: function _onUiEvent(event, params) {
861
+ switch (event) {
862
+ case _constant.FcrUIAction.OPEN_TOP_VIDEO_WINDOW:
863
+ this._openVideoWindowDialog();
864
+ break;
752
865
  }
753
- return _onUiEvent;
754
- }()
866
+ }
755
867
  }, {
756
868
  key: "_showToast",
757
869
  value: function _showToast(message, type) {
@@ -764,104 +876,61 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
764
876
  }
765
877
  }, {
766
878
  key: "_validateWindow",
767
- value: function () {
768
- var _validateWindow2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(id) {
769
- var windows, window;
770
- return _regenerator["default"].wrap(function (_context6) {
771
- while (1) switch (_context6.prev = _context6.next) {
772
- case 0:
773
- _context6.next = 1;
774
- return this.appWindowList;
775
- case 1:
776
- windows = _context6.sent;
777
- window = windows.filter(function (item) {
778
- return item.title !== 'AgoraHighLighter' && item.title !== 'Development HTML';
779
- }).find(function (item) {
780
- return item.id === id;
781
- });
782
- if (window) {
783
- _context6.next = 2;
784
- break;
785
- }
786
- this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_faild_reselect'), 'error');
787
- return _context6.abrupt("return", false);
788
- case 2:
789
- return _context6.abrupt("return", true);
790
- case 3:
791
- case "end":
792
- return _context6.stop();
793
- }
794
- }, _callee6, this);
795
- }));
796
- function _validateWindow(_x6) {
797
- return _validateWindow2.apply(this, arguments);
879
+ value: function _validateWindow(id) {
880
+ var window = this._windowList.filter(function (item) {
881
+ return item.title !== 'AgoraHighLighter' && item.title !== 'Development HTML';
882
+ }).find(function (item) {
883
+ return item.id === id;
884
+ });
885
+ if (!window) {
886
+ this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_faild_reselect'), 'error');
887
+ return false;
798
888
  }
799
- return _validateWindow;
800
- }()
889
+ return true;
890
+ }
801
891
  }, {
802
892
  key: "_validateDisplay",
803
- value: function () {
804
- var _validateDisplay2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(id) {
805
- var displayList;
806
- return _regenerator["default"].wrap(function (_context7) {
807
- while (1) switch (_context7.prev = _context7.next) {
808
- case 0:
809
- _context7.next = 1;
810
- return this.displayList;
811
- case 1:
812
- displayList = _context7.sent.find(function (item) {
813
- return item.id === id;
814
- });
815
- if (displayList) {
816
- _context7.next = 2;
817
- break;
818
- }
819
- this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_faild_screenselect'), 'error');
820
- return _context7.abrupt("return", false);
821
- case 2:
822
- return _context7.abrupt("return", true);
823
- case 3:
824
- case "end":
825
- return _context7.stop();
826
- }
827
- }, _callee7, this);
828
- }));
829
- function _validateDisplay(_x7) {
830
- return _validateDisplay2.apply(this, arguments);
893
+ value: function _validateDisplay(id) {
894
+ var displayList = this._displayList.find(function (item) {
895
+ return item.id === id;
896
+ });
897
+ if (!displayList) {
898
+ this._showToast((0, _i18n.transI18n)('fmt_screenshare_tips_faild_screenselect'), 'error');
899
+ return false;
831
900
  }
832
- return _validateDisplay;
833
- }()
901
+ return true;
902
+ }
834
903
  }, {
835
904
  key: "_validateShareStart",
836
905
  value: function () {
837
- var _validateShareStart2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8(id, type) {
838
- return _regenerator["default"].wrap(function (_context8) {
839
- while (1) switch (_context8.prev = _context8.next) {
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) {
840
909
  case 0:
841
910
  if (!this.supportEnumScreen) {
842
- _context8.next = 2;
911
+ _context6.next = 2;
843
912
  break;
844
913
  }
845
- if (!(type === _type.AgoraRtcScreenCaptureType.WINDOW && !this._validateWindow(id))) {
846
- _context8.next = 1;
914
+ if (!(type === _type2.AgoraRtcScreenCaptureType.WINDOW && !this._validateWindow(id))) {
915
+ _context6.next = 1;
847
916
  break;
848
917
  }
849
- return _context8.abrupt("return", false);
918
+ return _context6.abrupt("return", false);
850
919
  case 1:
851
- if (!(type === _type.AgoraRtcScreenCaptureType.SCREEN && !this._validateDisplay(id))) {
852
- _context8.next = 2;
920
+ if (!(type === _type2.AgoraRtcScreenCaptureType.SCREEN && !this._validateDisplay(id))) {
921
+ _context6.next = 2;
853
922
  break;
854
923
  }
855
- return _context8.abrupt("return", false);
924
+ return _context6.abrupt("return", false);
856
925
  case 2:
857
- return _context8.abrupt("return", true);
926
+ return _context6.abrupt("return", true);
858
927
  case 3:
859
928
  case "end":
860
- return _context8.stop();
929
+ return _context6.stop();
861
930
  }
862
- }, _callee8, this);
931
+ }, _callee6, this);
863
932
  }));
864
- function _validateShareStart(_x8, _x9) {
933
+ function _validateShareStart(_x4, _x5) {
865
934
  return _validateShareStart2.apply(this, arguments);
866
935
  }
867
936
  return _validateShareStart;
@@ -869,10 +938,10 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
869
938
  }, {
870
939
  key: "_initControlbar",
871
940
  value: function () {
872
- var _initControlbar2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee9() {
941
+ var _initControlbar2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7() {
873
942
  var mainWindow;
874
- return _regenerator["default"].wrap(function (_context9) {
875
- while (1) switch (_context9.prev = _context9.next) {
943
+ return _regenerator["default"].wrap(function (_context7) {
944
+ while (1) switch (_context7.prev = _context7.next) {
876
945
  case 0:
877
946
  if ((0, _env.isElectron)()) {
878
947
  this._controlBarDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONTROL_BAR, _constant.FcrUIDialogKey.CONTROL_BAR);
@@ -885,9 +954,9 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
885
954
  }
886
955
  case 1:
887
956
  case "end":
888
- return _context9.stop();
957
+ return _context7.stop();
889
958
  }
890
- }, _callee9, this);
959
+ }, _callee7, this);
891
960
  }));
892
961
  function _initControlbar() {
893
962
  return _initControlbar2.apply(this, arguments);
@@ -904,15 +973,27 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
904
973
  value: function _hendleBrowserHide() {
905
974
  this.logger.info("[screen-share]: browser window hide, current sharing info: ".concat(this._screenShareInfoForLog));
906
975
  }
976
+ }, {
977
+ key: "_handleOnScreenShareSeize",
978
+ value: function _handleOnScreenShareSeize() {
979
+ // 统一在此处理我被抢占的后续逻辑
980
+ this._annotationProvider.closeAnnotationWindow();
981
+ }
907
982
  }, {
908
983
  key: "handleToggleScreenShareWithAudio",
909
984
  value: function handleToggleScreenShareWithAudio(withAudio) {
910
- this._screenShareProvider.toggleScreenshareWithAudio(withAudio);
985
+ this._sharedScreenShareSharedDataSource.setShareWithAudio(withAudio);
986
+ }
987
+ }, {
988
+ key: "toggleShareWithScenarioType",
989
+ value: function toggleShareWithScenarioType(isCurrentSmoothType) {
990
+ var targetType = isCurrentSmoothType ? _imports.FcrScreenScenarioType.SMOOTH : _imports.FcrScreenScenarioType.CLEARITY;
991
+ this._sharedScreenShareSharedDataSource.setScreenShareScenarioType(targetType);
911
992
  }
912
993
  }]);
913
994
  }();
914
995
  _ShareScreenStore = ShareScreenStore;
915
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ShareScreenStore, [[_mobx.observable, 1, "boardOwnerUser"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_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"], [_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, "handleToggleScreenShareWithAudio"], [_handleChooseScreenDecs, 16, "handleChooseScreen"]], []).e, 3);
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);
916
997
  _init_boardOwnerUser = _applyDecs$e[0];
917
998
  _init_handleChooseScreen = _applyDecs$e[1];
918
999
  _initProto = _applyDecs$e[2];