fcr-ui-scene 3.6.4 → 3.7.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 (468) hide show
  1. package/lib/creator.d.ts +4 -3
  2. package/lib/creator.js +146 -111
  3. package/lib/electron/app.js +1 -1
  4. package/lib/electron/bootstrap-sdk.js +49 -4
  5. package/lib/electron/injections.d.ts +5 -1
  6. package/lib/electron/injections.js +14 -2
  7. package/lib/electron/ipc/type.d.ts +8 -4
  8. package/lib/electron/ipc/type.js +10 -4
  9. package/lib/electron/logger.js +1 -1
  10. package/lib/electron/main.js +5 -2
  11. package/lib/electron/preload.js +34 -5
  12. package/lib/fragments/annotation/index.d.ts +2 -2
  13. package/lib/fragments/annotation/index.js +38 -28
  14. package/lib/fragments/annotation/libs.d.ts +2 -2
  15. package/lib/fragments/annotation/store.d.ts +21 -4
  16. package/lib/fragments/annotation/store.js +281 -84
  17. package/lib/fragments/annotation/style.css +9 -0
  18. package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.js +1 -1
  19. package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.js +1 -1
  20. package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.d.ts +26 -2
  21. package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.js +57 -8
  22. package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.js +36 -3
  23. package/lib/fragments/annotation/view.d.ts +1 -0
  24. package/lib/fragments/annotation/view.js +52 -10
  25. package/lib/modules/action-bar/components/apps/index.js +54 -38
  26. package/lib/modules/action-bar/components/chat/index.js +13 -34
  27. package/lib/modules/action-bar/components/collapse/index.js +1 -1
  28. package/lib/modules/action-bar/components/leave/index.js +9 -9
  29. package/lib/modules/action-bar/components/more/index.js +26 -27
  30. package/lib/modules/action-bar/components/participants/index.js +23 -39
  31. package/lib/modules/action-bar/components/record/index.js +7 -13
  32. package/lib/modules/action-bar/components/screen-share/index.js +4 -24
  33. package/lib/modules/action-bar/components/security/index.js +29 -34
  34. package/lib/modules/action-bar/components/settings/index.js +13 -19
  35. package/lib/modules/action-bar/index.d.ts +4 -0
  36. package/lib/modules/action-bar/index.js +3 -1
  37. package/lib/modules/action-bar/store.d.ts +16 -6
  38. package/lib/modules/action-bar/store.js +63 -25
  39. package/lib/modules/action-bar/types.d.ts +3 -3
  40. package/lib/modules/action-bar/view.js +2 -3
  41. package/lib/modules/annotation/annotation-index.d.ts +2 -0
  42. package/lib/modules/annotation/annotation-index.js +80 -0
  43. package/lib/modules/annotation/annotation-toolbar-store.d.ts +82 -0
  44. package/lib/modules/annotation/annotation-toolbar-store.js +501 -0
  45. package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
  46. package/lib/modules/annotation/components/color-picker/components/color.js +38 -0
  47. package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
  48. package/lib/modules/annotation/components/color-picker/components/panel.js +109 -0
  49. package/lib/modules/annotation/components/color-picker/components/picker.d.ts +1 -0
  50. package/lib/modules/annotation/components/color-picker/components/picker.js +75 -0
  51. package/lib/modules/annotation/components/color-picker/index.d.ts +2 -0
  52. package/lib/modules/annotation/components/color-picker/index.js +47 -0
  53. package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
  54. package/lib/modules/annotation/components/eraser-picker.js +144 -0
  55. package/lib/modules/annotation/components/expansion/index.d.ts +1 -0
  56. package/lib/modules/annotation/components/expansion/index.js +100 -0
  57. package/lib/modules/annotation/components/extra-tool-picker.d.ts +1 -0
  58. package/lib/modules/annotation/components/extra-tool-picker.js +62 -0
  59. package/lib/modules/annotation/components/history.d.ts +2 -0
  60. package/lib/modules/annotation/components/history.js +78 -0
  61. package/lib/modules/annotation/components/icons/fold-icon.d.ts +2 -0
  62. package/lib/modules/annotation/components/icons/fold-icon.js +41 -0
  63. package/lib/modules/annotation/components/icons/move-icon.d.ts +1 -0
  64. package/lib/modules/annotation/components/icons/move-icon.js +66 -0
  65. package/lib/modules/annotation/components/item/index.d.ts +1 -0
  66. package/lib/modules/annotation/components/item/index.js +43 -0
  67. package/lib/modules/annotation/components/move-handle.d.ts +5 -0
  68. package/lib/modules/annotation/components/move-handle.js +134 -0
  69. package/lib/modules/annotation/components/pen-picker.d.ts +4 -0
  70. package/lib/modules/annotation/components/pen-picker.js +155 -0
  71. package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
  72. package/lib/modules/annotation/components/screen-capture-picker.js +85 -0
  73. package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
  74. package/lib/modules/annotation/components/shape-picker.js +210 -0
  75. package/lib/modules/annotation/hooks/index.d.ts +14 -0
  76. package/lib/modules/annotation/hooks/index.js +292 -0
  77. package/lib/modules/annotation/index.d.ts +4 -1
  78. package/lib/modules/annotation/index.js +20 -22
  79. package/lib/modules/annotation/store.d.ts +59 -18
  80. package/lib/modules/annotation/store.js +503 -263
  81. package/lib/modules/annotation/style.css +10 -0
  82. package/lib/modules/annotation/view.js +9 -11
  83. package/lib/modules/chat/chat-room-store.js +5 -2
  84. package/lib/modules/chat/components/chat-select/index.js +1 -1
  85. package/lib/modules/chat/components/chat-select/select-item/index.js +10 -3
  86. package/lib/modules/chat/components/message-list/message-item/index.js +4 -2
  87. package/lib/modules/chat/index.d.ts +2 -0
  88. package/lib/modules/chat/index.js +13 -3
  89. package/lib/modules/chat/store.d.ts +3 -0
  90. package/lib/modules/chat/store.js +12 -6
  91. package/lib/modules/chat/types.d.ts +1 -0
  92. package/lib/modules/chat/types.js +2 -1
  93. package/lib/modules/chat/util.js +2 -1
  94. package/lib/modules/chat/view.js +6 -3
  95. package/lib/modules/{action-bar/components → components}/apps/app-item/index.d.ts +1 -1
  96. package/lib/modules/components/apps/app-list.d.ts +3 -0
  97. package/lib/modules/{action-bar/components → components}/apps/app-list.js +2 -4
  98. package/lib/modules/components/apps/types.d.ts +14 -0
  99. package/lib/modules/components/apps/types.js +6 -0
  100. package/lib/modules/components/device-control/components/carmera/index.js +71 -68
  101. package/lib/modules/components/device-control/components/microphone/index.js +99 -97
  102. package/lib/modules/components/device-control/store.d.ts +1 -1
  103. package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +7 -7
  104. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +0 -2
  105. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +4 -7
  106. package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +0 -1
  107. package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +19 -36
  108. package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +1 -0
  109. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +9 -2
  110. package/lib/modules/components/member-window/components/member-actions/components/user-info.js +0 -3
  111. package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +15 -11
  112. package/lib/modules/components/member-window/components/member-actions/index.js +10 -2
  113. package/lib/modules/components/member-window/components/member-actions/libs/index.js +2 -2
  114. package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.d.ts +12 -0
  115. package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +75 -0
  116. package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +1 -7
  117. package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +7 -47
  118. package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +12 -0
  119. package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +68 -0
  120. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +1 -9
  121. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +7 -49
  122. package/lib/modules/components/member-window/components/video-player/components/zoomable-container.d.ts +15 -0
  123. package/lib/modules/components/member-window/components/video-player/components/zoomable-container.js +255 -0
  124. package/lib/modules/components/member-window/components/video-player/index.d.ts +2 -0
  125. package/lib/modules/components/member-window/components/video-player/index.js +8 -2
  126. package/lib/modules/components/member-window/index.css +16 -6
  127. package/lib/modules/components/member-window/index.d.ts +1 -1
  128. package/lib/modules/components/member-window/index.js +12 -4
  129. package/lib/modules/components/member-window/types.d.ts +2 -0
  130. package/lib/modules/components/security-menu/index.js +6 -5
  131. package/lib/modules/control-bar/components/annotation-button/index.js +21 -8
  132. package/lib/modules/control-bar/components/more-actions/index.css +13 -0
  133. package/lib/modules/control-bar/components/more-actions/index.js +1 -1
  134. package/lib/modules/control-bar/components/share-audio/index.css +90 -0
  135. package/lib/modules/control-bar/components/share-audio/index.d.ts +15 -0
  136. package/lib/modules/control-bar/components/share-audio/index.js +173 -0
  137. package/lib/modules/control-bar/components/share-state-nav/index.css +5 -0
  138. package/lib/modules/control-bar/components/share-state-nav/index.js +14 -2
  139. package/lib/modules/control-bar/index.d.ts +2 -0
  140. package/lib/modules/control-bar/index.js +9 -1
  141. package/lib/modules/control-bar/store.d.ts +16 -7
  142. package/lib/modules/control-bar/store.js +36 -12
  143. package/lib/modules/control-bar/view.d.ts +4 -0
  144. package/lib/modules/control-bar/view.js +180 -90
  145. package/lib/modules/device-pretest/store.d.ts +1 -1
  146. package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -1
  147. package/lib/modules/dialog/components/dialog-container/index.css +1 -0
  148. package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -1
  149. package/lib/modules/dialog/components/dialog-container/index.js +27 -10
  150. package/lib/modules/dialog/components/host-area-container/index.js +4 -4
  151. package/lib/modules/dialog/components/normal-window/index.d.ts +19 -0
  152. package/lib/modules/dialog/components/normal-window/index.js +69 -0
  153. package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.js +17 -15
  154. package/lib/modules/dialog/dialogs/chat/components/actions.d.ts +1 -0
  155. package/lib/modules/dialog/dialogs/chat/components/actions.js +33 -0
  156. package/lib/modules/dialog/{components → dialogs}/chat/index.d.ts +1 -1
  157. package/lib/modules/dialog/dialogs/chat/index.js +59 -0
  158. package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +6 -0
  159. package/lib/modules/dialog/{components → dialogs}/confirm-leave-meeting/index.js +13 -37
  160. package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.js +19 -12
  161. package/lib/modules/dialog/{components → dialogs}/control-bar/index.js +2 -2
  162. package/lib/modules/dialog/{components → dialogs}/device-setting/index.js +20 -13
  163. package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +12 -0
  164. package/lib/modules/dialog/dialogs/end-meeting/index.js +45 -0
  165. package/lib/modules/dialog/{components/interpreter/electron.js → dialogs/interpreter/index.js} +17 -11
  166. package/lib/modules/dialog/dialogs/invite/index.d.ts +3 -0
  167. package/lib/modules/dialog/{components → dialogs}/invite/index.js +9 -25
  168. package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +2 -0
  169. package/lib/modules/dialog/{components → dialogs}/live-streaming/index.js +11 -34
  170. package/lib/modules/dialog/dialogs/participant/components/actions.d.ts +1 -0
  171. package/lib/modules/dialog/dialogs/participant/components/actions.js +32 -0
  172. package/lib/modules/dialog/dialogs/participant/components/title.d.ts +1 -0
  173. package/lib/modules/dialog/dialogs/participant/components/title.js +19 -0
  174. package/lib/modules/dialog/dialogs/participant/index.d.ts +2 -0
  175. package/lib/modules/dialog/dialogs/participant/index.js +53 -0
  176. package/lib/modules/dialog/dialogs/pre-setting/index.js +62 -0
  177. package/lib/modules/dialog/dialogs/rename/index.js +35 -0
  178. package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.js +1 -1
  179. package/lib/modules/dialog/{components → dialogs}/video-window/index.js +11 -8
  180. package/lib/modules/dialog/{components → dialogs}/whiteboard/index.js +2 -3
  181. package/lib/modules/dialog/{components → dialogs}/widget/electron.js +1 -1
  182. package/lib/modules/dialog/{components → dialogs}/widget/index.js +1 -1
  183. package/lib/modules/dialog/hooks/use-web-drag.d.ts +8 -0
  184. package/lib/modules/dialog/hooks/use-web-drag.js +73 -0
  185. package/lib/modules/dialog/hooks/useElectron.d.ts +2 -7
  186. package/lib/modules/dialog/hooks/useElectron.js +46 -156
  187. package/lib/modules/dialog/index.d.ts +4 -0
  188. package/lib/modules/dialog/index.js +4 -2
  189. package/lib/modules/dialog/level-config.d.ts +11 -0
  190. package/lib/modules/dialog/level-config.js +21 -0
  191. package/lib/modules/dialog/store.d.ts +15 -6
  192. package/lib/modules/dialog/store.js +40 -54
  193. package/lib/modules/dialog/type.d.ts +15 -12
  194. package/lib/modules/event-confirm/components/window/index.d.ts +1 -4
  195. package/lib/modules/event-confirm/components/window/index.js +34 -23
  196. package/lib/modules/event-confirm/index.d.ts +2 -0
  197. package/lib/modules/event-confirm/index.js +3 -2
  198. package/lib/modules/event-confirm/store.d.ts +9 -1
  199. package/lib/modules/event-confirm/store.js +24 -16
  200. package/lib/modules/event-confirm/view.js +11 -22
  201. package/lib/modules/event-sound/index.d.ts +2 -0
  202. package/lib/modules/event-sound/index.js +8 -1
  203. package/lib/modules/event-toast/index.css +10 -0
  204. package/lib/modules/event-toast/store.d.ts +1 -1
  205. package/lib/modules/event-toast/store.js +17 -15
  206. package/lib/modules/event-toast/view.js +2 -1
  207. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +4 -2
  208. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -1
  209. package/lib/modules/interpreter/store.d.ts +1 -0
  210. package/lib/modules/interpreter/store.js +12 -5
  211. package/lib/modules/interpreter/view.js +7 -1
  212. package/lib/modules/layout/components/Aside.js +4 -0
  213. package/lib/modules/layout/components/Carousel.js +3 -1
  214. package/lib/modules/layout/components/CommonVideoRenderer.d.ts +3 -1
  215. package/lib/modules/layout/components/CommonVideoRenderer.js +13 -9
  216. package/lib/modules/layout/components/Gallery.js +11 -3
  217. package/lib/modules/layout/index.css +1 -0
  218. package/lib/modules/layout/index.d.ts +2 -0
  219. package/lib/modules/layout/index.js +4 -3
  220. package/lib/modules/layout/store.d.ts +9 -5
  221. package/lib/modules/layout/store.js +38 -46
  222. package/lib/modules/participant/components/confirm-input/index.css +4 -0
  223. package/lib/modules/participant/components/confirm-input/index.d.ts +1 -0
  224. package/lib/modules/participant/components/confirm-input/index.js +2 -1
  225. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +2 -1
  226. package/lib/modules/participant/components/participants/components/participants/index.js +11 -3
  227. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +7 -3
  228. package/lib/modules/participant/components/participants/types.d.ts +1 -0
  229. package/lib/modules/participant/store.d.ts +2 -1
  230. package/lib/modules/participant/store.js +23 -9
  231. package/lib/modules/phone-audio-connect/store.d.ts +4 -4
  232. package/lib/modules/setting/audio-settings/audio-settings.js +6 -17
  233. package/lib/modules/setting/config.d.ts +16 -0
  234. package/lib/modules/setting/config.js +17 -1
  235. package/lib/modules/setting/index.d.ts +2 -4
  236. package/lib/modules/setting/index.js +7 -16
  237. package/lib/modules/setting/minutes-settings/minutes-settings.js +0 -4
  238. package/lib/modules/setting/state/index.js +5 -5
  239. package/lib/modules/setting/store.d.ts +37 -33
  240. package/lib/modules/setting/store.js +275 -261
  241. package/lib/modules/setting/translate-settings/language-select.js +0 -2
  242. package/lib/modules/setting/video-settings/video-settings-basic.js +6 -6
  243. package/lib/modules/setting/video-settings/video-settings.js +2 -2
  244. package/lib/modules/setting/view.js +1 -1
  245. package/lib/modules/share-screen/components/control-bar/index.css +75 -0
  246. package/lib/modules/share-screen/components/control-bar/index.d.ts +3 -0
  247. package/lib/modules/share-screen/components/control-bar/index.js +88 -0
  248. package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.d.ts +8 -0
  249. package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.js +46 -0
  250. package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.d.ts +6 -0
  251. package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.js +32 -0
  252. package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.d.ts +6 -0
  253. package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.js +32 -0
  254. package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.d.ts +6 -0
  255. package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.js +32 -0
  256. package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.d.ts +6 -0
  257. package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.js +32 -0
  258. package/lib/modules/share-screen/components/selection/index.js +28 -14
  259. package/lib/modules/share-screen/components/share-scenario/index.d.ts +5 -0
  260. package/lib/modules/share-screen/components/share-scenario/index.js +47 -0
  261. package/lib/modules/share-screen/index.d.ts +4 -2
  262. package/lib/modules/share-screen/index.js +11 -2
  263. package/lib/modules/share-screen/store.d.ts +32 -11
  264. package/lib/modules/share-screen/store.js +273 -192
  265. package/lib/modules/share-screen/view.js +2 -2
  266. package/lib/modules/state-bar/index.js +2 -3
  267. package/lib/modules/state-bar/layout-config.d.ts +2 -4
  268. package/lib/modules/state-bar/layout-config.js +10 -5
  269. package/lib/modules/state-bar/live-streaming-state.js +0 -1
  270. package/lib/modules/state-bar/store.d.ts +7 -7
  271. package/lib/modules/state-bar/store.js +17 -15
  272. package/lib/modules/state-bar/view.js +19 -23
  273. package/lib/modules/video-window/components/members/index.js +3 -2
  274. package/lib/modules/video-window/index.js +0 -3
  275. package/lib/modules/waiting-room-layout/index.css +3 -3
  276. package/lib/modules/waiting-room-layout/index.js +2 -2
  277. package/lib/modules/waiting-room-layout/view.js +1 -0
  278. package/lib/modules/whiteboard/components/control-bar/index.js +2 -2
  279. package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -1
  280. package/lib/modules/whiteboard/components/control-bar/store.js +4 -2
  281. package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +4 -4
  282. package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +0 -14
  283. package/lib/modules/whiteboard/components/toolbar/hooks/index.js +4 -155
  284. package/lib/modules/whiteboard/components/toolbar/store.d.ts +4 -2
  285. package/lib/modules/whiteboard/components/toolbar/store.js +37 -25
  286. package/lib/modules/whiteboard/components/toolbar/style.css +1 -0
  287. package/lib/modules/whiteboard/index.d.ts +3 -1
  288. package/lib/modules/whiteboard/index.js +26 -23
  289. package/lib/modules/widget/view.js +4 -0
  290. package/lib/providers/ability-provider.d.ts +2 -0
  291. package/lib/providers/annotation-provider.d.ts +43 -47
  292. package/lib/providers/annotation-provider.js +94 -142
  293. package/lib/providers/app-list-provider.d.ts +98 -0
  294. package/lib/providers/app-list-provider.js +251 -0
  295. package/lib/providers/device-provider.d.ts +31 -23
  296. package/lib/providers/device-provider.js +495 -444
  297. package/lib/providers/device-stream-provider.js +2 -2
  298. package/lib/providers/event-provider.d.ts +0 -4
  299. package/lib/providers/event-provider.js +0 -10
  300. package/lib/providers/interpreter-provider.js +10 -7
  301. package/lib/providers/privilege-provider.d.ts +1 -1
  302. package/lib/providers/privilege-provider.js +3 -2
  303. package/lib/providers/renderer-provider.d.ts +1 -0
  304. package/lib/providers/renderer-provider.js +7 -2
  305. package/lib/providers/room-provider.d.ts +5 -1
  306. package/lib/providers/room-provider.js +44 -16
  307. package/lib/providers/screen-share-provider.d.ts +73 -17
  308. package/lib/providers/screen-share-provider.js +222 -100
  309. package/lib/providers/sharing-provider.d.ts +0 -1
  310. package/lib/providers/sharing-provider.js +3 -9
  311. package/lib/providers/user-setting-storage-provider.d.ts +1 -0
  312. package/lib/providers/user-setting-storage-provider.js +5 -12
  313. package/lib/providers/widget-provider.d.ts +19 -0
  314. package/lib/providers/widget-provider.js +28 -2
  315. package/lib/runtime.d.ts +10 -1
  316. package/lib/scenes/main-scene.d.ts +12 -2
  317. package/lib/scenes/main-scene.js +54 -28
  318. package/lib/scenes/waiting-scene.d.ts +11 -0
  319. package/lib/scenes/waiting-scene.js +34 -8
  320. package/lib/schema.d.ts +6 -0
  321. package/lib/schema.js +5 -1
  322. package/lib/shared-data-source/annotation-data.d.ts +17 -0
  323. package/lib/shared-data-source/annotation-data.js +110 -0
  324. package/lib/shared-data-source/app-list-data.d.ts +34 -0
  325. package/lib/shared-data-source/app-list-data.js +133 -0
  326. package/lib/shared-data-source/config.d.ts +26 -7
  327. package/lib/shared-data-source/config.js +29 -11
  328. package/lib/shared-data-source/confirm-data.d.ts +25 -0
  329. package/lib/shared-data-source/confirm-data.js +97 -0
  330. package/lib/shared-data-source/interpreter.d.ts +1 -0
  331. package/lib/shared-data-source/layout-data.d.ts +2 -0
  332. package/lib/shared-data-source/layout-data.js +14 -3
  333. package/lib/shared-data-source/meeting-time.d.ts +23 -1
  334. package/lib/shared-data-source/meeting-time.js +160 -43
  335. package/lib/shared-data-source/member-data.d.ts +10 -9
  336. package/lib/shared-data-source/member-data.js +55 -48
  337. package/lib/shared-data-source/screen-share-data.d.ts +100 -17
  338. package/lib/shared-data-source/screen-share-data.js +142 -22
  339. package/lib/shared-data-source/setting.d.ts +36 -4
  340. package/lib/shared-data-source/setting.js +92 -57
  341. package/lib/shared-data-source/video-window.d.ts +3 -0
  342. package/lib/shared-data-source/video-window.js +52 -30
  343. package/lib/shared-data-source/waiting-room.js +4 -2
  344. package/lib/translations/enUS.d.ts +62 -7
  345. package/lib/translations/enUS.js +71 -14
  346. package/lib/translations/zhCN.d.ts +62 -7
  347. package/lib/translations/zhCN.js +73 -16
  348. package/lib/type.d.ts +23 -5
  349. package/lib/type.js +6 -2
  350. package/lib/ui-manager.d.ts +5 -16
  351. package/lib/ui-manager.js +15 -57
  352. package/lib/ui-scene.d.ts +31 -6
  353. package/lib/ui-scene.js +180 -169
  354. package/lib/utilities/constant.d.ts +67 -63
  355. package/lib/utilities/constant.js +65 -61
  356. package/lib/utilities/dialog-utils.d.ts +66 -0
  357. package/lib/utilities/dialog-utils.js +188 -0
  358. package/lib/utilities/logger.js +3 -3
  359. package/lib/utilities/meeting-detail.js +1 -1
  360. package/lib/utilities/parameters.d.ts +1 -0
  361. package/lib/utilities/parameters.js +5 -1
  362. package/lib/utilities/renderer-event.d.ts +1 -1
  363. package/lib/utilities/screen-capture-permission.d.ts +1 -0
  364. package/lib/utilities/screen-capture-permission.js +9 -1
  365. package/lib/utilities/tools.d.ts +0 -66
  366. package/lib/utilities/tools.js +9 -186
  367. package/package.json +5 -6
  368. package/public/index.html +11 -1
  369. package/lib/modules/action-bar/components/apps/app-list.d.ts +0 -3
  370. package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +0 -17
  371. package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -30
  372. package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +0 -10
  373. package/lib/modules/action-bar/components/apps/useBeautyBackground.js +0 -36
  374. package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +0 -14
  375. package/lib/modules/action-bar/components/apps/useInterpreter.js +0 -37
  376. package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +0 -16
  377. package/lib/modules/action-bar/components/apps/useLiveStreaming.js +0 -41
  378. package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +0 -10
  379. package/lib/modules/action-bar/components/apps/useWidgetList.js +0 -39
  380. package/lib/modules/annotation/components/control-bar/index.css +0 -48
  381. package/lib/modules/annotation/components/control-bar/index.d.ts +0 -3
  382. package/lib/modules/annotation/components/control-bar/index.js +0 -142
  383. package/lib/modules/annotation/components/toolbar/index.d.ts +0 -0
  384. package/lib/modules/annotation/components/toolbar/index.js +0 -1
  385. package/lib/modules/dialog/components/chat/electron.d.ts +0 -2
  386. package/lib/modules/dialog/components/chat/electron.js +0 -35
  387. package/lib/modules/dialog/components/chat/index.js +0 -67
  388. package/lib/modules/dialog/components/confirm-leave-meeting/index.d.ts +0 -6
  389. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +0 -5
  390. package/lib/modules/dialog/components/connection-gateway/electron.js +0 -33
  391. package/lib/modules/dialog/components/device-setting/electron.d.ts +0 -2
  392. package/lib/modules/dialog/components/device-setting/electron.js +0 -37
  393. package/lib/modules/dialog/components/interpreter/electron.d.ts +0 -2
  394. package/lib/modules/dialog/components/interpreter/index.js +0 -33
  395. package/lib/modules/dialog/components/invite/index.d.ts +0 -3
  396. package/lib/modules/dialog/components/live-streaming/index.d.ts +0 -4
  397. package/lib/modules/dialog/components/participant/electron.d.ts +0 -2
  398. package/lib/modules/dialog/components/participant/electron.js +0 -35
  399. package/lib/modules/dialog/components/participant/index.d.ts +0 -2
  400. package/lib/modules/dialog/components/participant/index.js +0 -65
  401. package/lib/modules/dialog/components/pre-setting/electron.d.ts +0 -2
  402. package/lib/modules/dialog/components/pre-setting/electron.js +0 -51
  403. package/lib/modules/dialog/components/pre-setting/index.js +0 -38
  404. package/lib/modules/dialog/components/pre-setting-container/component/body.d.ts +0 -8
  405. package/lib/modules/dialog/components/pre-setting-container/component/body.js +0 -78
  406. package/lib/modules/dialog/components/pre-setting-container/index.css +0 -82
  407. package/lib/modules/dialog/components/pre-setting-container/index.d.ts +0 -18
  408. package/lib/modules/dialog/components/pre-setting-container/index.js +0 -116
  409. package/lib/modules/dialog/components/rename/index.js +0 -72
  410. package/lib/modules/dialog/dialogs.d.ts +0 -3
  411. package/lib/modules/dialog/dialogs.js +0 -28
  412. package/lib/utilities/setting-config-storage.d.ts +0 -18
  413. package/lib/utilities/setting-config-storage.js +0 -133
  414. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.d.ts +0 -0
  415. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.js +0 -0
  416. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.d.ts +0 -0
  417. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.js +0 -0
  418. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.d.ts +0 -0
  419. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.js +0 -0
  420. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +0 -0
  421. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.js +0 -0
  422. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.d.ts +0 -0
  423. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.js +0 -0
  424. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.d.ts +0 -0
  425. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/style.css +0 -0
  426. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.d.ts +0 -0
  427. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.js +0 -0
  428. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/style.css +0 -0
  429. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.d.ts +0 -0
  430. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.js +0 -0
  431. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.d.ts +0 -0
  432. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.d.ts +0 -0
  433. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.js +0 -0
  434. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/style.css +0 -0
  435. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/style.css +0 -0
  436. /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.d.ts +0 -0
  437. /package/lib/modules/{action-bar/components → components}/apps/app-item/index.css +0 -0
  438. /package/lib/modules/{action-bar/components → components}/apps/app-item/index.js +0 -0
  439. /package/lib/modules/{action-bar/components → components}/apps/index.css +0 -0
  440. /package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.d.ts +0 -0
  441. /package/lib/modules/dialog/{components → dialogs}/confirm/index.d.ts +0 -0
  442. /package/lib/modules/dialog/{components → dialogs}/confirm/index.js +0 -0
  443. /package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.d.ts +0 -0
  444. /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.d.ts +0 -0
  445. /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.js +0 -0
  446. /package/lib/modules/dialog/{components → dialogs}/control-bar/index.d.ts +0 -0
  447. /package/lib/modules/dialog/{components → dialogs}/device-setting/index.css +0 -0
  448. /package/lib/modules/dialog/{components → dialogs}/device-setting/index.d.ts +0 -0
  449. /package/lib/modules/dialog/{components → dialogs}/interpreter/index.css +0 -0
  450. /package/lib/modules/dialog/{components → dialogs}/interpreter/index.d.ts +0 -0
  451. /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.css +0 -0
  452. /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.d.ts +0 -0
  453. /package/lib/modules/dialog/{components → dialogs}/rename/index.d.ts +0 -0
  454. /package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.d.ts +0 -0
  455. /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg1.png +0 -0
  456. /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg2.png +0 -0
  457. /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/fcr_png_host.png +0 -0
  458. /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.d.ts +0 -0
  459. /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.js +0 -0
  460. /package/lib/modules/dialog/{components → dialogs}/system-preference/index.css +0 -0
  461. /package/lib/modules/dialog/{components → dialogs}/system-preference/index.d.ts +0 -0
  462. /package/lib/modules/dialog/{components → dialogs}/system-preference/index.js +0 -0
  463. /package/lib/modules/dialog/{components → dialogs}/toast/index.d.ts +0 -0
  464. /package/lib/modules/dialog/{components → dialogs}/toast/index.js +0 -0
  465. /package/lib/modules/dialog/{components → dialogs}/video-window/index.d.ts +0 -0
  466. /package/lib/modules/dialog/{components → dialogs}/whiteboard/index.d.ts +0 -0
  467. /package/lib/modules/dialog/{components → dialogs}/widget/electron.d.ts +0 -0
  468. /package/lib/modules/dialog/{components → dialogs}/widget/index.d.ts +0 -0
@@ -1,39 +0,0 @@
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
- require("core-js/modules/es.array.map.js");
9
- require("core-js/modules/es.function.name.js");
10
- require("core-js/modules/es.object.to-string.js");
11
- require("core-js/modules/esnext.iterator.constructor.js");
12
- require("core-js/modules/esnext.iterator.map.js");
13
- var _react = require("react");
14
- var _store = require("../../store");
15
- var useWidgetList = function useWidgetList(onAppClick) {
16
- var _useContext = (0, _react.useContext)(_store.ActionBarContext),
17
- registeredWidgetConfigs = _useContext.registeredWidgetConfigs,
18
- openWidget = _useContext.openWidget;
19
- var _onClick = function onClick(widgetId) {
20
- openWidget(widgetId);
21
- onAppClick && onAppClick();
22
- };
23
- return (0, _react.useMemo)(function () {
24
- return registeredWidgetConfigs.map(function (widgetConfig) {
25
- return {
26
- name: widgetConfig.name,
27
- fcrToolTipProps: {
28
- content: widgetConfig.name
29
- },
30
- onClick: function onClick() {
31
- _onClick(widgetConfig.id);
32
- },
33
- imgSrc: widgetConfig.icon,
34
- permission: true
35
- };
36
- });
37
- }, [registeredWidgetConfigs]);
38
- };
39
- var _default = exports["default"] = useWidgetList;
@@ -1,48 +0,0 @@
1
- .annotation-control-bar {
2
- /* position: absolute;
3
- top: 0;
4
- left: 0; */
5
- width: 100%;
6
- height: 28px;
7
- background-color: var(--fcr_web_ui_scene_fill2);
8
- display: flex;
9
- align-items: center;
10
- justify-content: center;
11
- z-index: 1000;
12
- border-top: 2px solid var(--fcr_web_ui_scene_border1);
13
- border-bottom: 4px solid var(--fcr_web_ui_scene_border1);
14
- padding: 10px;
15
- }
16
-
17
- .annotation-control-bar-username {
18
- margin-right: 10px;
19
- }
20
-
21
- .fcr-annotation-exit-draw-btn {
22
- margin-left: 12px;
23
- }
24
-
25
- .fcr-annotation-exit-draw-btn p,
26
- .fcr-annotation-exit-draw-btn div {
27
- min-width: 100%;
28
- overflow: hidden;
29
- text-overflow: ellipsis;
30
- white-space: nowrap;
31
- }
32
-
33
- .annotation-control-bar-without-exit {
34
- margin-left: 12px;
35
- width: 20px;
36
- }
37
-
38
- .annotation-toolbar-btn {
39
- margin-left: 0px !important;
40
- width: 80px !important;
41
- }
42
-
43
- .annotation-toolbar-btn p {
44
- width: 80px !important;
45
- overflow: hidden;
46
- text-overflow: ellipsis;
47
- white-space: nowrap;
48
- }
@@ -1,3 +0,0 @@
1
- import './index.css';
2
- declare const FcrAnnotationControlBar: () => import("react/jsx-runtime").JSX.Element;
3
- export default FcrAnnotationControlBar;
@@ -1,142 +0,0 @@
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"] = void 0;
9
- var _react = require("react");
10
- require("./index.css");
11
- var _store = require("../../store");
12
- var _fcrCore = require("fcr-core");
13
- var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
14
- var _i18n = require("agora-ui-foundation/lib/i18n");
15
- var _icon = require("agora-ui-foundation/lib/components/icon");
16
- var _type = require("agora-ui-foundation/lib/components/icon/type");
17
- var _mobxReact = require("mobx-react");
18
- var _button = require("agora-ui-foundation/lib/components/button");
19
- var _classnames = _interopRequireDefault(require("classnames"));
20
- var _jsxRuntime = require("react/jsx-runtime");
21
- var FcrAnnotationControlBar = (0, _mobxReact.observer)(function () {
22
- var _useContext = (0, _react.useContext)(_store.AnnotationStoreContext),
23
- screenShareWindowData = _useContext.screenShareWindowData,
24
- zoomIn = _useContext.zoomIn,
25
- zoomOut = _useContext.zoomOut,
26
- fullContainer = _useContext.fullContainer,
27
- setOriginScalc = _useContext.setOriginScalc,
28
- allowAnnotationWriteState = _useContext.allowAnnotationWriteState,
29
- setToolsShow = _useContext.setToolsShow,
30
- isShowToolbar = _useContext.isShowToolbar,
31
- annotationHasStart = _useContext.annotationHasStart,
32
- isAnnotationSupported = _useContext.isAnnotationSupported;
33
- var transI18n = (0, _i18n.useI18n)();
34
- var isMinimum = false;
35
- var isMaxmum = false;
36
- var isAdaptived = false;
37
- var isOriginal = false;
38
- var hasScreenSharing = screenShareWindowData && screenShareWindowData.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN;
39
- var hasLoopbackAudioStream = hasScreenSharing && screenShareWindowData.hasLoopbackSharing && screenShareWindowData.hasMicrophoneAudioStream;
40
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
41
- className: "annotation-control-bar",
42
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
43
- className: "whiteboard-controlbar-left",
44
- children: screenShareWindowData ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
45
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
46
- className: "annotation-control-bar-username",
47
- children: [screenShareWindowData.userName, transI18n('fmt_uimanager_labels_sharing')]
48
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
49
- type: !!hasLoopbackAudioStream ? _type.FcrIconType.FCR_DEVICEAUDIOON : _type.FcrIconType.FCR_DEVICEAUDIOOFF,
50
- size: 22,
51
- colors: {
52
- iconPrimary: 'var(--fcr_ui_scene_ramp_green6)'
53
- },
54
- style: {
55
- marginRight: '10px'
56
- }
57
- })]
58
- }) : null
59
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
60
- className: "whiteboard-controlbar-center",
61
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
62
- content: isMinimum ? transI18n('fmt_screenshare_whiteboard_tips_alreadyminumumsize') : transI18n('fmt_screenshare_whiteboard_button_narrow'),
63
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
64
- className: "whiteboard-controlbar-item",
65
- onClick: zoomOut,
66
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
67
- type: _type.FcrIconType.FCR_ZOOMOUT,
68
- size: 22,
69
- colors: {
70
- iconPrimary: isMinimum ? 'gray' : 'var(--fcr_ui_scene_icontext1)'
71
- }
72
- })
73
- })
74
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
75
- content: isMaxmum ? transI18n('fmt_screenshare_whiteboard_tips_alreadymaximumsize') : transI18n('fmt_screenshare_whiteboard_button_enlarge'),
76
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
77
- className: "whiteboard-controlbar-item",
78
- onClick: zoomIn,
79
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
80
- type: _type.FcrIconType.FCR_ZOOMIN,
81
- size: 22,
82
- colors: {
83
- iconPrimary: isMaxmum ? 'gray' : 'var(--fcr_ui_scene_icontext1)'
84
- }
85
- })
86
- })
87
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
88
- content: isAdaptived ? transI18n('fmt_screenshare_whiteboard_tips_alreadyadaptionsize') : transI18n('fmt_screenshare_lables_adaptionlsize'),
89
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
90
- className: "whiteboard-controlbar-item",
91
- onClick: fullContainer,
92
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
93
- type: _type.FcrIconType.FCR_FULLCOVERAGE,
94
- size: 22,
95
- colors: {
96
- iconPrimary: isAdaptived ? 'gray' : 'var(--fcr_ui_scene_icontext1)'
97
- }
98
- })
99
- })
100
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
101
- content: isOriginal ? transI18n('fmt_screenshare_tips_alreadyoriginalsize') : transI18n('fmt_screenshare_lables_originalsize'),
102
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
103
- className: "whiteboard-controlbar-item",
104
- onClick: setOriginScalc,
105
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
106
- type: _type.FcrIconType.FCR_EQUALRATIO,
107
- size: 22,
108
- colors: {
109
- iconPrimary: isOriginal ? 'gray' : 'var(--fcr_ui_scene_icontext1)'
110
- }
111
- })
112
- })
113
- })]
114
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
115
- className: "whiteboard-controlbar-right",
116
- children: isAnnotationSupported() && annotationHasStart && /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
117
- content: allowAnnotationWriteState ? transI18n('fmt_screenshare_toast_host_enabled_annotations') : transI18n('fmt_screenshare_toast_host_disabled_annotations'),
118
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
119
- className: (0, _classnames["default"])('whiteboard-controlbar-item', 'annotation-control-bar-without-exit', {
120
- 'annotation-toolbar-btn': isShowToolbar
121
- }),
122
- children: isShowToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
123
- size: "XXS",
124
- styleType: "normal",
125
- shape: "rounded",
126
- className: "fcr-annotation-exit-draw-btn",
127
- onClick: setToolsShow,
128
- children: transI18n('fmt_screenshare_whiteboard_button_exitdrawing')
129
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
130
- onClick: setToolsShow,
131
- type: _type.FcrIconType.FCR_WHITEBOARD2,
132
- size: 22,
133
- colors: {
134
- iconPrimary: allowAnnotationWriteState ? 'var(--fcr_ui_scene_icontext1)' : 'gray'
135
- }
136
- })
137
- })
138
- })
139
- })]
140
- });
141
- });
142
- var _default = exports["default"] = FcrAnnotationControlBar;
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,2 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- export declare const ChatElectronDialog: ({ children }: PropsWithChildren<{}>) => import("react/jsx-runtime").JSX.Element;
@@ -1,35 +0,0 @@
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.ChatElectronDialog = void 0;
8
- var _constant = require("../../../../utilities/constant");
9
- var _useElectron = require("../../hooks/useElectron");
10
- var _i18n = require("agora-ui-foundation/lib/i18n");
11
- var _jsxRuntime = require("react/jsx-runtime");
12
- var ChatElectronDialog = exports.ChatElectronDialog = function ChatElectronDialog(_ref) {
13
- var children = _ref.children;
14
- var transI18n = (0, _i18n.useI18n)();
15
- var config = {
16
- width: 800,
17
- height: 600,
18
- minWidth: 400,
19
- minHeight: 400,
20
- maxWidth: 1100,
21
- maxHeight: 900,
22
- fullscreen: false,
23
- maximizable: false,
24
- title: transI18n('fmt_chat_window_title'),
25
- resizable: true,
26
- hasShadow: true
27
- };
28
- (0, _useElectron.useElectronDialog)({
29
- config: config,
30
- dialogKey: _constant.FcrUIDialogKey.CHAT,
31
- children: children,
32
- hasCustomShadow: false
33
- });
34
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
35
- };
@@ -1,67 +0,0 @@
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.ChatDialog = void 0;
9
- var _env = require("agora-foundation/lib/utilities/env");
10
- var _react = require("react");
11
- var _store = require("../../store");
12
- var _i18n = require("agora-ui-foundation/lib/i18n");
13
- var _electron = require("./electron");
14
- var _type = require("fcr-core/lib/room-control/chatroom-control/type");
15
- var _dialogContainer = _interopRequireDefault(require("../dialog-container"));
16
- var _constant = require("../../../../utilities/constant");
17
- var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
18
- var _iconButton = require("agora-ui-foundation/lib/components/icon-button");
19
- var _type2 = require("agora-ui-foundation/lib/components/icon/type");
20
- var _mobxReact = require("mobx-react");
21
- var _jsxRuntime = require("react/jsx-runtime");
22
- var Container = (0, _mobxReact.observer)(function (props) {
23
- var store = (0, _react.useContext)(_store.StoreContext);
24
- var transI18n = (0, _i18n.useI18n)();
25
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogContainer["default"], {
26
- title: store.chatRoomState === _type.FcrChatRoomConnectionState.Connected ? transI18n('fmt_chat_label_chat') : transI18n('fmt_aside_status_connecting'),
27
- actions: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
28
- children: [props.chatAction, store.isSharingScreen && store.isSharingScreenOwner ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
29
- content: transI18n('fmt_uimanager_option_mergeview'),
30
- mouseEnterDelay: 0,
31
- trigger: "hover",
32
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_iconButton.FcrIconButton, {
33
- icon: _type2.FcrIconType.FCR_WINDOWPAGE_BIGGER,
34
- onClick: store.moveChatFromDialogToAside,
35
- className: "frc-window-header__icon fcr-no-drag",
36
- iconColors: {
37
- iconPrimary: 'var(--fcr_ui_scene_icontext1)'
38
- }
39
- })
40
- })]
41
- }),
42
- width: (0, _env.isElectron)() ? 800 : 520 // APAAS-10264 聊天在 web 下宽度改成520
43
- ,
44
- height: store.waitingRoomState ? 630 : 600,
45
- dialogKey: _constant.FcrUIDialogKey.CHAT,
46
- onClose: store.closeChatFromDialog,
47
- children: props.children
48
- });
49
- });
50
- var ChatDialog = exports.ChatDialog = function ChatDialog(_ref) {
51
- var children = _ref.children,
52
- chatAction = _ref.chatAction;
53
- var store = (0, _react.useContext)(_store.StoreContext);
54
- var container = /*#__PURE__*/(0, _jsxRuntime.jsx)(_store.StoreContext.Provider, {
55
- value: store,
56
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Container, {
57
- chatAction: chatAction,
58
- children: children
59
- })
60
- });
61
- if ((0, _env.isElectron)()) {
62
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_electron.ChatElectronDialog, {
63
- children: container
64
- });
65
- }
66
- return container;
67
- };
@@ -1,6 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- export declare const ConfirmLeaveMeetingDialog: FC<PropsWithChildren<{
3
- title: string;
4
- onOk: () => void;
5
- onCancel: () => void;
6
- }>>;
@@ -1,5 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { ParamsType } from '.';
3
- export declare const ConnectionGatewayElectronDialog: ({ children, }: PropsWithChildren<{
4
- params: ParamsType;
5
- }>) => null;
@@ -1,33 +0,0 @@
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.ConnectionGatewayElectronDialog = void 0;
8
- var _constant = require("../../../../utilities/constant");
9
- var _useElectron = require("../../hooks/useElectron");
10
- var _i18n = require("agora-ui-foundation/lib/i18n");
11
- var ConnectionGatewayElectronDialog = exports.ConnectionGatewayElectronDialog = function ConnectionGatewayElectronDialog(_ref) {
12
- var children = _ref.children;
13
- var transI18n = (0, _i18n.useI18n)();
14
- var config = {
15
- maximizable: false,
16
- minimizable: false,
17
- fullscreenable: false,
18
- width: 400,
19
- height: 500,
20
- trafficLightPosition: {
21
- x: 0,
22
- y: 0
23
- },
24
- title: transI18n('fmt_toolbar_label_connectaudio'),
25
- resizable: false
26
- };
27
- (0, _useElectron.useElectronDialog)({
28
- dialogKey: _constant.FcrUIDialogKey.CONNECTION_GATEWAY,
29
- config: config,
30
- children: children
31
- });
32
- return null;
33
- };
@@ -1,2 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- export declare const DeviceSettingElectronDialog: ({ children }: PropsWithChildren<{}>) => null;
@@ -1,37 +0,0 @@
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.DeviceSettingElectronDialog = void 0;
8
- var _i18n = require("agora-ui-foundation/lib/i18n");
9
- var _constant = require("../../../../utilities/constant");
10
- var _useElectron = require("../../hooks/useElectron");
11
- var DeviceSettingElectronDialog = exports.DeviceSettingElectronDialog = function DeviceSettingElectronDialog(_ref) {
12
- var children = _ref.children;
13
- var transI18n = (0, _i18n.useI18n)();
14
- var config = {
15
- fullscreen: false,
16
- maximizable: false,
17
- trafficLightPosition: {
18
- x: 10,
19
- y: 60
20
- },
21
- width: 580,
22
- height: 600,
23
- minWidth: 580,
24
- minHeight: 600,
25
- maxWidth: 670,
26
- maxHeight: 800,
27
- title: transI18n('fmt_settings_option_setting'),
28
- resizable: false
29
- };
30
- var dialogKey = _constant.FcrUIDialogKey.DEVICE_SETTINGS;
31
- (0, _useElectron.useElectronDialog)({
32
- dialogKey: dialogKey,
33
- config: config,
34
- children: children
35
- });
36
- return null;
37
- };
@@ -1,2 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- export declare const InterpreterElectronDialog: ({ children }: PropsWithChildren<{}>) => null;
@@ -1,33 +0,0 @@
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"] = void 0;
9
- var _env = require("agora-foundation/lib/utilities/env");
10
- var _electron = require("./electron");
11
- var _i18n = require("agora-ui-foundation/lib/i18n");
12
- require("./index.css");
13
- var _dialogContainer = _interopRequireDefault(require("../dialog-container"));
14
- var _constant = require("../../../../utilities/constant");
15
- var _jsxRuntime = require("react/jsx-runtime");
16
- var InterpreterDialog = function InterpreterDialog(_ref) {
17
- var children = _ref.children;
18
- var t = (0, _i18n.useI18n)();
19
- var container = /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogContainer["default"], {
20
- title: t('fmt_interpretation_setting_controller_option_simultaneous_interpretation'),
21
- width: 684,
22
- height: 438,
23
- dialogKey: _constant.FcrUIDialogKey.INTERPRETER,
24
- children: children
25
- });
26
- if ((0, _env.isElectron)()) {
27
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_electron.InterpreterElectronDialog, {
28
- children: container
29
- });
30
- }
31
- return container;
32
- };
33
- var _default = exports["default"] = InterpreterDialog;
@@ -1,3 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import '../../index.css';
3
- export declare const InviteDialog: FC<PropsWithChildren<{}>>;
@@ -1,4 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- export declare const LiveStreamingDialog: FC<PropsWithChildren<{
3
- title: string;
4
- }>>;
@@ -1,2 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- export declare const ParticipantElectronDialog: ({ children }: PropsWithChildren<{}>) => null;
@@ -1,35 +0,0 @@
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.ParticipantElectronDialog = void 0;
8
- var _constant = require("../../../../utilities/constant");
9
- var _useElectron = require("../../hooks/useElectron");
10
- var _i18n = require("agora-ui-foundation/lib/i18n");
11
- var ParticipantElectronDialog = exports.ParticipantElectronDialog = function ParticipantElectronDialog(_ref) {
12
- var children = _ref.children;
13
- var transI18n = (0, _i18n.useI18n)();
14
- var config = {
15
- fullscreen: false,
16
- maximizable: false,
17
- width: 320,
18
- height: 560,
19
- minWidth: 320,
20
- minHeight: 400,
21
- maxWidth: 620,
22
- maxHeight: 900,
23
- center: true,
24
- title: transI18n('fmt_meeting_creatpage_label_join_attendee'),
25
- resizable: true,
26
- hasShadow: true
27
- };
28
- (0, _useElectron.useElectronDialog)({
29
- config: config,
30
- dialogKey: _constant.FcrUIDialogKey.PARTICIPANT,
31
- children: children,
32
- hasCustomShadow: false
33
- });
34
- return null;
35
- };
@@ -1,2 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- export declare const ParticipantDialog: FC<PropsWithChildren<{}>>;
@@ -1,65 +0,0 @@
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.ParticipantDialog = void 0;
9
- require("core-js/modules/es.array.concat.js");
10
- var _env = require("agora-foundation/lib/utilities/env");
11
- var _i18n = require("agora-ui-foundation/lib/i18n");
12
- var _react = require("react");
13
- var _store = require("../../store");
14
- var _electron = require("./electron");
15
- var _constant = require("../../../../utilities/constant");
16
- var _dialogContainer = _interopRequireDefault(require("../dialog-container"));
17
- var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
18
- var _iconButton = require("agora-ui-foundation/lib/components/icon-button");
19
- var _type = require("agora-ui-foundation/lib/components/icon/type");
20
- var _mobxReact = require("mobx-react");
21
- var _jsxRuntime = require("react/jsx-runtime");
22
- var Container = (0, _mobxReact.observer)(function (props) {
23
- var store = (0, _react.useContext)(_store.StoreContext);
24
- var transI18n = (0, _i18n.useI18n)();
25
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogContainer["default"], {
26
- title: "".concat(transI18n('fmt_participants_label_participants'), "(").concat(store.participantCount, ")"),
27
- width: 320,
28
- height: 560,
29
- dialogKey: _constant.FcrUIDialogKey.PARTICIPANT,
30
- onClose: store.closeParticipantDialog,
31
- actions: store.isSharingScreen && store.isSharingScreenOwner ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
32
- content: transI18n('fmt_uimanager_option_mergeview'),
33
- mouseEnterDelay: 0,
34
- trigger: "hover",
35
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_iconButton.FcrIconButton, {
36
- icon: _type.FcrIconType.FCR_WINDOWPAGE_BIGGER,
37
- onClick: store.moveParticipantFromDialogToAside,
38
- className: "frc-window-header__icon fcr-no-drag",
39
- iconColors: {
40
- iconPrimary: 'var(--fcr_ui_scene_icontext1)'
41
- }
42
- })
43
- }),
44
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
45
- className: "fcr-participant-dialog-wrapper",
46
- children: props.children
47
- })
48
- });
49
- });
50
- var ParticipantDialog = exports.ParticipantDialog = function ParticipantDialog(_ref) {
51
- var children = _ref.children;
52
- var store = (0, _react.useContext)(_store.StoreContext);
53
- var container = /*#__PURE__*/(0, _jsxRuntime.jsx)(_store.StoreContext.Provider, {
54
- value: store,
55
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Container, {
56
- children: children
57
- })
58
- });
59
- if ((0, _env.isElectron)()) {
60
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_electron.ParticipantElectronDialog, {
61
- children: container
62
- });
63
- }
64
- return container;
65
- };
@@ -1,2 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- export declare const DeviceSettingElectronDialog: ({ children }: PropsWithChildren<{}>) => null;
@@ -1,51 +0,0 @@
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.DeviceSettingElectronDialog = void 0;
8
- require("core-js/modules/web.timers.js");
9
- var _i18n = require("agora-ui-foundation/lib/i18n");
10
- var _constant = require("../../../../utilities/constant");
11
- var _useElectron = require("../../hooks/useElectron");
12
- var DeviceSettingElectronDialog = exports.DeviceSettingElectronDialog = function DeviceSettingElectronDialog(_ref) {
13
- var children = _ref.children;
14
- var transI18n = (0, _i18n.useI18n)();
15
- var config = {
16
- fullscreen: false,
17
- maximizable: false,
18
- trafficLightPosition: {
19
- x: 10,
20
- y: 60
21
- },
22
- width: 580,
23
- height: 600,
24
- minWidth: 580,
25
- minHeight: 600,
26
- maxWidth: 670,
27
- maxHeight: 800,
28
- title: transI18n('fmt_settings_option_setting'),
29
- resizable: false
30
- };
31
- var dialogKey = _constant.FcrUIDialogKey.DEVICE_SETTINGS;
32
- (0, _useElectron.useElectronDialog)({
33
- dialogKey: dialogKey,
34
- config: config,
35
- children: children,
36
- onOpened: function onOpened(_ref2) {
37
- var browserWindow = _ref2.browserWindow,
38
- nearDisplayBounds = _ref2.nearDisplayBounds;
39
- if (browserWindow) {
40
- browserWindow.setAlwaysOnTop(true);
41
- setTimeout(function () {
42
- browserWindow.show();
43
- browserWindow.setAlwaysOnTop(false);
44
- browserWindow.moveTop();
45
- browserWindow.focus();
46
- }, 600);
47
- }
48
- }
49
- });
50
- return null;
51
- };