fcr-ui-scene 3.2.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/dist/electron/app.js +148 -0
  2. package/dist/electron/bootstrap-dev.js +51 -0
  3. package/dist/electron/bootstrap-sdk.js +56 -0
  4. package/dist/electron/default-options.js +25 -0
  5. package/dist/electron/env.js +13 -0
  6. package/dist/electron/index.js +20 -0
  7. package/dist/electron/injections.js +702 -0
  8. package/dist/electron/logger.js +66 -0
  9. package/dist/electron/main.js +67 -0
  10. package/dist/electron/plugins/meeting-state.js +39 -0
  11. package/dist/electron/plugins/screenshot.js +49 -0
  12. package/dist/electron/preload.js +36 -0
  13. package/dist/electron/tools.js +66 -0
  14. package/dist/electron/window.js +124 -0
  15. package/installer/icons/favicon.ico +0 -0
  16. package/installer/icons/favicon.png +0 -0
  17. package/installer/mac/entitlements.mac.plist +16 -0
  18. package/lib/common/device-store.d.ts +1 -1
  19. package/lib/common/device-store.js +11 -3
  20. package/lib/common/event-store.d.ts +17 -1
  21. package/lib/common/event-store.js +38 -5
  22. package/lib/common/room-store.d.ts +55 -0
  23. package/lib/common/room-store.js +395 -0
  24. package/lib/common/security-store.d.ts +14 -4
  25. package/lib/common/security-store.js +149 -30
  26. package/lib/creator.js +2 -0
  27. package/lib/electron/app.js +8 -0
  28. package/lib/electron/bootstrap-dev.d.ts +1 -0
  29. package/lib/electron/bootstrap-dev.js +51 -0
  30. package/lib/electron/bootstrap-sdk.d.ts +1 -0
  31. package/lib/electron/bootstrap-sdk.js +57 -0
  32. package/lib/electron/bootstrap.d.ts +1 -0
  33. package/lib/electron/bootstrap.js +56 -0
  34. package/lib/electron/default-options.js +1 -1
  35. package/lib/electron/dev.d.ts +1 -0
  36. package/lib/electron/dev.js +51 -0
  37. package/lib/electron/injections.d.ts +2 -1
  38. package/lib/electron/injections.js +6 -6
  39. package/lib/electron/main.js +4 -16
  40. package/lib/electron/plugins/meeting-state.d.ts +2 -0
  41. package/lib/electron/plugins/meeting-state.js +39 -0
  42. package/lib/electron/preload.js +2 -1
  43. package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
  44. package/lib/fragments/control-bar/control-bar-store.js +371 -79
  45. package/lib/fragments/control-bar/device/index.js +5 -3
  46. package/lib/fragments/control-bar/index.css +15 -10
  47. package/lib/fragments/control-bar/index.js +18 -0
  48. package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
  49. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
  50. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
  51. package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
  52. package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
  53. package/lib/fragments/control-bar/more-actions/index.css +53 -0
  54. package/lib/fragments/control-bar/more-actions/index.js +72 -37
  55. package/lib/fragments/control-bar/security-content/index.css +10 -0
  56. package/lib/fragments/control-bar/security-content/index.js +40 -18
  57. package/lib/fragments/control-bar/view.js +8 -2
  58. package/lib/login-confirm-dialog.d.ts +12 -0
  59. package/lib/login-confirm-dialog.js +80 -0
  60. package/lib/modules/Interpreter/add-button/index.css +4 -0
  61. package/lib/modules/Interpreter/add-button/index.d.ts +11 -0
  62. package/lib/modules/Interpreter/add-button/index.js +41 -0
  63. package/lib/modules/Interpreter/config.d.ts +16 -0
  64. package/lib/modules/Interpreter/config.js +17 -0
  65. package/lib/modules/Interpreter/constant.d.ts +44 -0
  66. package/lib/modules/Interpreter/constant.js +60 -0
  67. package/lib/modules/Interpreter/context.d.ts +2 -0
  68. package/lib/modules/Interpreter/context.js +9 -0
  69. package/lib/modules/Interpreter/dialog-content/index.css +33 -0
  70. package/lib/modules/Interpreter/dialog-content/index.d.ts +8 -0
  71. package/lib/modules/Interpreter/dialog-content/index.js +34 -0
  72. package/lib/modules/Interpreter/footer/components/interpreter-btn/index.d.ts +5 -0
  73. package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +56 -0
  74. package/lib/modules/Interpreter/footer/components/set-btn/index.d.ts +5 -0
  75. package/lib/modules/Interpreter/footer/components/set-btn/index.js +46 -0
  76. package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.d.ts +6 -0
  77. package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +28 -0
  78. package/lib/modules/Interpreter/footer/index.css +10 -0
  79. package/lib/modules/Interpreter/footer/index.d.ts +3 -0
  80. package/lib/modules/Interpreter/footer/index.js +35 -0
  81. package/lib/modules/Interpreter/index.css +8 -0
  82. package/lib/modules/Interpreter/index.d.ts +21 -0
  83. package/lib/modules/Interpreter/index.js +110 -0
  84. package/lib/modules/Interpreter/interpreter-list/index.css +21 -0
  85. package/lib/modules/Interpreter/interpreter-list/index.d.ts +3 -0
  86. package/lib/modules/Interpreter/interpreter-list/index.js +65 -0
  87. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +31 -0
  88. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +11 -0
  89. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +141 -0
  90. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
  91. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
  92. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
  93. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
  94. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
  95. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
  96. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
  97. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
  98. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
  99. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
  100. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
  101. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
  102. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
  103. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
  104. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
  105. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
  106. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
  107. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +11 -0
  108. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +119 -0
  109. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +41 -0
  110. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +12 -0
  111. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +118 -0
  112. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +34 -0
  113. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +8 -0
  114. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +65 -0
  115. package/lib/modules/Interpreter/loading-wrapper/index.css +53 -0
  116. package/lib/modules/Interpreter/loading-wrapper/index.d.ts +6 -0
  117. package/lib/modules/Interpreter/loading-wrapper/index.js +28 -0
  118. package/lib/modules/Interpreter/store.d.ts +82 -0
  119. package/lib/modules/Interpreter/store.js +1382 -0
  120. package/lib/modules/Interpreter/view.d.ts +3 -0
  121. package/lib/modules/Interpreter/view.js +32 -0
  122. package/lib/modules/action-bar/Interpreter/index.d.ts +6 -0
  123. package/lib/modules/action-bar/Interpreter/index.js +44 -0
  124. package/lib/modules/action-bar/action-bar-collapes-items.js +5 -5
  125. package/lib/modules/action-bar/apps/appitems.d.ts +2 -0
  126. package/lib/modules/action-bar/apps/appitems.js +40 -0
  127. package/lib/modules/action-bar/apps/index.css +6 -0
  128. package/lib/modules/action-bar/apps/index.d.ts +4 -0
  129. package/lib/modules/action-bar/apps/index.js +58 -0
  130. package/lib/modules/action-bar/chat/index.js +5 -5
  131. package/lib/modules/action-bar/device/index.css +7 -2
  132. package/lib/modules/action-bar/device/index.js +4 -4
  133. package/lib/modules/action-bar/index.css +59 -12
  134. package/lib/modules/action-bar/index.d.ts +3 -2
  135. package/lib/modules/action-bar/index.dev.js +1 -1
  136. package/lib/modules/action-bar/index.js +21 -0
  137. package/lib/modules/action-bar/leave/assign-host.d.ts +3 -0
  138. package/lib/modules/action-bar/leave/assign-host.js +2 -4
  139. package/lib/modules/action-bar/leave/index.js +29 -6
  140. package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -0
  141. package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
  142. package/lib/modules/action-bar/more/poppover-content.js +4 -4
  143. package/lib/modules/action-bar/participants/index.css +12 -0
  144. package/lib/modules/action-bar/participants/index.js +21 -14
  145. package/lib/modules/action-bar/screen-share/index.js +5 -1
  146. package/lib/modules/action-bar/screen-share/submenu.js +16 -22
  147. package/lib/modules/action-bar/security/drop-menu.js +90 -13
  148. package/lib/modules/action-bar/store.d.ts +38 -6
  149. package/lib/modules/action-bar/store.js +487 -95
  150. package/lib/modules/action-bar/switch-input-language-room/fcr_translateswitch.png +0 -0
  151. package/lib/modules/action-bar/switch-input-language-room/index.css +86 -0
  152. package/lib/modules/action-bar/switch-input-language-room/index.d.ts +17 -0
  153. package/lib/modules/action-bar/switch-input-language-room/index.js +145 -0
  154. package/lib/modules/action-bar/switch-output-language-room/drop-menu.d.ts +1 -0
  155. package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +197 -0
  156. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.css +18 -0
  157. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +8 -0
  158. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +59 -0
  159. package/lib/modules/action-bar/switch-output-language-room/index.d.ts +12 -0
  160. package/lib/modules/action-bar/switch-output-language-room/index.js +238 -0
  161. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +54 -0
  162. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.d.ts +8 -0
  163. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +94 -0
  164. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +8 -0
  165. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +4 -0
  166. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +31 -0
  167. package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
  168. package/lib/modules/action-bar/switch-output-language-room/notification-bar/fcr_translateswitch.png +0 -0
  169. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +71 -0
  170. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.d.ts +2 -0
  171. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +82 -0
  172. package/lib/modules/action-bar/view.js +65 -42
  173. package/lib/modules/chat/chat-bar/index.js +39 -27
  174. package/lib/modules/chat/chat-select/index.css +14 -4
  175. package/lib/modules/chat/chat.d.ts +1 -2
  176. package/lib/modules/chat/chat.js +184 -105
  177. package/lib/modules/chat/index.css +49 -0
  178. package/lib/modules/chat/index.d.ts +2 -2
  179. package/lib/modules/chat/index.dev.js +1 -1
  180. package/lib/modules/chat/index.js +13 -8
  181. package/lib/modules/chat/message-list.js +59 -48
  182. package/lib/modules/chat/store.d.ts +48 -2
  183. package/lib/modules/chat/store.js +258 -45
  184. package/lib/modules/connection-gateway/index.d.ts +2 -1
  185. package/lib/modules/connection-gateway/store.d.ts +6 -3
  186. package/lib/modules/connection-gateway/store.js +5 -1
  187. package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
  188. package/lib/modules/device-pretest/index.css +0 -4
  189. package/lib/modules/device-pretest/settings/beauty.js +17 -6
  190. package/lib/modules/device-pretest/store.js +7 -11
  191. package/lib/modules/dialog/components/Interpreter/electron.d.ts +2 -0
  192. package/lib/modules/dialog/components/Interpreter/electron.js +72 -0
  193. package/lib/modules/dialog/components/Interpreter/index.css +30 -0
  194. package/lib/modules/dialog/components/Interpreter/index.d.ts +4 -0
  195. package/lib/modules/dialog/components/Interpreter/index.js +61 -0
  196. package/lib/modules/dialog/components/Interpreter/user-queue/index.css +36 -0
  197. package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +3 -0
  198. package/lib/modules/dialog/components/Interpreter/user-queue/index.js +47 -0
  199. package/lib/modules/dialog/components/chat/electron.js +2 -1
  200. package/lib/modules/dialog/components/confirm/electron.js +5 -3
  201. package/lib/modules/dialog/components/connection-gateway/electron.js +3 -1
  202. package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
  203. package/lib/modules/dialog/components/device-setting/electron.js +3 -1
  204. package/lib/modules/dialog/components/device-setting/index.css +0 -1
  205. package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
  206. package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
  207. package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
  208. package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
  209. package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
  210. package/lib/modules/dialog/components/participant/electron.js +2 -1
  211. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
  212. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
  213. package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
  214. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
  215. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
  216. package/lib/modules/dialog/components/switch-language-channels/electron.d.ts +2 -0
  217. package/lib/modules/dialog/components/switch-language-channels/electron.js +72 -0
  218. package/lib/modules/dialog/components/switch-language-channels/index.css +30 -0
  219. package/lib/modules/dialog/components/switch-language-channels/index.d.ts +4 -0
  220. package/lib/modules/dialog/components/switch-language-channels/index.js +63 -0
  221. package/lib/modules/dialog/components/switch-language-channels/user-queue/index.css +36 -0
  222. package/lib/modules/dialog/components/switch-language-channels/user-queue/index.d.ts +3 -0
  223. package/lib/modules/dialog/components/switch-language-channels/user-queue/index.js +47 -0
  224. package/lib/modules/dialog/components/whiteboard/index.js +2 -1
  225. package/lib/modules/dialog/dialogs.js +17 -13
  226. package/lib/modules/dialog/index.css +2 -0
  227. package/lib/modules/dialog/store.d.ts +4 -0
  228. package/lib/modules/dialog/store.js +16 -2
  229. package/lib/modules/event-notification/context.d.ts +2 -0
  230. package/lib/modules/event-notification/context.js +9 -0
  231. package/lib/modules/event-notification/index.css +58 -0
  232. package/lib/modules/event-notification/index.d.ts +13 -0
  233. package/lib/modules/event-notification/index.js +48 -0
  234. package/lib/modules/event-notification/store.d.ts +17 -0
  235. package/lib/modules/event-notification/store.js +133 -0
  236. package/lib/modules/event-notification/view.d.ts +5 -0
  237. package/lib/modules/event-notification/view.js +114 -0
  238. package/lib/modules/invite/index.css +4 -4
  239. package/lib/modules/invite/pstn-invite.js +1 -0
  240. package/lib/modules/layout/components/Gallery.js +7 -1
  241. package/lib/modules/layout/components/Layout.js +82 -57
  242. package/lib/modules/layout/components/index.css +33 -6
  243. package/lib/modules/layout/index.css +30 -0
  244. package/lib/modules/layout/member-window/index.js +9 -3
  245. package/lib/modules/layout/store.d.ts +19 -2
  246. package/lib/modules/layout/store.js +177 -70
  247. package/lib/modules/layout/video-window-datasource.d.ts +1 -1
  248. package/lib/modules/layout/video-window-datasource.js +1 -1
  249. package/lib/modules/live-streaming/index.dev.js +1 -1
  250. package/lib/modules/notification/context.d.ts +2 -0
  251. package/lib/modules/notification/context.js +9 -0
  252. package/lib/modules/notification/index.css +58 -0
  253. package/lib/modules/notification/index.d.ts +15 -0
  254. package/lib/modules/notification/index.js +51 -0
  255. package/lib/modules/notification/interpreter-status/index.css +72 -0
  256. package/lib/modules/notification/interpreter-status/index.d.ts +3 -0
  257. package/lib/modules/notification/interpreter-status/index.js +59 -0
  258. package/lib/modules/notification/store.d.ts +16 -0
  259. package/lib/modules/notification/store.js +127 -0
  260. package/lib/modules/notification/view.d.ts +10 -0
  261. package/lib/modules/notification/view.js +116 -0
  262. package/lib/modules/participant/attendee/index.d.ts +12 -3
  263. package/lib/modules/participant/attendee/index.js +132 -30
  264. package/lib/modules/participant/index.css +20 -0
  265. package/lib/modules/participant/index.d.ts +5 -2
  266. package/lib/modules/participant/index.dev.js +1 -1
  267. package/lib/modules/participant/index.js +27 -0
  268. package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
  269. package/lib/modules/participant/store.d.ts +30 -5
  270. package/lib/modules/participant/store.js +347 -74
  271. package/lib/modules/participant/view.js +133 -34
  272. package/lib/modules/setting/index.css +1 -5
  273. package/lib/modules/setting/index.dev.js +1 -1
  274. package/lib/modules/setting/store.d.ts +2 -2
  275. package/lib/modules/setting/store.js +3 -8
  276. package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
  277. package/lib/modules/setting/video-settings/index.css +9 -6
  278. package/lib/modules/share-screen/index.d.ts +2 -0
  279. package/lib/modules/share-screen/index.dev.js +3 -2
  280. package/lib/modules/share-screen/selection/index.css +2 -0
  281. package/lib/modules/share-screen/store.d.ts +6 -3
  282. package/lib/modules/share-screen/store.js +170 -129
  283. package/lib/modules/state-bar/index.css +2 -2
  284. package/lib/modules/state-bar/index.d.ts +2 -2
  285. package/lib/modules/state-bar/index.dev.js +1 -1
  286. package/lib/modules/state-bar/meeting-detail.css +6 -4
  287. package/lib/modules/state-bar/meeting-details.js +32 -5
  288. package/lib/modules/state-bar/meeting-network-state.css +14 -3
  289. package/lib/modules/state-bar/meeting-network-state.js +10 -4
  290. package/lib/modules/state-bar/recording.js +3 -5
  291. package/lib/modules/state-bar/store.d.ts +5 -2
  292. package/lib/modules/state-bar/store.js +32 -5
  293. package/lib/modules/state-bar/view.js +7 -10
  294. package/lib/modules/video-window/index.css +1 -0
  295. package/lib/modules/video-window/store.d.ts +2 -2
  296. package/lib/modules/video-window/store.js +14 -11
  297. package/lib/modules/waiting-room-layout/context.d.ts +2 -0
  298. package/lib/modules/waiting-room-layout/context.js +9 -0
  299. package/lib/modules/waiting-room-layout/index.css +71 -0
  300. package/lib/modules/waiting-room-layout/index.d.ts +8 -0
  301. package/lib/modules/waiting-room-layout/index.js +47 -0
  302. package/lib/modules/waiting-room-layout/store.d.ts +30 -0
  303. package/lib/modules/waiting-room-layout/store.js +189 -0
  304. package/lib/modules/waiting-room-layout/type.d.ts +0 -0
  305. package/lib/modules/waiting-room-layout/type.js +1 -0
  306. package/lib/modules/waiting-room-layout/view.d.ts +3 -0
  307. package/lib/modules/waiting-room-layout/view.js +67 -0
  308. package/lib/modules/whiteboard/app.js +0 -6
  309. package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
  310. package/lib/modules/whiteboard/components/multi-window/index.js +6 -1
  311. package/lib/modules/whiteboard/components/progress/electron.js +2 -1
  312. package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
  313. package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
  314. package/lib/modules/whiteboard/components/switch-theme/index.js +20 -15
  315. package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
  316. package/lib/modules/whiteboard/components/switch-theme/item.js +9 -2
  317. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +14 -10
  318. package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
  319. package/lib/modules/whiteboard/components/toolbar/store.js +3 -0
  320. package/lib/modules/whiteboard/context.d.ts +4 -0
  321. package/lib/modules/whiteboard/context.js +4 -2
  322. package/lib/modules/whiteboard/index.js +22 -6
  323. package/lib/plugins/browser-runtime-plugin.js +4 -1
  324. package/lib/plugins/module-dev-plugin.js +8 -6
  325. package/lib/runtime.d.ts +2 -1
  326. package/lib/translations/enUS.d.ts +449 -6
  327. package/lib/translations/enUS.js +485 -32
  328. package/lib/translations/zhCN.d.ts +447 -6
  329. package/lib/translations/zhCN.js +468 -17
  330. package/lib/type.d.ts +6 -2
  331. package/lib/ui-manager.d.ts +7 -3
  332. package/lib/ui-manager.js +576 -139
  333. package/lib/ui-scene.d.ts +1 -0
  334. package/lib/ui-scene.js +26 -21
  335. package/lib/utilities/constant.d.ts +43 -4
  336. package/lib/utilities/constant.js +41 -1
  337. package/lib/utilities/parameters.js +2 -2
  338. package/lib/utilities/renderer.d.ts +1 -0
  339. package/lib/utilities/renderer.js +6 -2
  340. package/package.json +14 -14
  341. package/public/assets/fcr_defaultpage.png +0 -0
  342. package/public/assets/login_confirm.png +0 -0
  343. package/public/index.html +34 -11
  344. package/dist/132.js +0 -2
  345. package/dist/132.js.LICENSE.txt +0 -311
  346. package/dist/651.js +0 -2
  347. package/dist/651.js.LICENSE.txt +0 -1
  348. package/dist/73.js +0 -1
  349. package/dist/index.html +0 -13
  350. package/dist/main.da7c203ab32d15742cfe.css +0 -11760
  351. package/dist/main.js +0 -2
  352. package/dist/main.js.LICENSE.txt +0 -254
  353. package/dist/worker-entry.worker.js.LICENSE.txt +0 -13
  354. package/lib/modules/device-pretest/settings/index.css +0 -15
  355. package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
  356. package/lib/modules/participant/attendee/participants-more-action.js +0 -278
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol.js");
4
+ require("core-js/modules/es.symbol.description.js");
5
+ require("core-js/modules/es.symbol.to-primitive.js");
6
+ require("core-js/modules/es.error.cause.js");
7
+ require("core-js/modules/es.error.to-string.js");
8
+ require("core-js/modules/es.array.is-array.js");
9
+ require("core-js/modules/es.array.push.js");
10
+ require("core-js/modules/es.date.to-primitive.js");
11
+ require("core-js/modules/es.function.bind.js");
12
+ require("core-js/modules/es.function.name.js");
13
+ require("core-js/modules/es.map.js");
14
+ require("core-js/modules/es.number.constructor.js");
15
+ require("core-js/modules/es.object.create.js");
16
+ require("core-js/modules/es.object.define-property.js");
17
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
18
+ require("core-js/modules/esnext.function.metadata.js");
19
+ require("core-js/modules/esnext.map.delete-all.js");
20
+ require("core-js/modules/esnext.map.emplace.js");
21
+ require("core-js/modules/esnext.map.every.js");
22
+ require("core-js/modules/esnext.map.filter.js");
23
+ require("core-js/modules/esnext.map.find.js");
24
+ require("core-js/modules/esnext.map.find-key.js");
25
+ require("core-js/modules/esnext.map.includes.js");
26
+ require("core-js/modules/esnext.map.key-of.js");
27
+ require("core-js/modules/esnext.map.map-keys.js");
28
+ require("core-js/modules/esnext.map.map-values.js");
29
+ require("core-js/modules/esnext.map.merge.js");
30
+ require("core-js/modules/esnext.map.reduce.js");
31
+ require("core-js/modules/esnext.map.some.js");
32
+ require("core-js/modules/esnext.map.update.js");
33
+ require("core-js/modules/esnext.symbol.metadata.js");
34
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
35
+ var _typeof = require("@babel/runtime/helpers/typeof");
36
+ Object.defineProperty(exports, "__esModule", {
37
+ value: true
38
+ });
39
+ exports["default"] = void 0;
40
+ require("core-js/modules/es.array.iterator.js");
41
+ require("core-js/modules/es.object.to-string.js");
42
+ require("core-js/modules/es.string.iterator.js");
43
+ require("core-js/modules/es.weak-map.js");
44
+ require("core-js/modules/esnext.weak-map.delete-all.js");
45
+ require("core-js/modules/esnext.weak-map.emplace.js");
46
+ require("core-js/modules/web.dom-collections.iterator.js");
47
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
48
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
49
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
50
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
51
+ var _mobx = require("mobx");
52
+ var _LayoutStore;
53
+ var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _startPlayLocalVideoDecs, _stopPlayLocalVideoDecs, _setCameraEnabledDecs, _updateSlotsDecs, _ref;
54
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
55
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
56
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
57
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
58
+ 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"); }
59
+ function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
60
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
61
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
62
+ function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
63
+ function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
64
+ var _A = /*#__PURE__*/new WeakMap();
65
+ var _B = /*#__PURE__*/new WeakMap();
66
+ var _C = /*#__PURE__*/new WeakMap();
67
+ var _D = /*#__PURE__*/new WeakMap();
68
+ var _E = /*#__PURE__*/new WeakMap();
69
+ var _F = /*#__PURE__*/new WeakMap();
70
+ _ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _startPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _stopPlayLocalVideoDecs = [_mobx.action, _mobx.action.bound], _setCameraEnabledDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], "_deviceStore");
71
+ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
72
+ function LayoutStore(params) {
73
+ (0, _classCallCheck2["default"])(this, LayoutStore);
74
+ (0, _defineProperty2["default"])(this, _ref, void _initProto(this));
75
+ // Slots
76
+ _classPrivateFieldInitSpec(this, _A, _init_participant(this, null));
77
+ _classPrivateFieldInitSpec(this, _B, _init_chat(this, null));
78
+ _classPrivateFieldInitSpec(this, _C, _init_stateBar(this, null));
79
+ _classPrivateFieldInitSpec(this, _D, _init_actionBar(this, null));
80
+ _classPrivateFieldInitSpec(this, _E, _init_layers(this, null));
81
+ _classPrivateFieldInitSpec(this, _F, _init_whiteboard(this, null));
82
+ this._deviceStore = params.deviceStore;
83
+ this._userControl = params.userControl;
84
+ }
85
+ return (0, _createClass2["default"])(LayoutStore, [{
86
+ key: "participant",
87
+ get: function get() {
88
+ return _classPrivateFieldGet(_A, this);
89
+ },
90
+ set: function set(v) {
91
+ _classPrivateFieldSet(_A, this, v);
92
+ }
93
+ }, {
94
+ key: "chat",
95
+ get: function get() {
96
+ return _classPrivateFieldGet(_B, this);
97
+ },
98
+ set: function set(v) {
99
+ _classPrivateFieldSet(_B, this, v);
100
+ }
101
+ }, {
102
+ key: "stateBar",
103
+ get: function get() {
104
+ return _classPrivateFieldGet(_C, this);
105
+ },
106
+ set: function set(v) {
107
+ _classPrivateFieldSet(_C, this, v);
108
+ }
109
+ }, {
110
+ key: "actionBar",
111
+ get: function get() {
112
+ return _classPrivateFieldGet(_D, this);
113
+ },
114
+ set: function set(v) {
115
+ _classPrivateFieldSet(_D, this, v);
116
+ }
117
+ }, {
118
+ key: "layers",
119
+ get: function get() {
120
+ return _classPrivateFieldGet(_E, this);
121
+ },
122
+ set: function set(v) {
123
+ _classPrivateFieldSet(_E, this, v);
124
+ }
125
+ }, {
126
+ key: "whiteboard",
127
+ get: function get() {
128
+ return _classPrivateFieldGet(_F, this);
129
+ },
130
+ set: function set(v) {
131
+ _classPrivateFieldSet(_F, this, v);
132
+ }
133
+ }, {
134
+ key: "localUser",
135
+ get: function get() {
136
+ return this._userControl.getLocalUser();
137
+ }
138
+ }, {
139
+ key: "cameraId",
140
+ get: function get() {
141
+ return this._deviceStore.cameraId;
142
+ }
143
+ }, {
144
+ key: "cameraEnabled",
145
+ get: function get() {
146
+ return this._deviceStore.cameraEnabled;
147
+ }
148
+ }, {
149
+ key: "startPlayLocalVideo",
150
+ value: function startPlayLocalVideo(view, isMirror) {
151
+ return this._deviceStore.startPlayLocalVideo(view, isMirror);
152
+ }
153
+ }, {
154
+ key: "stopPlayLocalVideo",
155
+ value: function stopPlayLocalVideo(view) {
156
+ return this._deviceStore.stopPlayLocalVideo(view);
157
+ }
158
+ }, {
159
+ key: "setCameraEnabled",
160
+ value: function setCameraEnabled(enable) {
161
+ this._deviceStore.handleRealCameraEnabledChanged(enable);
162
+ this._deviceStore.cameraEnabled = enable;
163
+ }
164
+ }, {
165
+ key: "updateSlots",
166
+ value: function updateSlots(slots) {
167
+ for (var key in slots) {
168
+ var slot = slots[key];
169
+ if (key in this && slot !== undefined) {
170
+ this[key] = slot;
171
+ }
172
+ }
173
+ }
174
+ }, {
175
+ key: "release",
176
+ value: function release() {
177
+ // this._chatRoomControl.removeObserver(this._chatRoomObserver);
178
+ }
179
+ }]);
180
+ }();
181
+ _LayoutStore = LayoutStore;
182
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_startPlayLocalVideoDecs, 18, "startPlayLocalVideo"], [_stopPlayLocalVideoDecs, 18, "stopPlayLocalVideo"], [_setCameraEnabledDecs, 18, "setCameraEnabled"], [_updateSlotsDecs, 18, "updateSlots"]], []).e, 7);
183
+ _init_participant = _applyDecs$e[0];
184
+ _init_chat = _applyDecs$e[1];
185
+ _init_stateBar = _applyDecs$e[2];
186
+ _init_actionBar = _applyDecs$e[3];
187
+ _init_layers = _applyDecs$e[4];
188
+ _init_whiteboard = _applyDecs$e[5];
189
+ _initProto = _applyDecs$e[6];
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,3 @@
1
+ import './index.css';
2
+ declare const View: () => import("react/jsx-runtime").JSX.Element;
3
+ export default View;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _react = require("react");
9
+ var _context = require("./context");
10
+ var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
11
+ require("./index.css");
12
+ var _mobxReact = require("mobx-react");
13
+ var _i18n = require("agora-ui-foundation/lib/i18n");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ var View = (0, _mobxReact.observer)(function () {
16
+ var t = (0, _i18n.useI18n)();
17
+ var _useContext = (0, _react.useContext)(_context.StoreContext),
18
+ stateBar = _useContext.stateBar,
19
+ actionBar = _useContext.actionBar,
20
+ chat = _useContext.chat,
21
+ cameraDeviceId = _useContext.cameraId,
22
+ startPlayLocalVideo = _useContext.startPlayLocalVideo,
23
+ stopPlayLocalVideo = _useContext.stopPlayLocalVideo,
24
+ cameraEnabled = _useContext.cameraEnabled,
25
+ localUser = _useContext.localUser;
26
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
27
+ className: "waiting-room-layout",
28
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
29
+ className: "waiting-room-module",
30
+ children: stateBar
31
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
32
+ className: "waiting-room-title",
33
+ children: t('fmt_waitingroom_attendie_overview_label_waitingroom')
34
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
35
+ className: "waiting-room-desc",
36
+ children: t('fmt_waitingroom_attendie_overview_label_wait_moment')
37
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
38
+ className: "waiting-room-content",
39
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
40
+ className: "waiting-room-video-content",
41
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_localVideoPlayer.LocalVideoPlayer, {
42
+ isLocalMirrorEnabled: false,
43
+ userName: localUser.userName,
44
+ showSlider: false,
45
+ cameraDeviceId: cameraDeviceId,
46
+ showCameraPreview: cameraEnabled,
47
+ showTopTips: false,
48
+ startLocalVideo: startPlayLocalVideo,
49
+ stopLocalVideo: stopPlayLocalVideo
50
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
51
+ className: "waiting-room-attendee-name",
52
+ children: [localUser.userName, /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
53
+ className: "attendee__me-badge",
54
+ children: ["(", t('fmt_participant_label_Me'), ")"]
55
+ })]
56
+ })]
57
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
58
+ className: "waiting-room-chat-content",
59
+ children: chat
60
+ })]
61
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
62
+ className: "waiting-room-module waiting-room-bottom",
63
+ children: actionBar
64
+ })]
65
+ });
66
+ });
67
+ var _default = exports["default"] = View;
@@ -32,12 +32,6 @@ var Whiteboard = exports.Whiteboard = (0, _mobxReact.observer)(function () {
32
32
  handleClose = _useContext2.handleClose,
33
33
  handleOpen = _useContext2.handleOpen;
34
34
  var loading = connectionState === _agoraEduCore.FcrConnectionState.CONNECTING || connectionState === _agoraEduCore.FcrConnectionState.RECONNECTING;
35
- (0, _react.useEffect)(function () {
36
- handleOpen();
37
- return function () {
38
- handleClose();
39
- };
40
- }, []);
41
35
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
42
36
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
43
37
  className: "board-widget-app",
@@ -25,6 +25,9 @@
25
25
  column-gap: 12px;
26
26
  height: 20px;
27
27
  }
28
+ .whiteboard-controlbar-center .whiteboard-controlbar-item:hover svg path {
29
+ fill: var(--fcr_web_ui_scene_mainicon2);
30
+ }
28
31
  .whiteboard-controlbar-center .divider-vertical {
29
32
  height: 50%;
30
33
  }
@@ -17,10 +17,14 @@ var _jsxRuntime = require("react/jsx-runtime");
17
17
  var MultiWindowWidgetDialog = exports.MultiWindowWidgetDialog = (0, _mobxReact.observer)(function (_ref) {
18
18
  var children = _ref.children;
19
19
  var _useContext = (0, _react.useContext)(_context.BoardUIContext),
20
- connectionState = _useContext.observables.connectionState;
20
+ connectionState = _useContext.observables.connectionState,
21
+ setWhiteboardVisible = _useContext.setWhiteboardVisible;
21
22
  var _useContext2 = (0, _react.useContext)(_boardContext["default"]),
22
23
  showToolbar = _useContext2.showToolbar;
23
24
  var showControlbar = connectionState === _agoraEduCore.FcrConnectionState.CONNECTED;
25
+ var handleCancel = function handleCancel() {
26
+ setWhiteboardVisible(false);
27
+ };
24
28
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
25
29
  className: "fcr-widget-dialog-zindex-wrapper fcr-widget-dialog",
26
30
  children: [showControlbar && showToolbar && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -28,6 +32,7 @@ var MultiWindowWidgetDialog = exports.MultiWindowWidgetDialog = (0, _mobxReact.o
28
32
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_controlBar.WhiteboardControlbar, {})
29
33
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
30
34
  className: "fcr-widget-dialog-content",
35
+ onClick: handleCancel,
31
36
  children: children
32
37
  })]
33
38
  });
@@ -21,7 +21,8 @@ var ProgressElectronDialog = (0, _mobxReact.observer)(function (_ref) {
21
21
  fullscreen: false,
22
22
  maximizable: false,
23
23
  width: 290,
24
- height: 60
24
+ height: 60,
25
+ transparent: true
25
26
  });
26
27
  return function () {
27
28
  (0, _reactDom.unmountComponentAtNode)(node);
@@ -30,6 +30,10 @@
30
30
  background: var(--fcr_web_ui_scene_fill4_popup);
31
31
  color: var(--fcr_ui_scene_icontext1);
32
32
  }
33
+ .whiteboard-switch-theme_item-active {
34
+ background-color: var(--fcr_ui_scene_ramp_brand6);
35
+ }
36
+
33
37
  .whiteboard-switch-theme_item-close {
34
38
  width: 30px;
35
39
  height: 30px;
@@ -1,2 +1,3 @@
1
1
  import './index.css';
2
- export default function WhiteboardSwitchTheme(): import("react/jsx-runtime").JSX.Element;
2
+ declare const WhiteboardSwitchTheme: () => import("react/jsx-runtime").JSX.Element;
3
+ export default WhiteboardSwitchTheme;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = WhiteboardSwitchTheme;
8
+ exports["default"] = void 0;
9
9
  require("core-js/modules/es.array.find.js");
10
10
  require("core-js/modules/es.array.map.js");
11
11
  require("core-js/modules/es.object.to-string.js");
@@ -14,7 +14,6 @@ require("core-js/modules/esnext.async-iterator.map.js");
14
14
  require("core-js/modules/esnext.iterator.constructor.js");
15
15
  require("core-js/modules/esnext.iterator.find.js");
16
16
  require("core-js/modules/esnext.iterator.map.js");
17
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
18
17
  var _icon = require("agora-ui-foundation/lib/components/icon");
19
18
  var _type = require("agora-ui-foundation/lib/components/icon/type");
20
19
  var _popover = require("agora-ui-foundation/lib/components/popover");
@@ -24,15 +23,21 @@ var _libs = _interopRequireDefault(require("./libs"));
24
23
  var _react = require("react");
25
24
  var _store = require("../toolbar/store");
26
25
  var _i18n = require("agora-ui-foundation/lib/i18n");
26
+ var _context = require("../../context");
27
+ var _mobxReact = require("mobx-react");
27
28
  var _jsxRuntime = require("react/jsx-runtime");
28
- function WhiteboardSwitchTheme() {
29
+ var WhiteboardSwitchTheme = (0, _mobxReact.observer)(function () {
29
30
  var _useContext = (0, _react.useContext)(_store.ToolbarContext),
30
- setTheme = _useContext.setTheme;
31
- var _useState = (0, _react.useState)(false),
32
- _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
33
- visible = _useState2[0],
34
- setVisible = _useState2[1];
31
+ setTheme = _useContext.setTheme,
32
+ currentThemeType = _useContext.observables.currentThemeType;
33
+ // const [visible, setVisible] = useState(false);
34
+ var _useContext2 = (0, _react.useContext)(_context.BoardUIContext),
35
+ whiteboardVisible = _useContext2.observables.whiteboardVisible,
36
+ setWhiteboardVisible = _useContext2.setWhiteboardVisible;
35
37
  var t = (0, _i18n.useI18n)();
38
+ var handleCancel = function handleCancel() {
39
+ setWhiteboardVisible(false);
40
+ };
36
41
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
37
42
  trigger: "click",
38
43
  overlayClassName: "whiteboard-switch-theme-popover",
@@ -40,7 +45,7 @@ function WhiteboardSwitchTheme() {
40
45
  width: '100%'
41
46
  },
42
47
  overlayOffset: 2,
43
- visible: visible,
48
+ visible: whiteboardVisible,
44
49
  content: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
45
50
  className: "whiteboard-switch-theme",
46
51
  children: [(0, _libs["default"])(t).map(function (theme, idx) {
@@ -48,19 +53,18 @@ function WhiteboardSwitchTheme() {
48
53
  colors: theme.showColors,
49
54
  title: theme.title,
50
55
  theme: theme.theme,
56
+ isActive: currentThemeType.theme === theme.theme,
51
57
  onClick: function onClick(theme) {
52
58
  var result = (0, _libs["default"])(t).find(function (item) {
53
59
  return item.theme === theme.theme;
54
60
  });
55
61
  setTheme(result);
56
- setVisible(false);
62
+ setWhiteboardVisible(false);
57
63
  }
58
64
  }, theme.theme);
59
65
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
60
66
  className: "whiteboard-switch-theme_item-close",
61
- onClick: function onClick() {
62
- return setVisible(false);
63
- },
67
+ onClick: handleCancel,
64
68
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
65
69
  size: 20,
66
70
  type: _type.FcrIconType.FCR_CLOSE,
@@ -77,8 +81,9 @@ function WhiteboardSwitchTheme() {
77
81
  iconPrimary: 'var(--fcr_ui_scene_icontext1)'
78
82
  },
79
83
  onClick: function onClick() {
80
- return setVisible(!visible);
84
+ return setWhiteboardVisible(!whiteboardVisible);
81
85
  }
82
86
  })
83
87
  });
84
- }
88
+ });
89
+ var _default = exports["default"] = WhiteboardSwitchTheme;
@@ -2,6 +2,7 @@ export type SwitchThemeItemProps = {
2
2
  colors: string[][];
3
3
  title: string;
4
4
  theme: string;
5
+ isActive?: boolean;
5
6
  };
6
7
  export default function WhiteboardSwitchThemeItem(props: SwitchThemeItemProps & {
7
8
  onClick: (theme: SwitchThemeItemProps) => void;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  require("core-js/modules/es.object.define-property.js");
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
@@ -9,13 +10,19 @@ require("core-js/modules/es.array.concat.js");
9
10
  require("core-js/modules/es.array.map.js");
10
11
  require("core-js/modules/esnext.async-iterator.map.js");
11
12
  require("core-js/modules/esnext.iterator.map.js");
13
+ var _classnames = _interopRequireDefault(require("classnames"));
12
14
  var _jsxRuntime = require("react/jsx-runtime");
13
15
  function WhiteboardSwitchThemeItem(props) {
14
16
  var title = props.title,
15
17
  colors = props.colors,
16
- theme = props.theme;
18
+ theme = props.theme,
19
+ _props$isActive = props.isActive,
20
+ isActive = _props$isActive === void 0 ? false : _props$isActive;
21
+ var cls = (0, _classnames["default"])('whiteboard-switch-theme_item', {
22
+ 'whiteboard-switch-theme_item-active': isActive
23
+ });
17
24
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
18
- className: "whiteboard-switch-theme_item",
25
+ className: cls,
19
26
  onClick: function onClick() {
20
27
  return props.onClick({
21
28
  colors: colors,
@@ -73,19 +73,23 @@ var ShapePickerPanel = (0, _mobxReact.observer)(function () {
73
73
  type: _type.FcrBoardShape.Ellipse,
74
74
  icon: _type2.FcrIconType.FCR_WHITEBOARD_SHAP_CIRCLE,
75
75
  tip: t('fmt_whiteboard_tips_circle')
76
- }, {
77
- type: _type.FcrBoardShape.Pentagram,
78
- icon: _type2.FcrIconType.FCR_WHITEBOARD_SHAP_STAR,
79
- tip: t('fmt_whiteboard_label_pentagon')
80
- }, {
76
+ },
77
+ // {
78
+ // type: FcrBoardShape.Pentagram,
79
+ // icon: FcrIconType.FCR_WHITEBOARD_SHAP_STAR,
80
+ // tip: t('fmt_whiteboard_label_pentagon'),
81
+ // },
82
+ {
81
83
  type: _type.FcrBoardShape.Triangle,
82
84
  icon: _type2.FcrIconType.FCR_WHITEBOARD_SHAP_TRIANGLE,
83
85
  tip: t('fmt_whiteboard_tips_triangle')
84
- }, {
85
- type: _type.FcrBoardShape.Rhombus,
86
- icon: _type2.FcrIconType.FCR_WHITEBOARD_SHAP_REHUMBUS,
87
- tip: t('fmt_whiteboard_label_prismatic')
88
- }, {
86
+ },
87
+ // {
88
+ // type: FcrBoardShape.Rhombus,
89
+ // icon: FcrIconType.FCR_WHITEBOARD_SHAP_REHUMBUS,
90
+ // tip: t('fmt_whiteboard_label_prismatic'),
91
+ // },
92
+ {
89
93
  type: _type.FcrBoardShape.Straight,
90
94
  icon: _type2.FcrIconType.FCR_WHITEBOARD_SHAP_LINE,
91
95
  tip: t('fmt_whiteboard_tips_straight')
@@ -6,6 +6,7 @@ export declare class ToolbarStore {
6
6
  currentShape: FcrBoardShape | undefined;
7
7
  currentColor: string;
8
8
  currentStrokeWidth: number;
9
+ currentThemeType: WhiteboardThemeType;
9
10
  toolbarPosition: {
10
11
  x: number;
11
12
  y: number;
@@ -51,6 +51,8 @@ var _mobx = require("mobx");
51
51
  var _type = require("../../type");
52
52
  var _react = require("react");
53
53
  var _rendererEvent = require("../../../../utilities/renderer-event");
54
+ var _libs = _interopRequireDefault(require("../switch-theme/libs"));
55
+ var _i18n = require("agora-ui-foundation/lib/i18n");
54
56
  var _ToolbarStore;
55
57
  var _initProto, _init_observables;
56
58
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
@@ -72,6 +74,7 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
72
74
  currentShape: undefined,
73
75
  currentColor: '',
74
76
  currentStrokeWidth: 0,
77
+ currentThemeType: (0, _libs["default"])(_i18n.transI18n)[0],
75
78
  toolbarPosition: {
76
79
  x: 0,
77
80
  y: 0
@@ -32,6 +32,7 @@ declare const boardUIContextDefault: {
32
32
  };
33
33
  progress: number;
34
34
  writeEnabled: boolean;
35
+ whiteboardVisible: boolean;
35
36
  };
36
37
  handleBoardDomLoad: (ref: HTMLDivElement | null) => void;
37
38
  handleCollectorDomLoad: (ref: HTMLDivElement | null) => void;
@@ -39,6 +40,7 @@ declare const boardUIContextDefault: {
39
40
  handleOpen: () => void;
40
41
  setPrivilege: (canOperate: boolean) => void;
41
42
  setWriteEnable: (enable: boolean) => void;
43
+ setWhiteboardVisible: (visible: boolean) => void;
42
44
  };
43
45
  export declare const BoardUIContext: React.Context<{
44
46
  observables: {
@@ -54,6 +56,7 @@ export declare const BoardUIContext: React.Context<{
54
56
  };
55
57
  progress: number;
56
58
  writeEnabled: boolean;
59
+ whiteboardVisible: boolean;
57
60
  };
58
61
  handleBoardDomLoad: (ref: HTMLDivElement | null) => void;
59
62
  handleCollectorDomLoad: (ref: HTMLDivElement | null) => void;
@@ -61,6 +64,7 @@ export declare const BoardUIContext: React.Context<{
61
64
  handleOpen: () => void;
62
65
  setPrivilege: (canOperate: boolean) => void;
63
66
  setWriteEnable: (enable: boolean) => void;
67
+ setWhiteboardVisible: (visible: boolean) => void;
64
68
  }>;
65
69
  export type BoardUIContextValue = typeof boardUIContextDefault;
66
70
  export {};
@@ -22,13 +22,15 @@ var boardUIContextDefault = {
22
22
  top: 0
23
23
  },
24
24
  progress: 0,
25
- writeEnabled: false
25
+ writeEnabled: false,
26
+ whiteboardVisible: false
26
27
  },
27
28
  handleBoardDomLoad: function handleBoardDomLoad(ref) {},
28
29
  handleCollectorDomLoad: function handleCollectorDomLoad(ref) {},
29
30
  handleClose: function handleClose() {},
30
31
  handleOpen: function handleOpen() {},
31
32
  setPrivilege: function setPrivilege(canOperate) {},
32
- setWriteEnable: function setWriteEnable(enable) {}
33
+ setWriteEnable: function setWriteEnable(enable) {},
34
+ setWhiteboardVisible: function setWhiteboardVisible(visible) {}
33
35
  };
34
36
  var BoardUIContext = exports.BoardUIContext = /*#__PURE__*/(0, _react.createContext)(boardUIContextDefault);