fcr-ui-scene 3.1.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/installer/icons/favicon.ico +0 -0
  2. package/installer/icons/favicon.png +0 -0
  3. package/installer/mac/entitlements.mac.plist +16 -0
  4. package/lib/base.d.ts +0 -1
  5. package/lib/base.js +16 -0
  6. package/lib/common/device-store.d.ts +4 -5
  7. package/lib/common/device-store.js +178 -86
  8. package/lib/common/device-stream-store.d.ts +3 -2
  9. package/lib/common/device-stream-store.js +94 -72
  10. package/lib/common/event-store.d.ts +20 -3
  11. package/lib/common/event-store.js +43 -5
  12. package/lib/common/security-store.d.ts +16 -16
  13. package/lib/common/security-store.js +278 -124
  14. package/lib/electron/app.js +13 -5
  15. package/lib/electron/bootstrap-dev.d.ts +1 -0
  16. package/lib/electron/bootstrap-dev.js +51 -0
  17. package/lib/electron/bootstrap-sdk.d.ts +1 -0
  18. package/lib/electron/bootstrap-sdk.js +56 -0
  19. package/lib/electron/bootstrap.d.ts +1 -0
  20. package/lib/electron/bootstrap.js +56 -0
  21. package/lib/electron/default-options.js +1 -1
  22. package/lib/electron/dev.d.ts +1 -0
  23. package/lib/electron/dev.js +51 -0
  24. package/lib/electron/injections.d.ts +3 -4
  25. package/lib/electron/injections.js +46 -33
  26. package/lib/electron/logger.d.ts +6 -0
  27. package/lib/electron/logger.js +66 -0
  28. package/lib/electron/main.js +15 -11
  29. package/lib/electron/plugins/meeting-state.d.ts +2 -0
  30. package/lib/electron/plugins/meeting-state.js +39 -0
  31. package/lib/electron/preload.js +2 -1
  32. package/lib/electron/tools.js +9 -0
  33. package/lib/electron/window.d.ts +1 -1
  34. package/lib/electron/window.js +14 -2
  35. package/lib/fragments/control-bar/context.d.ts +0 -1
  36. package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
  37. package/lib/fragments/control-bar/control-bar-store.js +394 -81
  38. package/lib/fragments/control-bar/device/index.js +12 -3
  39. package/lib/fragments/control-bar/index.css +15 -10
  40. package/lib/fragments/control-bar/index.js +19 -1
  41. package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
  42. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
  43. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
  44. package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
  45. package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
  46. package/lib/fragments/control-bar/more-actions/index.css +53 -0
  47. package/lib/fragments/control-bar/more-actions/index.js +77 -37
  48. package/lib/fragments/control-bar/security-content/index.css +10 -0
  49. package/lib/fragments/control-bar/security-content/index.js +43 -18
  50. package/lib/fragments/control-bar/view.js +8 -2
  51. package/lib/fragments/live-streaming/context.d.ts +0 -1
  52. package/lib/fragments/live-streaming/store.js +27 -17
  53. package/lib/fragments/share-screen-selection/context.d.ts +0 -1
  54. package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -1
  55. package/lib/fragments/share-screen-selection/selection-store.js +34 -33
  56. package/lib/fragments/share-screen-selection/view.js +7 -0
  57. package/lib/fragments/toolbar/components/color-picker/components/color.js +2 -0
  58. package/lib/fragments/toolbar/components/color-picker/components/panel.js +4 -0
  59. package/lib/fragments/toolbar/components/color-picker/components/picker.js +2 -0
  60. package/lib/fragments/toolbar/components/color-picker/index.js +5 -1
  61. package/lib/fragments/toolbar/components/color-picker.js +3 -1
  62. package/lib/fragments/toolbar/components/eraser-picker.js +4 -13
  63. package/lib/fragments/toolbar/components/extension-toolbar-item.js +5 -0
  64. package/lib/fragments/toolbar/components/extra-tool-picker.js +4 -0
  65. package/lib/fragments/toolbar/components/pen-picker.js +2 -0
  66. package/lib/fragments/toolbar/components/screen-capture-picker.js +2 -0
  67. package/lib/fragments/toolbar/components/shape-picker.js +2 -0
  68. package/lib/fragments/toolbar/hooks.d.ts +1 -1
  69. package/lib/fragments/toolbar/hooks.js +13 -8
  70. package/lib/fragments/toolbar/store.d.ts +4 -4
  71. package/lib/fragments/toolbar/store.js +20 -2
  72. package/lib/fragments/toolbar/view.js +2 -0
  73. package/lib/global.d.ts +1 -0
  74. package/lib/hooks/meeting-time.d.ts +2 -2
  75. package/lib/login-confirm-dialog.d.ts +12 -0
  76. package/lib/login-confirm-dialog.js +80 -0
  77. package/lib/modules/action-bar/action-bar-collapes-items.js +14 -5
  78. package/lib/modules/action-bar/chat/index.js +6 -6
  79. package/lib/modules/action-bar/context.d.ts +0 -1
  80. package/lib/modules/action-bar/device/index.css +7 -2
  81. package/lib/modules/action-bar/device/index.d.ts +2 -2
  82. package/lib/modules/action-bar/device/index.js +6 -4
  83. package/lib/modules/action-bar/index.css +63 -12
  84. package/lib/modules/action-bar/index.d.ts +3 -2
  85. package/lib/modules/action-bar/index.dev.js +8 -7
  86. package/lib/modules/action-bar/index.js +21 -0
  87. package/lib/modules/action-bar/item-placement.d.ts +1 -2
  88. package/lib/modules/action-bar/item.js +5 -0
  89. package/lib/modules/action-bar/leave/assign-host.d.ts +3 -1
  90. package/lib/modules/action-bar/leave/assign-host.js +7 -7
  91. package/lib/modules/action-bar/leave/index.js +35 -7
  92. package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -1
  93. package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
  94. package/lib/modules/action-bar/more/poppover-content.d.ts +0 -1
  95. package/lib/modules/action-bar/more/poppover-content.js +14 -4
  96. package/lib/modules/action-bar/participants/index.css +12 -0
  97. package/lib/modules/action-bar/participants/index.js +21 -14
  98. package/lib/modules/action-bar/screen-share/index.js +5 -1
  99. package/lib/modules/action-bar/screen-share/submenu.js +17 -22
  100. package/lib/modules/action-bar/security/drop-menu.js +124 -14
  101. package/lib/modules/action-bar/security/index.js +1 -1
  102. package/lib/modules/action-bar/settings/index.js +1 -1
  103. package/lib/modules/action-bar/store.d.ts +45 -21
  104. package/lib/modules/action-bar/store.js +544 -134
  105. package/lib/modules/action-bar/view.js +65 -42
  106. package/lib/modules/audio-stream/index.js +12 -6
  107. package/lib/modules/chat/chat-bar/index.js +46 -27
  108. package/lib/modules/chat/chat-select/index.css +19 -4
  109. package/lib/modules/chat/chat-select/index.d.ts +0 -1
  110. package/lib/modules/chat/chat-select/index.js +29 -3
  111. package/lib/modules/chat/chat.d.ts +2 -3
  112. package/lib/modules/chat/chat.js +210 -107
  113. package/lib/modules/chat/contex.d.ts +0 -1
  114. package/lib/modules/chat/demo-wrapper.d.ts +0 -1
  115. package/lib/modules/chat/index.css +49 -0
  116. package/lib/modules/chat/index.d.ts +3 -3
  117. package/lib/modules/chat/index.dev.js +4 -4
  118. package/lib/modules/chat/index.js +32 -11
  119. package/lib/modules/chat/message-list.js +81 -49
  120. package/lib/modules/chat/store.d.ts +50 -4
  121. package/lib/modules/chat/store.js +303 -124
  122. package/lib/modules/chat/util.js +1 -1
  123. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -0
  124. package/lib/modules/connection-gateway/components/phone/index.js +2 -0
  125. package/lib/modules/connection-gateway/index.d.ts +3 -2
  126. package/lib/modules/connection-gateway/index.js +2 -0
  127. package/lib/modules/connection-gateway/store.d.ts +6 -4
  128. package/lib/modules/connection-gateway/store.js +46 -15
  129. package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +1 -0
  130. package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -2
  131. package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +0 -1
  132. package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
  133. package/lib/modules/device-pretest/context.d.ts +0 -1
  134. package/lib/modules/device-pretest/index.css +0 -4
  135. package/lib/modules/device-pretest/index.d.ts +0 -1
  136. package/lib/modules/device-pretest/index.js +2 -1
  137. package/lib/modules/device-pretest/settings/beauty.js +19 -6
  138. package/lib/modules/device-pretest/settings/video-effect.d.ts +0 -1
  139. package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -0
  140. package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -0
  141. package/lib/modules/device-pretest/store.js +34 -19
  142. package/lib/modules/dialog/components/chat/electron.js +3 -2
  143. package/lib/modules/dialog/components/chat/index.js +1 -1
  144. package/lib/modules/dialog/components/confirm/electron.js +7 -5
  145. package/lib/modules/dialog/components/confirm/index.js +16 -2
  146. package/lib/modules/dialog/components/connection-gateway/electron.js +4 -2
  147. package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
  148. package/lib/modules/dialog/components/device-setting/electron.d.ts +2 -0
  149. package/lib/modules/dialog/components/device-setting/electron.js +74 -0
  150. package/lib/modules/dialog/components/device-setting/index.css +26 -0
  151. package/lib/modules/dialog/components/device-setting/index.d.ts +4 -0
  152. package/lib/modules/dialog/components/device-setting/index.js +60 -0
  153. package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
  154. package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
  155. package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
  156. package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
  157. package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
  158. package/lib/modules/dialog/components/participant/electron.js +8 -2
  159. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
  160. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
  161. package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
  162. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
  163. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
  164. package/lib/modules/dialog/components/share-screen-selection/index.js +1 -1
  165. package/lib/modules/dialog/components/whiteboard/index.js +2 -1
  166. package/lib/modules/dialog/context.d.ts +0 -1
  167. package/lib/modules/dialog/dialogs.d.ts +0 -2
  168. package/lib/modules/dialog/dialogs.js +62 -103
  169. package/lib/modules/dialog/index.css +7 -6
  170. package/lib/modules/dialog/index.d.ts +1 -1
  171. package/lib/modules/dialog/index.js +17 -0
  172. package/lib/modules/dialog/store.d.ts +6 -2
  173. package/lib/modules/dialog/store.js +52 -9
  174. package/lib/modules/dialog/view.js +2 -0
  175. package/lib/modules/event-notification/context.d.ts +2 -0
  176. package/lib/modules/event-notification/context.js +9 -0
  177. package/lib/modules/event-notification/index.css +58 -0
  178. package/lib/modules/event-notification/index.d.ts +13 -0
  179. package/lib/modules/event-notification/index.js +48 -0
  180. package/lib/modules/event-notification/store.d.ts +17 -0
  181. package/lib/modules/event-notification/store.js +133 -0
  182. package/lib/modules/event-notification/view.d.ts +5 -0
  183. package/lib/modules/event-notification/view.js +114 -0
  184. package/lib/modules/event-toast/context.d.ts +0 -1
  185. package/lib/modules/event-toast/store.js +16 -0
  186. package/lib/modules/invite/context.d.ts +0 -1
  187. package/lib/modules/invite/index.css +4 -4
  188. package/lib/modules/invite/index.d.ts +2 -2
  189. package/lib/modules/invite/pstn-invite.js +4 -1
  190. package/lib/modules/invite/store.d.ts +2 -2
  191. package/lib/modules/invite/store.js +27 -7
  192. package/lib/modules/invite/voip-invite.d.ts +0 -1
  193. package/lib/modules/invite/voip-invite.js +1 -1
  194. package/lib/modules/layout/components/Aside.d.ts +0 -1
  195. package/lib/modules/layout/components/Aside.js +4 -1
  196. package/lib/modules/layout/components/Carousel.js +6 -5
  197. package/lib/modules/layout/components/Gallery.js +16 -9
  198. package/lib/modules/layout/components/Layout.js +82 -57
  199. package/lib/modules/layout/components/index.css +42 -5
  200. package/lib/modules/layout/components/index.js +3 -0
  201. package/lib/modules/layout/context.d.ts +0 -1
  202. package/lib/modules/layout/index.css +30 -0
  203. package/lib/modules/layout/index.dev.js +11 -11
  204. package/lib/modules/layout/index.js +0 -6
  205. package/lib/modules/layout/member-window/index.css +5 -5
  206. package/lib/modules/layout/member-window/index.d.ts +7 -7
  207. package/lib/modules/layout/member-window/index.js +59 -13
  208. package/lib/modules/layout/store.d.ts +61 -50
  209. package/lib/modules/layout/store.js +517 -342
  210. package/lib/modules/layout/type.d.ts +2 -1
  211. package/lib/modules/layout/video-window-datasource.d.ts +14 -8
  212. package/lib/modules/layout/video-window-datasource.js +129 -78
  213. package/lib/modules/live-streaming/context.d.ts +0 -1
  214. package/lib/modules/live-streaming/index.d.ts +2 -2
  215. package/lib/modules/live-streaming/index.dev.js +5 -4
  216. package/lib/modules/live-streaming/store.d.ts +2 -2
  217. package/lib/modules/live-streaming/store.js +32 -11
  218. package/lib/modules/participant/attendee/index.d.ts +12 -3
  219. package/lib/modules/participant/attendee/index.js +142 -30
  220. package/lib/modules/participant/context.d.ts +0 -1
  221. package/lib/modules/participant/index.css +20 -0
  222. package/lib/modules/participant/index.d.ts +5 -2
  223. package/lib/modules/participant/index.dev.js +14 -12
  224. package/lib/modules/participant/index.js +27 -0
  225. package/lib/modules/participant/member-list-data-source.d.ts +3 -3
  226. package/lib/modules/participant/member-list-data-source.js +29 -3
  227. package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
  228. package/lib/modules/participant/room-control-drop-menu/index.js +35 -1
  229. package/lib/modules/participant/store.d.ts +59 -34
  230. package/lib/modules/participant/store.js +541 -222
  231. package/lib/modules/participant/view.d.ts +6 -6
  232. package/lib/modules/participant/view.js +138 -34
  233. package/lib/modules/setting/audio-settings/audio-settings.js +16 -12
  234. package/lib/modules/setting/audio-settings/index.css +2 -2
  235. package/lib/modules/setting/context.d.ts +0 -1
  236. package/lib/modules/setting/general-settings/general-settings.js +2 -1
  237. package/lib/modules/setting/general-settings/index.css +2 -2
  238. package/lib/modules/setting/index.css +1 -5
  239. package/lib/modules/setting/index.d.ts +2 -2
  240. package/lib/modules/setting/index.dev.js +14 -12
  241. package/lib/modules/setting/index.js +16 -0
  242. package/lib/modules/setting/minutes-settings/index.css +65 -0
  243. package/lib/modules/setting/minutes-settings/minutes-settings.d.ts +4 -0
  244. package/lib/modules/setting/minutes-settings/minutes-settings.js +159 -0
  245. package/lib/modules/setting/state/index.css +0 -4
  246. package/lib/modules/setting/state/index.js +11 -1
  247. package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
  248. package/lib/modules/setting/store.d.ts +7 -5
  249. package/lib/modules/setting/store.js +69 -46
  250. package/lib/modules/setting/translate-settings/index.css +45 -0
  251. package/lib/modules/setting/translate-settings/language-select.d.ts +12 -0
  252. package/lib/modules/setting/translate-settings/language-select.js +50 -0
  253. package/lib/modules/setting/translate-settings/translate-settings.d.ts +4 -0
  254. package/lib/modules/setting/translate-settings/translate-settings.js +139 -0
  255. package/lib/modules/setting/video-settings/index.css +15 -6
  256. package/lib/modules/setting/video-settings/video-settings-basic.js +3 -2
  257. package/lib/modules/setting/video-settings/video-settings.js +5 -1
  258. package/lib/modules/setting/view.js +34 -2
  259. package/lib/modules/share-screen/index.d.ts +4 -2
  260. package/lib/modules/share-screen/index.dev.js +17 -14
  261. package/lib/modules/share-screen/index.js +2 -0
  262. package/lib/modules/share-screen/selection/index.css +2 -0
  263. package/lib/modules/share-screen/selection/index.js +44 -6
  264. package/lib/modules/share-screen/share-state-bar/index.css +49 -11
  265. package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -1
  266. package/lib/modules/share-screen/share-state-bar/index.js +51 -20
  267. package/lib/modules/share-screen/store.d.ts +23 -13
  268. package/lib/modules/share-screen/store.js +733 -606
  269. package/lib/modules/state-bar/context.d.ts +0 -1
  270. package/lib/modules/state-bar/index.css +2 -2
  271. package/lib/modules/state-bar/index.d.ts +2 -2
  272. package/lib/modules/state-bar/index.dev.js +12 -10
  273. package/lib/modules/state-bar/layout-config.js +2 -0
  274. package/lib/modules/state-bar/live-streaming-state.js +3 -0
  275. package/lib/modules/state-bar/meeting-detail.css +6 -4
  276. package/lib/modules/state-bar/meeting-details.js +29 -3
  277. package/lib/modules/state-bar/meeting-network-state.css +14 -3
  278. package/lib/modules/state-bar/meeting-network-state.js +10 -4
  279. package/lib/modules/state-bar/recording.js +9 -11
  280. package/lib/modules/state-bar/store.d.ts +7 -5
  281. package/lib/modules/state-bar/store.js +68 -8
  282. package/lib/modules/state-bar/view.js +4 -8
  283. package/lib/modules/video-window/context.d.ts +0 -1
  284. package/lib/modules/video-window/deviceState/index.d.ts +3 -3
  285. package/lib/modules/video-window/index.css +1 -0
  286. package/lib/modules/video-window/members/index.js +7 -4
  287. package/lib/modules/video-window/store.d.ts +5 -4
  288. package/lib/modules/video-window/store.js +49 -17
  289. package/lib/modules/video-window/topControl/index.js +7 -0
  290. package/lib/modules/video-window/view.js +2 -0
  291. package/lib/modules/waiting-room-layout/context.d.ts +2 -0
  292. package/lib/modules/waiting-room-layout/context.js +9 -0
  293. package/lib/modules/waiting-room-layout/index.css +71 -0
  294. package/lib/modules/waiting-room-layout/index.d.ts +8 -0
  295. package/lib/modules/waiting-room-layout/index.js +47 -0
  296. package/lib/modules/waiting-room-layout/store.d.ts +30 -0
  297. package/lib/modules/waiting-room-layout/store.js +189 -0
  298. package/lib/modules/waiting-room-layout/type.d.ts +0 -0
  299. package/lib/modules/waiting-room-layout/type.js +1 -0
  300. package/lib/modules/waiting-room-layout/view.d.ts +3 -0
  301. package/lib/modules/waiting-room-layout/view.js +67 -0
  302. package/lib/modules/whiteboard/app.js +2 -8
  303. package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
  304. package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
  305. package/lib/modules/whiteboard/components/control-bar/store.js +29 -29
  306. package/lib/modules/whiteboard/components/loading/index.js +2 -2
  307. package/lib/modules/whiteboard/components/multi-window/index.js +8 -3
  308. package/lib/modules/whiteboard/components/pagination/store.d.ts +0 -1
  309. package/lib/modules/whiteboard/components/progress/electron.js +3 -2
  310. package/lib/modules/whiteboard/components/progress/style.css +4 -3
  311. package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
  312. package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
  313. package/lib/modules/whiteboard/components/switch-theme/index.js +29 -17
  314. package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
  315. package/lib/modules/whiteboard/components/switch-theme/item.js +11 -2
  316. package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +2 -1
  317. package/lib/modules/whiteboard/components/switch-theme/libs.js +21 -20
  318. package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -0
  319. package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +3 -1
  320. package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +11 -9
  321. package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +4 -0
  322. package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +5 -0
  323. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -0
  324. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +18 -12
  325. package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +3 -3
  326. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +16 -11
  327. package/lib/modules/whiteboard/components/toolbar/index.js +9 -0
  328. package/lib/modules/whiteboard/components/toolbar/store.d.ts +8 -7
  329. package/lib/modules/whiteboard/components/toolbar/store.js +25 -4
  330. package/lib/modules/whiteboard/context.d.ts +7 -3
  331. package/lib/modules/whiteboard/context.js +6 -4
  332. package/lib/modules/whiteboard/index.d.ts +6 -8
  333. package/lib/modules/whiteboard/index.js +310 -255
  334. package/lib/modules/whiteboard/type.d.ts +4 -12
  335. package/lib/modules/whiteboard/type.js +6 -16
  336. package/lib/modules/whiteboard/utils.d.ts +1 -0
  337. package/lib/modules/whiteboard/utils.js +12 -1
  338. package/lib/plugins/browser-runtime-plugin.js +2 -1
  339. package/lib/plugins/module-dev-plugin.js +12 -10
  340. package/lib/plugins/multi-lang-plugin.d.ts +1 -5
  341. package/lib/plugins/multi-lang-plugin.js +2 -0
  342. package/lib/runtime.d.ts +3 -5
  343. package/lib/translations/enUS.d.ts +590 -0
  344. package/lib/translations/enUS.js +608 -6
  345. package/lib/translations/zhCN.d.ts +588 -0
  346. package/lib/translations/zhCN.js +604 -4
  347. package/lib/type.d.ts +6 -2
  348. package/lib/ui-manager.d.ts +7 -3
  349. package/lib/ui-manager.js +597 -143
  350. package/lib/ui-scene.d.ts +1 -0
  351. package/lib/ui-scene.js +32 -22
  352. package/lib/utilities/board-context.d.ts +0 -1
  353. package/lib/utilities/constant.d.ts +47 -5
  354. package/lib/utilities/constant.js +44 -1
  355. package/lib/utilities/copyText.js +1 -1
  356. package/lib/utilities/extract.js +26 -3
  357. package/lib/utilities/hooks.js +2 -0
  358. package/lib/utilities/parameters.js +2 -2
  359. package/lib/utilities/renderer-event.js +28 -0
  360. package/lib/utilities/renderer.d.ts +1 -0
  361. package/lib/utilities/renderer.js +15 -6
  362. package/lib/utilities/tools.js +5 -2
  363. package/lib/utilities/ui-resources.d.ts +2 -2
  364. package/lib/utilities/ui-resources.js +20 -3
  365. package/lib/utilities/video-track-render-context.d.ts +0 -1
  366. package/package.json +17 -16
  367. package/public/assets/fcr_defaultpage.png +0 -0
  368. package/public/assets/login_confirm.png +0 -0
  369. package/public/index.html +29 -11
  370. package/lib/modules/device-pretest/settings/index.css +0 -15
  371. package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
  372. package/lib/modules/participant/attendee/participants-more-action.js +0 -275
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.MinutesSettings = void 0;
9
+ require("core-js/modules/es.array.map.js");
10
+ require("core-js/modules/esnext.async-iterator.map.js");
11
+ require("core-js/modules/esnext.iterator.map.js");
12
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
+ var _react = require("react");
14
+ var _i18n = require("agora-ui-foundation/lib/i18n");
15
+ var _useNamespace = require("../common/useNamespace");
16
+ var _classnames = _interopRequireDefault(require("classnames"));
17
+ require("./index.css");
18
+ var _mobxReact = require("mobx-react");
19
+ var _context = require("../context");
20
+ var _icon = require("agora-ui-foundation/lib/components/icon");
21
+ var _type = require("agora-ui-foundation/lib/components/icon/type");
22
+ var _jsxRuntime = require("react/jsx-runtime");
23
+ var MinutesSettings = exports.MinutesSettings = (0, _mobxReact.observer)(function () {
24
+ var ns = (0, _useNamespace.useNamespace)('minutes-settings');
25
+ var t = (0, _i18n.useI18n)();
26
+ var _useState = (0, _react.useState)('1'),
27
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
28
+ mode = _useState2[0],
29
+ setMode = _useState2[1];
30
+ var _useState3 = (0, _react.useState)('5'),
31
+ _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
32
+ agent = _useState4[0],
33
+ setAgent = _useState4[1];
34
+ var _useContext = (0, _react.useContext)(_context.StoreContext),
35
+ setting = _useContext.setting,
36
+ setSetting = _useContext.setSetting;
37
+ var iconSize = 48;
38
+ var modeList = [{
39
+ text: t('fmt_ai_summary_setting_option_tingwu'),
40
+ value: '1',
41
+ icon: _type.FcrIconType.FCR_ALIYUN,
42
+ size: iconSize
43
+ }, {
44
+ text: t('fmt_ai_summary_setting_option_zhipu'),
45
+ value: '2',
46
+ icon: _type.FcrIconType.ZHIPUAI,
47
+ size: iconSize
48
+ }, {
49
+ text: t('fmt_ai_summary_setting_option_moonshot'),
50
+ value: '3',
51
+ icon: _type.FcrIconType.LOGO_MOONSHOT,
52
+ size: iconSize
53
+ }, {
54
+ text: t('fmt_ai_summary_setting_option_openai'),
55
+ value: '4',
56
+ icon: _type.FcrIconType.LOGO_OPENAI,
57
+ size: iconSize
58
+ }];
59
+ var agentList = [{
60
+ text: t('fmt_ai_summary_setting_option_meeting_assistant'),
61
+ value: '5',
62
+ icon: _type.FcrIconType.FCR_SETTING_MEETINGASSISTANT,
63
+ size: iconSize
64
+ }, {
65
+ text: t('fmt_ai_summary_setting_option_teacher'),
66
+ value: '6',
67
+ icon: _type.FcrIconType.FCR_SETTING_TEACHER,
68
+ size: iconSize
69
+ }, {
70
+ text: t('fmt_ai_summary_setting_option_sales_manager'),
71
+ value: '7',
72
+ icon: _type.FcrIconType.SET_SALE,
73
+ size: iconSize
74
+ }];
75
+ var handleModeChange = function handleModeChange(value) {
76
+ if (value === mode) {
77
+ setMode('0');
78
+ } else {
79
+ setMode(value);
80
+ }
81
+ };
82
+ var handleAgentChange = function handleAgentChange(value) {
83
+ if (value === agent) {
84
+ setAgent('0');
85
+ } else {
86
+ setAgent(value);
87
+ }
88
+ };
89
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
90
+ className: ns.b(),
91
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
92
+ className: (0, _classnames["default"])(ns.e('section'), ns.e('section-mode-select')),
93
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
94
+ className: ns.e('section-title'),
95
+ children: t('fmt_ai_summary_setting_label_LLM_choose')
96
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
97
+ className: ns.e('section-sub-title'),
98
+ children: t('fmt_ai_summary_setting_label_llm_range')
99
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
100
+ className: ns.e('section-content-mode'),
101
+ children: modeList.length && modeList.map(function (item, index) {
102
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
103
+ onClick: function onClick() {
104
+ return handleModeChange(item.value);
105
+ },
106
+ className: (0, _classnames["default"])(ns.e('mode-item'), {
107
+ 'fcr-minutes-settings__mode-item-active': mode === item.value
108
+ }),
109
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
110
+ className: (0, _classnames["default"])(ns.e('mode-item-content')),
111
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
112
+ className: ns.e('mode-icon'),
113
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
114
+ type: item.icon,
115
+ size: item.size
116
+ })
117
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
118
+ className: ns.e('mode-text'),
119
+ children: item.text
120
+ })]
121
+ })
122
+ }, index);
123
+ })
124
+ })]
125
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
126
+ className: (0, _classnames["default"])(ns.e('section'), ns.e('section-agent-select')),
127
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
128
+ className: ns.e('section-title'),
129
+ children: t('fmt_ai_summary_setting_label_agent')
130
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
131
+ className: ns.e('section-content-mode'),
132
+ children: agentList.length && agentList.map(function (item, index) {
133
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
134
+ onClick: function onClick() {
135
+ return handleAgentChange(item.value);
136
+ },
137
+ className: (0, _classnames["default"])(ns.e('mode-item'), {
138
+ 'fcr-minutes-settings__mode-item-active': agent === item.value
139
+ }),
140
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
141
+ className: (0, _classnames["default"])(ns.e('mode-item-content')),
142
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
143
+ className: ns.e('mode-icon'),
144
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
145
+ type: item.icon,
146
+ size: item.size
147
+ })
148
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
149
+ className: ns.e('mode-text'),
150
+ children: item.text
151
+ })]
152
+ })
153
+ }, index);
154
+ })
155
+ })]
156
+ })]
157
+ });
158
+ });
159
+ var _default = exports["default"] = MinutesSettings;
@@ -1,7 +1,3 @@
1
- .fcr-device-settings-state {
2
- padding-top: 10px;
3
- }
4
-
5
1
  .fcr-device-settings-state__tab-wrapper {
6
2
  display: flex;
7
3
  justify-content: center;
@@ -8,6 +8,10 @@ require("core-js/modules/es.object.define-property.js");
8
8
  require("core-js/modules/es.object.get-own-property-descriptor.js");
9
9
  require("core-js/modules/es.object.get-own-property-descriptors.js");
10
10
  require("core-js/modules/es.object.keys.js");
11
+ require("core-js/modules/esnext.async-iterator.filter.js");
12
+ require("core-js/modules/esnext.async-iterator.for-each.js");
13
+ require("core-js/modules/esnext.iterator.filter.js");
14
+ require("core-js/modules/esnext.iterator.for-each.js");
11
15
  require("core-js/modules/web.dom-collections.for-each.js");
12
16
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
13
17
  Object.defineProperty(exports, "__esModule", {
@@ -24,6 +28,11 @@ require("core-js/modules/es.date.to-json.js");
24
28
  require("core-js/modules/es.json.stringify.js");
25
29
  require("core-js/modules/es.number.to-fixed.js");
26
30
  require("core-js/modules/es.object.to-string.js");
31
+ require("core-js/modules/esnext.async-iterator.map.js");
32
+ require("core-js/modules/esnext.async-iterator.reduce.js");
33
+ require("core-js/modules/esnext.iterator.constructor.js");
34
+ require("core-js/modules/esnext.iterator.map.js");
35
+ require("core-js/modules/esnext.iterator.reduce.js");
27
36
  var _react = require("react");
28
37
  var _i18n = require("agora-ui-foundation/lib/i18n");
29
38
  var _mobxReact = require("mobx-react");
@@ -35,6 +44,7 @@ var _icon = require("agora-ui-foundation/lib/components/icon");
35
44
  var _type = require("agora-ui-foundation/lib/components/icon/type");
36
45
  var _classnames = _interopRequireDefault(require("classnames"));
37
46
  var _constant = require("../../../utilities/constant");
47
+ var _env = require("agora-foundation/lib/utilities/env");
38
48
  var _jsxRuntime = require("react/jsx-runtime");
39
49
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
40
50
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -159,7 +169,7 @@ var State = exports.State = (0, _mobxReact.observer)(function () {
159
169
  })
160
170
  }), activeKey === 'universal' && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
161
171
  className: ns.b('universal'),
162
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
172
+ children: [(0, _env.isElectron)() && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
163
173
  className: ns.be('universal', 'cpu-wrapper'),
164
174
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CPUCard, {
165
175
  title: "CPU",
@@ -21,7 +21,7 @@ var StorageSettings = exports.StorageSettings = (0, _mobxReact.observer)(functio
21
21
  var _useContext = (0, _react.useContext)(_context2.StoreContext),
22
22
  recordingPath = _useContext.setting.recordingPath,
23
23
  setSetting = _useContext.setSetting;
24
- var editRecordingPath = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
24
+ var editRecordingPath = (0, _react.useCallback)(/*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
25
25
  var path;
26
26
  return _regenerator["default"].wrap(function _callee$(_context) {
27
27
  while (1) switch (_context.prev = _context.next) {
@@ -1,7 +1,6 @@
1
- /// <reference types="node" />
2
- import { FcrDesktopMediaControl, FcrMainRoomControl, FcrMonitorControl, FcrStreamControl } from 'agora-edu-core';
1
+ import { FcrAiDenoiseLevel, FcrDesktopMediaControl, FcrMonitorControl, FcrStreamControl } from 'agora-edu-core';
3
2
  import { FcrBeautyOptions } from 'agora-edu-core/lib/media-control/type';
4
- import { FcrAiDenoiseLevel, FcrPerformanceInfo } from 'agora-edu-core/lib/type';
3
+ import { FcrPerformanceInfo } from 'agora-edu-core/lib/type';
5
4
  import { AgoraRtcNetworkStats } from 'agora-rte-sdk';
6
5
  import { FcrUIEventStore } from '../../common/event-store';
7
6
  import { HighlightElement } from '../../utilities/constant';
@@ -9,6 +8,7 @@ import { DEFAULT_BEAUTY_VALUE } from 'agora-ui-foundation/lib/components/local-v
9
8
  import { FcrUISceneConfig } from '../../type';
10
9
  import { VirtualBackground } from '../device-pretest/assets/virtual-backdound-resources';
11
10
  import { FcrDeviceStore } from '../../common/device-store';
11
+ import { FcrBaseRoomControl } from 'agora-edu-core/lib/room-control/type';
12
12
  export interface DeviceItem {
13
13
  text: string;
14
14
  value: string;
@@ -18,7 +18,9 @@ export declare enum DeviceSettingTab {
18
18
  AUDIO = "audio",
19
19
  VIDEO = "video",
20
20
  STORAGE = "storage",
21
- STATE = "state"
21
+ STATE = "state",
22
+ TRANSLATE = "translate",
23
+ MINUTES = "minutes"
22
24
  }
23
25
  export type VideoActiveTab = 'basic' | 'virtual-background' | 'beauty-filter';
24
26
  export interface DeviceSettingDialogConfig {
@@ -157,7 +159,7 @@ export default class SettingStore {
157
159
  uiEventStore: FcrUIEventStore;
158
160
  monitorControl: FcrMonitorControl;
159
161
  streamControl: FcrStreamControl;
160
- roomControl: FcrMainRoomControl;
162
+ roomControl: FcrBaseRoomControl;
161
163
  deviceStore: FcrDeviceStore;
162
164
  });
163
165
  enableVirtualBackground(enable: boolean, source?: VirtualBackground): void;
@@ -19,6 +19,8 @@ require("core-js/modules/es.object.get-own-property-descriptors.js");
19
19
  require("core-js/modules/es.regexp.exec.js");
20
20
  require("core-js/modules/es.regexp.test.js");
21
21
  require("core-js/modules/es.regexp.to-string.js");
22
+ require("core-js/modules/esnext.function.metadata.js");
23
+ require("core-js/modules/esnext.symbol.metadata.js");
22
24
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
23
25
  var _typeof = require("@babel/runtime/helpers/typeof");
24
26
  Object.defineProperty(exports, "__esModule", {
@@ -52,6 +54,31 @@ require("core-js/modules/es.object.keys.js");
52
54
  require("core-js/modules/es.object.to-string.js");
53
55
  require("core-js/modules/es.string.iterator.js");
54
56
  require("core-js/modules/es.weak-map.js");
57
+ require("core-js/modules/esnext.async-iterator.filter.js");
58
+ require("core-js/modules/esnext.async-iterator.find.js");
59
+ require("core-js/modules/esnext.async-iterator.for-each.js");
60
+ require("core-js/modules/esnext.async-iterator.reduce.js");
61
+ require("core-js/modules/esnext.iterator.constructor.js");
62
+ require("core-js/modules/esnext.iterator.filter.js");
63
+ require("core-js/modules/esnext.iterator.find.js");
64
+ require("core-js/modules/esnext.iterator.for-each.js");
65
+ require("core-js/modules/esnext.iterator.reduce.js");
66
+ require("core-js/modules/esnext.map.delete-all.js");
67
+ require("core-js/modules/esnext.map.emplace.js");
68
+ require("core-js/modules/esnext.map.every.js");
69
+ require("core-js/modules/esnext.map.filter.js");
70
+ require("core-js/modules/esnext.map.find.js");
71
+ require("core-js/modules/esnext.map.find-key.js");
72
+ require("core-js/modules/esnext.map.includes.js");
73
+ require("core-js/modules/esnext.map.key-of.js");
74
+ require("core-js/modules/esnext.map.map-keys.js");
75
+ require("core-js/modules/esnext.map.map-values.js");
76
+ require("core-js/modules/esnext.map.merge.js");
77
+ require("core-js/modules/esnext.map.reduce.js");
78
+ require("core-js/modules/esnext.map.some.js");
79
+ require("core-js/modules/esnext.map.update.js");
80
+ require("core-js/modules/esnext.weak-map.delete-all.js");
81
+ require("core-js/modules/esnext.weak-map.emplace.js");
55
82
  require("core-js/modules/web.dom-collections.for-each.js");
56
83
  require("core-js/modules/web.dom-collections.iterator.js");
57
84
  require("core-js/modules/web.timers.js");
@@ -64,7 +91,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
64
91
  var _agoraEduCore = require("agora-edu-core");
65
92
  var _logger = require("agora-foundation/lib/logger");
66
93
  var _mobx = require("mobx");
67
- var _type = require("agora-edu-core/lib/type");
68
94
  var _decorator = require("agora-foundation/lib/decorator");
69
95
  var _constant = require("../../utilities/constant");
70
96
  var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
@@ -73,13 +99,13 @@ var _config = require("./config");
73
99
  var _excluded = ["dialogId"];
74
100
  var _SettingStore;
75
101
  var _initProto, _init_loudestStreamVolumeLevel, _init_microphoneVolumeLevel, _init_isWifiConnected, _init_dialogConfig, _init_networkState, _init_performanceState, _init_localAudioStreamMap, _init_remoteAudioStreamMap, _init_localVideoStreamMap, _init_remoteVideoStreamMap, _init_systemMemorySize, _init_systemCpuDesc, _init_setting, _init_config, _init_getSystemInfoTimer, _setDialogConfigDecs, _setSettingDecs, _onEventDecs, _onNetworkStatsUpdatedDecs, _calculateSystemInfoDecs, _getSystemInformationDecs, _clearGetSystemInfoIntervalDecs, _closeDialogDecs, _onLocalAudioStatsUpdatedDecs, _onRemoteAudioStatsUpdatedDecs, _onLocalVideoStatsUpdatedDecs, _onRemoteVideoStatsUpdatedDecs, _onStreamsUpdatedDecs, _onStreamsRemovedDecs, _onPerformanceUpdatedDecs, _onAudioVolumeUpdatedDecs, _preHandleSettingDecs, _ref;
76
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
77
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
78
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
102
+ 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; } } }; }
103
+ 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; } }
104
+ 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; }
79
105
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
80
106
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
81
- function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
82
- function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
107
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
108
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
83
109
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
84
110
  function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
85
111
  function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
@@ -94,6 +120,8 @@ var DeviceSettingTab = exports.DeviceSettingTab = /*#__PURE__*/function (DeviceS
94
120
  DeviceSettingTab["VIDEO"] = "video";
95
121
  DeviceSettingTab["STORAGE"] = "storage";
96
122
  DeviceSettingTab["STATE"] = "state";
123
+ DeviceSettingTab["TRANSLATE"] = "translate";
124
+ DeviceSettingTab["MINUTES"] = "minutes";
97
125
  return DeviceSettingTab;
98
126
  }({});
99
127
  var _A = /*#__PURE__*/new WeakMap();
@@ -180,7 +208,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
180
208
  displayedMaxAttendees: 16,
181
209
  autoAdjustmentSpeakerVolume: true,
182
210
  autoAdjustmentMicrophoneVolume: true,
183
- noiseReduce: _type.FcrAiDenoiseLevel.AUTO,
211
+ noiseReduce: _agoraEduCore.FcrAiDenoiseLevel.AUTO,
184
212
  recordingPath: '',
185
213
  videoHD: true,
186
214
  videoLowLight: false,
@@ -205,7 +233,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
205
233
  onEvent: this._onEvent
206
234
  });
207
235
  this._monitorControl.addObserver({
208
- onPerformanceUpdated: this._onPerformanceUpdated
236
+ onPerformanceInfoUpdated: this._onPerformanceUpdated
209
237
  });
210
238
  this._roomControl.addObserver({
211
239
  onNetworkStatsUpdated: this._onNetworkStatsUpdated
@@ -217,7 +245,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
217
245
  onRemoteVideoStatsUpdated: this._onRemoteVideoStatsUpdated,
218
246
  onStreamsRemoved: this._onStreamsRemoved,
219
247
  onStreamsUpdated: this._onStreamsUpdated,
220
- onAudioVolumeUpdated: this._onAudioVolumeUpdated
248
+ onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
221
249
  });
222
250
  this.startMicrophoneTest = this.startMicrophoneTest.bind(this);
223
251
  this.stopMicrophoneTest = this.stopMicrophoneTest.bind(this);
@@ -227,7 +255,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
227
255
  this._deviceStore.toggleLocalMirror(true);
228
256
  }
229
257
  if (this._deviceStore.cameraId) {
230
- this._cameraTrack = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
258
+ this._cameraTrack = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
231
259
  }
232
260
  }
233
261
  return (0, _createClass2["default"])(SettingStore, [{
@@ -603,7 +631,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
603
631
  }, {
604
632
  key: "setSpeakerVolume",
605
633
  value: function setSpeakerVolume(value) {
606
- this._deviceStore.mediaControl.setSpeakerVolume(value);
634
+ this._deviceStore.mediaControl.setSelectedSpeakerVolume(value);
607
635
  this._deviceStore.setSpeakerVolume(value);
608
636
  }
609
637
  }, {
@@ -641,9 +669,9 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
641
669
  var view = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._videoView4Setting;
642
670
  if (!view) return;
643
671
  this._videoView4Setting = view;
644
- var cameraTrack = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
672
+ var cameraTrack = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
645
673
  cameraTrack.startPreview({
646
- renderMode: _type.FcrVideoRenderMode.HIDDEN,
674
+ renderMode: _agoraEduCore.FcrVideoRenderMode.HIDDEN,
647
675
  isMirror: isMirror
648
676
  }, view);
649
677
  }
@@ -651,7 +679,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
651
679
  key: "stopVideo",
652
680
  value: function stopVideo() {
653
681
  if (!this._videoView4Setting) return;
654
- var cameraTrack = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
682
+ var cameraTrack = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
655
683
  cameraTrack.stopPreview(this._videoView4Setting);
656
684
  }
657
685
  }, {
@@ -689,7 +717,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
689
717
  }, {
690
718
  key: "_syncSystemInfo",
691
719
  value: function () {
692
- var _syncSystemInfo2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
720
+ var _syncSystemInfo2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
693
721
  var _this4 = this;
694
722
  var _yield$window$runtime, isWifiConnected;
695
723
  return _regenerator["default"].wrap(function _callee$(_context) {
@@ -734,13 +762,13 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
734
762
  key: "_enableVideoHd",
735
763
  value: function _enableVideoHd(enable) {
736
764
  if (!this._deviceStore.cameraId) return;
737
- var track = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
765
+ var track = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
738
766
  if (enable) {
739
- track.setCaptureParams(_objectSpread(_objectSpread({}, _config.defaultCameraVideoEncoderConfig), {}, {
767
+ track.setCaptureParams(_objectSpread(_objectSpread({}, _config.hdCameraVideoEncoderConfig), {}, {
740
768
  isMirror: this._deviceStore.currentIsMirror
741
769
  }));
742
770
  } else {
743
- track.setCaptureParams(_objectSpread(_objectSpread({}, _config.hdCameraVideoEncoderConfig), {}, {
771
+ track.setCaptureParams(_objectSpread(_objectSpread({}, _config.defaultCameraVideoEncoderConfig), {}, {
744
772
  isMirror: this._deviceStore.currentIsMirror
745
773
  }));
746
774
  }
@@ -751,7 +779,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
751
779
  key: "_enableLowlightEnhancement",
752
780
  value: function _enableLowlightEnhancement(enable) {
753
781
  if (!this._deviceStore.cameraId) return;
754
- var track = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
782
+ var track = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
755
783
  if (enable) {
756
784
  track.getVideoEffectEnhancer().enableLowlightEnhancement();
757
785
  } else {
@@ -763,7 +791,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
763
791
  key: "_enableVideoDenoiser",
764
792
  value: function _enableVideoDenoiser(enable) {
765
793
  if (!this._deviceStore.cameraId) return;
766
- var track = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
794
+ var track = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
767
795
  if (enable) {
768
796
  track.getVideoEffectEnhancer().enableVideoDenoiser();
769
797
  } else {
@@ -776,7 +804,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
776
804
  key: "_enableHardwareForReception",
777
805
  value: function _enableHardwareForReception(enable) {
778
806
  if (!this._deviceStore.cameraId) return;
779
- var track = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
807
+ var track = this._mediaControl.getCameraTrack(this._deviceStore.cameraId);
780
808
  if (enable) {
781
809
  track.getVideoEffectEnhancer().enableHardwareEncoder();
782
810
  } else {
@@ -787,14 +815,14 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
787
815
  key: "startCameraTest",
788
816
  value: function startCameraTest() {
789
817
  if (!this.cameraDeviceId) return;
790
- var cameraVideoTrack = this._mediaControl.getCameraVideoTrack(this.cameraDeviceId);
818
+ var cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraDeviceId);
791
819
  cameraVideoTrack.startTest();
792
820
  }
793
821
  }, {
794
822
  key: "stopCameraTest",
795
823
  value: function stopCameraTest() {
796
824
  if (!this.cameraDeviceId) return;
797
- var cameraVideoTrack = this._mediaControl.getCameraVideoTrack(this.cameraDeviceId);
825
+ var cameraVideoTrack = this._mediaControl.getCameraTrack(this.cameraDeviceId);
798
826
  if (this._videoView4Setting) {
799
827
  cameraVideoTrack.stopPreview(this._videoView4Setting);
800
828
  }
@@ -817,7 +845,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
817
845
  this.clearGetSystemInfoInterval();
818
846
  }
819
847
  this._monitorControl.removeObserver({
820
- onPerformanceUpdated: this._onPerformanceUpdated
848
+ onPerformanceInfoUpdated: this._onPerformanceUpdated
821
849
  });
822
850
  this._disposeReactions();
823
851
  }
@@ -870,10 +898,10 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
870
898
  };
871
899
  for (var _i = 0, _Object$entries = Object.entries(newSetting); _i < _Object$entries.length; _i++) {
872
900
  var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
873
- _key = _Object$entries$_i[0],
874
- _value = _Object$entries$_i[1];
875
- if (settingActions[_key]) {
876
- settingActions[_key](_value);
901
+ key = _Object$entries$_i[0],
902
+ value = _Object$entries$_i[1];
903
+ if (settingActions[key]) {
904
+ settingActions[key](value);
877
905
  }
878
906
  }
879
907
  }
@@ -892,14 +920,14 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
892
920
  key: "_onNetworkStatsUpdated",
893
921
  value: function _onNetworkStatsUpdated(roomId, stats) {
894
922
  for (var _i2 = 0, _arr = Object.keys(stats); _i2 < _arr.length; _i2++) {
895
- var _key2 = _arr[_i2];
896
- this.networkState[_key2] = Math.floor(stats[_key2]);
923
+ var key = _arr[_i2];
924
+ this.networkState[key] = Math.floor(stats[key]);
897
925
  }
898
926
  }
899
927
  }, {
900
928
  key: "calculateSystemInfo",
901
929
  value: function () {
902
- var _calculateSystemInfo = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
930
+ var _calculateSystemInfo = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
903
931
  var _yield$window$runtime2, cpuUsage, memoryUsage, totalCpuUsage, totalMemoryUsage;
904
932
  return _regenerator["default"].wrap(function _callee2$(_context2) {
905
933
  while (1) switch (_context2.prev = _context2.next) {
@@ -966,13 +994,13 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
966
994
  }, {
967
995
  key: "_onLocalVideoStatsUpdated",
968
996
  value: function _onLocalVideoStatsUpdated(roomId, streamId, stats) {
969
- var streamInfo = this._streamControl.getStreams()[streamId];
997
+ var streamInfo = this._streamControl.getStreamByStreamId(streamId);
970
998
  if (streamInfo) {
971
999
  // console.log('onLocalVideoStatsUpdated', streamId, stats, streamInfo);
972
1000
  if (streamInfo.videoSourceState === _agoraEduCore.FcrMediaSourceState.STARTED) {
973
1001
  this.localVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
974
1002
  sendFrameRate: Math.max(0, stats.sendFrameRate),
975
- isScreenStream: streamInfo.videoSourceType === _type.FcrVideoSourceType.SCREEN
1003
+ isScreenStream: streamInfo.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN
976
1004
  }));
977
1005
  }
978
1006
  }
@@ -980,12 +1008,12 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
980
1008
  }, {
981
1009
  key: "_onRemoteVideoStatsUpdated",
982
1010
  value: function _onRemoteVideoStatsUpdated(roomId, streamId, stats) {
983
- var streamInfo = this._streamControl.getStreams()[streamId];
1011
+ var streamInfo = this._streamControl.getStreamByStreamId(streamId);
984
1012
  // console.log('onRemoteVideoStatsUpdated', streamId, stats, streamInfo);
985
- if (streamInfo.videoSourceState === _agoraEduCore.FcrMediaSourceState.STARTED) {
1013
+ if ((streamInfo === null || streamInfo === void 0 ? void 0 : streamInfo.videoSourceState) === _agoraEduCore.FcrMediaSourceState.STARTED) {
986
1014
  this.remoteVideoStreamMap.set(streamId, _objectSpread(_objectSpread({}, stats), {}, {
987
1015
  frameRate: Math.max(0, stats.frameRate),
988
- isScreenStream: streamInfo.videoSourceType === _type.FcrVideoSourceType.SCREEN
1016
+ isScreenStream: streamInfo.videoSourceType === _agoraEduCore.FcrVideoSourceType.SCREEN
989
1017
  }));
990
1018
  }
991
1019
  }
@@ -1039,8 +1067,8 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
1039
1067
  key: "_onPerformanceUpdated",
1040
1068
  value: function _onPerformanceUpdated(status) {
1041
1069
  for (var _i3 = 0, _arr2 = Object.keys(status); _i3 < _arr2.length; _i3++) {
1042
- var _key3 = _arr2[_i3];
1043
- this.performanceState[_key3] = Math.floor(status[_key3]);
1070
+ var key = _arr2[_i3];
1071
+ this.performanceState[key] = Math.floor(status[key]);
1044
1072
  }
1045
1073
 
1046
1074
  // Native SDK BUG:可能会存在 cpuTotalUsage 比 cpuAppUsage 低或者为 0 的情况
@@ -1064,16 +1092,11 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
1064
1092
  }, {
1065
1093
  key: "_handleCameraListUpdated",
1066
1094
  value: function () {
1067
- var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(cameraList, currentDeviceExist) {
1068
- var deviceId, cameraTrack;
1095
+ var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(cameraList) {
1069
1096
  return _regenerator["default"].wrap(function _callee3$(_context3) {
1070
1097
  while (1) switch (_context3.prev = _context3.next) {
1071
1098
  case 0:
1072
- if (!currentDeviceExist && cameraList.length > 0) {
1073
- deviceId = cameraList[0].deviceId;
1074
- this._deviceStore.setCameraId(deviceId);
1075
- cameraTrack = this._mediaControl.getCameraVideoTrack(this._deviceStore.cameraId);
1076
- cameraTrack.start();
1099
+ if (cameraList.length > 0) {
1077
1100
  this._settingVideoOpened && this._deviceStore.startOrStopCamera(true);
1078
1101
  }
1079
1102
  case 1:
@@ -1082,7 +1105,7 @@ var SettingStore = exports["default"] = /*#__PURE__*/function () {
1082
1105
  }
1083
1106
  }, _callee3, this);
1084
1107
  }));
1085
- function _handleCameraListUpdated(_x, _x2) {
1108
+ function _handleCameraListUpdated(_x) {
1086
1109
  return _handleCameraListUpdated2.apply(this, arguments);
1087
1110
  }
1088
1111
  return _handleCameraListUpdated;
@@ -0,0 +1,45 @@
1
+ .fcr-translate-settings {
2
+ padding-top: 15px;
3
+ }
4
+
5
+ .fcr-translate-settings__section {
6
+ margin-top: 10px;
7
+ border-radius: var(--fcr_cornerradius_s);
8
+ width: 100%;
9
+ background: var(--fcr_mobile_ui_scene_color_popup_block5);
10
+ }
11
+
12
+ .fcr-translate-settings__section:first-child {
13
+ margin-top: 0;
14
+ }
15
+
16
+ .fcr-translate-settings__section:last-child {
17
+ margin-bottom: 10px;
18
+ }
19
+
20
+ .fcr-translate-settings__section-title {
21
+ padding: 0 10px 0 12px;
22
+ font-size: 13px;
23
+ line-height: 32px;
24
+ font-weight: 700;
25
+ color: var(--fcr_ui_scene_icontext1);
26
+ }
27
+
28
+ .fcr-translate-settings__section-sub-title {
29
+ padding: 0 10px 0 12px;
30
+ font-size: 13px;
31
+ }
32
+
33
+ .fcr-translate-settings__translate-language-select {
34
+ padding: 12px;
35
+ }
36
+
37
+ .fcr-translate-settings__show-two-language {
38
+ padding: 0 12px 12px 12px;
39
+ }
40
+
41
+ .fcr-translate-settings__interpreter-mode {
42
+ display: flex;
43
+ justify-content: space-evenly;
44
+ padding: 12px;
45
+ }
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ export declare const LanguageSelect: FC<{
3
+ size?: 'small' | 'medium' | 'large';
4
+ styleType?: 'white';
5
+ blurred?: boolean;
6
+ languageId: string;
7
+ setLanguage: (v: string) => void;
8
+ languageList: {
9
+ text: string;
10
+ value: string;
11
+ }[];
12
+ }>;