@azure/communication-react 1.7.0-alpha-202307180021 → 1.7.0-alpha-202307210013

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 (166) hide show
  1. package/dist/communication-react.d.ts +17 -2
  2. package/dist/dist-cjs/communication-react/index.js +45 -8
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/areEqual.d.ts +0 -1
  5. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  7. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +0 -1
  8. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +16 -0
  9. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  10. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +2 -0
  11. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +9 -0
  12. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  13. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +1 -0
  14. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +6 -0
  15. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  16. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.d.ts +16 -0
  17. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js +24 -0
  18. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js.map +1 -0
  19. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +1 -0
  20. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  21. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.d.ts +0 -1
  22. package/dist/dist-esm/communication-react/src/mergedHooks.d.ts +0 -1
  23. package/dist/dist-esm/northstar-wrapper/src/index.js +1 -1
  24. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.d.ts +0 -1
  25. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.d.ts +0 -1
  26. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.d.ts +0 -1
  27. package/dist/dist-esm/react-components/src/components/Announcer.d.ts +0 -1
  28. package/dist/dist-esm/react-components/src/components/CameraButton.d.ts +0 -1
  29. package/dist/dist-esm/react-components/src/components/Caption.d.ts +0 -1
  30. package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +0 -1
  31. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +1 -1
  32. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
  33. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.d.ts +0 -1
  34. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.d.ts +0 -1
  35. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +0 -1
  36. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.d.ts +0 -1
  37. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +0 -1
  38. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.d.ts +0 -1
  39. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.d.ts +0 -1
  40. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.d.ts +0 -1
  41. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.d.ts +0 -1
  42. package/dist/dist-esm/react-components/src/components/ControlBarButton.d.ts +0 -1
  43. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.d.ts +0 -1
  44. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +0 -1
  45. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +0 -1
  46. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.d.ts +0 -1
  47. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.d.ts +0 -1
  48. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.d.ts +0 -1
  49. package/dist/dist-esm/react-components/src/components/DevicesButton.d.ts +0 -1
  50. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.d.ts +0 -1
  51. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.d.ts +0 -1
  52. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.d.ts +0 -1
  53. package/dist/dist-esm/react-components/src/components/EndCallButton.d.ts +0 -1
  54. package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +0 -1
  55. package/dist/dist-esm/react-components/src/components/FileCard.d.ts +0 -1
  56. package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +0 -1
  57. package/dist/dist-esm/react-components/src/components/FileUploadCards.d.ts +0 -1
  58. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.d.ts +0 -1
  59. package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +0 -1
  60. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.d.ts +0 -1
  61. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.d.ts +0 -1
  62. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +0 -1
  63. package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts +0 -1
  64. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +0 -1
  65. package/dist/dist-esm/react-components/src/components/ParticipantList.d.ts +0 -1
  66. package/dist/dist-esm/react-components/src/components/ParticipantsButton.d.ts +0 -1
  67. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.d.ts +0 -1
  68. package/dist/dist-esm/react-components/src/components/ScreenShareButton.d.ts +0 -1
  69. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.d.ts +0 -1
  70. package/dist/dist-esm/react-components/src/components/SendBoxErrors.d.ts +0 -1
  71. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.d.ts +0 -1
  72. package/dist/dist-esm/react-components/src/components/StreamMedia.d.ts +0 -1
  73. package/dist/dist-esm/react-components/src/components/SystemMessage.d.ts +0 -1
  74. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +2 -3
  75. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +1 -1
  76. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.d.ts +0 -1
  77. package/dist/dist-esm/react-components/src/components/TypingIndicator.d.ts +0 -1
  78. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.d.ts +0 -1
  79. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.d.ts +0 -1
  80. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.d.ts +0 -1
  81. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.d.ts +0 -1
  82. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.d.ts +0 -1
  83. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.d.ts +0 -1
  84. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js +3 -2
  85. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
  86. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.d.ts +0 -1
  87. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.d.ts +0 -1
  88. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.d.ts +0 -1
  89. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.d.ts +0 -1
  90. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.d.ts +0 -1
  91. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +0 -1
  92. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts +0 -1
  93. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +0 -1
  94. package/dist/dist-esm/react-components/src/theming/icons.d.ts +0 -1
  95. package/dist/dist-esm/react-components/src/types/OnRender.d.ts +0 -1
  96. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +0 -1
  97. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +0 -1
  98. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +0 -1
  99. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +0 -1
  100. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.d.ts +0 -1
  101. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.d.ts +0 -1
  102. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.d.ts +0 -1
  103. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.d.ts +0 -1
  104. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.d.ts +0 -1
  105. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.d.ts +0 -1
  106. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.d.ts +0 -1
  107. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -1
  108. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.d.ts +0 -1
  109. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +0 -1
  110. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.d.ts +0 -1
  111. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.d.ts +0 -1
  112. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.d.ts +0 -1
  113. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.d.ts +0 -1
  114. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +0 -1
  115. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +0 -1
  116. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.d.ts +0 -1
  117. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +0 -1
  118. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.d.ts +0 -1
  119. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.d.ts +0 -1
  120. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts +0 -1
  121. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.d.ts +0 -1
  122. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.d.ts +0 -1
  123. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +0 -1
  124. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +0 -1
  125. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +0 -1
  126. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +0 -1
  127. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.d.ts +0 -1
  128. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.d.ts +0 -1
  129. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -1
  130. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +0 -1
  131. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.d.ts +0 -1
  132. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.d.ts +0 -1
  133. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.d.ts +0 -1
  134. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -1
  135. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.d.ts +0 -1
  136. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts +0 -1
  137. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -1
  138. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.d.ts +0 -1
  139. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.d.ts +0 -1
  140. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.d.ts +0 -1
  141. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +0 -1
  142. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +0 -1
  143. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.d.ts +0 -1
  144. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +0 -1
  145. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.d.ts +0 -1
  146. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.d.ts +0 -1
  147. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.d.ts +0 -1
  148. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +0 -1
  149. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +0 -1
  150. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.d.ts +0 -1
  151. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +0 -1
  152. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +0 -1
  153. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.d.ts +0 -1
  154. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.d.ts +0 -1
  155. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.d.ts +0 -1
  156. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.d.ts +0 -1
  157. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.d.ts +0 -1
  158. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +0 -1
  159. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.d.ts +0 -1
  160. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.d.ts +0 -1
  161. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.d.ts +0 -1
  162. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +0 -1
  163. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +2 -2
  164. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +1 -1
  165. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +0 -1
  166. package/package.json +8 -8
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonStyles, ParticipantMenuItemsCallback } from "../../../../../../react-components/src";
3
2
  import { CallControlDisplayType } from '../../../common/types/CommonCallControlOptions';
4
3
  /** @private */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from "../../../../../../react-components/src";
3
2
  /**
4
3
  * @private
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonStyles } from "../../../../../../react-components/src";
3
2
  import { CallControlDisplayType } from '../../../common/types/CommonCallControlOptions';
4
3
  /** @private */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Common } from "../../../../../acs-ui-common/src";
3
2
  import { CallingHandlers, GetCallingSelector } from "../../../../../calling-component-bindings/src";
4
3
  declare type Selector = (state: any, props: any) => any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DiagnosticQuality } from '@azure/communication-calling';
3
2
  import { ActiveErrorMessage, OnRenderAvatarCallback, ParticipantMenuItemsCallback } from "../../../../../react-components/src";
4
3
  import { AvatarPersonaDataCallback } from '../../common/AvatarPersona';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActiveErrorMessage } from "../../../../../react-components/src";
3
2
  import { DeviceCheckOptions } from '../CallComposite';
4
3
  import { SidePaneRenderer } from '../components/SidePane/SidePaneProvider';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActiveErrorMessage } from "../../../../../react-components/src";
3
2
  import { CallCompositeOptions } from '../../../index-public';
4
3
  import { MobileChatSidePaneTabHeaderProps } from '../../common/TabHeader';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActiveErrorMessage } from "../../../../../react-components/src";
3
2
  import { CallCompositeOptions } from '../CallComposite';
4
3
  import { MobileChatSidePaneTabHeaderProps } from '../../common/TabHeader';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IStyle } from '@fluentui/react';
3
2
  import { CallCompositeIcons } from '../../common/icons';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OnRenderAvatarCallback } from "../../../../../react-components/src";
3
2
  import { AvatarPersonaDataCallback } from '../../common/AvatarPersona';
4
3
  import { LobbyPageProps } from './LobbyPage';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EnvironmentInfo } from '@azure/communication-calling';
3
2
  /**
4
3
  * @internal
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PartialTheme, Theme } from '@fluentui/react';
3
2
  import { CallWithChatAdapter } from './adapter/CallWithChatAdapter';
4
3
  import { BaseCompositeProps } from '../common/BaseComposite';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from "../../../../../react-components/src";
3
2
  /**
4
3
  * @private
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from "../../../../../react-components/src";
3
2
  /**
4
3
  * @private
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @private
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommunicationParticipant, MessageRenderer, MessageProps } from "../../../../react-components/src";
3
2
  import { BaseCompositeProps } from '../common/BaseComposite';
4
3
  import { ChatCompositeIcons } from '../common/icons';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as reselect from 'reselect';
3
2
  import { ChatClientState } from "../../../../chat-stateful-client/src";
4
3
  import { ChatBaseSelectorProps } from "../../../../chat-component-bindings/src";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommunicationParticipant, MessageProps, MessageRenderer, MessageThreadStyles, ParticipantMenuItemsCallback, SendBoxStylesProps, TypingIndicatorStylesProps } from "../../../../react-components/src";
3
2
  import { AvatarPersonaDataCallback } from '../common/AvatarPersona';
4
3
  import { ChatCompositeOptions } from './ChatComposite';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ParticipantMenuItemsCallback } from "../../../../react-components/src";
3
2
  import { AvatarPersonaDataCallback } from '..';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @private
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Props for {@link FileUploadButton} component.
4
3
  * @internal
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ChatHandlers, GetChatSelector } from "../../../../../chat-component-bindings/src";
3
2
  import { Common } from "../../../../../acs-ui-common/src";
4
3
  declare type Selector = (state: any, props: any) => any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CallWithChatCompositeStrings } from '../../index-public';
3
2
  import { CallCompositeStrings } from '../../index-public';
4
3
  import { PhoneNumberIdentifier } from '@azure/communication-common';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CallingDialpadStrings } from './CallingDialpad';
3
2
  import { PhoneNumberIdentifier } from '@azure/communication-common';
4
3
  import { AddPhoneNumberOptions } from '@azure/communication-calling';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IPersonaProps, PersonaInitialsColor } from '@fluentui/react';
3
2
  /**
4
3
  * Custom data attributes for displaying avatar for a user.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PhoneNumberIdentifier } from '@azure/communication-common';
3
2
  import { AddPhoneNumberOptions } from '@azure/communication-calling';
4
3
  /** @private */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /** @private */
3
2
  export declare const CaptionsBanner: (props: {
4
3
  isMobile: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from "../../../../react-components/src";
3
2
  /** @private */
4
3
  export interface CaptionsBannerMoreButtonProps extends ControlBarButtonProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /** @private */
3
2
  export declare const CaptionsSettingsModal: (props: {
4
3
  showCaptionsSettingsModal: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CallAdapter } from '../../CallComposite';
3
2
  import { ITheme } from '@fluentui/react';
4
3
  import { ControlBarButtonStyles } from "../../../../../react-components/src";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from "../../../../../react-components/src";
3
2
  import { CommonCallControlOptions } from '../types/CommonCallControlOptions';
4
3
  /** @private */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from "../../../../../react-components/src";
3
2
  /**
4
3
  * @private
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OptionsDevice } from "../../../../../react-components/src";
3
2
  import { AudioDeviceInfo } from '@azure/communication-calling';
4
3
  import { CommonCallControlOptions } from '../types/CommonCallControlOptions';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommonCallControlOptions } from '../types/CommonCallControlOptions';
3
2
  /** @private */
4
3
  export interface PreparedMoreDrawerProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CaptionsAvailableLanguageStrings } from "../../../../../react-components/src";
3
2
  /** @private */
4
3
  export interface SpokenLanguageDrawerStrings {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @private
4
3
  * hidden button to set first tab keypress focus on a specific grouping.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { _ICoordinates } from "../../../../react-components/src";
3
2
  import { ModalLocalAndRemotePIPStyles } from './styles/ModalLocalAndRemotePIP.styles';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from "../../../../react-components/src";
3
2
  /**
4
3
  * @private
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OnRenderAvatarCallback, ParticipantListProps, ParticipantMenuItemsCallback } from "../../../../react-components/src";
3
2
  import { AvatarPersonaDataCallback } from './AvatarPersona';
4
3
  declare type ParticipantContainerProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ParticipantMenuItemsCallback } from "../../../../react-components/src";
3
2
  import { AvatarPersonaDataCallback } from '../common/AvatarPersona';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /** @private */
3
2
  export interface SendDtmfDialpadStrings {
4
3
  dialpadModalAriaLabel: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @private
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /** @private */
3
2
  export interface MobileChatSidePaneTabHeaderProps {
4
3
  onClick: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActiveErrorMessage } from "../../../../react-components/src";
3
2
  import { ActiveVideoEffect } from '../CallComposite/components/SidePane/useVideoEffectsPane';
4
3
  /**
@@ -13,7 +13,7 @@ import React from 'react';
13
13
  /* @conditional-compile-remove(video-background-effects) */
14
14
  import { useCallback, useMemo } from 'react';
15
15
  /* @conditional-compile-remove(video-background-effects) */
16
- import { MessageBar, MessageBarType, Stack } from '@fluentui/react';
16
+ import { MessageBar, MessageBarType, Stack, mergeStyles } from '@fluentui/react';
17
17
  /* @conditional-compile-remove(video-background-effects) */
18
18
  import { useLocale } from '../localization';
19
19
  /* @conditional-compile-remove(video-background-effects) */
@@ -147,7 +147,7 @@ const VideoEffectsPaneTrampoline = (onDismissError, activeVideoEffectError, sele
147
147
  /* @conditional-compile-remove(video-background-effects) */
148
148
  const locale = useLocale();
149
149
  /* @conditional-compile-remove(video-background-effects) */
150
- return (React.createElement(Stack, { horizontalAlign: "center" },
150
+ return (React.createElement(Stack, { className: mergeStyles({ paddingLeft: '0.5rem' }) },
151
151
  activeVideoEffectError && isCameraOn && (React.createElement(MessageBar, { messageBarType: MessageBarType.error, onDismiss: () => onDismissError(activeVideoEffectError) }, locale.strings.call.unableToStartVideoEffect)),
152
152
  showWarning && (React.createElement(MessageBar, { messageBarType: MessageBarType.warning }, locale.strings.call.cameraOffBackgroundEffectWarningText)),
153
153
  React.createElement(_VideoBackgroundEffectsPicker, { label: locale.strings.call.videoEffectsPaneBackgroundSelectionTitle, styles: backgroundPickerStyles, options: selectableVideoEffects !== null && selectableVideoEffects !== void 0 ? selectableVideoEffects : [], onChange: onEffectChange, selectedEffectKey: selectedEffect })));
@@ -1 +1 @@
1
- {"version":3,"file":"VideoEffectsPane.js","sourceRoot":"","sources":["../../../../../../../react-composites/src/composites/common/VideoEffectsPane.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,2DAA2D;AAC3D,OAAO,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copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport React from 'react';\n/* @conditional-compile-remove(video-background-effects) */\nimport { useCallback, useMemo } from 'react';\n/* @conditional-compile-remove(video-background-effects) */\nimport { MessageBar, MessageBarType, Stack } from '@fluentui/react';\n/* @conditional-compile-remove(video-background-effects) */\nimport { useLocale } from '../localization';\nimport { ActiveErrorMessage, _VideoEffectsItemProps } from '@internal/react-components';\n/* @conditional-compile-remove(video-background-effects) */\nimport { _VideoBackgroundEffectsPicker } from '@internal/react-components';\n/* @conditional-compile-remove(video-background-effects) */\nimport {\n VideoBackgroundImage,\n VideoBackgroundBlurEffect,\n VideoBackgroundNoEffect,\n VideoBackgroundReplacementEffect\n} from '../CallComposite';\n/* @conditional-compile-remove(video-background-effects) */\nimport { activeVideoBackgroundEffectSelector } from '../CallComposite/selectors/activeVideoBackgroundEffectSelector';\n/* @conditional-compile-remove(video-background-effects) */\nimport { useSelector } from '../CallComposite/hooks/useSelector';\n/* @conditional-compile-remove(video-background-effects) */\nimport { useAdapter } from '../CallComposite/adapter/CallAdapterProvider';\n/* @conditional-compile-remove(video-background-effects) */\nimport { localVideoSelector } from '../CallComposite/selectors/localVideoStreamSelector';\nimport { ActiveVideoEffect } from '../CallComposite/components/SidePane/useVideoEffectsPane';\n\n/**\n * Pane that is used to show video effects button\n * @private\n */\n/** @beta */\nexport const VideoEffectsPaneContent = (props: {\n activeVideoEffectError?: ActiveErrorMessage;\n onDismissError: (error: ActiveErrorMessage) => void;\n activeVideoEffectChange: (effect: ActiveVideoEffect) => void;\n}): JSX.Element => {\n const {\n onDismissError,\n activeVideoEffectError,\n /* @conditional-compile-remove(video-background-effects) */\n activeVideoEffectChange\n } = props;\n /* @conditional-compile-remove(video-background-effects) */\n const locale = useLocale();\n /* @conditional-compile-remove(video-background-effects) */\n const adapter = useAdapter();\n /* @conditional-compile-remove(video-background-effects) */\n const strings = locale.strings.call;\n /* @conditional-compile-remove(video-background-effects) */\n const activeVideoEffects = useSelector(localVideoSelector).activeVideoEffects?.activeEffects;\n /* @conditional-compile-remove(video-background-effects) */\n const selectableVideoEffects: _VideoEffectsItemProps[] = useMemo(() => {\n const videoEffects: _VideoEffectsItemProps[] = [\n {\n itemKey: 'none',\n iconProps: {\n iconName: 'RemoveVideoBackgroundEffect'\n },\n title: strings.removeBackgroundEffectButtonLabel,\n tooltipProps: {\n content: strings.removeBackgroundTooltip\n }\n },\n {\n itemKey: 'blur',\n iconProps: {\n iconName: 'BlurVideoBackground'\n },\n title: strings.blurBackgroundEffectButtonLabel,\n tooltipProps: {\n content: strings.blurBackgroundTooltip\n }\n }\n ];\n const videoEffectImages = adapter.getState().videoBackgroundImages;\n\n if (videoEffectImages) {\n videoEffectImages.forEach((img: VideoBackgroundImage) => {\n videoEffects.push({\n itemKey: img.key,\n backgroundProps: {\n url: img.url\n },\n tooltipProps: {\n content: img.tooltipText ?? ''\n }\n });\n });\n }\n return videoEffects;\n }, [strings, adapter]);\n\n /* @conditional-compile-remove(video-background-effects) */\n const onEffectChange = useCallback(\n async (effectKey: string) => {\n if (effectKey === 'blur') {\n const blurEffect: VideoBackgroundBlurEffect = {\n effectName: effectKey\n };\n activeVideoEffectChange({\n type: 'blur',\n timestamp: new Date(Date.now())\n });\n await adapter.startVideoBackgroundEffect(blurEffect);\n adapter.updateSelectedVideoBackgroundEffect(blurEffect);\n } else if (effectKey === 'none') {\n const noneEffect: VideoBackgroundNoEffect = {\n effectName: effectKey\n };\n await adapter.stopVideoBackgroundEffects();\n adapter.updateSelectedVideoBackgroundEffect(noneEffect);\n } else {\n const backgroundImg = selectableVideoEffects.find((effect) => {\n return effect.itemKey === effectKey;\n });\n if (backgroundImg && backgroundImg.backgroundProps) {\n const replaceEffect: VideoBackgroundReplacementEffect = {\n effectName: 'replacement',\n key: effectKey,\n backgroundImageUrl: backgroundImg.backgroundProps.url\n };\n activeVideoEffectChange({\n type: 'replacement',\n timestamp: new Date(Date.now())\n });\n await adapter.startVideoBackgroundEffect(replaceEffect);\n adapter.updateSelectedVideoBackgroundEffect(replaceEffect);\n }\n }\n },\n [adapter, activeVideoEffectChange, selectableVideoEffects]\n );\n\n /* @conditional-compile-remove(video-background-effects) */\n if (activeVideoEffectError && activeVideoEffects && activeVideoEffects.length === 0) {\n const noneEffect: VideoBackgroundNoEffect = {\n effectName: 'none'\n };\n adapter.updateSelectedVideoBackgroundEffect(noneEffect);\n }\n return VideoEffectsPaneTrampoline(\n onDismissError,\n activeVideoEffectError,\n /* @conditional-compile-remove(video-background-effects) */\n selectableVideoEffects,\n /* @conditional-compile-remove(video-background-effects) */\n onEffectChange\n );\n};\n\nconst VideoEffectsPaneTrampoline = (\n onDismissError: (error: ActiveErrorMessage) => void,\n activeVideoEffectError?: ActiveErrorMessage,\n selectableVideoEffects?: _VideoEffectsItemProps[],\n onEffectChange?: (effectKey: string) => Promise<void>\n): JSX.Element => {\n /* @conditional-compile-remove(video-background-effects) */\n const selectedEffect = useSelector(activeVideoBackgroundEffectSelector);\n /* @conditional-compile-remove(video-background-effects) */\n const isCameraOn = useSelector(localVideoSelector).isAvailable;\n /* @conditional-compile-remove(video-background-effects) */\n const showWarning = !isCameraOn && selectedEffect !== 'none';\n /* @conditional-compile-remove(video-background-effects) */\n const locale = useLocale();\n\n /* @conditional-compile-remove(video-background-effects) */\n return (\n <Stack horizontalAlign=\"center\">\n {activeVideoEffectError && isCameraOn && (\n <MessageBar messageBarType={MessageBarType.error} onDismiss={() => onDismissError(activeVideoEffectError)}>\n {locale.strings.call.unableToStartVideoEffect}\n </MessageBar>\n )}\n {showWarning && (\n <MessageBar messageBarType={MessageBarType.warning}>\n {locale.strings.call.cameraOffBackgroundEffectWarningText}\n </MessageBar>\n )}\n <_VideoBackgroundEffectsPicker\n label={locale.strings.call.videoEffectsPaneBackgroundSelectionTitle}\n styles={backgroundPickerStyles}\n options={selectableVideoEffects ?? []}\n onChange={onEffectChange}\n selectedEffectKey={selectedEffect}\n />\n </Stack>\n );\n return <></>;\n};\n\n/* @conditional-compile-remove(video-background-effects) */\nconst backgroundPickerStyles = {\n label: {\n fontSize: '0.75rem',\n lineHeight: '0.5rem',\n fontWeight: '400'\n }\n};\n\"../../../../react-components/src\""]}
1
+ {"version":3,"file":"VideoEffectsPane.js","sourceRoot":"","sources":["../../../../../../../react-composites/src/composites/common/VideoEffectsPane.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,2DAA2D;AAC3D,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC7C,2DAA2D;AAC3D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACjF,2DAA2D;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,2DAA2D;AAC3D,OAAO,EAAE,6BAA6B,EAAE,yCAAmC;AAQ3E,2DAA2D;AAC3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,gEAAgE,CAAC;AACrH,2DAA2D;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,2DAA2D;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,2DAA2D;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAGzF;;;GAGG;AACH,YAAY;AACZ,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAIvC,EAAe,EAAE;;IAChB,MAAM,EACJ,cAAc,EACd,sBAAsB;IACtB,2DAA2D;IAC3D,uBAAuB,EACxB,GAAG,KAAK,CAAC;IACV,2DAA2D;IAC3D,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,2DAA2D;IAC3D,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,2DAA2D;IAC3D,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CA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,EACnE,MAAM,EAAE,sBAAsB,EAC9B,OAAO,EAAE,sBAAsB,aAAtB,sBAAsB,cAAtB,sBAAsB,GAAI,EAAE,EACrC,QAAQ,EAAE,cAAc,EACxB,iBAAiB,EAAE,cAAc,GACjC,CACI,CACT,CAAC;IACF,OAAO,yCAAK,CAAC;AACf,CAAC,CAAC;AAEF,2DAA2D;AAC3D,MAAM,sBAAsB,GAAG;IAC7B,KAAK,EAAE;QACL,QAAQ,EAAE,SAAS;QACnB,UAAU,EAAE,QAAQ;QACpB,UAAU,EAAE,KAAK;KAClB;CACF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport React from 'react';\n/* @conditional-compile-remove(video-background-effects) */\nimport { useCallback, useMemo } from 'react';\n/* @conditional-compile-remove(video-background-effects) */\nimport { MessageBar, MessageBarType, Stack, mergeStyles } from '@fluentui/react';\n/* @conditional-compile-remove(video-background-effects) */\nimport { useLocale } from '../localization';\nimport { ActiveErrorMessage, _VideoEffectsItemProps } from '@internal/react-components';\n/* @conditional-compile-remove(video-background-effects) */\nimport { _VideoBackgroundEffectsPicker } from '@internal/react-components';\n/* @conditional-compile-remove(video-background-effects) */\nimport {\n VideoBackgroundImage,\n VideoBackgroundBlurEffect,\n VideoBackgroundNoEffect,\n VideoBackgroundReplacementEffect\n} from '../CallComposite';\n/* @conditional-compile-remove(video-background-effects) */\nimport { activeVideoBackgroundEffectSelector } from '../CallComposite/selectors/activeVideoBackgroundEffectSelector';\n/* @conditional-compile-remove(video-background-effects) */\nimport { useSelector } from '../CallComposite/hooks/useSelector';\n/* @conditional-compile-remove(video-background-effects) */\nimport { useAdapter } from '../CallComposite/adapter/CallAdapterProvider';\n/* @conditional-compile-remove(video-background-effects) */\nimport { localVideoSelector } from '../CallComposite/selectors/localVideoStreamSelector';\nimport { ActiveVideoEffect } from '../CallComposite/components/SidePane/useVideoEffectsPane';\n\n/**\n * Pane that is used to show video effects button\n * @private\n */\n/** @beta */\nexport const VideoEffectsPaneContent = (props: {\n activeVideoEffectError?: ActiveErrorMessage;\n onDismissError: (error: ActiveErrorMessage) => void;\n activeVideoEffectChange: (effect: ActiveVideoEffect) => void;\n}): JSX.Element => {\n const {\n onDismissError,\n activeVideoEffectError,\n /* @conditional-compile-remove(video-background-effects) */\n activeVideoEffectChange\n } = props;\n /* @conditional-compile-remove(video-background-effects) */\n const locale = useLocale();\n /* @conditional-compile-remove(video-background-effects) */\n const adapter = useAdapter();\n /* @conditional-compile-remove(video-background-effects) */\n const strings = locale.strings.call;\n /* @conditional-compile-remove(video-background-effects) */\n const activeVideoEffects = useSelector(localVideoSelector).activeVideoEffects?.activeEffects;\n /* @conditional-compile-remove(video-background-effects) */\n const selectableVideoEffects: _VideoEffectsItemProps[] = useMemo(() => {\n const videoEffects: _VideoEffectsItemProps[] = [\n {\n itemKey: 'none',\n iconProps: {\n iconName: 'RemoveVideoBackgroundEffect'\n },\n title: strings.removeBackgroundEffectButtonLabel,\n tooltipProps: {\n content: strings.removeBackgroundTooltip\n }\n },\n {\n itemKey: 'blur',\n iconProps: {\n iconName: 'BlurVideoBackground'\n },\n title: strings.blurBackgroundEffectButtonLabel,\n tooltipProps: {\n content: strings.blurBackgroundTooltip\n }\n }\n ];\n const videoEffectImages = adapter.getState().videoBackgroundImages;\n\n if (videoEffectImages) {\n videoEffectImages.forEach((img: VideoBackgroundImage) => {\n videoEffects.push({\n itemKey: img.key,\n backgroundProps: {\n url: img.url\n },\n tooltipProps: {\n content: img.tooltipText ?? ''\n }\n });\n });\n }\n return videoEffects;\n }, [strings, adapter]);\n\n /* @conditional-compile-remove(video-background-effects) */\n const onEffectChange = useCallback(\n async (effectKey: string) => {\n if (effectKey === 'blur') {\n const blurEffect: VideoBackgroundBlurEffect = {\n effectName: effectKey\n };\n activeVideoEffectChange({\n type: 'blur',\n timestamp: new Date(Date.now())\n });\n await adapter.startVideoBackgroundEffect(blurEffect);\n adapter.updateSelectedVideoBackgroundEffect(blurEffect);\n } else if (effectKey === 'none') {\n const noneEffect: VideoBackgroundNoEffect = {\n effectName: effectKey\n };\n await adapter.stopVideoBackgroundEffects();\n adapter.updateSelectedVideoBackgroundEffect(noneEffect);\n } else {\n const backgroundImg = selectableVideoEffects.find((effect) => {\n return effect.itemKey === effectKey;\n });\n if (backgroundImg && backgroundImg.backgroundProps) {\n const replaceEffect: VideoBackgroundReplacementEffect = {\n effectName: 'replacement',\n key: effectKey,\n backgroundImageUrl: backgroundImg.backgroundProps.url\n };\n activeVideoEffectChange({\n type: 'replacement',\n timestamp: new Date(Date.now())\n });\n await adapter.startVideoBackgroundEffect(replaceEffect);\n adapter.updateSelectedVideoBackgroundEffect(replaceEffect);\n }\n }\n },\n [adapter, activeVideoEffectChange, selectableVideoEffects]\n );\n\n /* @conditional-compile-remove(video-background-effects) */\n if (activeVideoEffectError && activeVideoEffects && activeVideoEffects.length === 0) {\n const noneEffect: VideoBackgroundNoEffect = {\n effectName: 'none'\n };\n adapter.updateSelectedVideoBackgroundEffect(noneEffect);\n }\n return VideoEffectsPaneTrampoline(\n onDismissError,\n activeVideoEffectError,\n /* @conditional-compile-remove(video-background-effects) */\n selectableVideoEffects,\n /* @conditional-compile-remove(video-background-effects) */\n onEffectChange\n );\n};\n\nconst VideoEffectsPaneTrampoline = (\n onDismissError: (error: ActiveErrorMessage) => void,\n activeVideoEffectError?: ActiveErrorMessage,\n selectableVideoEffects?: _VideoEffectsItemProps[],\n onEffectChange?: (effectKey: string) => Promise<void>\n): JSX.Element => {\n /* @conditional-compile-remove(video-background-effects) */\n const selectedEffect = useSelector(activeVideoBackgroundEffectSelector);\n /* @conditional-compile-remove(video-background-effects) */\n const isCameraOn = useSelector(localVideoSelector).isAvailable;\n /* @conditional-compile-remove(video-background-effects) */\n const showWarning = !isCameraOn && selectedEffect !== 'none';\n /* @conditional-compile-remove(video-background-effects) */\n const locale = useLocale();\n\n /* @conditional-compile-remove(video-background-effects) */\n return (\n <Stack className={mergeStyles({ paddingLeft: '0.5rem' })}>\n {activeVideoEffectError && isCameraOn && (\n <MessageBar messageBarType={MessageBarType.error} onDismiss={() => onDismissError(activeVideoEffectError)}>\n {locale.strings.call.unableToStartVideoEffect}\n </MessageBar>\n )}\n {showWarning && (\n <MessageBar messageBarType={MessageBarType.warning}>\n {locale.strings.call.cameraOffBackgroundEffectWarningText}\n </MessageBar>\n )}\n <_VideoBackgroundEffectsPicker\n label={locale.strings.call.videoEffectsPaneBackgroundSelectionTitle}\n styles={backgroundPickerStyles}\n options={selectableVideoEffects ?? []}\n onChange={onEffectChange}\n selectedEffectKey={selectedEffect}\n />\n </Stack>\n );\n return <></>;\n};\n\n/* @conditional-compile-remove(video-background-effects) */\nconst backgroundPickerStyles = {\n label: {\n fontSize: '0.75rem',\n lineHeight: '0.5rem',\n fontWeight: '400'\n }\n};\n\"../../../../react-components/src\""]}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IIconProps } from '@fluentui/react';
3
2
  /**
4
3
  * The default set of icons used by the composites directly (i.e. not via the components defined in this library).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/communication-react",
3
- "version": "1.7.0-alpha-202307180021",
3
+ "version": "1.7.0-alpha-202307210013",
4
4
  "sideEffects": false,
5
5
  "description": "React library for building modern communication user experiences utilizing Azure Communication Services",
6
6
  "keywords": [
@@ -95,13 +95,13 @@
95
95
  "@azure/core-auth": "^1.4.0",
96
96
  "@babel/cli": "~7.16.0",
97
97
  "@babel/core": "~7.16.0",
98
- "@internal/calling-component-bindings": "1.7.0-alpha-202307180021",
99
- "@internal/calling-stateful-client": "1.7.0-alpha-202307180021",
100
- "@internal/chat-component-bindings": "1.7.0-alpha-202307180021",
101
- "@internal/chat-stateful-client": "1.7.0-alpha-202307180021",
102
- "@internal/fake-backends": "1.7.0-alpha-202307180021",
103
- "@internal/react-components": "1.7.0-alpha-202307180021",
104
- "@internal/react-composites": "1.7.0-alpha-202307180021",
98
+ "@internal/calling-component-bindings": "1.7.0-alpha-202307210013",
99
+ "@internal/calling-stateful-client": "1.7.0-alpha-202307210013",
100
+ "@internal/chat-component-bindings": "1.7.0-alpha-202307210013",
101
+ "@internal/chat-stateful-client": "1.7.0-alpha-202307210013",
102
+ "@internal/fake-backends": "1.7.0-alpha-202307210013",
103
+ "@internal/react-components": "1.7.0-alpha-202307210013",
104
+ "@internal/react-composites": "1.7.0-alpha-202307210013",
105
105
  "@fluentui/react-northstar": "0.61.0",
106
106
  "@microsoft/api-documenter": "~7.12.11",
107
107
  "@microsoft/api-extractor": "~7.18.0",