@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
  /** @private */
3
2
  export declare type AnnouncerMessageBag = {
4
3
  message: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /** @private */
3
2
  declare const LiveMessage: (props: {
4
3
  message: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /** @private */
3
2
  declare const MessageBlock: (props: {
4
3
  message: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @internal
4
3
  * aria props for this hidden component.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { VideoStreamOptions } from '../types';
3
2
  import { ControlBarButtonProps } from './ControlBarButton';
4
3
  import { IContextualMenuItemStyles, IContextualMenuStyles } from '@fluentui/react';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OnRenderAvatarCallback } from '../types';
3
2
  import { _CaptionsInfo } from './CaptionsBanner';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OnRenderAvatarCallback } from '../types';
3
2
  /**
4
3
  * @internal
@@ -32,7 +32,7 @@ export const _CaptionsBanner = (props) => {
32
32
  return () => {
33
33
  captionsScrollDiv === null || captionsScrollDiv === void 0 ? void 0 : captionsScrollDiv.removeEventListener('scroll', handleScrollToTheBottom);
34
34
  };
35
- }, [handleScrollToTheBottom]);
35
+ }, [handleScrollToTheBottom, isCaptionsOn]);
36
36
  useEffect(() => {
37
37
  // only auto scroll to bottom is already is at bottom of scroll before new caption comes in
38
38
  if (isAtBottomOfScroll) {
@@ -1 +1 @@
1
- {"version":3,"file":"CaptionsBanner.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/CaptionsBanner.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { Stack, FocusZone, Spinner } from '@fluentui/react';\nimport React, { useEffect, useRef, useState, useCallback } from 'react';\nimport { _FileUploadCardsStrings } from './FileUploadCards';\nimport { Ref } from '@internal/northstar-wrapper';\nimport { _Caption } from './Caption';\nimport {\n captionContainerClassName,\n captionsBannerClassName,\n captionsContainerClassName,\n loadingBannerClassName\n} from './styles/Captions.style';\nimport { OnRenderAvatarCallback } from '../types';\n\n/**\n * @internal\n * information required for each line of caption\n */\nexport type _CaptionsInfo = {\n id: string;\n displayName: string;\n captionText: string;\n userId?: string;\n};\n\n/**\n * @internal\n * strings for captions banner\n */\nexport interface _CaptionsBannerStrings {\n captionsBannerSpinnerText?: string;\n}\n\n/**\n * @internal\n * _CaptionsBanner Component Props.\n */\nexport interface _CaptionsBannerProps {\n captions: _CaptionsInfo[];\n isCaptionsOn?: boolean;\n startCaptionsInProgress?: boolean;\n /**\n * Optional callback to override render of the avatar.\n *\n * @param userId - user Id\n */\n onRenderAvatar?: OnRenderAvatarCallback;\n strings?: _CaptionsBannerStrings;\n /**\n * Optional form factor for the component.\n * @defaultValue 'default'\n */\n formFactor?: 'default' | 'compact';\n}\n\n/**\n * @internal\n * A component for displaying a CaptionsBanner with user icon, displayName and captions text.\n */\nexport const _CaptionsBanner = (props: _CaptionsBannerProps): JSX.Element => {\n const { captions, isCaptionsOn, startCaptionsInProgress, onRenderAvatar, strings, formFactor = 'default' } = props;\n const captionsScrollDivRef = useRef<HTMLElement>(null);\n const [isAtBottomOfScroll, setIsAtBottomOfScroll] = useState<boolean>(true);\n\n const scrollToBottom = (): void => {\n if (captionsScrollDivRef.current) {\n captionsScrollDivRef.current.scrollTop = captionsScrollDivRef.current.scrollHeight;\n }\n };\n\n const handleScrollToTheBottom = useCallback((): void => {\n if (!captionsScrollDivRef.current) {\n return;\n }\n const atBottom =\n Math.ceil(captionsScrollDivRef.current.scrollTop) >=\n captionsScrollDivRef.current.scrollHeight - captionsScrollDivRef.current.clientHeight;\n\n setIsAtBottomOfScroll(atBottom);\n }, []);\n\n useEffect(() => {\n const captionsScrollDiv = captionsScrollDivRef.current;\n captionsScrollDiv?.addEventListener('scroll', handleScrollToTheBottom);\n\n return () => {\n captionsScrollDiv?.removeEventListener('scroll', handleScrollToTheBottom);\n };\n }, [handleScrollToTheBottom]);\n\n useEffect(() => {\n // only auto scroll to bottom is already is at bottom of scroll before new caption comes in\n if (isAtBottomOfScroll) {\n scrollToBottom();\n }\n }, [captions, isAtBottomOfScroll]);\n\n return (\n <>\n {startCaptionsInProgress && (\n <FocusZone as=\"ul\" className={captionsContainerClassName}>\n {isCaptionsOn && (\n <Ref innerRef={captionsScrollDivRef}>\n <Stack verticalAlign=\"start\" styles={captionsBannerClassName(formFactor)}>\n {captions.map((caption) => {\n return (\n <div key={caption.id} className={captionContainerClassName} data-is-focusable={true}>\n <_Caption {...caption} onRenderAvatar={onRenderAvatar} />\n </div>\n );\n })}\n </Stack>\n </Ref>\n )}\n {!isCaptionsOn && (\n <Stack verticalAlign=\"center\" className={loadingBannerClassName} data-is-focusable={true}>\n <Spinner label={strings?.captionsBannerSpinnerText} ariaLive=\"assertive\" labelPosition=\"right\" />\n </Stack>\n )}\n </FocusZone>\n )}\n </>\n );\n};\n\"../../../northstar-wrapper/src\""]}
1
+ {"version":3,"file":"CaptionsBanner.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/CaptionsBanner.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { Stack, FocusZone, Spinner } from '@fluentui/react';\nimport React, { useEffect, useRef, useState, useCallback } from 'react';\nimport { _FileUploadCardsStrings } from './FileUploadCards';\nimport { Ref } from '@internal/northstar-wrapper';\nimport { _Caption } from './Caption';\nimport {\n captionContainerClassName,\n captionsBannerClassName,\n captionsContainerClassName,\n loadingBannerClassName\n} from './styles/Captions.style';\nimport { OnRenderAvatarCallback } from '../types';\n\n/**\n * @internal\n * information required for each line of caption\n */\nexport type _CaptionsInfo = {\n id: string;\n displayName: string;\n captionText: string;\n userId?: string;\n};\n\n/**\n * @internal\n * strings for captions banner\n */\nexport interface _CaptionsBannerStrings {\n captionsBannerSpinnerText?: string;\n}\n\n/**\n * @internal\n * _CaptionsBanner Component Props.\n */\nexport interface _CaptionsBannerProps {\n captions: _CaptionsInfo[];\n isCaptionsOn?: boolean;\n startCaptionsInProgress?: boolean;\n /**\n * Optional callback to override render of the avatar.\n *\n * @param userId - user Id\n */\n onRenderAvatar?: OnRenderAvatarCallback;\n strings?: _CaptionsBannerStrings;\n /**\n * Optional form factor for the component.\n * @defaultValue 'default'\n */\n formFactor?: 'default' | 'compact';\n}\n\n/**\n * @internal\n * A component for displaying a CaptionsBanner with user icon, displayName and captions text.\n */\nexport const _CaptionsBanner = (props: _CaptionsBannerProps): JSX.Element => {\n const { captions, isCaptionsOn, startCaptionsInProgress, onRenderAvatar, strings, formFactor = 'default' } = props;\n const captionsScrollDivRef = useRef<HTMLElement>(null);\n const [isAtBottomOfScroll, setIsAtBottomOfScroll] = useState<boolean>(true);\n\n const scrollToBottom = (): void => {\n if (captionsScrollDivRef.current) {\n captionsScrollDivRef.current.scrollTop = captionsScrollDivRef.current.scrollHeight;\n }\n };\n\n const handleScrollToTheBottom = useCallback((): void => {\n if (!captionsScrollDivRef.current) {\n return;\n }\n const atBottom =\n Math.ceil(captionsScrollDivRef.current.scrollTop) >=\n captionsScrollDivRef.current.scrollHeight - captionsScrollDivRef.current.clientHeight;\n\n setIsAtBottomOfScroll(atBottom);\n }, []);\n\n useEffect(() => {\n const captionsScrollDiv = captionsScrollDivRef.current;\n captionsScrollDiv?.addEventListener('scroll', handleScrollToTheBottom);\n\n return () => {\n captionsScrollDiv?.removeEventListener('scroll', handleScrollToTheBottom);\n };\n }, [handleScrollToTheBottom, isCaptionsOn]);\n\n useEffect(() => {\n // only auto scroll to bottom is already is at bottom of scroll before new caption comes in\n if (isAtBottomOfScroll) {\n scrollToBottom();\n }\n }, [captions, isAtBottomOfScroll]);\n\n return (\n <>\n {startCaptionsInProgress && (\n <FocusZone as=\"ul\" className={captionsContainerClassName}>\n {isCaptionsOn && (\n <Ref innerRef={captionsScrollDivRef}>\n <Stack verticalAlign=\"start\" styles={captionsBannerClassName(formFactor)}>\n {captions.map((caption) => {\n return (\n <div key={caption.id} className={captionContainerClassName} data-is-focusable={true}>\n <_Caption {...caption} onRenderAvatar={onRenderAvatar} />\n </div>\n );\n })}\n </Stack>\n </Ref>\n )}\n {!isCaptionsOn && (\n <Stack verticalAlign=\"center\" className={loadingBannerClassName} data-is-focusable={true}>\n <Spinner label={strings?.captionsBannerSpinnerText} ariaLive=\"assertive\" labelPosition=\"right\" />\n </Stack>\n )}\n </FocusZone>\n )}\n </>\n );\n};\n\"../../../northstar-wrapper/src\""]}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { _captionsOptions } from './StartCaptionsButton';
3
2
  import { CaptionsAvailableLanguageStrings } from '../types';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Target } from '@fluentui/react';
3
2
  import { OnRenderAvatarCallback } from '../../types';
4
3
  import { MessageThreadStrings } from '../MessageThread';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MessageThreadStrings } from '../MessageThread';
3
2
  import { ChatMessage, ComponentSlotStyle, OnRenderAvatarCallback } from '../../types';
4
3
  import { BlockedMessage } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MessageThreadStrings } from '../MessageThread';
3
2
  import { ChatMessage } from '../../types';
4
3
  import { FileMetadata } from '../FileDownloadCards';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ChatMessage } from '../../types/ChatMessage';
3
2
  import { BlockedMessage } from '../../types/ChatMessage';
4
3
  import { MentionDisplayOptions } from '../MentionPopover';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Mention } from '../MentionPopover';
3
2
  /**
4
3
  * Provides the default implementation for rendering an Mention in a message thread
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { _ComplianceBannerStrings } from './types';
3
2
  import { ComplianceBannerVariant } from './Utils';
4
3
  /** @private */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { _ComplianceBannerProps } from './types';
3
2
  /**
4
3
  * A component that displays banners to notify the user when call recording and
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { _ComplianceBannerStrings } from './types';
3
2
  import { ComplianceBannerVariant } from './Utils';
4
3
  /** @private */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IButtonProps, IRenderFunction, IButtonStyles } from '@fluentui/react';
3
2
  /**
4
3
  * Strings of {@link ControlBarButton} that can be overridden.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ITooltipHostProps } from '@fluentui/react';
3
2
  /**
4
3
  * Tooltip that should wrap control bar buttons.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IButtonStyles, ILinkStyles } from '@fluentui/react';
3
2
  import { BaseCustomStyles } from '../../types';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BrowserPermissionDeniedProps, BrowserPermissionDeniedStrings } from './BrowserPermissionDenied';
3
2
  /**
4
3
  * @beta
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDropdownOption, IDropdownStyles } from '@fluentui/react';
3
2
  /**
4
3
  * Strings of {@link DevicePermissionDropdown} that can be overridden.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SitePermissionsStrings, SitePermissionsStyles } from './SitePermissionsScaffolding';
3
2
  /**
4
3
  * @beta
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ILinkStyles, IButtonStyles } from '@fluentui/react';
3
2
  import { BaseCustomStyles } from '../../types';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IContextualMenuItem, IContextualMenuItemStyles, IContextualMenuStyles } from '@fluentui/react';
3
2
  import { ControlBarButtonProps, ControlBarButtonStyles } from './ControlBarButton';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IStyle, IButtonStyles, ITextFieldStyles } from '@fluentui/react';
3
2
  /**
4
3
  * Strings of {@link Dialpad} that can be overridden.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseCustomStyles } from '../../types';
3
2
  /**
4
3
  * An element that fills the space the DrawerContentContainer does not take up.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseCustomStyles } from '../../types';
3
2
  import { _DrawerMenuItemProps } from './DrawerMenuItem';
4
3
  import { _DrawerSurfaceStyles } from './DrawerSurface';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from './ControlBarButton';
3
2
  /**
4
3
  * Strings of {@link EndCallButton} that can be overridden.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IMessageBarProps } from '@fluentui/react';
3
2
  /**
4
3
  * Props for {@link ErrorBar}.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { _FileUploadCardsStrings } from './FileUploadCards';
3
2
  /**
4
3
  * @internal
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @beta
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActiveFileUpload } from './SendBox';
3
2
  /**
4
3
  * Strings of _FileUploadCards that can be overridden.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @internal
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from './ControlBarButton';
3
2
  /**
4
3
  *@beta
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OptionsDevice } from './DevicesButton';
3
2
  /**
4
3
  * @public
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MessageStatus } from "../../../acs-ui-common/src";
3
2
  import { BaseCustomStyles } from '../types';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IStyle } from '@fluentui/react';
3
2
  import { BaseCustomStyles, ChatMessage, CustomMessage, SystemMessage, OnRenderAvatarCallback, Message, ReadReceiptsBySenderId, ComponentSlotStyle } from '../types';
4
3
  import { BlockedMessage } from '../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from './ControlBarButton';
3
2
  import { IContextualMenuItemStyles, IContextualMenuStyles } from '@fluentui/react';
4
3
  import { ControlBarButtonStyles } from './ControlBarButton';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IContextualMenuItem, IStyle, PersonaPresence } from '@fluentui/react';
3
2
  import { BaseCustomStyles, OnRenderAvatarCallback } from '../types';
4
3
  import { ParticipantState } from '../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IContextualMenuItem, IContextualMenuItemStyles } from '@fluentui/react';
3
2
  import { BaseCustomStyles, OnRenderAvatarCallback, ParticipantListParticipant } from '../types';
4
3
  import { ParticipantItemStyles } from './ParticipantItem';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IContextualMenuStyles, IContextualMenuItemStyles } from '@fluentui/react';
3
2
  import { ParticipantListProps, ParticipantListStyles, ParticipantMenuItemsCallback } from './ParticipantList';
4
3
  import { ControlBarButtonProps, ControlBarButtonStyles } from './ControlBarButton';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { _PictureInPictureInPictureTileProps } from './PictureInPictureInPictureTile';
3
2
  /**
4
3
  * Strings of {@link _PictureInPictureInPicture} that can be overridden.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from './ControlBarButton';
3
2
  /**
4
3
  * Strings of {@link ScreenShareButton} that can be overridden.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @beta
4
3
  * Error to be displayed to the user in an error bar above sendbox.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SendBoxErrorBarError } from './SendBoxErrorBar';
3
2
  /**
4
3
  * @private
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from './ControlBarButton';
3
2
  /**
4
3
  * options bag to start captions
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseCustomStyles } from '../types';
3
2
  /**
4
3
  * Whether the stream is loading or not.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ComponentSlotStyle } from '../types';
3
2
  /**
4
3
  * Todo: We need to add more types of system messages that we support.
@@ -405,9 +405,8 @@ export const TextFieldWithMention = (props) => {
405
405
  // Update the caret position, used for positioning the suggestions popover
406
406
  const textField = event.currentTarget;
407
407
  const relativePosition = Caret.getRelativePosition(textField);
408
- const adjustOffset = Math.max(0, textField.scrollHeight - textField.clientHeight);
409
- if (relativePosition.top > adjustOffset) {
410
- relativePosition.top -= adjustOffset;
408
+ if (textField.scrollHeight > textField.clientHeight) {
409
+ relativePosition.top -= textField.scrollTop;
411
410
  }
412
411
  setCaretPosition(relativePosition);
413
412
  if (triggerPriorIndex !== undefined) {