@placetime/corptime-conference 0.0.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 (2184) hide show
  1. package/README.md +132 -0
  2. package/android/build.gradle +156 -0
  3. package/android/gradle.properties +5 -0
  4. package/android/src/main/AndroidManifest.xml +3 -0
  5. package/android/src/main/java/org/jitsi/meet/sdk/AndroidSettingsModule.java +56 -0
  6. package/android/src/main/java/org/jitsi/meet/sdk/AppInfoModule.java +150 -0
  7. package/android/src/main/java/org/jitsi/meet/sdk/AudioDeviceHandlerConnectionService.java +185 -0
  8. package/android/src/main/java/org/jitsi/meet/sdk/AudioDeviceHandlerGeneric.java +248 -0
  9. package/android/src/main/java/org/jitsi/meet/sdk/AudioModeModule.java +529 -0
  10. package/android/src/main/java/org/jitsi/meet/sdk/ConnectionService.java +452 -0
  11. package/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceModule.java +117 -0
  12. package/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceService.java +107 -0
  13. package/android/src/main/java/org/jitsi/meet/sdk/JitsiMeetReactNativePackage.java +39 -0
  14. package/android/src/main/java/org/jitsi/meet/sdk/LocaleDetector.java +58 -0
  15. package/android/src/main/java/org/jitsi/meet/sdk/LogBridgeModule.java +73 -0
  16. package/android/src/main/java/org/jitsi/meet/sdk/PictureInPictureModule.java +171 -0
  17. package/android/src/main/java/org/jitsi/meet/sdk/ProximityModule.java +107 -0
  18. package/android/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java +255 -0
  19. package/android/src/main/java/org/jitsi/meet/sdk/RNOngoingNotification.java +108 -0
  20. package/android/src/main/java/org/jitsi/meet/sdk/log/log/JitsiMeetBaseLogHandler.java +49 -0
  21. package/android/src/main/java/org/jitsi/meet/sdk/log/log/JitsiMeetDefaultLogHandler.java +39 -0
  22. package/android/src/main/java/org/jitsi/meet/sdk/log/log/JitsiMeetLogger.java +107 -0
  23. package/android/src/main/java/org/jitsi/meet/sdk/log/net/NAT64AddrInfo.java +238 -0
  24. package/android/src/main/java/org/jitsi/meet/sdk/log/net/NAT64AddrInfoModule.java +123 -0
  25. package/android/src/main/res/drawable-hdpi/ic_notification.png +0 -0
  26. package/android/src/main/res/drawable-mdpi/ic_notification.png +0 -0
  27. package/android/src/main/res/drawable-xhdpi/ic_notification.png +0 -0
  28. package/android/src/main/res/drawable-xxhdpi/ic_notification.png +0 -0
  29. package/android/src/main/res/drawable-xxxhdpi/ic_notification.png +0 -0
  30. package/android/src/main/res/values/colors.xml +5 -0
  31. package/android/src/main/res/values/strings.xml +12 -0
  32. package/android/src/main/res/values/styles.xml +6 -0
  33. package/images/GIPHY_icon.png +0 -0
  34. package/images/GIPHY_logo.png +0 -0
  35. package/images/app-store-badge.png +0 -0
  36. package/images/apple-touch-icon.png +0 -0
  37. package/images/avatar.png +0 -0
  38. package/images/btn_google_signin_dark_normal.png +0 -0
  39. package/images/calendar.svg +21 -0
  40. package/images/chromeLogo.svg +9 -0
  41. package/images/downloadLocalRecording.png +0 -0
  42. package/images/dropboxLogo_square.png +0 -0
  43. package/images/f-droid-badge.png +0 -0
  44. package/images/favicon.svg +4 -0
  45. package/images/flags.png +0 -0
  46. package/images/flags@2x.png +0 -0
  47. package/images/google-play-badge.png +0 -0
  48. package/images/googleLogo.svg +11 -0
  49. package/images/icon-cloud.png +0 -0
  50. package/images/icon-info.png +0 -0
  51. package/images/icon-users.png +0 -0
  52. package/images/jitsilogo.png +0 -0
  53. package/images/logo-deep-linking-mobile.png +0 -0
  54. package/images/logo-deep-linking.png +0 -0
  55. package/images/microsoftLogo.svg +1 -0
  56. package/images/share-audio.gif +0 -0
  57. package/images/virtual-background/background-1.jpg +0 -0
  58. package/images/virtual-background/background-2.jpg +0 -0
  59. package/images/virtual-background/background-3.jpg +0 -0
  60. package/images/virtual-background/background-4.jpg +0 -0
  61. package/images/virtual-background/background-5.jpg +0 -0
  62. package/images/virtual-background/background-6.jpg +0 -0
  63. package/images/virtual-background/background-7.jpg +0 -0
  64. package/images/watermark.svg +5 -0
  65. package/images/welcome-background.png +0 -0
  66. package/index.tsx +182 -0
  67. package/ios/sdk.xcodeproj/project.pbxproj +1042 -0
  68. package/ios/sdk.xcodeproj/xcshareddata/xcschemes/JitsiMeetSDK.xcscheme +76 -0
  69. package/ios/sdk.xcodeproj/xcshareddata/xcschemes/JitsiMeetSDKLite.xcscheme +67 -0
  70. package/ios/src/AppInfo.m +102 -0
  71. package/ios/src/AudioMode.m +430 -0
  72. package/ios/src/InfoPlistUtil.h +23 -0
  73. package/ios/src/InfoPlistUtil.m +52 -0
  74. package/ios/src/JitsiAudioSession+Private.h +24 -0
  75. package/ios/src/JitsiAudioSession.h +26 -0
  76. package/ios/src/JitsiAudioSession.m +34 -0
  77. package/ios/src/LocaleDetector.m +40 -0
  78. package/ios/src/POSIX.m +110 -0
  79. package/ios/src/Proximity.m +44 -0
  80. package/ios/src/callkit/CallKit.m +347 -0
  81. package/ios/src/callkit/JMCallKitEmitter.h +35 -0
  82. package/ios/src/callkit/JMCallKitEmitter.m +117 -0
  83. package/ios/src/callkit/JMCallKitListener.h +34 -0
  84. package/ios/src/callkit/JMCallKitProxy.h +87 -0
  85. package/ios/src/callkit/JMCallKitProxy.m +284 -0
  86. package/ios/src/dropbox/Dropbox.h +27 -0
  87. package/ios/src/dropbox/Dropbox.m +180 -0
  88. package/jitsi-meet-rnsdk.podspec +35 -0
  89. package/lang/languages.json +61 -0
  90. package/lang/main-af.json +710 -0
  91. package/lang/main-ar.json +1357 -0
  92. package/lang/main-be.json +790 -0
  93. package/lang/main-bg.json +1685 -0
  94. package/lang/main-ca.json +1367 -0
  95. package/lang/main-cs.json +1582 -0
  96. package/lang/main-da.json +770 -0
  97. package/lang/main-de.json +1614 -0
  98. package/lang/main-dsb.json +1372 -0
  99. package/lang/main-el.json +1421 -0
  100. package/lang/main-eo.json +1527 -0
  101. package/lang/main-es-US.json +1196 -0
  102. package/lang/main-es.json +1468 -0
  103. package/lang/main-et.json +775 -0
  104. package/lang/main-eu.json +1037 -0
  105. package/lang/main-fa.json +1480 -0
  106. package/lang/main-fi.json +726 -0
  107. package/lang/main-fr-CA.json +1685 -0
  108. package/lang/main-fr.json +1685 -0
  109. package/lang/main-gl.json +755 -0
  110. package/lang/main-he.json +789 -0
  111. package/lang/main-hi.json +977 -0
  112. package/lang/main-hr.json +1364 -0
  113. package/lang/main-hsb.json +1317 -0
  114. package/lang/main-hu.json +1098 -0
  115. package/lang/main-hy.json +705 -0
  116. package/lang/main-id.json +1549 -0
  117. package/lang/main-is.json +1527 -0
  118. package/lang/main-it.json +1700 -0
  119. package/lang/main-ja.json +1258 -0
  120. package/lang/main-kab.json +1166 -0
  121. package/lang/main-ko.json +1581 -0
  122. package/lang/main-lt.json +776 -0
  123. package/lang/main-lv.json +1667 -0
  124. package/lang/main-ml.json +935 -0
  125. package/lang/main-mn.json +1441 -0
  126. package/lang/main-mr.json +786 -0
  127. package/lang/main-nb.json +1583 -0
  128. package/lang/main-nl.json +1111 -0
  129. package/lang/main-no.json +1583 -0
  130. package/lang/main-oc.json +1589 -0
  131. package/lang/main-pl.json +1456 -0
  132. package/lang/main-pt-BR.json +1524 -0
  133. package/lang/main-pt.json +1671 -0
  134. package/lang/main-ro.json +763 -0
  135. package/lang/main-ru.json +1542 -0
  136. package/lang/main-sc.json +1685 -0
  137. package/lang/main-sk.json +917 -0
  138. package/lang/main-sl.json +1167 -0
  139. package/lang/main-sq.json +1581 -0
  140. package/lang/main-sr.json +763 -0
  141. package/lang/main-sv.json +1583 -0
  142. package/lang/main-te.json +994 -0
  143. package/lang/main-tr.json +1572 -0
  144. package/lang/main-uk.json +1432 -0
  145. package/lang/main-vi.json +1538 -0
  146. package/lang/main-zh-CN.json +1631 -0
  147. package/lang/main-zh-TW.json +1631 -0
  148. package/lang/main.json +1690 -0
  149. package/lang/readme.md +55 -0
  150. package/lang/translation-languages.json +112 -0
  151. package/lang/update-translation.js +38 -0
  152. package/modules/API/.eslintrc.js +3 -0
  153. package/modules/API/API.js +2351 -0
  154. package/modules/API/constants.js +31 -0
  155. package/modules/API/external/external_api.js +1508 -0
  156. package/modules/API/external/functions.js +139 -0
  157. package/modules/API/external/index.js +3 -0
  158. package/modules/API/index.js +2 -0
  159. package/modules/UI/UI.js +234 -0
  160. package/modules/UI/UIErrors.js +17 -0
  161. package/modules/UI/audio_levels/AudioLevels.js +66 -0
  162. package/modules/UI/etherpad/Etherpad.js +186 -0
  163. package/modules/UI/util/UIUtil.js +59 -0
  164. package/modules/UI/videolayout/Filmstrip.js +34 -0
  165. package/modules/UI/videolayout/LargeContainer.js +67 -0
  166. package/modules/UI/videolayout/LargeVideoManager.js +780 -0
  167. package/modules/UI/videolayout/VideoContainer.js +676 -0
  168. package/modules/UI/videolayout/VideoLayout.js +317 -0
  169. package/modules/devices/mediaDeviceHelper.js +295 -0
  170. package/modules/recorder/Recorder.js +44 -0
  171. package/modules/translation/translation.js +62 -0
  172. package/modules/transport/.eslintrc.js +3 -0
  173. package/modules/transport/index.js +52 -0
  174. package/modules/util/TaskQueue.js +71 -0
  175. package/modules/util/helpers.js +26 -0
  176. package/package.json +97 -0
  177. package/prepare_sdk.js +202 -0
  178. package/react/.eslintrc-react-native.js +11 -0
  179. package/react/.eslintrc.js +28 -0
  180. package/react/bootstrap.native.js +7 -0
  181. package/react/features/always-on-top/AlwaysOnTop.tsx +281 -0
  182. package/react/features/always-on-top/AudioMuteButton.tsx +180 -0
  183. package/react/features/always-on-top/HangupButton.tsx +60 -0
  184. package/react/features/always-on-top/Toolbar.tsx +137 -0
  185. package/react/features/always-on-top/ToolbarButton.tsx +69 -0
  186. package/react/features/always-on-top/VideoMuteButton.tsx +180 -0
  187. package/react/features/always-on-top/index.tsx +13 -0
  188. package/react/features/analytics/AnalyticsEvents.ts +983 -0
  189. package/react/features/analytics/actionTypes.ts +29 -0
  190. package/react/features/analytics/actions.ts +25 -0
  191. package/react/features/analytics/functions.ts +339 -0
  192. package/react/features/analytics/handlers/AbstractHandler.ts +115 -0
  193. package/react/features/analytics/handlers/AmplitudeHandler.ts +91 -0
  194. package/react/features/analytics/handlers/MatomoHandler.ts +170 -0
  195. package/react/features/analytics/handlers/amplitude/deviceIDStorageUtils.js +0 -0
  196. package/react/features/analytics/handlers/amplitude/fixDeviceID.native.ts +33 -0
  197. package/react/features/analytics/handlers/amplitude/fixDeviceID.web.ts +46 -0
  198. package/react/features/analytics/handlers/amplitude/lib.native.ts +15 -0
  199. package/react/features/analytics/handlers/amplitude/lib.web.ts +38 -0
  200. package/react/features/analytics/logger.ts +3 -0
  201. package/react/features/analytics/middleware.ts +216 -0
  202. package/react/features/analytics/reducer.ts +88 -0
  203. package/react/features/app/actions.any.ts +160 -0
  204. package/react/features/app/actions.native.ts +230 -0
  205. package/react/features/app/actions.web.ts +207 -0
  206. package/react/features/app/components/AbstractApp.ts +89 -0
  207. package/react/features/app/components/App.native.tsx +312 -0
  208. package/react/features/app/components/App.web.tsx +67 -0
  209. package/react/features/app/functions.any.ts +25 -0
  210. package/react/features/app/functions.native.ts +40 -0
  211. package/react/features/app/functions.web.ts +59 -0
  212. package/react/features/app/getRouteToRender.native.ts +18 -0
  213. package/react/features/app/getRouteToRender.web.ts +148 -0
  214. package/react/features/app/logger.ts +3 -0
  215. package/react/features/app/middleware.ts +180 -0
  216. package/react/features/app/middlewares.any.ts +57 -0
  217. package/react/features/app/middlewares.native.ts +17 -0
  218. package/react/features/app/middlewares.web.ts +28 -0
  219. package/react/features/app/reducer.native.ts +28 -0
  220. package/react/features/app/reducers.any.ts +58 -0
  221. package/react/features/app/reducers.native.ts +9 -0
  222. package/react/features/app/reducers.web.ts +22 -0
  223. package/react/features/app/types.ts +180 -0
  224. package/react/features/audio-level-indicator/components/AudioLevelIndicator.tsx +83 -0
  225. package/react/features/authentication/actionTypes.ts +106 -0
  226. package/react/features/authentication/actions.any.ts +257 -0
  227. package/react/features/authentication/actions.native.ts +90 -0
  228. package/react/features/authentication/actions.web.ts +78 -0
  229. package/react/features/authentication/components/index.native.ts +2 -0
  230. package/react/features/authentication/components/index.web.ts +2 -0
  231. package/react/features/authentication/components/native/LoginDialog.tsx +318 -0
  232. package/react/features/authentication/components/native/WaitForOwnerDialog.tsx +116 -0
  233. package/react/features/authentication/components/web/LoginDialog.tsx +299 -0
  234. package/react/features/authentication/components/web/LoginQuestionDialog.tsx +38 -0
  235. package/react/features/authentication/components/web/WaitForOwnerDialog.tsx +119 -0
  236. package/react/features/authentication/functions.any.ts +86 -0
  237. package/react/features/authentication/functions.native.ts +78 -0
  238. package/react/features/authentication/functions.web.ts +122 -0
  239. package/react/features/authentication/logger.ts +3 -0
  240. package/react/features/authentication/middleware.ts +344 -0
  241. package/react/features/authentication/reducer.ts +110 -0
  242. package/react/features/av-moderation/actionTypes.ts +144 -0
  243. package/react/features/av-moderation/actions.ts +386 -0
  244. package/react/features/av-moderation/constants.ts +51 -0
  245. package/react/features/av-moderation/functions.ts +182 -0
  246. package/react/features/av-moderation/middleware.ts +317 -0
  247. package/react/features/av-moderation/reducer.ts +399 -0
  248. package/react/features/av-moderation/sounds.ts +6 -0
  249. package/react/features/base/app/actionTypes.ts +33 -0
  250. package/react/features/base/app/actions.ts +69 -0
  251. package/react/features/base/app/components/BaseApp.tsx +283 -0
  252. package/react/features/base/app/functions.ts +28 -0
  253. package/react/features/base/app/logger.ts +3 -0
  254. package/react/features/base/app/middleware.web.ts +54 -0
  255. package/react/features/base/app/reducer.ts +34 -0
  256. package/react/features/base/app/types.ts +3 -0
  257. package/react/features/base/audio-only/actionTypes.ts +10 -0
  258. package/react/features/base/audio-only/actions.ts +51 -0
  259. package/react/features/base/audio-only/logger.ts +3 -0
  260. package/react/features/base/audio-only/reducer.ts +25 -0
  261. package/react/features/base/avatar/components/Avatar.tsx +295 -0
  262. package/react/features/base/avatar/components/index.native.ts +1 -0
  263. package/react/features/base/avatar/components/index.web.ts +1 -0
  264. package/react/features/base/avatar/components/native/StatelessAvatar.tsx +200 -0
  265. package/react/features/base/avatar/components/native/styles.ts +82 -0
  266. package/react/features/base/avatar/components/styles.ts +5 -0
  267. package/react/features/base/avatar/components/web/StatelessAvatar.tsx +220 -0
  268. package/react/features/base/avatar/constants.ts +4 -0
  269. package/react/features/base/avatar/functions.ts +95 -0
  270. package/react/features/base/avatar/types.ts +32 -0
  271. package/react/features/base/buttons/CopyButton.web.tsx +244 -0
  272. package/react/features/base/color-scheme/ColorSchemeRegistry.ts +162 -0
  273. package/react/features/base/color-scheme/defaultScheme.ts +30 -0
  274. package/react/features/base/color-scheme/functions.ts +11 -0
  275. package/react/features/base/components/themes/participantsPaneTheme.json +5 -0
  276. package/react/features/base/conference/actionTypes.ts +369 -0
  277. package/react/features/base/conference/actions.any.ts +1126 -0
  278. package/react/features/base/conference/actions.native.ts +29 -0
  279. package/react/features/base/conference/actions.web.ts +25 -0
  280. package/react/features/base/conference/constants.ts +47 -0
  281. package/react/features/base/conference/functions.ts +657 -0
  282. package/react/features/base/conference/logger.ts +3 -0
  283. package/react/features/base/conference/middleware.any.ts +830 -0
  284. package/react/features/base/conference/middleware.native.ts +50 -0
  285. package/react/features/base/conference/middleware.web.ts +223 -0
  286. package/react/features/base/conference/reducer.ts +709 -0
  287. package/react/features/base/config/actionTypes.ts +61 -0
  288. package/react/features/base/config/actions.ts +185 -0
  289. package/react/features/base/config/configType.ts +670 -0
  290. package/react/features/base/config/configWhitelist.ts +254 -0
  291. package/react/features/base/config/constants.ts +43 -0
  292. package/react/features/base/config/extraConfigWhitelist.ts +4 -0
  293. package/react/features/base/config/extraInterfaceConfigWhitelist.ts +4 -0
  294. package/react/features/base/config/functions.any.ts +465 -0
  295. package/react/features/base/config/functions.native.ts +53 -0
  296. package/react/features/base/config/functions.web.ts +87 -0
  297. package/react/features/base/config/getRoomName.ts +15 -0
  298. package/react/features/base/config/interfaceConfigWhitelist.ts +57 -0
  299. package/react/features/base/config/isEmbeddedConfigWhitelist.ts +10 -0
  300. package/react/features/base/config/isEmbeddedInterfaceConfigWhitelist.ts +6 -0
  301. package/react/features/base/config/logger.ts +3 -0
  302. package/react/features/base/config/middleware.ts +225 -0
  303. package/react/features/base/config/reducer.ts +603 -0
  304. package/react/features/base/connection/actionTypes.ts +84 -0
  305. package/react/features/base/connection/actions.any.ts +448 -0
  306. package/react/features/base/connection/actions.native.ts +62 -0
  307. package/react/features/base/connection/actions.web.ts +90 -0
  308. package/react/features/base/connection/constants.ts +17 -0
  309. package/react/features/base/connection/functions.ts +101 -0
  310. package/react/features/base/connection/logger.ts +3 -0
  311. package/react/features/base/connection/middleware.web.ts +30 -0
  312. package/react/features/base/connection/reducer.ts +269 -0
  313. package/react/features/base/connection/types.ts +113 -0
  314. package/react/features/base/connection/utils.ts +49 -0
  315. package/react/features/base/devices/actionTypes.ts +96 -0
  316. package/react/features/base/devices/actions.web.ts +356 -0
  317. package/react/features/base/devices/constants.ts +11 -0
  318. package/react/features/base/devices/functions.any.ts +19 -0
  319. package/react/features/base/devices/functions.native.ts +1 -0
  320. package/react/features/base/devices/functions.web.ts +383 -0
  321. package/react/features/base/devices/logger.ts +3 -0
  322. package/react/features/base/devices/middleware.web.ts +349 -0
  323. package/react/features/base/devices/reducer.web.ts +88 -0
  324. package/react/features/base/devices/types.ts +17 -0
  325. package/react/features/base/dialog/actionTypes.ts +41 -0
  326. package/react/features/base/dialog/actions.ts +126 -0
  327. package/react/features/base/dialog/components/AbstractDialogContainer.ts +72 -0
  328. package/react/features/base/dialog/components/functions.native.tsx +57 -0
  329. package/react/features/base/dialog/components/native/AbstractDialog.ts +168 -0
  330. package/react/features/base/dialog/components/native/AlertDialog.tsx +56 -0
  331. package/react/features/base/dialog/components/native/BottomSheet.tsx +150 -0
  332. package/react/features/base/dialog/components/native/BottomSheetContainer.tsx +22 -0
  333. package/react/features/base/dialog/components/native/ConfirmDialog.tsx +172 -0
  334. package/react/features/base/dialog/components/native/DialogContainer.tsx +58 -0
  335. package/react/features/base/dialog/components/native/InputDialog.tsx +170 -0
  336. package/react/features/base/dialog/components/native/PageReloadDialog.tsx +221 -0
  337. package/react/features/base/dialog/components/native/styles.ts +265 -0
  338. package/react/features/base/dialog/components/web/AbstractDialogTab.ts +58 -0
  339. package/react/features/base/dialog/constants.ts +83 -0
  340. package/react/features/base/dialog/functions.ts +45 -0
  341. package/react/features/base/dialog/logger.ts +3 -0
  342. package/react/features/base/dialog/reducer.ts +63 -0
  343. package/react/features/base/environment/checkChromeExtensionsInstalled.native.ts +10 -0
  344. package/react/features/base/environment/checkChromeExtensionsInstalled.web.ts +26 -0
  345. package/react/features/base/environment/environment.ts +122 -0
  346. package/react/features/base/environment/utils.ts +32 -0
  347. package/react/features/base/flags/actionTypes.ts +10 -0
  348. package/react/features/base/flags/actions.ts +27 -0
  349. package/react/features/base/flags/constants.ts +286 -0
  350. package/react/features/base/flags/functions.ts +31 -0
  351. package/react/features/base/flags/reducer.ts +35 -0
  352. package/react/features/base/i18n/BuiltinLanguages.native.ts +189 -0
  353. package/react/features/base/i18n/BuiltinLanguages.web.ts +0 -0
  354. package/react/features/base/i18n/actionTypes.ts +9 -0
  355. package/react/features/base/i18n/configLanguageDetector.ts +28 -0
  356. package/react/features/base/i18n/dateUtil.ts +150 -0
  357. package/react/features/base/i18n/functions.tsx +45 -0
  358. package/react/features/base/i18n/i18next.ts +147 -0
  359. package/react/features/base/i18n/languageDetector.native.ts +43 -0
  360. package/react/features/base/i18n/languageDetector.web.ts +39 -0
  361. package/react/features/base/i18n/logger.ts +3 -0
  362. package/react/features/base/i18n/middleware.ts +49 -0
  363. package/react/features/base/icons/components/Icon.tsx +209 -0
  364. package/react/features/base/icons/components/SvgXmlIcon.native.tsx +17 -0
  365. package/react/features/base/icons/components/SvgXmlIcon.web.tsx +26 -0
  366. package/react/features/base/icons/components/types.native.ts +5 -0
  367. package/react/features/base/icons/components/types.web.ts +5 -0
  368. package/react/features/base/icons/components/withBranding.tsx +32 -0
  369. package/react/features/base/icons/svg/account-record.svg +5 -0
  370. package/react/features/base/icons/svg/add-user.svg +5 -0
  371. package/react/features/base/icons/svg/arrow-back.svg +5 -0
  372. package/react/features/base/icons/svg/arrow-down-large.svg +3 -0
  373. package/react/features/base/icons/svg/arrow-down.svg +3 -0
  374. package/react/features/base/icons/svg/arrow-left.svg +3 -0
  375. package/react/features/base/icons/svg/arrow-right.svg +3 -0
  376. package/react/features/base/icons/svg/arrow-up-large.svg +3 -0
  377. package/react/features/base/icons/svg/arrow-up.svg +3 -0
  378. package/react/features/base/icons/svg/bell.svg +3 -0
  379. package/react/features/base/icons/svg/bluetooth.svg +3 -0
  380. package/react/features/base/icons/svg/calendar.svg +3 -0
  381. package/react/features/base/icons/svg/camera-refresh.svg +3 -0
  382. package/react/features/base/icons/svg/car.svg +3 -0
  383. package/react/features/base/icons/svg/chat-unread.svg +5 -0
  384. package/react/features/base/icons/svg/check.svg +3 -0
  385. package/react/features/base/icons/svg/close-circle.svg +4 -0
  386. package/react/features/base/icons/svg/close-large.svg +3 -0
  387. package/react/features/base/icons/svg/cloud-upload.svg +4 -0
  388. package/react/features/base/icons/svg/code.svg +5 -0
  389. package/react/features/base/icons/svg/connection.svg +3 -0
  390. package/react/features/base/icons/svg/constants.ts +222 -0
  391. package/react/features/base/icons/svg/contact-record.svg +4 -0
  392. package/react/features/base/icons/svg/copy.svg +4 -0
  393. package/react/features/base/icons/svg/dots-horizontal.svg +5 -0
  394. package/react/features/base/icons/svg/download.svg +4 -0
  395. package/react/features/base/icons/svg/e2ee.svg +3 -0
  396. package/react/features/base/icons/svg/edit.svg +3 -0
  397. package/react/features/base/icons/svg/emotions-angry.svg +10 -0
  398. package/react/features/base/icons/svg/emotions-disgusted.svg +10 -0
  399. package/react/features/base/icons/svg/emotions-fearful.svg +10 -0
  400. package/react/features/base/icons/svg/emotions-happy.svg +10 -0
  401. package/react/features/base/icons/svg/emotions-neutral.svg +10 -0
  402. package/react/features/base/icons/svg/emotions-sad.svg +10 -0
  403. package/react/features/base/icons/svg/emotions-surprised.svg +10 -0
  404. package/react/features/base/icons/svg/enlarge.svg +5 -0
  405. package/react/features/base/icons/svg/enter-fullscreen.svg +6 -0
  406. package/react/features/base/icons/svg/envelope.svg +3 -0
  407. package/react/features/base/icons/svg/exclamation-solid.svg +3 -0
  408. package/react/features/base/icons/svg/exclamation-triangle.svg +3 -0
  409. package/react/features/base/icons/svg/exit-fullscreen.svg +6 -0
  410. package/react/features/base/icons/svg/face-smile.svg +6 -0
  411. package/react/features/base/icons/svg/favorite-solid.svg +3 -0
  412. package/react/features/base/icons/svg/favorite.svg +3 -0
  413. package/react/features/base/icons/svg/feedback.svg +3 -0
  414. package/react/features/base/icons/svg/gear.svg +4 -0
  415. package/react/features/base/icons/svg/google.svg +3 -0
  416. package/react/features/base/icons/svg/hangup.svg +3 -0
  417. package/react/features/base/icons/svg/headset.svg +5 -0
  418. package/react/features/base/icons/svg/help.svg +3 -0
  419. package/react/features/base/icons/svg/highlight.svg +3 -0
  420. package/react/features/base/icons/svg/icon-ring-group.svg +3 -0
  421. package/react/features/base/icons/svg/image.svg +4 -0
  422. package/react/features/base/icons/svg/index.ts +233 -0
  423. package/react/features/base/icons/svg/info-circle.svg +5 -0
  424. package/react/features/base/icons/svg/info.svg +3 -0
  425. package/react/features/base/icons/svg/lead-record.svg +5 -0
  426. package/react/features/base/icons/svg/message.svg +6 -0
  427. package/react/features/base/icons/svg/meter.svg +10 -0
  428. package/react/features/base/icons/svg/mic-slash.svg +5 -0
  429. package/react/features/base/icons/svg/mic.svg +4 -0
  430. package/react/features/base/icons/svg/moderator.svg +3 -0
  431. package/react/features/base/icons/svg/ninja.svg +5 -0
  432. package/react/features/base/icons/svg/noise-suppression-off.svg +4 -0
  433. package/react/features/base/icons/svg/noise-suppression-on.svg +3 -0
  434. package/react/features/base/icons/svg/office365.svg +3 -0
  435. package/react/features/base/icons/svg/opportunity-record.svg +5 -0
  436. package/react/features/base/icons/svg/performance.svg +4 -0
  437. package/react/features/base/icons/svg/phone-ringing.svg +5 -0
  438. package/react/features/base/icons/svg/pin.svg +3 -0
  439. package/react/features/base/icons/svg/pinned.svg +3 -0
  440. package/react/features/base/icons/svg/play.svg +3 -0
  441. package/react/features/base/icons/svg/plus.svg +3 -0
  442. package/react/features/base/icons/svg/raise-hand.svg +4 -0
  443. package/react/features/base/icons/svg/record.svg +3 -0
  444. package/react/features/base/icons/svg/reply.svg +3 -0
  445. package/react/features/base/icons/svg/restore.svg +5 -0
  446. package/react/features/base/icons/svg/screenshare.svg +4 -0
  447. package/react/features/base/icons/svg/search.svg +3 -0
  448. package/react/features/base/icons/svg/security-off.svg +4 -0
  449. package/react/features/base/icons/svg/security-on.svg +4 -0
  450. package/react/features/base/icons/svg/send.svg +3 -0
  451. package/react/features/base/icons/svg/share-doc.svg +5 -0
  452. package/react/features/base/icons/svg/share.svg +3 -0
  453. package/react/features/base/icons/svg/shortcuts.svg +6 -0
  454. package/react/features/base/icons/svg/sip.svg +3 -0
  455. package/react/features/base/icons/svg/sites.svg +3 -0
  456. package/react/features/base/icons/svg/start-remote-control.svg +5 -0
  457. package/react/features/base/icons/svg/stop-remote-control.svg +5 -0
  458. package/react/features/base/icons/svg/stop.svg +4 -0
  459. package/react/features/base/icons/svg/subtitles.svg +5 -0
  460. package/react/features/base/icons/svg/tile-view.svg +6 -0
  461. package/react/features/base/icons/svg/trash.svg +1 -0
  462. package/react/features/base/icons/svg/user-deleted.svg +3 -0
  463. package/react/features/base/icons/svg/user.svg +4 -0
  464. package/react/features/base/icons/svg/users.svg +6 -0
  465. package/react/features/base/icons/svg/video-off.svg +4 -0
  466. package/react/features/base/icons/svg/video.svg +3 -0
  467. package/react/features/base/icons/svg/visibility-off.svg +5 -0
  468. package/react/features/base/icons/svg/visibility.svg +5 -0
  469. package/react/features/base/icons/svg/volume-off.svg +4 -0
  470. package/react/features/base/icons/svg/volume-up.svg +5 -0
  471. package/react/features/base/icons/svg/warning-circle.svg +3 -0
  472. package/react/features/base/icons/svg/warning.svg +1 -0
  473. package/react/features/base/icons/svg/whiteboard-hide.svg +4 -0
  474. package/react/features/base/icons/svg/whiteboard.svg +5 -0
  475. package/react/features/base/icons/svg/wifi-1.svg +5 -0
  476. package/react/features/base/icons/svg/wifi-2.svg +5 -0
  477. package/react/features/base/icons/svg/wifi-3.svg +5 -0
  478. package/react/features/base/icons/svg/yahoo.svg +3 -0
  479. package/react/features/base/jitsi-local-storage/logger.ts +3 -0
  480. package/react/features/base/jitsi-local-storage/setup.web.ts +86 -0
  481. package/react/features/base/jwt/actionTypes.ts +30 -0
  482. package/react/features/base/jwt/actions.ts +49 -0
  483. package/react/features/base/jwt/constants.ts +45 -0
  484. package/react/features/base/jwt/functions.ts +241 -0
  485. package/react/features/base/jwt/logger.ts +3 -0
  486. package/react/features/base/jwt/middleware.ts +323 -0
  487. package/react/features/base/jwt/reducer.ts +73 -0
  488. package/react/features/base/known-domains/actionTypes.ts +10 -0
  489. package/react/features/base/known-domains/actions.ts +20 -0
  490. package/react/features/base/known-domains/middleware.ts +55 -0
  491. package/react/features/base/known-domains/reducer.ts +62 -0
  492. package/react/features/base/label/components/native/ExpandedLabel.tsx +102 -0
  493. package/react/features/base/label/components/native/Label.tsx +179 -0
  494. package/react/features/base/label/components/native/styles.ts +68 -0
  495. package/react/features/base/label/components/web/ExpandedLabel.ts +0 -0
  496. package/react/features/base/label/components/web/Label.tsx +134 -0
  497. package/react/features/base/label/constants.ts +5 -0
  498. package/react/features/base/lastn/actionTypes.ts +9 -0
  499. package/react/features/base/lastn/actions.ts +17 -0
  500. package/react/features/base/lastn/functions.ts +24 -0
  501. package/react/features/base/lastn/logger.ts +3 -0
  502. package/react/features/base/lastn/middleware.ts +92 -0
  503. package/react/features/base/lastn/reducer.ts +22 -0
  504. package/react/features/base/lib-jitsi-meet/_.native.ts +7 -0
  505. package/react/features/base/lib-jitsi-meet/_.web.ts +3 -0
  506. package/react/features/base/lib-jitsi-meet/actionTypes.ts +48 -0
  507. package/react/features/base/lib-jitsi-meet/actions.ts +84 -0
  508. package/react/features/base/lib-jitsi-meet/functions.any.ts +99 -0
  509. package/react/features/base/lib-jitsi-meet/functions.native.ts +75 -0
  510. package/react/features/base/lib-jitsi-meet/functions.web.ts +14 -0
  511. package/react/features/base/lib-jitsi-meet/index.ts +24 -0
  512. package/react/features/base/lib-jitsi-meet/logger.ts +3 -0
  513. package/react/features/base/lib-jitsi-meet/middleware.ts +74 -0
  514. package/react/features/base/lib-jitsi-meet/reducer.ts +45 -0
  515. package/react/features/base/logging/ExternalApiLogTransport.ts +18 -0
  516. package/react/features/base/logging/JitsiMeetInMemoryLogStorage.ts +59 -0
  517. package/react/features/base/logging/JitsiMeetLogStorage.ts +69 -0
  518. package/react/features/base/logging/LogTransport.native.ts +68 -0
  519. package/react/features/base/logging/LogTransport.web.ts +1 -0
  520. package/react/features/base/logging/actionTypes.ts +21 -0
  521. package/react/features/base/logging/actions.ts +35 -0
  522. package/react/features/base/logging/functions.ts +44 -0
  523. package/react/features/base/logging/middleware.ts +302 -0
  524. package/react/features/base/logging/reducer.ts +115 -0
  525. package/react/features/base/logging/types.ts +9 -0
  526. package/react/features/base/media/actionTypes.ts +126 -0
  527. package/react/features/base/media/actions.ts +291 -0
  528. package/react/features/base/media/components/AbstractAudio.ts +126 -0
  529. package/react/features/base/media/components/AbstractVideoTrack.tsx +150 -0
  530. package/react/features/base/media/components/index.native.ts +2 -0
  531. package/react/features/base/media/components/index.web.ts +2 -0
  532. package/react/features/base/media/components/native/Audio.ts +114 -0
  533. package/react/features/base/media/components/native/Video.tsx +134 -0
  534. package/react/features/base/media/components/native/VideoTrack.tsx +30 -0
  535. package/react/features/base/media/components/native/VideoTransform.tsx +730 -0
  536. package/react/features/base/media/components/native/styles.ts +35 -0
  537. package/react/features/base/media/components/web/Audio.tsx +111 -0
  538. package/react/features/base/media/components/web/AudioTrack.tsx +314 -0
  539. package/react/features/base/media/components/web/Video.tsx +391 -0
  540. package/react/features/base/media/components/web/VideoTrack.tsx +197 -0
  541. package/react/features/base/media/constants.ts +74 -0
  542. package/react/features/base/media/functions.ts +156 -0
  543. package/react/features/base/media/logger.ts +3 -0
  544. package/react/features/base/media/middleware.any.ts +339 -0
  545. package/react/features/base/media/middleware.native.ts +1 -0
  546. package/react/features/base/media/middleware.web.ts +44 -0
  547. package/react/features/base/media/reducer.ts +379 -0
  548. package/react/features/base/media/subscriber.ts +18 -0
  549. package/react/features/base/media/types.ts +4 -0
  550. package/react/features/base/modal/components/JitsiKeyboardAvoidingView.tsx +106 -0
  551. package/react/features/base/modal/components/JitsiScreen.tsx +94 -0
  552. package/react/features/base/modal/components/functions.native.ts +32 -0
  553. package/react/features/base/modal/components/styles.ts +11 -0
  554. package/react/features/base/net-info/NetworkInfoService.native.ts +70 -0
  555. package/react/features/base/net-info/NetworkInfoService.web.ts +60 -0
  556. package/react/features/base/net-info/actionTypes.ts +13 -0
  557. package/react/features/base/net-info/actions.ts +39 -0
  558. package/react/features/base/net-info/constants.ts +6 -0
  559. package/react/features/base/net-info/events.ts +1 -0
  560. package/react/features/base/net-info/logger.ts +3 -0
  561. package/react/features/base/net-info/middleware.ts +64 -0
  562. package/react/features/base/net-info/reducer.ts +40 -0
  563. package/react/features/base/net-info/selectors.ts +13 -0
  564. package/react/features/base/net-info/types.ts +37 -0
  565. package/react/features/base/participants/actionTypes.ts +248 -0
  566. package/react/features/base/participants/actions.ts +689 -0
  567. package/react/features/base/participants/components/ParticipantView.native.tsx +300 -0
  568. package/react/features/base/participants/components/styles.ts +46 -0
  569. package/react/features/base/participants/constants.ts +82 -0
  570. package/react/features/base/participants/functions.ts +859 -0
  571. package/react/features/base/participants/logger.ts +3 -0
  572. package/react/features/base/participants/middleware.ts +986 -0
  573. package/react/features/base/participants/preloadImage.native.ts +26 -0
  574. package/react/features/base/participants/preloadImage.web.ts +46 -0
  575. package/react/features/base/participants/reducer.ts +694 -0
  576. package/react/features/base/participants/sounds.ts +11 -0
  577. package/react/features/base/participants/subscriber.ts +168 -0
  578. package/react/features/base/participants/types.ts +92 -0
  579. package/react/features/base/popover/components/Popover.native.ts +0 -0
  580. package/react/features/base/popover/components/Popover.web.tsx +554 -0
  581. package/react/features/base/popover/functions.web.ts +153 -0
  582. package/react/features/base/premeeting/actionTypes.ts +15 -0
  583. package/react/features/base/premeeting/actions.web.ts +67 -0
  584. package/react/features/base/premeeting/components/web/ActionButton.tsx +242 -0
  585. package/react/features/base/premeeting/components/web/ConnectionStatus.tsx +236 -0
  586. package/react/features/base/premeeting/components/web/PreMeetingScreen.tsx +315 -0
  587. package/react/features/base/premeeting/components/web/Preview.tsx +99 -0
  588. package/react/features/base/premeeting/components/web/RecordingWarning.tsx +38 -0
  589. package/react/features/base/premeeting/components/web/UnsafeRoomWarning.tsx +53 -0
  590. package/react/features/base/premeeting/constants.ts +8 -0
  591. package/react/features/base/premeeting/functions.ts +271 -0
  592. package/react/features/base/premeeting/logger.ts +3 -0
  593. package/react/features/base/premeeting/reducer.web.ts +42 -0
  594. package/react/features/base/premeeting/types.ts +25 -0
  595. package/react/features/base/react/Platform.native.ts +4 -0
  596. package/react/features/base/react/Platform.web.ts +48 -0
  597. package/react/features/base/react/components/AbstractContainer.ts +120 -0
  598. package/react/features/base/react/components/AbstractPage.ts +22 -0
  599. package/react/features/base/react/components/index.native.ts +2 -0
  600. package/react/features/base/react/components/index.web.ts +2 -0
  601. package/react/features/base/react/components/native/AvatarListItem.tsx +164 -0
  602. package/react/features/base/react/components/native/BaseIndicator.tsx +58 -0
  603. package/react/features/base/react/components/native/Container.tsx +86 -0
  604. package/react/features/base/react/components/native/Image.tsx +39 -0
  605. package/react/features/base/react/components/native/Link.tsx +88 -0
  606. package/react/features/base/react/components/native/Linkify.tsx +79 -0
  607. package/react/features/base/react/components/native/LoadingIndicator.tsx +55 -0
  608. package/react/features/base/react/components/native/Modal.tsx +32 -0
  609. package/react/features/base/react/components/native/NavigateSectionList.tsx +260 -0
  610. package/react/features/base/react/components/native/NavigateSectionListEmptyComponent.tsx +40 -0
  611. package/react/features/base/react/components/native/NavigateSectionListItem.tsx +123 -0
  612. package/react/features/base/react/components/native/NavigateSectionListSectionHeader.tsx +41 -0
  613. package/react/features/base/react/components/native/Pressable.tsx +44 -0
  614. package/react/features/base/react/components/native/SectionList.tsx +92 -0
  615. package/react/features/base/react/components/native/SlidingView.tsx +293 -0
  616. package/react/features/base/react/components/native/Text.ts +1 -0
  617. package/react/features/base/react/components/native/TintedView.tsx +65 -0
  618. package/react/features/base/react/components/native/headerstyles.ts +86 -0
  619. package/react/features/base/react/components/native/indicatorStyles.ts +19 -0
  620. package/react/features/base/react/components/native/slidingviewstyles.ts +29 -0
  621. package/react/features/base/react/components/native/styles.ts +154 -0
  622. package/react/features/base/react/components/web/BaseIndicator.tsx +119 -0
  623. package/react/features/base/react/components/web/Container.ts +20 -0
  624. package/react/features/base/react/components/web/Image.ts +19 -0
  625. package/react/features/base/react/components/web/InlineDialogFailure.tsx +88 -0
  626. package/react/features/base/react/components/web/Linkify.tsx +51 -0
  627. package/react/features/base/react/components/web/LoadingIndicator.ts +1 -0
  628. package/react/features/base/react/components/web/MeetingsList.tsx +278 -0
  629. package/react/features/base/react/components/web/Message.tsx +131 -0
  630. package/react/features/base/react/components/web/MultiSelectAutocomplete.tsx +321 -0
  631. package/react/features/base/react/components/web/NavigateSectionListEmptyComponent.ts +0 -0
  632. package/react/features/base/react/components/web/NavigateSectionListItem.tsx +88 -0
  633. package/react/features/base/react/components/web/NavigateSectionListSectionHeader.tsx +34 -0
  634. package/react/features/base/react/components/web/SectionList.tsx +97 -0
  635. package/react/features/base/react/components/web/Text.ts +27 -0
  636. package/react/features/base/react/components/web/Watermarks.tsx +265 -0
  637. package/react/features/base/react/constants.ts +5 -0
  638. package/react/features/base/react/functions.ts +65 -0
  639. package/react/features/base/react/logger.ts +3 -0
  640. package/react/features/base/react/types.ts +106 -0
  641. package/react/features/base/redux/MiddlewareRegistry.ts +53 -0
  642. package/react/features/base/redux/PersistenceRegistry.ts +244 -0
  643. package/react/features/base/redux/README.md +44 -0
  644. package/react/features/base/redux/ReducerRegistry.ts +62 -0
  645. package/react/features/base/redux/StateListenerRegistry.ts +186 -0
  646. package/react/features/base/redux/functions.ts +145 -0
  647. package/react/features/base/redux/logger.ts +3 -0
  648. package/react/features/base/redux/middleware.ts +43 -0
  649. package/react/features/base/responsive-ui/actionTypes.ts +66 -0
  650. package/react/features/base/responsive-ui/actions.ts +163 -0
  651. package/react/features/base/responsive-ui/components/DimensionsDetector.native.tsx +64 -0
  652. package/react/features/base/responsive-ui/components/DimensionsDetector.web.ts +0 -0
  653. package/react/features/base/responsive-ui/constants.ts +28 -0
  654. package/react/features/base/responsive-ui/functions.ts +21 -0
  655. package/react/features/base/responsive-ui/middleware.native.ts +29 -0
  656. package/react/features/base/responsive-ui/middleware.web.ts +82 -0
  657. package/react/features/base/responsive-ui/reducer.ts +80 -0
  658. package/react/features/base/settings/actionTypes.ts +23 -0
  659. package/react/features/base/settings/actions.ts +32 -0
  660. package/react/features/base/settings/components/native/SettingsButton.tsx +47 -0
  661. package/react/features/base/settings/constants.ts +4 -0
  662. package/react/features/base/settings/functions.any.ts +126 -0
  663. package/react/features/base/settings/functions.native.ts +34 -0
  664. package/react/features/base/settings/functions.web.ts +216 -0
  665. package/react/features/base/settings/logger.ts +3 -0
  666. package/react/features/base/settings/middleware.any.ts +117 -0
  667. package/react/features/base/settings/middleware.native.ts +96 -0
  668. package/react/features/base/settings/middleware.web.ts +85 -0
  669. package/react/features/base/settings/reducer.ts +174 -0
  670. package/react/features/base/sounds/actionTypes.ts +64 -0
  671. package/react/features/base/sounds/actions.ts +155 -0
  672. package/react/features/base/sounds/components/SoundCollection.ts +154 -0
  673. package/react/features/base/sounds/functions.android.ts +9 -0
  674. package/react/features/base/sounds/functions.any.ts +11 -0
  675. package/react/features/base/sounds/functions.ios.ts +12 -0
  676. package/react/features/base/sounds/functions.web.ts +27 -0
  677. package/react/features/base/sounds/logger.ts +3 -0
  678. package/react/features/base/sounds/middleware.any.ts +129 -0
  679. package/react/features/base/sounds/middleware.native.ts +1 -0
  680. package/react/features/base/sounds/middleware.web.ts +23 -0
  681. package/react/features/base/sounds/reducer.ts +144 -0
  682. package/react/features/base/styles/components/styles/BoxModel.ts +15 -0
  683. package/react/features/base/styles/components/styles/ColorPalette.ts +34 -0
  684. package/react/features/base/styles/functions.any.ts +273 -0
  685. package/react/features/base/styles/functions.native.ts +16 -0
  686. package/react/features/base/styles/functions.web.ts +24 -0
  687. package/react/features/base/testing/actionTypes.ts +9 -0
  688. package/react/features/base/testing/actions.ts +28 -0
  689. package/react/features/base/testing/components/AbstractTestHint.ts +62 -0
  690. package/react/features/base/testing/components/TestConnectionInfo.tsx +222 -0
  691. package/react/features/base/testing/components/TestHint.android.tsx +46 -0
  692. package/react/features/base/testing/components/TestHint.ios.tsx +34 -0
  693. package/react/features/base/testing/components/TestHint.web.ts +3 -0
  694. package/react/features/base/testing/functions.ts +144 -0
  695. package/react/features/base/testing/logger.ts +3 -0
  696. package/react/features/base/testing/middleware.ts +123 -0
  697. package/react/features/base/testing/reducer.ts +47 -0
  698. package/react/features/base/toolbox/components/AbstractButton.tsx +408 -0
  699. package/react/features/base/toolbox/components/AbstractHangupButton.ts +32 -0
  700. package/react/features/base/toolbox/components/AbstractToolboxItem.tsx +229 -0
  701. package/react/features/base/toolbox/components/BaseAudioMuteButton.ts +60 -0
  702. package/react/features/base/toolbox/components/BaseVideoMuteButton.ts +59 -0
  703. package/react/features/base/toolbox/components/ToolboxItem.native.tsx +83 -0
  704. package/react/features/base/toolbox/components/ToolboxItem.web.tsx +161 -0
  705. package/react/features/base/toolbox/components/web/ToolboxButtonWithIcon.tsx +162 -0
  706. package/react/features/base/toolbox/components/web/ToolboxButtonWithPopup.tsx +122 -0
  707. package/react/features/base/tooltip/actionTypes.ts +19 -0
  708. package/react/features/base/tooltip/actions.tsx +31 -0
  709. package/react/features/base/tooltip/components/Tooltip.tsx +157 -0
  710. package/react/features/base/tooltip/reducer.ts +50 -0
  711. package/react/features/base/tracks/actionTypes.ts +118 -0
  712. package/react/features/base/tracks/actions.any.ts +828 -0
  713. package/react/features/base/tracks/actions.native.ts +68 -0
  714. package/react/features/base/tracks/actions.web.ts +563 -0
  715. package/react/features/base/tracks/components/web/AllowToggleCameraDialog.tsx +44 -0
  716. package/react/features/base/tracks/constants.ts +5 -0
  717. package/react/features/base/tracks/functions.any.ts +523 -0
  718. package/react/features/base/tracks/functions.native.ts +44 -0
  719. package/react/features/base/tracks/functions.web.ts +253 -0
  720. package/react/features/base/tracks/loadEffects.native.ts +9 -0
  721. package/react/features/base/tracks/loadEffects.web.ts +41 -0
  722. package/react/features/base/tracks/logger.ts +3 -0
  723. package/react/features/base/tracks/middleware.any.ts +200 -0
  724. package/react/features/base/tracks/middleware.native.ts +76 -0
  725. package/react/features/base/tracks/middleware.web.ts +269 -0
  726. package/react/features/base/tracks/reducer.ts +140 -0
  727. package/react/features/base/tracks/subscriber.ts +40 -0
  728. package/react/features/base/tracks/types.ts +90 -0
  729. package/react/features/base/ui/Tokens.ts +241 -0
  730. package/react/features/base/ui/components/BaseTheme.native.ts +12 -0
  731. package/react/features/base/ui/components/BaseTheme.web.ts +11 -0
  732. package/react/features/base/ui/components/GlobalStyles.web.tsx +23 -0
  733. package/react/features/base/ui/components/JitsiThemeProvider.native.tsx +22 -0
  734. package/react/features/base/ui/components/JitsiThemeProvider.web.tsx +50 -0
  735. package/react/features/base/ui/components/native/Button.tsx +120 -0
  736. package/react/features/base/ui/components/native/IconButton.tsx +71 -0
  737. package/react/features/base/ui/components/native/Input.tsx +197 -0
  738. package/react/features/base/ui/components/native/Switch.tsx +60 -0
  739. package/react/features/base/ui/components/native/buttonStyles.ts +76 -0
  740. package/react/features/base/ui/components/native/inputStyles.ts +87 -0
  741. package/react/features/base/ui/components/native/switchStyles.ts +5 -0
  742. package/react/features/base/ui/components/types.ts +113 -0
  743. package/react/features/base/ui/components/updateTheme.native.ts +9 -0
  744. package/react/features/base/ui/components/variables.ts +6 -0
  745. package/react/features/base/ui/components/web/BaseDialog.tsx +217 -0
  746. package/react/features/base/ui/components/web/Button.tsx +223 -0
  747. package/react/features/base/ui/components/web/Checkbox.tsx +185 -0
  748. package/react/features/base/ui/components/web/ClickableIcon.tsx +61 -0
  749. package/react/features/base/ui/components/web/ContextMenu.tsx +412 -0
  750. package/react/features/base/ui/components/web/ContextMenuItem.tsx +272 -0
  751. package/react/features/base/ui/components/web/ContextMenuItemGroup.tsx +68 -0
  752. package/react/features/base/ui/components/web/Dialog.tsx +177 -0
  753. package/react/features/base/ui/components/web/DialogContainer.tsx +96 -0
  754. package/react/features/base/ui/components/web/DialogTransition.tsx +39 -0
  755. package/react/features/base/ui/components/web/DialogWithTabs.tsx +418 -0
  756. package/react/features/base/ui/components/web/HiddenDescription.tsx +29 -0
  757. package/react/features/base/ui/components/web/Input.tsx +290 -0
  758. package/react/features/base/ui/components/web/ListItem.tsx +294 -0
  759. package/react/features/base/ui/components/web/MultiSelect.tsx +179 -0
  760. package/react/features/base/ui/components/web/Select.tsx +198 -0
  761. package/react/features/base/ui/components/web/Spinner.tsx +79 -0
  762. package/react/features/base/ui/components/web/Switch.tsx +138 -0
  763. package/react/features/base/ui/components/web/Tabs.tsx +167 -0
  764. package/react/features/base/ui/components/web/TextWithOverflow.tsx +74 -0
  765. package/react/features/base/ui/constants.any.ts +31 -0
  766. package/react/features/base/ui/constants.native.ts +1 -0
  767. package/react/features/base/ui/constants.web.ts +275 -0
  768. package/react/features/base/ui/functions.any.ts +25 -0
  769. package/react/features/base/ui/functions.native.ts +51 -0
  770. package/react/features/base/ui/functions.web.ts +121 -0
  771. package/react/features/base/ui/hooks/useContextMenu.web.ts +77 -0
  772. package/react/features/base/ui/jitsiTokens.json +14 -0
  773. package/react/features/base/ui/tokens.json +211 -0
  774. package/react/features/base/ui/types.ts +81 -0
  775. package/react/features/base/ui/utils.ts +42 -0
  776. package/react/features/base/user-interaction/actionTypes.ts +9 -0
  777. package/react/features/base/user-interaction/middleware.ts +86 -0
  778. package/react/features/base/user-interaction/reducer.ts +29 -0
  779. package/react/features/base/util/contants.ts +1 -0
  780. package/react/features/base/util/copyText.native.ts +18 -0
  781. package/react/features/base/util/copyText.web.ts +18 -0
  782. package/react/features/base/util/downloadJSON.web.ts +35 -0
  783. package/react/features/base/util/embedUtils.native.ts +26 -0
  784. package/react/features/base/util/embedUtils.web.ts +12 -0
  785. package/react/features/base/util/getUnsafeRoomText.native.ts +32 -0
  786. package/react/features/base/util/getUnsafeRoomText.web.ts +20 -0
  787. package/react/features/base/util/helpers.ts +182 -0
  788. package/react/features/base/util/hooks.ts +12 -0
  789. package/react/features/base/util/httpUtils.ts +81 -0
  790. package/react/features/base/util/isInsecureRoomName.ts +56 -0
  791. package/react/features/base/util/loadScript.native.ts +62 -0
  792. package/react/features/base/util/loadScript.web.ts +18 -0
  793. package/react/features/base/util/logger.ts +3 -0
  794. package/react/features/base/util/math.ts +37 -0
  795. package/react/features/base/util/messageGrouping.ts +79 -0
  796. package/react/features/base/util/openURLInBrowser.native.ts +16 -0
  797. package/react/features/base/util/openURLInBrowser.web.ts +12 -0
  798. package/react/features/base/util/parseURLParams.ts +80 -0
  799. package/react/features/base/util/spot.ts +16 -0
  800. package/react/features/base/util/strings.native.ts +23 -0
  801. package/react/features/base/util/strings.web.ts +20 -0
  802. package/react/features/base/util/timeoutPromise.ts +34 -0
  803. package/react/features/base/util/uri.ts +724 -0
  804. package/react/features/breakout-rooms/actionTypes.ts +15 -0
  805. package/react/features/breakout-rooms/actions.ts +322 -0
  806. package/react/features/breakout-rooms/components/native/AddBreakoutRoomButton.tsx +33 -0
  807. package/react/features/breakout-rooms/components/native/AutoAssignButton.tsx +33 -0
  808. package/react/features/breakout-rooms/components/native/BreakoutRoomContextMenu.tsx +125 -0
  809. package/react/features/breakout-rooms/components/native/BreakoutRoomNamePrompt.tsx +35 -0
  810. package/react/features/breakout-rooms/components/native/BreakoutRoomParticipantItem.tsx +43 -0
  811. package/react/features/breakout-rooms/components/native/BreakoutRooms.tsx +67 -0
  812. package/react/features/breakout-rooms/components/native/BreakoutRoomsButton.tsx +53 -0
  813. package/react/features/breakout-rooms/components/native/CollapsibleRoom.tsx +66 -0
  814. package/react/features/breakout-rooms/components/native/LeaveBreakoutRoomButton.tsx +36 -0
  815. package/react/features/breakout-rooms/components/native/styles.ts +76 -0
  816. package/react/features/breakout-rooms/constants.ts +9 -0
  817. package/react/features/breakout-rooms/functions.ts +216 -0
  818. package/react/features/breakout-rooms/logger.ts +3 -0
  819. package/react/features/breakout-rooms/middleware.ts +107 -0
  820. package/react/features/breakout-rooms/reducer.ts +46 -0
  821. package/react/features/breakout-rooms/types.ts +36 -0
  822. package/react/features/calendar-sync/actionTypes.ts +98 -0
  823. package/react/features/calendar-sync/actions.any.ts +60 -0
  824. package/react/features/calendar-sync/actions.native.ts +45 -0
  825. package/react/features/calendar-sync/actions.web.ts +292 -0
  826. package/react/features/calendar-sync/components/AddMeetingUrlButton.native.ts +21 -0
  827. package/react/features/calendar-sync/components/AddMeetingUrlButton.web.tsx +101 -0
  828. package/react/features/calendar-sync/components/CalendarList.native.tsx +143 -0
  829. package/react/features/calendar-sync/components/CalendarList.web.tsx +269 -0
  830. package/react/features/calendar-sync/components/CalendarListContent.native.tsx +249 -0
  831. package/react/features/calendar-sync/components/CalendarListContent.web.tsx +163 -0
  832. package/react/features/calendar-sync/components/JoinButton.native.ts +21 -0
  833. package/react/features/calendar-sync/components/JoinButton.web.tsx +96 -0
  834. package/react/features/calendar-sync/components/MicrosoftSignInButton.native.ts +0 -0
  835. package/react/features/calendar-sync/components/MicrosoftSignInButton.web.tsx +52 -0
  836. package/react/features/calendar-sync/components/UpdateCalendarEventDialog.native.tsx +65 -0
  837. package/react/features/calendar-sync/components/UpdateCalendarEventDialog.web.ts +0 -0
  838. package/react/features/calendar-sync/components/styles.ts +182 -0
  839. package/react/features/calendar-sync/constants.ts +35 -0
  840. package/react/features/calendar-sync/functions.any.ts +205 -0
  841. package/react/features/calendar-sync/functions.native.ts +151 -0
  842. package/react/features/calendar-sync/functions.web.ts +114 -0
  843. package/react/features/calendar-sync/logger.ts +3 -0
  844. package/react/features/calendar-sync/middleware.ts +75 -0
  845. package/react/features/calendar-sync/reducer.tsx +108 -0
  846. package/react/features/calendar-sync/web/googleCalendar.ts +72 -0
  847. package/react/features/calendar-sync/web/microsoftCalendar.ts +606 -0
  848. package/react/features/chat/actionTypes.ts +174 -0
  849. package/react/features/chat/actions.any.ts +359 -0
  850. package/react/features/chat/actions.native.ts +30 -0
  851. package/react/features/chat/actions.web.ts +97 -0
  852. package/react/features/chat/components/AbstractChatPrivacyDialog.tsx +131 -0
  853. package/react/features/chat/components/AbstractMessageContainer.ts +65 -0
  854. package/react/features/chat/components/AbstractMessageRecipient.ts +99 -0
  855. package/react/features/chat/components/index.native.ts +2 -0
  856. package/react/features/chat/components/index.web.ts +1 -0
  857. package/react/features/chat/components/native/Chat.tsx +158 -0
  858. package/react/features/chat/components/native/ChatButton.ts +78 -0
  859. package/react/features/chat/components/native/ChatInputBar.tsx +209 -0
  860. package/react/features/chat/components/native/ChatMessage.tsx +245 -0
  861. package/react/features/chat/components/native/ChatMessageGroup.tsx +81 -0
  862. package/react/features/chat/components/native/ChatPrivacyDialog.tsx +30 -0
  863. package/react/features/chat/components/native/GifMessage.tsx +28 -0
  864. package/react/features/chat/components/native/MessageContainer.tsx +117 -0
  865. package/react/features/chat/components/native/MessageRecipient.tsx +163 -0
  866. package/react/features/chat/components/native/PrivateMessageButton.tsx +110 -0
  867. package/react/features/chat/components/native/styles.ts +272 -0
  868. package/react/features/chat/components/web/Chat.tsx +623 -0
  869. package/react/features/chat/components/web/ChatButton.tsx +98 -0
  870. package/react/features/chat/components/web/ChatCounter.tsx +74 -0
  871. package/react/features/chat/components/web/ChatHeader.tsx +88 -0
  872. package/react/features/chat/components/web/ChatInput.tsx +356 -0
  873. package/react/features/chat/components/web/ChatMessage.tsx +448 -0
  874. package/react/features/chat/components/web/ChatMessageGroup.tsx +85 -0
  875. package/react/features/chat/components/web/ChatPrivacyDialog.tsx +34 -0
  876. package/react/features/chat/components/web/ClosedCaptionsTab.tsx +182 -0
  877. package/react/features/chat/components/web/DisplayNameForm.tsx +157 -0
  878. package/react/features/chat/components/web/EmojiSelector.tsx +60 -0
  879. package/react/features/chat/components/web/GifMessage.tsx +40 -0
  880. package/react/features/chat/components/web/KeyboardAvoider.tsx +54 -0
  881. package/react/features/chat/components/web/MessageContainer.tsx +337 -0
  882. package/react/features/chat/components/web/MessageMenu.tsx +179 -0
  883. package/react/features/chat/components/web/MessageRecipient.tsx +99 -0
  884. package/react/features/chat/components/web/NewMessagesButton.tsx +89 -0
  885. package/react/features/chat/components/web/PrivateMessageButton.tsx +74 -0
  886. package/react/features/chat/components/web/ReactButton.tsx +87 -0
  887. package/react/features/chat/components/web/SmileysPanel.tsx +120 -0
  888. package/react/features/chat/components/web/SubtitleMessage.tsx +96 -0
  889. package/react/features/chat/components/web/SubtitlesGroup.tsx +76 -0
  890. package/react/features/chat/components/web/SubtitlesMessagesContainer.tsx +154 -0
  891. package/react/features/chat/constants.ts +59 -0
  892. package/react/features/chat/functions.ts +295 -0
  893. package/react/features/chat/middleware.ts +780 -0
  894. package/react/features/chat/reducer.ts +298 -0
  895. package/react/features/chat/smileys.ts +22 -0
  896. package/react/features/chat/sounds.ts +7 -0
  897. package/react/features/chat/subscriber.native.ts +0 -0
  898. package/react/features/chat/subscriber.web.ts +73 -0
  899. package/react/features/chat/types.ts +83 -0
  900. package/react/features/chrome-extension-banner/components/ChromeExtensionBanner.native.ts +0 -0
  901. package/react/features/chrome-extension-banner/components/ChromeExtensionBanner.web.tsx +352 -0
  902. package/react/features/chrome-extension-banner/logger.ts +3 -0
  903. package/react/features/conference/actionTypes.ts +8 -0
  904. package/react/features/conference/actions.native.ts +78 -0
  905. package/react/features/conference/actions.web.ts +91 -0
  906. package/react/features/conference/components/AbstractConference.ts +80 -0
  907. package/react/features/conference/components/AbstractInsecureRoomNameLabel.tsx +58 -0
  908. package/react/features/conference/components/ConferenceTimer.tsx +107 -0
  909. package/react/features/conference/components/constants.ts +15 -0
  910. package/react/features/conference/components/functions.any.ts +22 -0
  911. package/react/features/conference/components/functions.native.ts +32 -0
  912. package/react/features/conference/components/functions.web.ts +12 -0
  913. package/react/features/conference/components/index.native.ts +1 -0
  914. package/react/features/conference/components/index.web.ts +1 -0
  915. package/react/features/conference/components/native/AlwaysOnLabels.tsx +68 -0
  916. package/react/features/conference/components/native/Conference.tsx +603 -0
  917. package/react/features/conference/components/native/ConferenceTimerDisplay.tsx +21 -0
  918. package/react/features/conference/components/native/ExpandedLabelPopup.tsx +36 -0
  919. package/react/features/conference/components/native/InsecureRoomNameExpandedLabel.tsx +51 -0
  920. package/react/features/conference/components/native/InsecureRoomNameLabel.tsx +29 -0
  921. package/react/features/conference/components/native/Labels.tsx +54 -0
  922. package/react/features/conference/components/native/LonelyMeetingExperience.tsx +159 -0
  923. package/react/features/conference/components/native/RaisedHandsCountExpandedLabel.ts +24 -0
  924. package/react/features/conference/components/native/RaisedHandsCountLabel.tsx +25 -0
  925. package/react/features/conference/components/native/TitleBar.tsx +157 -0
  926. package/react/features/conference/components/native/carmode/AudioIcon.tsx +17 -0
  927. package/react/features/conference/components/native/carmode/CarMode.tsx +76 -0
  928. package/react/features/conference/components/native/carmode/CarModeFooter.tsx +30 -0
  929. package/react/features/conference/components/native/carmode/EndMeetingButton.tsx +39 -0
  930. package/react/features/conference/components/native/carmode/EndMeetingIcon.tsx +17 -0
  931. package/react/features/conference/components/native/carmode/MicrophoneButton.tsx +91 -0
  932. package/react/features/conference/components/native/carmode/SoundDeviceButton.tsx +36 -0
  933. package/react/features/conference/components/native/carmode/TitleBar.tsx +86 -0
  934. package/react/features/conference/components/native/carmode/styles.ts +173 -0
  935. package/react/features/conference/components/native/constants.ts +66 -0
  936. package/react/features/conference/components/native/styles.ts +212 -0
  937. package/react/features/conference/components/web/Conference.tsx +497 -0
  938. package/react/features/conference/components/web/ConferenceInfo.tsx +226 -0
  939. package/react/features/conference/components/web/ConferenceInfoContainer.tsx +31 -0
  940. package/react/features/conference/components/web/ConferenceTimerDisplay.tsx +36 -0
  941. package/react/features/conference/components/web/InsecureRoomNameLabel.tsx +34 -0
  942. package/react/features/conference/components/web/LeaveReasonDialog.web.tsx +62 -0
  943. package/react/features/conference/components/web/Notice.tsx +43 -0
  944. package/react/features/conference/components/web/RaisedHandsCountLabel.tsx +45 -0
  945. package/react/features/conference/components/web/SpeakerStatsLabel.tsx +51 -0
  946. package/react/features/conference/components/web/SubjectText.tsx +54 -0
  947. package/react/features/conference/components/web/ToggleTopPanelLabel.tsx +28 -0
  948. package/react/features/conference/constants.ts +12 -0
  949. package/react/features/conference/extraConstants.ts +5 -0
  950. package/react/features/conference/functions.any.ts +38 -0
  951. package/react/features/conference/functions.native.ts +1 -0
  952. package/react/features/conference/functions.web.ts +33 -0
  953. package/react/features/conference/logger.ts +3 -0
  954. package/react/features/conference/middleware.any.ts +350 -0
  955. package/react/features/conference/middleware.native.ts +28 -0
  956. package/react/features/conference/middleware.web.ts +46 -0
  957. package/react/features/connection-indicator/actions.web.ts +19 -0
  958. package/react/features/connection-indicator/components/AbstractConnectionIndicator.ts +225 -0
  959. package/react/features/connection-indicator/components/native/ConnectionIndicator.tsx +206 -0
  960. package/react/features/connection-indicator/components/native/styles.ts +29 -0
  961. package/react/features/connection-indicator/components/web/BandwidthSettingsDialog.tsx +142 -0
  962. package/react/features/connection-indicator/components/web/ConnectionIndicator.tsx +405 -0
  963. package/react/features/connection-indicator/components/web/ConnectionIndicatorContent.tsx +376 -0
  964. package/react/features/connection-indicator/components/web/ConnectionIndicatorIcon.tsx +111 -0
  965. package/react/features/connection-indicator/functions.ts +38 -0
  966. package/react/features/connection-indicator/middleware.ts +23 -0
  967. package/react/features/connection-indicator/statsEmitter.ts +201 -0
  968. package/react/features/connection-stats/components/ConnectionStatsTable.tsx +834 -0
  969. package/react/features/deep-linking/actionTypes.ts +18 -0
  970. package/react/features/deep-linking/actions.ts +33 -0
  971. package/react/features/deep-linking/components/DeepLinkingDesktopPage.native.ts +1 -0
  972. package/react/features/deep-linking/components/DeepLinkingDesktopPage.web.tsx +177 -0
  973. package/react/features/deep-linking/components/DeepLinkingMobilePage.native.ts +1 -0
  974. package/react/features/deep-linking/components/DeepLinkingMobilePage.web.tsx +219 -0
  975. package/react/features/deep-linking/components/NoMobileApp.native.ts +1 -0
  976. package/react/features/deep-linking/components/NoMobileApp.web.tsx +77 -0
  977. package/react/features/deep-linking/constants.ts +6 -0
  978. package/react/features/deep-linking/functions.web.ts +96 -0
  979. package/react/features/deep-linking/middleware.web.ts +20 -0
  980. package/react/features/deep-linking/openDesktopApp.web.ts +29 -0
  981. package/react/features/deep-linking/reducer.ts +20 -0
  982. package/react/features/desktop-picker/actions.ts +25 -0
  983. package/react/features/desktop-picker/components/DesktopPicker.tsx +426 -0
  984. package/react/features/desktop-picker/components/DesktopPickerPane.tsx +131 -0
  985. package/react/features/desktop-picker/components/DesktopSourcePreview.tsx +145 -0
  986. package/react/features/desktop-picker/constants.ts +9 -0
  987. package/react/features/desktop-picker/functions.ts +52 -0
  988. package/react/features/desktop-picker/logger.ts +3 -0
  989. package/react/features/device-selection/actions.web.ts +122 -0
  990. package/react/features/device-selection/components/AudioDevicesSelection.web.tsx +473 -0
  991. package/react/features/device-selection/components/AudioInputPreview.web.tsx +102 -0
  992. package/react/features/device-selection/components/AudioOutputPreview.web.tsx +136 -0
  993. package/react/features/device-selection/components/DeviceHidContainer.web.tsx +107 -0
  994. package/react/features/device-selection/components/DeviceSelector.native.ts +0 -0
  995. package/react/features/device-selection/components/DeviceSelector.web.tsx +154 -0
  996. package/react/features/device-selection/components/VideoDeviceSelection.web.tsx +384 -0
  997. package/react/features/device-selection/components/VideoInputPreview.web.tsx +74 -0
  998. package/react/features/device-selection/functions.web.ts +287 -0
  999. package/react/features/device-selection/logger.ts +3 -0
  1000. package/react/features/device-selection/middleware.ts +24 -0
  1001. package/react/features/display-name/actions.ts +21 -0
  1002. package/react/features/display-name/components/index.native.ts +1 -0
  1003. package/react/features/display-name/components/index.web.ts +1 -0
  1004. package/react/features/display-name/components/native/DisplayNameLabel.tsx +82 -0
  1005. package/react/features/display-name/components/native/DisplayNamePrompt.tsx +44 -0
  1006. package/react/features/display-name/components/native/styles.ts +20 -0
  1007. package/react/features/display-name/components/web/DisplayName.tsx +158 -0
  1008. package/react/features/display-name/components/web/DisplayNameBadge.tsx +41 -0
  1009. package/react/features/display-name/components/web/DisplayNamePrompt.tsx +125 -0
  1010. package/react/features/display-name/components/web/StageParticipantNameLabel.tsx +118 -0
  1011. package/react/features/display-name/components/web/styles.ts +123 -0
  1012. package/react/features/display-name/functions.ts +78 -0
  1013. package/react/features/display-name/middleware.ts +25 -0
  1014. package/react/features/display-name/types.ts +25 -0
  1015. package/react/features/dropbox/actionTypes.ts +9 -0
  1016. package/react/features/dropbox/actions.ts +56 -0
  1017. package/react/features/dropbox/functions.any.ts +48 -0
  1018. package/react/features/dropbox/functions.native.ts +74 -0
  1019. package/react/features/dropbox/functions.web.ts +152 -0
  1020. package/react/features/dropbox/logger.ts +3 -0
  1021. package/react/features/dropbox/reducer.ts +34 -0
  1022. package/react/features/dynamic-branding/actionTypes.ts +19 -0
  1023. package/react/features/dynamic-branding/actions.any.ts +78 -0
  1024. package/react/features/dynamic-branding/actions.native.ts +56 -0
  1025. package/react/features/dynamic-branding/components/native/BrandingImageBackground.tsx +76 -0
  1026. package/react/features/dynamic-branding/components/native/styles.ts +15 -0
  1027. package/react/features/dynamic-branding/functions.any.ts +96 -0
  1028. package/react/features/dynamic-branding/functions.native.ts +9 -0
  1029. package/react/features/dynamic-branding/functions.web.ts +127 -0
  1030. package/react/features/dynamic-branding/logger.ts +3 -0
  1031. package/react/features/dynamic-branding/middleware.any.ts +103 -0
  1032. package/react/features/dynamic-branding/middleware.native.ts +35 -0
  1033. package/react/features/dynamic-branding/middleware.web.ts +27 -0
  1034. package/react/features/dynamic-branding/reducer.ts +290 -0
  1035. package/react/features/e2ee/actionTypes.ts +30 -0
  1036. package/react/features/e2ee/actions.ts +85 -0
  1037. package/react/features/e2ee/components/E2EELabel.tsx +59 -0
  1038. package/react/features/e2ee/components/E2EESection.tsx +174 -0
  1039. package/react/features/e2ee/components/ParticipantVerificationDialog.tsx +123 -0
  1040. package/react/features/e2ee/constants.ts +53 -0
  1041. package/react/features/e2ee/functions.ts +120 -0
  1042. package/react/features/e2ee/logger.ts +3 -0
  1043. package/react/features/e2ee/middleware.ts +215 -0
  1044. package/react/features/e2ee/reducer.ts +44 -0
  1045. package/react/features/e2ee/sounds.ts +13 -0
  1046. package/react/features/embed-meeting/components/EmbedMeetingButton.ts +50 -0
  1047. package/react/features/embed-meeting/components/EmbedMeetingDialog.tsx +81 -0
  1048. package/react/features/embed-meeting/hooks.ts +25 -0
  1049. package/react/features/etherpad/actionTypes.ts +27 -0
  1050. package/react/features/etherpad/actions.ts +51 -0
  1051. package/react/features/etherpad/components/SharedDocumentButton.native.ts +63 -0
  1052. package/react/features/etherpad/components/SharedDocumentButton.web.ts +81 -0
  1053. package/react/features/etherpad/components/native/SharedDocument.tsx +101 -0
  1054. package/react/features/etherpad/components/native/styles.ts +26 -0
  1055. package/react/features/etherpad/functions.ts +33 -0
  1056. package/react/features/etherpad/hooks.ts +24 -0
  1057. package/react/features/etherpad/middleware.ts +73 -0
  1058. package/react/features/etherpad/reducer.ts +48 -0
  1059. package/react/features/external-api/middleware.ts +278 -0
  1060. package/react/features/external-api/subscriber.ts +73 -0
  1061. package/react/features/face-landmarks/FaceLandmarksDetector.ts +355 -0
  1062. package/react/features/face-landmarks/FaceLandmarksHelper.ts +250 -0
  1063. package/react/features/face-landmarks/actionTypes.ts +40 -0
  1064. package/react/features/face-landmarks/actions.ts +48 -0
  1065. package/react/features/face-landmarks/constants.ts +83 -0
  1066. package/react/features/face-landmarks/faceLandmarksWorker.ts +26 -0
  1067. package/react/features/face-landmarks/functions.ts +163 -0
  1068. package/react/features/face-landmarks/logger.ts +3 -0
  1069. package/react/features/face-landmarks/middleware.ts +130 -0
  1070. package/react/features/face-landmarks/reducer.ts +61 -0
  1071. package/react/features/face-landmarks/types.ts +39 -0
  1072. package/react/features/feedback/actionTypes.ts +29 -0
  1073. package/react/features/feedback/actions.web.ts +197 -0
  1074. package/react/features/feedback/components/FeedbackButton.native.ts +0 -0
  1075. package/react/features/feedback/components/FeedbackButton.web.ts +57 -0
  1076. package/react/features/feedback/components/FeedbackDialog.native.ts +3 -0
  1077. package/react/features/feedback/components/FeedbackDialog.web.tsx +330 -0
  1078. package/react/features/feedback/functions.web.ts +70 -0
  1079. package/react/features/feedback/hooks.web.ts +23 -0
  1080. package/react/features/feedback/logger.ts +3 -0
  1081. package/react/features/feedback/reducer.ts +51 -0
  1082. package/react/features/file-sharing/actionTypes.ts +70 -0
  1083. package/react/features/file-sharing/actions.ts +77 -0
  1084. package/react/features/file-sharing/components/web/FileSharing.tsx +460 -0
  1085. package/react/features/file-sharing/constants.ts +4 -0
  1086. package/react/features/file-sharing/functions.any.ts +157 -0
  1087. package/react/features/file-sharing/logger.ts +3 -0
  1088. package/react/features/file-sharing/middleware.web.ts +295 -0
  1089. package/react/features/file-sharing/reducer.ts +68 -0
  1090. package/react/features/file-sharing/types.ts +12 -0
  1091. package/react/features/file-sharing/utils.ts +27 -0
  1092. package/react/features/filmstrip/actionTypes.ts +231 -0
  1093. package/react/features/filmstrip/actions.any.ts +75 -0
  1094. package/react/features/filmstrip/actions.native.ts +85 -0
  1095. package/react/features/filmstrip/actions.web.ts +591 -0
  1096. package/react/features/filmstrip/components/native/AudioMutedIndicator.tsx +20 -0
  1097. package/react/features/filmstrip/components/native/Filmstrip.tsx +337 -0
  1098. package/react/features/filmstrip/components/native/LocalThumbnail.tsx +19 -0
  1099. package/react/features/filmstrip/components/native/ModeratorIndicator.tsx +13 -0
  1100. package/react/features/filmstrip/components/native/PinnedIndicator.tsx +15 -0
  1101. package/react/features/filmstrip/components/native/RaisedHandIndicator.tsx +78 -0
  1102. package/react/features/filmstrip/components/native/ScreenShareIndicator.tsx +15 -0
  1103. package/react/features/filmstrip/components/native/Thumbnail.tsx +444 -0
  1104. package/react/features/filmstrip/components/native/TileView.tsx +299 -0
  1105. package/react/features/filmstrip/components/native/styles.ts +182 -0
  1106. package/react/features/filmstrip/components/web/AudioMutedIndicator.tsx +33 -0
  1107. package/react/features/filmstrip/components/web/AudioTracksContainer.tsx +69 -0
  1108. package/react/features/filmstrip/components/web/Filmstrip.tsx +1151 -0
  1109. package/react/features/filmstrip/components/web/MainFilmstrip.tsx +209 -0
  1110. package/react/features/filmstrip/components/web/ModeratorIndicator.tsx +31 -0
  1111. package/react/features/filmstrip/components/web/PinnedIndicator.tsx +81 -0
  1112. package/react/features/filmstrip/components/web/RaisedHandIndicator.tsx +78 -0
  1113. package/react/features/filmstrip/components/web/ScreenShareIndicator.tsx +30 -0
  1114. package/react/features/filmstrip/components/web/ScreenshareFilmstrip.tsx +132 -0
  1115. package/react/features/filmstrip/components/web/StageFilmstrip.tsx +160 -0
  1116. package/react/features/filmstrip/components/web/StatusIndicators.tsx +123 -0
  1117. package/react/features/filmstrip/components/web/Thumbnail.tsx +1397 -0
  1118. package/react/features/filmstrip/components/web/ThumbnailAudioIndicator.tsx +46 -0
  1119. package/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx +96 -0
  1120. package/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx +158 -0
  1121. package/react/features/filmstrip/components/web/ThumbnailWrapper.tsx +292 -0
  1122. package/react/features/filmstrip/components/web/VideoMenuTriggerButton.tsx +76 -0
  1123. package/react/features/filmstrip/components/web/VirtualScreenshareParticipant.tsx +183 -0
  1124. package/react/features/filmstrip/constants.ts +300 -0
  1125. package/react/features/filmstrip/functions.any.ts +110 -0
  1126. package/react/features/filmstrip/functions.native.ts +289 -0
  1127. package/react/features/filmstrip/functions.web.ts +832 -0
  1128. package/react/features/filmstrip/logger.ts +3 -0
  1129. package/react/features/filmstrip/middleware.native.ts +37 -0
  1130. package/react/features/filmstrip/middleware.web.ts +346 -0
  1131. package/react/features/filmstrip/reducer.ts +418 -0
  1132. package/react/features/filmstrip/subscriber.any.ts +35 -0
  1133. package/react/features/filmstrip/subscriber.native.ts +42 -0
  1134. package/react/features/filmstrip/subscriber.web.ts +237 -0
  1135. package/react/features/follow-me/actionTypes.ts +43 -0
  1136. package/react/features/follow-me/actions.ts +73 -0
  1137. package/react/features/follow-me/constants.ts +6 -0
  1138. package/react/features/follow-me/functions.ts +28 -0
  1139. package/react/features/follow-me/logger.ts +3 -0
  1140. package/react/features/follow-me/middleware.ts +238 -0
  1141. package/react/features/follow-me/reducer.ts +54 -0
  1142. package/react/features/follow-me/subscriber.ts +141 -0
  1143. package/react/features/gifs/actionTypes.ts +46 -0
  1144. package/react/features/gifs/actions.ts +74 -0
  1145. package/react/features/gifs/components/native/GifsMenu.tsx +63 -0
  1146. package/react/features/gifs/components/native/GifsMenuFooter.tsx +27 -0
  1147. package/react/features/gifs/components/native/styles.ts +36 -0
  1148. package/react/features/gifs/components/web/GifsMenu.tsx +253 -0
  1149. package/react/features/gifs/components/web/GifsMenuButton.tsx +41 -0
  1150. package/react/features/gifs/constants.ts +14 -0
  1151. package/react/features/gifs/function.any.ts +150 -0
  1152. package/react/features/gifs/functions.native.ts +1 -0
  1153. package/react/features/gifs/functions.web.ts +13 -0
  1154. package/react/features/gifs/middleware.any.ts +61 -0
  1155. package/react/features/gifs/middleware.native.ts +3 -0
  1156. package/react/features/gifs/middleware.web.ts +2 -0
  1157. package/react/features/gifs/reducer.ts +75 -0
  1158. package/react/features/gifs/subscriber.native.ts +20 -0
  1159. package/react/features/google-api/actionTypes.ts +19 -0
  1160. package/react/features/google-api/actions.ts +226 -0
  1161. package/react/features/google-api/components/GoogleSignInButton.native.tsx +81 -0
  1162. package/react/features/google-api/components/GoogleSignInButton.web.tsx +61 -0
  1163. package/react/features/google-api/components/styles.ts +39 -0
  1164. package/react/features/google-api/constants.ts +76 -0
  1165. package/react/features/google-api/googleApi.native.js +191 -0
  1166. package/react/features/google-api/googleApi.web.js +461 -0
  1167. package/react/features/google-api/logger.ts +3 -0
  1168. package/react/features/google-api/reducer.ts +45 -0
  1169. package/react/features/invite/_utils.ts +83 -0
  1170. package/react/features/invite/actionTypes.ts +72 -0
  1171. package/react/features/invite/actions.any.ts +297 -0
  1172. package/react/features/invite/actions.native.ts +25 -0
  1173. package/react/features/invite/actions.web.ts +1 -0
  1174. package/react/features/invite/components/add-people-dialog/AbstractAddPeopleDialog.tsx +323 -0
  1175. package/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsx +585 -0
  1176. package/react/features/invite/components/add-people-dialog/native/styles.ts +120 -0
  1177. package/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.tsx +238 -0
  1178. package/react/features/invite/components/add-people-dialog/web/CopyMeetingLinkSection.tsx +50 -0
  1179. package/react/features/invite/components/add-people-dialog/web/DialInLimit.tsx +55 -0
  1180. package/react/features/invite/components/add-people-dialog/web/DialInNumber.tsx +138 -0
  1181. package/react/features/invite/components/add-people-dialog/web/DialInSection.tsx +71 -0
  1182. package/react/features/invite/components/add-people-dialog/web/InviteButton.ts +33 -0
  1183. package/react/features/invite/components/add-people-dialog/web/InviteByEmailSection.tsx +204 -0
  1184. package/react/features/invite/components/add-people-dialog/web/InviteContactsForm.tsx +517 -0
  1185. package/react/features/invite/components/add-people-dialog/web/InviteContactsSection.tsx +23 -0
  1186. package/react/features/invite/components/add-people-dialog/web/LiveStreamSection.tsx +110 -0
  1187. package/react/features/invite/components/callee-info/CalleeInfo.tsx +167 -0
  1188. package/react/features/invite/components/callee-info/CalleeInfoContainer.tsx +64 -0
  1189. package/react/features/invite/components/callee-info/styles.native.ts +50 -0
  1190. package/react/features/invite/components/callee-info/styles.web.ts +1 -0
  1191. package/react/features/invite/components/dial-in-info-page/DialInInfoApp.native.ts +0 -0
  1192. package/react/features/invite/components/dial-in-info-page/DialInInfoApp.web.tsx +41 -0
  1193. package/react/features/invite/components/dial-in-info-page/NoRoomError.native.ts +0 -0
  1194. package/react/features/invite/components/dial-in-info-page/NoRoomError.web.tsx +26 -0
  1195. package/react/features/invite/components/dial-in-summary/native/DialInSummary.tsx +137 -0
  1196. package/react/features/invite/components/dial-in-summary/native/DialInSummaryErrorDialog.tsx +26 -0
  1197. package/react/features/invite/components/dial-in-summary/native/styles.ts +25 -0
  1198. package/react/features/invite/components/dial-in-summary/web/ConferenceID.tsx +78 -0
  1199. package/react/features/invite/components/dial-in-summary/web/DialInSummary.tsx +312 -0
  1200. package/react/features/invite/components/dial-in-summary/web/DialInSummaryApp.tsx +71 -0
  1201. package/react/features/invite/components/dial-in-summary/web/NumbersList.tsx +210 -0
  1202. package/react/features/invite/constants.ts +60 -0
  1203. package/react/features/invite/functions.ts +985 -0
  1204. package/react/features/invite/logger.ts +3 -0
  1205. package/react/features/invite/middleware.any.ts +206 -0
  1206. package/react/features/invite/middleware.native.ts +0 -0
  1207. package/react/features/invite/middleware.web.ts +66 -0
  1208. package/react/features/invite/reducer.ts +107 -0
  1209. package/react/features/invite/sounds.ts +44 -0
  1210. package/react/features/invite/types.ts +20 -0
  1211. package/react/features/jaas/actionTypes.ts +4 -0
  1212. package/react/features/jaas/actions.any.ts +46 -0
  1213. package/react/features/jaas/actions.native.ts +11 -0
  1214. package/react/features/jaas/actions.web.ts +25 -0
  1215. package/react/features/jaas/components/web/PremiumFeatureDialog.tsx +56 -0
  1216. package/react/features/jaas/constants.ts +17 -0
  1217. package/react/features/jaas/functions.ts +170 -0
  1218. package/react/features/jaas/logger.ts +3 -0
  1219. package/react/features/jaas/middleware.any.ts +39 -0
  1220. package/react/features/jaas/middleware.native.ts +0 -0
  1221. package/react/features/jaas/middleware.web.ts +47 -0
  1222. package/react/features/jaas/reducer.ts +32 -0
  1223. package/react/features/keyboard-shortcuts/actionTypes.ts +24 -0
  1224. package/react/features/keyboard-shortcuts/actions.ts +240 -0
  1225. package/react/features/keyboard-shortcuts/components/KeyboardShortcutsButton.ts +49 -0
  1226. package/react/features/keyboard-shortcuts/functions.ts +31 -0
  1227. package/react/features/keyboard-shortcuts/hooks.ts +25 -0
  1228. package/react/features/keyboard-shortcuts/logger.ts +3 -0
  1229. package/react/features/keyboard-shortcuts/middleware.ts +52 -0
  1230. package/react/features/keyboard-shortcuts/reducer.ts +72 -0
  1231. package/react/features/keyboard-shortcuts/types.ts +23 -0
  1232. package/react/features/keyboard-shortcuts/utils.ts +79 -0
  1233. package/react/features/large-video/actionTypes.ts +43 -0
  1234. package/react/features/large-video/actions.any.ts +197 -0
  1235. package/react/features/large-video/actions.native.ts +1 -0
  1236. package/react/features/large-video/actions.web.ts +102 -0
  1237. package/react/features/large-video/components/LargeVideo.native.tsx +266 -0
  1238. package/react/features/large-video/components/LargeVideo.web.tsx +406 -0
  1239. package/react/features/large-video/components/LargeVideoBackground.native.ts +0 -0
  1240. package/react/features/large-video/components/LargeVideoBackground.web.tsx +260 -0
  1241. package/react/features/large-video/components/ScreenSharePlaceholder.web.tsx +100 -0
  1242. package/react/features/large-video/components/styles.ts +4 -0
  1243. package/react/features/large-video/functions.ts +30 -0
  1244. package/react/features/large-video/logger.ts +3 -0
  1245. package/react/features/large-video/middleware.ts +74 -0
  1246. package/react/features/large-video/reducer.ts +64 -0
  1247. package/react/features/large-video/subscriber.any.ts +26 -0
  1248. package/react/features/large-video/subscriber.native.ts +1 -0
  1249. package/react/features/large-video/subscriber.web.ts +39 -0
  1250. package/react/features/lobby/actionTypes.ts +39 -0
  1251. package/react/features/lobby/actions.any.ts +429 -0
  1252. package/react/features/lobby/actions.native.ts +23 -0
  1253. package/react/features/lobby/actions.web.ts +18 -0
  1254. package/react/features/lobby/components/AbstractLobbyScreen.tsx +484 -0
  1255. package/react/features/lobby/components/native/LobbyChatScreen.tsx +44 -0
  1256. package/react/features/lobby/components/native/LobbyScreen.tsx +323 -0
  1257. package/react/features/lobby/components/native/styles.ts +58 -0
  1258. package/react/features/lobby/components/web/LobbyScreen.tsx +319 -0
  1259. package/react/features/lobby/components/web/LobbySection.tsx +122 -0
  1260. package/react/features/lobby/constants.ts +25 -0
  1261. package/react/features/lobby/functions.ts +105 -0
  1262. package/react/features/lobby/logger.ts +3 -0
  1263. package/react/features/lobby/middleware.ts +436 -0
  1264. package/react/features/lobby/reducer.ts +166 -0
  1265. package/react/features/lobby/sounds.ts +5 -0
  1266. package/react/features/lobby/types.ts +5 -0
  1267. package/react/features/mobile/audio-mode/actionTypes.ts +23 -0
  1268. package/react/features/mobile/audio-mode/components/AudioDeviceToggleButton.ts +30 -0
  1269. package/react/features/mobile/audio-mode/components/AudioRoutePickerDialog.tsx +329 -0
  1270. package/react/features/mobile/audio-mode/components/styles.ts +46 -0
  1271. package/react/features/mobile/audio-mode/logger.ts +3 -0
  1272. package/react/features/mobile/audio-mode/middleware.ts +185 -0
  1273. package/react/features/mobile/audio-mode/reducer.ts +36 -0
  1274. package/react/features/mobile/background/actionTypes.ts +26 -0
  1275. package/react/features/mobile/background/actions.ts +39 -0
  1276. package/react/features/mobile/background/logger.ts +3 -0
  1277. package/react/features/mobile/background/middleware.native.ts +83 -0
  1278. package/react/features/mobile/background/reducer.ts +37 -0
  1279. package/react/features/mobile/call-integration/CallKit.ts +66 -0
  1280. package/react/features/mobile/call-integration/CallKitIcon.png +0 -0
  1281. package/react/features/mobile/call-integration/ConnectionService.ts +33 -0
  1282. package/react/features/mobile/call-integration/actionTypes.ts +13 -0
  1283. package/react/features/mobile/call-integration/functions.ts +20 -0
  1284. package/react/features/mobile/call-integration/middleware.ts +520 -0
  1285. package/react/features/mobile/call-integration/reducer.ts +21 -0
  1286. package/react/features/mobile/external-api/actionTypes.ts +20 -0
  1287. package/react/features/mobile/external-api/actions.ts +33 -0
  1288. package/react/features/mobile/external-api/functions.ts +47 -0
  1289. package/react/features/mobile/external-api/logger.ts +3 -0
  1290. package/react/features/mobile/external-api/middleware.ts +881 -0
  1291. package/react/features/mobile/external-api/reducer.ts +25 -0
  1292. package/react/features/mobile/navigation/actionTypes.ts +1 -0
  1293. package/react/features/mobile/navigation/components/ConnectingPage.tsx +30 -0
  1294. package/react/features/mobile/navigation/components/HeaderNavigationButton.tsx +103 -0
  1295. package/react/features/mobile/navigation/components/RootNavigationContainer.tsx +130 -0
  1296. package/react/features/mobile/navigation/components/TabBarLabelCounter.tsx +39 -0
  1297. package/react/features/mobile/navigation/components/chat/components/ChatAndPollsNavigator.tsx +62 -0
  1298. package/react/features/mobile/navigation/components/conference/ConferenceNavigationContainerRef.ts +35 -0
  1299. package/react/features/mobile/navigation/components/conference/components/ConferenceNavigationContainer.tsx +232 -0
  1300. package/react/features/mobile/navigation/components/lobby/LobbyNavigationContainerRef.ts +24 -0
  1301. package/react/features/mobile/navigation/components/lobby/components/LobbyNavigationContainer.tsx +52 -0
  1302. package/react/features/mobile/navigation/components/settings/SettingsNavigationContainerRef.ts +24 -0
  1303. package/react/features/mobile/navigation/components/settings/components/SettingsNavigationContainer.tsx +91 -0
  1304. package/react/features/mobile/navigation/components/styles.ts +114 -0
  1305. package/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.tsx +120 -0
  1306. package/react/features/mobile/navigation/functions.tsx +88 -0
  1307. package/react/features/mobile/navigation/middleware.ts +38 -0
  1308. package/react/features/mobile/navigation/rootNavigationContainerRef.ts +51 -0
  1309. package/react/features/mobile/navigation/routes.ts +55 -0
  1310. package/react/features/mobile/navigation/screenOptions.ts +260 -0
  1311. package/react/features/mobile/permissions/functions.ts +29 -0
  1312. package/react/features/mobile/permissions/middleware.ts +66 -0
  1313. package/react/features/mobile/picture-in-picture/actionTypes.ts +11 -0
  1314. package/react/features/mobile/picture-in-picture/actions.ts +42 -0
  1315. package/react/features/mobile/picture-in-picture/components/PictureInPictureButton.ts +65 -0
  1316. package/react/features/mobile/picture-in-picture/functions.ts +36 -0
  1317. package/react/features/mobile/picture-in-picture/logger.ts +3 -0
  1318. package/react/features/mobile/polyfills/RTCPeerConnection.js +19 -0
  1319. package/react/features/mobile/polyfills/Storage.js +192 -0
  1320. package/react/features/mobile/polyfills/browser.js +338 -0
  1321. package/react/features/mobile/polyfills/custom.js +4 -0
  1322. package/react/features/mobile/polyfills/index.js +2 -0
  1323. package/react/features/mobile/polyfills/ipv6utils.js +197 -0
  1324. package/react/features/mobile/polyfills/querySelectorPolyfill.js +282 -0
  1325. package/react/features/mobile/polyfills/webrtc.js +11 -0
  1326. package/react/features/mobile/proximity/middleware.ts +34 -0
  1327. package/react/features/mobile/react-native-sdk/functions.js +13 -0
  1328. package/react/features/mobile/react-native-sdk/middleware.js +108 -0
  1329. package/react/features/mobile/wake-lock/middleware.ts +35 -0
  1330. package/react/features/no-audio-signal/actionTypes.ts +11 -0
  1331. package/react/features/no-audio-signal/actions.ts +19 -0
  1332. package/react/features/no-audio-signal/components/DialInLink.tsx +73 -0
  1333. package/react/features/no-audio-signal/constants.ts +6 -0
  1334. package/react/features/no-audio-signal/middleware.tsx +126 -0
  1335. package/react/features/no-audio-signal/reducer.ts +20 -0
  1336. package/react/features/no-audio-signal/sounds.ts +6 -0
  1337. package/react/features/noise-detection/actionTypes.ts +11 -0
  1338. package/react/features/noise-detection/actions.ts +19 -0
  1339. package/react/features/noise-detection/constants.ts +6 -0
  1340. package/react/features/noise-detection/middleware.ts +57 -0
  1341. package/react/features/noise-detection/reducer.ts +21 -0
  1342. package/react/features/noise-detection/sounds.ts +6 -0
  1343. package/react/features/noise-suppression/actionTypes.ts +9 -0
  1344. package/react/features/noise-suppression/actions.ts +98 -0
  1345. package/react/features/noise-suppression/components/NoiseSuppressionButton.tsx +67 -0
  1346. package/react/features/noise-suppression/functions.ts +49 -0
  1347. package/react/features/noise-suppression/logger.ts +3 -0
  1348. package/react/features/noise-suppression/reducer.ts +36 -0
  1349. package/react/features/notifications/actionTypes.ts +45 -0
  1350. package/react/features/notifications/actions.ts +346 -0
  1351. package/react/features/notifications/components/NotificationsTransition.tsx +70 -0
  1352. package/react/features/notifications/components/index.native.ts +1 -0
  1353. package/react/features/notifications/components/index.web.ts +1 -0
  1354. package/react/features/notifications/components/native/Notification.tsx +236 -0
  1355. package/react/features/notifications/components/native/NotificationsContainer.tsx +239 -0
  1356. package/react/features/notifications/components/native/styles.ts +141 -0
  1357. package/react/features/notifications/components/web/Notification.tsx +378 -0
  1358. package/react/features/notifications/components/web/NotificationsContainer.tsx +117 -0
  1359. package/react/features/notifications/constants.ts +137 -0
  1360. package/react/features/notifications/functions.ts +41 -0
  1361. package/react/features/notifications/middleware.ts +210 -0
  1362. package/react/features/notifications/reducer.ts +131 -0
  1363. package/react/features/notifications/types.ts +23 -0
  1364. package/react/features/old-client-notification/components/OldElectronAPPNotificationDescription.tsx +37 -0
  1365. package/react/features/old-client-notification/functions.ts +27 -0
  1366. package/react/features/old-client-notification/middleware.tsx +41 -0
  1367. package/react/features/overlay/actionTypes.ts +19 -0
  1368. package/react/features/overlay/actions.native.ts +21 -0
  1369. package/react/features/overlay/actions.web.ts +54 -0
  1370. package/react/features/overlay/components/web/AbstractBasePageOverlay.tsx +32 -0
  1371. package/react/features/overlay/components/web/AbstractConferenceNotFoundOverlay.tsx +32 -0
  1372. package/react/features/overlay/components/web/AbstractPageReloadOverlay.tsx +281 -0
  1373. package/react/features/overlay/components/web/AbstractSuspendedOverlay.ts +22 -0
  1374. package/react/features/overlay/components/web/BasePageOverlay.tsx +60 -0
  1375. package/react/features/overlay/components/web/ConferenceNotFoundOverlay.tsx +69 -0
  1376. package/react/features/overlay/components/web/OverlayContainer.tsx +59 -0
  1377. package/react/features/overlay/components/web/OverlayFrame.tsx +49 -0
  1378. package/react/features/overlay/components/web/PageReloadOverlay.tsx +55 -0
  1379. package/react/features/overlay/components/web/ReloadButton.tsx +43 -0
  1380. package/react/features/overlay/components/web/SuspendedOverlay.tsx +39 -0
  1381. package/react/features/overlay/functions.web.ts +33 -0
  1382. package/react/features/overlay/logger.ts +3 -0
  1383. package/react/features/overlay/middleware.ts +130 -0
  1384. package/react/features/overlay/reducer.ts +70 -0
  1385. package/react/features/participants-pane/actionTypes.ts +14 -0
  1386. package/react/features/participants-pane/actions.any.ts +12 -0
  1387. package/react/features/participants-pane/actions.native.ts +105 -0
  1388. package/react/features/participants-pane/actions.web.ts +14 -0
  1389. package/react/features/participants-pane/components/breakout-rooms/components/web/AddBreakoutRoomButton.tsx +36 -0
  1390. package/react/features/participants-pane/components/breakout-rooms/components/web/AutoAssignButton.tsx +30 -0
  1391. package/react/features/participants-pane/components/breakout-rooms/components/web/BreakoutRoomNamePrompt.tsx +47 -0
  1392. package/react/features/participants-pane/components/breakout-rooms/components/web/CollapsibleRoom.tsx +195 -0
  1393. package/react/features/participants-pane/components/breakout-rooms/components/web/JoinQuickActionButton.tsx +52 -0
  1394. package/react/features/participants-pane/components/breakout-rooms/components/web/LeaveButton.tsx +33 -0
  1395. package/react/features/participants-pane/components/breakout-rooms/components/web/RenameButton.tsx +53 -0
  1396. package/react/features/participants-pane/components/breakout-rooms/components/web/RoomActionEllipsis.tsx +27 -0
  1397. package/react/features/participants-pane/components/breakout-rooms/components/web/RoomContextMenu.tsx +122 -0
  1398. package/react/features/participants-pane/components/breakout-rooms/components/web/RoomList.tsx +110 -0
  1399. package/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx +135 -0
  1400. package/react/features/participants-pane/components/native/CollapsibleList.tsx +54 -0
  1401. package/react/features/participants-pane/components/native/ContextMenuLobbyParticipantReject.tsx +67 -0
  1402. package/react/features/participants-pane/components/native/ContextMenuMore.tsx +124 -0
  1403. package/react/features/participants-pane/components/native/LobbyParticipantItem.tsx +45 -0
  1404. package/react/features/participants-pane/components/native/LobbyParticipantList.tsx +57 -0
  1405. package/react/features/participants-pane/components/native/MeetingParticipantItem.tsx +195 -0
  1406. package/react/features/participants-pane/components/native/MeetingParticipantList.tsx +121 -0
  1407. package/react/features/participants-pane/components/native/ParticipantItem.tsx +145 -0
  1408. package/react/features/participants-pane/components/native/ParticipantsConter.tsx +15 -0
  1409. package/react/features/participants-pane/components/native/ParticipantsPane.tsx +50 -0
  1410. package/react/features/participants-pane/components/native/ParticipantsPaneButton.tsx +90 -0
  1411. package/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx +95 -0
  1412. package/react/features/participants-pane/components/native/RaisedHandIndicator.tsx +16 -0
  1413. package/react/features/participants-pane/components/native/RoomParticipantMenu.tsx +145 -0
  1414. package/react/features/participants-pane/components/native/VisitorsItem.tsx +46 -0
  1415. package/react/features/participants-pane/components/native/VisitorsList.tsx +90 -0
  1416. package/react/features/participants-pane/components/native/styles.ts +293 -0
  1417. package/react/features/participants-pane/components/web/CurrentVisitorsList.tsx +172 -0
  1418. package/react/features/participants-pane/components/web/FooterContextMenu.tsx +198 -0
  1419. package/react/features/participants-pane/components/web/InviteButton.tsx +46 -0
  1420. package/react/features/participants-pane/components/web/LobbyParticipantItem.tsx +140 -0
  1421. package/react/features/participants-pane/components/web/LobbyParticipantItems.tsx +59 -0
  1422. package/react/features/participants-pane/components/web/LobbyParticipants.tsx +135 -0
  1423. package/react/features/participants-pane/components/web/MeetingParticipantContextMenu.tsx +143 -0
  1424. package/react/features/participants-pane/components/web/MeetingParticipantItem.tsx +318 -0
  1425. package/react/features/participants-pane/components/web/MeetingParticipantItems.tsx +106 -0
  1426. package/react/features/participants-pane/components/web/MeetingParticipants.tsx +192 -0
  1427. package/react/features/participants-pane/components/web/ParticipantActionEllipsis.tsx +30 -0
  1428. package/react/features/participants-pane/components/web/ParticipantItem.tsx +199 -0
  1429. package/react/features/participants-pane/components/web/ParticipantQuickAction.tsx +170 -0
  1430. package/react/features/participants-pane/components/web/ParticipantsCounter.tsx +33 -0
  1431. package/react/features/participants-pane/components/web/ParticipantsPane.tsx +247 -0
  1432. package/react/features/participants-pane/components/web/ParticipantsPaneButton.tsx +138 -0
  1433. package/react/features/participants-pane/components/web/RaisedHandIndicator.tsx +29 -0
  1434. package/react/features/participants-pane/components/web/VisitorsItem.tsx +80 -0
  1435. package/react/features/participants-pane/components/web/VisitorsList.tsx +139 -0
  1436. package/react/features/participants-pane/constants.tsx +123 -0
  1437. package/react/features/participants-pane/functions.ts +327 -0
  1438. package/react/features/participants-pane/hooks.web.ts +81 -0
  1439. package/react/features/participants-pane/middleware.ts +28 -0
  1440. package/react/features/participants-pane/reducer.ts +54 -0
  1441. package/react/features/participants-pane/types.ts +36 -0
  1442. package/react/features/polls/actionTypes.ts +93 -0
  1443. package/react/features/polls/actions.ts +164 -0
  1444. package/react/features/polls/components/AbstractPollAnswer.tsx +116 -0
  1445. package/react/features/polls/components/AbstractPollCreate.tsx +182 -0
  1446. package/react/features/polls/components/AbstractPollResults.tsx +119 -0
  1447. package/react/features/polls/components/AbstractPollsPane.tsx +47 -0
  1448. package/react/features/polls/components/native/PollAnswer.tsx +120 -0
  1449. package/react/features/polls/components/native/PollCreate.tsx +219 -0
  1450. package/react/features/polls/components/native/PollItem.tsx +45 -0
  1451. package/react/features/polls/components/native/PollResults.tsx +149 -0
  1452. package/react/features/polls/components/native/PollsList.tsx +70 -0
  1453. package/react/features/polls/components/native/PollsPane.tsx +78 -0
  1454. package/react/features/polls/components/native/styles.ts +239 -0
  1455. package/react/features/polls/components/web/PollAnswer.tsx +156 -0
  1456. package/react/features/polls/components/web/PollCreate.tsx +284 -0
  1457. package/react/features/polls/components/web/PollItem.tsx +42 -0
  1458. package/react/features/polls/components/web/PollResults.tsx +182 -0
  1459. package/react/features/polls/components/web/PollsList.tsx +93 -0
  1460. package/react/features/polls/components/web/PollsPane.tsx +55 -0
  1461. package/react/features/polls/constants.ts +2 -0
  1462. package/react/features/polls/functions.ts +87 -0
  1463. package/react/features/polls/logger.ts +3 -0
  1464. package/react/features/polls/middleware.ts +134 -0
  1465. package/react/features/polls/reducer.ts +186 -0
  1466. package/react/features/polls/types.ts +119 -0
  1467. package/react/features/polls-history/actionTypes.ts +23 -0
  1468. package/react/features/polls-history/actions.ts +47 -0
  1469. package/react/features/polls-history/middleware.ts +46 -0
  1470. package/react/features/polls-history/reducer.ts +52 -0
  1471. package/react/features/power-monitor/actionTypes.ts +19 -0
  1472. package/react/features/power-monitor/actions.ts +37 -0
  1473. package/react/features/power-monitor/middleware.ts +68 -0
  1474. package/react/features/power-monitor/reducer.ts +56 -0
  1475. package/react/features/prejoin/actionTypes.ts +50 -0
  1476. package/react/features/prejoin/actions.native.ts +23 -0
  1477. package/react/features/prejoin/actions.web.ts +464 -0
  1478. package/react/features/prejoin/components/native/Prejoin.tsx +234 -0
  1479. package/react/features/prejoin/components/native/RecordingWarning.tsx +28 -0
  1480. package/react/features/prejoin/components/native/UnsafeRoomWarning.tsx +122 -0
  1481. package/react/features/prejoin/components/native/styles.ts +184 -0
  1482. package/react/features/prejoin/components/web/Label.tsx +46 -0
  1483. package/react/features/prejoin/components/web/Prejoin.tsx +533 -0
  1484. package/react/features/prejoin/components/web/PrejoinApp.tsx +96 -0
  1485. package/react/features/prejoin/components/web/PrejoinThirdParty.tsx +81 -0
  1486. package/react/features/prejoin/components/web/country-picker/CountryDropdown.tsx +47 -0
  1487. package/react/features/prejoin/components/web/country-picker/CountryPicker.tsx +163 -0
  1488. package/react/features/prejoin/components/web/country-picker/CountryRow.tsx +66 -0
  1489. package/react/features/prejoin/components/web/country-picker/CountrySelector.tsx +76 -0
  1490. package/react/features/prejoin/components/web/dialogs/CallingDialog.tsx +82 -0
  1491. package/react/features/prejoin/components/web/dialogs/DialInDialog.tsx +172 -0
  1492. package/react/features/prejoin/components/web/dialogs/DialOutDialog.tsx +100 -0
  1493. package/react/features/prejoin/components/web/dialogs/JoinByPhoneDialog.tsx +239 -0
  1494. package/react/features/prejoin/components/web/preview/DeviceStatus.tsx +78 -0
  1495. package/react/features/prejoin/functions.any.ts +215 -0
  1496. package/react/features/prejoin/functions.native.ts +1 -0
  1497. package/react/features/prejoin/functions.web.ts +32 -0
  1498. package/react/features/prejoin/logger.ts +3 -0
  1499. package/react/features/prejoin/middleware.web.ts +93 -0
  1500. package/react/features/prejoin/reducer.ts +179 -0
  1501. package/react/features/prejoin/types.ts +3 -0
  1502. package/react/features/prejoin/utils.ts +805 -0
  1503. package/react/features/presence-status/components/PresenceLabel.tsx +129 -0
  1504. package/react/features/presence-status/constants.ts +127 -0
  1505. package/react/features/presence-status/functions.ts +8 -0
  1506. package/react/features/reactions/actionTypes.ts +65 -0
  1507. package/react/features/reactions/actions.any.ts +114 -0
  1508. package/react/features/reactions/actions.native.ts +1 -0
  1509. package/react/features/reactions/actions.web.ts +17 -0
  1510. package/react/features/reactions/components/native/RaiseHandButton.tsx +192 -0
  1511. package/react/features/reactions/components/native/RaiseHandContainerButtons.tsx +20 -0
  1512. package/react/features/reactions/components/native/ReactionButton.tsx +105 -0
  1513. package/react/features/reactions/components/native/ReactionEmoji.tsx +94 -0
  1514. package/react/features/reactions/components/native/ReactionMenu.tsx +76 -0
  1515. package/react/features/reactions/components/native/ReactionMenuDialog.tsx +141 -0
  1516. package/react/features/reactions/components/native/ReactionsMenuButton.ts +85 -0
  1517. package/react/features/reactions/components/native/styles.ts +11 -0
  1518. package/react/features/reactions/components/web/RaiseHandButton.ts +95 -0
  1519. package/react/features/reactions/components/web/RaiseHandContainerButtons.tsx +26 -0
  1520. package/react/features/reactions/components/web/ReactionButton.tsx +231 -0
  1521. package/react/features/reactions/components/web/ReactionEmoji.tsx +94 -0
  1522. package/react/features/reactions/components/web/ReactionsAnimations.tsx +29 -0
  1523. package/react/features/reactions/components/web/ReactionsMenu.tsx +259 -0
  1524. package/react/features/reactions/components/web/ReactionsMenuButton.tsx +188 -0
  1525. package/react/features/reactions/constants.ts +196 -0
  1526. package/react/features/reactions/functions.any.ts +174 -0
  1527. package/react/features/reactions/functions.native.ts +1 -0
  1528. package/react/features/reactions/functions.web.ts +27 -0
  1529. package/react/features/reactions/hooks.web.ts +23 -0
  1530. package/react/features/reactions/logger.ts +3 -0
  1531. package/react/features/reactions/middleware.ts +271 -0
  1532. package/react/features/reactions/reducer.ts +121 -0
  1533. package/react/features/reactions/sounds.ts +55 -0
  1534. package/react/features/reactions/types.ts +5 -0
  1535. package/react/features/recent-list/actionTypes.ts +34 -0
  1536. package/react/features/recent-list/actions.ts +58 -0
  1537. package/react/features/recent-list/components/AbstractRecentList.tsx +97 -0
  1538. package/react/features/recent-list/components/DeleteItemButton.native.ts +37 -0
  1539. package/react/features/recent-list/components/RecentList.native.tsx +128 -0
  1540. package/react/features/recent-list/components/RecentList.web.tsx +105 -0
  1541. package/react/features/recent-list/components/RecentListItemMenu.native.tsx +102 -0
  1542. package/react/features/recent-list/components/ShowDialInInfoButton.native.tsx +40 -0
  1543. package/react/features/recent-list/components/styles.native.ts +45 -0
  1544. package/react/features/recent-list/components/styles.web.ts +4 -0
  1545. package/react/features/recent-list/functions.native.ts +157 -0
  1546. package/react/features/recent-list/functions.web.ts +33 -0
  1547. package/react/features/recent-list/logger.ts +3 -0
  1548. package/react/features/recent-list/middleware.ts +151 -0
  1549. package/react/features/recent-list/reducer.ts +153 -0
  1550. package/react/features/recent-list/types.ts +5 -0
  1551. package/react/features/recording/actionTypes.ts +104 -0
  1552. package/react/features/recording/actions.any.ts +493 -0
  1553. package/react/features/recording/actions.native.ts +72 -0
  1554. package/react/features/recording/actions.web.tsx +83 -0
  1555. package/react/features/recording/components/AbstractRecordingLabel.ts +96 -0
  1556. package/react/features/recording/components/LiveStream/AbstractLiveStreamButton.ts +157 -0
  1557. package/react/features/recording/components/LiveStream/AbstractStartLiveStreamDialog.ts +251 -0
  1558. package/react/features/recording/components/LiveStream/AbstractStopLiveStreamDialog.ts +84 -0
  1559. package/react/features/recording/components/LiveStream/AbstractStreamKeyForm.ts +179 -0
  1560. package/react/features/recording/components/LiveStream/constants.ts +26 -0
  1561. package/react/features/recording/components/LiveStream/functions.ts +28 -0
  1562. package/react/features/recording/components/LiveStream/native/GoogleSigninForm.tsx +229 -0
  1563. package/react/features/recording/components/LiveStream/native/LiveStreamButton.ts +63 -0
  1564. package/react/features/recording/components/LiveStream/native/StartLiveStreamDialog.tsx +160 -0
  1565. package/react/features/recording/components/LiveStream/native/StopLiveStreamDialog.tsx +33 -0
  1566. package/react/features/recording/components/LiveStream/native/StreamKeyForm.tsx +164 -0
  1567. package/react/features/recording/components/LiveStream/native/StreamKeyPicker.tsx +168 -0
  1568. package/react/features/recording/components/LiveStream/native/styles.ts +146 -0
  1569. package/react/features/recording/components/LiveStream/web/LiveStreamButton.ts +65 -0
  1570. package/react/features/recording/components/LiveStream/web/StartLiveStreamDialog.tsx +361 -0
  1571. package/react/features/recording/components/LiveStream/web/StopLiveStreamDialog.tsx +36 -0
  1572. package/react/features/recording/components/LiveStream/web/StreamKeyForm.tsx +112 -0
  1573. package/react/features/recording/components/LiveStream/web/StreamKeyPicker.tsx +126 -0
  1574. package/react/features/recording/components/Recording/AbstractHighlightButton.ts +126 -0
  1575. package/react/features/recording/components/Recording/AbstractRecordButton.ts +138 -0
  1576. package/react/features/recording/components/Recording/AbstractStartRecordingDialog.ts +484 -0
  1577. package/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx +432 -0
  1578. package/react/features/recording/components/Recording/AbstractStopRecordingDialog.ts +152 -0
  1579. package/react/features/recording/components/Recording/LocalRecordingManager.native.ts +64 -0
  1580. package/react/features/recording/components/Recording/LocalRecordingManager.web.ts +378 -0
  1581. package/react/features/recording/components/Recording/index.native.ts +2 -0
  1582. package/react/features/recording/components/Recording/index.web.ts +2 -0
  1583. package/react/features/recording/components/Recording/native/HighlightButton.tsx +58 -0
  1584. package/react/features/recording/components/Recording/native/HighlightDialog.tsx +51 -0
  1585. package/react/features/recording/components/Recording/native/RecordButton.ts +68 -0
  1586. package/react/features/recording/components/Recording/native/RecordingConsentDialog.tsx +64 -0
  1587. package/react/features/recording/components/Recording/native/StartRecordingDialog.tsx +170 -0
  1588. package/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx +383 -0
  1589. package/react/features/recording/components/Recording/native/StopRecordingDialog.tsx +33 -0
  1590. package/react/features/recording/components/Recording/styles.native.ts +167 -0
  1591. package/react/features/recording/components/Recording/styles.web.ts +16 -0
  1592. package/react/features/recording/components/Recording/web/HighlightButton.tsx +225 -0
  1593. package/react/features/recording/components/Recording/web/RecordButton.ts +60 -0
  1594. package/react/features/recording/components/Recording/web/RecordingConsentDialog.tsx +58 -0
  1595. package/react/features/recording/components/Recording/web/StartRecordingDialog.tsx +137 -0
  1596. package/react/features/recording/components/Recording/web/StartRecordingDialogContent.tsx +486 -0
  1597. package/react/features/recording/components/Recording/web/StopRecordingDialog.tsx +48 -0
  1598. package/react/features/recording/components/native/RecordingExpandedLabel.ts +103 -0
  1599. package/react/features/recording/components/native/RecordingLabel.tsx +51 -0
  1600. package/react/features/recording/components/native/styles.ts +18 -0
  1601. package/react/features/recording/components/web/RecordingLabel.tsx +85 -0
  1602. package/react/features/recording/components/web/RecordingLimitNotificationDescription.tsx +76 -0
  1603. package/react/features/recording/constants.ts +64 -0
  1604. package/react/features/recording/functions.ts +485 -0
  1605. package/react/features/recording/hooks.web.ts +61 -0
  1606. package/react/features/recording/logger.ts +3 -0
  1607. package/react/features/recording/middleware.ts +432 -0
  1608. package/react/features/recording/reducer.ts +156 -0
  1609. package/react/features/recording/sounds.ts +27 -0
  1610. package/react/features/rejoin/middleware.ts +27 -0
  1611. package/react/features/remote-control/actionTypes.ts +68 -0
  1612. package/react/features/remote-control/actions.ts +770 -0
  1613. package/react/features/remote-control/components/RemoteControlAuthorizationDialog.tsx +170 -0
  1614. package/react/features/remote-control/constants.ts +86 -0
  1615. package/react/features/remote-control/functions.ts +131 -0
  1616. package/react/features/remote-control/keycodes.ts +176 -0
  1617. package/react/features/remote-control/logger.ts +3 -0
  1618. package/react/features/remote-control/middleware.ts +92 -0
  1619. package/react/features/remote-control/reducer.ts +88 -0
  1620. package/react/features/remote-control/subscriber.ts +53 -0
  1621. package/react/features/room-lock/actions.ts +112 -0
  1622. package/react/features/room-lock/components/PasswordRequiredPrompt.native.tsx +165 -0
  1623. package/react/features/room-lock/components/PasswordRequiredPrompt.web.tsx +159 -0
  1624. package/react/features/room-lock/constants.ts +15 -0
  1625. package/react/features/room-lock/logger.ts +3 -0
  1626. package/react/features/room-lock/middleware.ts +149 -0
  1627. package/react/features/rtcstats/RTCStats.ts +126 -0
  1628. package/react/features/rtcstats/functions.ts +29 -0
  1629. package/react/features/rtcstats/logger.ts +3 -0
  1630. package/react/features/rtcstats/middleware.ts +92 -0
  1631. package/react/features/rtcstats/types.ts +12 -0
  1632. package/react/features/salesforce/actions.ts +36 -0
  1633. package/react/features/salesforce/components/index.native.ts +2 -0
  1634. package/react/features/salesforce/components/index.web.ts +1 -0
  1635. package/react/features/salesforce/components/native/RecordItem.tsx +83 -0
  1636. package/react/features/salesforce/components/native/SalesforceLinkDialog.tsx +186 -0
  1637. package/react/features/salesforce/components/native/styles.ts +148 -0
  1638. package/react/features/salesforce/components/web/RecordItem.tsx +107 -0
  1639. package/react/features/salesforce/components/web/SalesforceLinkDialog.tsx +284 -0
  1640. package/react/features/salesforce/constants.ts +41 -0
  1641. package/react/features/salesforce/functions.ts +114 -0
  1642. package/react/features/salesforce/useSalesforceLinkDialog.ts +156 -0
  1643. package/react/features/screen-share/actionTypes.ts +27 -0
  1644. package/react/features/screen-share/actions.any.ts +19 -0
  1645. package/react/features/screen-share/actions.web.ts +104 -0
  1646. package/react/features/screen-share/components/web/ShareAudioButton.ts +71 -0
  1647. package/react/features/screen-share/components/web/ShareAudioDialog.tsx +117 -0
  1648. package/react/features/screen-share/components/web/ShareScreenWarningDialog.tsx +95 -0
  1649. package/react/features/screen-share/functions.ts +58 -0
  1650. package/react/features/screen-share/logger.ts +3 -0
  1651. package/react/features/screen-share/middleware.ts +72 -0
  1652. package/react/features/screen-share/reducer.ts +44 -0
  1653. package/react/features/screenshot-capture/CameraCaptureDialog.tsx +154 -0
  1654. package/react/features/screenshot-capture/ScreenshotCaptureSummary.tsx +214 -0
  1655. package/react/features/screenshot-capture/actionTypes.ts +29 -0
  1656. package/react/features/screenshot-capture/actions.ts +86 -0
  1657. package/react/features/screenshot-capture/constants.ts +51 -0
  1658. package/react/features/screenshot-capture/functions.tsx +55 -0
  1659. package/react/features/screenshot-capture/logger.ts +3 -0
  1660. package/react/features/screenshot-capture/processScreenshot.js +10 -0
  1661. package/react/features/screenshot-capture/reducer.ts +30 -0
  1662. package/react/features/screenshot-capture/worker.ts +132 -0
  1663. package/react/features/security/actions.ts +15 -0
  1664. package/react/features/security/components/security-dialog/AbstractSecurityDialogButton.ts +92 -0
  1665. package/react/features/security/components/security-dialog/index.native.ts +2 -0
  1666. package/react/features/security/components/security-dialog/index.web.ts +1 -0
  1667. package/react/features/security/components/security-dialog/native/SecurityDialog.tsx +533 -0
  1668. package/react/features/security/components/security-dialog/native/SecurityDialogButton.ts +27 -0
  1669. package/react/features/security/components/security-dialog/native/styles.ts +95 -0
  1670. package/react/features/security/components/security-dialog/web/PasswordForm.tsx +115 -0
  1671. package/react/features/security/components/security-dialog/web/PasswordSection.tsx +189 -0
  1672. package/react/features/security/components/security-dialog/web/SecurityDialog.tsx +65 -0
  1673. package/react/features/security/components/security-dialog/web/SecurityDialogButton.ts +28 -0
  1674. package/react/features/security/functions.ts +28 -0
  1675. package/react/features/security/hooks.web.ts +45 -0
  1676. package/react/features/settings/actionTypes.ts +19 -0
  1677. package/react/features/settings/actions.native.ts +38 -0
  1678. package/react/features/settings/actions.web.ts +375 -0
  1679. package/react/features/settings/components/native/AdvancedSection.tsx +114 -0
  1680. package/react/features/settings/components/native/ConferenceSection.tsx +101 -0
  1681. package/react/features/settings/components/native/FormRow.tsx +146 -0
  1682. package/react/features/settings/components/native/FormSection.tsx +42 -0
  1683. package/react/features/settings/components/native/GeneralSection.tsx +61 -0
  1684. package/react/features/settings/components/native/LanguageSelectView.tsx +79 -0
  1685. package/react/features/settings/components/native/LinksSection.tsx +57 -0
  1686. package/react/features/settings/components/native/LogoutDialog.tsx +21 -0
  1687. package/react/features/settings/components/native/ModeratorSection.tsx +144 -0
  1688. package/react/features/settings/components/native/NotificationsSection.tsx +139 -0
  1689. package/react/features/settings/components/native/ProfileView.tsx +165 -0
  1690. package/react/features/settings/components/native/SettingsView.tsx +101 -0
  1691. package/react/features/settings/components/native/constants.ts +1 -0
  1692. package/react/features/settings/components/native/styles.ts +244 -0
  1693. package/react/features/settings/components/web/CalendarTab.tsx +307 -0
  1694. package/react/features/settings/components/web/LogoutDialog.tsx +38 -0
  1695. package/react/features/settings/components/web/ModeratorTab.tsx +281 -0
  1696. package/react/features/settings/components/web/MoreTab.tsx +283 -0
  1697. package/react/features/settings/components/web/NotificationsTab.tsx +273 -0
  1698. package/react/features/settings/components/web/ProfileTab.tsx +251 -0
  1699. package/react/features/settings/components/web/SettingsButton.ts +50 -0
  1700. package/react/features/settings/components/web/SettingsDialog.tsx +331 -0
  1701. package/react/features/settings/components/web/ShortcutsTab.tsx +178 -0
  1702. package/react/features/settings/components/web/VirtualBackgroundTab.tsx +102 -0
  1703. package/react/features/settings/components/web/audio/AudioSettingsContent.tsx +357 -0
  1704. package/react/features/settings/components/web/audio/AudioSettingsPopup.tsx +164 -0
  1705. package/react/features/settings/components/web/audio/Meter.tsx +45 -0
  1706. package/react/features/settings/components/web/audio/MicrophoneEntry.tsx +223 -0
  1707. package/react/features/settings/components/web/audio/SpeakerEntry.tsx +176 -0
  1708. package/react/features/settings/components/web/video/VideoSettingsContent.tsx +358 -0
  1709. package/react/features/settings/components/web/video/VideoSettingsPopup.tsx +128 -0
  1710. package/react/features/settings/constants.ts +21 -0
  1711. package/react/features/settings/functions.any.ts +282 -0
  1712. package/react/features/settings/functions.native.ts +38 -0
  1713. package/react/features/settings/functions.web.ts +175 -0
  1714. package/react/features/settings/logger.ts +3 -0
  1715. package/react/features/settings/middleware.web.ts +33 -0
  1716. package/react/features/settings/reducer.ts +43 -0
  1717. package/react/features/share-room/actionTypes.ts +33 -0
  1718. package/react/features/share-room/actions.ts +69 -0
  1719. package/react/features/share-room/functions.ts +18 -0
  1720. package/react/features/share-room/logger.ts +3 -0
  1721. package/react/features/share-room/middleware.ts +71 -0
  1722. package/react/features/share-room/reducer.ts +23 -0
  1723. package/react/features/shared-video/actionTypes.ts +38 -0
  1724. package/react/features/shared-video/actions.ts +203 -0
  1725. package/react/features/shared-video/components/AbstractSharedVideoDialog.tsx +68 -0
  1726. package/react/features/shared-video/components/index.native.ts +4 -0
  1727. package/react/features/shared-video/components/index.web.ts +3 -0
  1728. package/react/features/shared-video/components/native/AbstractVideoManager.ts +266 -0
  1729. package/react/features/shared-video/components/native/ShareVideoConfirmDialog.tsx +38 -0
  1730. package/react/features/shared-video/components/native/SharedVideo.tsx +167 -0
  1731. package/react/features/shared-video/components/native/SharedVideoButton.ts +113 -0
  1732. package/react/features/shared-video/components/native/SharedVideoDialog.tsx +86 -0
  1733. package/react/features/shared-video/components/native/VideoManager.tsx +196 -0
  1734. package/react/features/shared-video/components/native/YoutubeVideoManager.tsx +203 -0
  1735. package/react/features/shared-video/components/native/styles.ts +11 -0
  1736. package/react/features/shared-video/components/web/AbstractVideoManager.ts +490 -0
  1737. package/react/features/shared-video/components/web/ShareVideoConfirmDialog.tsx +39 -0
  1738. package/react/features/shared-video/components/web/SharedVideo.tsx +185 -0
  1739. package/react/features/shared-video/components/web/SharedVideoButton.ts +97 -0
  1740. package/react/features/shared-video/components/web/SharedVideoDialog.tsx +118 -0
  1741. package/react/features/shared-video/components/web/VideoManager.tsx +184 -0
  1742. package/react/features/shared-video/components/web/YoutubeVideoManager.tsx +230 -0
  1743. package/react/features/shared-video/constants.ts +50 -0
  1744. package/react/features/shared-video/functions.ts +166 -0
  1745. package/react/features/shared-video/hooks.ts +24 -0
  1746. package/react/features/shared-video/logger.ts +3 -0
  1747. package/react/features/shared-video/middleware.ts +290 -0
  1748. package/react/features/shared-video/reducer.ts +66 -0
  1749. package/react/features/speaker-stats/actionTypes.ts +80 -0
  1750. package/react/features/speaker-stats/actions.any.ts +231 -0
  1751. package/react/features/speaker-stats/actions.native.ts +1 -0
  1752. package/react/features/speaker-stats/actions.web.ts +1 -0
  1753. package/react/features/speaker-stats/components/AbstractSpeakerStatsButton.tsx +14 -0
  1754. package/react/features/speaker-stats/components/AbstractSpeakerStatsList.ts +114 -0
  1755. package/react/features/speaker-stats/components/native/SpeakerStats.tsx +32 -0
  1756. package/react/features/speaker-stats/components/native/SpeakerStatsButton.ts +50 -0
  1757. package/react/features/speaker-stats/components/native/SpeakerStatsItem.tsx +76 -0
  1758. package/react/features/speaker-stats/components/native/SpeakerStatsList.tsx +23 -0
  1759. package/react/features/speaker-stats/components/native/SpeakerStatsSearch.tsx +48 -0
  1760. package/react/features/speaker-stats/components/native/TimeElapsed.tsx +50 -0
  1761. package/react/features/speaker-stats/components/native/styles.ts +55 -0
  1762. package/react/features/speaker-stats/components/timeFunctions.ts +88 -0
  1763. package/react/features/speaker-stats/components/web/FaceExpressionsSwitch.tsx +61 -0
  1764. package/react/features/speaker-stats/components/web/SpeakerStats.tsx +283 -0
  1765. package/react/features/speaker-stats/components/web/SpeakerStatsButton.tsx +45 -0
  1766. package/react/features/speaker-stats/components/web/SpeakerStatsItem.tsx +116 -0
  1767. package/react/features/speaker-stats/components/web/SpeakerStatsLabels.tsx +56 -0
  1768. package/react/features/speaker-stats/components/web/SpeakerStatsList.tsx +65 -0
  1769. package/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx +128 -0
  1770. package/react/features/speaker-stats/components/web/TimeElapsed.tsx +36 -0
  1771. package/react/features/speaker-stats/components/web/Timeline.tsx +207 -0
  1772. package/react/features/speaker-stats/components/web/TimelineAxis.tsx +187 -0
  1773. package/react/features/speaker-stats/constants.ts +28 -0
  1774. package/react/features/speaker-stats/functions.ts +274 -0
  1775. package/react/features/speaker-stats/hooks.web.ts +23 -0
  1776. package/react/features/speaker-stats/middleware.ts +101 -0
  1777. package/react/features/speaker-stats/reducer.ts +188 -0
  1778. package/react/features/stream-effects/audio-mixer/AudioMixerEffect.ts +113 -0
  1779. package/react/features/stream-effects/noise-suppression/NoiseSuppressionEffect.ts +277 -0
  1780. package/react/features/stream-effects/noise-suppression/NoiseSuppressorWorklet.ts +177 -0
  1781. package/react/features/stream-effects/noise-suppression/logger.ts +3 -0
  1782. package/react/features/stream-effects/rnnoise/RnnoiseProcessor.ts +186 -0
  1783. package/react/features/stream-effects/rnnoise/index.ts +24 -0
  1784. package/react/features/stream-effects/virtual-background/JitsiStreamBackgroundEffect.ts +269 -0
  1785. package/react/features/stream-effects/virtual-background/TimerWorker.ts +67 -0
  1786. package/react/features/stream-effects/virtual-background/index.ts +106 -0
  1787. package/react/features/stream-effects/virtual-background/vendor/README.md +24 -0
  1788. package/react/features/stream-effects/virtual-background/vendor/models/selfie_segmentation_landscape.tflite +0 -0
  1789. package/react/features/stream-effects/virtual-background/vendor/tflite/tflite-simd.js +17 -0
  1790. package/react/features/stream-effects/virtual-background/vendor/tflite/tflite-simd.wasm +0 -0
  1791. package/react/features/stream-effects/virtual-background/vendor/tflite/tflite.js +17 -0
  1792. package/react/features/stream-effects/virtual-background/vendor/tflite/tflite.wasm +0 -0
  1793. package/react/features/subtitles/actionTypes.ts +72 -0
  1794. package/react/features/subtitles/actions.any.ts +139 -0
  1795. package/react/features/subtitles/actions.native.ts +1 -0
  1796. package/react/features/subtitles/actions.web.ts +17 -0
  1797. package/react/features/subtitles/components/AbstractCaptions.tsx +143 -0
  1798. package/react/features/subtitles/components/AbstractClosedCaptionButton.tsx +128 -0
  1799. package/react/features/subtitles/components/AbstractLanguageSelectorDialog.tsx +67 -0
  1800. package/react/features/subtitles/components/native/Captions.tsx +65 -0
  1801. package/react/features/subtitles/components/native/ClosedCaptionButton.tsx +59 -0
  1802. package/react/features/subtitles/components/native/LanguageList.tsx +43 -0
  1803. package/react/features/subtitles/components/native/LanguageListItem.tsx +67 -0
  1804. package/react/features/subtitles/components/native/LanguageSelectorDialog.tsx +38 -0
  1805. package/react/features/subtitles/components/native/styles.ts +63 -0
  1806. package/react/features/subtitles/components/web/Captions.tsx +169 -0
  1807. package/react/features/subtitles/components/web/ClosedCaptionButton.tsx +92 -0
  1808. package/react/features/subtitles/components/web/LanguageList.tsx +52 -0
  1809. package/react/features/subtitles/components/web/LanguageListItem.tsx +77 -0
  1810. package/react/features/subtitles/components/web/LanguageSelector.tsx +103 -0
  1811. package/react/features/subtitles/components/web/LanguageSelectorDialog.tsx +78 -0
  1812. package/react/features/subtitles/constants.ts +4 -0
  1813. package/react/features/subtitles/functions.any.ts +71 -0
  1814. package/react/features/subtitles/functions.native.ts +30 -0
  1815. package/react/features/subtitles/functions.web.ts +35 -0
  1816. package/react/features/subtitles/hooks.web.ts +31 -0
  1817. package/react/features/subtitles/logger.ts +3 -0
  1818. package/react/features/subtitles/middleware.ts +401 -0
  1819. package/react/features/subtitles/reducer.ts +180 -0
  1820. package/react/features/subtitles/types.ts +23 -0
  1821. package/react/features/talk-while-muted/actionTypes.ts +12 -0
  1822. package/react/features/talk-while-muted/actions.ts +19 -0
  1823. package/react/features/talk-while-muted/constants.ts +6 -0
  1824. package/react/features/talk-while-muted/middleware.ts +75 -0
  1825. package/react/features/talk-while-muted/reducer.ts +21 -0
  1826. package/react/features/talk-while-muted/sounds.ts +6 -0
  1827. package/react/features/toolbox/actionTypes.ts +168 -0
  1828. package/react/features/toolbox/actions.any.ts +189 -0
  1829. package/react/features/toolbox/actions.native.ts +45 -0
  1830. package/react/features/toolbox/actions.web.ts +280 -0
  1831. package/react/features/toolbox/components/AbstractAudioMuteButton.tsx +95 -0
  1832. package/react/features/toolbox/components/AbstractVideoMuteButton.tsx +94 -0
  1833. package/react/features/toolbox/components/DownloadButton.ts +59 -0
  1834. package/react/features/toolbox/components/HangupButton.ts +50 -0
  1835. package/react/features/toolbox/components/HelpButton.ts +62 -0
  1836. package/react/features/toolbox/components/index.native.ts +1 -0
  1837. package/react/features/toolbox/components/index.web.ts +1 -0
  1838. package/react/features/toolbox/components/native/AudioMuteButton.tsx +6 -0
  1839. package/react/features/toolbox/components/native/AudioOnlyButton.ts +96 -0
  1840. package/react/features/toolbox/components/native/CustomOptionButton.tsx +75 -0
  1841. package/react/features/toolbox/components/native/HangupContainerButtons.tsx +21 -0
  1842. package/react/features/toolbox/components/native/HangupMenu.tsx +73 -0
  1843. package/react/features/toolbox/components/native/HangupMenuButton.tsx +32 -0
  1844. package/react/features/toolbox/components/native/LinkToSalesforceButton.ts +48 -0
  1845. package/react/features/toolbox/components/native/OpenCarmodeButton.tsx +49 -0
  1846. package/react/features/toolbox/components/native/OverflowMenu.tsx +316 -0
  1847. package/react/features/toolbox/components/native/OverflowMenuButton.ts +50 -0
  1848. package/react/features/toolbox/components/native/RaiseHandButton.ts +99 -0
  1849. package/react/features/toolbox/components/native/ScreenSharingAndroidButton.ts +91 -0
  1850. package/react/features/toolbox/components/native/ScreenSharingButton.tsx +36 -0
  1851. package/react/features/toolbox/components/native/ScreenSharingIosButton.tsx +148 -0
  1852. package/react/features/toolbox/components/native/ToggleCameraButton.ts +79 -0
  1853. package/react/features/toolbox/components/native/ToggleSelfViewButton.ts +74 -0
  1854. package/react/features/toolbox/components/native/Toolbox.tsx +142 -0
  1855. package/react/features/toolbox/components/native/VideoMuteButton.tsx +7 -0
  1856. package/react/features/toolbox/components/native/styles.ts +216 -0
  1857. package/react/features/toolbox/components/web/AudioMuteButton.tsx +205 -0
  1858. package/react/features/toolbox/components/web/AudioSettingsButton.tsx +180 -0
  1859. package/react/features/toolbox/components/web/CustomOptionButton.tsx +40 -0
  1860. package/react/features/toolbox/components/web/DialogPortal.ts +126 -0
  1861. package/react/features/toolbox/components/web/Drawer.tsx +172 -0
  1862. package/react/features/toolbox/components/web/EndConferenceButton.tsx +55 -0
  1863. package/react/features/toolbox/components/web/FullscreenButton.ts +77 -0
  1864. package/react/features/toolbox/components/web/HangupContextMenuItem.tsx +73 -0
  1865. package/react/features/toolbox/components/web/HangupMenuButton.tsx +134 -0
  1866. package/react/features/toolbox/components/web/HangupToggleButton.tsx +57 -0
  1867. package/react/features/toolbox/components/web/JitsiPortal.tsx +58 -0
  1868. package/react/features/toolbox/components/web/LeaveConferenceButton.tsx +54 -0
  1869. package/react/features/toolbox/components/web/LinkToSalesforceButton.ts +48 -0
  1870. package/react/features/toolbox/components/web/OverflowMenuButton.tsx +262 -0
  1871. package/react/features/toolbox/components/web/OverflowToggleButton.ts +59 -0
  1872. package/react/features/toolbox/components/web/ProfileButton.ts +116 -0
  1873. package/react/features/toolbox/components/web/ProfileButtonAvatar.tsx +62 -0
  1874. package/react/features/toolbox/components/web/Separator.tsx +3 -0
  1875. package/react/features/toolbox/components/web/ShareDesktopButton.ts +116 -0
  1876. package/react/features/toolbox/components/web/ToggleCameraButton.ts +76 -0
  1877. package/react/features/toolbox/components/web/Toolbox.tsx +353 -0
  1878. package/react/features/toolbox/components/web/VideoMuteButton.tsx +203 -0
  1879. package/react/features/toolbox/components/web/VideoSettingsButton.tsx +197 -0
  1880. package/react/features/toolbox/constants.ts +214 -0
  1881. package/react/features/toolbox/functions.any.ts +95 -0
  1882. package/react/features/toolbox/functions.native.ts +125 -0
  1883. package/react/features/toolbox/functions.web.ts +248 -0
  1884. package/react/features/toolbox/hooks.native.ts +181 -0
  1885. package/react/features/toolbox/hooks.web.ts +642 -0
  1886. package/react/features/toolbox/middleware.native.ts +46 -0
  1887. package/react/features/toolbox/middleware.web.ts +172 -0
  1888. package/react/features/toolbox/reducer.ts +215 -0
  1889. package/react/features/toolbox/subscriber.web.ts +106 -0
  1890. package/react/features/toolbox/types.ts +107 -0
  1891. package/react/features/transcribing/actionTypes.ts +22 -0
  1892. package/react/features/transcribing/actions.ts +40 -0
  1893. package/react/features/transcribing/functions.ts +83 -0
  1894. package/react/features/transcribing/jitsi-bcp47-map.json +52 -0
  1895. package/react/features/transcribing/logger.ts +3 -0
  1896. package/react/features/transcribing/middleware.ts +25 -0
  1897. package/react/features/transcribing/reducer.ts +79 -0
  1898. package/react/features/transcribing/subscriber.ts +87 -0
  1899. package/react/features/transcribing/transcriber-langs.json +90 -0
  1900. package/react/features/unsupported-browser/components/DefaultUnsupportedDesktopBrowser.tsx +31 -0
  1901. package/react/features/unsupported-browser/components/JaasUnsupportedDesktopBrowser.ts +1 -0
  1902. package/react/features/unsupported-browser/components/PageSelector.tsx +19 -0
  1903. package/react/features/unsupported-browser/components/UnsupportedDesktopBrowser.tsx +1 -0
  1904. package/react/features/unsupported-browser/components/browserLinks.ts +35 -0
  1905. package/react/features/video-layout/actionTypes.ts +30 -0
  1906. package/react/features/video-layout/actions.any.ts +60 -0
  1907. package/react/features/video-layout/actions.native.ts +19 -0
  1908. package/react/features/video-layout/actions.web.ts +1 -0
  1909. package/react/features/video-layout/components/TileViewButton.ts +96 -0
  1910. package/react/features/video-layout/constants.ts +29 -0
  1911. package/react/features/video-layout/functions.any.ts +238 -0
  1912. package/react/features/video-layout/functions.native.ts +1 -0
  1913. package/react/features/video-layout/functions.web.ts +86 -0
  1914. package/react/features/video-layout/hooks.ts +26 -0
  1915. package/react/features/video-layout/logger.ts +3 -0
  1916. package/react/features/video-layout/middleware.any.ts +129 -0
  1917. package/react/features/video-layout/middleware.native.ts +34 -0
  1918. package/react/features/video-layout/middleware.web.ts +72 -0
  1919. package/react/features/video-layout/reducer.ts +63 -0
  1920. package/react/features/video-layout/subscriber.ts +35 -0
  1921. package/react/features/video-menu/actions.any.ts +105 -0
  1922. package/react/features/video-menu/actions.native.ts +1 -0
  1923. package/react/features/video-menu/actions.web.ts +17 -0
  1924. package/react/features/video-menu/components/AbstractGrantModeratorButton.ts +59 -0
  1925. package/react/features/video-menu/components/AbstractGrantModeratorDialog.ts +77 -0
  1926. package/react/features/video-menu/components/AbstractKickButton.ts +34 -0
  1927. package/react/features/video-menu/components/AbstractKickRemoteParticipantDialog.ts +57 -0
  1928. package/react/features/video-menu/components/AbstractMuteButton.ts +90 -0
  1929. package/react/features/video-menu/components/AbstractMuteEveryoneDialog.ts +131 -0
  1930. package/react/features/video-menu/components/AbstractMuteEveryoneElseButton.ts +37 -0
  1931. package/react/features/video-menu/components/AbstractMuteEveryoneElsesVideoButton.ts +37 -0
  1932. package/react/features/video-menu/components/AbstractMuteEveryonesDesktopDialog.ts +130 -0
  1933. package/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.ts +130 -0
  1934. package/react/features/video-menu/components/AbstractMuteRemoteParticipantsDesktopDialog.ts +81 -0
  1935. package/react/features/video-menu/components/AbstractMuteRemoteParticipantsVideoDialog.ts +81 -0
  1936. package/react/features/video-menu/components/AbstractMuteVideoButton.ts +90 -0
  1937. package/react/features/video-menu/components/index.native.ts +13 -0
  1938. package/react/features/video-menu/components/index.web.ts +6 -0
  1939. package/react/features/video-menu/components/native/AskUnmuteButton.ts +100 -0
  1940. package/react/features/video-menu/components/native/ConnectionStatusButton.ts +36 -0
  1941. package/react/features/video-menu/components/native/ConnectionStatusComponent.tsx +476 -0
  1942. package/react/features/video-menu/components/native/DemoteToVisitorButton.ts +52 -0
  1943. package/react/features/video-menu/components/native/DemoteToVisitorDialog.tsx +38 -0
  1944. package/react/features/video-menu/components/native/GrantModeratorButton.ts +8 -0
  1945. package/react/features/video-menu/components/native/GrantModeratorDialog.tsx +31 -0
  1946. package/react/features/video-menu/components/native/KickButton.ts +20 -0
  1947. package/react/features/video-menu/components/native/KickRemoteParticipantDialog.tsx +32 -0
  1948. package/react/features/video-menu/components/native/LocalVideoMenu.tsx +154 -0
  1949. package/react/features/video-menu/components/native/LowerHandButton.tsx +71 -0
  1950. package/react/features/video-menu/components/native/MuteButton.ts +22 -0
  1951. package/react/features/video-menu/components/native/MuteEveryoneDialog.tsx +58 -0
  1952. package/react/features/video-menu/components/native/MuteEveryoneElseButton.ts +20 -0
  1953. package/react/features/video-menu/components/native/MuteEveryonesVideoDialog.tsx +58 -0
  1954. package/react/features/video-menu/components/native/MuteRemoteParticipantsVideoDialog.tsx +32 -0
  1955. package/react/features/video-menu/components/native/MuteVideoButton.ts +22 -0
  1956. package/react/features/video-menu/components/native/PinButton.ts +59 -0
  1957. package/react/features/video-menu/components/native/RemoteVideoMenu.tsx +287 -0
  1958. package/react/features/video-menu/components/native/SendToBreakoutRoom.ts +71 -0
  1959. package/react/features/video-menu/components/native/SharedVideoMenu.tsx +149 -0
  1960. package/react/features/video-menu/components/native/VolumeSlider.tsx +175 -0
  1961. package/react/features/video-menu/components/native/styles.ts +89 -0
  1962. package/react/features/video-menu/components/web/AskToUnmuteButton.tsx +76 -0
  1963. package/react/features/video-menu/components/web/ConnectionStatusButton.tsx +42 -0
  1964. package/react/features/video-menu/components/web/CustomOptionButton.tsx +27 -0
  1965. package/react/features/video-menu/components/web/DemoteToVisitorButton.tsx +63 -0
  1966. package/react/features/video-menu/components/web/DemoteToVisitorDialog.tsx +40 -0
  1967. package/react/features/video-menu/components/web/FakeParticipantContextMenu.tsx +178 -0
  1968. package/react/features/video-menu/components/web/FlipLocalVideoButton.tsx +125 -0
  1969. package/react/features/video-menu/components/web/GrantModeratorButton.tsx +56 -0
  1970. package/react/features/video-menu/components/web/GrantModeratorDialog.tsx +32 -0
  1971. package/react/features/video-menu/components/web/HideSelfViewVideoButton.tsx +124 -0
  1972. package/react/features/video-menu/components/web/KickButton.tsx +46 -0
  1973. package/react/features/video-menu/components/web/KickRemoteParticipantDialog.tsx +32 -0
  1974. package/react/features/video-menu/components/web/LocalVideoMenuTriggerButton.tsx +305 -0
  1975. package/react/features/video-menu/components/web/LowerHandButton.tsx +56 -0
  1976. package/react/features/video-menu/components/web/MuteButton.tsx +65 -0
  1977. package/react/features/video-menu/components/web/MuteDesktopButton.tsx +67 -0
  1978. package/react/features/video-menu/components/web/MuteEveryoneDialog.tsx +55 -0
  1979. package/react/features/video-menu/components/web/MuteEveryoneElseButton.tsx +48 -0
  1980. package/react/features/video-menu/components/web/MuteEveryoneElsesDesktopButton.tsx +48 -0
  1981. package/react/features/video-menu/components/web/MuteEveryoneElsesVideoButton.tsx +48 -0
  1982. package/react/features/video-menu/components/web/MuteEveryonesDesktopDialog.tsx +52 -0
  1983. package/react/features/video-menu/components/web/MuteEveryonesVideoDialog.tsx +52 -0
  1984. package/react/features/video-menu/components/web/MuteRemoteParticipantsDesktopDialog.tsx +40 -0
  1985. package/react/features/video-menu/components/web/MuteRemoteParticipantsVideoDialog.tsx +40 -0
  1986. package/react/features/video-menu/components/web/MuteVideoButton.tsx +66 -0
  1987. package/react/features/video-menu/components/web/ParticipantContextMenu.tsx +388 -0
  1988. package/react/features/video-menu/components/web/PrivateMessageMenuButton.tsx +112 -0
  1989. package/react/features/video-menu/components/web/RemoteControlButton.tsx +148 -0
  1990. package/react/features/video-menu/components/web/RemoteVideoMenuTriggerButton.tsx +273 -0
  1991. package/react/features/video-menu/components/web/SendToRoomButton.tsx +57 -0
  1992. package/react/features/video-menu/components/web/TogglePinToStageButton.tsx +67 -0
  1993. package/react/features/video-menu/components/web/VerifyParticipantButton.tsx +45 -0
  1994. package/react/features/video-menu/components/web/VolumeSlider.tsx +111 -0
  1995. package/react/features/video-menu/constants.ts +41 -0
  1996. package/react/features/video-menu/logger.ts +3 -0
  1997. package/react/features/video-menu/types.ts +18 -0
  1998. package/react/features/video-quality/actionTypes.ts +72 -0
  1999. package/react/features/video-quality/actions.ts +135 -0
  2000. package/react/features/video-quality/components/Slider.web.tsx +168 -0
  2001. package/react/features/video-quality/components/VideoQualityButton.native.ts +0 -0
  2002. package/react/features/video-quality/components/VideoQualityButton.web.ts +58 -0
  2003. package/react/features/video-quality/components/VideoQualityDialog.native.ts +0 -0
  2004. package/react/features/video-quality/components/VideoQualityDialog.web.tsx +30 -0
  2005. package/react/features/video-quality/components/VideoQualityExpandedLabel.native.ts +34 -0
  2006. package/react/features/video-quality/components/VideoQualityExpandedLabel.web.ts +0 -0
  2007. package/react/features/video-quality/components/VideoQualityLabel.native.tsx +75 -0
  2008. package/react/features/video-quality/components/VideoQualityLabel.web.tsx +66 -0
  2009. package/react/features/video-quality/components/VideoQualitySlider.native.ts +0 -0
  2010. package/react/features/video-quality/components/VideoQualitySlider.web.tsx +385 -0
  2011. package/react/features/video-quality/components/styles.ts +20 -0
  2012. package/react/features/video-quality/constants.ts +55 -0
  2013. package/react/features/video-quality/functions.ts +65 -0
  2014. package/react/features/video-quality/logger.ts +3 -0
  2015. package/react/features/video-quality/middleware.ts +45 -0
  2016. package/react/features/video-quality/reducer.ts +130 -0
  2017. package/react/features/video-quality/selector.ts +31 -0
  2018. package/react/features/video-quality/subscriber.ts +517 -0
  2019. package/react/features/videosipgw/actionTypes.ts +23 -0
  2020. package/react/features/videosipgw/actions.ts +20 -0
  2021. package/react/features/videosipgw/logger.ts +3 -0
  2022. package/react/features/videosipgw/middleware.ts +179 -0
  2023. package/react/features/videosipgw/reducer.ts +21 -0
  2024. package/react/features/videosipgw/types.ts +10 -0
  2025. package/react/features/virtual-background/actionTypes.ts +23 -0
  2026. package/react/features/virtual-background/actions.ts +105 -0
  2027. package/react/features/virtual-background/components/UploadImageButton.tsx +152 -0
  2028. package/react/features/virtual-background/components/VideoBackgroundButton.ts +77 -0
  2029. package/react/features/virtual-background/components/VirtualBackgroundPreview.tsx +305 -0
  2030. package/react/features/virtual-background/components/VirtualBackgrounds.tsx +503 -0
  2031. package/react/features/virtual-background/constants.ts +61 -0
  2032. package/react/features/virtual-background/functions.ts +119 -0
  2033. package/react/features/virtual-background/hooks.ts +27 -0
  2034. package/react/features/virtual-background/logger.ts +3 -0
  2035. package/react/features/virtual-background/reducer.ts +54 -0
  2036. package/react/features/visitors/VisitorsListWebsocketClient.ts +175 -0
  2037. package/react/features/visitors/actionTypes.ts +81 -0
  2038. package/react/features/visitors/actions.ts +262 -0
  2039. package/react/features/visitors/components/index.native.ts +1 -0
  2040. package/react/features/visitors/components/index.web.ts +1 -0
  2041. package/react/features/visitors/components/native/JoinMeetingDialog.tsx +40 -0
  2042. package/react/features/visitors/components/native/VisitorsCountLabel.tsx +38 -0
  2043. package/react/features/visitors/components/native/VisitorsQueue.tsx +43 -0
  2044. package/react/features/visitors/components/native/styles.ts +34 -0
  2045. package/react/features/visitors/components/web/JoinMeetingDialog.tsx +72 -0
  2046. package/react/features/visitors/components/web/VisitorsCountLabel.tsx +37 -0
  2047. package/react/features/visitors/components/web/VisitorsQueue.tsx +107 -0
  2048. package/react/features/visitors/functions.ts +153 -0
  2049. package/react/features/visitors/logger.ts +3 -0
  2050. package/react/features/visitors/middleware.ts +479 -0
  2051. package/react/features/visitors/reducer.ts +132 -0
  2052. package/react/features/visitors/types.ts +15 -0
  2053. package/react/features/visitors/websocket-client.ts +169 -0
  2054. package/react/features/web-hid/actionTypes.ts +20 -0
  2055. package/react/features/web-hid/actions.ts +51 -0
  2056. package/react/features/web-hid/functions.ts +121 -0
  2057. package/react/features/web-hid/logger.ts +3 -0
  2058. package/react/features/web-hid/middleware.ts +145 -0
  2059. package/react/features/web-hid/reducer.ts +43 -0
  2060. package/react/features/web-hid/types.ts +44 -0
  2061. package/react/features/web-hid/utils.ts +52 -0
  2062. package/react/features/web-hid/webhid-manager.ts +1018 -0
  2063. package/react/features/welcome/components/AbstractWelcomePage.ts +298 -0
  2064. package/react/features/welcome/components/BlankPage.web.ts +1 -0
  2065. package/react/features/welcome/components/TabIcon.tsx +35 -0
  2066. package/react/features/welcome/components/Tabs.tsx +111 -0
  2067. package/react/features/welcome/components/WelcomePage.native.tsx +417 -0
  2068. package/react/features/welcome/components/WelcomePage.web.tsx +517 -0
  2069. package/react/features/welcome/components/styles.native.ts +231 -0
  2070. package/react/features/welcome/constants.tsx +44 -0
  2071. package/react/features/welcome/functions.ts +33 -0
  2072. package/react/features/whiteboard/actionTypes.ts +25 -0
  2073. package/react/features/whiteboard/actions.any.ts +71 -0
  2074. package/react/features/whiteboard/actions.native.ts +26 -0
  2075. package/react/features/whiteboard/actions.web.ts +48 -0
  2076. package/react/features/whiteboard/components/native/Whiteboard.tsx +247 -0
  2077. package/react/features/whiteboard/components/native/WhiteboardButton.tsx +43 -0
  2078. package/react/features/whiteboard/components/native/WhiteboardErrorDialog.tsx +15 -0
  2079. package/react/features/whiteboard/components/native/WhiteboardLimitDialog.tsx +43 -0
  2080. package/react/features/whiteboard/components/native/styles.ts +37 -0
  2081. package/react/features/whiteboard/components/web/NoWhiteboardError.tsx +25 -0
  2082. package/react/features/whiteboard/components/web/Whiteboard.tsx +165 -0
  2083. package/react/features/whiteboard/components/web/WhiteboardApp.tsx +94 -0
  2084. package/react/features/whiteboard/components/web/WhiteboardButton.tsx +71 -0
  2085. package/react/features/whiteboard/components/web/WhiteboardLimitDialog.tsx +39 -0
  2086. package/react/features/whiteboard/components/web/WhiteboardWrapper.tsx +70 -0
  2087. package/react/features/whiteboard/constants.ts +71 -0
  2088. package/react/features/whiteboard/functions.ts +217 -0
  2089. package/react/features/whiteboard/hooks.ts +23 -0
  2090. package/react/features/whiteboard/logger.ts +3 -0
  2091. package/react/features/whiteboard/middleware.any.ts +94 -0
  2092. package/react/features/whiteboard/middleware.native.ts +84 -0
  2093. package/react/features/whiteboard/middleware.web.ts +162 -0
  2094. package/react/features/whiteboard/reducer.ts +66 -0
  2095. package/react/features/whiteboard/types.ts +13 -0
  2096. package/react/index.native.js +35 -0
  2097. package/react/index.web.js +85 -0
  2098. package/sdk_instructions.js +2 -0
  2099. package/sounds/README.md +2 -0
  2100. package/sounds/asked-unmute.mp3 +0 -0
  2101. package/sounds/asked-unmute.opus +0 -0
  2102. package/sounds/e2eeOff.mp3 +0 -0
  2103. package/sounds/e2eeOff.opus +0 -0
  2104. package/sounds/e2eeOff_fr.mp3 +0 -0
  2105. package/sounds/e2eeOff_fr.opus +0 -0
  2106. package/sounds/e2eeOff_frCA.mp3 +0 -0
  2107. package/sounds/e2eeOff_frCA.opus +0 -0
  2108. package/sounds/e2eeOn.mp3 +0 -0
  2109. package/sounds/e2eeOn.opus +0 -0
  2110. package/sounds/e2eeOn_fr.mp3 +0 -0
  2111. package/sounds/e2eeOn_fr.opus +0 -0
  2112. package/sounds/e2eeOn_frCA.mp3 +0 -0
  2113. package/sounds/e2eeOn_frCA.opus +0 -0
  2114. package/sounds/incomingMessage.mp3 +0 -0
  2115. package/sounds/incomingMessage.opus +0 -0
  2116. package/sounds/incomingMessage.wav +0 -0
  2117. package/sounds/joined.mp3 +0 -0
  2118. package/sounds/joined.opus +0 -0
  2119. package/sounds/joined.wav +0 -0
  2120. package/sounds/knock.mp3 +0 -0
  2121. package/sounds/knock.opus +0 -0
  2122. package/sounds/left.mp3 +0 -0
  2123. package/sounds/left.opus +0 -0
  2124. package/sounds/left.wav +0 -0
  2125. package/sounds/liveStreamingOff.mp3 +0 -0
  2126. package/sounds/liveStreamingOff.opus +0 -0
  2127. package/sounds/liveStreamingOff_fr.mp3 +0 -0
  2128. package/sounds/liveStreamingOff_fr.opus +0 -0
  2129. package/sounds/liveStreamingOff_frCA.mp3 +0 -0
  2130. package/sounds/liveStreamingOff_frCA.opus +0 -0
  2131. package/sounds/liveStreamingOn.mp3 +0 -0
  2132. package/sounds/liveStreamingOn.opus +0 -0
  2133. package/sounds/liveStreamingOn_fr.mp3 +0 -0
  2134. package/sounds/liveStreamingOn_fr.opus +0 -0
  2135. package/sounds/liveStreamingOn_frCA.mp3 +0 -0
  2136. package/sounds/liveStreamingOn_frCA.opus +0 -0
  2137. package/sounds/noAudioSignal.mp3 +0 -0
  2138. package/sounds/noAudioSignal.opus +0 -0
  2139. package/sounds/noisyAudioInput.mp3 +0 -0
  2140. package/sounds/noisyAudioInput.opus +0 -0
  2141. package/sounds/outgoingRinging.mp3 +0 -0
  2142. package/sounds/outgoingRinging.opus +0 -0
  2143. package/sounds/outgoingRinging.wav +0 -0
  2144. package/sounds/outgoingStart.mp3 +0 -0
  2145. package/sounds/outgoingStart.opus +0 -0
  2146. package/sounds/outgoingStart.wav +0 -0
  2147. package/sounds/reactions-applause.mp3 +0 -0
  2148. package/sounds/reactions-applause.opus +0 -0
  2149. package/sounds/reactions-boo.mp3 +0 -0
  2150. package/sounds/reactions-boo.opus +0 -0
  2151. package/sounds/reactions-crickets.mp3 +0 -0
  2152. package/sounds/reactions-crickets.opus +0 -0
  2153. package/sounds/reactions-laughter.mp3 +0 -0
  2154. package/sounds/reactions-laughter.opus +0 -0
  2155. package/sounds/reactions-love.mp3 +0 -0
  2156. package/sounds/reactions-love.opus +0 -0
  2157. package/sounds/reactions-raised-hand.mp3 +0 -0
  2158. package/sounds/reactions-raised-hand.opus +0 -0
  2159. package/sounds/reactions-surprise.mp3 +0 -0
  2160. package/sounds/reactions-surprise.opus +0 -0
  2161. package/sounds/reactions-thumbs-up.mp3 +0 -0
  2162. package/sounds/reactions-thumbs-up.opus +0 -0
  2163. package/sounds/recordingOff.mp3 +0 -0
  2164. package/sounds/recordingOff.opus +0 -0
  2165. package/sounds/recordingOff_fr.mp3 +0 -0
  2166. package/sounds/recordingOff_fr.opus +0 -0
  2167. package/sounds/recordingOff_frCA.mp3 +0 -0
  2168. package/sounds/recordingOff_frCA.opus +0 -0
  2169. package/sounds/recordingOn.mp3 +0 -0
  2170. package/sounds/recordingOn.opus +0 -0
  2171. package/sounds/recordingOn_fr.mp3 +0 -0
  2172. package/sounds/recordingOn_fr.opus +0 -0
  2173. package/sounds/recordingOn_frCA.mp3 +0 -0
  2174. package/sounds/recordingOn_frCA.opus +0 -0
  2175. package/sounds/rejected.mp3 +0 -0
  2176. package/sounds/rejected.opus +0 -0
  2177. package/sounds/rejected.wav +0 -0
  2178. package/sounds/ring.mp3 +0 -0
  2179. package/sounds/ring.opus +0 -0
  2180. package/sounds/ring.wav +0 -0
  2181. package/sounds/talkWhileMuted.mp3 +0 -0
  2182. package/sounds/talkWhileMuted.opus +0 -0
  2183. package/update_dependencies.js +110 -0
  2184. package/update_sdk_dependencies.js +59 -0
@@ -0,0 +1,2351 @@
1
+ /* global APP */
2
+ import Logger from '@jitsi/logger';
3
+
4
+ import { createApiEvent } from '../../react/features/analytics/AnalyticsEvents';
5
+ import { sendAnalytics } from '../../react/features/analytics/functions';
6
+ import {
7
+ approveParticipantAudio,
8
+ approveParticipantVideo,
9
+ rejectParticipantAudio,
10
+ rejectParticipantVideo,
11
+ requestDisableAudioModeration,
12
+ requestDisableVideoModeration,
13
+ requestEnableAudioModeration,
14
+ requestEnableVideoModeration
15
+ } from '../../react/features/av-moderation/actions';
16
+ import { isEnabledFromState, isForceMuted } from '../../react/features/av-moderation/functions';
17
+ import { setAudioOnly } from '../../react/features/base/audio-only/actions';
18
+ import {
19
+ endConference,
20
+ sendTones,
21
+ setAssumedBandwidthBps,
22
+ setLocalSubject,
23
+ setPassword,
24
+ setSubject
25
+ } from '../../react/features/base/conference/actions';
26
+ import { getCurrentConference, isP2pActive } from '../../react/features/base/conference/functions';
27
+ import { overwriteConfig } from '../../react/features/base/config/actions';
28
+ import { getWhitelistedJSON } from '../../react/features/base/config/functions.any';
29
+ import { toggleDialog } from '../../react/features/base/dialog/actions';
30
+ import { isSupportedBrowser } from '../../react/features/base/environment/environment';
31
+ import { isMobileBrowser } from '../../react/features/base/environment/utils';
32
+ import { parseJWTFromURLParams } from '../../react/features/base/jwt/functions';
33
+ import JitsiMeetJS, { JitsiRecordingConstants } from '../../react/features/base/lib-jitsi-meet';
34
+ import { MEDIA_TYPE, VIDEO_TYPE } from '../../react/features/base/media/constants';
35
+ import { isVideoMutedByUser } from '../../react/features/base/media/functions';
36
+ import {
37
+ grantModerator,
38
+ kickParticipant,
39
+ overwriteParticipantsNames,
40
+ pinParticipant,
41
+ raiseHand
42
+ } from '../../react/features/base/participants/actions';
43
+ import { LOCAL_PARTICIPANT_DEFAULT_ID } from '../../react/features/base/participants/constants';
44
+ import {
45
+ getLocalParticipant,
46
+ getNormalizedDisplayName,
47
+ getParticipantById,
48
+ getScreenshareParticipantIds,
49
+ getVirtualScreenshareParticipantByOwnerId,
50
+ hasRaisedHand,
51
+ isLocalParticipantModerator,
52
+ isParticipantModerator
53
+ } from '../../react/features/base/participants/functions';
54
+ import { updateSettings } from '../../react/features/base/settings/actions';
55
+ import { getDisplayName } from '../../react/features/base/settings/functions.web';
56
+ import { setCameraFacingMode } from '../../react/features/base/tracks/actions.web';
57
+ import { CAMERA_FACING_MODE_MESSAGE } from '../../react/features/base/tracks/constants';
58
+ import {
59
+ getLocalVideoTrack,
60
+ isLocalTrackMuted
61
+ } from '../../react/features/base/tracks/functions';
62
+ import {
63
+ autoAssignToBreakoutRooms,
64
+ closeBreakoutRoom,
65
+ createBreakoutRoom,
66
+ moveToRoom,
67
+ removeBreakoutRoom,
68
+ sendParticipantToRoom
69
+ } from '../../react/features/breakout-rooms/actions';
70
+ import { getBreakoutRooms, getRoomsInfo } from '../../react/features/breakout-rooms/functions';
71
+ import {
72
+ sendMessage,
73
+ setPrivateMessageRecipient,
74
+ toggleChat
75
+ } from '../../react/features/chat/actions';
76
+ import { openChat } from '../../react/features/chat/actions.web';
77
+ import { showDesktopPicker } from '../../react/features/desktop-picker/actions';
78
+ import {
79
+ processExternalDeviceRequest
80
+ } from '../../react/features/device-selection/functions';
81
+ import { appendSuffix } from '../../react/features/display-name/functions';
82
+ import { isEnabled as isDropboxEnabled } from '../../react/features/dropbox/functions';
83
+ import { setMediaEncryptionKey, toggleE2EE } from '../../react/features/e2ee/actions';
84
+ import {
85
+ addStageParticipant,
86
+ resizeFilmStrip,
87
+ setFilmstripVisible,
88
+ setVolume,
89
+ togglePinStageParticipant
90
+ } from '../../react/features/filmstrip/actions.web';
91
+ import { getPinnedActiveParticipants, isStageFilmstripAvailable } from '../../react/features/filmstrip/functions.web';
92
+ import { setFollowMe, setFollowMeRecorder } from '../../react/features/follow-me/actions';
93
+ import { invite } from '../../react/features/invite/actions.any';
94
+ import {
95
+ selectParticipantInLargeVideo
96
+ } from '../../react/features/large-video/actions.any';
97
+ import {
98
+ captureLargeVideoScreenshot,
99
+ resizeLargeVideo
100
+ } from '../../react/features/large-video/actions.web';
101
+ import { answerKnockingParticipant, toggleLobbyMode } from '../../react/features/lobby/actions';
102
+ import { setNoiseSuppressionEnabled } from '../../react/features/noise-suppression/actions';
103
+ import { hideNotification, showNotification } from '../../react/features/notifications/actions';
104
+ import { NOTIFICATION_TIMEOUT_TYPE, NOTIFICATION_TYPE } from '../../react/features/notifications/constants';
105
+ import {
106
+ close as closeParticipantsPane,
107
+ open as openParticipantsPane
108
+ } from '../../react/features/participants-pane/actions';
109
+ import { getParticipantsPaneOpen } from '../../react/features/participants-pane/functions';
110
+ import { startLocalVideoRecording, stopLocalVideoRecording } from '../../react/features/recording/actions.any';
111
+ import { grantRecordingConsent, grantRecordingConsentAndUnmute } from '../../react/features/recording/actions.web';
112
+ import { RECORDING_METADATA_ID, RECORDING_TYPES } from '../../react/features/recording/constants';
113
+ import { getActiveSession, supportsLocalRecording } from '../../react/features/recording/functions';
114
+ import { startAudioScreenShareFlow, startScreenShareFlow } from '../../react/features/screen-share/actions';
115
+ import { isScreenAudioSupported } from '../../react/features/screen-share/functions';
116
+ import {
117
+ openCameraCaptureDialog,
118
+ toggleScreenshotCaptureSummary
119
+ } from '../../react/features/screenshot-capture/actions';
120
+ import { isScreenshotCaptureEnabled } from '../../react/features/screenshot-capture/functions';
121
+ import SettingsDialog from '../../react/features/settings/components/web/SettingsDialog';
122
+ import { SETTINGS_TABS } from '../../react/features/settings/constants';
123
+ import { playSharedVideo, stopSharedVideo } from '../../react/features/shared-video/actions';
124
+ import { extractYoutubeIdOrURL } from '../../react/features/shared-video/functions';
125
+ import { setRequestingSubtitles, toggleRequestingSubtitles } from '../../react/features/subtitles/actions';
126
+ import { isAudioMuteButtonDisabled } from '../../react/features/toolbox/functions';
127
+ import { setTileView, toggleTileView } from '../../react/features/video-layout/actions.any';
128
+ import { muteAllParticipants } from '../../react/features/video-menu/actions';
129
+ import { setVideoQuality } from '../../react/features/video-quality/actions';
130
+ import { toggleBackgroundEffect, toggleBlurredBackgroundEffect } from '../../react/features/virtual-background/actions';
131
+ import { VIRTUAL_BACKGROUND_TYPE } from '../../react/features/virtual-background/constants';
132
+ import { toggleWhiteboard } from '../../react/features/whiteboard/actions.web';
133
+ import { getJitsiMeetTransport } from '../transport';
134
+
135
+ import {
136
+ API_ID,
137
+ ENDPOINT_TEXT_MESSAGE_NAME
138
+ } from './constants';
139
+
140
+ const logger = Logger.getLogger('api:core');
141
+
142
+ /**
143
+ * List of the available commands.
144
+ */
145
+ let commands = {};
146
+
147
+ /**
148
+ * The transport instance used for communication with external apps.
149
+ *
150
+ * @type {Transport}
151
+ */
152
+ const transport = getJitsiMeetTransport();
153
+
154
+ /**
155
+ * The current audio availability.
156
+ *
157
+ * @type {boolean}
158
+ */
159
+ let audioAvailable = true;
160
+
161
+ /**
162
+ * The current video availability.
163
+ *
164
+ * @type {boolean}
165
+ */
166
+ let videoAvailable = true;
167
+
168
+ /**
169
+ * Initializes supported commands.
170
+ *
171
+ * @returns {void}
172
+ */
173
+ function initCommands() {
174
+ commands = {
175
+ 'add-breakout-room': name => {
176
+ if (!isLocalParticipantModerator(APP.store.getState())) {
177
+ logger.error('Missing moderator rights to add breakout rooms');
178
+
179
+ return;
180
+ }
181
+ APP.store.dispatch(createBreakoutRoom(name));
182
+ },
183
+ 'answer-knocking-participant': (id, approved) => {
184
+ APP.store.dispatch(answerKnockingParticipant(id, approved));
185
+ },
186
+ 'approve-video': participantId => {
187
+ if (!isLocalParticipantModerator(APP.store.getState())) {
188
+ return;
189
+ }
190
+
191
+ APP.store.dispatch(approveParticipantVideo(participantId));
192
+ },
193
+ 'ask-to-unmute': participantId => {
194
+ if (!isLocalParticipantModerator(APP.store.getState())) {
195
+ return;
196
+ }
197
+
198
+ APP.store.dispatch(approveParticipantAudio(participantId));
199
+ },
200
+ 'auto-assign-to-breakout-rooms': () => {
201
+ if (!isLocalParticipantModerator(APP.store.getState())) {
202
+ logger.error('Missing moderator rights to auto-assign participants to breakout rooms');
203
+
204
+ return;
205
+ }
206
+ APP.store.dispatch(autoAssignToBreakoutRooms());
207
+ },
208
+ 'grant-moderator': participantId => {
209
+ if (!isLocalParticipantModerator(APP.store.getState())) {
210
+ logger.error('Missing moderator rights to grant moderator right to another participant');
211
+
212
+ return;
213
+ }
214
+ APP.store.dispatch(grantModerator(participantId));
215
+ },
216
+ 'grant-recording-consent': unmute => {
217
+ unmute ? APP.store.dispatch(grantRecordingConsentAndUnmute())
218
+ : APP.store.dispatch(grantRecordingConsent());
219
+ },
220
+ 'display-name': displayName => {
221
+ sendAnalytics(createApiEvent('display.name.changed'));
222
+ APP.store.dispatch(updateSettings({ displayName: getNormalizedDisplayName(displayName) }));
223
+ },
224
+ 'local-subject': localSubject => {
225
+ sendAnalytics(createApiEvent('local.subject.changed'));
226
+ APP.store.dispatch(setLocalSubject(localSubject));
227
+ },
228
+ 'mute-everyone': mediaType => {
229
+ const muteMediaType = mediaType ? mediaType : MEDIA_TYPE.AUDIO;
230
+
231
+ sendAnalytics(createApiEvent('muted-everyone'));
232
+ const localParticipant = getLocalParticipant(APP.store.getState());
233
+ const exclude = [];
234
+
235
+ if (localParticipant && isParticipantModerator(localParticipant)) {
236
+ exclude.push(localParticipant.id);
237
+ }
238
+
239
+ APP.store.dispatch(muteAllParticipants(exclude, muteMediaType));
240
+ },
241
+ 'toggle-lobby': isLobbyEnabled => {
242
+ APP.store.dispatch(toggleLobbyMode(isLobbyEnabled));
243
+ },
244
+ 'password': password => {
245
+ const { conference, passwordRequired }
246
+ = APP.store.getState()['features/base/conference'];
247
+
248
+ if (passwordRequired) {
249
+ sendAnalytics(createApiEvent('submit.password'));
250
+
251
+ APP.store.dispatch(setPassword(
252
+ passwordRequired,
253
+ passwordRequired.join,
254
+ password
255
+ ));
256
+ } else {
257
+ sendAnalytics(createApiEvent('password.changed'));
258
+
259
+ APP.store.dispatch(setPassword(
260
+ conference,
261
+ conference.lock,
262
+ password
263
+ ));
264
+ }
265
+ },
266
+ 'pin-participant': (id, videoType) => {
267
+ const state = APP.store.getState();
268
+
269
+ // if id not provided, unpin everybody.
270
+ if (!id) {
271
+ if (isStageFilmstripAvailable(state)) {
272
+ const pinnedParticipants = getPinnedActiveParticipants(state);
273
+
274
+ pinnedParticipants?.forEach(p => {
275
+ APP.store.dispatch(togglePinStageParticipant(p.participantId));
276
+ });
277
+ } else {
278
+ APP.store.dispatch(pinParticipant());
279
+ }
280
+
281
+ return;
282
+ }
283
+
284
+ const participant = videoType === VIDEO_TYPE.DESKTOP
285
+ ? getVirtualScreenshareParticipantByOwnerId(state, id) : getParticipantById(state, id);
286
+
287
+ if (!participant) {
288
+ logger.warn('Trying to pin a non-existing participant with pin-participant command.');
289
+
290
+ return;
291
+ }
292
+
293
+ sendAnalytics(createApiEvent('participant.pinned'));
294
+
295
+ const participantId = participant.id;
296
+
297
+ if (isStageFilmstripAvailable(state)) {
298
+ APP.store.dispatch(addStageParticipant(participantId, true));
299
+ } else {
300
+ APP.store.dispatch(pinParticipant(participantId));
301
+ }
302
+ },
303
+ 'proxy-connection-event': event => {
304
+ APP.conference.onProxyConnectionEvent(event);
305
+ },
306
+ 'reject-participant': (participantId, mediaType) => {
307
+ if (!isLocalParticipantModerator(APP.store.getState())) {
308
+ return;
309
+ }
310
+
311
+ const reject = mediaType === MEDIA_TYPE.VIDEO ? rejectParticipantVideo : rejectParticipantAudio;
312
+
313
+ APP.store.dispatch(reject(participantId));
314
+ },
315
+ 'remove-breakout-room': breakoutRoomJid => {
316
+ if (!isLocalParticipantModerator(APP.store.getState())) {
317
+ logger.error('Missing moderator rights to remove breakout rooms');
318
+
319
+ return;
320
+ }
321
+ APP.store.dispatch(removeBreakoutRoom(breakoutRoomJid));
322
+ },
323
+ 'resize-large-video': (width, height) => {
324
+ sendAnalytics(createApiEvent('largevideo.resized'));
325
+ APP.store.dispatch(resizeLargeVideo(width, height));
326
+ },
327
+ 'send-tones': (options = {}) => {
328
+ const { duration, tones, pause } = options;
329
+
330
+ APP.store.dispatch(sendTones(tones, duration, pause));
331
+ },
332
+ 'set-assumed-bandwidth-bps': value => {
333
+ logger.debug('Set assumed bandwidth bps command received', value);
334
+
335
+ if (typeof value !== 'number' || isNaN(value)) {
336
+ logger.error('Assumed bandwidth bps must be a number.');
337
+
338
+ return;
339
+ }
340
+
341
+ APP.store.dispatch(setAssumedBandwidthBps(value));
342
+ },
343
+ 'set-blurred-background': blurType => {
344
+ const tracks = APP.store.getState()['features/base/tracks'];
345
+ const videoTrack = getLocalVideoTrack(tracks)?.jitsiTrack;
346
+ const muted = tracks ? isLocalTrackMuted(tracks, MEDIA_TYPE.VIDEO) : isVideoMutedByUser(APP.store);
347
+
348
+ APP.store.dispatch(toggleBlurredBackgroundEffect(videoTrack, blurType, muted));
349
+ },
350
+ 'set-follow-me': (value, recorderOnly) => {
351
+
352
+ if (value) {
353
+ sendAnalytics(createApiEvent('follow.me.set', {
354
+ recorderOnly
355
+ }));
356
+ } else {
357
+ sendAnalytics(createApiEvent('follow.me.unset', {
358
+ recorderOnly
359
+ }));
360
+ }
361
+
362
+ APP.store.dispatch(recorderOnly ? setFollowMeRecorder(value) : setFollowMe(value));
363
+ },
364
+ 'set-large-video-participant': (participantId, videoType) => {
365
+ const { getState, dispatch } = APP.store;
366
+
367
+ if (!participantId) {
368
+ sendAnalytics(createApiEvent('largevideo.participant.set'));
369
+ dispatch(selectParticipantInLargeVideo());
370
+
371
+ return;
372
+ }
373
+
374
+ const state = getState();
375
+ const participant = videoType === VIDEO_TYPE.DESKTOP
376
+ ? getVirtualScreenshareParticipantByOwnerId(state, participantId)
377
+ : getParticipantById(state, participantId);
378
+
379
+ if (!participant) {
380
+ logger.warn('Trying to select a non-existing participant with set-large-video-participant command.');
381
+
382
+ return;
383
+ }
384
+
385
+ dispatch(setTileView(false));
386
+ sendAnalytics(createApiEvent('largevideo.participant.set'));
387
+ dispatch(selectParticipantInLargeVideo(participant.id));
388
+ },
389
+ 'set-participant-volume': (participantId, volume) => {
390
+ APP.store.dispatch(setVolume(participantId, volume));
391
+ },
392
+ 'subject': subject => {
393
+ sendAnalytics(createApiEvent('subject.changed'));
394
+ APP.store.dispatch(setSubject(subject));
395
+ },
396
+ 'submit-feedback': feedback => {
397
+ sendAnalytics(createApiEvent('submit.feedback'));
398
+ APP.conference.submitFeedback(feedback.score, feedback.message);
399
+ },
400
+ 'toggle-audio': () => {
401
+ sendAnalytics(createApiEvent('toggle-audio'));
402
+ APP.conference.toggleAudioMuted(false /* no UI */);
403
+ },
404
+ 'toggle-video': () => {
405
+ sendAnalytics(createApiEvent('toggle-video'));
406
+ APP.conference.toggleVideoMuted(false /* no UI */, true /* ensure track */);
407
+ },
408
+ 'toggle-film-strip': () => {
409
+ sendAnalytics(createApiEvent('film.strip.toggled'));
410
+ const { visible } = APP.store.getState()['features/filmstrip'];
411
+
412
+ APP.store.dispatch(setFilmstripVisible(!visible));
413
+ },
414
+
415
+ /*
416
+ * @param {Object} options - Additional details of how to perform
417
+ * the action.
418
+ * @param {number} options.width - width value for film strip.
419
+ */
420
+ 'resize-film-strip': (options = {}) => {
421
+ sendAnalytics(createApiEvent('film.strip.resize'));
422
+ APP.store.dispatch(resizeFilmStrip(options.width));
423
+ },
424
+ 'toggle-camera': facingMode => {
425
+ APP.store.dispatch(setCameraFacingMode(facingMode));
426
+ },
427
+ 'toggle-camera-mirror': () => {
428
+ const state = APP.store.getState();
429
+ const { localFlipX: currentFlipX } = state['features/base/settings'];
430
+
431
+ APP.store.dispatch(updateSettings({ localFlipX: !currentFlipX }));
432
+ },
433
+ 'toggle-chat': () => {
434
+ sendAnalytics(createApiEvent('chat.toggled'));
435
+ APP.store.dispatch(toggleChat());
436
+ },
437
+ 'toggle-moderation': (enabled, mediaType) => {
438
+ const state = APP.store.getState();
439
+
440
+ if (!isLocalParticipantModerator(state)) {
441
+ return;
442
+ }
443
+
444
+ const enable = mediaType === MEDIA_TYPE.VIDEO
445
+ ? requestEnableVideoModeration : requestEnableAudioModeration;
446
+ const disable = mediaType === MEDIA_TYPE.VIDEO
447
+ ? requestDisableVideoModeration : requestDisableAudioModeration;
448
+
449
+ if (enabled) {
450
+ APP.store.dispatch(enable());
451
+ } else {
452
+ APP.store.dispatch(disable());
453
+ }
454
+ },
455
+ 'toggle-participants-pane': enabled => {
456
+ const toggleParticipantsPane = enabled
457
+ ? openParticipantsPane : closeParticipantsPane;
458
+
459
+ APP.store.dispatch(toggleParticipantsPane());
460
+ },
461
+ 'toggle-raise-hand': () => {
462
+ const localParticipant = getLocalParticipant(APP.store.getState());
463
+
464
+ if (!localParticipant) {
465
+ return;
466
+ }
467
+ const raisedHand = hasRaisedHand(localParticipant);
468
+
469
+ sendAnalytics(createApiEvent('raise-hand.toggled'));
470
+ APP.store.dispatch(raiseHand(!raisedHand));
471
+ },
472
+ 'toggle-share-audio': () => {
473
+ sendAnalytics(createApiEvent('audio.screen.sharing.toggled'));
474
+ if (isScreenAudioSupported()) {
475
+ APP.store.dispatch(startAudioScreenShareFlow());
476
+
477
+ return;
478
+ }
479
+
480
+ logger.error('Audio screen sharing is not supported by the current platform!');
481
+ },
482
+
483
+ /**
484
+ * Callback to invoke when the "toggle-share-screen" command is received.
485
+ *
486
+ * @param {Object} options - Additional details of how to perform
487
+ * the action. Note this parameter is undocumented and experimental.
488
+ * @param {boolean} options.enable - Whether trying to enable screen
489
+ * sharing or to turn it off.
490
+ * @returns {void}
491
+ */
492
+ 'toggle-share-screen': (options = {}) => {
493
+ sendAnalytics(createApiEvent('screen.sharing.toggled'));
494
+ toggleScreenSharing(options.enable);
495
+ },
496
+ 'set-noise-suppression-enabled': (options = {}) => {
497
+ APP.store.dispatch(setNoiseSuppressionEnabled(options.enabled));
498
+ },
499
+ 'toggle-subtitles': () => {
500
+ APP.store.dispatch(toggleRequestingSubtitles());
501
+ },
502
+ 'set-subtitles': (enabled, displaySubtitles, language) => {
503
+ APP.store.dispatch(setRequestingSubtitles(
504
+ enabled, displaySubtitles, language ? `translation-languages:${language}` : null));
505
+ },
506
+ 'toggle-tile-view': () => {
507
+ sendAnalytics(createApiEvent('tile-view.toggled'));
508
+
509
+ APP.store.dispatch(toggleTileView());
510
+ },
511
+ 'set-tile-view': enabled => {
512
+ APP.store.dispatch(setTileView(enabled));
513
+ },
514
+ 'video-hangup': (showFeedbackDialog = true) => {
515
+ sendAnalytics(createApiEvent('video.hangup'));
516
+ APP.conference.hangup(showFeedbackDialog);
517
+ },
518
+ 'email': email => {
519
+ sendAnalytics(createApiEvent('email.changed'));
520
+ APP.conference.changeLocalEmail(email);
521
+ },
522
+ 'avatar-url': avatarUrl => { // @deprecated
523
+ console.warn('Using command avatarUrl is deprecated. Use context.user.avatar in the jwt.');
524
+
525
+ sendAnalytics(createApiEvent('avatar.url.changed'));
526
+ APP.conference.changeLocalAvatarUrl(avatarUrl);
527
+ },
528
+ 'send-chat-message': (message, to, ignorePrivacy = false) => {
529
+ if (to) {
530
+ const participant = getParticipantById(APP.store.getState(), to);
531
+
532
+ if (participant) {
533
+ APP.store.dispatch(setPrivateMessageRecipient(participant));
534
+ } else {
535
+ logger.error(`Participant with id ${to} not found!`);
536
+
537
+ return;
538
+ }
539
+ } else {
540
+ APP.store.dispatch(setPrivateMessageRecipient());
541
+ }
542
+
543
+ APP.store.dispatch(sendMessage(message, ignorePrivacy));
544
+ },
545
+ 'send-endpoint-text-message': (to, text) => {
546
+ try {
547
+ APP.conference.sendEndpointMessage(to, {
548
+ name: ENDPOINT_TEXT_MESSAGE_NAME,
549
+ text
550
+ });
551
+ } catch (err) {
552
+ logger.error('Failed sending endpoint text message', err);
553
+ }
554
+ },
555
+ 'send-camera-facing-mode-message': (to, facingMode) => {
556
+ if (!to) {
557
+ logger.warn('Participant id not set');
558
+
559
+ return;
560
+ }
561
+
562
+ APP.conference.sendEndpointMessage(to, {
563
+ name: CAMERA_FACING_MODE_MESSAGE,
564
+ facingMode
565
+ });
566
+ },
567
+ 'overwrite-names': participantList => {
568
+ APP.store.dispatch(overwriteParticipantsNames(participantList));
569
+ },
570
+ 'toggle-e2ee': enabled => {
571
+ APP.store.dispatch(toggleE2EE(enabled));
572
+ },
573
+ 'set-media-encryption-key': keyInfo => {
574
+ APP.store.dispatch(setMediaEncryptionKey(JSON.parse(keyInfo)));
575
+ },
576
+ 'set-video-quality': frameHeight => {
577
+ sendAnalytics(createApiEvent('set.video.quality'));
578
+ APP.store.dispatch(setVideoQuality(frameHeight));
579
+ },
580
+ 'set-audio-only': enable => {
581
+ sendAnalytics(createApiEvent('set.audio.only'));
582
+ APP.store.dispatch(setAudioOnly(enable));
583
+ },
584
+ 'start-share-video': url => {
585
+ sendAnalytics(createApiEvent('share.video.start'));
586
+ const id = extractYoutubeIdOrURL(url);
587
+
588
+ if (id) {
589
+ APP.store.dispatch(playSharedVideo(id));
590
+ }
591
+ },
592
+ 'stop-share-video': () => {
593
+ sendAnalytics(createApiEvent('share.video.stop'));
594
+ APP.store.dispatch(stopSharedVideo());
595
+ },
596
+
597
+ /**
598
+ * Shows a custom in-meeting notification.
599
+ *
600
+ * @param { string } arg.title - Notification title.
601
+ * @param { string } arg.description - Notification description.
602
+ * @param { string } arg.uid - Optional unique identifier for the notification.
603
+ * @param { string } arg.type - Notification type, either `error`, `normal`, `success` or `warning`.
604
+ * Defaults to "normal" if not provided.
605
+ * @param { string } arg.timeout - Timeout type, either `short`, `medium`, `long` or `sticky`.
606
+ * Defaults to "short" if not provided.
607
+ * @param { Array<Object> } arg.customActions - An array of custom actions to be displayed in the notification.
608
+ * Each object should have a `label` and a `uuid` property. It should be used along a listener
609
+ * for the `customNotificationActionTriggered` event to handle the custom action.
610
+ * @returns {void}
611
+ */
612
+ 'show-notification': ({
613
+ customActions = [],
614
+ title,
615
+ description,
616
+ uid,
617
+ type = NOTIFICATION_TYPE.NORMAL,
618
+ timeout = NOTIFICATION_TIMEOUT_TYPE.SHORT
619
+ }) => {
620
+ const validTypes = Object.values(NOTIFICATION_TYPE);
621
+ const validTimeouts = Object.values(NOTIFICATION_TIMEOUT_TYPE);
622
+
623
+ if (!validTypes.includes(type)) {
624
+ logger.error(`Invalid notification type "${type}". Expecting one of ${validTypes}`);
625
+
626
+ return;
627
+ }
628
+
629
+ if (!validTimeouts.includes(timeout)) {
630
+ logger.error(`Invalid notification timeout "${timeout}". Expecting one of ${validTimeouts}`);
631
+
632
+ return;
633
+ }
634
+
635
+ const handlers = customActions.map(({ uuid }) => () => {
636
+ APP.API.notifyCustomNotificationActionTriggered(uuid);
637
+ });
638
+
639
+ const keys = customActions.map(({ label }) => label);
640
+
641
+ APP.store.dispatch(showNotification({
642
+ customActionHandler: handlers,
643
+ customActionNameKey: keys,
644
+ uid,
645
+ title,
646
+ description,
647
+ appearance: type
648
+ }, timeout));
649
+ },
650
+
651
+ /**
652
+ * Removes a notification given a unique identifier.
653
+ *
654
+ * @param { string } uid - Unique identifier for the notification to be removed.
655
+ * @returns {void}
656
+ */
657
+ 'hide-notification': uid => {
658
+ APP.store.dispatch(hideNotification(uid));
659
+ },
660
+
661
+ /**
662
+ * Starts a file recording or streaming session depending on the passed on params.
663
+ * For RTMP streams, `rtmpStreamKey` must be passed on. `rtmpBroadcastID` is optional.
664
+ * For youtube streams, `youtubeStreamKey` must be passed on. `youtubeBroadcastID` is optional.
665
+ * For dropbox recording, recording `mode` should be `file` and a dropbox oauth2 token must be provided.
666
+ * For file recording, recording `mode` should be `file` and optionally `shouldShare` could be passed on.
667
+ * For local recording, recording `mode` should be `local` and optionally `onlySelf` could be passed on.
668
+ * No other params should be passed.
669
+ *
670
+ * @param { string } arg.mode - Recording mode, either `local`, `file` or `stream`.
671
+ * @param { string } arg.dropboxToken - Dropbox oauth2 token.
672
+ * @param { boolean } arg.onlySelf - Whether to only record the local streams.
673
+ * @param { string } arg.rtmpStreamKey - The RTMP stream key.
674
+ * @param { string } arg.rtmpBroadcastID - The RTMP broadcast ID.
675
+ * @param { boolean } arg.shouldShare - Whether the recording should be shared with the participants or not.
676
+ * Only applies to certain jitsi meet deploys.
677
+ * @param { string } arg.youtubeStreamKey - The youtube stream key.
678
+ * @param { string } arg.youtubeBroadcastID - The youtube broadcast ID.
679
+ * @param { Object } arg.extraMetadata - Any extra metadata params for file recording.
680
+ * @param { boolean } arg.transcription - Whether a transcription should be started or not.
681
+ * @returns {void}
682
+ */
683
+ 'start-recording': ({
684
+ mode,
685
+ dropboxToken,
686
+ onlySelf,
687
+ shouldShare,
688
+ rtmpStreamKey,
689
+ rtmpBroadcastID,
690
+ youtubeStreamKey,
691
+ youtubeBroadcastID,
692
+ extraMetadata = {},
693
+ transcription
694
+ }) => {
695
+ const state = APP.store.getState();
696
+ const conference = getCurrentConference(state);
697
+
698
+ if (!conference) {
699
+ logger.error('Conference is not defined');
700
+
701
+ return;
702
+ }
703
+
704
+ if (dropboxToken && !isDropboxEnabled(state)) {
705
+ logger.error('Failed starting recording: dropbox is not enabled on this deployment');
706
+
707
+ return;
708
+ }
709
+
710
+ if (mode === JitsiRecordingConstants.mode.STREAM && !(youtubeStreamKey || rtmpStreamKey)) {
711
+ logger.error('Failed starting recording: missing youtube or RTMP stream key');
712
+
713
+ return;
714
+ }
715
+
716
+ if (mode === 'local') {
717
+ const { localRecording } = state['features/base/config'];
718
+
719
+ if (!localRecording?.disable && supportsLocalRecording()) {
720
+ APP.store.dispatch(startLocalVideoRecording(onlySelf));
721
+ } else {
722
+ logger.error('Failed starting recording: local recording is either disabled or not supported');
723
+ }
724
+
725
+ return;
726
+ }
727
+
728
+ let recordingConfig;
729
+
730
+ if (mode === JitsiRecordingConstants.mode.FILE) {
731
+ const { recordingService } = state['features/base/config'];
732
+
733
+ if (!recordingService.enabled && !dropboxToken) {
734
+ logger.error('Failed starting recording: the recording service is not enabled');
735
+
736
+ return;
737
+ }
738
+ if (dropboxToken) {
739
+ recordingConfig = {
740
+ mode: JitsiRecordingConstants.mode.FILE,
741
+ appData: JSON.stringify({
742
+ 'file_recording_metadata': {
743
+ ...extraMetadata,
744
+ 'upload_credentials': {
745
+ 'service_name': RECORDING_TYPES.DROPBOX,
746
+ 'token': dropboxToken
747
+ }
748
+ }
749
+ })
750
+ };
751
+ } else {
752
+ recordingConfig = {
753
+ mode: JitsiRecordingConstants.mode.FILE,
754
+ appData: JSON.stringify({
755
+ 'file_recording_metadata': {
756
+ ...extraMetadata,
757
+ 'share': shouldShare
758
+ }
759
+ })
760
+ };
761
+ }
762
+ } else if (mode === JitsiRecordingConstants.mode.STREAM) {
763
+ recordingConfig = {
764
+ broadcastId: youtubeBroadcastID || rtmpBroadcastID,
765
+ mode: JitsiRecordingConstants.mode.STREAM,
766
+ streamId: youtubeStreamKey || rtmpStreamKey
767
+ };
768
+ }
769
+
770
+ if (isScreenshotCaptureEnabled(state, true, false)) {
771
+ APP.store.dispatch(toggleScreenshotCaptureSummary(true));
772
+ }
773
+
774
+ // Start audio / video recording, if requested.
775
+ if (typeof recordingConfig !== 'undefined') {
776
+ conference.startRecording(recordingConfig);
777
+ }
778
+
779
+ if (transcription) {
780
+ APP.store.dispatch(setRequestingSubtitles(true, false, null, true));
781
+ conference.getMetadataHandler().setMetadata(RECORDING_METADATA_ID, {
782
+ isTranscribingEnabled: true
783
+ });
784
+ }
785
+ },
786
+
787
+ /**
788
+ * Stops a recording or streaming in progress.
789
+ *
790
+ * @param {string} mode - `local`, `file` or `stream`.
791
+ * @param {boolean} transcription - Whether the transcription needs to be stopped.
792
+ * @returns {void}
793
+ */
794
+ 'stop-recording': (mode, transcription) => {
795
+ const state = APP.store.getState();
796
+ const conference = getCurrentConference(state);
797
+
798
+ if (!conference) {
799
+ logger.error('Conference is not defined');
800
+
801
+ return;
802
+ }
803
+
804
+ if (transcription) {
805
+ APP.store.dispatch(setRequestingSubtitles(false, false, null));
806
+ conference.getMetadataHandler().setMetadata(RECORDING_METADATA_ID, {
807
+ isTranscribingEnabled: false
808
+ });
809
+ }
810
+
811
+ if (mode === 'local') {
812
+ APP.store.dispatch(stopLocalVideoRecording());
813
+
814
+ return;
815
+ }
816
+
817
+ if (![ JitsiRecordingConstants.mode.FILE, JitsiRecordingConstants.mode.STREAM ].includes(mode)) {
818
+ logger.error('Invalid recording mode provided!');
819
+
820
+ return;
821
+ }
822
+
823
+ const activeSession = getActiveSession(state, mode);
824
+
825
+ if (activeSession && activeSession.id) {
826
+ APP.store.dispatch(toggleScreenshotCaptureSummary(false));
827
+ conference.stopRecording(activeSession.id);
828
+ } else {
829
+ logger.error('No recording or streaming session found');
830
+ }
831
+ },
832
+ 'initiate-private-chat': participantId => {
833
+ const state = APP.store.getState();
834
+ const participant = getParticipantById(state, participantId);
835
+
836
+ if (participant) {
837
+ const { isOpen: isChatOpen } = state['features/chat'];
838
+
839
+ if (!isChatOpen) {
840
+ APP.store.dispatch(toggleChat());
841
+ }
842
+ APP.store.dispatch(openChat(participant));
843
+ } else {
844
+ logger.error('No participant found for the given participantId');
845
+ }
846
+ },
847
+ 'cancel-private-chat': () => {
848
+ APP.store.dispatch(setPrivateMessageRecipient());
849
+ },
850
+ 'close-breakout-room': roomId => {
851
+ if (!isLocalParticipantModerator(APP.store.getState())) {
852
+ logger.error('Missing moderator rights to close breakout rooms');
853
+
854
+ return;
855
+ }
856
+ APP.store.dispatch(closeBreakoutRoom(roomId));
857
+ },
858
+ 'join-breakout-room': roomId => {
859
+ APP.store.dispatch(moveToRoom(roomId));
860
+ },
861
+ 'send-participant-to-room': (participantId, roomId) => {
862
+ if (!isLocalParticipantModerator(APP.store.getState())) {
863
+ logger.error('Missing moderator rights to send participants to rooms');
864
+
865
+ return;
866
+ }
867
+
868
+ APP.store.dispatch(sendParticipantToRoom(participantId, roomId));
869
+ },
870
+ 'kick-participant': participantId => {
871
+ APP.store.dispatch(kickParticipant(participantId));
872
+ },
873
+ 'overwrite-config': config => {
874
+ const whitelistedConfig = getWhitelistedJSON('config', config);
875
+
876
+ logger.info(`Overwriting config with: ${JSON.stringify(whitelistedConfig)}`);
877
+
878
+ APP.store.dispatch(overwriteConfig(whitelistedConfig));
879
+ },
880
+ 'toggle-virtual-background': () => {
881
+ APP.store.dispatch(toggleDialog(SettingsDialog, {
882
+ defaultTab: SETTINGS_TABS.VIRTUAL_BACKGROUND }));
883
+ },
884
+ 'end-conference': () => {
885
+ APP.store.dispatch(endConference());
886
+ const state = APP.store.getState();
887
+ const conference = getCurrentConference(state);
888
+
889
+ if (!conference) {
890
+ logger.error('Conference not yet available');
891
+ } else if (conference.isEndConferenceSupported()) {
892
+ APP.store.dispatch(endConference());
893
+ } else {
894
+ logger.error(' End Conference not supported');
895
+ }
896
+ },
897
+ 'toggle-whiteboard': () => {
898
+ APP.store.dispatch(toggleWhiteboard());
899
+ },
900
+ 'set-virtual-background': (enabled, backgroundImage) => {
901
+ const tracks = APP.store.getState()['features/base/tracks'];
902
+ const jitsiTrack = getLocalVideoTrack(tracks)?.jitsiTrack;
903
+
904
+ APP.store.dispatch(toggleBackgroundEffect({
905
+ backgroundEffectEnabled: enabled,
906
+ backgroundType: VIRTUAL_BACKGROUND_TYPE.IMAGE,
907
+ virtualSource: backgroundImage
908
+ }, jitsiTrack));
909
+ }
910
+ };
911
+ transport.on('event', ({ data, name }) => {
912
+ if (name && commands[name]) {
913
+ logger.info(`API command received: ${name}`);
914
+ commands[name](...data);
915
+
916
+ return true;
917
+ }
918
+
919
+ return false;
920
+ });
921
+ transport.on('request', (request, callback) => {
922
+ const { dispatch, getState } = APP.store;
923
+
924
+ if (processExternalDeviceRequest(dispatch, getState, request, callback)) {
925
+ return true;
926
+ }
927
+
928
+ const { name } = request;
929
+
930
+ switch (name) {
931
+ case 'capture-largevideo-screenshot' :
932
+ APP.store.dispatch(captureLargeVideoScreenshot())
933
+ .then(dataURL => {
934
+ let error;
935
+
936
+ if (!dataURL) {
937
+ error = new Error('No large video found!');
938
+ }
939
+
940
+ callback({
941
+ error,
942
+ dataURL
943
+ });
944
+ });
945
+ break;
946
+ case 'capture-camera-picture' : {
947
+ const { cameraFacingMode, descriptionText, titleText } = request;
948
+
949
+ if (!isMobileBrowser()) {
950
+ logger.error('This feature is only supported on mobile');
951
+
952
+ return;
953
+ }
954
+
955
+ APP.store.dispatch(openCameraCaptureDialog(callback, { cameraFacingMode,
956
+ descriptionText,
957
+ titleText }));
958
+ break;
959
+ }
960
+ case 'deployment-info':
961
+ callback(APP.store.getState()['features/base/config'].deploymentInfo);
962
+ break;
963
+ case 'invite': {
964
+ const { invitees } = request;
965
+
966
+ if (!Array.isArray(invitees) || invitees.length === 0) {
967
+ callback({
968
+ error: new Error('Unexpected format of invitees')
969
+ });
970
+
971
+ break;
972
+ }
973
+
974
+ // The store should be already available because API.init is called
975
+ // on appWillMount action.
976
+ APP.store.dispatch(
977
+ invite(invitees, true))
978
+ .then(failedInvitees => {
979
+ let error;
980
+ let result;
981
+
982
+ if (failedInvitees.length) {
983
+ error = new Error('One or more invites failed!');
984
+ } else {
985
+ result = true;
986
+ }
987
+
988
+ callback({
989
+ error,
990
+ result
991
+ });
992
+ });
993
+ break;
994
+ }
995
+ case 'is-audio-muted':
996
+ callback(APP.conference.isLocalAudioMuted());
997
+ break;
998
+ case 'is-audio-disabled':
999
+ callback(isAudioMuteButtonDisabled(APP.store.getState()));
1000
+ break;
1001
+ case 'is-moderation-on': {
1002
+ const { mediaType } = request;
1003
+ const type = mediaType || MEDIA_TYPE.AUDIO;
1004
+
1005
+ callback(isEnabledFromState(type, APP.store.getState()));
1006
+ break;
1007
+ }
1008
+ case 'is-participant-force-muted': {
1009
+ const state = APP.store.getState();
1010
+ const { participantId, mediaType } = request;
1011
+ const type = mediaType || MEDIA_TYPE.AUDIO;
1012
+ const participant = getParticipantById(state, participantId);
1013
+
1014
+ callback(isForceMuted(participant, type, state));
1015
+ break;
1016
+ }
1017
+ case 'is-participants-pane-open': {
1018
+ callback(getParticipantsPaneOpen(APP.store.getState()));
1019
+ break;
1020
+ }
1021
+ case 'is-video-muted':
1022
+ callback(APP.conference.isLocalVideoMuted());
1023
+ break;
1024
+ case 'is-audio-available':
1025
+ callback(audioAvailable);
1026
+ break;
1027
+ case 'is-video-available':
1028
+ callback(videoAvailable);
1029
+ break;
1030
+ case 'is-sharing-screen':
1031
+ callback(Boolean(APP.conference.isSharingScreen));
1032
+ break;
1033
+ case 'is-start-silent':
1034
+ callback(Boolean(APP.store.getState()['features/base/config'].startSilent));
1035
+ break;
1036
+ case 'get-content-sharing-participants': {
1037
+ const sharingParticipantIds = getScreenshareParticipantIds(APP.store.getState());
1038
+
1039
+ callback({
1040
+ sharingParticipantIds
1041
+ });
1042
+ break;
1043
+ }
1044
+ case 'get-livestream-url': {
1045
+ const state = APP.store.getState();
1046
+ const conference = getCurrentConference(state);
1047
+ let livestreamUrl;
1048
+
1049
+ if (conference) {
1050
+ const activeSession = getActiveSession(state, JitsiRecordingConstants.mode.STREAM);
1051
+
1052
+ livestreamUrl = activeSession?.liveStreamViewURL;
1053
+ } else {
1054
+ logger.error('Conference is not defined');
1055
+ }
1056
+ callback({
1057
+ livestreamUrl
1058
+ });
1059
+ break;
1060
+ }
1061
+ case 'get-custom-avatar-backgrounds' : {
1062
+ callback({
1063
+ avatarBackgrounds: APP.store.getState()['features/dynamic-branding'].avatarBackgrounds
1064
+ });
1065
+ break;
1066
+ }
1067
+ case 'list-breakout-rooms': {
1068
+ callback(getBreakoutRooms(APP.store.getState()));
1069
+ break;
1070
+ }
1071
+ case 'rooms-info': {
1072
+ callback(getRoomsInfo(APP.store.getState()));
1073
+ break;
1074
+ }
1075
+ case 'get-shared-document-url': {
1076
+ const { etherpad } = APP.store.getState()['features/etherpad'];
1077
+
1078
+ callback(etherpad?.documentUrl || '');
1079
+ break;
1080
+ }
1081
+ case 'get-p2p-status': {
1082
+ callback(isP2pActive(APP.store.getState()));
1083
+ break;
1084
+ }
1085
+ case 'session-id': {
1086
+ const { conference } = APP.store.getState()['features/base/conference'];
1087
+
1088
+ callback(conference?.getMeetingUniqueId() || '');
1089
+ break;
1090
+ }
1091
+ case '_new_electron_screensharing_supported': {
1092
+ callback(true);
1093
+
1094
+ break;
1095
+ }
1096
+ case 'open-desktop-picker': {
1097
+ const { desktopSharingSources } = APP.store.getState()['features/base/config'];
1098
+ const options = {
1099
+ desktopSharingSources: desktopSharingSources ?? [ 'screen', 'window' ]
1100
+ };
1101
+ const onSourceChoose = (_streamId, _type, screenShareAudio, source) => {
1102
+ callback({
1103
+ screenShareAudio,
1104
+ source
1105
+ });
1106
+ };
1107
+
1108
+ dispatch(showDesktopPicker(options, onSourceChoose));
1109
+
1110
+ break;
1111
+ }
1112
+ default:
1113
+ callback({ error: new Error('UnknownRequestError') });
1114
+
1115
+ return false;
1116
+ }
1117
+
1118
+ return true;
1119
+ });
1120
+ }
1121
+
1122
+ /**
1123
+ * Check whether the API should be enabled or not.
1124
+ *
1125
+ * @returns {boolean}
1126
+ */
1127
+ function shouldBeEnabled() {
1128
+ return (
1129
+ typeof API_ID === 'number'
1130
+
1131
+ // XXX Enable the API when a JSON Web Token (JWT) is specified in
1132
+ // the location/URL because then it is very likely that the Jitsi
1133
+ // Meet (Web) app is being used by an external/wrapping (Web) app
1134
+ // and, consequently, the latter will need to communicate with the
1135
+ // former. (The described logic is merely a heuristic though.)
1136
+ || parseJWTFromURLParams());
1137
+ }
1138
+
1139
+ /**
1140
+ * Executes on toggle-share-screen command.
1141
+ *
1142
+ * @param {boolean} [enable] - Whether this toggle is to explicitly enable or
1143
+ * disable screensharing. If not defined, the application will automatically
1144
+ * attempt to toggle between enabled and disabled. This boolean is useful for
1145
+ * explicitly setting desired screensharing state.
1146
+ * @returns {void}
1147
+ */
1148
+ function toggleScreenSharing(enable) {
1149
+ if (JitsiMeetJS.isDesktopSharingEnabled()) {
1150
+ APP.store.dispatch(startScreenShareFlow(enable));
1151
+ }
1152
+ }
1153
+
1154
+ /**
1155
+ * Removes sensitive data from a mouse event.
1156
+ *
1157
+ * @param {MouseEvent} event - The mouse event to sanitize.
1158
+ * @returns {Object}
1159
+ */
1160
+ function sanitizeMouseEvent(event) {
1161
+ const {
1162
+ clientX,
1163
+ clientY,
1164
+ movementX,
1165
+ movementY,
1166
+ offsetX,
1167
+ offsetY,
1168
+ pageX,
1169
+ pageY,
1170
+ x,
1171
+ y,
1172
+ screenX,
1173
+ screenY
1174
+ } = event;
1175
+
1176
+ return {
1177
+ clientX,
1178
+ clientY,
1179
+ movementX,
1180
+ movementY,
1181
+ offsetX,
1182
+ offsetY,
1183
+ pageX,
1184
+ pageY,
1185
+ x,
1186
+ y,
1187
+ screenX,
1188
+ screenY
1189
+ };
1190
+ }
1191
+
1192
+ /**
1193
+ * Implements API class that communicates with external API class and provides
1194
+ * interface to access Jitsi Meet features by external applications that embed
1195
+ * Jitsi Meet.
1196
+ */
1197
+ class API {
1198
+ _enabled;
1199
+
1200
+ /**
1201
+ * Initializes the API. Setups message event listeners that will receive
1202
+ * information from external applications that embed Jitsi Meet. It also
1203
+ * sends a message to the external application that API is initialized.
1204
+ *
1205
+ * @param {Object} options - Optional parameters.
1206
+ * @returns {void}
1207
+ */
1208
+ init() {
1209
+ if (!shouldBeEnabled()) {
1210
+ return;
1211
+ }
1212
+
1213
+ /**
1214
+ * Current status (enabled/disabled) of API.
1215
+ *
1216
+ * @private
1217
+ * @type {boolean}
1218
+ */
1219
+ this._enabled = true;
1220
+
1221
+ initCommands();
1222
+
1223
+ this.notifyBrowserSupport(isSupportedBrowser());
1224
+
1225
+ // Let the embedder know we are ready.
1226
+ this._sendEvent({ name: 'ready' });
1227
+ }
1228
+
1229
+ /**
1230
+ * Notify external application (if API is enabled) that the large video
1231
+ * visibility changed.
1232
+ *
1233
+ * @param {boolean} isHidden - True if the large video is hidden and false
1234
+ * otherwise.
1235
+ * @returns {void}
1236
+ */
1237
+ notifyLargeVideoVisibilityChanged(isHidden) {
1238
+ this._sendEvent({
1239
+ name: 'large-video-visibility-changed',
1240
+ isVisible: !isHidden
1241
+ });
1242
+ }
1243
+
1244
+ /**
1245
+ * Notifies the external application (spot) that the local jitsi-participant
1246
+ * has a status update.
1247
+ *
1248
+ * @param {Object} event - The message to pass onto spot.
1249
+ * @returns {void}
1250
+ */
1251
+ sendProxyConnectionEvent(event) {
1252
+ this._sendEvent({
1253
+ name: 'proxy-connection-event',
1254
+ ...event
1255
+ });
1256
+ }
1257
+
1258
+ /**
1259
+ * Sends event to the external application.
1260
+ *
1261
+ * @param {Object} event - The event to be sent.
1262
+ * @returns {void}
1263
+ */
1264
+ _sendEvent(event = {}) {
1265
+ if (this._enabled) {
1266
+ try {
1267
+ transport.sendEvent(event);
1268
+ } catch (error) {
1269
+ logger.error('Failed to send and IFrame API event', error);
1270
+ }
1271
+ }
1272
+ }
1273
+
1274
+ /**
1275
+ * Notify external application (if API is enabled) that the chat state has been updated.
1276
+ *
1277
+ * @param {number} unreadCount - The unread messages counter.
1278
+ * @param {boolean} isOpen - True if the chat panel is open.
1279
+ * @returns {void}
1280
+ */
1281
+ notifyChatUpdated(unreadCount, isOpen) {
1282
+ this._sendEvent({
1283
+ name: 'chat-updated',
1284
+ unreadCount,
1285
+ isOpen
1286
+ });
1287
+ }
1288
+
1289
+ /**
1290
+ * Notify external application (if API is enabled) that message was sent.
1291
+ *
1292
+ * @param {string} message - Message body.
1293
+ * @param {boolean} privateMessage - True if the message was a private message.
1294
+ * @returns {void}
1295
+ */
1296
+ notifySendingChatMessage(message, privateMessage) {
1297
+ this._sendEvent({
1298
+ name: 'outgoing-message',
1299
+ message,
1300
+ privateMessage
1301
+ });
1302
+ }
1303
+
1304
+ /**
1305
+ * Notify external application (if API is enabled) that the mouse has entered inside the iframe.
1306
+ *
1307
+ * @param {MouseEvent} event - The mousemove event.
1308
+ * @returns {void}
1309
+ */
1310
+ notifyMouseEnter(event) {
1311
+ this._sendEvent({
1312
+ name: 'mouse-enter',
1313
+ event: sanitizeMouseEvent(event)
1314
+ });
1315
+ }
1316
+
1317
+ /**
1318
+ * Notify external application (if API is enabled) that the mouse has entered inside the iframe.
1319
+ *
1320
+ * @param {MouseEvent} event - The mousemove event.
1321
+ * @returns {void}
1322
+ */
1323
+ notifyMouseLeave(event) {
1324
+ this._sendEvent({
1325
+ name: 'mouse-leave',
1326
+ event: sanitizeMouseEvent(event)
1327
+ });
1328
+ }
1329
+
1330
+ /**
1331
+ * Notify external application (if API is enabled) that the mouse has moved inside the iframe.
1332
+ *
1333
+ * @param {MouseEvent} event - The mousemove event.
1334
+ * @returns {void}
1335
+ */
1336
+ notifyMouseMove(event) {
1337
+ this._sendEvent({
1338
+ name: 'mouse-move',
1339
+ event: sanitizeMouseEvent(event)
1340
+ });
1341
+ }
1342
+
1343
+ /**
1344
+ * Notify the external application that the moderation status has changed.
1345
+ *
1346
+ * @param {string} mediaType - Media type for which the moderation changed.
1347
+ * @param {boolean} enabled - Whether or not the new moderation status is enabled.
1348
+ * @returns {void}
1349
+ */
1350
+ notifyModerationChanged(mediaType, enabled) {
1351
+ this._sendEvent({
1352
+ name: 'moderation-status-changed',
1353
+ mediaType,
1354
+ enabled
1355
+ });
1356
+ }
1357
+
1358
+ /**
1359
+ * Notify the external application that a participant was approved on moderation.
1360
+ *
1361
+ * @param {string} participantId - The ID of the participant that got approved.
1362
+ * @param {string} mediaType - Media type for which the participant was approved.
1363
+ * @returns {void}
1364
+ */
1365
+ notifyParticipantApproved(participantId, mediaType) {
1366
+ this._sendEvent({
1367
+ name: 'moderation-participant-approved',
1368
+ id: participantId,
1369
+ mediaType
1370
+ });
1371
+ }
1372
+
1373
+ /**
1374
+ * Notify the external application that a participant was rejected on moderation.
1375
+ *
1376
+ * @param {string} participantId - The ID of the participant that got rejected.
1377
+ * @param {string} mediaType - Media type for which the participant was rejected.
1378
+ * @returns {void}
1379
+ */
1380
+ notifyParticipantRejected(participantId, mediaType) {
1381
+ this._sendEvent({
1382
+ name: 'moderation-participant-rejected',
1383
+ id: participantId,
1384
+ mediaType
1385
+ });
1386
+ }
1387
+
1388
+ /**
1389
+ * Notify the external app that a notification has been triggered.
1390
+ *
1391
+ * @param {string} title - The notification title.
1392
+ * @param {string} description - The notification description.
1393
+ *
1394
+ * @returns {void}
1395
+ */
1396
+ notifyNotificationTriggered(title, description) {
1397
+ this._sendEvent({
1398
+ description,
1399
+ name: 'notification-triggered',
1400
+ title
1401
+ });
1402
+ }
1403
+
1404
+ /**
1405
+ * Notify request desktop sources.
1406
+ *
1407
+ * @param {Object} options - Object with the options for desktop sources.
1408
+ * @returns {void}
1409
+ */
1410
+ requestDesktopSources(options) {
1411
+ return transport.sendRequest({
1412
+ name: '_request-desktop-sources',
1413
+ options
1414
+ });
1415
+ }
1416
+
1417
+ /**
1418
+ * Notify external application that the video quality setting has changed.
1419
+ *
1420
+ * @param {number} videoQuality - The video quality. The number represents the maximum height of the video streams.
1421
+ * @returns {void}
1422
+ */
1423
+ notifyVideoQualityChanged(videoQuality) {
1424
+ this._sendEvent({
1425
+ name: 'video-quality-changed',
1426
+ videoQuality
1427
+ });
1428
+ }
1429
+
1430
+ /**
1431
+ * Notify external application (if API is enabled) that message was
1432
+ * received.
1433
+ *
1434
+ * @param {Object} options - Object with the message properties.
1435
+ * @returns {void}
1436
+ */
1437
+ notifyReceivedChatMessage(
1438
+ { body, from, nick, privateMessage, ts } = {}) {
1439
+ if (APP.conference.isLocalId(from)) {
1440
+ return;
1441
+ }
1442
+
1443
+ this._sendEvent({
1444
+ name: 'incoming-message',
1445
+ from,
1446
+ message: body,
1447
+ nick,
1448
+ privateMessage,
1449
+ stamp: ts
1450
+ });
1451
+ }
1452
+
1453
+ /**
1454
+ * Notify external application (if API is enabled) that user joined the
1455
+ * conference.
1456
+ *
1457
+ * @param {string} id - User id.
1458
+ * @param {Object} props - The display name of the user.
1459
+ * @returns {void}
1460
+ */
1461
+ notifyUserJoined(id, props) {
1462
+ this._sendEvent({
1463
+ name: 'participant-joined',
1464
+ id,
1465
+ ...props
1466
+ });
1467
+ }
1468
+
1469
+ /**
1470
+ * Notify external application (if API is enabled) that user left the
1471
+ * conference.
1472
+ *
1473
+ * @param {string} id - User id.
1474
+ * @returns {void}
1475
+ */
1476
+ notifyUserLeft(id) {
1477
+ this._sendEvent({
1478
+ name: 'participant-left',
1479
+ id
1480
+ });
1481
+ }
1482
+
1483
+ /**
1484
+ * Notify external application (if API is enabled) that the user role
1485
+ * has changed.
1486
+ *
1487
+ * @param {string} id - User id.
1488
+ * @param {string} role - The new user role.
1489
+ * @returns {void}
1490
+ */
1491
+ notifyUserRoleChanged(id, role) {
1492
+ this._sendEvent({
1493
+ name: 'participant-role-changed',
1494
+ id,
1495
+ role
1496
+ });
1497
+ }
1498
+
1499
+ /**
1500
+ * Notify external application (if API is enabled) that user changed their
1501
+ * avatar.
1502
+ *
1503
+ * @param {string} id - User id.
1504
+ * @param {string} avatarURL - The new avatar URL of the participant.
1505
+ * @returns {void}
1506
+ */
1507
+ notifyAvatarChanged(id, avatarURL) {
1508
+ this._sendEvent({
1509
+ name: 'avatar-changed',
1510
+ avatarURL,
1511
+ id
1512
+ });
1513
+ }
1514
+
1515
+ /**
1516
+ * Notify external application (if API is enabled) that user received
1517
+ * a text message through datachannels.
1518
+ *
1519
+ * @param {Object} data - The event data.
1520
+ * @returns {void}
1521
+ */
1522
+ notifyEndpointTextMessageReceived(data) {
1523
+ this._sendEvent({
1524
+ name: 'endpoint-text-message-received',
1525
+ data
1526
+ });
1527
+ }
1528
+
1529
+ /**
1530
+ * Notify external application (if API is enabled) that some face landmark data is available.
1531
+ *
1532
+ * @param {Object | undefined} faceBox - Detected face(s) bounding box (left, right, width).
1533
+ * @param {string} faceExpression - Detected face expression.
1534
+ * @returns {void}
1535
+ */
1536
+ notifyFaceLandmarkDetected(faceBox, faceExpression) {
1537
+ this._sendEvent({
1538
+ name: 'face-landmark-detected',
1539
+ faceBox,
1540
+ faceExpression
1541
+ });
1542
+ }
1543
+
1544
+ /**
1545
+ * Notify external application (if API is enabled) that a custom notification action has been triggered.
1546
+ *
1547
+ * @param {string} actionUuid - The UUID of the action that has been triggered.
1548
+ * @returns {void}
1549
+ */
1550
+ notifyCustomNotificationActionTriggered(actionUuid) {
1551
+ this._sendEvent({
1552
+ name: 'custom-notification-action-triggered',
1553
+ data: {
1554
+ id: actionUuid
1555
+ }
1556
+ });
1557
+ }
1558
+
1559
+ /**
1560
+ * Notify external application (if API is enabled) that the list of sharing participants changed.
1561
+ *
1562
+ * @param {Object} data - The event data.
1563
+ * @returns {void}
1564
+ */
1565
+ notifySharingParticipantsChanged(data) {
1566
+ this._sendEvent({
1567
+ name: 'content-sharing-participants-changed',
1568
+ data
1569
+ });
1570
+ }
1571
+
1572
+ /**
1573
+ * Notify external application (if API is enabled) that the device list has
1574
+ * changed.
1575
+ *
1576
+ * @param {Object} devices - The new device list.
1577
+ * @returns {void}
1578
+ */
1579
+ notifyDeviceListChanged(devices) {
1580
+ this._sendEvent({
1581
+ name: 'device-list-changed',
1582
+ devices
1583
+ });
1584
+ }
1585
+
1586
+ /**
1587
+ * Notify external application (if API is enabled) that user changed their
1588
+ * nickname.
1589
+ *
1590
+ * @param {string} id - User id.
1591
+ * @param {string} displayname - User nickname.
1592
+ * @param {string} formattedDisplayName - The display name shown in Jitsi
1593
+ * meet's UI for the user.
1594
+ * @returns {void}
1595
+ */
1596
+ notifyDisplayNameChanged(
1597
+ id,
1598
+ { displayName, formattedDisplayName }) {
1599
+ this._sendEvent({
1600
+ name: 'display-name-change',
1601
+ displayname: displayName,
1602
+ formattedDisplayName,
1603
+ id
1604
+ });
1605
+ }
1606
+
1607
+ /**
1608
+ * Notify external application (if API is enabled) that user changed their
1609
+ * email.
1610
+ *
1611
+ * @param {string} id - User id.
1612
+ * @param {string} email - The new email of the participant.
1613
+ * @returns {void}
1614
+ */
1615
+ notifyEmailChanged(
1616
+ id,
1617
+ { email }) {
1618
+ this._sendEvent({
1619
+ name: 'email-change',
1620
+ email,
1621
+ id
1622
+ });
1623
+ }
1624
+
1625
+ /**
1626
+ * Notify external application (if API is enabled) that the an error has been logged.
1627
+ *
1628
+ * @param {string} logLevel - The message log level.
1629
+ * @param {Array<string>} args - Array of strings composing the log message.
1630
+ * @returns {void}
1631
+ */
1632
+ notifyLog(logLevel, args = []) {
1633
+ if (!Array.isArray(args)) {
1634
+ logger.error('notifyLog received wrong argument types!');
1635
+
1636
+ return;
1637
+ }
1638
+
1639
+ // Trying to convert arguments to strings. Otherwise in order to send the event the arguments will be formatted
1640
+ // with JSON.stringify which can throw an error because of circular objects and we will lose the whole log.
1641
+ const formattedArguments = [];
1642
+
1643
+ args.forEach(arg => {
1644
+ let formattedArgument = '';
1645
+
1646
+ if (arg instanceof Error) {
1647
+ formattedArgument += `${arg.toString()}: ${arg.stack}`;
1648
+ } else if (typeof arg === 'object') {
1649
+ // NOTE: The non-enumerable properties of the objects wouldn't be included in the string after
1650
+ // JSON.stringify. For example Map instance will be translated to '{}'. So I think we have to eventually
1651
+ // do something better for parsing the arguments. But since this option for stringify is part of the
1652
+ // public interface and I think it could be useful in some cases I will it for now.
1653
+ try {
1654
+ formattedArgument += JSON.stringify(arg);
1655
+ } catch (error) {
1656
+ formattedArgument += arg;
1657
+ }
1658
+ } else {
1659
+ formattedArgument += arg;
1660
+ }
1661
+
1662
+ formattedArguments.push(formattedArgument);
1663
+ });
1664
+
1665
+ this._sendEvent({
1666
+ name: 'log',
1667
+ logLevel,
1668
+ args: formattedArguments
1669
+ });
1670
+ }
1671
+
1672
+ /**
1673
+ * Notify external application (if API is enabled) that the conference has
1674
+ * been joined.
1675
+ *
1676
+ * @param {string} roomName - The room name.
1677
+ * @param {string} id - The id of the local user.
1678
+ * @param {Object} props - The display name, the avatar URL of the local
1679
+ * user and the type of the room.
1680
+ * @returns {void}
1681
+ */
1682
+ notifyConferenceJoined(roomName, id, props) {
1683
+ this._sendEvent({
1684
+ name: 'video-conference-joined',
1685
+ roomName,
1686
+ id,
1687
+ ...props
1688
+ });
1689
+ }
1690
+
1691
+ /**
1692
+ * Notify external application (if API is enabled) that local user has left the conference.
1693
+ *
1694
+ * @param {string} roomName - User id.
1695
+ * @returns {void}
1696
+ */
1697
+ notifyConferenceLeft(roomName) {
1698
+ this._sendEvent({
1699
+ name: 'video-conference-left',
1700
+ roomName
1701
+ });
1702
+ }
1703
+
1704
+ /**
1705
+ * Notify external application that the data channel has been closed.
1706
+ *
1707
+ * @param {number} code - The close code.
1708
+ * @param {string} reason - The close reason.
1709
+ *
1710
+ * @returns {void}
1711
+ */
1712
+ notifyDataChannelClosed(code, reason) {
1713
+ this._sendEvent({
1714
+ name: 'data-channel-closed',
1715
+ code,
1716
+ reason
1717
+ });
1718
+ }
1719
+
1720
+ /**
1721
+ * Notify external application that the data channel has been opened.
1722
+ *
1723
+ * @returns {void}
1724
+ */
1725
+ notifyDataChannelOpened() {
1726
+ this._sendEvent({ name: 'data-channel-opened' });
1727
+ }
1728
+
1729
+ /**
1730
+ * Notify external application (if API is enabled) that we are ready to be
1731
+ * closed.
1732
+ *
1733
+ * @returns {void}
1734
+ */
1735
+ notifyReadyToClose() {
1736
+ this._sendEvent({ name: 'video-ready-to-close' });
1737
+ }
1738
+
1739
+ /**
1740
+ * Notify external application (if API is enabled) that a suspend event in host computer.
1741
+ *
1742
+ * @returns {void}
1743
+ */
1744
+ notifySuspendDetected() {
1745
+ this._sendEvent({ name: 'suspend-detected' });
1746
+ }
1747
+
1748
+ /**
1749
+ * Notify external application (if API is enabled) for audio muted status
1750
+ * changed.
1751
+ *
1752
+ * @param {boolean} muted - The new muted status.
1753
+ * @returns {void}
1754
+ */
1755
+ notifyAudioMutedStatusChanged(muted) {
1756
+ this._sendEvent({
1757
+ name: 'audio-mute-status-changed',
1758
+ muted
1759
+ });
1760
+ }
1761
+
1762
+ /**
1763
+ * Notify external application (if API is enabled) for video muted status
1764
+ * changed.
1765
+ *
1766
+ * @param {boolean} muted - The new muted status.
1767
+ * @returns {void}
1768
+ */
1769
+ notifyVideoMutedStatusChanged(muted) {
1770
+ this._sendEvent({
1771
+ name: 'video-mute-status-changed',
1772
+ muted
1773
+ });
1774
+ }
1775
+
1776
+ /**
1777
+ * Notify external application (if API is enabled) for audio availability
1778
+ * changed.
1779
+ *
1780
+ * @param {boolean} available - True if available and false otherwise.
1781
+ * @returns {void}
1782
+ */
1783
+ notifyAudioAvailabilityChanged(available) {
1784
+ audioAvailable = available;
1785
+ this._sendEvent({
1786
+ name: 'audio-availability-changed',
1787
+ available
1788
+ });
1789
+ }
1790
+
1791
+ /**
1792
+ * Notify external application (if API is enabled) for video available
1793
+ * status changed.
1794
+ *
1795
+ * @param {boolean} available - True if available and false otherwise.
1796
+ * @returns {void}
1797
+ */
1798
+ notifyVideoAvailabilityChanged(available) {
1799
+ videoAvailable = available;
1800
+ this._sendEvent({
1801
+ name: 'video-availability-changed',
1802
+ available
1803
+ });
1804
+ }
1805
+
1806
+ /**
1807
+ * Notify external application (if API is enabled) that the on stage
1808
+ * participant has changed.
1809
+ *
1810
+ * @param {string} id - User id of the new on stage participant.
1811
+ * @returns {void}
1812
+ */
1813
+ notifyOnStageParticipantChanged(id) {
1814
+ this._sendEvent({
1815
+ name: 'on-stage-participant-changed',
1816
+ id
1817
+ });
1818
+ }
1819
+
1820
+ /**
1821
+ * Notify external application (if API is enabled) that the prejoin video
1822
+ * visibility had changed.
1823
+ *
1824
+ * @param {boolean} isVisible - Whether the prejoin video is visible.
1825
+ * @returns {void}
1826
+ */
1827
+ notifyPrejoinVideoVisibilityChanged(isVisible) {
1828
+ this._sendEvent({
1829
+ name: 'on-prejoin-video-changed',
1830
+ isVisible
1831
+ });
1832
+ }
1833
+
1834
+ /**
1835
+ * Notify external application (if API is enabled) that the prejoin
1836
+ * screen was loaded.
1837
+ *
1838
+ * @returns {void}
1839
+ */
1840
+ notifyPrejoinLoaded() {
1841
+ const state = APP.store.getState();
1842
+ const { defaultLocalDisplayName } = state['features/base/config'];
1843
+ const displayName = getDisplayName(state);
1844
+
1845
+ this._sendEvent({
1846
+ name: 'prejoin-screen-loaded',
1847
+ id: LOCAL_PARTICIPANT_DEFAULT_ID,
1848
+ displayName,
1849
+ formattedDisplayName: appendSuffix(displayName, defaultLocalDisplayName)
1850
+ });
1851
+ }
1852
+
1853
+ /**
1854
+ * Notify external application of an unexpected camera-related error having
1855
+ * occurred.
1856
+ *
1857
+ * @param {string} type - The type of the camera error.
1858
+ * @param {string} message - Additional information about the error.
1859
+ * @returns {void}
1860
+ */
1861
+ notifyOnCameraError(type, message) {
1862
+ this._sendEvent({
1863
+ name: 'camera-error',
1864
+ type,
1865
+ message
1866
+ });
1867
+ }
1868
+
1869
+ /**
1870
+ * Notify external application of an unexpected mic-related error having
1871
+ * occurred.
1872
+ *
1873
+ * @param {string} type - The type of the mic error.
1874
+ * @param {string} message - Additional information about the error.
1875
+ * @returns {void}
1876
+ */
1877
+ notifyOnMicError(type, message) {
1878
+ this._sendEvent({
1879
+ name: 'mic-error',
1880
+ type,
1881
+ message
1882
+ });
1883
+ }
1884
+
1885
+ /**
1886
+ * Notify external application (if API is enabled) that conference feedback
1887
+ * has been submitted. Intended to be used in conjunction with the
1888
+ * submit-feedback command to get notified if feedback was submitted.
1889
+ *
1890
+ * @param {string} error - A failure message, if any.
1891
+ * @returns {void}
1892
+ */
1893
+ notifyFeedbackSubmitted(error) {
1894
+ this._sendEvent({
1895
+ name: 'feedback-submitted',
1896
+ error
1897
+ });
1898
+ }
1899
+
1900
+ /**
1901
+ * Notify external application (if API is enabled) that the feedback prompt
1902
+ * has been displayed.
1903
+ *
1904
+ * @returns {void}
1905
+ */
1906
+ notifyFeedbackPromptDisplayed() {
1907
+ this._sendEvent({ name: 'feedback-prompt-displayed' });
1908
+ }
1909
+
1910
+ /**
1911
+ * Notify external application (if API is enabled) that the display
1912
+ * configuration of the filmstrip has been changed.
1913
+ *
1914
+ * @param {boolean} visible - Whether or not the filmstrip has been set to
1915
+ * be displayed or hidden.
1916
+ * @returns {void}
1917
+ */
1918
+ notifyFilmstripDisplayChanged(visible) {
1919
+ this._sendEvent({
1920
+ name: 'filmstrip-display-changed',
1921
+ visible
1922
+ });
1923
+ }
1924
+
1925
+ /**
1926
+ * Notify external application of a participant, remote or local, being
1927
+ * removed from the conference by another participant.
1928
+ *
1929
+ * @param {Object} kicked - The participant removed from the
1930
+ * conference.
1931
+ * @param {Object} kicker - The participant that removed the
1932
+ * other participant.
1933
+ * @returns {void}
1934
+ */
1935
+ notifyKickedOut(kicked, kicker) {
1936
+ this._sendEvent({
1937
+ name: 'participant-kicked-out',
1938
+ kicked,
1939
+ kicker
1940
+ });
1941
+ }
1942
+
1943
+ /**
1944
+ * Notify external application (if API is enabled) that the recording consent dialog open state has changed.
1945
+ *
1946
+ * @param {boolean} open - True if the dialog is open, false otherwise.
1947
+ * @returns {void}
1948
+ */
1949
+ notifyRecordingConsentDialogOpen(open) {
1950
+ this._sendEvent({
1951
+ name: 'recording-consent-dialog-open',
1952
+ open
1953
+ });
1954
+ }
1955
+
1956
+ /**
1957
+ * Notify external application of the current meeting requiring a password
1958
+ * to join.
1959
+ *
1960
+ * @returns {void}
1961
+ */
1962
+ notifyOnPasswordRequired() {
1963
+ this._sendEvent({ name: 'password-required' });
1964
+ }
1965
+
1966
+ /**
1967
+ * Notify external application (if API is enabled) that the screen sharing
1968
+ * has been turned on/off.
1969
+ *
1970
+ * @param {boolean} on - True if screen sharing is enabled.
1971
+ * @param {Object} details - Additional information about the screen
1972
+ * sharing.
1973
+ * @param {string} details.sourceType - Type of device or window the screen
1974
+ * share is capturing.
1975
+ * @returns {void}
1976
+ */
1977
+ notifyScreenSharingStatusChanged(on, details) {
1978
+ this._sendEvent({
1979
+ name: 'screen-sharing-status-changed',
1980
+ on,
1981
+ details
1982
+ });
1983
+ }
1984
+
1985
+ /**
1986
+ * Notify external application (if API is enabled) that the dominant speaker
1987
+ * has been turned on/off.
1988
+ *
1989
+ * @param {string} id - Id of the dominant participant.
1990
+ * @returns {void}
1991
+ */
1992
+ notifyDominantSpeakerChanged(id) {
1993
+ this._sendEvent({
1994
+ name: 'dominant-speaker-changed',
1995
+ id
1996
+ });
1997
+ }
1998
+
1999
+ /**
2000
+ * Notify external application (if API is enabled) that the conference
2001
+ * changed their subject.
2002
+ *
2003
+ * @param {string} subject - Conference subject.
2004
+ * @returns {void}
2005
+ */
2006
+ notifySubjectChanged(subject) {
2007
+ this._sendEvent({
2008
+ name: 'subject-change',
2009
+ subject
2010
+ });
2011
+ }
2012
+
2013
+ /**
2014
+ * Notify external application (if API is enabled) that tile view has been
2015
+ * entered or exited.
2016
+ *
2017
+ * @param {string} enabled - True if tile view is currently displayed, false
2018
+ * otherwise.
2019
+ * @returns {void}
2020
+ */
2021
+ notifyTileViewChanged(enabled) {
2022
+ this._sendEvent({
2023
+ name: 'tile-view-changed',
2024
+ enabled
2025
+ });
2026
+ }
2027
+
2028
+ /**
2029
+ * Notify external application (if API is enabled) that the localStorage has changed.
2030
+ *
2031
+ * @param {string} localStorageContent - The new localStorageContent.
2032
+ * @returns {void}
2033
+ */
2034
+ notifyLocalStorageChanged(localStorageContent) {
2035
+ this._sendEvent({
2036
+ name: 'local-storage-changed',
2037
+ localStorageContent
2038
+ });
2039
+ }
2040
+
2041
+ /**
2042
+ * Notify external application (if API is enabled) that user updated their hand raised.
2043
+ *
2044
+ * @param {string} id - User id.
2045
+ * @param {boolean} handRaised - Whether user has raised hand.
2046
+ * @returns {void}
2047
+ */
2048
+ notifyRaiseHandUpdated(id, handRaised) {
2049
+ this._sendEvent({
2050
+ name: 'raise-hand-updated',
2051
+ handRaised,
2052
+ id
2053
+ });
2054
+ }
2055
+
2056
+ /**
2057
+ * Notify external application (if API is enabled) that recording has started or stopped.
2058
+ *
2059
+ * @param {boolean} on - True if recording is on, false otherwise.
2060
+ * @param {string} mode - Stream or file or local.
2061
+ * @param {string} error - Error type or null if success.
2062
+ * @param {boolean} transcription - True if a transcription is being recorded, false otherwise.
2063
+ * @returns {void}
2064
+ */
2065
+ notifyRecordingStatusChanged(on, mode, error, transcription) {
2066
+ this._sendEvent({
2067
+ name: 'recording-status-changed',
2068
+ on,
2069
+ mode,
2070
+ error,
2071
+ transcription
2072
+ });
2073
+ }
2074
+
2075
+ /**
2076
+ * Notify external application (if API is enabled) that the current recording link is
2077
+ * available.
2078
+ *
2079
+ * @param {string} link - The recording download link.
2080
+ * @param {number} ttl - The recording download link time to live.
2081
+ * @returns {void}
2082
+ */
2083
+ notifyRecordingLinkAvailable(link, ttl) {
2084
+ this._sendEvent({
2085
+ name: 'recording-link-available',
2086
+ link,
2087
+ ttl
2088
+ });
2089
+ }
2090
+
2091
+ /**
2092
+ * Notify external application (if API is enabled) that a participant is knocking in the lobby.
2093
+ *
2094
+ * @param {Object} participant - Participant data such as id and name.
2095
+ * @returns {void}
2096
+ */
2097
+ notifyKnockingParticipant(participant) {
2098
+ this._sendEvent({
2099
+ name: 'knocking-participant',
2100
+ participant
2101
+ });
2102
+ }
2103
+
2104
+ /**
2105
+ * Notify external application (if API is enabled) that an error occurred.
2106
+ *
2107
+ * @param {Object} error - The error.
2108
+ * @returns {void}
2109
+ */
2110
+ notifyError(error) {
2111
+ this._sendEvent({
2112
+ name: 'error-occurred',
2113
+ error
2114
+ });
2115
+ }
2116
+
2117
+ /**
2118
+ * Notify external application ( if API is enabled) that a toolbar button was clicked.
2119
+ *
2120
+ * @param {string} key - The key of the toolbar button.
2121
+ * @param {boolean} preventExecution - Whether execution of the button click was prevented or not.
2122
+ * @returns {void}
2123
+ */
2124
+ notifyToolbarButtonClicked(key, preventExecution) {
2125
+ this._sendEvent({
2126
+ name: 'toolbar-button-clicked',
2127
+ key,
2128
+ preventExecution
2129
+ });
2130
+ }
2131
+
2132
+ /**
2133
+ * Notify external application (if API is enabled) that transcribing has started or stopped.
2134
+ *
2135
+ * @param {boolean} on - True if transcribing is on, false otherwise.
2136
+ * @returns {void}
2137
+ */
2138
+ notifyTranscribingStatusChanged(on) {
2139
+ this._sendEvent({
2140
+ name: 'transcribing-status-changed',
2141
+ on
2142
+ });
2143
+ }
2144
+
2145
+ /**
2146
+ * Notify external application (if API is enabled) that the user received
2147
+ * a transcription chunk.
2148
+ *
2149
+ * @param {Object} data - The event data.
2150
+ * @returns {void}
2151
+ */
2152
+ notifyTranscriptionChunkReceived(data) {
2153
+ this._sendEvent({
2154
+ name: 'transcription-chunk-received',
2155
+ data
2156
+ });
2157
+ }
2158
+
2159
+ /**
2160
+ * Notify external application (if API is enabled) whether the used browser is supported or not.
2161
+ *
2162
+ * @param {boolean} supported - If browser is supported or not.
2163
+ * @returns {void}
2164
+ */
2165
+ notifyBrowserSupport(supported) {
2166
+ this._sendEvent({
2167
+ name: 'browser-support',
2168
+ supported
2169
+ });
2170
+ }
2171
+
2172
+ /**
2173
+ * Notify external application that the breakout rooms changed.
2174
+ *
2175
+ * @param {Array} rooms - Array containing the breakout rooms and main room.
2176
+ * @returns {void}
2177
+ */
2178
+ notifyBreakoutRoomsUpdated(rooms) {
2179
+ this._sendEvent({
2180
+ name: 'breakout-rooms-updated',
2181
+ rooms
2182
+ });
2183
+ }
2184
+
2185
+ /**
2186
+ * Notify the external application that the state of the participants pane changed.
2187
+ *
2188
+ * @param {boolean} open - Whether the panel is open or not.
2189
+ * @returns {void}
2190
+ */
2191
+ notifyParticipantsPaneToggled(open) {
2192
+ this._sendEvent({
2193
+ name: 'participants-pane-toggled',
2194
+ open
2195
+ });
2196
+ }
2197
+
2198
+ /**
2199
+ * Notify the external application that the audio or video is being shared by a participant.
2200
+ *
2201
+ * @param {string} mediaType - Whether the content which is being shared is audio or video.
2202
+ * @param {string} value - Whether the sharing is playing, pause or stop (on audio there is only playing and stop).
2203
+ * @param {string} participantId - Participant id of the participant which started or ended
2204
+ * the video or audio sharing.
2205
+ * @returns {void}
2206
+ */
2207
+ notifyAudioOrVideoSharingToggled(mediaType, value, participantId) {
2208
+ this._sendEvent({
2209
+ name: 'audio-or-video-sharing-toggled',
2210
+ mediaType,
2211
+ value,
2212
+ participantId
2213
+ });
2214
+ }
2215
+
2216
+ /**
2217
+ * Notify the external application that a PeerConnection lost connectivity. This event is fired only if
2218
+ * a PC `failed` but connectivity to the rtcstats server is still maintained signaling that there is a
2219
+ * problem establishing a link between the app and the JVB server or the remote peer in case of P2P.
2220
+ * Will only fire if rtcstats is enabled.
2221
+ *
2222
+ * @param {boolean} isP2P - Type of PC.
2223
+ * @param {boolean} wasConnected - Was this connection previously connected. If it was it could mean
2224
+ * that connectivity was disrupted, if not it most likely means that the app could not reach
2225
+ * the JVB server, or the other peer in case of P2P.
2226
+ *
2227
+ * @returns {void}
2228
+ */
2229
+ notifyPeerConnectionFailure(isP2P, wasConnected) {
2230
+ this._sendEvent({
2231
+ name: 'peer-connection-failure',
2232
+ isP2P,
2233
+ wasConnected
2234
+ });
2235
+ }
2236
+
2237
+ /**
2238
+ * Notify external application ( if API is enabled) that a participant menu button was clicked.
2239
+ *
2240
+ * @param {string} key - The key of the participant menu button.
2241
+ * @param {string} participantId - The ID of the participant for whom the participant menu button was clicked.
2242
+ * @param {boolean} preventExecution - Whether execution of the button click was prevented or not.
2243
+ * @returns {void}
2244
+ */
2245
+ notifyParticipantMenuButtonClicked(key, participantId, preventExecution) {
2246
+ this._sendEvent({
2247
+ name: 'participant-menu-button-clicked',
2248
+ key,
2249
+ participantId,
2250
+ preventExecution
2251
+ });
2252
+ }
2253
+
2254
+ /**
2255
+ * Notify external application (if API is enabled) if whiteboard state is
2256
+ * changed.
2257
+ *
2258
+ * @param {WhiteboardStatus} status - The new whiteboard status.
2259
+ * @returns {void}
2260
+ */
2261
+ notifyWhiteboardStatusChanged(status) {
2262
+ this._sendEvent({
2263
+ name: 'whiteboard-status-changed',
2264
+ status
2265
+ });
2266
+ }
2267
+
2268
+ /**
2269
+ * Notify external application (if API is enabled) if non participant message
2270
+ * is received.
2271
+ *
2272
+ * @param {string} id - The resource id of the sender.
2273
+ * @param {Object} json - The json carried by the message.
2274
+ * @returns {void}
2275
+ */
2276
+ notifyNonParticipantMessageReceived(id, json) {
2277
+ this._sendEvent({
2278
+ name: 'non-participant-message-received',
2279
+ id,
2280
+ message: json
2281
+ });
2282
+ }
2283
+
2284
+
2285
+ /**
2286
+ * Notify external application (if API is enabled) the conference
2287
+ * start time.
2288
+ *
2289
+ * @param {number} timestamp - Timestamp conference was created.
2290
+ * @returns {void}
2291
+ */
2292
+ notifyConferenceCreatedTimestamp(timestamp) {
2293
+ this._sendEvent({
2294
+ name: 'conference-created-timestamp',
2295
+ timestamp
2296
+ });
2297
+ }
2298
+
2299
+
2300
+ /**
2301
+ * Notify the external application (if API is enabled) if the connection type changed.
2302
+ *
2303
+ * @param {boolean} isP2p - Whether the new connection is P2P.
2304
+ * @returns {void}
2305
+ */
2306
+ notifyP2pStatusChanged(isP2p) {
2307
+ this._sendEvent({
2308
+ name: 'p2p-status-changed',
2309
+ isP2p
2310
+ });
2311
+ }
2312
+
2313
+ /**
2314
+ * Notify the external application (if API is enabled) when the compute pressure changed.
2315
+ *
2316
+ * @param {Array} records - The new pressure records.
2317
+ * @returns {void}
2318
+ */
2319
+ notifyComputePressureChanged(records) {
2320
+ this._sendEvent({
2321
+ name: 'compute-pressure-changed',
2322
+ records
2323
+ });
2324
+ }
2325
+
2326
+ /**
2327
+ * Notify the external application (if API is enabled) when the audio only enabled status changed.
2328
+ *
2329
+ * @param {boolean} enabled - Whether the audio only is enabled or not.
2330
+ * @returns {void}
2331
+ */
2332
+ notifyAudioOnlyChanged(enabled) {
2333
+ this._sendEvent({
2334
+ name: 'audio-only-changed',
2335
+ enabled
2336
+ });
2337
+ }
2338
+
2339
+ /**
2340
+ * Disposes the allocated resources.
2341
+ *
2342
+ * @returns {void}
2343
+ */
2344
+ dispose() {
2345
+ if (this._enabled) {
2346
+ this._enabled = false;
2347
+ }
2348
+ }
2349
+ }
2350
+
2351
+ export default new API();