fcr-ui-scene 3.8.2 → 3.9.0-alpha

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 (872) hide show
  1. package/lib/base.js +2 -2
  2. package/lib/creator/index.js +25 -10
  3. package/lib/creator/provider-initializer.browser.js +28 -3
  4. package/lib/creator/provider-initializer.electron.js +28 -5
  5. package/lib/electron/app.js +26 -9
  6. package/lib/electron/asar-validation.js +5 -1
  7. package/lib/electron/env.d.ts +1 -0
  8. package/lib/electron/env.js +2 -2
  9. package/lib/electron/injections.d.ts +2 -1
  10. package/lib/electron/injections.js +23 -17
  11. package/lib/electron/ipc/type.d.ts +2 -1
  12. package/lib/electron/ipc/type.js +1 -0
  13. package/lib/electron/ipc-protocol.d.ts +2 -0
  14. package/lib/electron/main.js +6 -6
  15. package/lib/electron/plugins/main-window-display.d.ts +8 -0
  16. package/lib/electron/plugins/main-window-display.js +23 -0
  17. package/lib/electron/preload.js +2 -1
  18. package/lib/electron/process-manager/index.d.ts +1 -0
  19. package/lib/electron/process-manager/index.js +37 -0
  20. package/lib/electron/process-manager/state-manager.d.ts +10 -0
  21. package/lib/electron/process-manager/state-manager.js +46 -4
  22. package/lib/electron/sdk-helper.js +4 -0
  23. package/lib/electron/window-proxy/browser-window-proxy-factory.d.ts +7 -0
  24. package/lib/electron/window-proxy/browser-window-proxy-factory.js +46 -0
  25. package/lib/electron/window-proxy/{browser-window-proxy.d.ts → implementations/browser-window-proxy.d.ts} +3 -24
  26. package/lib/electron/window-proxy/implementations/browser-window-proxy.js +335 -0
  27. package/lib/electron/window-proxy/implementations/electron-event-broadcaster.d.ts +9 -0
  28. package/lib/electron/window-proxy/implementations/electron-event-broadcaster.js +32 -0
  29. package/lib/electron/window-proxy/implementations/electron-ipc-handler.d.ts +6 -0
  30. package/lib/electron/window-proxy/implementations/electron-ipc-handler.js +27 -0
  31. package/lib/electron/window-proxy/implementations/electron-logger.d.ts +7 -0
  32. package/lib/electron/window-proxy/implementations/electron-logger.js +34 -0
  33. package/lib/electron/window-proxy/{main-process-handler.d.ts → implementations/main-process-handler.d.ts} +16 -9
  34. package/lib/electron/window-proxy/{main-process-handler.js → implementations/main-process-handler.js} +111 -111
  35. package/lib/electron/window-proxy/interfaces.d.ts +52 -0
  36. package/lib/electron/window-proxy/interfaces.js +6 -0
  37. package/lib/fragments/annotation/cursor.css +77 -0
  38. package/lib/fragments/annotation/index.d.ts +2 -4
  39. package/lib/fragments/annotation/index.js +4 -82
  40. package/lib/fragments/annotation/libs.d.ts +15 -11
  41. package/lib/fragments/annotation/libs.js +75 -26
  42. package/lib/fragments/annotation/store.d.ts +23 -43
  43. package/lib/fragments/annotation/store.js +319 -709
  44. package/lib/fragments/annotation/style.css +5 -6
  45. package/lib/fragments/annotation/view.d.ts +1 -0
  46. package/lib/fragments/annotation/view.js +8 -48
  47. package/lib/fragments/base.js +1 -1
  48. package/lib/fragments/whiteboard/libs.d.ts +72 -0
  49. package/lib/fragments/whiteboard/libs.js +155 -0
  50. package/lib/fragments/whiteboard/store.d.ts +1 -4
  51. package/lib/fragments/whiteboard/store.js +64 -128
  52. package/lib/modules/action-bar/components/apps/index.js +2 -2
  53. package/lib/modules/action-bar/components/collapse/index.js +8 -3
  54. package/lib/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.d.ts +1 -1
  55. package/lib/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.js +14 -33
  56. package/lib/modules/action-bar/components/leave/index.js +1 -1
  57. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.css +6 -0
  58. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.d.ts +3 -7
  59. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +66 -42
  60. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.d.ts +2 -2
  61. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.js +11 -7
  62. package/lib/modules/action-bar/components/notification-bar/index.js +12 -70
  63. package/lib/modules/action-bar/components/screen-share/submenu.js +39 -2
  64. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +1 -0
  65. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +10 -7
  66. package/lib/modules/action-bar/index.css +1 -1
  67. package/lib/modules/action-bar/main-scene/index.d.ts +1 -1
  68. package/lib/modules/action-bar/main-scene/index.js +4 -4
  69. package/lib/modules/action-bar/main-scene/store.base.d.ts +16 -9
  70. package/lib/modules/action-bar/main-scene/store.base.js +165 -94
  71. package/lib/modules/action-bar/type.d.ts +1 -15
  72. package/lib/modules/action-bar/type.js +14 -0
  73. package/lib/modules/action-bar/waiting-scene/view.js +1 -1
  74. package/lib/modules/annotation/board-cursor.css +77 -0
  75. package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
  76. package/lib/modules/annotation/components/color-picker/components/color.js +37 -0
  77. package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
  78. package/lib/modules/annotation/components/color-picker/components/panel.js +108 -0
  79. package/lib/modules/annotation/components/color-picker/components/picker.d.ts +1 -0
  80. package/lib/modules/annotation/components/color-picker/components/picker.js +75 -0
  81. package/lib/modules/annotation/components/color-picker/index.d.ts +2 -0
  82. package/lib/modules/annotation/components/color-picker/index.js +45 -0
  83. package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
  84. package/lib/modules/annotation/components/eraser-picker.js +142 -0
  85. package/lib/modules/annotation/components/expansion/index.d.ts +1 -0
  86. package/lib/modules/annotation/components/expansion/index.js +100 -0
  87. package/lib/modules/annotation/components/extra-tool-picker.d.ts +1 -0
  88. package/lib/modules/annotation/components/extra-tool-picker.js +62 -0
  89. package/lib/modules/annotation/components/history.d.ts +2 -0
  90. package/lib/modules/annotation/components/history.js +76 -0
  91. package/lib/modules/annotation/components/icons/fold-icon.d.ts +2 -0
  92. package/lib/modules/annotation/components/icons/fold-icon.js +41 -0
  93. package/lib/modules/annotation/components/icons/move-icon.d.ts +1 -0
  94. package/lib/modules/annotation/components/icons/move-icon.js +66 -0
  95. package/lib/modules/annotation/components/item/index.d.ts +1 -0
  96. package/lib/modules/annotation/components/item/index.js +43 -0
  97. package/lib/modules/annotation/components/move-handle.d.ts +5 -0
  98. package/lib/modules/annotation/components/move-handle.js +134 -0
  99. package/lib/modules/annotation/components/pen-picker.d.ts +4 -0
  100. package/lib/modules/annotation/components/pen-picker.js +150 -0
  101. package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
  102. package/lib/modules/annotation/components/screen-capture-picker.js +84 -0
  103. package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
  104. package/lib/modules/annotation/components/shape-picker.js +201 -0
  105. package/lib/modules/annotation/hooks/index.d.ts +14 -0
  106. package/lib/modules/annotation/hooks/index.js +164 -0
  107. package/lib/modules/annotation/index.d.ts +31 -0
  108. package/lib/modules/annotation/index.js +152 -0
  109. package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.js +2 -2
  110. package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.js +22 -9
  111. package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.js +2 -3
  112. package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.js +22 -9
  113. package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.js +22 -9
  114. package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.js +1 -1
  115. package/lib/modules/annotation/standalone-toolbar/components/permission-tool/index.d.ts +1 -0
  116. package/lib/modules/annotation/standalone-toolbar/components/permission-tool/index.js +52 -0
  117. package/lib/modules/annotation/standalone-toolbar/store.d.ts +104 -0
  118. package/lib/modules/annotation/standalone-toolbar/store.js +618 -0
  119. package/{lib-es/fragments/annotation/toolbar → lib/modules/annotation/standalone-toolbar}/style.css +4 -1
  120. package/lib/modules/annotation/standalone-toolbar/view.js +193 -0
  121. package/lib/modules/annotation/store.base.d.ts +27 -0
  122. package/lib/modules/annotation/store.base.js +185 -0
  123. package/lib/modules/annotation/store.browser.d.ts +3 -0
  124. package/lib/modules/annotation/store.browser.js +25 -0
  125. package/lib/modules/annotation/store.electron.d.ts +8 -0
  126. package/lib/modules/annotation/store.electron.js +75 -0
  127. package/lib/modules/annotation/style.css +36 -0
  128. package/lib/modules/annotation/toolbar-store.d.ts +86 -0
  129. package/lib/modules/annotation/toolbar-store.js +473 -0
  130. package/lib/modules/annotation/type.d.ts +7 -0
  131. package/lib/modules/annotation/type.js +6 -0
  132. package/lib/modules/annotation/view.d.ts +5 -0
  133. package/lib/modules/annotation/view.js +107 -0
  134. package/lib/modules/chat/chat-room-store.d.ts +8 -1
  135. package/lib/modules/chat/chat-room-store.js +152 -72
  136. package/lib/modules/chat/components/message-list/index.js +123 -93
  137. package/lib/modules/chat/components/message-list/message-item/index.js +89 -67
  138. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +6 -8
  139. package/lib/modules/chat/index.css +1 -9
  140. package/lib/modules/chat/store.js +7 -5
  141. package/lib/modules/chat/view.js +4 -9
  142. package/lib/modules/components/annotation-menu/index.d.ts +5 -3
  143. package/lib/modules/components/annotation-menu/index.js +29 -34
  144. package/lib/modules/components/apps/index.css +3 -2
  145. package/lib/modules/components/caption-menu/translation-setting-options.js +2 -2
  146. package/lib/modules/components/confirm-wrapper/index.css +48 -0
  147. package/lib/modules/components/confirm-wrapper/index.d.ts +25 -0
  148. package/lib/modules/components/confirm-wrapper/index.js +87 -0
  149. package/lib/modules/components/control-bar/index.d.ts +40 -8
  150. package/lib/modules/components/control-bar/index.js +350 -200
  151. package/lib/modules/components/device-control/components/audio-menu/index.js +3 -2
  152. package/lib/modules/components/device-control/components/video-menu/index.js +5 -3
  153. package/lib/modules/components/device-control/store.base.d.ts +5 -0
  154. package/lib/modules/components/device-control/store.base.js +17 -1
  155. package/lib/modules/components/leave-meeting/index.css +21 -0
  156. package/lib/modules/components/leave-meeting/index.d.ts +0 -2
  157. package/lib/modules/components/leave-meeting/index.js +63 -103
  158. package/lib/modules/components/leave-meeting/portal.d.ts +0 -1
  159. package/lib/modules/components/leave-meeting/portal.js +4 -6
  160. package/lib/modules/components/leave-meeting/store.base.d.ts +3 -4
  161. package/lib/modules/components/leave-meeting/store.base.js +49 -55
  162. package/lib/modules/components/leave-meeting/style.css +0 -1
  163. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -1
  164. package/lib/modules/components/member-window/components/member-actions/provider.js +1 -1
  165. package/lib/modules/components/member-window/index.d.ts +1 -1
  166. package/lib/modules/components/member-window/index.js +3 -3
  167. package/lib/modules/components/security-menu/store.js +7 -9
  168. package/lib/modules/components/tab-frame/index.css +2 -2
  169. package/lib/modules/connection-gateway/components/phone/index.js +1 -1
  170. package/lib/modules/connection-gateway/store.js +6 -8
  171. package/lib/modules/control-bar/components/annotation-button/index.d.ts +11 -0
  172. package/lib/modules/control-bar/components/annotation-button/index.js +51 -0
  173. package/lib/modules/control-bar/components/apps-popover/index.css +3 -0
  174. package/lib/modules/control-bar/components/apps-popover/index.d.ts +1 -0
  175. package/lib/modules/control-bar/components/apps-popover/index.js +2 -0
  176. package/lib/modules/control-bar/components/carmera/index.js +1 -1
  177. package/lib/modules/control-bar/components/meeting-details/index.js +14 -20
  178. package/lib/modules/control-bar/components/microphone/index.js +2 -2
  179. package/lib/modules/control-bar/hooks.js +1 -1
  180. package/lib/modules/control-bar/index.css +11 -0
  181. package/lib/modules/control-bar/store.d.ts +20 -5
  182. package/lib/modules/control-bar/store.js +190 -59
  183. package/lib/modules/control-bar/view.js +72 -39
  184. package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -9
  185. package/lib/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
  186. package/lib/modules/device-pretest/index.js +1 -1
  187. package/lib/modules/device-pretest/settings/beauty.js +1 -1
  188. package/lib/modules/device-pretest/settings/video-effect.d.ts +2 -0
  189. package/lib/modules/device-pretest/settings/video-effect.js +27 -12
  190. package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
  191. package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
  192. package/lib/modules/dialog/components/confirm/index.css +0 -18
  193. package/lib/modules/dialog/components/confirm/index.d.ts +1 -0
  194. package/lib/modules/dialog/components/confirm/index.js +2 -2
  195. package/lib/modules/dialog/components/dialog-container/index.css +3 -4
  196. package/lib/modules/dialog/components/dialog-container/index.d.ts +6 -21
  197. package/lib/modules/dialog/components/dialog-container/index.js +80 -132
  198. package/lib/modules/dialog/components/normal-window/index.d.ts +8 -20
  199. package/lib/modules/dialog/components/normal-window/index.js +14 -34
  200. package/lib/modules/dialog/dialogConfig/browser.d.ts +12 -0
  201. package/lib/modules/dialog/dialogConfig/browser.js +11 -0
  202. package/lib/modules/dialog/dialogConfig/electron.d.ts +4 -0
  203. package/lib/modules/dialog/dialogConfig/electron.js +15 -0
  204. package/lib/modules/dialog/dialogs/annotation-mask/index.d.ts +8 -0
  205. package/lib/modules/dialog/dialogs/annotation-mask/index.js +41 -0
  206. package/lib/modules/dialog/dialogs/annotation-tool/index.d.ts +5 -4
  207. package/lib/modules/dialog/dialogs/annotation-tool/index.js +19 -35
  208. package/lib/modules/dialog/dialogs/caption/index.d.ts +4 -16
  209. package/lib/modules/dialog/dialogs/caption/index.js +25 -19
  210. package/lib/modules/dialog/dialogs/chat/index.d.ts +4 -18
  211. package/lib/modules/dialog/dialogs/chat/index.js +33 -54
  212. package/lib/modules/dialog/dialogs/confirm/index.css +2 -13
  213. package/lib/modules/dialog/dialogs/confirm/index.d.ts +2 -17
  214. package/lib/modules/dialog/dialogs/confirm/index.js +5 -7
  215. package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +5 -16
  216. package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.js +4 -24
  217. package/lib/modules/dialog/dialogs/connection-gateway/index.d.ts +4 -20
  218. package/lib/modules/dialog/dialogs/connection-gateway/index.js +6 -29
  219. package/lib/modules/dialog/dialogs/control-bar/index.d.ts +2 -16
  220. package/lib/modules/dialog/dialogs/control-bar/index.js +4 -6
  221. package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.d.ts +4 -14
  222. package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.js +3 -21
  223. package/lib/modules/dialog/dialogs/device-setting/index.d.ts +4 -13
  224. package/lib/modules/dialog/dialogs/device-setting/index.js +4 -20
  225. package/lib/modules/dialog/dialogs/end-meeting-notice/index.d.ts +8 -0
  226. package/lib/modules/dialog/dialogs/{end-meeting → end-meeting-notice}/index.js +4 -14
  227. package/lib/modules/dialog/dialogs/interpreter/index.d.ts +4 -14
  228. package/lib/modules/dialog/dialogs/interpreter/index.js +33 -24
  229. package/lib/modules/dialog/dialogs/invite/index.d.ts +4 -18
  230. package/lib/modules/dialog/dialogs/invite/index.js +25 -24
  231. package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +4 -8
  232. package/lib/modules/dialog/dialogs/live-streaming/index.js +7 -11
  233. package/lib/modules/dialog/dialogs/mute-all/index.d.ts +4 -15
  234. package/lib/modules/dialog/dialogs/mute-all/index.js +4 -20
  235. package/lib/modules/dialog/dialogs/participant/index.d.ts +4 -18
  236. package/lib/modules/dialog/dialogs/participant/index.js +31 -31
  237. package/lib/modules/dialog/dialogs/rename/index.d.ts +2 -14
  238. package/lib/modules/dialog/dialogs/rename/index.js +2 -13
  239. package/lib/modules/dialog/dialogs/sample-dialog/index.d.ts +2 -13
  240. package/lib/modules/dialog/dialogs/sample-dialog/index.js +2 -2
  241. package/lib/modules/dialog/dialogs/share-screen-selection/index.d.ts +2 -14
  242. package/lib/modules/dialog/dialogs/share-screen-selection/index.js +3 -12
  243. package/lib/modules/dialog/dialogs/sub-window/index.d.ts +2 -17
  244. package/lib/modules/dialog/dialogs/sub-window/index.js +4 -3
  245. package/lib/modules/dialog/dialogs/subtitles-history/index.d.ts +4 -19
  246. package/lib/modules/dialog/dialogs/subtitles-history/index.js +32 -25
  247. package/lib/modules/dialog/dialogs/system-preference/index.css +3 -2
  248. package/lib/modules/dialog/dialogs/system-preference/index.d.ts +5 -28
  249. package/lib/modules/dialog/dialogs/system-preference/index.js +13 -13
  250. package/lib/modules/dialog/dialogs/toast/index.d.ts +2 -16
  251. package/lib/modules/dialog/dialogs/toast/index.js +5 -5
  252. package/lib/modules/dialog/dialogs/video-window/index.d.ts +2 -18
  253. package/lib/modules/dialog/dialogs/video-window/index.js +4 -4
  254. package/lib/modules/dialog/dialogs/whiteboard/index.d.ts +2 -18
  255. package/lib/modules/dialog/dialogs/whiteboard/index.js +2 -2
  256. package/lib/modules/dialog/dialogs/widget/index.d.ts +4 -14
  257. package/lib/modules/dialog/dialogs/widget/index.js +22 -26
  258. package/lib/modules/dialog/index.css +4 -11
  259. package/lib/modules/dialog/level-config.d.ts +1 -0
  260. package/lib/modules/dialog/level-config.js +1 -0
  261. package/lib/modules/dialog/store.base.js +0 -3
  262. package/lib/modules/dialog/store.electron.d.ts +1 -0
  263. package/lib/modules/dialog/store.electron.js +16 -9
  264. package/lib/modules/dialog/type.d.ts +3 -1
  265. package/lib/modules/dialog/view.js +25 -1
  266. package/lib/modules/dialog/web-dialog-wrapper.d.ts +3 -0
  267. package/lib/modules/dialog/web-dialog-wrapper.js +154 -0
  268. package/lib/modules/event-toast/index.css +5 -2
  269. package/lib/modules/event-toast/store.browser.js +1 -1
  270. package/lib/modules/event-toast/store.electron.js +1 -1
  271. package/lib/modules/interpreter/index.css +1 -2
  272. package/lib/modules/interpreter/store.js +22 -19
  273. package/lib/modules/interpreter/utils.js +1 -1
  274. package/lib/modules/invite/components/pstn-invite.js +5 -5
  275. package/lib/modules/invite/store.d.ts +2 -2
  276. package/lib/modules/invite/store.js +1 -1
  277. package/lib/modules/layout/components/Aside.js +1 -1
  278. package/lib/modules/layout/components/Carousel.js +1 -1
  279. package/lib/modules/layout/components/CommonVideoRenderer.js +14 -4
  280. package/lib/modules/layout/components/Gallery.js +1 -1
  281. package/lib/modules/layout/index.css +0 -31
  282. package/lib/modules/layout/store.base.d.ts +9 -15
  283. package/lib/modules/layout/store.base.js +69 -198
  284. package/lib/modules/layout/store.browser.d.ts +2 -1
  285. package/lib/modules/layout/store.browser.js +62 -2
  286. package/lib/modules/layout/store.electron.d.ts +1 -3
  287. package/lib/modules/layout/store.electron.js +10 -28
  288. package/lib/modules/layout/view.js +1 -3
  289. package/lib/modules/live-streaming/index.dev.js +1 -1
  290. package/lib/modules/live-streaming/store.js +3 -4
  291. package/lib/modules/participant/components/confirm-input/index.css +15 -0
  292. package/lib/modules/participant/components/confirm-input/index.js +10 -13
  293. package/lib/modules/participant/components/mute-all/index.css +34 -0
  294. package/lib/modules/participant/components/mute-all/index.d.ts +1 -0
  295. package/lib/modules/participant/components/mute-all/index.js +21 -15
  296. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +16 -2
  297. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +2 -1
  298. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +3 -1
  299. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +3 -2
  300. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +1 -1
  301. package/lib/modules/participant/index.css +0 -16
  302. package/lib/modules/participant/store.base.d.ts +18 -5
  303. package/lib/modules/participant/store.base.js +219 -127
  304. package/lib/modules/participant/store.browser.d.ts +2 -1
  305. package/lib/modules/participant/store.browser.js +2 -2
  306. package/lib/modules/participant/store.electron.d.ts +2 -1
  307. package/lib/modules/participant/store.electron.js +2 -2
  308. package/lib/modules/pc-audio-connect/waiting-scene/index.js +6 -1
  309. package/lib/modules/phone-audio-connect/store.js +1 -1
  310. package/lib/modules/phone-audio-connect/view.js +1 -1
  311. package/lib/modules/secondary-window/index.d.ts +14 -7
  312. package/lib/modules/secondary-window/index.js +51 -25
  313. package/lib/modules/secondary-window/store.d.ts +4 -2
  314. package/lib/modules/secondary-window/store.js +39 -8
  315. package/lib/modules/secondary-window/type.d.ts +16 -25
  316. package/lib/modules/secondary-window/type.js +1 -0
  317. package/lib/modules/secondary-window/view.js +59 -58
  318. package/lib/modules/setting/audio-settings/audio-settings.js +2 -2
  319. package/lib/modules/setting/audio-whiteList/audio-device-adaptation.js +2 -2
  320. package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.js +1 -1
  321. package/lib/modules/setting/caption_and_transcribing/index.js +1 -1
  322. package/lib/modules/setting/general-settings/general-settings.js +4 -4
  323. package/lib/modules/setting/index.css +2 -3
  324. package/lib/modules/setting/index.d.ts +1 -2
  325. package/lib/modules/setting/index.js +3 -10
  326. package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
  327. package/lib/modules/setting/state/index.js +1 -1
  328. package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
  329. package/lib/modules/setting/store.base.d.ts +11 -9
  330. package/lib/modules/setting/store.base.js +103 -88
  331. package/lib/modules/setting/store.electron.d.ts +2 -1
  332. package/lib/modules/setting/store.electron.js +19 -1
  333. package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
  334. package/lib/modules/setting/type.d.ts +1 -9
  335. package/lib/modules/setting/video-settings/video-settings-basic.js +1 -1
  336. package/lib/modules/setting/video-settings/video-settings.js +11 -7
  337. package/lib/modules/setting/view.js +1 -1
  338. package/lib/modules/share-screen/components/control-bar/index.js +0 -86
  339. package/lib/modules/share-screen/components/selection/index.js +3 -1
  340. package/lib/modules/share-screen/store.base.d.ts +1 -1
  341. package/lib/modules/share-screen/store.base.js +10 -14
  342. package/lib/modules/share-screen/store.electron.d.ts +4 -0
  343. package/lib/modules/share-screen/store.electron.js +108 -34
  344. package/lib/modules/state-bar/layout-config.js +1 -1
  345. package/lib/modules/state-bar/live-streaming-state.js +6 -7
  346. package/lib/modules/state-bar/main-scene/store.browser.js +1 -1
  347. package/lib/modules/state-bar/main-scene/store.electron.js +1 -1
  348. package/lib/modules/state-bar/meeting-details.js +14 -21
  349. package/lib/modules/state-bar/meeting-network-state.css +5 -1
  350. package/lib/modules/state-bar/meeting-network-state.js +7 -1
  351. package/lib/modules/state-bar/meeting-time.js +1 -1
  352. package/lib/modules/state-bar/network-quality.js +1 -1
  353. package/lib/modules/state-bar/recording.js +1 -1
  354. package/lib/modules/state-bar/store.base.d.ts +3 -3
  355. package/lib/modules/state-bar/store.base.js +15 -24
  356. package/lib/modules/state-bar/view.js +6 -7
  357. package/lib/modules/subtitles-history/components/list-item.js +6 -1
  358. package/lib/modules/subtitles-history/index.css +2 -5
  359. package/lib/modules/subtitles-history/store.base.js +24 -12
  360. package/lib/modules/subtitles-history/store.electron.js +8 -2
  361. package/lib/modules/subtitles-history/view.js +7 -5
  362. package/lib/modules/toast-manager/index.d.ts +8 -0
  363. package/lib/modules/toast-manager/index.js +58 -0
  364. package/lib/modules/toast-manager/store.d.ts +28 -0
  365. package/lib/modules/toast-manager/store.js +391 -0
  366. package/lib/modules/toast-manager/toast-params.d.ts +7 -0
  367. package/lib/modules/toast-manager/toast-params.js +89 -0
  368. package/lib/modules/toast-manager/type.d.ts +112 -0
  369. package/lib/modules/toast-manager/type.js +337 -0
  370. package/lib/modules/video-window/store.d.ts +2 -2
  371. package/lib/modules/video-window/store.js +28 -50
  372. package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
  373. package/lib/modules/whiteboard/components/control-bar/store.js +0 -6
  374. package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
  375. package/lib/modules/whiteboard/components/toolbar/store.js +25 -14
  376. package/lib/modules/whiteboard/store.js +10 -9
  377. package/lib/modules/whiteboard/view.js +0 -1
  378. package/lib/modules/widget/store.electron.d.ts +0 -4
  379. package/lib/modules/widget/store.electron.js +3 -38
  380. package/lib/modules/widget/view.js +1 -1
  381. package/lib/modules/widget/web-widget.d.ts +1 -1
  382. package/lib/object-manager.d.ts +2 -0
  383. package/lib/object-manager.js +2 -0
  384. package/lib/plugins/multi-lang-plugin.js +1 -1
  385. package/lib/providers/ability-provider.d.ts +33 -1
  386. package/lib/providers/ability-provider.js +29 -1
  387. package/lib/providers/annotation/provider.base.d.ts +39 -0
  388. package/lib/providers/annotation/provider.base.js +270 -0
  389. package/lib/providers/annotation/provider.browser.d.ts +3 -0
  390. package/lib/providers/annotation/provider.browser.js +25 -0
  391. package/lib/providers/annotation/provider.electron.d.ts +34 -0
  392. package/lib/providers/annotation/provider.electron.js +231 -0
  393. package/lib/providers/annotation/standalone-toolbar-control/index.d.ts +26 -0
  394. package/lib/{fragments/annotation/toolbar/store.js → providers/annotation/standalone-toolbar-control/index.js} +103 -175
  395. package/lib/providers/annotation/toolbar-control/index.d.ts +31 -0
  396. package/lib/providers/annotation/toolbar-control/index.js +205 -0
  397. package/lib/providers/annotation/type.d.ts +64 -21
  398. package/lib/providers/app-list-provider.d.ts +4 -1
  399. package/lib/providers/app-list-provider.js +13 -7
  400. package/lib/providers/board-share/bar-control/base.d.ts +6 -8
  401. package/lib/providers/board-share/bar-control/base.js +7 -36
  402. package/lib/providers/board-share/bar-control/browser.d.ts +4 -1
  403. package/lib/providers/board-share/bar-control/browser.js +76 -3
  404. package/lib/providers/board-share/bar-control/electron.d.ts +4 -6
  405. package/lib/providers/board-share/bar-control/electron.js +36 -12
  406. package/lib/providers/board-share/provider.base.d.ts +11 -8
  407. package/lib/providers/board-share/provider.base.js +72 -13
  408. package/lib/providers/board-share/type.d.ts +11 -12
  409. package/lib/providers/device-privilege-provider.d.ts +5 -4
  410. package/lib/providers/device-privilege-provider.js +85 -62
  411. package/lib/providers/device-provider.d.ts +32 -1
  412. package/lib/providers/device-provider.js +412 -161
  413. package/lib/providers/device-stream-provider.d.ts +3 -3
  414. package/lib/providers/device-stream-provider.js +37 -111
  415. package/lib/providers/dialog/provider.electron.js +6 -1
  416. package/lib/providers/interpreter-provider.js +5 -5
  417. package/lib/providers/message/provider.d.ts +3 -1
  418. package/lib/providers/message/provider.js +12 -0
  419. package/lib/providers/message/type.d.ts +15 -0
  420. package/lib/providers/mouse-detect/provider.js +2 -2
  421. package/lib/providers/mouse-detect/struct.d.ts +2 -1
  422. package/lib/providers/mouse-detect/struct.js +1 -0
  423. package/lib/providers/multi-display-provider.d.ts +1 -0
  424. package/lib/providers/multi-display-provider.js +13 -0
  425. package/lib/providers/phone-audio-provider.d.ts +15 -0
  426. package/lib/providers/phone-audio-provider.js +17 -10
  427. package/lib/providers/privilege-provider.d.ts +15 -15
  428. package/lib/providers/room-provider/room-provider.d.ts +23 -11
  429. package/lib/providers/room-provider/room-provider.js +93 -199
  430. package/lib/providers/room-provider/waiting-room-control-manager.d.ts +2 -2
  431. package/lib/providers/room-provider/waiting-room-control-manager.js +2 -2
  432. package/lib/providers/screen-share/provider.base.d.ts +1 -0
  433. package/lib/providers/screen-share/provider.base.js +6 -1
  434. package/lib/providers/screen-share/provider.browser.js +13 -9
  435. package/lib/providers/screen-share/provider.electron.d.ts +1 -1
  436. package/lib/providers/screen-share/provider.electron.js +54 -44
  437. package/lib/providers/screen-share/strategy/electron.js +18 -3
  438. package/lib/providers/screen-share/stream-state-sync.d.ts +1 -1
  439. package/lib/providers/screen-share/stream-state-sync.js +4 -4
  440. package/lib/providers/screen-share/type.d.ts +9 -1
  441. package/lib/providers/session-provider.d.ts +1 -1
  442. package/lib/providers/stt-provider/stt-provider.d.ts +1 -1
  443. package/lib/providers/stt-provider/stt-provider.js +40 -77
  444. package/lib/providers/stt-provider/type.d.ts +5 -3
  445. package/lib/providers/stt-provider/type.js +4 -2
  446. package/lib/providers/user-audio-volume-provider.d.ts +47 -0
  447. package/lib/providers/user-audio-volume-provider.js +319 -0
  448. package/lib/providers/window/provider.d.ts +1 -1
  449. package/lib/providers/window/provider.js +23 -12
  450. package/lib/providers/window/renderer-window.d.ts +8 -2
  451. package/lib/providers/window/renderer-window.js +118 -33
  452. package/lib/providers/window/type.d.ts +1 -3
  453. package/lib/runtime.d.ts +12 -13
  454. package/lib/scenes/main-scene.js +98 -69
  455. package/lib/scenes/waiting-scene.js +4 -4
  456. package/lib/shared-data/member-data.d.ts +0 -9
  457. package/lib/shared-data/member-data.js +35 -61
  458. package/lib/shared-data/pin-data.d.ts +3 -2
  459. package/lib/shared-data/pin-data.js +8 -11
  460. package/lib/shared-data/setting.js +1 -1
  461. package/lib/shared-data/user-audio-volume.d.ts +19 -0
  462. package/lib/shared-data/user-audio-volume.js +104 -0
  463. package/lib/shared-data/video-window.js +49 -60
  464. package/lib/translations/enUS.d.ts +10 -0
  465. package/lib/translations/enUS.js +13 -3
  466. package/lib/translations/zhCN.d.ts +10 -0
  467. package/lib/translations/zhCN.js +12 -2
  468. package/lib/type.d.ts +27 -19
  469. package/lib/type.js +20 -2
  470. package/lib/ui-manager.js +1 -1
  471. package/lib/ui-scene-switch.d.ts +1 -0
  472. package/lib/ui-scene-switch.js +197 -87
  473. package/lib/utilities/browser-api.d.ts +0 -1
  474. package/lib/utilities/browser-api.js +0 -42
  475. package/lib/utilities/constant.d.ts +4 -4
  476. package/lib/utilities/constant.js +4 -5
  477. package/lib/utilities/default-config.d.ts +2 -8
  478. package/lib/utilities/default-config.js +8 -48
  479. package/lib/utilities/dialog-utils.js +1 -2
  480. package/lib/utilities/focus-helper.js +2 -2
  481. package/lib/utilities/logger.d.ts +1 -2
  482. package/lib/utilities/logger.js +12 -40
  483. package/lib/utilities/package-info.d.ts +1 -2
  484. package/lib/utilities/package-info.js +5 -6
  485. package/lib/utilities/renderer.d.ts +1 -0
  486. package/lib/utilities/renderer.js +7 -1
  487. package/lib/utilities/shared-storage.d.ts +2 -3
  488. package/lib/utilities/shared-storage.js +15 -11
  489. package/lib/utilities/tools.d.ts +1 -44
  490. package/lib/utilities/tools.js +28 -193
  491. package/lib/utilities/validate-params.js +3 -5
  492. package/lib-es/base.js +2 -2
  493. package/lib-es/creator/index.js +28 -12
  494. package/lib-es/creator/provider-initializer.browser.js +28 -3
  495. package/lib-es/creator/provider-initializer.electron.js +28 -5
  496. package/lib-es/electron/app.js +24 -7
  497. package/lib-es/electron/asar-validation.js +5 -1
  498. package/lib-es/electron/env.js +1 -1
  499. package/lib-es/electron/injections.js +22 -17
  500. package/lib-es/electron/ipc/type.js +1 -0
  501. package/lib-es/electron/main.js +3 -2
  502. package/lib-es/electron/plugins/main-window-display.js +16 -0
  503. package/lib-es/electron/preload.js +3 -2
  504. package/lib-es/electron/process-manager/index.js +37 -0
  505. package/lib-es/electron/process-manager/state-manager.js +46 -4
  506. package/lib-es/electron/sdk-helper.js +4 -0
  507. package/lib-es/electron/window-proxy/browser-window-proxy-factory.js +38 -0
  508. package/lib-es/electron/window-proxy/implementations/browser-window-proxy.js +328 -0
  509. package/lib-es/electron/window-proxy/implementations/electron-event-broadcaster.js +24 -0
  510. package/lib-es/electron/window-proxy/implementations/electron-ipc-handler.js +19 -0
  511. package/lib-es/electron/window-proxy/implementations/electron-logger.js +26 -0
  512. package/lib-es/electron/window-proxy/{main-process-handler.js → implementations/main-process-handler.js} +110 -113
  513. package/lib-es/electron/window-proxy/interfaces.js +1 -0
  514. package/lib-es/fragments/annotation/cursor.css +77 -0
  515. package/lib-es/fragments/annotation/index.js +5 -83
  516. package/lib-es/fragments/annotation/libs.js +63 -14
  517. package/lib-es/fragments/annotation/store.js +321 -711
  518. package/lib-es/fragments/annotation/style.css +5 -6
  519. package/lib-es/fragments/annotation/view.js +9 -48
  520. package/lib-es/fragments/base.js +1 -1
  521. package/lib-es/fragments/whiteboard/libs.js +147 -0
  522. package/lib-es/fragments/whiteboard/store.js +65 -129
  523. package/lib-es/modules/action-bar/components/apps/index.js +2 -2
  524. package/lib-es/modules/action-bar/components/collapse/index.js +8 -3
  525. package/lib-es/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.js +14 -33
  526. package/lib-es/modules/action-bar/components/leave/index.js +1 -1
  527. package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.css +6 -0
  528. package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.js +66 -42
  529. package/lib-es/modules/action-bar/components/notification-bar/components/virtual-image/index.js +11 -7
  530. package/lib-es/modules/action-bar/components/notification-bar/index.js +13 -71
  531. package/lib-es/modules/action-bar/components/screen-share/submenu.js +39 -2
  532. package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +1 -0
  533. package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +11 -8
  534. package/lib-es/modules/action-bar/index.css +1 -1
  535. package/lib-es/modules/action-bar/main-scene/index.js +4 -4
  536. package/lib-es/modules/action-bar/main-scene/store.base.js +165 -94
  537. package/lib-es/modules/action-bar/type.js +15 -0
  538. package/lib-es/modules/action-bar/waiting-scene/view.js +1 -1
  539. package/lib-es/modules/annotation/board-cursor.css +77 -0
  540. package/lib-es/modules/annotation/components/color-picker/components/color.js +29 -0
  541. package/lib-es/modules/annotation/components/color-picker/components/panel.js +100 -0
  542. package/lib-es/modules/annotation/components/color-picker/components/picker.js +67 -0
  543. package/lib-es/modules/annotation/components/color-picker/index.js +38 -0
  544. package/lib-es/modules/annotation/components/eraser-picker.js +134 -0
  545. package/lib-es/modules/annotation/components/expansion/index.js +85 -0
  546. package/lib-es/modules/annotation/components/extra-tool-picker.js +46 -0
  547. package/lib-es/modules/annotation/components/history.js +68 -0
  548. package/lib-es/modules/annotation/components/icons/fold-icon.js +33 -0
  549. package/lib-es/modules/annotation/components/icons/move-icon.js +59 -0
  550. package/lib-es/modules/annotation/components/item/index.js +35 -0
  551. package/lib-es/modules/annotation/components/move-handle.js +127 -0
  552. package/lib-es/modules/annotation/components/pen-picker.js +142 -0
  553. package/lib-es/modules/annotation/components/screen-capture-picker.js +77 -0
  554. package/lib-es/modules/annotation/components/shape-picker.js +193 -0
  555. package/lib-es/modules/annotation/hooks/index.js +156 -0
  556. package/lib-es/modules/annotation/index.js +144 -0
  557. package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.js +2 -2
  558. package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.js +23 -10
  559. package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.js +2 -3
  560. package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.js +23 -10
  561. package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.js +23 -10
  562. package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.js +2 -2
  563. package/lib-es/modules/annotation/standalone-toolbar/components/permission-tool/index.js +44 -0
  564. package/lib-es/modules/annotation/standalone-toolbar/store.js +611 -0
  565. package/{lib/fragments/annotation/toolbar → lib-es/modules/annotation/standalone-toolbar}/style.css +4 -1
  566. package/lib-es/modules/annotation/standalone-toolbar/view.js +186 -0
  567. package/lib-es/modules/annotation/store.base.js +178 -0
  568. package/lib-es/modules/annotation/store.browser.js +17 -0
  569. package/lib-es/modules/annotation/store.electron.js +67 -0
  570. package/lib-es/modules/annotation/style.css +36 -0
  571. package/lib-es/modules/annotation/toolbar-store.js +466 -0
  572. package/lib-es/modules/annotation/type.js +1 -0
  573. package/lib-es/modules/annotation/view.js +99 -0
  574. package/lib-es/modules/chat/chat-room-store.js +152 -72
  575. package/lib-es/modules/chat/components/message-list/index.js +123 -89
  576. package/lib-es/modules/chat/components/message-list/message-item/index.js +89 -67
  577. package/lib-es/modules/chat/components/message-list/scroll-bottom-button/index.js +6 -8
  578. package/lib-es/modules/chat/index.css +1 -9
  579. package/lib-es/modules/chat/store.js +7 -5
  580. package/lib-es/modules/chat/view.js +2 -7
  581. package/lib-es/modules/components/annotation-menu/index.js +28 -33
  582. package/lib-es/modules/components/apps/index.css +3 -2
  583. package/lib-es/modules/components/caption-menu/translation-setting-options.js +2 -2
  584. package/lib-es/modules/components/confirm-wrapper/index.css +48 -0
  585. package/lib-es/modules/components/confirm-wrapper/index.js +80 -0
  586. package/lib-es/modules/components/control-bar/index.js +349 -199
  587. package/lib-es/modules/components/device-control/components/audio-menu/index.js +3 -2
  588. package/lib-es/modules/components/device-control/components/video-menu/index.js +5 -3
  589. package/lib-es/modules/components/device-control/store.base.js +17 -1
  590. package/lib-es/modules/components/leave-meeting/index.css +21 -0
  591. package/lib-es/modules/components/leave-meeting/index.js +63 -102
  592. package/lib-es/modules/components/leave-meeting/portal.js +3 -5
  593. package/lib-es/modules/components/leave-meeting/store.base.js +49 -55
  594. package/lib-es/modules/components/leave-meeting/style.css +0 -1
  595. package/lib-es/modules/components/member-window/components/member-actions/components/more-actions.js +2 -1
  596. package/lib-es/modules/components/member-window/components/member-actions/provider.js +1 -1
  597. package/lib-es/modules/components/member-window/index.js +3 -3
  598. package/lib-es/modules/components/security-menu/store.js +7 -9
  599. package/lib-es/modules/components/tab-frame/index.css +2 -2
  600. package/lib-es/modules/connection-gateway/components/phone/index.js +1 -1
  601. package/lib-es/modules/connection-gateway/store.js +6 -8
  602. package/lib-es/modules/control-bar/components/annotation-button/index.js +43 -0
  603. package/lib-es/modules/control-bar/components/apps-popover/index.css +3 -0
  604. package/lib-es/modules/control-bar/components/apps-popover/index.js +2 -0
  605. package/lib-es/modules/control-bar/components/carmera/index.js +1 -1
  606. package/lib-es/modules/control-bar/components/meeting-details/index.js +10 -16
  607. package/lib-es/modules/control-bar/components/microphone/index.js +2 -2
  608. package/lib-es/modules/control-bar/hooks.js +1 -1
  609. package/lib-es/modules/control-bar/index.css +11 -0
  610. package/lib-es/modules/control-bar/store.js +184 -53
  611. package/lib-es/modules/control-bar/view.js +72 -39
  612. package/lib-es/modules/device-pretest/audio-preview/microphone-detection.js +4 -10
  613. package/lib-es/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
  614. package/lib-es/modules/device-pretest/index.js +1 -1
  615. package/lib-es/modules/device-pretest/settings/beauty.js +1 -1
  616. package/lib-es/modules/device-pretest/settings/video-effect.js +27 -12
  617. package/lib-es/modules/device-pretest/settings/video-settings-basic.js +1 -1
  618. package/lib-es/modules/device-pretest/settings/virtual-background-setting.js +1 -1
  619. package/lib-es/modules/dialog/components/confirm/index.css +0 -18
  620. package/lib-es/modules/dialog/components/confirm/index.js +2 -1
  621. package/lib-es/modules/dialog/components/dialog-container/index.css +3 -4
  622. package/lib-es/modules/dialog/components/dialog-container/index.js +80 -126
  623. package/lib-es/modules/dialog/components/normal-window/index.js +15 -35
  624. package/lib-es/modules/dialog/dialogConfig/browser.js +4 -0
  625. package/lib-es/modules/dialog/dialogConfig/electron.js +8 -0
  626. package/lib-es/modules/dialog/dialogs/annotation-mask/index.js +34 -0
  627. package/lib-es/modules/dialog/dialogs/annotation-tool/index.js +18 -34
  628. package/lib-es/modules/dialog/dialogs/caption/index.js +24 -18
  629. package/lib-es/modules/dialog/dialogs/chat/index.js +32 -53
  630. package/lib-es/modules/dialog/dialogs/confirm/index.css +2 -13
  631. package/lib-es/modules/dialog/dialogs/confirm/index.js +4 -6
  632. package/lib-es/modules/dialog/dialogs/confirm-leave-meeting/index.js +3 -23
  633. package/lib-es/modules/dialog/dialogs/connection-gateway/index.js +5 -28
  634. package/lib-es/modules/dialog/dialogs/control-bar/index.js +3 -5
  635. package/lib-es/modules/dialog/dialogs/control-bar-leave-meeting/index.js +2 -20
  636. package/lib-es/modules/dialog/dialogs/device-setting/index.js +3 -19
  637. package/lib-es/modules/dialog/dialogs/{end-meeting → end-meeting-notice}/index.js +3 -13
  638. package/lib-es/modules/dialog/dialogs/interpreter/index.js +32 -23
  639. package/lib-es/modules/dialog/dialogs/invite/index.js +24 -23
  640. package/lib-es/modules/dialog/dialogs/live-streaming/index.js +6 -10
  641. package/lib-es/modules/dialog/dialogs/mute-all/index.js +3 -19
  642. package/lib-es/modules/dialog/dialogs/participant/index.js +31 -30
  643. package/lib-es/modules/dialog/dialogs/rename/index.js +1 -12
  644. package/lib-es/modules/dialog/dialogs/sample-dialog/index.js +1 -1
  645. package/lib-es/modules/dialog/dialogs/share-screen-selection/index.js +2 -11
  646. package/lib-es/modules/dialog/dialogs/sub-window/index.js +3 -2
  647. package/lib-es/modules/dialog/dialogs/subtitles-history/index.js +31 -24
  648. package/lib-es/modules/dialog/dialogs/system-preference/index.css +3 -2
  649. package/lib-es/modules/dialog/dialogs/system-preference/index.js +12 -12
  650. package/lib-es/modules/dialog/dialogs/toast/index.js +4 -4
  651. package/lib-es/modules/dialog/dialogs/video-window/index.js +3 -3
  652. package/lib-es/modules/dialog/dialogs/whiteboard/index.js +1 -1
  653. package/lib-es/modules/dialog/dialogs/widget/index.js +21 -25
  654. package/lib-es/modules/dialog/index.css +4 -11
  655. package/lib-es/modules/dialog/level-config.js +1 -0
  656. package/lib-es/modules/dialog/store.base.js +0 -3
  657. package/lib-es/modules/dialog/store.electron.js +16 -9
  658. package/lib-es/modules/dialog/view.js +25 -1
  659. package/lib-es/modules/dialog/web-dialog-wrapper.js +147 -0
  660. package/lib-es/modules/event-toast/index.css +5 -2
  661. package/lib-es/modules/event-toast/store.browser.js +1 -1
  662. package/lib-es/modules/event-toast/store.electron.js +1 -1
  663. package/lib-es/modules/interpreter/index.css +1 -2
  664. package/lib-es/modules/interpreter/store.js +22 -19
  665. package/lib-es/modules/interpreter/utils.js +1 -1
  666. package/lib-es/modules/invite/components/pstn-invite.js +4 -4
  667. package/lib-es/modules/invite/store.js +1 -1
  668. package/lib-es/modules/layout/components/Aside.js +1 -1
  669. package/lib-es/modules/layout/components/Carousel.js +1 -1
  670. package/lib-es/modules/layout/components/CommonVideoRenderer.js +15 -5
  671. package/lib-es/modules/layout/components/Gallery.js +1 -1
  672. package/lib-es/modules/layout/index.css +0 -31
  673. package/lib-es/modules/layout/store.base.js +71 -200
  674. package/lib-es/modules/layout/store.browser.js +62 -1
  675. package/lib-es/modules/layout/store.electron.js +10 -28
  676. package/lib-es/modules/layout/view.js +1 -3
  677. package/lib-es/modules/live-streaming/index.dev.js +1 -1
  678. package/lib-es/modules/live-streaming/store.js +3 -4
  679. package/lib-es/modules/participant/components/confirm-input/index.css +15 -0
  680. package/lib-es/modules/participant/components/confirm-input/index.js +10 -13
  681. package/lib-es/modules/participant/components/mute-all/index.css +34 -0
  682. package/lib-es/modules/participant/components/mute-all/index.js +21 -15
  683. package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/index.js +17 -3
  684. package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/util.js +3 -1
  685. package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +3 -2
  686. package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/index.js +1 -1
  687. package/lib-es/modules/participant/index.css +0 -16
  688. package/lib-es/modules/participant/store.base.js +219 -127
  689. package/lib-es/modules/participant/store.browser.js +2 -2
  690. package/lib-es/modules/participant/store.electron.js +2 -2
  691. package/lib-es/modules/pc-audio-connect/waiting-scene/index.js +6 -1
  692. package/lib-es/modules/phone-audio-connect/store.js +1 -1
  693. package/lib-es/modules/phone-audio-connect/view.js +1 -1
  694. package/lib-es/modules/secondary-window/index.js +51 -25
  695. package/lib-es/modules/secondary-window/store.js +40 -9
  696. package/lib-es/modules/secondary-window/type.js +1 -0
  697. package/lib-es/modules/secondary-window/view.js +60 -59
  698. package/lib-es/modules/setting/audio-settings/audio-settings.js +2 -2
  699. package/lib-es/modules/setting/audio-whiteList/audio-device-adaptation.js +2 -2
  700. package/lib-es/modules/setting/audio-whiteList/audio-whiteList-manager.js +1 -1
  701. package/lib-es/modules/setting/caption_and_transcribing/index.js +1 -1
  702. package/lib-es/modules/setting/general-settings/general-settings.js +5 -5
  703. package/lib-es/modules/setting/index.css +2 -3
  704. package/lib-es/modules/setting/index.js +3 -10
  705. package/lib-es/modules/setting/minutes-settings/minutes-settings.js +1 -1
  706. package/lib-es/modules/setting/state/index.js +1 -1
  707. package/lib-es/modules/setting/storage-settings/storage-settings.js +1 -1
  708. package/lib-es/modules/setting/store.base.js +103 -88
  709. package/lib-es/modules/setting/store.electron.js +19 -1
  710. package/lib-es/modules/setting/translate-settings/translate-settings.js +1 -1
  711. package/lib-es/modules/setting/video-settings/video-settings-basic.js +1 -1
  712. package/lib-es/modules/setting/video-settings/video-settings.js +11 -7
  713. package/lib-es/modules/setting/view.js +1 -1
  714. package/lib-es/modules/share-screen/components/control-bar/index.js +0 -86
  715. package/lib-es/modules/share-screen/components/selection/index.js +3 -1
  716. package/lib-es/modules/share-screen/store.base.js +10 -14
  717. package/lib-es/modules/share-screen/store.electron.js +109 -35
  718. package/lib-es/modules/state-bar/layout-config.js +1 -1
  719. package/lib-es/modules/state-bar/live-streaming-state.js +5 -6
  720. package/lib-es/modules/state-bar/main-scene/store.browser.js +1 -1
  721. package/lib-es/modules/state-bar/main-scene/store.electron.js +1 -1
  722. package/lib-es/modules/state-bar/meeting-details.js +10 -17
  723. package/lib-es/modules/state-bar/meeting-network-state.css +5 -1
  724. package/lib-es/modules/state-bar/meeting-network-state.js +7 -1
  725. package/lib-es/modules/state-bar/meeting-time.js +1 -1
  726. package/lib-es/modules/state-bar/network-quality.js +1 -1
  727. package/lib-es/modules/state-bar/recording.js +1 -1
  728. package/lib-es/modules/state-bar/store.base.js +15 -24
  729. package/lib-es/modules/state-bar/view.js +5 -6
  730. package/lib-es/modules/subtitles-history/components/list-item.js +6 -1
  731. package/lib-es/modules/subtitles-history/index.css +2 -5
  732. package/lib-es/modules/subtitles-history/store.base.js +24 -12
  733. package/lib-es/modules/subtitles-history/store.electron.js +8 -2
  734. package/lib-es/modules/subtitles-history/view.js +7 -5
  735. package/lib-es/modules/toast-manager/index.js +50 -0
  736. package/lib-es/modules/toast-manager/store.js +383 -0
  737. package/lib-es/modules/toast-manager/toast-params.js +82 -0
  738. package/lib-es/modules/toast-manager/type.js +329 -0
  739. package/lib-es/modules/video-window/store.js +28 -50
  740. package/lib-es/modules/whiteboard/components/control-bar/store.js +0 -6
  741. package/lib-es/modules/whiteboard/components/toolbar/store.js +25 -14
  742. package/lib-es/modules/whiteboard/store.js +10 -9
  743. package/lib-es/modules/whiteboard/view.js +0 -1
  744. package/lib-es/modules/widget/store.electron.js +12 -47
  745. package/lib-es/modules/widget/view.js +1 -1
  746. package/lib-es/object-manager.js +2 -0
  747. package/lib-es/plugins/multi-lang-plugin.js +1 -1
  748. package/lib-es/providers/ability-provider.js +29 -1
  749. package/lib-es/providers/annotation/provider.base.js +263 -0
  750. package/lib-es/providers/annotation/provider.browser.js +17 -0
  751. package/lib-es/providers/annotation/provider.electron.js +224 -0
  752. package/lib-es/{fragments/annotation/toolbar/store.js → providers/annotation/standalone-toolbar-control/index.js} +102 -174
  753. package/lib-es/providers/annotation/toolbar-control/index.js +198 -0
  754. package/lib-es/providers/app-list-provider.js +13 -7
  755. package/lib-es/providers/board-share/bar-control/base.js +7 -36
  756. package/lib-es/providers/board-share/bar-control/browser.js +78 -4
  757. package/lib-es/providers/board-share/bar-control/electron.js +36 -12
  758. package/lib-es/providers/board-share/provider.base.js +73 -14
  759. package/lib-es/providers/device-privilege-provider.js +85 -62
  760. package/lib-es/providers/device-provider.js +413 -162
  761. package/lib-es/providers/device-stream-provider.js +37 -111
  762. package/lib-es/providers/dialog/provider.electron.js +6 -1
  763. package/lib-es/providers/interpreter-provider.js +5 -5
  764. package/lib-es/providers/message/provider.js +12 -0
  765. package/lib-es/providers/mouse-detect/provider.js +1 -1
  766. package/lib-es/providers/mouse-detect/struct.js +1 -0
  767. package/lib-es/providers/multi-display-provider.js +15 -2
  768. package/lib-es/providers/phone-audio-provider.js +17 -10
  769. package/lib-es/providers/room-provider/room-provider.js +95 -201
  770. package/lib-es/providers/room-provider/waiting-room-control-manager.js +1 -1
  771. package/lib-es/providers/screen-share/provider.base.js +6 -1
  772. package/lib-es/providers/screen-share/provider.browser.js +13 -9
  773. package/lib-es/providers/screen-share/provider.electron.js +54 -44
  774. package/lib-es/providers/screen-share/strategy/electron.js +18 -3
  775. package/lib-es/providers/screen-share/stream-state-sync.js +4 -4
  776. package/lib-es/providers/stt-provider/stt-provider.js +65 -102
  777. package/lib-es/providers/stt-provider/type.js +4 -2
  778. package/lib-es/providers/user-audio-volume-provider.js +312 -0
  779. package/lib-es/providers/window/provider.js +23 -13
  780. package/lib-es/providers/window/renderer-window.js +118 -33
  781. package/lib-es/scenes/main-scene.js +113 -83
  782. package/lib-es/scenes/waiting-scene.js +5 -5
  783. package/lib-es/shared-data/member-data.js +35 -61
  784. package/lib-es/shared-data/pin-data.js +8 -11
  785. package/lib-es/shared-data/setting.js +1 -1
  786. package/lib-es/shared-data/user-audio-volume.js +97 -0
  787. package/lib-es/shared-data/video-window.js +49 -60
  788. package/lib-es/translations/enUS.js +13 -3
  789. package/lib-es/translations/zhCN.js +12 -2
  790. package/lib-es/type.js +19 -1
  791. package/lib-es/ui-manager.js +1 -1
  792. package/lib-es/ui-scene-switch.js +199 -88
  793. package/lib-es/utilities/browser-api.js +0 -40
  794. package/lib-es/utilities/constant.js +4 -5
  795. package/lib-es/utilities/default-config.js +8 -48
  796. package/lib-es/utilities/dialog-utils.js +1 -1
  797. package/lib-es/utilities/focus-helper.js +1 -1
  798. package/lib-es/utilities/logger.js +12 -40
  799. package/lib-es/utilities/package-info.js +5 -6
  800. package/lib-es/utilities/renderer.js +7 -1
  801. package/lib-es/utilities/shared-storage.js +16 -12
  802. package/lib-es/utilities/tools.js +2 -188
  803. package/lib-es/utilities/validate-params.js +3 -5
  804. package/package.json +7 -8
  805. package/public/js/meeting-manager.js +13 -11
  806. package/lib/electron/window-proxy/browser-window-proxy.js +0 -728
  807. package/lib/fragments/annotation/toolbar/store.d.ts +0 -64
  808. package/lib/fragments/annotation/toolbar/view.js +0 -148
  809. package/lib/fragments/annotation/utils.d.ts +0 -1
  810. package/lib/fragments/annotation/utils.js +0 -27
  811. package/lib/modules/dialog/components/dialog-container/component/body.d.ts +0 -20
  812. package/lib/modules/dialog/components/dialog-container/component/body.js +0 -111
  813. package/lib/modules/dialog/components/host-area-container/index.d.ts +0 -12
  814. package/lib/modules/dialog/components/host-area-container/index.js +0 -153
  815. package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +0 -13
  816. package/lib/modules/dialog/dialogs/interpreter/index.css +0 -30
  817. package/lib/modules/dialog/dialogs/mute-all/index.css +0 -20
  818. package/lib/modules/whiteboard/components/multi-window/index.css +0 -63
  819. package/lib/modules/whiteboard/components/multi-window/index.d.ts +0 -5
  820. package/lib/modules/whiteboard/components/multi-window/index.js +0 -39
  821. package/lib/providers/annotation/provider.d.ts +0 -15
  822. package/lib/providers/annotation/provider.js +0 -69
  823. package/lib/utilities/hooks.d.ts +0 -14
  824. package/lib/utilities/hooks.js +0 -100
  825. package/lib/utilities/mute-action.d.ts +0 -4
  826. package/lib/utilities/mute-action.js +0 -48
  827. package/lib/utilities/platform.d.ts +0 -2
  828. package/lib/utilities/platform.js +0 -14
  829. package/lib/utilities/regex.d.ts +0 -1
  830. package/lib/utilities/regex.js +0 -14
  831. package/lib/utilities/useNamespace.d.ts +0 -15
  832. package/lib/utilities/useNamespace.js +0 -66
  833. package/lib-es/electron/window-proxy/browser-window-proxy.js +0 -720
  834. package/lib-es/fragments/annotation/toolbar/view.js +0 -140
  835. package/lib-es/fragments/annotation/utils.js +0 -20
  836. package/lib-es/modules/dialog/components/dialog-container/component/body.js +0 -103
  837. package/lib-es/modules/dialog/components/host-area-container/index.js +0 -146
  838. package/lib-es/modules/dialog/dialogs/interpreter/index.css +0 -30
  839. package/lib-es/modules/dialog/dialogs/mute-all/index.css +0 -20
  840. package/lib-es/modules/whiteboard/components/multi-window/index.css +0 -63
  841. package/lib-es/modules/whiteboard/components/multi-window/index.js +0 -31
  842. package/lib-es/providers/annotation/provider.js +0 -61
  843. package/lib-es/utilities/hooks.js +0 -82
  844. package/lib-es/utilities/mute-action.js +0 -41
  845. package/lib-es/utilities/platform.js +0 -7
  846. package/lib-es/utilities/regex.js +0 -7
  847. package/lib-es/utilities/useNamespace.js +0 -59
  848. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.d.ts +0 -0
  849. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.d.ts +0 -0
  850. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.d.ts +0 -0
  851. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.d.ts +0 -0
  852. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.js +0 -0
  853. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.d.ts +0 -0
  854. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.d.ts +0 -0
  855. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.js +0 -0
  856. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/style.css +0 -0
  857. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.d.ts +0 -0
  858. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.js +0 -0
  859. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/style.css +0 -0
  860. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.d.ts +0 -0
  861. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.d.ts +0 -0
  862. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.d.ts +0 -0
  863. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.js +0 -0
  864. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/style.css +0 -0
  865. /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/view.d.ts +0 -0
  866. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.js +0 -0
  867. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.js +0 -0
  868. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/style.css +0 -0
  869. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.js +0 -0
  870. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/style.css +0 -0
  871. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.js +0 -0
  872. /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/style.css +0 -0
@@ -6,7 +6,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
6
6
  import _createClass from "@babel/runtime/helpers/createClass";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  var _SettingStoreBase;
9
- var _initProto, _init_loudestStreamVolumeLevel, _init_microphoneVolumeLevel, _init_isWifiConnected, _init_isMainRoom, _init_networkState, _init_performanceState, _init_localAudioStreamMap, _init_remoteAudioStreamMap, _init_localVideoStreamMap, _init_remoteVideoStreamMap, _init_systemMemorySize, _init_systemCpuDesc, _init_getSystemInfoTimer, _init_isHiddenMeetingTab, _setDialogConfigDecs, _setSettingDecs, _clearGetSystemInfoIntervalDecs, _changeMediaSettingDecs, _toggleTwoLineCaptionEnabledDecs, _toggleTwoLineTranscribingEnabledDecs, _subscribeTranslateLanguageDecs, _handleJoinRoomDecs, _handleExitRoomDecs, _handleJoinMainRoomDecs, _onNetworkStatsUpdatedDecs, _onLocalAudioStatsUpdatedDecs, _onRemoteAudioStatsUpdatedDecs, _onLocalVideoStatsUpdatedDecs, _onRemoteVideoStatsUpdatedDecs, _onStreamsAddedDecs, _onStreamsUpdatedDecs, _onStreamsRemovedDecs, _onPerformanceUpdatedDecs, _onAudioVolumeUpdatedDecs, _preHandleSettingDecs, _setMeetingSettingsToLocalStorageDecs, _ref;
9
+ var _initProto, _init_loudestStreamVolumeLevel, _init_microphoneVolumeLevel, _init_isWifiConnected, _init_isMainRoom, _init_networkState, _init_performanceState, _init_localAudioStreamMap, _init_remoteAudioStreamMap, _init_localVideoStreamMap, _init_remoteVideoStreamMap, _init_systemMemorySize, _init_systemCpuDesc, _init_isHiddenMeetingTab, _setDialogConfigDecs, _setSettingDecs, _changeMediaSettingDecs, _toggleTwoLineCaptionEnabledDecs, _toggleTwoLineTranscribingEnabledDecs, _subscribeTranslateLanguageDecs, _handleJoinRoomDecs, _handleExitRoomDecs, _resetSettingStoreDecs, _handleJoinMainRoomDecs, _onNetworkStatsUpdatedDecs, _onLocalAudioStatsUpdatedDecs, _onRemoteAudioStatsUpdatedDecs, _onLocalVideoStatsUpdatedDecs, _onRemoteVideoStatsUpdatedDecs, _onStreamsAddedDecs, _onStreamsUpdatedDecs, _onStreamsRemovedDecs, _onPerformanceUpdatedDecs, _onAudioVolumeUpdatedDecs, _preHandleSettingDecs, _setMeetingSettingsToLocalStorageDecs, _ref;
10
10
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
11
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
12
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -64,7 +64,6 @@ import "core-js/modules/es.regexp.test.js";
64
64
  import "core-js/modules/es.regexp.to-string.js";
65
65
  import "core-js/modules/es.string.includes.js";
66
66
  import "core-js/modules/es.string.iterator.js";
67
- import "core-js/modules/es.string.replace.js";
68
67
  import "core-js/modules/es.weak-map.js";
69
68
  import "core-js/modules/esnext.function.metadata.js";
70
69
  import "core-js/modules/esnext.iterator.constructor.js";
@@ -98,7 +97,7 @@ import { action, computed, observable, reaction, runInAction } from 'mobx';
98
97
  import { bound, trace } from 'agora-foundation/lib/decorator';
99
98
  import { AgoraScheduler } from 'agora-foundation/lib/schedule';
100
99
  import { FcrRoomType } from 'fcr-core/lib/room-control/type';
101
- import { changeLanguage, transI18n } from 'agora-ui-foundation/lib/i18n';
100
+ import { changeLanguage } from 'agora-ui-foundation/lib/i18n';
102
101
  import { DEFAULT_DEVICE_ID } from '../../providers/device-provider';
103
102
  import { createLogger } from '../../utilities/logger';
104
103
  import { FcrUICurrentRoomControlProviderImpl } from '../../providers/room-provider/room-provider';
@@ -107,6 +106,8 @@ import { FcrUIObjectKeys } from '../../object-manager';
107
106
  import { createContext } from 'react';
108
107
  import { windowsVersion, isWindows } from 'agora-foundation/lib/utilities/env';
109
108
  import { cameraVideoHighStreamEncoderConfig, hdCameraVideoEncoderConfig } from '../../utilities/default-config';
109
+ import { FcrUIToastKey } from '../../modules/toast-manager/type';
110
+ import { FcrUISystemPereferencesType } from '../../providers/facility/struct';
110
111
  var mapDevice2Option = function mapDevice2Option(deviceList) {
111
112
  return deviceList.map(function (item) {
112
113
  return {
@@ -145,8 +146,7 @@ var _J = /*#__PURE__*/new WeakMap();
145
146
  var _K = /*#__PURE__*/new WeakMap();
146
147
  var _L = /*#__PURE__*/new WeakMap();
147
148
  var _M = /*#__PURE__*/new WeakMap();
148
- var _N = /*#__PURE__*/new WeakMap();
149
- _ref = (_setDialogConfigDecs = [action, action.bound], _setSettingDecs = [action, action.bound], _clearGetSystemInfoIntervalDecs = [action, action.bound], _changeMediaSettingDecs = [action, action.bound], _toggleTwoLineCaptionEnabledDecs = [action, action.bound], _toggleTwoLineTranscribingEnabledDecs = [action, action.bound], _subscribeTranslateLanguageDecs = [action, action.bound], _handleJoinRoomDecs = [action, action.bound, void 0, trace], _handleExitRoomDecs = [action, action.bound, void 0, trace], _handleJoinMainRoomDecs = [action, action.bound, void 0, trace], _onNetworkStatsUpdatedDecs = [action, action.bound], _onLocalAudioStatsUpdatedDecs = [action, action.bound], _onRemoteAudioStatsUpdatedDecs = [action, action.bound], _onLocalVideoStatsUpdatedDecs = [action, action.bound], _onRemoteVideoStatsUpdatedDecs = [action, action.bound], _onStreamsAddedDecs = [action, action.bound], _onStreamsUpdatedDecs = [action, action.bound], _onStreamsRemovedDecs = [action, action.bound], _onPerformanceUpdatedDecs = [action, action.bound], _onAudioVolumeUpdatedDecs = [action, action.bound], _preHandleSettingDecs = [action, action.bound], _setMeetingSettingsToLocalStorageDecs = [action, action.bound], "logger");
149
+ _ref = (_setDialogConfigDecs = [action, action.bound], _setSettingDecs = [action, action.bound], _changeMediaSettingDecs = [action, action.bound], _toggleTwoLineCaptionEnabledDecs = [action, action.bound], _toggleTwoLineTranscribingEnabledDecs = [action, action.bound], _subscribeTranslateLanguageDecs = [action, action.bound], _handleJoinRoomDecs = [action, action.bound, void 0, trace], _handleExitRoomDecs = [action, action.bound, void 0, trace], _resetSettingStoreDecs = [action, action.bound], _handleJoinMainRoomDecs = [action, action.bound, void 0, trace], _onNetworkStatsUpdatedDecs = [action, action.bound], _onLocalAudioStatsUpdatedDecs = [action, action.bound], _onRemoteAudioStatsUpdatedDecs = [action, action.bound], _onLocalVideoStatsUpdatedDecs = [action, action.bound], _onRemoteVideoStatsUpdatedDecs = [action, action.bound], _onStreamsAddedDecs = [action, action.bound], _onStreamsUpdatedDecs = [action, action.bound], _onStreamsRemovedDecs = [action, action.bound], _onPerformanceUpdatedDecs = [action, action.bound], _onAudioVolumeUpdatedDecs = [action, action.bound], _preHandleSettingDecs = [action, action.bound], _setMeetingSettingsToLocalStorageDecs = [action, action.bound], "logger");
150
150
  export var SettingStoreBase = /*#__PURE__*/function () {
151
151
  function SettingStoreBase(_ref2) {
152
152
  var objectManager = _ref2.objectManager;
@@ -163,6 +163,7 @@ export var SettingStoreBase = /*#__PURE__*/function () {
163
163
  _defineProperty(this, "_streamVolumeMap", new Map());
164
164
  _defineProperty(this, "_volumeIndicationInterval", AgoraScheduler.Duration.second(2));
165
165
  _defineProperty(this, "_useDefaultAudioEchoCancellation", true);
166
+ _defineProperty(this, "_abilityProvider", null);
166
167
  _defineProperty(this, "_streamInfoList", new Map());
167
168
  _defineProperty(this, "_monitorObserver", {
168
169
  onPerformanceInfoUpdated: this._onPerformanceUpdated
@@ -181,7 +182,10 @@ export var SettingStoreBase = /*#__PURE__*/function () {
181
182
  onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
182
183
  });
183
184
  _defineProperty(this, "_deviceProviderObserver", {
184
- onSystemSelectedDeviceChanged: this._handleSystemSelectedDeviceChanged
185
+ onSystemSelectedDeviceChanged: this._handleSystemSelectedDeviceChanged,
186
+ onCameraStateChanged: this._handleCameraStateChanged,
187
+ onMicrophoneStateChanged: this._handleMicrophoneStateChanged,
188
+ onMediaPermissionMissing: this._handleMediaPermissionMissing
185
189
  });
186
190
  _defineProperty(this, "_interpreterRoomControlReaction", null);
187
191
  _defineProperty(this, "_streamControl", null);
@@ -223,17 +227,16 @@ export var SettingStoreBase = /*#__PURE__*/function () {
223
227
  _classPrivateFieldInitSpec(this, _J, _init_remoteVideoStreamMap(this, new Map()));
224
228
  _classPrivateFieldInitSpec(this, _K, _init_systemMemorySize(this, 0));
225
229
  _classPrivateFieldInitSpec(this, _L, _init_systemCpuDesc(this, ''));
226
- _classPrivateFieldInitSpec(this, _M, _init_getSystemInfoTimer(this, null));
227
- _classPrivateFieldInitSpec(this, _N, _init_isHiddenMeetingTab(this, true));
230
+ _classPrivateFieldInitSpec(this, _M, _init_isHiddenMeetingTab(this, true));
228
231
  this._objectManager = objectManager;
229
232
  this._monitorProvider = objectManager.getObject(FcrUIObjectKeys.P_MONITOR_PROVIDER);
230
233
  this._eventProvider = objectManager.getObject(FcrUIObjectKeys.P_EVENT_PROVIDER);
231
234
  this._deviceProvider = objectManager.getObject(FcrUIObjectKeys.P_DEVICE_PROVIDER);
232
235
  this._messageProvider = objectManager.getObject(FcrUIObjectKeys.P_MESSAGE_PROVIDER);
233
- this._dialogProvider = objectManager.getObject(FcrUIObjectKeys.P_DIALOG_PROVIDER);
234
236
  this._sharedConfigDataSource = objectManager.getObject(FcrUIObjectKeys.S_SHARED_CONFIG_DATA_SOURCE);
235
237
  this._sharedSettingDataSource = objectManager.getObject(FcrUIObjectKeys.S_SHARED_SETTING_DATA_SOURCE);
236
238
  this._monitorProvider.addObserver(this._monitorObserver);
239
+ this._deviceProvider.addObserver(this._deviceProviderObserver);
237
240
  this._initReactions();
238
241
  if (this._deviceProvider.defaultMirror) {
239
242
  this._deviceProvider.toggleLocalMirror(true);
@@ -343,21 +346,13 @@ export var SettingStoreBase = /*#__PURE__*/function () {
343
346
  _classPrivateFieldSet(_L, this, v);
344
347
  }
345
348
  }, {
346
- key: "getSystemInfoTimer",
349
+ key: "isHiddenMeetingTab",
347
350
  get: function get() {
348
351
  return _classPrivateFieldGet(_M, this);
349
352
  },
350
353
  set: function set(v) {
351
354
  _classPrivateFieldSet(_M, this, v);
352
355
  }
353
- }, {
354
- key: "isHiddenMeetingTab",
355
- get: function get() {
356
- return _classPrivateFieldGet(_N, this);
357
- },
358
- set: function set(v) {
359
- _classPrivateFieldSet(_N, this, v);
360
- }
361
356
  }, {
362
357
  key: "maxVideoSendInfo",
363
358
  get: function get() {
@@ -587,6 +582,22 @@ export var SettingStoreBase = /*#__PURE__*/function () {
587
582
  }
588
583
  return this._interpreterRoomControl;
589
584
  }
585
+ }, {
586
+ key: "isVirtualBackgroundSupported",
587
+ get: function get() {
588
+ if (this._abilityProvider) {
589
+ return this._abilityProvider.isVirtualBackgroundSupported();
590
+ }
591
+ return true;
592
+ }
593
+ }, {
594
+ key: "isBeautyModeAbilitySupported",
595
+ get: function get() {
596
+ if (this._abilityProvider) {
597
+ return this._abilityProvider.isBeautyModeAbilitySupported();
598
+ }
599
+ return true;
600
+ }
590
601
  }, {
591
602
  key: "streamControl",
592
603
  get: function get() {
@@ -706,9 +717,8 @@ export var SettingStoreBase = /*#__PURE__*/function () {
706
717
  return _this3.setting.shouldHideNonVideoParticipants;
707
718
  }, function (shouldHideNonVideoParticipants) {
708
719
  if (shouldHideNonVideoParticipants) {
709
- _this3._messageProvider.showToast({
710
- type: 'normal',
711
- message: transI18n('fmt_internalsetting_other_hide_no_video_toast')
720
+ _this3._messageProvider.showToastByKey({
721
+ key: FcrUIToastKey.FMT_INTERNALSSETTING_OTHER_HIDE_NO_VIDEO_TOAST
712
722
  });
713
723
  }
714
724
  }), reaction(function () {
@@ -821,17 +831,17 @@ export var SettingStoreBase = /*#__PURE__*/function () {
821
831
  var _this5 = this;
822
832
  if (!this._videoView4Setting || !this._deviceProvider.cameraId) return;
823
833
  setTimeout(function () {
824
- _this5.startVideo(isMirror);
834
+ _this5.startVideoPreview(isMirror);
825
835
  });
826
836
  this._deviceProvider.toggleLocalMirrorPreview(isMirror);
827
837
  }
828
838
  }, {
829
- key: "startVideo",
830
- value: function startVideo(isMirror) {
839
+ key: "startVideoPreview",
840
+ value: function startVideoPreview(isMirror) {
831
841
  var view = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._videoView4Setting;
832
842
  if (!view) return;
833
843
  this._videoView4Setting = view;
834
- this.startCameraTest();
844
+ this._deviceProvider.startCameraTest();
835
845
  var cameraTrack = this._deviceProvider.cameraTrack;
836
846
  if (cameraTrack) {
837
847
  cameraTrack.startPreview({
@@ -841,13 +851,15 @@ export var SettingStoreBase = /*#__PURE__*/function () {
841
851
  }
842
852
  }
843
853
  }, {
844
- key: "stopVideo",
845
- value: function stopVideo() {
846
- this.stopCameraTest();
847
- if (!this._videoView4Setting) return;
848
- var cameraTrack = this._deviceProvider.cameraTrack;
849
- if (cameraTrack) {
850
- cameraTrack.stopPreview(this._videoView4Setting);
854
+ key: "stopVideoPreview",
855
+ value: function stopVideoPreview() {
856
+ if (!this.cameraDeviceId) return;
857
+ var cameraVideoTrack = this._deviceProvider.cameraTrack;
858
+ if (cameraVideoTrack) {
859
+ if (this._videoView4Setting) {
860
+ cameraVideoTrack.stopPreview(this._videoView4Setting);
861
+ }
862
+ cameraVideoTrack.stopTest();
851
863
  }
852
864
  }
853
865
  }, {
@@ -866,7 +878,7 @@ export var SettingStoreBase = /*#__PURE__*/function () {
866
878
  var _this6 = this;
867
879
  if (!this._videoView4Setting || !this._deviceProvider.cameraId) return;
868
880
  setTimeout(function () {
869
- _this6.startVideo(enable);
881
+ _this6.startVideoPreview(enable);
870
882
  });
871
883
  this._deviceProvider.toggleLocalMirror(enable);
872
884
  this._setMeetingSettingsToLocalStorage({
@@ -966,27 +978,6 @@ export var SettingStoreBase = /*#__PURE__*/function () {
966
978
  }
967
979
  }
968
980
  }
969
- }, {
970
- key: "startCameraTest",
971
- value: function startCameraTest() {
972
- if (!this.cameraDeviceId) return;
973
- var cameraVideoTrack = this._deviceProvider.cameraTrack;
974
- if (cameraVideoTrack) {
975
- cameraVideoTrack.startTest();
976
- }
977
- }
978
- }, {
979
- key: "stopCameraTest",
980
- value: function stopCameraTest() {
981
- if (!this.cameraDeviceId) return;
982
- var cameraVideoTrack = this._deviceProvider.cameraTrack;
983
- if (cameraVideoTrack) {
984
- if (this._videoView4Setting) {
985
- cameraVideoTrack.stopPreview(this._videoView4Setting);
986
- }
987
- cameraVideoTrack.stopTest();
988
- }
989
- }
990
981
  }, {
991
982
  key: "startMicrophoneTest",
992
983
  value: function startMicrophoneTest() {
@@ -1000,13 +991,9 @@ export var SettingStoreBase = /*#__PURE__*/function () {
1000
991
  }, {
1001
992
  key: "release",
1002
993
  value: function release() {
1003
- var _this$_currentRoomCon, _this$_currentRoomCon2;
1004
- if (this.getSystemInfoTimer) {
1005
- this.clearGetSystemInfoInterval();
1006
- }
1007
994
  this._monitorProvider.removeObserver(this._monitorObserver);
1008
- (_this$_currentRoomCon = this._currentRoomControl) === null || _this$_currentRoomCon === void 0 || _this$_currentRoomCon.getStreamControl().removeObserver(this._streamObserver);
1009
- (_this$_currentRoomCon2 = this._currentRoomControl) === null || _this$_currentRoomCon2 === void 0 || _this$_currentRoomCon2.removeObserver(this._roomObserver);
995
+ this._deviceProvider.removeObserver(this._deviceProviderObserver);
996
+ this._resetSettingStore(true);
1010
997
  this._disposeReactions();
1011
998
  }
1012
999
  }, {
@@ -1122,12 +1109,6 @@ export var SettingStoreBase = /*#__PURE__*/function () {
1122
1109
  }
1123
1110
  }
1124
1111
  }
1125
- }, {
1126
- key: "clearGetSystemInfoInterval",
1127
- value: function clearGetSystemInfoInterval() {
1128
- this.getSystemInfoTimer && clearInterval(this.getSystemInfoTimer);
1129
- this.getSystemInfoTimer = null;
1130
- }
1131
1112
  }, {
1132
1113
  key: "changeMediaSetting",
1133
1114
  value: function changeMediaSetting(key, value) {
@@ -1159,6 +1140,7 @@ export var SettingStoreBase = /*#__PURE__*/function () {
1159
1140
  var roomProvider = this._objectManager.getObject(FcrUIObjectKeys.P_ROOM_PROVIDER);
1160
1141
  this._sharedLayoutDataSource = this._objectManager.getObject(FcrUIObjectKeys.S_SHARED_LAYOUT_DATA_SOURCE);
1161
1142
  this._currentRoomControl = new FcrUICurrentRoomControlProviderImpl(roomProvider.currentRoomControl).currentRoomControl;
1143
+ this._abilityProvider = this._objectManager.getObject(FcrUIObjectKeys.P_ABILITY_PROVIDER);
1162
1144
  this._currentRoomControl.addObserver(this._roomObserver);
1163
1145
  this._streamControl = this._currentRoomControl.getStreamControl();
1164
1146
  this._streamControl.addObserver(this._streamObserver);
@@ -1180,15 +1162,12 @@ export var SettingStoreBase = /*#__PURE__*/function () {
1180
1162
  deviceName: this._deviceProvider.currentDeviceName.microphoneDeviceName
1181
1163
  });
1182
1164
  }
1183
- this._deviceProvider.addObserver(this._deviceProviderObserver);
1184
1165
  }
1185
1166
  }, {
1186
1167
  key: "handleExitRoom",
1187
- value: function handleExitRoom(isRoutingChange) {
1188
- var _this8 = this,
1189
- _this$_streamControl,
1190
- _this$_currentRoomCon3,
1191
- _this$_interpreterRoo;
1168
+ value: function handleExitRoom() {
1169
+ var _this8 = this;
1170
+ var isResetDevice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
1192
1171
  this._disposers = this._disposers.filter(function (disposer) {
1193
1172
  if (disposer !== _this8._interpreterRoomControlReaction) {
1194
1173
  return true;
@@ -1196,10 +1175,17 @@ export var SettingStoreBase = /*#__PURE__*/function () {
1196
1175
  disposer();
1197
1176
  }
1198
1177
  });
1178
+ this._resetSettingStore(isResetDevice);
1179
+ }
1180
+ }, {
1181
+ key: "_resetSettingStore",
1182
+ value: function _resetSettingStore() {
1183
+ var _this$_streamControl, _this$_currentRoomCon, _this$_interpreterRoo;
1184
+ var isResetDevice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
1199
1185
  (_this$_streamControl = this._streamControl) === null || _this$_streamControl === void 0 || _this$_streamControl.removeObserver(this._streamObserver);
1200
- (_this$_currentRoomCon3 = this._currentRoomControl) === null || _this$_currentRoomCon3 === void 0 || _this$_currentRoomCon3.removeObserver(this._roomObserver);
1186
+ (_this$_currentRoomCon = this._currentRoomControl) === null || _this$_currentRoomCon === void 0 || _this$_currentRoomCon.removeObserver(this._roomObserver);
1201
1187
  (_this$_interpreterRoo = this._interpreterRoomControl) === null || _this$_interpreterRoo === void 0 || _this$_interpreterRoo.removeObserver(this._roomObserver);
1202
- if (!isRoutingChange) {
1188
+ if (isResetDevice) {
1203
1189
  this._deviceProvider.resetDevice();
1204
1190
  }
1205
1191
  this.isHiddenMeetingTab = true;
@@ -1208,7 +1194,7 @@ export var SettingStoreBase = /*#__PURE__*/function () {
1208
1194
  this._sharedLayoutDataSource = null;
1209
1195
  this._sharedSttSettingDataSource = null;
1210
1196
  this._sttProvider = null;
1211
- this._deviceProvider.removeObserver(this._deviceProviderObserver);
1197
+ this._abilityProvider = null;
1212
1198
  this.localAudioStreamMap.clear();
1213
1199
  this.remoteAudioStreamMap.clear();
1214
1200
  this.localVideoStreamMap.clear();
@@ -1382,16 +1368,20 @@ export var SettingStoreBase = /*#__PURE__*/function () {
1382
1368
  }, {
1383
1369
  key: "_handleSystemSelectedDeviceChanged",
1384
1370
  value: function _handleSystemSelectedDeviceChanged(device) {
1385
- this._showSystemSelectedDeviceChangedToast(device);
1371
+ if (!this.isHiddenMeetingTab) {
1372
+ this._showSystemSelectedDeviceChangedToast(device);
1373
+ }
1386
1374
  }
1387
1375
  }, {
1388
1376
  key: "_showSystemSelectedDeviceChangedToast",
1389
1377
  value: function _showSystemSelectedDeviceChangedToast(defaultDevice) {
1390
- var message = transI18n('fmt_device_toast_switch_device');
1391
- message = message.replace('{reason1}', defaultDevice.deviceName);
1392
- this._messageProvider.showToast({
1393
- type: 'normal',
1394
- message: message
1378
+ this._messageProvider.showToastByKey({
1379
+ key: FcrUIToastKey.FMT_DEVICE_TOAST_SWITCH_DEVICE,
1380
+ params: {
1381
+ transI18nOptions: {
1382
+ reason1: defaultDevice.deviceName
1383
+ }
1384
+ }
1395
1385
  });
1396
1386
  this._windows10UnsupportAirPods(defaultDevice);
1397
1387
  }
@@ -1413,15 +1403,41 @@ export var SettingStoreBase = /*#__PURE__*/function () {
1413
1403
  return;
1414
1404
  }
1415
1405
  var message = "windows 10 maybe not support ".concat(defaultDevice.deviceName);
1416
- this._messageProvider.showToast({
1417
- type: 'warn',
1418
- message: message
1406
+ this._messageProvider.showToastByKey({
1407
+ key: FcrUIToastKey.WARN_MESSAGE,
1408
+ params: {
1409
+ message: message
1410
+ }
1419
1411
  });
1420
1412
  }
1413
+ }, {
1414
+ key: "_handleCameraStateChanged",
1415
+ value: function _handleCameraStateChanged(cameraDeviceId, state) {
1416
+ if (cameraDeviceId === this.deviceProvider.cameraId && state === FcrMediaSourceState.ERROR) {
1417
+ this.stopVideoPreview();
1418
+ }
1419
+ }
1420
+ }, {
1421
+ key: "_handleMicrophoneStateChanged",
1422
+ value: function _handleMicrophoneStateChanged(microphoneDeviceId, state) {
1423
+ if (microphoneDeviceId === this.deviceProvider.microphoneId && state === FcrMediaSourceState.ERROR) {
1424
+ this.stopMicrophoneTest();
1425
+ }
1426
+ }
1427
+ }, {
1428
+ key: "_handleMediaPermissionMissing",
1429
+ value: function _handleMediaPermissionMissing(mediaType) {
1430
+ if (mediaType === FcrUISystemPereferencesType.Microphone) {
1431
+ this.stopMicrophoneTest();
1432
+ }
1433
+ if (mediaType === FcrUISystemPereferencesType.Camera) {
1434
+ this.stopVideoPreview();
1435
+ }
1436
+ }
1421
1437
  }]);
1422
1438
  }();
1423
1439
  _SettingStoreBase = SettingStoreBase;
1424
- var _applyDecs$e = _slicedToArray(_applyDecs(_SettingStoreBase, [[observable, 1, "loudestStreamVolumeLevel"], [observable, 1, "microphoneVolumeLevel"], [observable, 1, "isWifiConnected"], [observable, 1, "isMainRoom"], [observable, 1, "networkState"], [observable, 1, "performanceState"], [observable, 1, "localAudioStreamMap"], [observable, 1, "remoteAudioStreamMap"], [observable, 1, "localVideoStreamMap"], [observable, 1, "remoteVideoStreamMap"], [observable, 1, "systemMemorySize"], [observable, 1, "systemCpuDesc"], [observable, 1, "getSystemInfoTimer"], [observable, 1, "isHiddenMeetingTab"], [computed, 3, "maxVideoSendInfo"], [computed, 3, "maxVideoReceiveInfo"], [computed, 3, "sendScreenShareInfo"], [computed, 3, "receiveScreenShareInfo"], [computed, 3, "microphoneVolumeDb"], [computed, 3, "speakerVolumeDb"], [computed, 3, "speakerTestVolumeLevel"], [computed, 3, "microphoneTestVolumeLevel"], [computed, 3, "speakerVolume"], [computed, 3, "microphoneVolume"], [computed, 3, "isLocalMirrorEnabled"], [computed, 3, "isLocalEditBeautyOptions"], [computed, 3, "currentBeautyKey"], [computed, 3, "beautyOptions"], [computed, 3, "cameraDeviceId"], [computed, 3, "cameraEnabled"], [computed, 3, "showForceOpenEffectDialog"], [computed, 3, "currentVirtualBackgroundName"], [computed, 3, "cameraDeviceList"], [computed, 3, "microphoneDeviceId"], [computed, 3, "speakerDeviceId"], [computed, 3, "speakerDeviceList"], [computed, 3, "microphoneDeviceList"], [computed, 3, "enableBeauty"], [computed, 3, "virtualBackgroundList"], [computed, 3, "currentIsMirror"], [computed, 3, "microphoneDetecting"], [computed, 3, "speakerDetecting"], [computed, 3, "setting"], [computed, 3, "media"], [computed, 3, "sceneConfig"], [computed, 3, "sharedSttSettingDataSource"], [computed, 3, "sttProvider"], [computed, 3, "languageOptions"], [computed, 3, "captionFontSize"], [computed, 3, "captionStyle"], [computed, 3, "isTwoLineCaptionEnabled"], [computed, 3, "isTwoLineTranscribingEnabled"], [computed, 3, "translateLanguage"], [computed, 3, "sharedInterpreterDataSource"], [computed, 3, "currentRoomControl"], [computed, 3, "interpreterRoomControl"], [bound, 2, "_syncSystemInfo"], [bound, 2, "initSettingConfig"], [bound, 2, "enableVirtualBackground"], [bound, 2, "setEditBeautyKey"], [bound, 2, "enableBeautyEffect"], [bound, 2, "_initReactions"], [bound, 2, "setCameraDevice"], [bound, 2, "setMicrophoneDevice"], [bound, 2, "stopSpeakerTest"], [bound, 2, "startSpeakerTest"], [bound, 2, "setSpeakerDevice"], [bound, 2, "setSpeakerVolume"], [bound, 2, "setMicrophoneVolume"], [bound, 2, "setVideoOrientation"], [bound, 2, "setBeautyOptions"], [bound, 2, "toggleLocalMirrorPreview"], [bound, 2, "startVideo"], [bound, 2, "stopVideo"], [bound, 2, "handleForceOpenVideoEffect"], [bound, 2, "handleCancelForceOpenVideoEffect"], [bound, 2, "toggleLocalMirror"], [bound, 2, "setSettingVideoOpened"], [bound, 2, "setCaptionFontSize"], [bound, 2, "startCameraTest"], [bound, 2, "stopCameraTest"], [bound, 2, "startMicrophoneTest"], [bound, 2, "stopMicrophoneTest"], [_setDialogConfigDecs, 18, "setDialogConfig"], [_setSettingDecs, 18, "setSetting"], [_clearGetSystemInfoIntervalDecs, 18, "clearGetSystemInfoInterval"], [_changeMediaSettingDecs, 18, "changeMediaSetting"], [_toggleTwoLineCaptionEnabledDecs, 18, "toggleTwoLineCaptionEnabled"], [_toggleTwoLineTranscribingEnabledDecs, 18, "toggleTwoLineTranscribingEnabled"], [_subscribeTranslateLanguageDecs, 18, "subscribeTranslateLanguage"], [_handleJoinRoomDecs, 18, "handleJoinRoom"], [_handleExitRoomDecs, 18, "handleExitRoom"], [_handleJoinMainRoomDecs, 18, "_handleJoinMainRoom"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLocalAudioStatsUpdatedDecs, 18, "_onLocalAudioStatsUpdated"], [_onRemoteAudioStatsUpdatedDecs, 18, "_onRemoteAudioStatsUpdated"], [_onLocalVideoStatsUpdatedDecs, 18, "_onLocalVideoStatsUpdated"], [_onRemoteVideoStatsUpdatedDecs, 18, "_onRemoteVideoStatsUpdated"], [_onStreamsAddedDecs, 18, "_onStreamsAdded"], [_onStreamsUpdatedDecs, 18, "_onStreamsUpdated"], [_onStreamsRemovedDecs, 18, "_onStreamsRemoved"], [_onPerformanceUpdatedDecs, 18, "_onPerformanceUpdated"], [bound, 2, "_handleCameraChanged"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_preHandleSettingDecs, 18, "_preHandleSetting"], [_setMeetingSettingsToLocalStorageDecs, 18, "_setMeetingSettingsToLocalStorage"], [bound, 2, "_handleSystemSelectedDeviceChanged"]], []).e, 15);
1440
+ var _applyDecs$e = _slicedToArray(_applyDecs(_SettingStoreBase, [[observable, 1, "loudestStreamVolumeLevel"], [observable, 1, "microphoneVolumeLevel"], [observable, 1, "isWifiConnected"], [observable, 1, "isMainRoom"], [observable, 1, "networkState"], [observable, 1, "performanceState"], [observable, 1, "localAudioStreamMap"], [observable, 1, "remoteAudioStreamMap"], [observable, 1, "localVideoStreamMap"], [observable, 1, "remoteVideoStreamMap"], [observable, 1, "systemMemorySize"], [observable, 1, "systemCpuDesc"], [observable, 1, "isHiddenMeetingTab"], [computed, 3, "maxVideoSendInfo"], [computed, 3, "maxVideoReceiveInfo"], [computed, 3, "sendScreenShareInfo"], [computed, 3, "receiveScreenShareInfo"], [computed, 3, "microphoneVolumeDb"], [computed, 3, "speakerVolumeDb"], [computed, 3, "speakerTestVolumeLevel"], [computed, 3, "microphoneTestVolumeLevel"], [computed, 3, "speakerVolume"], [computed, 3, "microphoneVolume"], [computed, 3, "isLocalMirrorEnabled"], [computed, 3, "isLocalEditBeautyOptions"], [computed, 3, "currentBeautyKey"], [computed, 3, "beautyOptions"], [computed, 3, "cameraDeviceId"], [computed, 3, "cameraEnabled"], [computed, 3, "showForceOpenEffectDialog"], [computed, 3, "currentVirtualBackgroundName"], [computed, 3, "cameraDeviceList"], [computed, 3, "microphoneDeviceId"], [computed, 3, "speakerDeviceId"], [computed, 3, "speakerDeviceList"], [computed, 3, "microphoneDeviceList"], [computed, 3, "enableBeauty"], [computed, 3, "virtualBackgroundList"], [computed, 3, "currentIsMirror"], [computed, 3, "microphoneDetecting"], [computed, 3, "speakerDetecting"], [computed, 3, "setting"], [computed, 3, "media"], [computed, 3, "sceneConfig"], [computed, 3, "sharedSttSettingDataSource"], [computed, 3, "sttProvider"], [computed, 3, "languageOptions"], [computed, 3, "captionFontSize"], [computed, 3, "captionStyle"], [computed, 3, "isTwoLineCaptionEnabled"], [computed, 3, "isTwoLineTranscribingEnabled"], [computed, 3, "translateLanguage"], [computed, 3, "sharedInterpreterDataSource"], [computed, 3, "currentRoomControl"], [computed, 3, "interpreterRoomControl"], [computed, 3, "isVirtualBackgroundSupported"], [computed, 3, "isBeautyModeAbilitySupported"], [bound, 2, "_syncSystemInfo"], [bound, 2, "initSettingConfig"], [bound, 2, "enableVirtualBackground"], [bound, 2, "setEditBeautyKey"], [bound, 2, "enableBeautyEffect"], [bound, 2, "_initReactions"], [bound, 2, "setCameraDevice"], [bound, 2, "setMicrophoneDevice"], [bound, 2, "stopSpeakerTest"], [bound, 2, "startSpeakerTest"], [bound, 2, "setSpeakerDevice"], [bound, 2, "setSpeakerVolume"], [bound, 2, "setMicrophoneVolume"], [bound, 2, "setVideoOrientation"], [bound, 2, "setBeautyOptions"], [bound, 2, "toggleLocalMirrorPreview"], [bound, 2, "startVideoPreview"], [bound, 2, "stopVideoPreview"], [bound, 2, "handleForceOpenVideoEffect"], [bound, 2, "handleCancelForceOpenVideoEffect"], [bound, 2, "toggleLocalMirror"], [bound, 2, "setSettingVideoOpened"], [bound, 2, "setCaptionFontSize"], [bound, 2, "startMicrophoneTest"], [bound, 2, "stopMicrophoneTest"], [_setDialogConfigDecs, 18, "setDialogConfig"], [_setSettingDecs, 18, "setSetting"], [_changeMediaSettingDecs, 18, "changeMediaSetting"], [_toggleTwoLineCaptionEnabledDecs, 18, "toggleTwoLineCaptionEnabled"], [_toggleTwoLineTranscribingEnabledDecs, 18, "toggleTwoLineTranscribingEnabled"], [_subscribeTranslateLanguageDecs, 18, "subscribeTranslateLanguage"], [_handleJoinRoomDecs, 18, "handleJoinRoom"], [_handleExitRoomDecs, 18, "handleExitRoom"], [_resetSettingStoreDecs, 18, "_resetSettingStore"], [_handleJoinMainRoomDecs, 18, "_handleJoinMainRoom"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLocalAudioStatsUpdatedDecs, 18, "_onLocalAudioStatsUpdated"], [_onRemoteAudioStatsUpdatedDecs, 18, "_onRemoteAudioStatsUpdated"], [_onLocalVideoStatsUpdatedDecs, 18, "_onLocalVideoStatsUpdated"], [_onRemoteVideoStatsUpdatedDecs, 18, "_onRemoteVideoStatsUpdated"], [_onStreamsAddedDecs, 18, "_onStreamsAdded"], [_onStreamsUpdatedDecs, 18, "_onStreamsUpdated"], [_onStreamsRemovedDecs, 18, "_onStreamsRemoved"], [_onPerformanceUpdatedDecs, 18, "_onPerformanceUpdated"], [bound, 2, "_handleCameraChanged"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_preHandleSettingDecs, 18, "_preHandleSetting"], [_setMeetingSettingsToLocalStorageDecs, 18, "_setMeetingSettingsToLocalStorage"], [bound, 2, "_handleSystemSelectedDeviceChanged"], [bound, 2, "_showSystemSelectedDeviceChangedToast"], [bound, 2, "_windows10UnsupportAirPods"], [bound, 2, "_handleCameraStateChanged"], [bound, 2, "_handleMicrophoneStateChanged"], [bound, 2, "_handleMediaPermissionMissing"]], []).e, 14);
1425
1441
  _init_loudestStreamVolumeLevel = _applyDecs$e[0];
1426
1442
  _init_microphoneVolumeLevel = _applyDecs$e[1];
1427
1443
  _init_isWifiConnected = _applyDecs$e[2];
@@ -1434,7 +1450,6 @@ _init_localVideoStreamMap = _applyDecs$e[8];
1434
1450
  _init_remoteVideoStreamMap = _applyDecs$e[9];
1435
1451
  _init_systemMemorySize = _applyDecs$e[10];
1436
1452
  _init_systemCpuDesc = _applyDecs$e[11];
1437
- _init_getSystemInfoTimer = _applyDecs$e[12];
1438
- _init_isHiddenMeetingTab = _applyDecs$e[13];
1439
- _initProto = _applyDecs$e[14];
1453
+ _init_isHiddenMeetingTab = _applyDecs$e[12];
1454
+ _initProto = _applyDecs$e[13];
1440
1455
  export var StoreContext = /*#__PURE__*/createContext(null);
@@ -60,6 +60,7 @@ import { FcrUIObjectKeys } from '../../object-manager';
60
60
  import { AudioDeviceWhiteListManager } from './audio-whiteList/audio-whiteList-manager';
61
61
  import { AgoraScheduler } from 'agora-foundation/lib/schedule';
62
62
  import { bound, trace } from 'agora-foundation/lib/decorator';
63
+ import { FcrUIDialogKey } from '../../utilities/constant';
63
64
  var SettingStore = /*#__PURE__*/function (_SettingStoreBase) {
64
65
  function SettingStore(args) {
65
66
  var _this;
@@ -67,13 +68,26 @@ var SettingStore = /*#__PURE__*/function (_SettingStoreBase) {
67
68
  _this = _callSuper(this, SettingStore, [args]);
68
69
  _defineProperty(_this, "_renderer", void _initProto(_this));
69
70
  _defineProperty(_this, "_audioDeviceWhiteListManager", null);
71
+ _defineProperty(_this, "_dialogObserver", {
72
+ onDialogOpen: function onDialogOpen(dialogKey) {
73
+ if (dialogKey === FcrUIDialogKey.SETTINGS) {
74
+ _this._pollingTask.start();
75
+ }
76
+ },
77
+ onDialogClose: function onDialogClose(dialogKey) {
78
+ if (dialogKey === FcrUIDialogKey.SETTINGS) {
79
+ _this._pollingTask.stop();
80
+ }
81
+ }
82
+ });
70
83
  _defineProperty(_this, "_audioDeviceObserver", {
71
84
  onMicrophoneChanged: _this._handleMicrophoneChanged,
72
85
  onMicrophoneListUpdated: _this._handleMicrophoneListUpdated
73
86
  });
74
87
  var objectManager = args.objectManager;
75
88
  _this._renderer = objectManager.getObject(FcrUIObjectKeys.RENDERER_WRAPPER);
76
- _this._windowProvider = objectManager.getObject(FcrUIObjectKeys.P_WINDOW_PROVIDER);
89
+ _this._dialogProvider = objectManager.getObject(FcrUIObjectKeys.P_DIALOG_PROVIDER);
90
+ _this._dialogProvider.addObserver(_this._dialogObserver);
77
91
  var delegate = {
78
92
  getMicrophoneId: function getMicrophoneId() {
79
93
  return _this.deviceProvider.microphoneId || '';
@@ -97,6 +111,9 @@ var SettingStore = /*#__PURE__*/function (_SettingStoreBase) {
97
111
  _this._audioDeviceWhiteListManager = new AudioDeviceWhiteListManager(delegate);
98
112
  _this.deviceProvider.addObserver(_this._audioDeviceObserver);
99
113
  _this._pollingTask = AgoraScheduler.shared.addPollingTask(_this._syncSystemInfo, 5000, true);
114
+ if (!_this._dialogProvider.isDialogOpenedById(FcrUIDialogKey.SETTINGS)) {
115
+ _this._pollingTask.stop();
116
+ }
100
117
  return _this;
101
118
  }
102
119
  _inherits(SettingStore, _SettingStoreBase);
@@ -158,6 +175,7 @@ var SettingStore = /*#__PURE__*/function (_SettingStoreBase) {
158
175
  (_this$_audioDeviceWhi4 = this._audioDeviceWhiteListManager) === null || _this$_audioDeviceWhi4 === void 0 || _this$_audioDeviceWhi4.release();
159
176
  this._audioDeviceWhiteListManager = null;
160
177
  this.deviceProvider.removeObserver(this._audioDeviceObserver);
178
+ this._dialogProvider.removeObserver(this._dialogObserver);
161
179
  }
162
180
  }]);
163
181
  }(SettingStoreBase);
@@ -16,7 +16,7 @@ import './index.css';
16
16
  import { observer } from 'mobx-react';
17
17
  import { StoreContext } from '../store.base';
18
18
  import { FcrCheckbox } from 'agora-ui-foundation/lib/components/checkbox';
19
- import { useNamespace } from '../../../utilities/useNamespace';
19
+ import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
20
20
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
21
21
  export var TranslateSettings = observer(function () {
22
22
  var ns = useNamespace('translate-settings');
@@ -8,7 +8,7 @@ import { FcrUIHighlightElement } from '../../../utilities/constant';
8
8
  import { isElectron } from 'agora-foundation/lib/utilities/env';
9
9
  import classNames from 'classnames';
10
10
  import { HelpQuestionIcon } from '../view';
11
- import { useNamespace } from '../../../utilities/useNamespace';
11
+ import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  export var VideoSettingsBasic = observer(function (_ref) {
14
14
  var cameraDeviceId = _ref.cameraDeviceId,
@@ -13,7 +13,7 @@ import { VideoEffect } from '../../device-pretest/settings/video-effect';
13
13
  import { VirtualBackgroundSetting } from '../../device-pretest/settings/virtual-background-setting';
14
14
  import { Beauty } from '../../device-pretest/settings/beauty';
15
15
  import { VideoSettingsBasic } from './video-settings-basic';
16
- import { useNamespace } from '../../../utilities/useNamespace';
16
+ import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
17
17
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
18
18
  export var VideoSettings = observer(function (props) {
19
19
  var ns = useNamespace('device-settings-video');
@@ -35,8 +35,8 @@ export var VideoSettings = observer(function (props) {
35
35
  toggleLocalMirrorPreview = _useContext.toggleLocalMirrorPreview,
36
36
  cameraDeviceId = _useContext.cameraDeviceId,
37
37
  cameraEnabled = _useContext.cameraEnabled,
38
- startVideo = _useContext.startVideo,
39
- stopVideo = _useContext.stopVideo,
38
+ startVideoPreview = _useContext.startVideoPreview,
39
+ stopVideoPreview = _useContext.stopVideoPreview,
40
40
  showForceOpenEffectDialog = _useContext.showForceOpenEffectDialog,
41
41
  handleForceOpenVideoEffect = _useContext.handleForceOpenVideoEffect,
42
42
  handleCancelForceOpenVideoEffect = _useContext.handleCancelForceOpenVideoEffect,
@@ -49,7 +49,9 @@ export var VideoSettings = observer(function (props) {
49
49
  enableBeauty = _useContext.enableBeauty,
50
50
  virtualBackgroundList = _useContext.virtualBackgroundList,
51
51
  currentIsMirror = _useContext.currentIsMirror,
52
- dialogConfig = _useContext.dialogConfig;
52
+ dialogConfig = _useContext.dialogConfig,
53
+ isBeautyModeAbilitySupported = _useContext.isBeautyModeAbilitySupported,
54
+ isVirtualBackgroundSupported = _useContext.isVirtualBackgroundSupported;
53
55
  var _useState3 = useState(beautyOptions[currentBeautyKey] || DEFAULT_BEAUTY_VALUE),
54
56
  _useState4 = _slicedToArray(_useState3, 2),
55
57
  currentEditValue = _useState4[0],
@@ -107,9 +109,9 @@ export var VideoSettings = observer(function (props) {
107
109
  showCameraPreview: true,
108
110
  showTopTips: !cameraEnabled,
109
111
  startLocalVideo: function startLocalVideo(view) {
110
- startVideo(currentIsMirror, view);
112
+ startVideoPreview(currentIsMirror, view);
111
113
  },
112
- stopLocalVideo: stopVideo,
114
+ stopLocalVideo: stopVideoPreview,
113
115
  currentVideoViewType: currentVideoViewType,
114
116
  handleVideoViewChange: handleVideoViewChange,
115
117
  showRotation: isElectron()
@@ -134,7 +136,9 @@ export var VideoSettings = observer(function (props) {
134
136
  enableBeautyEffect: enableBeautyEffect,
135
137
  beautySettingOption: beautyOptions
136
138
  })
137
- }
139
+ },
140
+ isBeautyModeAbilitySupported: isBeautyModeAbilitySupported,
141
+ isVirtualBackgroundSupported: isVirtualBackgroundSupported
138
142
  }), /*#__PURE__*/_jsx(FcrBasicConfirmDialog, {
139
143
  visible: showForceOpenEffectDialog,
140
144
  onOk: handleForceOpenVideoEffect,
@@ -20,7 +20,7 @@ import GeneralSettings from './general-settings/general-settings';
20
20
  import { FcrToolTip } from 'agora-ui-foundation/lib/components/tooltip';
21
21
  import { DeviceSettingTab } from './type';
22
22
  import { StoreContext } from './store.base';
23
- import { useNamespace } from '../../utilities/useNamespace';
23
+ import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
24
24
  import CaptionAndTranscribing from './caption_and_transcribing';
25
25
  // import StorageSettings from './storage-settings/storage-settings';
26
26
  // import TranslateSettings from './translate-settings/translate-settings';
@@ -2,91 +2,5 @@ import { observer } from 'mobx-react';
2
2
  import './index.css';
3
3
  var FcrScreenShareControlBar = observer(function (props) {
4
4
  return null;
5
- // const { secondaryWindowProprs } = props;
6
- // const {
7
- // screenShareWindowData,
8
- // zoomIn,
9
- // zoomOut,
10
- // fullContainer,
11
- // setOriginScalc,
12
- // toggleIsShowToolbar,
13
- // annotationHasStart,
14
- // isShowToolbar,
15
- // isZoomMaxmum,
16
- // isZoomMinimum,
17
- // isCurrentOriginal,
18
- // isAspectRatioPreserved,
19
- // isAnnotationSupported,
20
- // allowAnnotationSelfWriteState,
21
- // participantShareCanWeAnnotation,
22
- // } = useContext(StoreContext);
23
- // const transI18n = useI18n();
24
-
25
- // const hasScreenSharing =
26
- // screenShareWindowData && screenShareWindowData.videoSourceType === FcrVideoSourceType.SCREEN;
27
- // const hasLoopbackAudioStream =
28
- // hasScreenSharing &&
29
- // screenShareWindowData.hasLoopbackSharing &&
30
- // screenShareWindowData.hasMicrophoneAudioStream;
31
-
32
- // const clickFn = useCallback(() => {
33
- // toggleIsShowToolbar();
34
- // }, []);
35
-
36
- // return (
37
- // <div className="fcr-screen-share-controlbar">
38
- // <div className="fcr-screen-share-controlbar-left">
39
- // {screenShareWindowData ? (
40
- // <>
41
- // <div className="fcr-screen-share-controlbar-username">
42
- // {screenShareWindowData.userName}
43
- // {transI18n('fmt_uimanager_labels_sharing')}
44
- // </div>
45
- // <FcrIcon
46
- // type={
47
- // !!hasLoopbackAudioStream
48
- // ? FcrIconType.FCR_DEVICEAUDIOON
49
- // : FcrIconType.FCR_DEVICEAUDIOOFF
50
- // }
51
- // size={22}
52
- // colors={{ iconPrimary: 'var(--fcr_ui_scene_ramp_green6)' }}
53
- // style={{ marginRight: '10px' }}
54
- // />
55
- // </>
56
- // ) : null}
57
- // </div>
58
-
59
- // <div className="fcr-screen-share-controlbar-center">
60
- // <FcrScreenShareZoomInBtn
61
- // isMinimum={secondaryWindowProprs?.isZoomMinimum ?? isZoomMinimum}
62
- // zoomIn={secondaryWindowProprs?.zoomIn || zoomIn}
63
- // />
64
- // <FcrScreenShareZoomOutBtn
65
- // isMaxmum={secondaryWindowProprs?.isZoomMaxmum ?? isZoomMaxmum}
66
- // zoomOut={secondaryWindowProprs?.zoomOut || zoomOut}
67
- // />
68
- // <FcrScreenShareFullContainerBtn
69
- // isAdaptived={secondaryWindowProprs?.isAspectRatioPreserved ?? isAspectRatioPreserved}
70
- // fullContainer={secondaryWindowProprs?.fullContainer || fullContainer}
71
- // />
72
- // <FcrScreenShareOrgSizeBtn
73
- // isOriginal={secondaryWindowProprs?.isCurrentOriginal ?? isCurrentOriginal}
74
- // setOriginScalc={secondaryWindowProprs?.setOriginScalc || setOriginScalc}
75
- // />
76
- // </div>
77
- // <div className="fcr-screen-share-controlbar-right">
78
- // {isAnnotationSupported && annotationHasStart && participantShareCanWeAnnotation() && (
79
- // <FcrScreenShareAnnotationBtn
80
- // visible={
81
- // secondaryWindowProprs ? secondaryWindowProprs.isShowToolbarToggle : annotationHasStart
82
- // }
83
- // disable={!allowAnnotationSelfWriteState}
84
- // isShowToolbar={isShowToolbar}
85
- // clickFn={clickFn}
86
- // />
87
- // )}
88
- // </div>
89
- // </div>
90
- // );
91
5
  });
92
6
  export default FcrScreenShareControlBar;