@azure/communication-react 1.5.1-beta.5 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (598) hide show
  1. package/README.md +3 -4
  2. package/dist/communication-react.d.ts +147 -2691
  3. package/dist/dist-cjs/communication-react/index.js +3821 -10561
  4. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  5. package/dist/dist-esm/acs-ui-common/src/identifier.d.ts +6 -0
  6. package/dist/dist-esm/acs-ui-common/src/identifier.js +10 -2
  7. package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/index.d.ts +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/index.js +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  12. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  13. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +1 -24
  14. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +0 -51
  15. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  16. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.d.ts +0 -13
  17. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +2 -17
  18. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  19. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +1 -7
  20. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  21. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +1 -19
  22. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +1 -73
  23. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  24. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js +0 -10
  25. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js.map +1 -1
  26. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +1 -15
  27. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  28. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +1 -4
  29. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +0 -22
  30. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  31. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +0 -9
  32. package/dist/dist-esm/calling-component-bindings/src/index.js +0 -10
  33. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  34. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +3 -9
  35. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  36. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.d.ts +3 -4
  37. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js.map +1 -1
  38. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.d.ts +2 -14
  39. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js +1 -20
  40. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js.map +1 -1
  41. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.d.ts +0 -7
  42. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +1 -13
  43. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  44. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.d.ts +0 -5
  45. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +0 -11
  46. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  47. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +4 -11
  48. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  49. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +0 -3
  50. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  51. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.d.ts +5 -6
  52. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
  53. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +1 -15
  54. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  55. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.d.ts +1 -2
  56. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +0 -5
  57. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
  58. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +1 -115
  59. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  60. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +1 -19
  61. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +2 -162
  62. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  63. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +0 -51
  64. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  65. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +0 -5
  66. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +0 -57
  67. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  68. package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +0 -10
  69. package/dist/dist-esm/calling-stateful-client/src/Converter.js +2 -39
  70. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  71. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.d.ts +0 -9
  72. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +0 -5
  73. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  74. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.d.ts +0 -1
  75. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +3 -25
  76. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  77. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.d.ts +0 -1
  78. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js +0 -8
  79. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
  80. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.d.ts +0 -1
  81. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js +0 -8
  82. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  83. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +1 -25
  84. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +2 -33
  85. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  86. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +2 -9
  87. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +0 -18
  88. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  89. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +0 -4
  90. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  91. package/dist/dist-esm/calling-stateful-client/src/index.d.ts +0 -1
  92. package/dist/dist-esm/calling-stateful-client/src/index.js +0 -2
  93. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  94. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +1 -4
  95. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  96. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +5 -72
  97. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  98. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +3 -3
  99. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  100. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +1 -3
  101. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  102. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +1 -4
  103. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  104. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.d.ts +0 -1
  105. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  106. package/dist/dist-esm/communication-react/src/index.d.ts +0 -28
  107. package/dist/dist-esm/communication-react/src/index.js +0 -14
  108. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  109. package/dist/dist-esm/react-components/src/components/CameraButton.d.ts +0 -8
  110. package/dist/dist-esm/react-components/src/components/CameraButton.js +0 -21
  111. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  112. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js +11 -2
  113. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js.map +1 -1
  114. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +2 -12
  115. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +2 -5
  116. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  117. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +29 -23
  118. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
  119. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts +1 -11
  120. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +3 -22
  121. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  122. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +0 -12
  123. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +18 -60
  124. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  125. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +0 -6
  126. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  127. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.d.ts +5 -0
  128. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +1 -1
  129. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
  130. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.d.ts +5 -0
  131. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js +21 -5
  132. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
  133. package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +0 -8
  134. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  135. package/dist/dist-esm/react-components/src/components/FileCard.js +5 -5
  136. package/dist/dist-esm/react-components/src/components/FileCard.js.map +1 -1
  137. package/dist/dist-esm/react-components/src/components/FileCardGroup.d.ts +1 -0
  138. package/dist/dist-esm/react-components/src/components/FileCardGroup.js +2 -2
  139. package/dist/dist-esm/react-components/src/components/FileCardGroup.js.map +1 -1
  140. package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +1 -13
  141. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +17 -16
  142. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  143. package/dist/dist-esm/react-components/src/components/FileUploadCards.js +1 -3
  144. package/dist/dist-esm/react-components/src/components/FileUploadCards.js.map +1 -1
  145. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +24 -26
  146. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  147. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +4 -40
  148. package/dist/dist-esm/react-components/src/components/MessageThread.js +12 -49
  149. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  150. package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts +1 -1
  151. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
  152. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +0 -13
  153. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +0 -3
  154. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  155. package/dist/dist-esm/react-components/src/components/ParticipantList.js +1 -7
  156. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  157. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
  158. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +2 -42
  159. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  160. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +0 -35
  161. package/dist/dist-esm/react-components/src/components/SendBox.js +1 -26
  162. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  163. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +0 -2
  164. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  165. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +0 -2
  166. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  167. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +0 -24
  168. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  169. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +0 -2
  170. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  171. package/dist/dist-esm/react-components/src/components/VerticalGallery.js +4 -17
  172. package/dist/dist-esm/react-components/src/components/VerticalGallery.js.map +1 -1
  173. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +5 -18
  174. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  175. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +6 -24
  176. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  177. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.d.ts +0 -6
  178. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.js.map +1 -1
  179. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +0 -5
  180. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +3 -32
  181. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
  182. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +1 -7
  183. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  184. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +3 -46
  185. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  186. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +0 -81
  187. package/dist/dist-esm/react-components/src/components/VideoGallery.js +9 -104
  188. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  189. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +0 -22
  190. package/dist/dist-esm/react-components/src/components/VideoTile.js +11 -88
  191. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  192. package/dist/dist-esm/react-components/src/components/index.d.ts +0 -18
  193. package/dist/dist-esm/react-components/src/components/index.js +0 -16
  194. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  195. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.d.ts +10 -0
  196. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js +10 -0
  197. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js.map +1 -1
  198. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +0 -5
  199. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +1 -29
  200. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  201. package/dist/dist-esm/react-components/src/components/styles/ParticipantList.styles.js +4 -1
  202. package/dist/dist-esm/react-components/src/components/styles/ParticipantList.styles.js.map +1 -1
  203. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +2 -1
  204. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  205. package/dist/dist-esm/react-components/src/components/utils/common.js +0 -4
  206. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  207. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.d.ts +1 -2
  208. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  209. package/dist/dist-esm/react-components/src/components/utils.d.ts +14 -0
  210. package/dist/dist-esm/react-components/src/components/utils.js +21 -1
  211. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  212. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.d.ts +0 -4
  213. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js +1 -5
  214. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  215. package/dist/dist-esm/react-components/src/index.d.ts +0 -4
  216. package/dist/dist-esm/react-components/src/index.js +0 -2
  217. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  218. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +0 -59
  219. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  220. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +331 -0
  221. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +4 -4
  222. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +4 -4
  223. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +4 -4
  224. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +4 -4
  225. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +331 -0
  226. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +4 -4
  227. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +331 -0
  228. package/dist/dist-esm/react-components/src/localization/locales/index.d.ts +36 -0
  229. package/dist/dist-esm/react-components/src/localization/locales/index.js +54 -0
  230. package/dist/dist-esm/react-components/src/localization/locales/index.js.map +1 -1
  231. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +4 -4
  232. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +4 -4
  233. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +4 -4
  234. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +331 -0
  235. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +4 -4
  236. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +331 -0
  237. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +4 -4
  238. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +4 -4
  239. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +331 -0
  240. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +4 -4
  241. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +4 -4
  242. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +4 -4
  243. package/dist/dist-esm/react-components/src/theming/icons.d.ts +0 -29
  244. package/dist/dist-esm/react-components/src/theming/icons.js +1 -143
  245. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  246. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +1 -27
  247. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  248. package/dist/dist-esm/react-components/src/types/OnRender.d.ts +0 -8
  249. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  250. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.d.ts +0 -3
  251. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js +0 -2
  252. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  253. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +0 -8
  254. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js +0 -2
  255. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  256. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +0 -89
  257. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +12 -57
  258. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  259. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +4 -221
  260. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js +0 -2
  261. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  262. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +7 -103
  263. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +24 -325
  264. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  265. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +1 -263
  266. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -1
  267. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  268. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +2 -3
  269. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +1 -7
  270. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  271. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +0 -8
  272. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js +0 -2
  273. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  274. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +0 -2
  275. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +8 -90
  276. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  277. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +0 -2
  278. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +1 -144
  279. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  280. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.d.ts +0 -2
  281. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +0 -27
  282. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  283. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +2 -20
  284. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  285. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.d.ts +0 -2
  286. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +0 -27
  287. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  288. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -2
  289. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +5 -45
  290. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  291. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +0 -2
  292. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +8 -28
  293. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  294. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +0 -2
  295. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  296. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +4 -5
  297. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +1 -2
  298. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  299. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +2 -33
  300. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  301. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js +0 -2
  302. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  303. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +2 -6
  304. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  305. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.d.ts +1 -2
  306. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +5 -51
  307. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  308. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +0 -10
  309. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js +0 -2
  310. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  311. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +1 -3
  312. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  313. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +0 -7
  314. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +8 -115
  315. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  316. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +0 -2
  317. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  318. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.d.ts +4 -1
  319. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +2 -2
  320. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  321. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +0 -32
  322. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +0 -57
  323. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  324. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +0 -4
  325. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  326. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.d.ts +6 -1
  327. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js +7 -0
  328. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js.map +1 -1
  329. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +0 -1
  330. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  331. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +3 -33
  332. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +6 -109
  333. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  334. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +1 -61
  335. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +5 -30
  336. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  337. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +0 -44
  338. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  339. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +5 -49
  340. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +7 -198
  341. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  342. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +1 -124
  343. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  344. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -22
  345. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +1 -93
  346. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  347. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +0 -13
  348. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +1 -37
  349. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  350. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +0 -1
  351. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  352. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -27
  353. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +3 -19
  354. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  355. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -20
  356. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +0 -4
  357. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  358. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +3 -43
  359. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  360. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.d.ts +0 -4
  361. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  362. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +2 -28
  363. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +6 -128
  364. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  365. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.d.ts +0 -28
  366. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js +1 -159
  367. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js.map +1 -1
  368. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -17
  369. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  370. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js +0 -2
  371. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  372. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js +1 -8
  373. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js.map +1 -1
  374. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +0 -4
  375. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  376. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +1 -5
  377. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +0 -11
  378. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  379. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.d.ts +0 -5
  380. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +2 -3
  381. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  382. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +0 -3
  383. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +4 -36
  384. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  385. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +0 -13
  386. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +0 -181
  387. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  388. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +0 -2
  389. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js +1 -5
  390. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  391. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +1 -14
  392. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  393. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +2 -18
  394. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  395. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +0 -2
  396. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  397. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -46
  398. package/dist/dist-esm/react-composites/src/composites/common/icons.js +1 -21
  399. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  400. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +4 -26
  401. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  402. package/dist/dist-esm/react-composites/src/composites/index.d.ts +0 -2
  403. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  404. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +199 -0
  405. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +7 -1
  406. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +7 -1
  407. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +7 -1
  408. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +7 -1
  409. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +199 -0
  410. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +7 -1
  411. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +199 -0
  412. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.d.ts +36 -0
  413. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js +61 -1
  414. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js.map +1 -1
  415. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +7 -1
  416. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +7 -1
  417. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +7 -1
  418. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +199 -0
  419. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +7 -1
  420. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +199 -0
  421. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +7 -1
  422. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +7 -1
  423. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +199 -0
  424. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +7 -1
  425. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +7 -1
  426. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +7 -1
  427. package/package.json +17 -15
  428. package/CHANGELOG.beta.md +0 -929
  429. package/CHANGELOG.json +0 -12481
  430. package/CHANGELOG.stable.md +0 -373
  431. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.d.ts +0 -48
  432. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +0 -69
  433. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +0 -1
  434. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +0 -43
  435. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +0 -85
  436. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +0 -1
  437. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.d.ts +0 -18
  438. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js +0 -38
  439. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +0 -1
  440. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.d.ts +0 -28
  441. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js +0 -49
  442. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js.map +0 -1
  443. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +0 -19
  444. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js +0 -89
  445. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +0 -1
  446. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.d.ts +0 -23
  447. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +0 -49
  448. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +0 -1
  449. package/dist/dist-esm/react-components/src/components/Caption.d.ts +0 -21
  450. package/dist/dist-esm/react-components/src/components/Caption.js +0 -32
  451. package/dist/dist-esm/react-components/src/components/Caption.js.map +0 -1
  452. package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +0 -32
  453. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +0 -48
  454. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +0 -1
  455. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.d.ts +0 -37
  456. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +0 -86
  457. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +0 -1
  458. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +0 -69
  459. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +0 -43
  460. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +0 -1
  461. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +0 -75
  462. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +0 -75
  463. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +0 -1
  464. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.d.ts +0 -105
  465. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +0 -68
  466. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +0 -1
  467. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.d.ts +0 -86
  468. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +0 -39
  469. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +0 -1
  470. package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +0 -49
  471. package/dist/dist-esm/react-components/src/components/HoldButton.js +0 -25
  472. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +0 -1
  473. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.d.ts +0 -35
  474. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js +0 -32
  475. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js.map +0 -1
  476. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.d.ts +0 -70
  477. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js +0 -54
  478. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js.map +0 -1
  479. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts +0 -10
  480. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js +0 -26
  481. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js.map +0 -1
  482. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.d.ts +0 -10
  483. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js +0 -31
  484. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js.map +0 -1
  485. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +0 -58
  486. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +0 -144
  487. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +0 -1
  488. package/dist/dist-esm/react-components/src/components/styles/Captions.style.d.ts +0 -33
  489. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js +0 -61
  490. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +0 -1
  491. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.d.ts +0 -34
  492. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js +0 -86
  493. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js.map +0 -1
  494. package/dist/dist-esm/react-components/src/components/styles/Common.style.d.ts +0 -14
  495. package/dist/dist-esm/react-components/src/components/styles/Common.style.js +0 -16
  496. package/dist/dist-esm/react-components/src/components/styles/Common.style.js.map +0 -1
  497. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.d.ts +0 -38
  498. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js +0 -92
  499. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +0 -1
  500. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.d.ts +0 -26
  501. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js +0 -67
  502. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +0 -1
  503. package/dist/dist-esm/react-components/src/components/utils/merge.d.ts +0 -7
  504. package/dist/dist-esm/react-components/src/components/utils/merge.js +0 -16
  505. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +0 -1
  506. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +0 -61
  507. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js +0 -74
  508. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +0 -1
  509. package/dist/dist-esm/react-components/src/permissions/index.d.ts +0 -2
  510. package/dist/dist-esm/react-components/src/permissions/index.js +0 -4
  511. package/dist/dist-esm/react-components/src/permissions/index.js.map +0 -1
  512. package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +0 -6
  513. package/dist/dist-esm/react-components/src/theming/icons.styles.js +0 -25
  514. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +0 -1
  515. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +0 -48
  516. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +0 -218
  517. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +0 -1
  518. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.d.ts +0 -12
  519. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +0 -93
  520. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +0 -1
  521. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.d.ts +0 -9
  522. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js +0 -75
  523. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js.map +0 -1
  524. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts +0 -8
  525. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +0 -26
  526. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +0 -1
  527. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +0 -19
  528. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +0 -30
  529. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +0 -1
  530. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -15
  531. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +0 -54
  532. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +0 -1
  533. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.d.ts +0 -7
  534. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js +0 -20
  535. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js.map +0 -1
  536. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/videoBackgroundErrorsSelector.d.ts +0 -7
  537. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/videoBackgroundErrorsSelector.js +0 -17
  538. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/videoBackgroundErrorsSelector.js.map +0 -1
  539. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.d.ts +0 -32
  540. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js +0 -81
  541. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +0 -1
  542. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -18
  543. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +0 -18
  544. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +0 -1
  545. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.d.ts +0 -15
  546. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js +0 -23
  547. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js.map +0 -1
  548. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.d.ts +0 -6
  549. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +0 -11
  550. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +0 -1
  551. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +0 -12
  552. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +0 -13
  553. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +0 -1
  554. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +0 -23
  555. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js +0 -14
  556. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js.map +0 -1
  557. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +0 -22
  558. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +0 -107
  559. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +0 -1
  560. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.d.ts +0 -17
  561. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js +0 -32
  562. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +0 -1
  563. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +0 -22
  564. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +0 -74
  565. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +0 -1
  566. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.d.ts +0 -15
  567. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +0 -61
  568. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +0 -1
  569. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.d.ts +0 -6
  570. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +0 -61
  571. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +0 -1
  572. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.d.ts +0 -12
  573. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +0 -111
  574. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +0 -1
  575. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.d.ts +0 -7
  576. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js +0 -38
  577. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js.map +0 -1
  578. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +0 -17
  579. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +0 -215
  580. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +0 -1
  581. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.d.ts +0 -6
  582. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js +0 -24
  583. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js.map +0 -1
  584. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.d.ts +0 -20
  585. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js +0 -52
  586. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js.map +0 -1
  587. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.d.ts +0 -7
  588. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js +0 -25
  589. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js.map +0 -1
  590. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.d.ts +0 -17
  591. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js +0 -50
  592. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js.map +0 -1
  593. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.d.ts +0 -11
  594. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js +0 -40
  595. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js.map +0 -1
  596. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +0 -12
  597. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +0 -140
  598. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +0 -1
@@ -21,4 +21,10 @@ export declare const fromFlatCommunicationIdentifier: (id: string) => Communicat
21
21
  * @internal
22
22
  */
23
23
  export declare const _toCommunicationIdentifier: (id: string | CommunicationIdentifier) => CommunicationIdentifier;
24
+ /**
25
+ * Check if an object is identifier.
26
+ *
27
+ * @internal
28
+ */
29
+ export declare const _isValidIdentifier: (identifier: CommunicationIdentifier) => boolean;
24
30
  //# sourceMappingURL=identifier.d.ts.map
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT license.
3
- import { createIdentifierFromRawId, getIdentifierRawId } from '@azure/communication-common';
3
+ import { createIdentifierFromRawId, getIdentifierRawId, isCommunicationUserIdentifier, isMicrosoftTeamsUserIdentifier, isPhoneNumberIdentifier, isUnknownIdentifier } from '@azure/communication-common';
4
4
  /**
5
5
  * A string representation of a {@link @azure/communication-common#CommunicationIdentifier}.
6
6
  *
@@ -21,7 +21,7 @@ export const toFlatCommunicationIdentifier = (identifier) => {
21
21
  */
22
22
  export const fromFlatCommunicationIdentifier = (id) => {
23
23
  // if the id passed is a phone number we need to build the rawId to pass in
24
- const rawId = id.indexOf('+') === 0 ? '4:' + id.slice(1) : id;
24
+ const rawId = id.indexOf('+') === 0 ? '4:' + id : id;
25
25
  return createIdentifierFromRawId(rawId);
26
26
  };
27
27
  /**
@@ -34,4 +34,12 @@ export const _toCommunicationIdentifier = (id) => {
34
34
  }
35
35
  return id;
36
36
  };
37
+ /**
38
+ * Check if an object is identifier.
39
+ *
40
+ * @internal
41
+ */
42
+ export const _isValidIdentifier = (identifier) => {
43
+ return isCommunicationUserIdentifier(identifier) || isPhoneNumberIdentifier(identifier) || isMicrosoftTeamsUserIdentifier(identifier) || isUnknownIdentifier(identifier);
44
+ };
37
45
  //# sourceMappingURL=identifier.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"identifier.js","sourceRoot":"","sources":["../../../../preprocess-dist/acs-ui-common/src/identifier.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAA2B,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAErH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,UAAmC,EAAU,EAAE;IAC3F,OAAO,kBAAkB,CAAC,UAAU,CAAC,CAAC;AACxC,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,EAAU,EAA2B,EAAE;IACrF,2EAA2E;IAC3E,MAAM,KAAK,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9D,OAAO,yBAAyB,CAAC,KAAK,CAAC,CAAC;AAC1C,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EAAoC,EAA2B,EAAE;IAC1G,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE;QAC1B,OAAO,+BAA+B,CAAC,EAAE,CAAC,CAAC;KAC5C;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationIdentifier, createIdentifierFromRawId, getIdentifierRawId } from '@azure/communication-common';\n\n/**\n * A string representation of a {@link @azure/communication-common#CommunicationIdentifier}.\n *\n * This string representation of CommunicationIdentifier is guaranteed to be stable for\n * a unique Communication user. Thus,\n * - it can be used to persist a user's identity in external databases.\n * - it can be used as keys into a Map to store data for the user.\n *\n * @public\n */\nexport const toFlatCommunicationIdentifier = (identifier: CommunicationIdentifier): string => {\n return getIdentifierRawId(identifier);\n};\n\n/**\n * Reverse operation of {@link toFlatCommunicationIdentifier}.\n *\n * @public\n */\nexport const fromFlatCommunicationIdentifier = (id: string): CommunicationIdentifier => {\n // if the id passed is a phone number we need to build the rawId to pass in\n const rawId = id.indexOf('+') === 0 ? '4:' + id.slice(1) : id;\n return createIdentifierFromRawId(rawId);\n};\n\n/**\n * Returns a CommunicationIdentifier.\n * @internal\n */\nexport const _toCommunicationIdentifier = (id: string | CommunicationIdentifier): CommunicationIdentifier => {\n if (typeof id === 'string') {\n return fromFlatCommunicationIdentifier(id);\n }\n return id;\n};"]}
1
+ {"version":3,"file":"identifier.js","sourceRoot":"","sources":["../../../../preprocess-dist/acs-ui-common/src/identifier.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAA2B,yBAAyB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElO;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,UAAmC,EAAU,EAAE;IAC3F,OAAO,kBAAkB,CAAC,UAAU,CAAC,CAAC;AACxC,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,EAAU,EAA2B,EAAE;IACrF,2EAA2E;IAC3E,MAAM,KAAK,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACrD,OAAO,yBAAyB,CAAC,KAAK,CAAC,CAAC;AAC1C,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EAAoC,EAA2B,EAAE;IAC1G,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE;QAC1B,OAAO,+BAA+B,CAAC,EAAE,CAAC,CAAC;KAC5C;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,UAAmC,EAAW,EAAE;IACjF,OAAO,6BAA6B,CAAC,UAAU,CAAC,IAAI,uBAAuB,CAAC,UAAU,CAAC,IAAI,8BAA8B,CAAC,UAAU,CAAC,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;AAC3K,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationIdentifier, createIdentifierFromRawId, getIdentifierRawId, isCommunicationUserIdentifier, isMicrosoftTeamsUserIdentifier, isPhoneNumberIdentifier, isUnknownIdentifier } from '@azure/communication-common';\n\n/**\n * A string representation of a {@link @azure/communication-common#CommunicationIdentifier}.\n *\n * This string representation of CommunicationIdentifier is guaranteed to be stable for\n * a unique Communication user. Thus,\n * - it can be used to persist a user's identity in external databases.\n * - it can be used as keys into a Map to store data for the user.\n *\n * @public\n */\nexport const toFlatCommunicationIdentifier = (identifier: CommunicationIdentifier): string => {\n return getIdentifierRawId(identifier);\n};\n\n/**\n * Reverse operation of {@link toFlatCommunicationIdentifier}.\n *\n * @public\n */\nexport const fromFlatCommunicationIdentifier = (id: string): CommunicationIdentifier => {\n // if the id passed is a phone number we need to build the rawId to pass in\n const rawId = id.indexOf('+') === 0 ? '4:' + id : id;\n return createIdentifierFromRawId(rawId);\n};\n\n/**\n * Returns a CommunicationIdentifier.\n * @internal\n */\nexport const _toCommunicationIdentifier = (id: string | CommunicationIdentifier): CommunicationIdentifier => {\n if (typeof id === 'string') {\n return fromFlatCommunicationIdentifier(id);\n }\n return id;\n};\n\n/**\n * Check if an object is identifier.\n *\n * @internal\n */\nexport const _isValidIdentifier = (identifier: CommunicationIdentifier): boolean => {\n return isCommunicationUserIdentifier(identifier) || isPhoneNumberIdentifier(identifier) || isMicrosoftTeamsUserIdentifier(identifier) || isUnknownIdentifier(identifier);\n};"]}
@@ -1,5 +1,5 @@
1
1
  export { memoizeFnAll } from './memoizeFnAll';
2
- export { fromFlatCommunicationIdentifier, toFlatCommunicationIdentifier, _toCommunicationIdentifier } from './identifier';
2
+ export { fromFlatCommunicationIdentifier, toFlatCommunicationIdentifier, _toCommunicationIdentifier, _isValidIdentifier } from './identifier';
3
3
  export { _getApplicationId } from './telemetry';
4
4
  export { _formatString } from './localizationUtils';
5
5
  export { _safeJSONStringify } from './safeStringify';
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT license.
3
3
  export { memoizeFnAll } from './memoizeFnAll';
4
- export { fromFlatCommunicationIdentifier, toFlatCommunicationIdentifier, _toCommunicationIdentifier } from './identifier';
4
+ export { fromFlatCommunicationIdentifier, toFlatCommunicationIdentifier, _toCommunicationIdentifier, _isValidIdentifier } from './identifier';
5
5
  export { _getApplicationId } from './telemetry';
6
6
  export { _formatString } from './localizationUtils';
7
7
  export { _safeJSONStringify } from './safeStringify';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../preprocess-dist/acs-ui-common/src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,+BAA+B,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1H,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAMnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport { memoizeFnAll } from './memoizeFnAll';\nexport { fromFlatCommunicationIdentifier, toFlatCommunicationIdentifier, _toCommunicationIdentifier } from './identifier';\nexport { _getApplicationId } from './telemetry';\nexport { _formatString } from './localizationUtils';\nexport { _safeJSONStringify } from './safeStringify';\nexport { _convertRemToPx, _preventDismissOnEvent } from './common';\nexport type { Common, CommonProperties } from './commonProperties';\nexport type { CallbackType, FunctionWithKey } from './memoizeFnAll';\nexport type { AreEqual, AreParamEqual, AreTypeEqual } from './areEqual';\nexport type { MessageStatus } from './MessageStatus';\nexport type { _IObjectMap } from './localizationUtils';\nexport { _MAX_EVENT_LISTENERS } from './constants';\nexport { _pxToRem } from './cssUtils';\nexport { _logEvent } from './logEvent';\nexport type { TelemetryEvent } from './logEvent';"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../preprocess-dist/acs-ui-common/src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,+BAA+B,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC9I,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAMnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport { memoizeFnAll } from './memoizeFnAll';\nexport { fromFlatCommunicationIdentifier, toFlatCommunicationIdentifier, _toCommunicationIdentifier, _isValidIdentifier } from './identifier';\nexport { _getApplicationId } from './telemetry';\nexport { _formatString } from './localizationUtils';\nexport { _safeJSONStringify } from './safeStringify';\nexport { _convertRemToPx, _preventDismissOnEvent } from './common';\nexport type { Common, CommonProperties } from './commonProperties';\nexport type { CallbackType, FunctionWithKey } from './memoizeFnAll';\nexport type { AreEqual, AreParamEqual, AreTypeEqual } from './areEqual';\nexport type { MessageStatus } from './MessageStatus';\nexport type { _IObjectMap } from './localizationUtils';\nexport { _MAX_EVENT_LISTENERS } from './constants';\nexport { _pxToRem } from './cssUtils';\nexport { _logEvent } from './logEvent';\nexport type { TelemetryEvent } from './logEvent';"]}
@@ -2,5 +2,5 @@
2
2
  // Copyright (c) Microsoft Corporation.
3
3
  // Licensed under the MIT license.
4
4
  // GENERATED FILE. DO NOT EDIT MANUALLY.
5
- module.exports = '1.5.1-beta.5';
5
+ module.exports = '1.6.0';
6
6
  //# sourceMappingURL=telemetryVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"telemetryVersion.js","sourceRoot":"","sources":["../../../../preprocess-dist/acs-ui-common/src/telemetryVersion.js"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;AAElC,wCAAwC;AAExC,MAAM,CAAC,OAAO,GAAG,cAAc,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n// GENERATED FILE. DO NOT EDIT MANUALLY.\n\nmodule.exports = '1.5.1-beta.5';\n"]}
1
+ {"version":3,"file":"telemetryVersion.js","sourceRoot":"","sources":["../../../../preprocess-dist/acs-ui-common/src/telemetryVersion.js"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;AAElC,wCAAwC;AAExC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n// GENERATED FILE. DO NOT EDIT MANUALLY.\n\nmodule.exports = '1.6.0';\n"]}
@@ -1,8 +1,5 @@
1
1
  import { DominantSpeakersInfo } from '@azure/communication-calling';
2
- import { EnvironmentInfo } from '@azure/communication-calling';
3
- import { ParticipantRole } from '@azure/communication-calling';
4
2
  import { CallClientState, DeviceManagerState, RemoteParticipantState, LocalVideoStreamState, CallErrors, DiagnosticsCallFeatureState } from "../../calling-stateful-client/src";
5
- import { CaptionsInfo } from "../../calling-stateful-client/src";
6
3
  /**
7
4
  * Common props used to reference calling declarative client state.
8
5
  *
@@ -15,10 +12,6 @@ export declare type CallingBaseSelectorProps = {
15
12
  * @private
16
13
  */
17
14
  export declare const getDeviceManager: (state: CallClientState) => DeviceManagerState;
18
- /**
19
- * @private
20
- */
21
- export declare const getRole: (state: CallClientState, props: CallingBaseSelectorProps) => ParticipantRole | undefined;
22
15
  /**
23
16
  * @private
24
17
  */
@@ -68,23 +61,7 @@ export declare const getDiagnostics: (state: CallClientState, props: CallingBase
68
61
  /**
69
62
  * @private
70
63
  */
71
- export declare const getCallState: (state: CallClientState, props: CallingBaseSelectorProps) => string;
72
- /**
73
- * @private
74
- */
75
- export declare const getEnvironmentInfo: (state: CallClientState) => undefined | /* @conditional-compile-remove(unsupported-browser) */ EnvironmentInfo;
64
+ export declare const getEnvironmentInfo: (state: CallClientState) => undefined;
76
65
  /** @private */
77
66
  export declare const getParticipantCount: (state: CallClientState, props: CallingBaseSelectorProps) => number | undefined;
78
- /** @private */
79
- export declare const getCaptions: (state: CallClientState, props: CallingBaseSelectorProps) => CaptionsInfo[] | undefined;
80
- /** @private */
81
- export declare const getCaptionsStatus: (state: CallClientState, props: CallingBaseSelectorProps) => boolean | undefined;
82
- /** @private */
83
- export declare const getCurrentCaptionLanguage: (state: CallClientState, props: CallingBaseSelectorProps) => string | undefined;
84
- /** @private */
85
- export declare const getCurrentSpokenLanguage: (state: CallClientState, props: CallingBaseSelectorProps) => string | undefined;
86
- /** @private */
87
- export declare const getSupportedCaptionLanguages: (state: CallClientState, props: CallingBaseSelectorProps) => string[] | undefined;
88
- /** @private */
89
- export declare const getSupportedSpokenLanguages: (state: CallClientState, props: CallingBaseSelectorProps) => string[] | undefined;
90
67
  //# sourceMappingURL=baseSelectors.d.ts.map
@@ -3,11 +3,6 @@ import { toFlatCommunicationIdentifier } from "../../acs-ui-common/src";
3
3
  * @private
4
4
  */
5
5
  export const getDeviceManager = (state) => state.deviceManager;
6
- /* @conditional-compile-remove(rooms) */
7
- /**
8
- * @private
9
- */
10
- export const getRole = (state, props) => { var _a; return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.role; };
11
6
  /**
12
7
  * @private
13
8
  */
@@ -55,60 +50,14 @@ export const getLatestErrors = (state) => state.latestErrors;
55
50
  * @private
56
51
  */
57
52
  export const getDiagnostics = (state, props) => { var _a; return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.diagnostics; };
58
- /* @conditional-compile-remove(PSTN-calls) */
59
- /**
60
- * @private
61
- */
62
- export const getCallState = (state, props) => { var _a; return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.state; };
63
53
  /**
64
54
  * @private
65
55
  */
66
56
  export const getEnvironmentInfo = (state) => {
67
- /* @conditional-compile-remove(unsupported-browser) */
68
- return state.environmentInfo;
69
57
  return undefined;
70
58
  };
71
59
  /** @private */
72
60
  export const getParticipantCount = (state, props) => {
73
- var _a;
74
- /* @conditional-compile-remove(total-participant-count) */
75
- return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.totalParticipantCount;
76
61
  return undefined;
77
62
  };
78
- /* @conditional-compile-remove(close-captions) */
79
- /** @private */
80
- export const getCaptions = (state, props) => {
81
- var _a;
82
- return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.captionsFeature.captions;
83
- };
84
- /* @conditional-compile-remove(close-captions) */
85
- /** @private */
86
- export const getCaptionsStatus = (state, props) => {
87
- var _a;
88
- return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.captionsFeature.isCaptionsFeatureActive;
89
- };
90
- /* @conditional-compile-remove(close-captions) */
91
- /** @private */
92
- export const getCurrentCaptionLanguage = (state, props) => {
93
- var _a;
94
- return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.captionsFeature.currentCaptionLanguage;
95
- };
96
- /* @conditional-compile-remove(close-captions) */
97
- /** @private */
98
- export const getCurrentSpokenLanguage = (state, props) => {
99
- var _a;
100
- return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.captionsFeature.currentSpokenLanguage;
101
- };
102
- /* @conditional-compile-remove(close-captions) */
103
- /** @private */
104
- export const getSupportedCaptionLanguages = (state, props) => {
105
- var _a;
106
- return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.captionsFeature.supportedCaptionLanguages;
107
- };
108
- /* @conditional-compile-remove(close-captions) */
109
- /** @private */
110
- export const getSupportedSpokenLanguages = (state, props) => {
111
- var _a;
112
- return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.captionsFeature.supportedSpokenLanguages;
113
- };
114
63
  //# sourceMappingURL=baseSelectors.js.map
@@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B,EAAE;;IACtH,OAAO,MAAA,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,0CAAE,eAAe,CAAC,qBAAqB,CAAC;AAC1E,CAAC,CAAC;AAEF,iDAAiD;AACjD,eAAe;AACf,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,KAAsB,EAAE,KAA+B,EAAwB,EAAE;;IAC5H,OAAO,MAAA,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,0CAAE,eAAe,CAAC,yBAAyB,CAAC;AAC9E,CAAC,CAAC;AAEF,iDAAiD;AACjD,eAAe;AACf,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAsB,EAAE,KAA+B,EAAwB,EAAE;;IAC3H,OAAO,MAAA,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,0CAAE,eAAe,CAAC,wBAAwB,CAAC;AAC7E,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { DominantSpeakersInfo } from '@azure/communication-calling';\n/* @conditional-compile-remove(unsupported-browser) */\nimport { EnvironmentInfo } from '@azure/communication-calling';\n/* @conditional-compile-remove(rooms) */\nimport { ParticipantRole } from '@azure/communication-calling';\nimport { toFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport { CallClientState, DeviceManagerState, RemoteParticipantState, LocalVideoStreamState, CallErrors, DiagnosticsCallFeatureState } from '@internal/calling-stateful-client';\n/* @conditional-compile-remove(close-captions) */\nimport { CaptionsInfo } from '@internal/calling-stateful-client';\n\n/**\n * Common props used to reference calling declarative client state.\n *\n * @public\n */\nexport type CallingBaseSelectorProps = {\n callId: string;\n};\n\n/**\n * @private\n */\nexport const getDeviceManager = (state: CallClientState): DeviceManagerState => state.deviceManager;\n\n/* @conditional-compile-remove(rooms) */\n/**\n * @private\n */\nexport const getRole = (state: CallClientState, props: CallingBaseSelectorProps): ParticipantRole | undefined => state.calls[props.callId]?.role;\n\n/**\n * @private\n */\nexport const getCallExists = (state: CallClientState, props: CallingBaseSelectorProps): boolean => !!state.calls[props.callId];\n\n/**\n * @private\n */\nexport const getDominantSpeakers = (state: CallClientState, props: CallingBaseSelectorProps): undefined | DominantSpeakersInfo => state.calls[props.callId]?.dominantSpeakers;\n\n/**\n * @private\n */\nexport const getRemoteParticipants = (state: CallClientState, props: CallingBaseSelectorProps): {\n [keys: string]: RemoteParticipantState;\n} | undefined => {\n return state.calls[props.callId]?.remoteParticipants;\n};\n\n/**\n * @private\n */\nexport const getIsScreenSharingOn = (state: CallClientState, props: CallingBaseSelectorProps): boolean | undefined => state.calls[props.callId]?.isScreenSharingOn;\n\n/**\n * @private\n */\nexport const getIsMuted = (state: CallClientState, props: CallingBaseSelectorProps): boolean | undefined => state.calls[props.callId]?.isMuted;\n\n/**\n * @private\n */\nexport const getLocalVideoStreams = (state: CallClientState, props: CallingBaseSelectorProps): LocalVideoStreamState[] | undefined => state.calls[props.callId]?.localVideoStreams;\n\n/**\n * @private\n */\nexport const getScreenShareRemoteParticipant = (state: CallClientState, props: CallingBaseSelectorProps): string | undefined => state.calls[props.callId]?.screenShareRemoteParticipant;\n\n/**\n * @private\n */\nexport const getDisplayName = (state: CallClientState): string | undefined => state.callAgent?.displayName;\n\n/**\n * @private\n */\nexport const getIdentifier = (state: CallClientState): string => toFlatCommunicationIdentifier(state.userId);\n\n/**\n * @private\n */\nexport const getLatestErrors = (state: CallClientState): CallErrors => state.latestErrors;\n\n/**\n * @private\n */\nexport const getDiagnostics = (state: CallClientState, props: CallingBaseSelectorProps): DiagnosticsCallFeatureState | undefined => state.calls[props.callId]?.diagnostics;\n\n/* @conditional-compile-remove(PSTN-calls) */\n/**\n * @private\n */\nexport const getCallState = (state: CallClientState, props: CallingBaseSelectorProps): string => state.calls[props.callId]?.state;\n\n/**\n * @private\n */\nexport const getEnvironmentInfo = (state: CallClientState): undefined | /* @conditional-compile-remove(unsupported-browser) */EnvironmentInfo => {\n /* @conditional-compile-remove(unsupported-browser) */\n return state.environmentInfo;\n return undefined;\n};\n\n/** @private */\nexport const getParticipantCount = (state: CallClientState, props: CallingBaseSelectorProps): number | undefined => {\n /* @conditional-compile-remove(total-participant-count) */\n return state.calls[props.callId]?.totalParticipantCount;\n return undefined;\n};\n\n/* @conditional-compile-remove(close-captions) */\n/** @private */\nexport const getCaptions = (state: CallClientState, props: CallingBaseSelectorProps): CaptionsInfo[] | undefined => {\n return state.calls[props.callId]?.captionsFeature.captions;\n};\n\n/* @conditional-compile-remove(close-captions) */\n/** @private */\nexport const getCaptionsStatus = (state: CallClientState, props: CallingBaseSelectorProps): boolean | undefined => {\n return state.calls[props.callId]?.captionsFeature.isCaptionsFeatureActive;\n};\n\n/* @conditional-compile-remove(close-captions) */\n/** @private */\nexport const getCurrentCaptionLanguage = (state: CallClientState, props: CallingBaseSelectorProps): string | undefined => {\n return state.calls[props.callId]?.captionsFeature.currentCaptionLanguage;\n};\n\n/* @conditional-compile-remove(close-captions) */\n/** @private */\nexport const getCurrentSpokenLanguage = (state: CallClientState, props: CallingBaseSelectorProps): string | undefined => {\n return state.calls[props.callId]?.captionsFeature.currentSpokenLanguage;\n};\n\n/* @conditional-compile-remove(close-captions) */\n/** @private */\nexport const getSupportedCaptionLanguages = (state: CallClientState, props: CallingBaseSelectorProps): string[] | undefined => {\n return state.calls[props.callId]?.captionsFeature.supportedCaptionLanguages;\n};\n\n/* @conditional-compile-remove(close-captions) */\n/** @private */\nexport const getSupportedSpokenLanguages = (state: CallClientState, props: CallingBaseSelectorProps): string[] | undefined => {\n return state.calls[props.callId]?.captionsFeature.supportedSpokenLanguages;\n};\"../../acs-ui-common/src\"\"../../calling-stateful-client/src\""]}
1
+ {"version":3,"file":"baseSelectors.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-component-bindings/src/baseSelectors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,gCAAgC;AAWxE;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GA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,KAAsB,EAAE,KAA+B,EAAsB,EAAE,WAAC,OAAA,MAAA,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,0CAAE,4BAA4B,CAAA,EAAA,CAAC;AAExL;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAsB,EAAsB,EAAE,WAAC,OAAA,MAAA,KAAK,CAAC,SAAS,0CAAE,WAAW,CAAA,EAAA,CAAC;AAE3G;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAsB,EAAU,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAE7G;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAsB,EAAc,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC;AAE1F;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAsB,EAAE,KAA+B,EAA2C,EAAE,WAAC,OAAA,MAAA,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,0CAAE,WAAW,CAAA,EAAA,CAAC;AAC3K;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAsB,EAAa,EAAE;IACtE,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,eAAe;AACf,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAAsB,EAAE,KAA+B,EAAsB,EAAE;IACjH,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { DominantSpeakersInfo } from '@azure/communication-calling';\nimport { toFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport { CallClientState, DeviceManagerState, RemoteParticipantState, LocalVideoStreamState, CallErrors, DiagnosticsCallFeatureState } from '@internal/calling-stateful-client';\n/**\n * Common props used to reference calling declarative client state.\n *\n * @public\n */\nexport type CallingBaseSelectorProps = {\n callId: string;\n};\n\n/**\n * @private\n */\nexport const getDeviceManager = (state: CallClientState): DeviceManagerState => state.deviceManager;\n/**\n * @private\n */\nexport const getCallExists = (state: CallClientState, props: CallingBaseSelectorProps): boolean => !!state.calls[props.callId];\n\n/**\n * @private\n */\nexport const getDominantSpeakers = (state: CallClientState, props: CallingBaseSelectorProps): undefined | DominantSpeakersInfo => state.calls[props.callId]?.dominantSpeakers;\n\n/**\n * @private\n */\nexport const getRemoteParticipants = (state: CallClientState, props: CallingBaseSelectorProps): {\n [keys: string]: RemoteParticipantState;\n} | undefined => {\n return state.calls[props.callId]?.remoteParticipants;\n};\n\n/**\n * @private\n */\nexport const getIsScreenSharingOn = (state: CallClientState, props: CallingBaseSelectorProps): boolean | undefined => state.calls[props.callId]?.isScreenSharingOn;\n\n/**\n * @private\n */\nexport const getIsMuted = (state: CallClientState, props: CallingBaseSelectorProps): boolean | undefined => state.calls[props.callId]?.isMuted;\n\n/**\n * @private\n */\nexport const getLocalVideoStreams = (state: CallClientState, props: CallingBaseSelectorProps): LocalVideoStreamState[] | undefined => state.calls[props.callId]?.localVideoStreams;\n\n/**\n * @private\n */\nexport const getScreenShareRemoteParticipant = (state: CallClientState, props: CallingBaseSelectorProps): string | undefined => state.calls[props.callId]?.screenShareRemoteParticipant;\n\n/**\n * @private\n */\nexport const getDisplayName = (state: CallClientState): string | undefined => state.callAgent?.displayName;\n\n/**\n * @private\n */\nexport const getIdentifier = (state: CallClientState): string => toFlatCommunicationIdentifier(state.userId);\n\n/**\n * @private\n */\nexport const getLatestErrors = (state: CallClientState): CallErrors => state.latestErrors;\n\n/**\n * @private\n */\nexport const getDiagnostics = (state: CallClientState, props: CallingBaseSelectorProps): DiagnosticsCallFeatureState | undefined => state.calls[props.callId]?.diagnostics;\n/**\n * @private\n */\nexport const getEnvironmentInfo = (state: CallClientState): undefined => {\n return undefined;\n};\n\n/** @private */\nexport const getParticipantCount = (state: CallClientState, props: CallingBaseSelectorProps): number | undefined => {\n return undefined;\n};\"../../acs-ui-common/src\"\"../../calling-stateful-client/src\""]}
@@ -44,7 +44,6 @@ export declare const cameraButtonSelector: CameraButtonSelector;
44
44
  */
45
45
  export declare type ScreenShareButtonSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {
46
46
  checked?: boolean;
47
- disabled?: boolean;
48
47
  };
49
48
  /**
50
49
  * Selector for {@link ScreenShareButton} component.
@@ -71,16 +70,4 @@ export declare type DevicesButtonSelector = (state: CallClientState, props: Call
71
70
  * @public
72
71
  */
73
72
  export declare const devicesButtonSelector: DevicesButtonSelector;
74
- /**
75
- * Selector type for the {@link HoldButton} component.
76
- * @public
77
- */
78
- export declare type HoldButtonSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {
79
- checked: boolean;
80
- };
81
- /**
82
- * Selector for the {@link HoldButton} component.
83
- * @public
84
- */
85
- export declare const holdButtonSelector: HoldButtonSelector;
86
73
  //# sourceMappingURL=callControlSelectors.d.ts.map
@@ -2,8 +2,6 @@
2
2
  // Licensed under the MIT license.
3
3
  import * as reselect from 'reselect';
4
4
  import { getCallExists, getDeviceManager, getIsMuted, getIsScreenSharingOn, getLocalVideoStreams } from './baseSelectors';
5
- /* @conditional-compile-remove(PSTN-calls) */
6
- import { getCallState } from './baseSelectors';
7
5
  import { _isPreviewOn } from './utils/callUtils';
8
6
  /**
9
7
  * Selector for {@link MicrophoneButton} component.
@@ -42,12 +40,9 @@ export const cameraButtonSelector = reselect.createSelector([getLocalVideoStream
42
40
  *
43
41
  * @public
44
42
  */
45
- export const screenShareButtonSelector = reselect.createSelector([getIsScreenSharingOn, /* @conditional-compile-remove(PSTN-calls) */ getCallState], (isScreenSharingOn, /* @conditional-compile-remove(PSTN-calls) */ callState) => {
46
- var _a;
43
+ export const screenShareButtonSelector = reselect.createSelector([getIsScreenSharingOn], (isScreenSharingOn) => {
47
44
  return {
48
- checked: isScreenSharingOn,
49
- /* @conditional-compile-remove(PSTN-calls) */
50
- disabled: callState === 'InLobby' ? true : (_a = callState === 'Connecting') !== null && _a !== void 0 ? _a : false
45
+ checked: isScreenSharingOn
51
46
  };
52
47
  });
53
48
  /**
@@ -68,14 +63,4 @@ export const devicesButtonSelector = reselect.createSelector([getDeviceManager],
68
63
  function removeBlankNameDevices(devices) {
69
64
  return devices.filter(device => device.name !== '');
70
65
  }
71
- /* @conditional-compile-remove(PSTN-calls) */
72
- /**
73
- * Selector for the {@link HoldButton} component.
74
- * @public
75
- */
76
- export const holdButtonSelector = reselect.createSelector([getCallState], callState => {
77
- return {
78
- checked: callState === 'LocalHold'
79
- };
80
- });
81
66
  //# sourceMappingURL=callControlSelectors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"callControlSelectors.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-component-bindings/src/callControlSelectors.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,EAA4B,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACpJ,6CAA6C;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAgBjD;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAA6B,QAAQ,CAAC,cAAc,CAAC,CAAC,aAAa,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE;IAC9K,MAAM,UAAU,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IACxF,OAAO;QACL,QAAQ,EAAE,CAAC,UAAU,IAAI,CAAC,UAAU;QACpC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;Q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P,OAAO;QACL,OAAO,EAAE,iBAAiB;QAC1B,6CAA6C;QAC7C,QAAQ,EAAE,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAA,SAAS,KAAK,YAAY,mCAAI,KAAK;KAC/E,CAAC;AACJ,CAAC,CAAC,CAAC;AAgBH;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA0B,QAAQ,CAAC,cAAc,CAAC,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,EAAE;IACtH,OAAO;QACL,WAAW,EAAE,sBAAsB,CAAC,aAAa,CAAC,WAAW,CAAC;QAC9D,QAAQ,EAAE,sBAAsB,CAAC,aAAa,CAAC,QAAQ,CAAC;QACxD,OAAO,EAAE,sBAAsB,CAAC,aAAa,CAAC,OAAO,CAAC;QACtD,kBAAkB,EAAE,aAAa,CAAC,kBAAkB;QACpD,eAAe,EAAE,aAAa,CAAC,eAAe;QAC9C,cAAc,EAAE,aAAa,CAAC,cAAc;KAC7C,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,SAAS,sBAAsB,CAE5B,OAAY;IACb,OAAO,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;AACtD,CAAC;AAWD,6CAA6C;AAC7C;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAuB,QAAQ,CAAC,cAAc,CAAC,CAAC,YAAY,CAAC,EAAE,SAAS,CAAC,EAAE;IACxG,OAAO;QACL,OAAO,EAAE,SAAS,KAAK,WAAW;KACnC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { AudioDeviceInfo, VideoDeviceInfo } from '@azure/communication-calling';\nimport { CallClientState } from '@internal/calling-stateful-client';\nimport * as reselect from 'reselect';\nimport { CallingBaseSelectorProps, getCallExists, getDeviceManager, getIsMuted, getIsScreenSharingOn, getLocalVideoStreams } from './baseSelectors';\n/* @conditional-compile-remove(PSTN-calls) */\nimport { getCallState } from './baseSelectors';\nimport { _isPreviewOn } from './utils/callUtils';\n\n/**\n * Selector type for {@link MicrophoneButton} component.\n *\n * @public\n */\nexport type MicrophoneButtonSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {\n disabled: boolean;\n checked: boolean;\n microphones: AudioDeviceInfo[];\n speakers: AudioDeviceInfo[];\n selectedMicrophone?: AudioDeviceInfo;\n selectedSpeaker?: AudioDeviceInfo;\n};\n\n/**\n * Selector for {@link MicrophoneButton} component.\n *\n * @public\n */\nexport const microphoneButtonSelector: MicrophoneButtonSelector = reselect.createSelector([getCallExists, getIsMuted, getDeviceManager], (callExists, isMuted, deviceManager) => {\n const permission = deviceManager.deviceAccess ? deviceManager.deviceAccess.audio : true;\n return {\n disabled: !callExists || !permission,\n checked: callExists ? !isMuted : false,\n microphones: deviceManager.microphones,\n speakers: deviceManager.speakers,\n selectedMicrophone: deviceManager.selectedMicrophone,\n selectedSpeaker: deviceManager.selectedSpeaker\n };\n});\n\n/**\n * Selector type for {@link CameraButton} component.\n *\n * @public\n */\nexport type CameraButtonSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {\n disabled: boolean;\n checked: boolean;\n cameras: VideoDeviceInfo[];\n selectedCamera?: VideoDeviceInfo;\n};\n\n/**\n * Selector for {@link CameraButton} component.\n *\n * @public\n */\nexport const cameraButtonSelector: CameraButtonSelector = reselect.createSelector([getLocalVideoStreams, getDeviceManager], (localVideoStreams, deviceManager) => {\n const previewOn = _isPreviewOn(deviceManager);\n const localVideoFromCall = localVideoStreams?.find(stream => stream.mediaStreamType === 'Video');\n const permission = deviceManager.deviceAccess ? deviceManager.deviceAccess.video : true;\n return {\n disabled: !deviceManager.selectedCamera || !permission || !deviceManager.cameras.length,\n checked: localVideoStreams !== undefined && localVideoStreams.length > 0 ? !!localVideoFromCall : previewOn,\n cameras: deviceManager.cameras,\n selectedCamera: deviceManager.selectedCamera\n };\n});\n\n/**\n * Selector type for {@link ScreenShareButton} component.\n *\n * @public\n */\nexport type ScreenShareButtonSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {\n checked?: boolean;\n /* @conditional-compile-remove(PSTN-calls) */\n disabled?: boolean;\n};\n\n/**\n * Selector for {@link ScreenShareButton} component.\n *\n * @public\n */\nexport const screenShareButtonSelector: ScreenShareButtonSelector = reselect.createSelector([getIsScreenSharingOn, /* @conditional-compile-remove(PSTN-calls) */getCallState], (isScreenSharingOn, /* @conditional-compile-remove(PSTN-calls) */callState) => {\n return {\n checked: isScreenSharingOn,\n /* @conditional-compile-remove(PSTN-calls) */\n disabled: callState === 'InLobby' ? true : callState === 'Connecting' ?? false\n };\n});\n\n/**\n * Selector type for {@link DevicesButton} component.\n *\n * @public\n */\nexport type DevicesButtonSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {\n microphones: AudioDeviceInfo[];\n speakers: AudioDeviceInfo[];\n cameras: VideoDeviceInfo[];\n selectedMicrophone?: AudioDeviceInfo;\n selectedSpeaker?: AudioDeviceInfo;\n selectedCamera?: VideoDeviceInfo;\n};\n\n/**\n * Selector for {@link DevicesButton} component.\n *\n * @public\n */\nexport const devicesButtonSelector: DevicesButtonSelector = reselect.createSelector([getDeviceManager], deviceManager => {\n return {\n microphones: removeBlankNameDevices(deviceManager.microphones),\n speakers: removeBlankNameDevices(deviceManager.speakers),\n cameras: removeBlankNameDevices(deviceManager.cameras),\n selectedMicrophone: deviceManager.selectedMicrophone,\n selectedSpeaker: deviceManager.selectedSpeaker,\n selectedCamera: deviceManager.selectedCamera\n };\n});\nfunction removeBlankNameDevices<T extends {\n name: string;\n}>(devices: T[]): T[] {\n return devices.filter(device => device.name !== '');\n}\n\n/* @conditional-compile-remove(PSTN-calls) */\n/**\n * Selector type for the {@link HoldButton} component.\n * @public\n */\nexport type HoldButtonSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {\n checked: boolean;\n};\n\n/* @conditional-compile-remove(PSTN-calls) */\n/**\n * Selector for the {@link HoldButton} component.\n * @public\n */\nexport const holdButtonSelector: HoldButtonSelector = reselect.createSelector([getCallState], callState => {\n return {\n checked: callState === 'LocalHold'\n };\n});\"../../calling-stateful-client/src\""]}
1
+ {"version":3,"file":"callControlSelectors.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-component-bindings/src/callControlSelectors.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,EAA4B,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACpJ,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAgBjD;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAA6B,QAAQ,CAAC,cAAc,CAAC,CAAC,aAAa,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE;IAC9K,MAAM,UAAU,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IACxF,OAAO;QACL,QAAQ,EAAE,CAAC,UAAU,IAAI,CAAC,UAAU;QACpC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;QACtC,WAAW,EAAE,aAAa,CAAC,WAAW;QACtC,QAAQ,EAAE,aAAa,CAAC,QAAQ;QAChC,kBAAkB,EAAE,aAAa,CAAC,kBAAkB;QACpD,eAAe,EAAE,aAAa,CAAC,eAAe;KAC/C,CAAC;AACJ,CAAC,CAAC,CAAC;AAcH;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAyB,QAAQ,CAAC,cAAc,CAAC,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,EAA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,CAAC,OAAO,CAAC;QACtD,kBAAkB,EAAE,aAAa,CAAC,kBAAkB;QACpD,eAAe,EAAE,aAAa,CAAC,eAAe;QAC9C,cAAc,EAAE,aAAa,CAAC,cAAc;KAC7C,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,SAAS,sBAAsB,CAE5B,OAAY;IACb,OAAO,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;AACtD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { AudioDeviceInfo, VideoDeviceInfo } from '@azure/communication-calling';\nimport { CallClientState } from '@internal/calling-stateful-client';\nimport * as reselect from 'reselect';\nimport { CallingBaseSelectorProps, getCallExists, getDeviceManager, getIsMuted, getIsScreenSharingOn, getLocalVideoStreams } from './baseSelectors';\nimport { _isPreviewOn } from './utils/callUtils';\n\n/**\n * Selector type for {@link MicrophoneButton} component.\n *\n * @public\n */\nexport type MicrophoneButtonSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {\n disabled: boolean;\n checked: boolean;\n microphones: AudioDeviceInfo[];\n speakers: AudioDeviceInfo[];\n selectedMicrophone?: AudioDeviceInfo;\n selectedSpeaker?: AudioDeviceInfo;\n};\n\n/**\n * Selector for {@link MicrophoneButton} component.\n *\n * @public\n */\nexport const microphoneButtonSelector: MicrophoneButtonSelector = reselect.createSelector([getCallExists, getIsMuted, getDeviceManager], (callExists, isMuted, deviceManager) => {\n const permission = deviceManager.deviceAccess ? deviceManager.deviceAccess.audio : true;\n return {\n disabled: !callExists || !permission,\n checked: callExists ? !isMuted : false,\n microphones: deviceManager.microphones,\n speakers: deviceManager.speakers,\n selectedMicrophone: deviceManager.selectedMicrophone,\n selectedSpeaker: deviceManager.selectedSpeaker\n };\n});\n\n/**\n * Selector type for {@link CameraButton} component.\n *\n * @public\n */\nexport type CameraButtonSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {\n disabled: boolean;\n checked: boolean;\n cameras: VideoDeviceInfo[];\n selectedCamera?: VideoDeviceInfo;\n};\n\n/**\n * Selector for {@link CameraButton} component.\n *\n * @public\n */\nexport const cameraButtonSelector: CameraButtonSelector = reselect.createSelector([getLocalVideoStreams, getDeviceManager], (localVideoStreams, deviceManager) => {\n const previewOn = _isPreviewOn(deviceManager);\n const localVideoFromCall = localVideoStreams?.find(stream => stream.mediaStreamType === 'Video');\n const permission = deviceManager.deviceAccess ? deviceManager.deviceAccess.video : true;\n return {\n disabled: !deviceManager.selectedCamera || !permission || !deviceManager.cameras.length,\n checked: localVideoStreams !== undefined && localVideoStreams.length > 0 ? !!localVideoFromCall : previewOn,\n cameras: deviceManager.cameras,\n selectedCamera: deviceManager.selectedCamera\n };\n});\n\n/**\n * Selector type for {@link ScreenShareButton} component.\n *\n * @public\n */\nexport type ScreenShareButtonSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {\n checked?: boolean;\n};\n\n/**\n * Selector for {@link ScreenShareButton} component.\n *\n * @public\n */\nexport const screenShareButtonSelector: ScreenShareButtonSelector = reselect.createSelector([getIsScreenSharingOn], (isScreenSharingOn) => {\n return {\n checked: isScreenSharingOn\n };\n});\n\n/**\n * Selector type for {@link DevicesButton} component.\n *\n * @public\n */\nexport type DevicesButtonSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {\n microphones: AudioDeviceInfo[];\n speakers: AudioDeviceInfo[];\n cameras: VideoDeviceInfo[];\n selectedMicrophone?: AudioDeviceInfo;\n selectedSpeaker?: AudioDeviceInfo;\n selectedCamera?: VideoDeviceInfo;\n};\n\n/**\n * Selector for {@link DevicesButton} component.\n *\n * @public\n */\nexport const devicesButtonSelector: DevicesButtonSelector = reselect.createSelector([getDeviceManager], deviceManager => {\n return {\n microphones: removeBlankNameDevices(deviceManager.microphones),\n speakers: removeBlankNameDevices(deviceManager.speakers),\n cameras: removeBlankNameDevices(deviceManager.cameras),\n selectedMicrophone: deviceManager.selectedMicrophone,\n selectedSpeaker: deviceManager.selectedSpeaker,\n selectedCamera: deviceManager.selectedCamera\n };\n});\nfunction removeBlankNameDevices<T extends {\n name: string;\n}>(devices: T[]): T[] {\n return devices.filter(device => device.name !== '');\n}\"../../calling-stateful-client/src\""]}
@@ -26,13 +26,9 @@ export const errorBarSelector = createSelector([getLatestErrors, getDiagnostics,
26
26
  // have timestamps for errors.
27
27
  const activeErrorMessages = [];
28
28
  const isSafari = () => {
29
- /* @conditional-compile-remove(calling-environment-info) */
30
- return (environmentInfo === null || environmentInfo === void 0 ? void 0 : environmentInfo.environment.browser) === 'safari';
31
29
  return /^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent);
32
30
  };
33
31
  const isMacOS = () => {
34
- /* @conditional-compile-remove(calling-environment-info) */
35
- return (environmentInfo === null || environmentInfo === void 0 ? void 0 : environmentInfo.environment.platform) === 'mac';
36
32
  return false;
37
33
  };
38
34
  // Errors reported via diagnostics are more reliable than from API method failures, so process those first.
@@ -136,7 +132,7 @@ export const errorBarSelector = createSelector([getLatestErrors, getDiagnostics,
136
132
  }
137
133
  else if (((_p = diagnostics === null || diagnostics === void 0 ? void 0 : diagnostics.media.latest.screenshareRecordingDisabled) === null || _p === void 0 ? void 0 : _p.value) === true) {
138
134
  activeErrorMessages.push({
139
- type: 'startScreenSharingGeneric'
135
+ type: 'startScreenShareGeneric'
140
136
  });
141
137
  }
142
138
  // Prefer to show errors with privacy implications.
@@ -153,8 +149,6 @@ export const errorBarSelector = createSelector([getLatestErrors, getDiagnostics,
153
149
  appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.startVideo', 'startVideoGeneric');
154
150
  }
155
151
  appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.unmute', 'unmuteGeneric');
156
- /* @conditional-compile-remove(video-background-effects) */
157
- appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'VideoEffectsFeature.startEffects', 'unableToStartVideoEffect');
158
152
  if (((_s = latestErrors['CallAgent.join']) === null || _s === void 0 ? void 0 : _s.message) === 'CallAgent.join: Invalid meeting link') {
159
153
  appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'CallAgent.join', 'failedToJoinCallInvalidMeetingLink');
160
154
  }
@@ -1 +1 @@
1
- {"version":3,"file":"errorBarSelector.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-component-bindings/src/errorBarSelector.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAA4B,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAElI,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAUjE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAqB,cAAc,CAAC,CAAC,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,CAAC,EAAE,CAAC,YAAwB,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAE9M,EAAE;;IACF,kHAAkH;IAClH,8CAA8C;IAC9C,wEAAwE;IACxE,iCAAiC;IACjC,EAAE;IACF,iHAAiH;IACjH,8BAA8B;IAC9B,MAAM,mBAAmB,GAAyB,EAAE,CAAC;IACrD,MAAM,QAAQ,GAAG,GAAY,EAAE;QAC7B,2DAA2D;QAC3D,OAAO,CAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,WAAW,CAAC,OAAO,MAAK,QAAQ,CAAC;QACzD,OAAO,4CAA4C,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAChF,CAAC,CAAC;IACF,MAAM,OAAO,GAAG,GAAY,EAAE;QAC5B,2DAA2D;QAC3D,OAAO,CAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,WAAW,CAAC,QAAQ,MAAK,KAAK,CAAC;QACvD,OAAO,KAAK,CAAC;IACf,CAAC,CA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,EAAE,yBAAyB,CAAC,CAAC;KAC5G;IAED,8FAA8F;IAC9F,mBAAmB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC1C,OAAO;QACL,mBAAmB,EAAE,mBAAmB;KACzC,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,MAAM,0BAA0B,GAAG,CAAC,mBAAyC,EAAE,YAAwB,EAAE,MAAuB,EAAE,eAA0B,EAAQ,EAAE;IACpK,IAAI,YAAY,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE;QACtC,OAAO;KACR;IACD,mBAAmB,CAAC,IAAI,CAAC;QACvB,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,SAAS;KAC1C,CAAC,CAAC;AACL,CAAC,CAAC;AACF,MAAM,aAAa,GAAG,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CallingBaseSelectorProps, getDeviceManager, getDiagnostics, getLatestErrors, getEnvironmentInfo } from './baseSelectors';\nimport { ActiveErrorMessage, ErrorType } from '@internal/react-components';\nimport { createSelector } from 'reselect';\nimport { CallClientState, CallErrors, CallErrorTarget } from '@internal/calling-stateful-client';\nimport { DiagnosticQuality } from '@azure/communication-calling';\n/**\n * Selector type for {@link ErrorBar} component.\n *\n * @public\n */\nexport type ErrorBarSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {\n activeErrorMessages: ActiveErrorMessage[];\n};\n\n/**\n * Select the first 3 active errors from the state for the `ErrorBar` component.\n *\n * In case there are many errors, only the first three errors are returned to avoid\n * filling up the UI with too many errors.\n *\n * Invariants:\n * - `ErrorType` is never repeated in the returned errors.\n * - Errors are returned in a fixed order by `ErrorType`.\n *\n * @public\n */\nexport const errorBarSelector: ErrorBarSelector = createSelector([getLatestErrors, getDiagnostics, getDeviceManager, getEnvironmentInfo], (latestErrors: CallErrors, diagnostics, deviceManager, environmentInfo): {\n activeErrorMessages: ActiveErrorMessage[];\n} => {\n // The order in which the errors are returned is significant: The `ErrorBar` shows errors on the UI in that order.\n // There are several options for the ordering:\n // - Sorted by when the errors happened (latest first / oldest first).\n // - Stable sort by error type.\n //\n // We chose to stable sort by error type: We intend to show only a small number of errors on the UI and we do not\n // have timestamps for errors.\n const activeErrorMessages: ActiveErrorMessage[] = [];\n const isSafari = (): boolean => {\n /* @conditional-compile-remove(calling-environment-info) */\n return environmentInfo?.environment.browser === 'safari';\n return /^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent);\n };\n const isMacOS = (): boolean => {\n /* @conditional-compile-remove(calling-environment-info) */\n return environmentInfo?.environment.platform === 'mac';\n return false;\n };\n\n // Errors reported via diagnostics are more reliable than from API method failures, so process those first.\n if (diagnostics?.network.latest.networkReceiveQuality?.value === DiagnosticQuality.Bad || diagnostics?.network.latest.networkReceiveQuality?.value === DiagnosticQuality.Poor) {\n activeErrorMessages.push({\n type: 'callNetworkQualityLow'\n });\n }\n if (diagnostics?.media.latest.noSpeakerDevicesEnumerated?.value === true) {\n activeErrorMessages.push({\n type: 'callNoSpeakerFound'\n });\n }\n if (diagnostics?.media.latest.noMicrophoneDevicesEnumerated?.value === true) {\n activeErrorMessages.push({\n type: 'callNoMicrophoneFound'\n });\n }\n if (deviceManager.deviceAccess?.audio === false && isSafari()) {\n activeErrorMessages.push({\n type: 'callMicrophoneAccessDeniedSafari'\n });\n }\n if (deviceManager.deviceAccess?.audio === false && !isSafari()) {\n activeErrorMessages.push({\n type: 'callMicrophoneAccessDenied'\n });\n }\n if (diagnostics?.media.latest.microphonePermissionDenied?.value === true && isMacOS()) {\n activeErrorMessages.push({\n type: 'callMacOsMicrophoneAccessDenied'\n });\n } else if (diagnostics?.media.latest.microphonePermissionDenied?.value === true) {\n activeErrorMessages.push({\n type: 'callMicrophoneAccessDenied'\n });\n }\n const microphoneMuteUnexpectedlyDiagnostic = diagnostics?.media.latest.microphoneMuteUnexpectedly || diagnostics?.media.latest.microphoneNotFunctioning;\n if (microphoneMuteUnexpectedlyDiagnostic) {\n if (microphoneMuteUnexpectedlyDiagnostic.value === DiagnosticQuality.Bad) {\n // Inform the user that microphone stopped working and inform them to start microphone again\n activeErrorMessages.push({\n type: 'callMicrophoneMutedBySystem'\n });\n } else if (microphoneMuteUnexpectedlyDiagnostic.value === DiagnosticQuality.Good) {\n // Inform the user that microphone recovered\n activeErrorMessages.push({\n type: 'callMicrophoneUnmutedBySystem'\n });\n }\n }\n const cameraStoppedUnexpectedlyDiagnostic = diagnostics?.media.latest.cameraStoppedUnexpectedly;\n if (cameraStoppedUnexpectedlyDiagnostic) {\n if (cameraStoppedUnexpectedlyDiagnostic.value === DiagnosticQuality.Bad) {\n // Inform the user that camera stopped working and inform them to start video again\n activeErrorMessages.push({\n type: 'callVideoStoppedBySystem'\n });\n } else if (cameraStoppedUnexpectedlyDiagnostic.value === DiagnosticQuality.Good) {\n // Inform the user that camera recovered\n activeErrorMessages.push({\n type: 'callVideoRecoveredBySystem'\n });\n }\n }\n if (deviceManager.deviceAccess?.video === false && isSafari()) {\n activeErrorMessages.push({\n type: 'callCameraAccessDeniedSafari'\n });\n } else if (deviceManager.deviceAccess?.video === false) {\n activeErrorMessages.push({\n type: 'callCameraAccessDenied'\n });\n } else {\n if (diagnostics?.media.latest.cameraFreeze?.value === true) {\n activeErrorMessages.push({\n type: 'cameraFrozenForRemoteParticipants'\n });\n }\n }\n\n /**\n * show the Mac specific strings if the platform is detected as mac\n */\n if (diagnostics?.media.latest.cameraPermissionDenied?.value === true && isMacOS()) {\n activeErrorMessages.push({\n type: 'callMacOsCameraAccessDenied'\n });\n }\n\n /**\n * This UFD only works on mac still so we should only see it fire on mac.\n */\n if (diagnostics?.media.latest.screenshareRecordingDisabled?.value === true && isMacOS()) {\n activeErrorMessages.push({\n type: 'callMacOsScreenShareAccessDenied'\n });\n } else if (diagnostics?.media.latest.screenshareRecordingDisabled?.value === true) {\n activeErrorMessages.push({\n type: 'startScreenSharingGeneric'\n });\n }\n\n // Prefer to show errors with privacy implications.\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.stopVideo', 'stopVideoGeneric');\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.mute', 'muteGeneric');\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.stopScreenSharing', 'stopScreenShareGeneric');\n if (latestErrors['Call.startVideo']?.message === 'Call.startVideo: Video operation failure SourceUnavailableError') {\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.startVideo', 'callCameraAlreadyInUse');\n } else if (latestErrors['Call.startVideo']?.message === 'Call.startVideo: Video operation failure permissionDeniedError') {\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.startVideo', 'callCameraAccessDenied');\n } else {\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.startVideo', 'startVideoGeneric');\n }\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.unmute', 'unmuteGeneric');\n /* @conditional-compile-remove(video-background-effects) */\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'VideoEffectsFeature.startEffects', 'unableToStartVideoEffect');\n if (latestErrors['CallAgent.join']?.message === 'CallAgent.join: Invalid meeting link') {\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'CallAgent.join', 'failedToJoinCallInvalidMeetingLink');\n } else {\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'CallAgent.join', 'failedToJoinCallGeneric');\n }\n\n // We only return the first few errors to avoid filling up the UI with too many `MessageBar`s.\n activeErrorMessages.splice(maxErrorCount);\n return {\n activeErrorMessages: activeErrorMessages\n };\n});\nconst appendActiveErrorIfDefined = (activeErrorMessages: ActiveErrorMessage[], latestErrors: CallErrors, target: CallErrorTarget, activeErrorType: ErrorType): void => {\n if (latestErrors[target] === undefined) {\n return;\n }\n activeErrorMessages.push({\n type: activeErrorType,\n timestamp: latestErrors[target].timestamp\n });\n};\nconst maxErrorCount = 3;\"../../react-components/src\"\"../../calling-stateful-client/src\""]}
1
+ {"version":3,"file":"errorBarSelector.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-component-bindings/src/errorBarSelector.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAA4B,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAElI,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAUjE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAqB,cAAc,CAAC,CAAC,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,CAAC,EAAE,CAAC,YAAwB,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAE9M,EAAE;;IACF,kHAAkH;IAClH,8CAA8C;IAC9C,wEAAwE;IACxE,iCAAiC;IACjC,EAAE;IACF,iHAAiH;IACjH,8BAA8B;IAC9B,MAAM,mBAAmB,GAAyB,EAAE,CAAC;IACrD,MAAM,QAAQ,GAAG,GAAY,EAAE;QAC7B,OAAO,4CAA4C,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAChF,CAAC,CAAC;IACF,MAAM,OAAO,GAAG,GAAY,EAAE;QAC5B,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAEF,2GAA2G;IAC3G,IAAI,CAAA,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,CAAC,MAAM,CAAC,qBAAqB,0CAAE,KAAK,MAAK,iBAAiB,CAAC,GAAG,IAAI,CAAA,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,CAAC,MAAM,CAAC,qBAAqB,0CAAE,KAAK,MAAK,iBAAiB,CAAC,IAAI,EAAE;QAC7K,mBAAmB,CAAC,IAAI,CAAC;YACvB,IAAI,EAAE,uBAAuB;SAC9B,CAAC,CA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C,CAAC;AACL,CAAC,CAAC;AACF,MAAM,aAAa,GAAG,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CallingBaseSelectorProps, getDeviceManager, getDiagnostics, getLatestErrors, getEnvironmentInfo } from './baseSelectors';\nimport { ActiveErrorMessage, ErrorType } from '@internal/react-components';\nimport { createSelector } from 'reselect';\nimport { CallClientState, CallErrors, CallErrorTarget } from '@internal/calling-stateful-client';\nimport { DiagnosticQuality } from '@azure/communication-calling';\n/**\n * Selector type for {@link ErrorBar} component.\n *\n * @public\n */\nexport type ErrorBarSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {\n activeErrorMessages: ActiveErrorMessage[];\n};\n\n/**\n * Select the first 3 active errors from the state for the `ErrorBar` component.\n *\n * In case there are many errors, only the first three errors are returned to avoid\n * filling up the UI with too many errors.\n *\n * Invariants:\n * - `ErrorType` is never repeated in the returned errors.\n * - Errors are returned in a fixed order by `ErrorType`.\n *\n * @public\n */\nexport const errorBarSelector: ErrorBarSelector = createSelector([getLatestErrors, getDiagnostics, getDeviceManager, getEnvironmentInfo], (latestErrors: CallErrors, diagnostics, deviceManager, environmentInfo): {\n activeErrorMessages: ActiveErrorMessage[];\n} => {\n // The order in which the errors are returned is significant: The `ErrorBar` shows errors on the UI in that order.\n // There are several options for the ordering:\n // - Sorted by when the errors happened (latest first / oldest first).\n // - Stable sort by error type.\n //\n // We chose to stable sort by error type: We intend to show only a small number of errors on the UI and we do not\n // have timestamps for errors.\n const activeErrorMessages: ActiveErrorMessage[] = [];\n const isSafari = (): boolean => {\n return /^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent);\n };\n const isMacOS = (): boolean => {\n return false;\n };\n\n // Errors reported via diagnostics are more reliable than from API method failures, so process those first.\n if (diagnostics?.network.latest.networkReceiveQuality?.value === DiagnosticQuality.Bad || diagnostics?.network.latest.networkReceiveQuality?.value === DiagnosticQuality.Poor) {\n activeErrorMessages.push({\n type: 'callNetworkQualityLow'\n });\n }\n if (diagnostics?.media.latest.noSpeakerDevicesEnumerated?.value === true) {\n activeErrorMessages.push({\n type: 'callNoSpeakerFound'\n });\n }\n if (diagnostics?.media.latest.noMicrophoneDevicesEnumerated?.value === true) {\n activeErrorMessages.push({\n type: 'callNoMicrophoneFound'\n });\n }\n if (deviceManager.deviceAccess?.audio === false && isSafari()) {\n activeErrorMessages.push({\n type: 'callMicrophoneAccessDeniedSafari'\n });\n }\n if (deviceManager.deviceAccess?.audio === false && !isSafari()) {\n activeErrorMessages.push({\n type: 'callMicrophoneAccessDenied'\n });\n }\n if (diagnostics?.media.latest.microphonePermissionDenied?.value === true && isMacOS()) {\n activeErrorMessages.push({\n type: 'callMacOsMicrophoneAccessDenied'\n });\n } else if (diagnostics?.media.latest.microphonePermissionDenied?.value === true) {\n activeErrorMessages.push({\n type: 'callMicrophoneAccessDenied'\n });\n }\n const microphoneMuteUnexpectedlyDiagnostic = diagnostics?.media.latest.microphoneMuteUnexpectedly || diagnostics?.media.latest.microphoneNotFunctioning;\n if (microphoneMuteUnexpectedlyDiagnostic) {\n if (microphoneMuteUnexpectedlyDiagnostic.value === DiagnosticQuality.Bad) {\n // Inform the user that microphone stopped working and inform them to start microphone again\n activeErrorMessages.push({\n type: 'callMicrophoneMutedBySystem'\n });\n } else if (microphoneMuteUnexpectedlyDiagnostic.value === DiagnosticQuality.Good) {\n // Inform the user that microphone recovered\n activeErrorMessages.push({\n type: 'callMicrophoneUnmutedBySystem'\n });\n }\n }\n const cameraStoppedUnexpectedlyDiagnostic = diagnostics?.media.latest.cameraStoppedUnexpectedly;\n if (cameraStoppedUnexpectedlyDiagnostic) {\n if (cameraStoppedUnexpectedlyDiagnostic.value === DiagnosticQuality.Bad) {\n // Inform the user that camera stopped working and inform them to start video again\n activeErrorMessages.push({\n type: 'callVideoStoppedBySystem'\n });\n } else if (cameraStoppedUnexpectedlyDiagnostic.value === DiagnosticQuality.Good) {\n // Inform the user that camera recovered\n activeErrorMessages.push({\n type: 'callVideoRecoveredBySystem'\n });\n }\n }\n if (deviceManager.deviceAccess?.video === false && isSafari()) {\n activeErrorMessages.push({\n type: 'callCameraAccessDeniedSafari'\n });\n } else if (deviceManager.deviceAccess?.video === false) {\n activeErrorMessages.push({\n type: 'callCameraAccessDenied'\n });\n } else {\n if (diagnostics?.media.latest.cameraFreeze?.value === true) {\n activeErrorMessages.push({\n type: 'cameraFrozenForRemoteParticipants'\n });\n }\n }\n\n /**\n * show the Mac specific strings if the platform is detected as mac\n */\n if (diagnostics?.media.latest.cameraPermissionDenied?.value === true && isMacOS()) {\n activeErrorMessages.push({\n type: 'callMacOsCameraAccessDenied'\n });\n }\n\n /**\n * This UFD only works on mac still so we should only see it fire on mac.\n */\n if (diagnostics?.media.latest.screenshareRecordingDisabled?.value === true && isMacOS()) {\n activeErrorMessages.push({\n type: 'callMacOsScreenShareAccessDenied'\n });\n } else if (diagnostics?.media.latest.screenshareRecordingDisabled?.value === true) {\n activeErrorMessages.push({\n type: 'startScreenShareGeneric'\n });\n }\n\n // Prefer to show errors with privacy implications.\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.stopVideo', 'stopVideoGeneric');\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.mute', 'muteGeneric');\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.stopScreenSharing', 'stopScreenShareGeneric');\n if (latestErrors['Call.startVideo']?.message === 'Call.startVideo: Video operation failure SourceUnavailableError') {\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.startVideo', 'callCameraAlreadyInUse');\n } else if (latestErrors['Call.startVideo']?.message === 'Call.startVideo: Video operation failure permissionDeniedError') {\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.startVideo', 'callCameraAccessDenied');\n } else {\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.startVideo', 'startVideoGeneric');\n }\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'Call.unmute', 'unmuteGeneric');\n if (latestErrors['CallAgent.join']?.message === 'CallAgent.join: Invalid meeting link') {\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'CallAgent.join', 'failedToJoinCallInvalidMeetingLink');\n } else {\n appendActiveErrorIfDefined(activeErrorMessages, latestErrors, 'CallAgent.join', 'failedToJoinCallGeneric');\n }\n\n // We only return the first few errors to avoid filling up the UI with too many `MessageBar`s.\n activeErrorMessages.splice(maxErrorCount);\n return {\n activeErrorMessages: activeErrorMessages\n };\n});\nconst appendActiveErrorIfDefined = (activeErrorMessages: ActiveErrorMessage[], latestErrors: CallErrors, target: CallErrorTarget, activeErrorType: ErrorType): void => {\n if (latestErrors[target] === undefined) {\n return;\n }\n activeErrorMessages.push({\n type: activeErrorType,\n timestamp: latestErrors[target].timestamp\n });\n};\nconst maxErrorCount = 3;\"../../react-components/src\"\"../../calling-stateful-client/src\""]}
@@ -1,12 +1,7 @@
1
1
  import { AudioDeviceInfo, Call, LocalVideoStream, StartCallOptions, VideoDeviceInfo } from '@azure/communication-calling';
2
- import { DtmfTone, AddPhoneNumberOptions } from '@azure/communication-calling';
3
- import { TeamsCall } from '@azure/communication-calling';
4
- import { PermissionConstraints } from '@azure/communication-calling';
5
2
  import { StatefulCallClient, StatefulDeviceManager } from "../../../calling-stateful-client/src";
6
3
  import { CreateVideoStreamViewResult, VideoStreamOptions } from "../../../react-components/src";
7
4
  import { CommunicationUserIdentifier, PhoneNumberIdentifier, UnknownIdentifier } from '@azure/communication-common';
8
- import { CommunicationIdentifier } from '@azure/communication-common';
9
- import { BackgroundBlurConfig, BackgroundReplacementConfig } from '@azure/communication-calling-effects';
10
5
  /**
11
6
  * Object containing all the handlers required for calling components.
12
7
  *
@@ -26,25 +21,12 @@ export interface CommonCallingHandlers {
26
21
  onStopScreenShare: () => Promise<void>;
27
22
  onToggleScreenShare: () => Promise<void>;
28
23
  onHangUp: (forEveryone?: boolean) => Promise<void>;
29
- onToggleHold: () => Promise<void>;
30
- onAddParticipant(participant: CommunicationUserIdentifier): Promise<void>;
31
- onAddParticipant(participant: PhoneNumberIdentifier, options: AddPhoneNumberOptions): Promise<void>;
32
24
  onCreateLocalStreamView: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
33
25
  onCreateRemoteStreamView: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
34
26
  onDisposeRemoteStreamView: (userId: string) => Promise<void>;
35
27
  onDisposeLocalStreamView: () => Promise<void>;
36
- onSendDtmfTone: (dtmfTone: DtmfTone) => Promise<void>;
37
28
  onRemoveParticipant(userId: string): Promise<void>;
38
- onRemoveParticipant(participant: CommunicationIdentifier): Promise<void>;
39
- askDevicePermission: (constrain: PermissionConstraints) => Promise<void>;
40
29
  onStartCall: (participants: (CommunicationUserIdentifier | PhoneNumberIdentifier | UnknownIdentifier)[], options?: StartCallOptions) => void;
41
- onRemoveVideoBackgroundEffects: () => Promise<void>;
42
- onBlurVideoBackground: (backgroundBlurConfig?: BackgroundBlurConfig) => Promise<void>;
43
- onReplaceVideoBackground: (backgroundReplacementConfig: BackgroundReplacementConfig) => Promise<void>;
44
- onStartCaptions: (options?: CaptionsOptions) => Promise<void>;
45
- onStopCaptions: () => Promise<void>;
46
- onSetSpokenLanguage: (language: string) => Promise<void>;
47
- onSetCaptionLanguage: (language: string) => Promise<void>;
48
30
  }
49
31
  /**
50
32
  * options bag to start captions
@@ -63,5 +45,5 @@ export declare const areStreamsEqual: (prevStream: LocalVideoStream, newStream:
63
45
  *
64
46
  * @private
65
47
  */
66
- export declare const createDefaultCommonCallingHandlers: (callClient: StatefulCallClient, deviceManager: StatefulDeviceManager | undefined, call: Call | /* @conditional-compile-remove(teams-identity-support) */ TeamsCall | undefined) => CommonCallingHandlers;
48
+ export declare const createDefaultCommonCallingHandlers: (callClient: StatefulCallClient, deviceManager: StatefulDeviceManager | undefined, call: Call | undefined) => CommonCallingHandlers;
67
49
  //# sourceMappingURL=createCommonHandlers.d.ts.map
@@ -13,10 +13,6 @@ import { LocalVideoStream } from '@azure/communication-calling';
13
13
  import { toFlatCommunicationIdentifier } from "../../../acs-ui-common/src";
14
14
  import memoizeOne from 'memoize-one';
15
15
  import { disposeAllLocalPreviewViews, _isInCall, _isInLobbyOrConnecting, _isPreviewOn } from '../utils/callUtils';
16
- /* @conditional-compile-remove(video-background-effects) */
17
- import { BackgroundBlurEffect, BackgroundReplacementEffect } from '@azure/communication-calling-effects';
18
- /* @conditional-compile-remove(video-background-effects) */
19
- import { Features } from '@azure/communication-calling';
20
16
  /**
21
17
  * @private
22
18
  */
@@ -155,8 +151,6 @@ export const createDefaultCommonCallingHandlers = memoizeOne((callClient, device
155
151
  forEveryone: forEveryone === true ? true : false
156
152
  }));
157
153
  });
158
- /* @conditional-compile-remove(PSTN-calls) */
159
- const onToggleHold = () => __awaiter(void 0, void 0, void 0, function* () { return (call === null || call === void 0 ? void 0 : call.state) === 'LocalHold' ? yield (call === null || call === void 0 ? void 0 : call.resume()) : yield (call === null || call === void 0 ? void 0 : call.hold()); });
160
154
  const onCreateLocalStreamView = (options = {
161
155
  scalingMode: 'Crop',
162
156
  isMirrored: true
@@ -244,58 +238,11 @@ export const createDefaultCommonCallingHandlers = memoizeOne((callClient, device
244
238
  // TODO: we need to remember which LocalVideoStream was used for LocalPreview and dispose that one.
245
239
  yield disposeAllLocalPreviewViews(callClient);
246
240
  });
247
- /* @conditional-compile-remove(dialpad) */ /* @conditional-compile-remove(PSTN-calls) */
248
- const onSendDtmfTone = (dtmfTone) => __awaiter(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.sendDtmf(dtmfTone)); });
249
241
  const notImplemented = () => {
250
242
  throw new Error('Not implemented, cannot call a method from an abstract object');
251
243
  };
252
- /* @conditional-compile-remove(call-readiness) */
253
- const askDevicePermission = (constrain) => __awaiter(void 0, void 0, void 0, function* () {
254
- if (deviceManager) {
255
- yield (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.askDevicePermission(constrain));
256
- }
257
- });
258
- /* @conditional-compile-remove(video-background-effects) */
259
- const onRemoveVideoBackgroundEffects = () => __awaiter(void 0, void 0, void 0, function* () {
260
- const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find(stream => stream.mediaStreamType === 'Video')) || (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find(stream => stream.mediaStreamType === 'Video'));
261
- if (stream) {
262
- return stream.feature(Features.VideoEffects).stopEffects();
263
- }
264
- });
265
- /* @conditional-compile-remove(video-background-effects) */
266
- const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter(void 0, void 0, void 0, function* () {
267
- const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find(stream => stream.mediaStreamType === 'Video')) || (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find(stream => stream.mediaStreamType === 'Video'));
268
- if (stream) {
269
- return stream.feature(Features.VideoEffects).startEffects(new BackgroundBlurEffect(backgroundBlurConfig));
270
- }
271
- });
272
- /* @conditional-compile-remove(video-background-effects) */
273
- const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter(void 0, void 0, void 0, function* () {
274
- const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find(stream => stream.mediaStreamType === 'Video')) || (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find(stream => stream.mediaStreamType === 'Video'));
275
- if (stream) {
276
- return stream.feature(Features.VideoEffects).startEffects(new BackgroundReplacementEffect(backgroundReplacementConfig));
277
- }
278
- });
279
- /* @conditional-compile-remove(close-captions) */
280
- const onStartCaptions = (options) => __awaiter(void 0, void 0, void 0, function* () {
281
- yield (call === null || call === void 0 ? void 0 : call.feature(Features.TeamsCaptions).startCaptions(options));
282
- });
283
- /* @conditional-compile-remove(close-captions) */
284
- const onStopCaptions = () => __awaiter(void 0, void 0, void 0, function* () {
285
- yield (call === null || call === void 0 ? void 0 : call.feature(Features.TeamsCaptions).stopCaptions());
286
- });
287
- /* @conditional-compile-remove(close-captions) */
288
- const onSetSpokenLanguage = (language) => __awaiter(void 0, void 0, void 0, function* () {
289
- yield (call === null || call === void 0 ? void 0 : call.feature(Features.TeamsCaptions).setSpokenLanguage(language));
290
- });
291
- /* @conditional-compile-remove(close-captions) */
292
- const onSetCaptionLanguage = (language) => __awaiter(void 0, void 0, void 0, function* () {
293
- yield (call === null || call === void 0 ? void 0 : call.feature(Features.TeamsCaptions).setCaptionLanguage(language));
294
- });
295
244
  return {
296
245
  onHangUp,
297
- /* @conditional-compile-remove(PSTN-calls) */
298
- onToggleHold,
299
246
  onSelectCamera,
300
247
  onSelectMicrophone,
301
248
  onSelectSpeaker,
@@ -309,27 +256,8 @@ export const createDefaultCommonCallingHandlers = memoizeOne((callClient, device
309
256
  onStartLocalVideo,
310
257
  onDisposeRemoteStreamView,
311
258
  onDisposeLocalStreamView,
312
- /* @conditional-compile-remove(PSTN-calls) */
313
- onAddParticipant: notImplemented,
314
259
  onRemoveParticipant: notImplemented,
315
- onStartCall: notImplemented,
316
- /* @conditional-compile-remove(dialpad) */ /* @conditional-compile-remove(PSTN-calls) */ onSendDtmfTone,
317
- /* @conditional-compile-remove(call-readiness) */
318
- askDevicePermission,
319
- /* @conditional-compile-remove(video-background-effects) */
320
- onRemoveVideoBackgroundEffects,
321
- /* @conditional-compile-remove(video-background-effects) */
322
- onBlurVideoBackground,
323
- /* @conditional-compile-remove(video-background-effects) */
324
- onReplaceVideoBackground,
325
- /* @conditional-compile-remove(close-captions) */
326
- onStartCaptions,
327
- /* @conditional-compile-remove(close-captions) */
328
- onStopCaptions,
329
- /* @conditional-compile-remove(close-captions) */
330
- onSetCaptionLanguage,
331
- /* @conditional-compile-remove(close-captions) */
332
- onSetSpokenLanguage
260
+ onStartCall: notImplemented
333
261
  };
334
262
  });
335
263
  //# sourceMappingURL=createCommonHandlers.js.map