@azure/communication-react 1.0.0-beta.8 → 1.0.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.
- package/CHANGELOG.json +677 -0
- package/CHANGELOG.md +89 -14
- package/dist/communication-react.d.ts +25 -220
- package/dist/dist-cjs/communication-react/index.js +970 -1792
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/index.d.ts +1 -1
- package/dist/dist-esm/acs-ui-common/src/index.d.ts.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/index.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/localizationUtils.d.ts +0 -17
- package/dist/dist-esm/acs-ui-common/src/localizationUtils.d.ts.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/localizationUtils.js +0 -41
- package/dist/dist-esm/acs-ui-common/src/localizationUtils.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +12 -6
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.d.ts.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js +2 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.d.ts.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js +2 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.d.ts.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +22 -3
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.d.ts.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +7 -2
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/StreamUtils.d.ts.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +6 -3
- package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +3 -2
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.d.ts.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js +2 -1
- package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/providers/ChatClientProvider.d.ts.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/providers/ChatClientProvider.js +2 -1
- package/dist/dist-esm/chat-component-bindings/src/providers/ChatClientProvider.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.d.ts.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js +2 -1
- package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/ChatContext.d.ts.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +2 -1
- package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.d.ts.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +10 -2
- package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/CameraButton.d.ts +3 -1
- package/dist/dist-esm/react-components/src/components/CameraButton.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/CameraButton.js +4 -4
- package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +2 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +21 -40
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ControlBarButton.d.ts +5 -1
- package/dist/dist-esm/react-components/src/components/ControlBarButton.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/ControlBarButton.js +10 -12
- package/dist/dist-esm/react-components/src/components/ControlBarButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/DevicesButton.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/DevicesButton.js +22 -3
- package/dist/dist-esm/react-components/src/components/DevicesButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/GridLayout.d.ts +7 -0
- package/dist/dist-esm/react-components/src/components/GridLayout.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/GridLayout.js +47 -46
- package/dist/dist-esm/react-components/src/components/GridLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/HorizontalGallery.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/HorizontalGallery.js +0 -2
- package/dist/dist-esm/react-components/src/components/HorizontalGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js +4 -4
- package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.js +6 -4
- package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts +2 -0
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantItem.js +18 -2
- package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantsButton.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantsButton.js +27 -4
- package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +2 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +21 -9
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ScreenShareButton.d.ts +2 -0
- package/dist/dist-esm/react-components/src/components/ScreenShareButton.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +17 -2
- package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/SendBox.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/SendBox.js +2 -1
- package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/SystemMessage.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/SystemMessage.js +2 -2
- package/dist/dist-esm/react-components/src/components/SystemMessage.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/TypingIndicator.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/TypingIndicator.js +81 -9
- package/dist/dist-esm/react-components/src/components/TypingIndicator.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.d.ts +8 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +14 -9
- package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +3 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery.js +23 -14
- package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoTile.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoTile.js +6 -4
- package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.d.ts +0 -4
- package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js +8 -10
- package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.d.ts +0 -4
- package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.js +0 -7
- package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js +1 -0
- package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.d.ts +0 -4
- package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.js +3 -13
- package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.d.ts +10 -0
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +15 -17
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js +2 -1
- package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +20 -7
- package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +18 -6
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +4 -1
- package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +20 -7
- package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +20 -7
- package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +20 -7
- package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +20 -7
- package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +20 -7
- package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +20 -7
- package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +20 -7
- package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +20 -7
- package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +20 -7
- package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +20 -7
- package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +20 -7
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +5 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +4 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +15 -13
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +29 -6
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ComplianceBanner.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ComplianceBanner.js +21 -7
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ComplianceBanner.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +32 -27
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +5 -5
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.d.ts +1 -5
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js +0 -12
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +5 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -7
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +9 -16
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +12 -6
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.d.ts +5 -0
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js +9 -0
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/index.d.ts +0 -1
- package/dist/dist-esm/react-composites/src/composites/index.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/index.js +0 -1
- package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +11 -4
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +12 -5
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +3 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +11 -4
- package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +12 -5
- package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +11 -4
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +12 -5
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +12 -5
- package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +11 -4
- package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +11 -4
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +12 -5
- package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +11 -4
- package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +11 -4
- package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +11 -4
- package/package.json +9 -11
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/ChatButton.d.ts +0 -7
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/ChatButton.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/ChatButton.js +0 -16
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/ChatButton.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingCallControlBar.d.ts +0 -19
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingCallControlBar.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingCallControlBar.js +0 -38
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingCallControlBar.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingComposite.d.ts +0 -35
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingComposite.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingComposite.js +0 -59
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/MeetingComposite.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/PeopleButton.d.ts +0 -7
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/PeopleButton.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/PeopleButton.js +0 -16
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/PeopleButton.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/SidePane.d.ts +0 -24
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/SidePane.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/SidePane.js +0 -76
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/SidePane.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/AzureCommunicationMeetingAdapter.d.ts +0 -129
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/AzureCommunicationMeetingAdapter.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/AzureCommunicationMeetingAdapter.js +0 -385
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/AzureCommunicationMeetingAdapter.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingAdapter.d.ts +0 -73
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingAdapter.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingAdapter.js +0 -4
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingAdapter.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedCallAdapter.d.ts +0 -40
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedCallAdapter.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedCallAdapter.js +0 -100
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedCallAdapter.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedChatAdapter.d.ts +0 -30
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedChatAdapter.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedChatAdapter.js +0 -78
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/adapter/MeetingBackedChatAdapter.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/index.d.ts +0 -10
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/index.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/index.js +0 -5
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/index.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingAdapterState.d.ts +0 -50
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingAdapterState.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingAdapterState.js +0 -50
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingAdapterState.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingCompositePage.d.ts +0 -21
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingCompositePage.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingCompositePage.js +0 -41
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingCompositePage.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingEndReason.d.ts +0 -8
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingEndReason.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingEndReason.js +0 -4
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingEndReason.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingParticipants.d.ts +0 -35
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingParticipants.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingParticipants.js +0 -51
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingParticipants.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingState.d.ts +0 -42
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingState.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingState.js +0 -72
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/state/MeetingState.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/MeetingCompositeStyles.d.ts +0 -6
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/MeetingCompositeStyles.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/MeetingCompositeStyles.js +0 -17
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/MeetingCompositeStyles.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/SidePane.styles.d.ts +0 -38
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/SidePane.styles.d.ts.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/SidePane.styles.js +0 -63
- package/dist/dist-esm/react-composites/src/composites/MeetingComposite/styles/SidePane.styles.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParticipantsButton.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/ParticipantsButton.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,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IAAI,CAAC,EAAE,GAAG,EAAE,sBAAsB,EAAE,QAAQ,EAAE,sBAAsB,CAAC,OAAO,EAAE,CAAC,CAAC;YAEtF,IAAI,SAAS,EAAE;gBACb,KAAK,CAAC,IAAI,CAAC;oBACT,GAAG,EAAE,YAAY;oBACjB,IAAI,EAAE,OAAO,CAAC,kBAAkB;oBAChC,KAAK,EAAE,OAAO,CAAC,kBAAkB;oBACjC,MAAM,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,0CAAE,cAAc;oBAC1C,SAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;oBAClC,OAAO,EAAE,iBAAiB;iBAC3B,CAAC,CAAC;aACJ;SACF;QAED,OAAO,KAAK,CAAC;IACf,CAAC,EAAE;QACD,gBAAgB;QAChB,uBAAuB;QACvB,sBAAsB;QACtB,SAAS;QACT,OAAO,CAAC,kBAAkB;QAC1B,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,0CAAE,cAAc;QAClC,iBAAiB;KAClB,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAyB,EAAE;;QAC1D,MAAM,SAAS,GAAyB;YACtC,KAAK,EAAE,OAAO,CAAC,UAAU;YACzB,MAAM,EAAE,KAAK,CAAC,gCAAgC,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,CAAC;YACnE,KAAK,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"ParticipantsButton.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/ParticipantsButton.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,sBAAsB,EAGtB,IAAI,EAGJ,KAAK,EACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,mCAAgC;AACxD,OAAO,IAAI,MAAM,mBAAmB,CAAC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAA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,CAAC,+BAA+B;QACnC,uCAAuC;QACvC,cAAc;KACf,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,gBAAgB,oBACX,KAAK,IACT,SAAS,EAAE,MAAA,KAAK,CAAC,SAAS,mCAAI,gBAAgB,EAC9C,aAAa,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAC/B,YAAY,EAAE,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,kBAAkB,EAChD,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAA,KAAK,CAAC,QAAQ,mCAAI,yBAAyB,IACrD,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -12,9 +12,10 @@ export declare const RemoteVideoTile: React.MemoExoticComponent<(props: {
|
|
|
12
12
|
isAvailable?: boolean | undefined;
|
|
13
13
|
isMuted?: boolean | undefined;
|
|
14
14
|
isSpeaking?: boolean | undefined;
|
|
15
|
+
isScreenSharingOn?: boolean | undefined;
|
|
15
16
|
renderElement?: HTMLElement | undefined;
|
|
16
17
|
displayName?: string | undefined;
|
|
17
|
-
|
|
18
|
+
remoteVideoViewOptions?: VideoStreamOptions | undefined;
|
|
18
19
|
onRenderAvatar?: OnRenderAvatarCallback | undefined;
|
|
19
20
|
showMuteIndicator?: boolean | undefined;
|
|
20
21
|
}) => JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteVideoTile.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/RemoteVideoTile.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAItE;;;;GAIG;AACH,eAAO,MAAM,eAAe;YAEhB,MAAM;yCACsB,MAAM,+CAAmC,QAAQ,IAAI,CAAC;0CACrD,MAAM,KAAK,QAAQ,IAAI,CAAC
|
|
1
|
+
{"version":3,"file":"RemoteVideoTile.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/RemoteVideoTile.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAItE;;;;GAIG;AACH,eAAO,MAAM,eAAe;YAEhB,MAAM;yCACsB,MAAM,+CAAmC,QAAQ,IAAI,CAAC;0CACrD,MAAM,KAAK,QAAQ,IAAI,CAAC;;;;;;;;;;kBAoFhE,CAAC"}
|
|
@@ -9,27 +9,39 @@ import { VideoTile } from './VideoTile';
|
|
|
9
9
|
* array changes causing a rerender in the parent component. https://reactjs.org/docs/react-api.html#reactmemo
|
|
10
10
|
*/
|
|
11
11
|
export const RemoteVideoTile = React.memo((props) => {
|
|
12
|
-
const { isAvailable, isMuted, isSpeaking, onCreateRemoteStreamView, onDisposeRemoteStreamView,
|
|
12
|
+
const { isAvailable, isMuted, isSpeaking, isScreenSharingOn, onCreateRemoteStreamView, onDisposeRemoteStreamView, remoteVideoViewOptions, renderElement, userId, displayName, onRenderAvatar, showMuteIndicator } = props;
|
|
13
13
|
useEffect(() => {
|
|
14
14
|
if (isAvailable && !renderElement) {
|
|
15
|
-
onCreateRemoteStreamView && onCreateRemoteStreamView(userId,
|
|
16
|
-
}
|
|
17
|
-
if (!isAvailable) {
|
|
18
|
-
onDisposeRemoteStreamView && onDisposeRemoteStreamView(userId);
|
|
15
|
+
onCreateRemoteStreamView && onCreateRemoteStreamView(userId, remoteVideoViewOptions);
|
|
19
16
|
}
|
|
17
|
+
// Always clean up element to make tile up to date and be able to dispose correctly
|
|
18
|
+
// TODO: Add an extra param to onDisposeRemoteStreamView(userId, flavor(optional)) after GA
|
|
19
|
+
// and isolate dispose behavior between screen share and video
|
|
20
|
+
return () => {
|
|
21
|
+
if (renderElement && !isScreenSharingOn) {
|
|
22
|
+
onDisposeRemoteStreamView && onDisposeRemoteStreamView(userId);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
20
25
|
}, [
|
|
21
26
|
isAvailable,
|
|
22
27
|
onCreateRemoteStreamView,
|
|
23
28
|
onDisposeRemoteStreamView,
|
|
24
|
-
|
|
29
|
+
remoteVideoViewOptions,
|
|
25
30
|
renderElement,
|
|
26
|
-
userId
|
|
31
|
+
userId,
|
|
32
|
+
isScreenSharingOn
|
|
27
33
|
]);
|
|
34
|
+
// The execution order for above useEffect is onCreateRemoteStreamView =>(async time gap) RenderElement generated => element disposed => onDisposeRemoteStreamView
|
|
35
|
+
// Element disposed could happen during async time gap, which still cause leaks for unused renderElement.
|
|
36
|
+
// Need to do an entire cleanup when remoteTile gets disposed and make sure element gets correctly disposed
|
|
28
37
|
useEffect(() => {
|
|
29
38
|
return () => {
|
|
30
|
-
|
|
39
|
+
// TODO: Remove if condition when we isolate dispose behavior for screen share
|
|
40
|
+
if (!isScreenSharingOn) {
|
|
41
|
+
onDisposeRemoteStreamView && onDisposeRemoteStreamView(userId);
|
|
42
|
+
}
|
|
31
43
|
};
|
|
32
|
-
}, [onDisposeRemoteStreamView, userId]);
|
|
44
|
+
}, [onDisposeRemoteStreamView, userId, isScreenSharingOn]);
|
|
33
45
|
const renderVideoStreamElement = useMemo(() => {
|
|
34
46
|
// Checking if renderElement is well defined or not as calling SDK has a number of video streams limitation which
|
|
35
47
|
// implies that, after their threshold, all streams have no child (blank video)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteVideoTile.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/RemoteVideoTile.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,IAAI,CACvC,CAAC,
|
|
1
|
+
{"version":3,"file":"RemoteVideoTile.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/RemoteVideoTile.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,IAAI,CACvC,CAAC,KAaA,EAAE,EAAE;IACH,MAAM,EACJ,WAAW,EACX,OAAO,EACP,UAAU,EACV,iBAAiB,EACjB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,aAAa,EACb,MAAM,EACN,WAAW,EACX,cAAc,EACd,iBAAiB,EAClB,GAAG,KAAK,CAAC;IAEV,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,WAAW,IAAI,CAAC,aAAa,EAAE;YACjC,wBAAwB,IAAI,wBAAwB,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;SACtF;QACD,mFAAmF;QACnF,2FAA2F;QAC3F,8DAA8D;QAC9D,OAAO,GAAG,EAAE;YACV,IAAI,aAAa,IAAI,CAAC,iBAAiB,EAAE;gBACvC,yBAAyB,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;aAChE;QACH,CAAC,CAAC;IACJ,CAAC,EAAE;QACD,WAAW;QACX,wBAAwB;QACxB,yBAAyB;QACzB,sBAAsB;QACtB,aAAa;QACb,MAAM;QACN,iBAAiB;KAClB,CAAC,CAAC;IAEH,kKAAkK;IAClK,yGAAyG;IACzG,2GAA2G;IAC3G,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,GAAG,EAAE;YACV,8EAA8E;YAC9E,IAAI,CAAC,iBAAiB,EAAE;gBACtB,yBAAyB,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;aAChE;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,yBAAyB,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAE3D,MAAM,wBAAwB,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5C,iHAAiH;QACjH,+EAA+E;QAC/E,IAAI,CAAC,aAAa,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE;YACtD,2EAA2E;YAC3E,OAAO,SAAS,CAAC;SAClB;QAED,OAAO,oBAAC,WAAW,IAAC,kBAAkB,EAAE,aAAa,GAAI,CAAC;IAC5D,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,OAAO,CACL,oBAAC,SAAS,IACR,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,wBAAwB,EACvC,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,cAAc,EACnC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -10,6 +10,8 @@ export interface ScreenShareButtonStrings {
|
|
|
10
10
|
onLabel: string;
|
|
11
11
|
/** Label when button is off. */
|
|
12
12
|
offLabel: string;
|
|
13
|
+
/** * Tooltip content when the button is disabled. */
|
|
14
|
+
tooltipDisabledContent?: string;
|
|
13
15
|
/** Tooltip content when the button is on. */
|
|
14
16
|
tooltipOnContent?: string;
|
|
15
17
|
/** Tooltip content when the button is off. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenShareButton.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/ScreenShareButton.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAoB,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAG7E;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8CAA8C;IAC9C,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACnE;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAC;CAC7C;AAKD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,KAAG,
|
|
1
|
+
{"version":3,"file":"ScreenShareButton.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/ScreenShareButton.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAoB,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAG7E;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8CAA8C;IAC9C,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACnE;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAC;CAC7C;AAKD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,KAAG,WAkBjE,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useLocale } from '../localization';
|
|
5
5
|
import { ControlBarButton } from './ControlBarButton';
|
|
6
|
-
import { Icon } from '@fluentui/react';
|
|
6
|
+
import { DefaultPalette, Icon, useTheme } from '@fluentui/react';
|
|
7
7
|
const onRenderScreenShareOnIcon = () => React.createElement(Icon, { iconName: "ControlButtonScreenShareStop" });
|
|
8
8
|
const onRenderScreenShareOffIcon = () => React.createElement(Icon, { iconName: "ControlButtonScreenShareStart" });
|
|
9
9
|
/**
|
|
@@ -17,6 +17,21 @@ export const ScreenShareButton = (props) => {
|
|
|
17
17
|
var _a, _b, _c, _d;
|
|
18
18
|
const localeStrings = useLocale().strings.screenShareButton;
|
|
19
19
|
const strings = Object.assign(Object.assign({}, localeStrings), props.strings);
|
|
20
|
-
|
|
20
|
+
const theme = useTheme();
|
|
21
|
+
const styles = screenshareButtonStyles(theme);
|
|
22
|
+
return (React.createElement(ControlBarButton, Object.assign({}, props, { styles: styles, onClick: (_a = props.onToggleScreenShare) !== null && _a !== void 0 ? _a : props.onClick, onRenderOnIcon: (_b = props.onRenderOnIcon) !== null && _b !== void 0 ? _b : onRenderScreenShareOnIcon, onRenderOffIcon: (_c = props.onRenderOffIcon) !== null && _c !== void 0 ? _c : onRenderScreenShareOffIcon, strings: strings, labelKey: (_d = props.labelKey) !== null && _d !== void 0 ? _d : 'screenShareButtonLabel' })));
|
|
21
23
|
};
|
|
24
|
+
const screenshareButtonStyles = (theme) => ({
|
|
25
|
+
rootChecked: {
|
|
26
|
+
background: theme.palette.themePrimary,
|
|
27
|
+
color: DefaultPalette.white,
|
|
28
|
+
':focus::after': { outlineColor: `${DefaultPalette.white} !important` } // added !important to avoid override by FluentUI button styles
|
|
29
|
+
},
|
|
30
|
+
rootCheckedHovered: {
|
|
31
|
+
background: theme.palette.themePrimary,
|
|
32
|
+
color: DefaultPalette.white,
|
|
33
|
+
':focus::after': { outlineColor: `${DefaultPalette.white} !important` } // added !important to avoid override by FluentUI button styles
|
|
34
|
+
},
|
|
35
|
+
labelChecked: { color: DefaultPalette.white }
|
|
36
|
+
});
|
|
22
37
|
//# sourceMappingURL=ScreenShareButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenShareButton.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/ScreenShareButton.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAyB,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"ScreenShareButton.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/ScreenShareButton.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAyB,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAiB,IAAI,EAAS,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAsCvF,MAAM,yBAAyB,GAAG,GAAgB,EAAE,CAAC,oBAAC,IAAI,IAAC,QAAQ,EAAC,8BAA8B,GAAG,CAAC;AACtG,MAAM,0BAA0B,GAAG,GAAgB,EAAE,CAAC,oBAAC,IAAI,IAAC,QAAQ,EAAC,+BAA+B,GAAG,CAAC;AAExG;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAe,EAAE;;IAC9E,MAAM,aAAa,GAAG,SAAS,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC;IAC5D,MAAM,OAAO,mCAAQ,aAAa,GAAK,KAAK,CAAC,OAAO,CAAE,CAAC;IAEvD,MAAM,KAAK,GAAG,QAAQ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ACH,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,UAAW,YAAY,KAAG,WAqH7C,CAAC"}
|
|
@@ -40,8 +40,9 @@ export const SendBox = (props) => {
|
|
|
40
40
|
(_a = sendTextFieldRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
41
41
|
};
|
|
42
42
|
const setText = (event, newValue) => {
|
|
43
|
-
if (newValue === undefined)
|
|
43
|
+
if (newValue === undefined) {
|
|
44
44
|
return;
|
|
45
|
+
}
|
|
45
46
|
if (newValue.length > MAXIMUM_LENGTH_OF_MESSAGE) {
|
|
46
47
|
setTextValueOverflow(true);
|
|
47
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendBox.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/SendBox.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAsB,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExG,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExE,MAAM,mBAAmB,GAAG,OAAO,CAAC;AACpC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAwFvC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAmB,EAAe,EAAE;IAC1D,MAAM,EACJ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,qBAAqB,EACrB,MAAM,EACP,GAAG,KAAK,CAAC;IACV,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,aAAa,GAAG,SAAS,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;IAClD,MAAM,OAAO,mCAAQ,aAAa,GAAK,KAAK,CAAC,OAAO,CAAE,CAAC;IACvD,MAAM,GAAG,GAAG,cAAc,EAAE,CAAC;IAE7B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC/C,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElE,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAAa,IAAI,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAG,GAAS,EAAE;;QACpC,qCAAqC;QACrC,IAAI,QAAQ,IAAI,iBAAiB,EAAE;YACjC,OAAO;SACR;QACD,uEAAuE;QACvE,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;YACxC,aAAa,IAAI,aAAa,CAAC,SAAS,CAAC,CAAC;YAC1C,YAAY,CAAC,EAAE,CAAC,CAAC;SAClB;QACD,MAAA,gBAAgB,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAC;IACpC,CAAC,CAAC;IACF,MAAM,OAAO,GAAG,CACd,KAA8D,EAC9D,QAA6B,EACvB,EAAE;QACR,IAAI,QAAQ,KAAK,SAAS;
|
|
1
|
+
{"version":3,"file":"SendBox.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/SendBox.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE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AS,EAAE,yBAAyB;QAEpC,oBAAC,cAAc,IACb,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;gBACb,IAAI,CAAC,iBAAiB,EAAE;oBACtB,kBAAkB,EAAE,CAAC;iBACtB;gBACD,CAAC,CAAC,eAAe,EAAE,CAAC;YACtB,CAAC,EACD,EAAE,EAAE,iBAAiB,EACrB,SAAS,EAAE,qBAAqB,GAChC,CACgB,CACrB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemMessage.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/SystemMessage.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAI/D;;;;GAIG;AACH,oBAAY,sBAAsB,GAAG,WAAW,GAAG,aAAa,GAAG,MAAM,CAAC;AAE1E;;GAEG;AACH,oBAAY,kBAAkB,GAAG;IAC/B;;OAEG;IACH,QAAQ,EAAE,sBAAsB,CAAC;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAIhB,cAAc,CAAC,EAAE,kBAAkB,CAAC;CACrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,UAAW,kBAAkB,KAAG,
|
|
1
|
+
{"version":3,"file":"SystemMessage.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/SystemMessage.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAI/D;;;;GAIG;AACH,oBAAY,sBAAsB,GAAG,WAAW,GAAG,aAAa,GAAG,MAAM,CAAC;AAE1E;;GAEG;AACH,oBAAY,kBAAkB,GAAG;IAC/B;;OAEG;IACH,QAAQ,EAAE,sBAAsB,CAAC;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAIhB,cAAc,CAAC,EAAE,kBAAkB,CAAC;CACrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,UAAW,kBAAkB,KAAG,WAYzD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT license.
|
|
3
|
-
import { FontIcon, mergeStyles, Stack } from '@fluentui/react';
|
|
3
|
+
import { FontIcon, mergeStyles, Stack, Text } from '@fluentui/react';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { systemMessageIconStyle } from './styles/SystemMessage.styles';
|
|
6
6
|
/**
|
|
@@ -11,6 +11,6 @@ export const SystemMessage = (props) => {
|
|
|
11
11
|
const Icon = React.createElement(FontIcon, { iconName: iconName, className: mergeStyles(systemMessageIconStyle) });
|
|
12
12
|
return (React.createElement(Stack, { horizontal: true, className: mergeStyles(props === null || props === void 0 ? void 0 : props.containerStyle) },
|
|
13
13
|
Icon,
|
|
14
|
-
React.createElement("
|
|
14
|
+
React.createElement(Text, { style: { wordBreak: 'break-word' }, role: "status", title: content }, content)));
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=SystemMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemMessage.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/SystemMessage.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAU,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"SystemMessage.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/SystemMessage.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAU,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AA2BvE;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAe,EAAE;IACtE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,IAAI,GAAgB,oBAAC,QAAQ,IAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,sBAAsB,CAAC,GAAI,CAAC;IAE3G,OAAO,CACL,oBAAC,KAAK,IAAC,UAAU,QAAC,SAAS,EAAE,WAAW,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,cAAwB,CAAC;QACtE,IAAI;QACL,oBAAC,IAAI,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,OAAO,IACnE,OAAO,CACH,CACD,CACT,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypingIndicator.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/TypingIndicator.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"TypingIndicator.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/TypingIndicator.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,MAAM,EAA4B,MAAM,iBAAiB,CAAC;AAKnE;;;;GAIG;AACH,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;IAClE,iDAAiD;IACjD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;;QAUI;IACJ,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;;;;QAaI;IACJ,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;;;;;;;;;QAaI;IACJ,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;;;;;;;;;;;QAcI;IACJ,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;;;;;;;;;;;QAcI;IACJ,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,gCAAgC;IAChC,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACxC,sCAAsC;IACtC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,GAAG,CAAC,OAAO,CAAC;IAChE;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,0BAA0B,CAAC;IAEpC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC3C;AAqMD;;;;GAIG;AACH,eAAO,MAAM,eAAe,UAAW,oBAAoB,KAAG,WAc7D,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT license.
|
|
3
|
-
import { _formatSpanElements } from "../../../acs-ui-common/src";
|
|
4
3
|
import { typingIndicatorContainerStyle, typingIndicatorStringStyle } from './styles/TypingIndicator.styles';
|
|
5
4
|
import React from 'react';
|
|
6
|
-
import { mergeStyles, Stack } from '@fluentui/react';
|
|
5
|
+
import { mergeStyles, Stack, Text } from '@fluentui/react';
|
|
7
6
|
import { useLocale } from '../localization/LocalizationProvider';
|
|
8
7
|
import { useIdentifiers } from '../identifiers';
|
|
9
8
|
const MAXIMUM_LENGTH_OF_TYPING_USERS = 35;
|
|
@@ -12,18 +11,33 @@ const MAXIMUM_LENGTH_OF_TYPING_USERS = 35;
|
|
|
12
11
|
* @param typingUsers typing users
|
|
13
12
|
* @param delimiter string to separate typing users
|
|
14
13
|
* @param onRenderUser optional callback to render each typing user
|
|
15
|
-
* @param
|
|
14
|
+
* @param userDisplayNameStyles optional additional IStyle to apply to each element containing users name
|
|
16
15
|
* @returns element wrapping all typing users
|
|
17
16
|
*/
|
|
18
|
-
const getUsersElement = (typingUsers, delimiter, onRenderUser,
|
|
17
|
+
const getUsersElement = (typingUsers, delimiter, onRenderUser, userDisplayNameStyles) => {
|
|
19
18
|
const userElements = [];
|
|
20
19
|
typingUsers.forEach((user, index) => {
|
|
21
|
-
userElements.push(onRenderUser ? onRenderUser(user) : React.createElement(
|
|
22
|
-
userElements.push(React.createElement(
|
|
20
|
+
userElements.push(onRenderUser ? (onRenderUser(user)) : (React.createElement(Text, { className: mergeStyles(userDisplayNameStyles), key: `user-${index}` }, user.displayName)));
|
|
21
|
+
userElements.push(React.createElement(Text, { key: `comma-${index}` }, `${delimiter}`));
|
|
23
22
|
});
|
|
24
23
|
// pop last comma
|
|
25
24
|
userElements.pop();
|
|
26
|
-
return
|
|
25
|
+
return React.createElement(React.Fragment, null, userElements);
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Helper function to get a string of all typing users
|
|
29
|
+
* @param typingUsers typing users
|
|
30
|
+
* @param delimiter string to separate typing users
|
|
31
|
+
* @returns string of all typing users
|
|
32
|
+
*/
|
|
33
|
+
const getNamesString = (typingUsers, delimiter) => {
|
|
34
|
+
const userNames = [];
|
|
35
|
+
typingUsers.forEach((user) => {
|
|
36
|
+
if (user.displayName) {
|
|
37
|
+
userNames.push(user.displayName);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
return userNames.join(delimiter);
|
|
27
41
|
};
|
|
28
42
|
/**
|
|
29
43
|
* Helper function to create span elements making up the typing indicator string
|
|
@@ -61,7 +75,32 @@ const getSpanElements = (strings, usersElement, numTypingUsers, numTypingUsersAb
|
|
|
61
75
|
numOthers: React.createElement(React.Fragment, null, numTypingUsersAbbreviated)
|
|
62
76
|
};
|
|
63
77
|
}
|
|
64
|
-
return
|
|
78
|
+
return formatInlineElements(typingString, variables);
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Helper function to get the string making up the typing indicator string
|
|
82
|
+
* @param strings TypingIndicatorStrings containing strings to create span elements
|
|
83
|
+
* @param namesString string of all typing users
|
|
84
|
+
* @param numTypingUsers number of total typing users
|
|
85
|
+
* @param numUserNotMentioned number of typing users abbreviated
|
|
86
|
+
* @returns typing indicator string
|
|
87
|
+
*/
|
|
88
|
+
const getIndicatorString = (strings, namesString, numTypingUsers, numTypingUsersAbbreviated) => {
|
|
89
|
+
if (numTypingUsers === 1) {
|
|
90
|
+
return strings.singleUser.replace('{user}', namesString);
|
|
91
|
+
}
|
|
92
|
+
if (numTypingUsers > 1 && numTypingUsersAbbreviated === 0) {
|
|
93
|
+
return strings.multipleUsers.replace('{users}', namesString);
|
|
94
|
+
}
|
|
95
|
+
if (numTypingUsers > 1 && numTypingUsersAbbreviated === 1) {
|
|
96
|
+
return strings.multipleUsersAbbreviateOne.replace('{users}', namesString);
|
|
97
|
+
}
|
|
98
|
+
if (numTypingUsers > 1 && numTypingUsersAbbreviated > 1) {
|
|
99
|
+
return strings.multipleUsersAbbreviateMany
|
|
100
|
+
.replace('{users}', namesString)
|
|
101
|
+
.replace('{numOthers}', `${numTypingUsersAbbreviated}`);
|
|
102
|
+
}
|
|
103
|
+
return undefined;
|
|
65
104
|
};
|
|
66
105
|
const IndicatorComponent = (typingUsers, strings, onRenderUser, styles) => {
|
|
67
106
|
const typingUsersMentioned = [];
|
|
@@ -88,7 +127,8 @@ const IndicatorComponent = (typingUsers, strings, onRenderUser, styles) => {
|
|
|
88
127
|
const usersElement = getUsersElement(typingUsersMentioned, strings.delimiter, onRenderUser, styles === null || styles === void 0 ? void 0 : styles.typingUserDisplayName);
|
|
89
128
|
const numUserNotMentioned = typingUsers.length - typingUsersMentioned.length;
|
|
90
129
|
const spanElements = getSpanElements(strings, usersElement, typingUsersMentioned.length, numUserNotMentioned);
|
|
91
|
-
|
|
130
|
+
const labelString = getIndicatorString(strings, getNamesString(typingUsersMentioned, strings.delimiter), typingUsersMentioned.length, numUserNotMentioned);
|
|
131
|
+
return (React.createElement("div", { "data-ui-id": ids.typingIndicator, className: mergeStyles(typingIndicatorStringStyle, styles === null || styles === void 0 ? void 0 : styles.typingString), key: "typingStringKey", role: "status", "aria-label": labelString }, spanElements));
|
|
92
132
|
};
|
|
93
133
|
/**
|
|
94
134
|
* Component to notify local user when one or more participants in the chat thread are typing.
|
|
@@ -102,4 +142,36 @@ export const TypingIndicator = (props) => {
|
|
|
102
142
|
const indicatorComponent = IndicatorComponent(typingUsersToRender, Object.assign(Object.assign({}, strings.typingIndicator), props.strings), onRenderUser, styles);
|
|
103
143
|
return React.createElement(Stack, { className: mergeStyles(typingIndicatorContainerStyle, styles === null || styles === void 0 ? void 0 : styles.root) }, indicatorComponent);
|
|
104
144
|
};
|
|
145
|
+
/**
|
|
146
|
+
* Create an array of span elements by replacing the pattern "\{\}" in str with the elements
|
|
147
|
+
* passed in as vars and creating inline elements from the rest
|
|
148
|
+
*
|
|
149
|
+
* @param str - The string to be formatted
|
|
150
|
+
* @param vars - Variables to use to format the string
|
|
151
|
+
* @returns formatted JSX elements
|
|
152
|
+
*/
|
|
153
|
+
const formatInlineElements = (str, vars) => {
|
|
154
|
+
if (!str) {
|
|
155
|
+
return [];
|
|
156
|
+
}
|
|
157
|
+
if (!vars) {
|
|
158
|
+
return [];
|
|
159
|
+
}
|
|
160
|
+
const elements = [];
|
|
161
|
+
// regex to search for the pattern "{}"
|
|
162
|
+
const placeholdersRegex = /{(\w+)}/g;
|
|
163
|
+
const regex = RegExp(placeholdersRegex);
|
|
164
|
+
let array = regex.exec(str);
|
|
165
|
+
let prev = 0;
|
|
166
|
+
while (array !== null) {
|
|
167
|
+
if (prev !== array.index) {
|
|
168
|
+
elements.push(React.createElement(Text, { key: elements.length }, str.substring(prev, array.index)));
|
|
169
|
+
}
|
|
170
|
+
elements.push(React.createElement(Text, { key: elements.length }, vars[array[0].substring(1, array[0].length - 1)]));
|
|
171
|
+
prev = regex.lastIndex;
|
|
172
|
+
array = regex.exec(str);
|
|
173
|
+
}
|
|
174
|
+
elements.push(React.createElement(Text, { key: elements.length }, str.substring(prev)));
|
|
175
|
+
return elements;
|
|
176
|
+
};
|
|
105
177
|
//# sourceMappingURL=TypingIndicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypingIndicator.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/TypingIndicator.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TypingIndicator.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/TypingIndicator.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE5G,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAU,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AA0HhD,MAAM,8BAA8B,GAAG,EAAE,CAAC;AAE1C;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG,CACtB,WAAuC,EACvC,SAAiB,EACjB,YAA+D,EAC/D,qBAA8B,EACjB,EAAE;IACf,MAAM,YAAY,GAAkB,EAAE,CAAC;IACvC,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QAClC,YAAY,CAAC,IAAI,CACf,YAAY,CAAC,CAAC,CAAC,CACb,YAAY,CAAC,IAAI,CAAC,CACnB,CAAC,CAAC,CAAC,CACF,oBAAC,IAAI,IAAC,SAAS,EAAE,WAAW,CAAC,qBAAqB,CAAC,EAAE,GAAG,EAAE,QAAQ,KAAK,EAAE,IACtE,IAAI,CAAC,WAAW,CACZ,CACR,CACF,CAAC;QACF,YAAY,CAAC,IAAI,CAAC,oBAAC,IAAI,IAAC,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AI,IAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,IAAG,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAQ,CAAC,CAAC;SACtF;QACD,QAAQ,CAAC,IAAI,CAAC,oBAAC,IAAI,IAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,IAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAQ,CAAC,CAAC;QACrG,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC;QACvB,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACzB;IACD,QAAQ,CAAC,IAAI,CAAC,oBAAC,IAAI,IAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,IAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAQ,CAAC,CAAC;IACxE,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { VideoStreamOptions
|
|
2
|
+
import { VideoStreamOptions } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* A memoized version of VideoTile for rendering the remote screen share stream. React.memo is used for a performance
|
|
5
5
|
* boost by memoizing the same rendered component to avoid rerendering this when the parent component rerenders.
|
|
6
6
|
* https://reactjs.org/docs/react-api.html#reactmemo
|
|
7
7
|
*/
|
|
8
8
|
export declare const RemoteScreenShare: React.MemoExoticComponent<(props: {
|
|
9
|
-
|
|
9
|
+
userId: string;
|
|
10
|
+
displayName?: string | undefined;
|
|
10
11
|
onCreateRemoteStreamView?: ((userId: string, options?: VideoStreamOptions | undefined) => Promise<void>) | undefined;
|
|
12
|
+
onDisposeRemoteStreamView?: ((userId: string) => Promise<void>) | undefined;
|
|
13
|
+
isAvailable?: boolean | undefined;
|
|
14
|
+
isMuted?: boolean | undefined;
|
|
15
|
+
isSpeaking?: boolean | undefined;
|
|
16
|
+
renderElement?: HTMLElement | undefined;
|
|
11
17
|
}) => JSX.Element>;
|
|
12
18
|
//# sourceMappingURL=RemoteScreenShare.d.ts.map
|
package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteScreenShare.d.ts","sourceRoot":"","sources":["../../../../../../../react-components/src/components/VideoGallery/RemoteScreenShare.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"RemoteScreenShare.d.ts","sourceRoot":"","sources":["../../../../../../../react-components/src/components/VideoGallery/RemoteScreenShare.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;YAElB,MAAM;;yCAEsB,MAAM,+CAAmC,QAAQ,IAAI,CAAC;0CACrD,MAAM,KAAK,QAAQ,IAAI,CAAC;;;;;kBAmChE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT license.
|
|
3
3
|
import { Spinner, SpinnerSize, Stack } from '@fluentui/react';
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import React, { useEffect } from 'react';
|
|
5
5
|
import { useLocale } from '../../localization';
|
|
6
6
|
import { StreamMedia } from '../StreamMedia';
|
|
7
7
|
import { VideoTile } from '../VideoTile';
|
|
@@ -13,21 +13,26 @@ import { _formatString } from "../../../../acs-ui-common/src";
|
|
|
13
13
|
* https://reactjs.org/docs/react-api.html#reactmemo
|
|
14
14
|
*/
|
|
15
15
|
export const RemoteScreenShare = React.memo((props) => {
|
|
16
|
-
const { onCreateRemoteStreamView,
|
|
16
|
+
const { userId, displayName, isMuted, renderElement, onCreateRemoteStreamView, onDisposeRemoteStreamView } = props;
|
|
17
17
|
const locale = useLocale();
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
screenShareParticipant && onCreateRemoteStreamView && onCreateRemoteStreamView(screenShareParticipant.userId);
|
|
18
|
+
if (!renderElement) {
|
|
19
|
+
onCreateRemoteStreamView && onCreateRemoteStreamView(userId);
|
|
21
20
|
}
|
|
22
|
-
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
return () => {
|
|
23
|
+
// TODO: Isolate disposing behaviors for screenShare and videoStream
|
|
24
|
+
onDisposeRemoteStreamView && onDisposeRemoteStreamView(userId);
|
|
25
|
+
};
|
|
26
|
+
}, [onDisposeRemoteStreamView, userId]);
|
|
27
|
+
const loadingMessage = displayName
|
|
23
28
|
? _formatString(locale.strings.videoGallery.screenShareLoadingMessage, {
|
|
24
|
-
participant:
|
|
29
|
+
participant: displayName
|
|
25
30
|
})
|
|
26
31
|
: '';
|
|
27
|
-
return (React.createElement(VideoTile, { displayName:
|
|
32
|
+
return (React.createElement(VideoTile, { displayName: displayName, isMuted: isMuted, renderElement: renderElement ? React.createElement(StreamMedia, { videoStreamElement: renderElement }) : undefined, onRenderPlaceholder: () => React.createElement(LoadingSpinner, { loadingMessage: loadingMessage }) }));
|
|
28
33
|
});
|
|
29
34
|
const LoadingSpinner = (props) => {
|
|
30
35
|
return (React.createElement(Stack, { verticalAlign: "center", className: loadingStyle },
|
|
31
|
-
React.createElement(Spinner, { label: props.loadingMessage, size: SpinnerSize.xSmall })));
|
|
36
|
+
React.createElement(Spinner, { label: props.loadingMessage, size: SpinnerSize.xSmall, "aria-live": 'assertive' })));
|
|
32
37
|
};
|
|
33
38
|
//# sourceMappingURL=RemoteScreenShare.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteScreenShare.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/VideoGallery/RemoteScreenShare.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"RemoteScreenShare.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/VideoGallery/RemoteScreenShare.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,sCAAgC;AAExD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,IAAI,CACzC,CAAC,KASA,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,GAAG,KAAK,CAAC;IACnH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,IAAI,CAAC,aAAa,EAAE;QAClB,wBAAwB,IAAI,wBAAwB,CAAC,MAAM,CAAC,CAAC;KAC9D;IAED,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,GAAG,EAAE;YACV,oEAAoE;YACpE,yBAAyB,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;QACjE,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC,CAAC;IAExC,MAAM,cAAc,GAAG,WAAW;QAChC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,yBAAyB,EAAE;YACnE,WAAW,EAAE,WAAW;SACzB,CAAC;QACJ,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO,CACL,oBAAC,SAAS,IACR,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,kBAAkB,EAAE,aAAa,GAAI,CAAC,CAAC,CAAC,SAAS,EAC7F,mBAAmB,EAAE,GAAG,EAAE,CAAC,oBAAC,cAAc,IAAC,cAAc,EAAE,cAAc,GAAI,GAC7E,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAiC,EAAe,EAAE;IACxE,OAAO,CACL,oBAAC,KAAK,IAAC,aAAa,EAAC,QAAQ,EAAC,SAAS,EAAE,YAAY;QACnD,oBAAC,OAAO,IAAC,KAAK,EAAE,KAAK,CAAC,cAAc,EAAE,IAAI,EAAE,WAAW,CAAC,MAAM,eAAa,WAAW,GAAI,CACpF,CACT,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -52,9 +52,9 @@ export interface VideoGalleryProps {
|
|
|
52
52
|
/** List of dominant speaker userIds in the order of their dominance. 0th index is the most dominant. */
|
|
53
53
|
dominantSpeakers?: string[];
|
|
54
54
|
/** Local video view options */
|
|
55
|
-
|
|
55
|
+
localVideoViewOptions?: VideoStreamOptions;
|
|
56
56
|
/** Remote videos view options */
|
|
57
|
-
|
|
57
|
+
remoteVideoViewOptions?: VideoStreamOptions;
|
|
58
58
|
/** Callback to create the local video stream view */
|
|
59
59
|
onCreateLocalStreamView?: (options?: VideoStreamOptions) => Promise<void>;
|
|
60
60
|
/** Callback to dispose of the local video stream view */
|
|
@@ -65,6 +65,7 @@ export interface VideoGalleryProps {
|
|
|
65
65
|
onCreateRemoteStreamView?: (userId: string, options?: VideoStreamOptions) => Promise<void>;
|
|
66
66
|
/** Callback to render a remote video tile */
|
|
67
67
|
onRenderRemoteVideoTile?: (remoteParticipant: VideoGalleryRemoteParticipant) => JSX.Element;
|
|
68
|
+
/** Callback to dispose a remote video stream view */
|
|
68
69
|
onDisposeRemoteStreamView?: (userId: string) => Promise<void>;
|
|
69
70
|
/** Callback to render a particpant avatar */
|
|
70
71
|
onRenderAvatar?: OnRenderAvatarCallback;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoGallery.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/VideoGallery.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAiD,MAAM,EAA6B,MAAM,iBAAiB,CAAC;AAEnH,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAC;AAKrC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,4BAA4B,EAC5B,6BAA6B,EAC7B,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"VideoGallery.d.ts","sourceRoot":"","sources":["../../../../../../react-components/src/components/VideoGallery.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAiD,MAAM,EAA6B,MAAM,iBAAiB,CAAC;AAEnH,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAC;AAKrC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,4BAA4B,EAC5B,6BAA6B,EAC7B,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AA4B9D;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,+DAA+D;IAC/D,0BAA0B,EAAE,MAAM,CAAC;IACnC,gEAAgE;IAChE,yBAAyB,EAAE,MAAM,CAAC;IAClC,qDAAqD;IACrD,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ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