@azure/communication-react 1.24.0-beta.1 → 1.24.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/dist/communication-react.d.ts +66 -2240
- package/dist/dist-cjs/communication-react/index.js +38012 -178
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/common.d.ts +0 -13
- package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/constants.d.ts +0 -5
- package/dist/dist-esm/acs-ui-common/src/constants.js +0 -5
- package/dist/dist-esm/acs-ui-common/src/constants.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/index.d.ts +0 -4
- package/dist/dist-esm/acs-ui-common/src/index.js +0 -3
- package/dist/dist-esm/acs-ui-common/src/index.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/baseSelectors.d.ts +0 -14
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +8 -18
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/captionsSelector.d.ts +0 -8
- package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +2 -64
- package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +0 -28
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +1 -65
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +1 -5
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +1 -30
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js +6 -14
- package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.d.ts +0 -1
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +1 -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 +0 -5
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +3 -8
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/BreakoutRoomsSubscriber.js +43 -32
- package/dist/dist-esm/calling-stateful-client/src/BreakoutRoomsSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +0 -4
- package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +6 -160
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +6 -26
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +23 -251
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +0 -6
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +6 -31
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js +4 -4
- package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +0 -12
- package/dist/dist-esm/calling-stateful-client/src/Converter.js +0 -32
- package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.d.ts +0 -9
- package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +1 -45
- package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.d.ts +0 -1
- package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js +1 -7
- package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +2 -3
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +0 -7
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +0 -8
- package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +0 -17
- package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +0 -3
- package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +2 -6
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +2 -35
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.d.ts +1 -2
- package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js +0 -3
- package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +2 -25
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +3 -3
- package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/ChatClientState.d.ts +1 -15
- package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +1 -2
- package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/index.d.ts +0 -1
- package/dist/dist-esm/chat-stateful-client/src/index.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +0 -35
- package/dist/dist-esm/communication-react/src/index.js +0 -9
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.d.ts +0 -2
- package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js +0 -1
- package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +0 -101
- package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +6 -83
- package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.d.ts +1 -13
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js +3 -9
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +0 -11
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +2 -32
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.d.ts +1 -8
- package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js +5 -9
- package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.d.ts +1 -2
- package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js +4 -4
- package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.d.ts +1 -4
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js +6 -31
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.d.ts +1 -15
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js +0 -9
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.d.ts +2 -23
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js +6 -17
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.d.ts +1 -8
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js +6 -10
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js +5 -5
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ImageOverlay.js +0 -2
- package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/InputBoxComponent.d.ts +0 -2
- package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +0 -15
- package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.d.ts +0 -2
- package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js +1 -5
- package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +5 -81
- package/dist/dist-esm/react-components/src/components/MessageThread.js +3 -13
- package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/NotificationStack.d.ts +5 -3
- package/dist/dist-esm/react-components/src/components/NotificationStack.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantItem.js +7 -4
- package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantList.d.ts +0 -15
- package/dist/dist-esm/react-components/src/components/ParticipantList.js +3 -12
- package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RaiseHandButton.js +2 -2
- package/dist/dist-esm/react-components/src/components/RaiseHandButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ReactionButton.js +2 -2
- package/dist/dist-esm/react-components/src/components/ReactionButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/SendBox.d.ts +1 -47
- package/dist/dist-esm/react-components/src/components/SendBox.js +6 -57
- package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +0 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +0 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +0 -19
- package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +0 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.d.ts +0 -5
- package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +1 -34
- package/dist/dist-esm/react-components/src/components/VideoGallery.js +2 -13
- package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/index.d.ts +0 -24
- package/dist/dist-esm/react-components/src/components/index.js +0 -11
- package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/styles/Captions.style.d.ts +0 -21
- package/dist/dist-esm/react-components/src/components/styles/Captions.style.js +0 -53
- package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +3 -3
- package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +0 -8
- package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.d.ts +1 -37
- package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js +3 -30
- package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.d.ts +2 -4
- package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js +2 -9
- package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.d.ts +1 -38
- package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +4 -131
- package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils/common.js +0 -2
- package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.d.ts +1 -2
- package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils.js +2 -3
- package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
- package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.d.ts +0 -4
- package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js +1 -3
- package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
- package/dist/dist-esm/react-components/src/index.d.ts +0 -2
- package/dist/dist-esm/react-components/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +0 -63
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/cy-GB/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/es-MX/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/fr-CA/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +5 -0
- package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js +0 -1
- package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js.map +1 -1
- package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -29
- package/dist/dist-esm/react-components/src/theming/icons.js +2 -91
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-components/src/theming/themes.d.ts +0 -6
- package/dist/dist-esm/react-components/src/theming/themes.js +0 -9
- package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/Attachment.d.ts +0 -13
- package/dist/dist-esm/react-components/src/types/Attachment.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +1 -20
- package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/index.d.ts +0 -1
- package/dist/dist-esm/react-components/src/types/index.js +0 -1
- package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +0 -72
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +11 -21
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +0 -64
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +5 -48
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +29 -89
- 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/CallAdapter.d.ts +1 -72
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +0 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/BreakoutRoomsBanner.js +6 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/BreakoutRoomsBanner.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +3 -7
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.d.ts +0 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +0 -19
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +2 -10
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.d.ts +0 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +0 -19
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +3 -5
- 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/SidePane/usePeoplePane.js +9 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +1 -19
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +0 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +26 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +0 -7
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +24 -46
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +0 -24
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +0 -24
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +12 -11
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +1 -12
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +4 -60
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +0 -65
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +7 -13
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +3 -20
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +23 -62
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +3 -73
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +0 -7
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +0 -12
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +4 -10
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +2 -14
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -8
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -27
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +1 -2
- 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 +0 -2
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +11 -189
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.d.ts +0 -20
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +2 -6
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +0 -36
- 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/ChatAdapter.d.ts +2 -12
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +2 -13
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +0 -2
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +0 -4
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +0 -4
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CallingCaptionsBanner.d.ts +0 -1
- package/dist/dist-esm/react-composites/src/composites/common/CallingCaptionsBanner.js +3 -13
- package/dist/dist-esm/react-composites/src/composites/common/CallingCaptionsBanner.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +0 -2
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +6 -13
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +0 -3
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +2 -85
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js +0 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +0 -3
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +9 -70
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +0 -3
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +1 -2
- package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.d.ts +2 -41
- package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.js +0 -21
- package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/constants.d.ts +0 -5
- package/dist/dist-esm/react-composites/src/composites/common/constants.js +0 -5
- package/dist/dist-esm/react-composites/src/composites/common/constants.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +2 -33
- package/dist/dist-esm/react-composites/src/composites/common/icons.js +1 -5
- package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/cy-GB/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/es-MX/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-CA/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +1 -1
- package/package.json +3 -3
- package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-ClQ2m7aI.js +0 -206
- package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-ClQ2m7aI.js.map +0 -1
- package/dist/dist-cjs/communication-react/RichTextSendBoxWrapper-Bhftq9li.js +0 -50
- package/dist/dist-cjs/communication-react/RichTextSendBoxWrapper-Bhftq9li.js.map +0 -1
- package/dist/dist-cjs/communication-react/index-CcIzeubJ.js +0 -45677
- package/dist/dist-cjs/communication-react/index-CcIzeubJ.js.map +0 -1
- package/dist/dist-esm/acs-ui-common/src/dataConversion.d.ts +0 -6
- package/dist/dist-esm/acs-ui-common/src/dataConversion.js +0 -20
- package/dist/dist-esm/acs-ui-common/src/dataConversion.js.map +0 -1
- package/dist/dist-esm/acs-ui-common/src/removeImageTags.d.ts +0 -7
- package/dist/dist-esm/acs-ui-common/src/removeImageTags.js +0 -18
- package/dist/dist-esm/acs-ui-common/src/removeImageTags.js.map +0 -1
- package/dist/dist-esm/calling-stateful-client/src/CallFeatureStreamUtils.d.ts +0 -14
- package/dist/dist-esm/calling-stateful-client/src/CallFeatureStreamUtils.js +0 -204
- package/dist/dist-esm/calling-stateful-client/src/CallFeatureStreamUtils.js.map +0 -1
- package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.d.ts +0 -17
- package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js +0 -33
- package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js.map +0 -1
- package/dist/dist-esm/calling-stateful-client/src/RealTimeTextSubscriber.d.ts +0 -16
- package/dist/dist-esm/calling-stateful-client/src/RealTimeTextSubscriber.js +0 -22
- package/dist/dist-esm/calling-stateful-client/src/RealTimeTextSubscriber.js.map +0 -1
- package/dist/dist-esm/calling-stateful-client/src/TogetherModeSubscriber.d.ts +0 -24
- package/dist/dist-esm/calling-stateful-client/src/TogetherModeSubscriber.js +0 -60
- package/dist/dist-esm/calling-stateful-client/src/TogetherModeSubscriber.js.map +0 -1
- package/dist/dist-esm/calling-stateful-client/src/TogetherModeVideoStreamSubscriber.d.ts +0 -18
- package/dist/dist-esm/calling-stateful-client/src/TogetherModeVideoStreamSubscriber.js +0 -31
- package/dist/dist-esm/calling-stateful-client/src/TogetherModeVideoStreamSubscriber.js.map +0 -1
- package/dist/dist-esm/chat-component-bindings/src/utils/getImageAttachmentsFromHTMLContent.d.ts +0 -6
- package/dist/dist-esm/chat-component-bindings/src/utils/getImageAttachmentsFromHTMLContent.js +0 -20
- package/dist/dist-esm/chat-component-bindings/src/utils/getImageAttachmentsFromHTMLContent.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.d.ts +0 -10
- package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js +0 -15
- package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.d.ts +0 -24
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +0 -196
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +0 -69
- package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +0 -36
- package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +0 -75
- package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +0 -67
- package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.d.ts +0 -105
- package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +0 -51
- package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.d.ts +0 -86
- package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +0 -40
- package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/MentionPopover.d.ts +0 -121
- package/dist/dist-esm/react-components/src/components/MentionPopover.js +0 -119
- package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RTTDisclosureBanner.d.ts +0 -28
- package/dist/dist-esm/react-components/src/components/RTTDisclosureBanner.js +0 -26
- package/dist/dist-esm/react-components/src/components/RTTDisclosureBanner.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RealTimeText.d.ts +0 -58
- package/dist/dist-esm/react-components/src/components/RealTimeText.js +0 -38
- package/dist/dist-esm/react-components/src/components/RealTimeText.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RealTimeTextModal.d.ts +0 -42
- package/dist/dist-esm/react-components/src/components/RealTimeTextModal.js +0 -53
- package/dist/dist-esm/react-components/src/components/RealTimeTextModal.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.d.ts +0 -9
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.js +0 -29
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.d.ts +0 -30
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js +0 -98
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.d.ts +0 -19
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.js +0 -43
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.d.ts +0 -15
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.js +0 -42
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.d.ts +0 -24
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.js +0 -64
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.d.ts +0 -20
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.js +0 -45
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UndoRedoPlugin.d.ts +0 -14
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UndoRedoPlugin.js +0 -42
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UndoRedoPlugin.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.d.ts +0 -30
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.js +0 -99
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.d.ts +0 -59
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +0 -336
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.d.ts +0 -37
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +0 -78
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.d.ts +0 -215
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +0 -173
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.d.ts +0 -16
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js +0 -75
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.d.ts +0 -19
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.js +0 -221
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.d.ts +0 -7
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.js +0 -51
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.d.ts +0 -15
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.js +0 -64
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.d.ts +0 -6
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.js +0 -13
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.d.ts +0 -56
- package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +0 -75
- package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/SendBoxErrors.d.ts +0 -14
- package/dist/dist-esm/react-components/src/components/SendBoxErrors.js +0 -18
- package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/StartRealTimeTextButton.d.ts +0 -48
- package/dist/dist-esm/react-components/src/components/StartRealTimeTextButton.js +0 -25
- package/dist/dist-esm/react-components/src/components/StartRealTimeTextButton.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.d.ts +0 -24
- package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +0 -550
- package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.d.ts +0 -152
- package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +0 -819
- package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/TogetherModeOverlay.d.ts +0 -15
- package/dist/dist-esm/react-components/src/components/TogetherModeOverlay.js +0 -91
- package/dist/dist-esm/react-components/src/components/TogetherModeOverlay.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/TogetherModeLayout.d.ts +0 -10
- package/dist/dist-esm/react-components/src/components/VideoGallery/TogetherModeLayout.js +0 -14
- package/dist/dist-esm/react-components/src/components/VideoGallery/TogetherModeLayout.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/TogetherModeStream.d.ts +0 -23
- package/dist/dist-esm/react-components/src/components/VideoGallery/TogetherModeStream.js +0 -47
- package/dist/dist-esm/react-components/src/components/VideoGallery/TogetherModeStream.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +0 -58
- package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +0 -144
- package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.d.ts +0 -26
- package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js +0 -69
- package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/styles/RTTDisclosureBanner.styles.d.ts +0 -10
- package/dist/dist-esm/react-components/src/components/styles/RTTDisclosureBanner.styles.js +0 -23
- package/dist/dist-esm/react-components/src/components/styles/RTTDisclosureBanner.styles.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.d.ts +0 -82
- package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +0 -320
- package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.d.ts +0 -21
- package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js +0 -38
- package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.d.ts +0 -38
- package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js +0 -99
- package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/styles/Stack.style.d.ts +0 -5
- package/dist/dist-esm/react-components/src/components/styles/Stack.style.js +0 -32
- package/dist/dist-esm/react-components/src/components/styles/Stack.style.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/styles/TogetherMode.styles.d.ts +0 -98
- package/dist/dist-esm/react-components/src/components/styles/TogetherMode.styles.js +0 -181
- package/dist/dist-esm/react-components/src/components/styles/TogetherMode.styles.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.d.ts +0 -26
- package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js +0 -69
- package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.d.ts +0 -73
- package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.js +0 -178
- package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.d.ts +0 -33
- package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js +0 -119
- package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/utils/merge.d.ts +0 -7
- package/dist/dist-esm/react-components/src/components/utils/merge.js +0 -16
- package/dist/dist-esm/react-components/src/components/utils/merge.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/utils/sortCaptionsAndRealTimeTexts.d.ts +0 -8
- package/dist/dist-esm/react-components/src/components/utils/sortCaptionsAndRealTimeTexts.js +0 -17
- package/dist/dist-esm/react-components/src/components/utils/sortCaptionsAndRealTimeTexts.js.map +0 -1
- package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +0 -6
- package/dist/dist-esm/react-components/src/theming/icons.styles.js +0 -25
- package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +0 -1
- package/dist/dist-esm/react-components/src/types/TogetherModeTypes.d.ts +0 -38
- package/dist/dist-esm/react-components/src/types/TogetherModeTypes.js +0 -2
- package/dist/dist-esm/react-components/src/types/TogetherModeTypes.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +0 -49
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +0 -203
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -15
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +0 -41
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.d.ts +0 -15
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js +0 -23
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -18
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +0 -18
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadReducer.d.ts +0 -49
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadReducer.js +0 -44
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadReducer.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadUtils.d.ts +0 -39
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadUtils.js +0 -265
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadUtils.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.d.ts +0 -80
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js +0 -36
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.d.ts +0 -38
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js +0 -67
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.d.ts +0 -5
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js +0 -5
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/common/CallingRealTimeTextModal.d.ts +0 -12
- package/dist/dist-esm/react-composites/src/composites/common/CallingRealTimeTextModal.js +0 -19
- package/dist/dist-esm/react-composites/src/composites/common/CallingRealTimeTextModal.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/common/RichTextSendBoxWrapper.d.ts +0 -10
- package/dist/dist-esm/react-composites/src/composites/common/RichTextSendBoxWrapper.js +0 -16
- package/dist/dist-esm/react-composites/src/composites/common/RichTextSendBoxWrapper.js.map +0 -1
@@ -1,20 +0,0 @@
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
2
|
-
// Licensed under the MIT License.
|
3
|
-
/**
|
4
|
-
* Convert a base64 string to a Blob.
|
5
|
-
* @internal
|
6
|
-
*/
|
7
|
-
export const _base64ToBlob = (dataURI) => {
|
8
|
-
const str = dataURI.split(',')[1];
|
9
|
-
if (!str) {
|
10
|
-
throw new Error('Invalid base64 string');
|
11
|
-
}
|
12
|
-
const byteString = atob(str);
|
13
|
-
const arrayBuffer = new ArrayBuffer(byteString.length);
|
14
|
-
const uint8Array = new Uint8Array(arrayBuffer);
|
15
|
-
for (let i = 0; i < byteString.length; i++) {
|
16
|
-
uint8Array[i] = byteString.charCodeAt(i);
|
17
|
-
}
|
18
|
-
return new Blob([arrayBuffer]);
|
19
|
-
};
|
20
|
-
//# sourceMappingURL=dataConversion.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"dataConversion.js","sourceRoot":"","sources":["../../../../preprocess-dist/acs-ui-common/src/dataConversion.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAe,EAAQ,EAAE;IACrD,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAClC,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IACD,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7B,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACvD,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC;IAC/C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC3C,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,IAAI,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;AACjC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/**\n * Convert a base64 string to a Blob.\n * @internal\n */\nexport const _base64ToBlob = (dataURI: string): Blob => {\n const str = dataURI.split(',')[1];\n if (!str) {\n throw new Error('Invalid base64 string');\n }\n const byteString = atob(str);\n const arrayBuffer = new ArrayBuffer(byteString.length);\n const uint8Array = new Uint8Array(arrayBuffer);\n for (let i = 0; i < byteString.length; i++) {\n uint8Array[i] = byteString.charCodeAt(i);\n }\n return new Blob([arrayBuffer]);\n};"]}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
2
|
-
// Licensed under the MIT License.
|
3
|
-
/**
|
4
|
-
* @internal
|
5
|
-
*/
|
6
|
-
export const removeImageTags = (event) => {
|
7
|
-
event.content.querySelectorAll('img').forEach(image => {
|
8
|
-
// If the image is the only child of its parent, remove all the parents of this img element.
|
9
|
-
let parentNode = image.parentElement;
|
10
|
-
let currentNode = image;
|
11
|
-
while ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.childNodes.length) === 1) {
|
12
|
-
currentNode = parentNode;
|
13
|
-
parentNode = parentNode.parentElement;
|
14
|
-
}
|
15
|
-
currentNode === null || currentNode === void 0 ? void 0 : currentNode.remove();
|
16
|
-
});
|
17
|
-
};
|
18
|
-
//# sourceMappingURL=removeImageTags.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"removeImageTags.js","sourceRoot":"","sources":["../../../../preprocess-dist/acs-ui-common/src/removeImageTags.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAE/B,EAAQ,EAAE;IACT,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACpD,4FAA4F;QAC5F,IAAI,UAAU,GAAuB,KAAK,CAAC,aAAa,CAAC;QACzD,IAAI,WAAW,GAAgB,KAAK,CAAC;QACrC,OAAO,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,UAAU,CAAC,MAAM,MAAK,CAAC,EAAE,CAAC;YAC3C,WAAW,GAAG,UAAU,CAAC;YACzB,UAAU,GAAG,UAAU,CAAC,aAAa,CAAC;QACxC,CAAC;QACD,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/**\n * @internal\n */\nexport const removeImageTags = (event: {\n content: DocumentFragment;\n}): void => {\n event.content.querySelectorAll('img').forEach(image => {\n // If the image is the only child of its parent, remove all the parents of this img element.\n let parentNode: HTMLElement | null = image.parentElement;\n let currentNode: HTMLElement = image;\n while (parentNode?.childNodes.length === 1) {\n currentNode = parentNode;\n parentNode = parentNode.parentElement;\n }\n currentNode?.remove();\n });\n};"]}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { CreateViewOptions } from '@azure/communication-calling';
|
2
|
-
import { CallContext } from './CallContext';
|
3
|
-
import { CallFeatureStreamState, CreateViewResult } from './index-public';
|
4
|
-
import { InternalCallContext } from './InternalCallContext';
|
5
|
-
/**
|
6
|
-
* @private
|
7
|
-
*
|
8
|
-
*/
|
9
|
-
export declare function createView(context: CallContext, internalContext: InternalCallContext, callId: string | undefined, stream: CallFeatureStreamState, options?: CreateViewOptions): Promise<CreateViewResult | undefined>;
|
10
|
-
/**
|
11
|
-
* @private
|
12
|
-
*/
|
13
|
-
export declare function disposeView(context: CallContext, internalContext: InternalCallContext, callId: string | undefined, stream: CallFeatureStreamState): void;
|
14
|
-
//# sourceMappingURL=CallFeatureStreamUtils.d.ts.map
|
@@ -1,204 +0,0 @@
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
-
});
|
9
|
-
};
|
10
|
-
// Copyright (c) Microsoft Corporation.
|
11
|
-
// Licensed under the MIT License.
|
12
|
-
import { VideoStreamRenderer } from '@azure/communication-calling';
|
13
|
-
import { _logStreamEvent } from './StreamUtilsLogging';
|
14
|
-
import { EventNames } from './Logger';
|
15
|
-
import { convertFromSDKToDeclarativeVideoStreamRendererView } from './Converter';
|
16
|
-
/**
|
17
|
-
* @private
|
18
|
-
*
|
19
|
-
*/
|
20
|
-
export function createView(context, internalContext, callId, stream, options) {
|
21
|
-
const streamType = stream.mediaStreamType;
|
22
|
-
if (callId && isCallFeatureStream(stream)) {
|
23
|
-
return createCallFeatureViewVideo(context, internalContext, callId, stream, options);
|
24
|
-
}
|
25
|
-
else {
|
26
|
-
_logStreamEvent(EventNames.CREATE_STREAM_INVALID_PARAMS, {
|
27
|
-
streamType
|
28
|
-
});
|
29
|
-
return Promise.resolve(undefined);
|
30
|
-
}
|
31
|
-
} // This function is used to create a view for a stream that is part of a call feature.
|
32
|
-
function createCallFeatureViewVideo(context, internalContext, callId, stream, options) {
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
34
|
-
const streamEventType = 'createViewCallFeature';
|
35
|
-
const streamType = stream === null || stream === void 0 ? void 0 : stream.mediaStreamType;
|
36
|
-
const callFeatureStreamId = stream && stream.id;
|
37
|
-
const streamLogInfo = {
|
38
|
-
callId,
|
39
|
-
undefined,
|
40
|
-
streamId: callFeatureStreamId,
|
41
|
-
streamType,
|
42
|
-
streamEventType
|
43
|
-
};
|
44
|
-
// make different logging announcement based on whether or not we are starting a local or remote
|
45
|
-
_logStreamEvent(EventNames.CREATING_VIEW, streamLogInfo);
|
46
|
-
const featureName = getStreamFeatureName(stream);
|
47
|
-
// if we have a participant Id and a stream get the remote info, else get the local render info from state.
|
48
|
-
const renderInfo = internalContext.getCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType);
|
49
|
-
if (!renderInfo) {
|
50
|
-
_logStreamEvent(EventNames.STREAM_NOT_FOUND, streamLogInfo);
|
51
|
-
return;
|
52
|
-
}
|
53
|
-
if (renderInfo.status === 'Rendered') {
|
54
|
-
_logStreamEvent(EventNames.STREAM_ALREADY_RENDERED, streamLogInfo);
|
55
|
-
return;
|
56
|
-
}
|
57
|
-
if (renderInfo.status === 'Rendering') {
|
58
|
-
// Do not log to console here as this is a very common situation due to UI rerenders while
|
59
|
-
// the video rendering is in progress.
|
60
|
-
_logStreamEvent(EventNames.STREAM_RENDERING, streamLogInfo);
|
61
|
-
return;
|
62
|
-
}
|
63
|
-
// "Stopping" only happens if the stream was in "rendering" but `disposeView` was called.
|
64
|
-
// Now that `createView` has been re-called, we can flip the state back to "rendering".
|
65
|
-
if (renderInfo.status === 'Stopping') {
|
66
|
-
_logStreamEvent(EventNames.STREAM_STOPPING, streamLogInfo);
|
67
|
-
internalContext.setCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType, renderInfo.stream, 'Rendering', renderInfo.renderer);
|
68
|
-
return;
|
69
|
-
}
|
70
|
-
const renderer = new VideoStreamRenderer(renderInfo.stream);
|
71
|
-
internalContext.setCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType, renderInfo.stream, 'Rendering', undefined);
|
72
|
-
let view;
|
73
|
-
try {
|
74
|
-
view = yield renderer.createView(options);
|
75
|
-
}
|
76
|
-
catch (e) {
|
77
|
-
_logStreamEvent(EventNames.CREATE_STREAM_FAIL, streamLogInfo, e);
|
78
|
-
internalContext.setCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType, renderInfo.stream, 'NotRendered', undefined);
|
79
|
-
throw e;
|
80
|
-
}
|
81
|
-
// Since render could take some time, we need to check if the stream is still valid and if we received a signal to
|
82
|
-
// stop rendering.
|
83
|
-
const refreshedRenderInfo = internalContext.getCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType);
|
84
|
-
if (!refreshedRenderInfo) {
|
85
|
-
// RenderInfo was removed. This should not happen unless stream was removed from the call so dispose the renderer
|
86
|
-
// and clean up the state.
|
87
|
-
_logStreamEvent(EventNames.RENDER_INFO_NOT_FOUND, streamLogInfo);
|
88
|
-
renderer.dispose();
|
89
|
-
setCallFeatureVideoRendererView(callId, featureName, context, stream.mediaStreamType, undefined);
|
90
|
-
return;
|
91
|
-
}
|
92
|
-
if (refreshedRenderInfo.status === 'Stopping') {
|
93
|
-
// Stop render was called on this stream after we had started rendering. We will dispose this view and do not
|
94
|
-
// put the view into the state.
|
95
|
-
_logStreamEvent(EventNames.CREATED_STREAM_STOPPING, streamLogInfo);
|
96
|
-
renderer.dispose();
|
97
|
-
internalContext.setCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType, refreshedRenderInfo.stream, 'NotRendered', undefined);
|
98
|
-
setCallFeatureVideoRendererView(callId, featureName, context, stream.mediaStreamType, undefined);
|
99
|
-
return;
|
100
|
-
}
|
101
|
-
// Else the stream still exists and status is not telling us to stop rendering. Complete the render process by
|
102
|
-
// updating the state.
|
103
|
-
internalContext.setCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType, refreshedRenderInfo.stream, 'Rendered', renderer);
|
104
|
-
setCallFeatureVideoRendererView(callId, featureName, context, stream.mediaStreamType, convertFromSDKToDeclarativeVideoStreamRendererView(view));
|
105
|
-
_logStreamEvent(EventNames.VIEW_RENDER_SUCCEED, streamLogInfo);
|
106
|
-
return {
|
107
|
-
renderer,
|
108
|
-
view
|
109
|
-
};
|
110
|
-
});
|
111
|
-
}
|
112
|
-
/**
|
113
|
-
* @private
|
114
|
-
*/
|
115
|
-
export function disposeView(context, internalContext, callId, stream) {
|
116
|
-
const streamType = stream.mediaStreamType;
|
117
|
-
if (callId && isCallFeatureStream(stream)) {
|
118
|
-
return disposeCallFeatureViewVideo(context, internalContext, callId, stream);
|
119
|
-
}
|
120
|
-
else {
|
121
|
-
_logStreamEvent(EventNames.DISPOSE_STREAM_INVALID_PARAMS, {
|
122
|
-
streamType
|
123
|
-
});
|
124
|
-
return;
|
125
|
-
}
|
126
|
-
}
|
127
|
-
/**
|
128
|
-
* @private
|
129
|
-
*/
|
130
|
-
function disposeCallFeatureViewVideo(context, internalContext, callId, stream) {
|
131
|
-
const streamEventType = 'disposeViewCallFeature';
|
132
|
-
const streamType = stream.mediaStreamType;
|
133
|
-
const callFeatureStreamId = stream && stream.id;
|
134
|
-
const streamLogInfo = {
|
135
|
-
callId,
|
136
|
-
undefined,
|
137
|
-
streamId: callFeatureStreamId,
|
138
|
-
streamType
|
139
|
-
};
|
140
|
-
_logStreamEvent(EventNames.START_DISPOSE_STREAM, streamLogInfo);
|
141
|
-
const featureName = getStreamFeatureName(stream);
|
142
|
-
if (streamEventType === 'disposeViewCallFeature') {
|
143
|
-
setCallFeatureVideoRendererView(callId, featureName, context, streamType, undefined);
|
144
|
-
}
|
145
|
-
const renderInfo = internalContext.getCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType);
|
146
|
-
if (!renderInfo) {
|
147
|
-
_logStreamEvent(EventNames.DISPOSE_INFO_NOT_FOUND, streamLogInfo);
|
148
|
-
return;
|
149
|
-
}
|
150
|
-
// Nothing to dispose of or clean up -- we can safely exit early here.
|
151
|
-
if (renderInfo.status === 'NotRendered') {
|
152
|
-
_logStreamEvent(EventNames.STREAM_ALREADY_DISPOSED, streamLogInfo);
|
153
|
-
return;
|
154
|
-
}
|
155
|
-
// Status is already marked as "stopping" so we can exit early here. This is because stopping only occurs
|
156
|
-
// when the stream is being created in createView but hasn't been completed being created yet. The createView
|
157
|
-
// method will see the "stopping" status and perform the cleanup
|
158
|
-
if (renderInfo.status === 'Stopping') {
|
159
|
-
_logStreamEvent(EventNames.STREAM_STOPPING, streamLogInfo);
|
160
|
-
return;
|
161
|
-
}
|
162
|
-
// If the stream is in the middle of being rendered (i.e. has state "Rendering"), we need the status as
|
163
|
-
// "stopping" without performing any cleanup. This will tell the `createView` method that it should stop
|
164
|
-
// rendering and clean up the state once the view has finished being created.
|
165
|
-
if (renderInfo.status === 'Rendering') {
|
166
|
-
_logStreamEvent(EventNames.STREAM_STOPPING, streamLogInfo);
|
167
|
-
internalContext.setCallFeatureRenderInfo(callId, featureName, streamType, renderInfo.stream, 'Stopping', renderInfo.renderer);
|
168
|
-
return;
|
169
|
-
}
|
170
|
-
if (renderInfo.renderer) {
|
171
|
-
_logStreamEvent(EventNames.DISPOSING_RENDERER, streamLogInfo);
|
172
|
-
renderInfo.renderer.dispose();
|
173
|
-
// Else the state must be in the "Rendered" state, so we can dispose the renderer and clean up the state.
|
174
|
-
internalContext.setCallFeatureRenderInfo(callId, featureName, streamType, renderInfo.stream, 'NotRendered', undefined);
|
175
|
-
setCallFeatureVideoRendererView(callId, featureName, context, streamType, undefined);
|
176
|
-
}
|
177
|
-
else {
|
178
|
-
_logStreamEvent(EventNames.RENDERER_NOT_FOUND, streamLogInfo);
|
179
|
-
}
|
180
|
-
}
|
181
|
-
/**
|
182
|
-
* @private
|
183
|
-
*/
|
184
|
-
const setCallFeatureVideoRendererView = (callId, featureName, context, streamType, view) => {
|
185
|
-
if (featureName === 'togetherMode') {
|
186
|
-
context.setTogetherModeVideoStreamRendererView(callId, streamType, view);
|
187
|
-
}
|
188
|
-
};
|
189
|
-
/**
|
190
|
-
* @private
|
191
|
-
*/
|
192
|
-
const getStreamFeatureName = (stream) => {
|
193
|
-
if (stream.feature) {
|
194
|
-
return stream.feature;
|
195
|
-
}
|
196
|
-
throw new Error('Feature name not found');
|
197
|
-
};
|
198
|
-
/**
|
199
|
-
* @private
|
200
|
-
*/
|
201
|
-
function isCallFeatureStream(stream) {
|
202
|
-
return 'feature' in stream || false;
|
203
|
-
}
|
204
|
-
//# sourceMappingURL=CallFeatureStreamUtils.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CallFeatureStreamUtils.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/CallFeatureStreamUtils.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAqB,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAItF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,kDAAkD,EAAE,MAAM,aAAa,CAAC;AACjF;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,OAAoB,EAAE,eAAoC,EAAE,MAA0B,EAAE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EAAE;IAC7L,IAAI,WAAW,KAAK,cAAc,EAAE,CAAC;QACnC,OAAO,CAAC,sCAAsC,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;AACH,CAAC,CAAC;AACF;;GAEG;AACH,MAAM,oBAAoB,GAAG,CAAC,MAA8B,EAAyB,EAAE;IACrF,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,OAAO,MAAM,CAAC,OAAO,CAAC;IACxB,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAC5C,CAAC,CAAC;AACF;;GAEG;AACH,SAAS,mBAAmB,CAAC,MAA8B;IACzD,OAAO,SAAS,IAAI,MAAM,IAAI,KAAK,CAAC;AACtC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { CreateViewOptions, VideoStreamRenderer } from '@azure/communication-calling';\nimport { CallContext } from './CallContext';\nimport { CallFeatureStreamName, CallFeatureStreamState, CreateViewResult, VideoStreamRendererViewState } from './index-public';\nimport { InternalCallContext } from './InternalCallContext';\nimport { _logStreamEvent } from './StreamUtilsLogging';\nimport { EventNames } from './Logger';\nimport { convertFromSDKToDeclarativeVideoStreamRendererView } from './Converter';\n/**\n * @private\n *\n */\nexport function createView(context: CallContext, internalContext: InternalCallContext, callId: string | undefined, stream: CallFeatureStreamState, options?: CreateViewOptions): Promise<CreateViewResult | undefined> {\n const streamType = stream.mediaStreamType;\n if (callId && isCallFeatureStream(stream)) {\n return createCallFeatureViewVideo(context, internalContext, callId, stream, options);\n } else {\n _logStreamEvent(EventNames.CREATE_STREAM_INVALID_PARAMS, {\n streamType\n });\n return Promise.resolve(undefined);\n }\n} // This function is used to create a view for a stream that is part of a call feature.\nasync function createCallFeatureViewVideo(context: CallContext, internalContext: InternalCallContext, callId: string, stream: CallFeatureStreamState, options?: CreateViewOptions): Promise<CreateViewResult | undefined> {\n const streamEventType = 'createViewCallFeature';\n const streamType = stream?.mediaStreamType;\n const callFeatureStreamId = stream && stream.id;\n const streamLogInfo = {\n callId,\n undefined,\n streamId: callFeatureStreamId,\n streamType,\n streamEventType\n };\n\n // make different logging announcement based on whether or not we are starting a local or remote\n _logStreamEvent(EventNames.CREATING_VIEW, streamLogInfo);\n const featureName = getStreamFeatureName(stream);\n // if we have a participant Id and a stream get the remote info, else get the local render info from state.\n const renderInfo = internalContext.getCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType);\n if (!renderInfo) {\n _logStreamEvent(EventNames.STREAM_NOT_FOUND, streamLogInfo);\n return;\n }\n if (renderInfo.status === 'Rendered') {\n _logStreamEvent(EventNames.STREAM_ALREADY_RENDERED, streamLogInfo);\n return;\n }\n if (renderInfo.status === 'Rendering') {\n // Do not log to console here as this is a very common situation due to UI rerenders while\n // the video rendering is in progress.\n _logStreamEvent(EventNames.STREAM_RENDERING, streamLogInfo);\n return;\n }\n\n // \"Stopping\" only happens if the stream was in \"rendering\" but `disposeView` was called.\n // Now that `createView` has been re-called, we can flip the state back to \"rendering\".\n if (renderInfo.status === 'Stopping') {\n _logStreamEvent(EventNames.STREAM_STOPPING, streamLogInfo);\n internalContext.setCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType, renderInfo.stream, 'Rendering', renderInfo.renderer);\n return;\n }\n const renderer = new VideoStreamRenderer(renderInfo.stream);\n internalContext.setCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType, renderInfo.stream, 'Rendering', undefined);\n let view;\n try {\n view = await renderer.createView(options);\n } catch (e) {\n _logStreamEvent(EventNames.CREATE_STREAM_FAIL, streamLogInfo, e);\n internalContext.setCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType, renderInfo.stream, 'NotRendered', undefined);\n throw e;\n }\n\n // Since render could take some time, we need to check if the stream is still valid and if we received a signal to\n // stop rendering.\n const refreshedRenderInfo = internalContext.getCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType);\n if (!refreshedRenderInfo) {\n // RenderInfo was removed. This should not happen unless stream was removed from the call so dispose the renderer\n // and clean up the state.\n _logStreamEvent(EventNames.RENDER_INFO_NOT_FOUND, streamLogInfo);\n renderer.dispose();\n setCallFeatureVideoRendererView(callId, featureName, context, stream.mediaStreamType, undefined);\n return;\n }\n if (refreshedRenderInfo.status === 'Stopping') {\n // Stop render was called on this stream after we had started rendering. We will dispose this view and do not\n // put the view into the state.\n _logStreamEvent(EventNames.CREATED_STREAM_STOPPING, streamLogInfo);\n renderer.dispose();\n internalContext.setCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType, refreshedRenderInfo.stream, 'NotRendered', undefined);\n setCallFeatureVideoRendererView(callId, featureName, context, stream.mediaStreamType, undefined);\n return;\n }\n\n // Else the stream still exists and status is not telling us to stop rendering. Complete the render process by\n // updating the state.\n internalContext.setCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType, refreshedRenderInfo.stream, 'Rendered', renderer);\n setCallFeatureVideoRendererView(callId, featureName, context, stream.mediaStreamType, convertFromSDKToDeclarativeVideoStreamRendererView(view));\n _logStreamEvent(EventNames.VIEW_RENDER_SUCCEED, streamLogInfo);\n return {\n renderer,\n view\n };\n}\n/**\n * @private\n */\nexport function disposeView(context: CallContext, internalContext: InternalCallContext, callId: string | undefined, stream: CallFeatureStreamState): void {\n const streamType = stream.mediaStreamType;\n if (callId && isCallFeatureStream(stream)) {\n return disposeCallFeatureViewVideo(context, internalContext, callId, stream);\n } else {\n _logStreamEvent(EventNames.DISPOSE_STREAM_INVALID_PARAMS, {\n streamType\n });\n return;\n }\n}\n/**\n * @private\n */\nfunction disposeCallFeatureViewVideo(context: CallContext, internalContext: InternalCallContext, callId: string, stream: CallFeatureStreamState): void {\n const streamEventType = 'disposeViewCallFeature';\n const streamType = stream.mediaStreamType;\n const callFeatureStreamId = stream && stream.id;\n const streamLogInfo = {\n callId,\n undefined,\n streamId: callFeatureStreamId,\n streamType\n };\n _logStreamEvent(EventNames.START_DISPOSE_STREAM, streamLogInfo);\n const featureName: CallFeatureStreamName = getStreamFeatureName(stream);\n if (streamEventType === 'disposeViewCallFeature') {\n setCallFeatureVideoRendererView(callId, featureName, context, streamType, undefined);\n }\n const renderInfo = internalContext.getCallFeatureRenderInfo(callId, featureName, stream.mediaStreamType);\n if (!renderInfo) {\n _logStreamEvent(EventNames.DISPOSE_INFO_NOT_FOUND, streamLogInfo);\n return;\n }\n\n // Nothing to dispose of or clean up -- we can safely exit early here.\n if (renderInfo.status === 'NotRendered') {\n _logStreamEvent(EventNames.STREAM_ALREADY_DISPOSED, streamLogInfo);\n return;\n }\n\n // Status is already marked as \"stopping\" so we can exit early here. This is because stopping only occurs\n // when the stream is being created in createView but hasn't been completed being created yet. The createView\n // method will see the \"stopping\" status and perform the cleanup\n if (renderInfo.status === 'Stopping') {\n _logStreamEvent(EventNames.STREAM_STOPPING, streamLogInfo);\n return;\n }\n\n // If the stream is in the middle of being rendered (i.e. has state \"Rendering\"), we need the status as\n // \"stopping\" without performing any cleanup. This will tell the `createView` method that it should stop\n // rendering and clean up the state once the view has finished being created.\n if (renderInfo.status === 'Rendering') {\n _logStreamEvent(EventNames.STREAM_STOPPING, streamLogInfo);\n internalContext.setCallFeatureRenderInfo(callId, featureName, streamType, renderInfo.stream, 'Stopping', renderInfo.renderer);\n return;\n }\n if (renderInfo.renderer) {\n _logStreamEvent(EventNames.DISPOSING_RENDERER, streamLogInfo);\n renderInfo.renderer.dispose();\n // Else the state must be in the \"Rendered\" state, so we can dispose the renderer and clean up the state.\n internalContext.setCallFeatureRenderInfo(callId, featureName, streamType, renderInfo.stream, 'NotRendered', undefined);\n setCallFeatureVideoRendererView(callId, featureName, context, streamType, undefined);\n } else {\n _logStreamEvent(EventNames.RENDERER_NOT_FOUND, streamLogInfo);\n }\n}\n/**\n * @private\n */\nconst setCallFeatureVideoRendererView = (callId: string, featureName: CallFeatureStreamName, context: CallContext, streamType: string, view: VideoStreamRendererViewState | undefined): void => {\n if (featureName === 'togetherMode') {\n context.setTogetherModeVideoStreamRendererView(callId, streamType, view);\n }\n};\n/**\n * @private\n */\nconst getStreamFeatureName = (stream: CallFeatureStreamState): CallFeatureStreamName => {\n if (stream.feature) {\n return stream.feature;\n }\n throw new Error('Feature name not found');\n};\n/**\n * @private\n */\nfunction isCallFeatureStream(stream: CallFeatureStreamState): boolean {\n return 'feature' in stream || false;\n}"]}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { LocalRecordingCallFeature } from '@azure/communication-calling';
|
2
|
-
import { CallContext } from './CallContext';
|
3
|
-
import { CallIdRef } from './CallIdRef';
|
4
|
-
/**
|
5
|
-
* @private
|
6
|
-
*/
|
7
|
-
export declare class LocalRecordingSubscriber {
|
8
|
-
private _callIdRef;
|
9
|
-
private _context;
|
10
|
-
private _recording;
|
11
|
-
constructor(callIdRef: CallIdRef, context: CallContext, recording: LocalRecordingCallFeature);
|
12
|
-
private subscribe;
|
13
|
-
unsubscribe: () => void;
|
14
|
-
private isAvailableChanged;
|
15
|
-
private isRecordingsUpdated;
|
16
|
-
}
|
17
|
-
//# sourceMappingURL=LocalRecordingSubscriber.d.ts.map
|
@@ -1,33 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @private
|
3
|
-
*/
|
4
|
-
export class LocalRecordingSubscriber {
|
5
|
-
constructor(callIdRef, context, recording) {
|
6
|
-
this.subscribe = () => {
|
7
|
-
this._recording.on('isLocalRecordingActiveChanged', this.isAvailableChanged);
|
8
|
-
this._recording.on('localRecordingsUpdated', this.isRecordingsUpdated);
|
9
|
-
};
|
10
|
-
this.unsubscribe = () => {
|
11
|
-
this._recording.off('isLocalRecordingActiveChanged', this.isAvailableChanged);
|
12
|
-
this._recording.off('localRecordingsUpdated', this.isRecordingsUpdated);
|
13
|
-
};
|
14
|
-
this.isAvailableChanged = () => {
|
15
|
-
this._context.setCallLocalRecordingActive(this._callIdRef.callId, this._recording.isRecordingActive);
|
16
|
-
};
|
17
|
-
this.isRecordingsUpdated = (data) => {
|
18
|
-
this._context.setCallLocalRecordingInfos(this._callIdRef.callId, this._recording.recordings, data.removed);
|
19
|
-
};
|
20
|
-
this._callIdRef = callIdRef;
|
21
|
-
this._context = context;
|
22
|
-
this._recording = recording;
|
23
|
-
// If recording as already started when we joined the call, make sure it is reflected in state as there may not
|
24
|
-
// be an event for it.
|
25
|
-
if (this._recording.isRecordingActive) {
|
26
|
-
this._context.setCallLocalRecordingActive(this._callIdRef.callId, this._recording.isRecordingActive);
|
27
|
-
// recordings getter only returns a list of active recordings, so we can set the list of recordings here
|
28
|
-
this._context.setCallLocalRecordingInfos(this._callIdRef.callId, this._recording.recordings, []);
|
29
|
-
}
|
30
|
-
this.subscribe();
|
31
|
-
}
|
32
|
-
}
|
33
|
-
//# sourceMappingURL=LocalRecordingSubscriber.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"LocalRecordingSubscriber.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/LocalRecordingSubscriber.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAInC,YAAY,SAAoB,EAAE,OAAoB,EAAE,SAAoC;QAcpF,cAAS,GAAG,GAAS,EAAE;YAC7B,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,+BAA+B,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;YAC7E,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,wBAAwB,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;QACzE,CAAC,CAAC;QACK,gBAAW,GAAG,GAAS,EAAE;YAC9B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,+BAA+B,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;YAC9E,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,wBAAwB,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAC1E,CAAC,CAAC;QACM,uBAAkB,GAAG,GAAS,EAAE;YACtC,IAAI,CAAC,QAAQ,CAAC,2BAA2B,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;QACvG,CAAC,CAAC;QACM,wBAAmB,GAAG,CAAC,IAG9B,EAAQ,EAAE;YACT,IAAI,CAAC,QAAQ,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7G,CAAC,CAAC;QA7BA,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAE5B,+GAA+G;QAC/G,sBAAsB;QACtB,IAAI,IAAI,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC;YACtC,IAAI,CAAC,QAAQ,CAAC,2BAA2B,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;YACrG,wGAAwG;YACxG,IAAI,CAAC,QAAQ,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QACnG,CAAC;QACD,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;CAkBF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { LocalRecordingCallFeature, LocalRecordingInfo } from '@azure/communication-calling';\nimport { CallContext } from './CallContext';\nimport { CallIdRef } from './CallIdRef';\n/**\n * @private\n */\nexport class LocalRecordingSubscriber {\n private _callIdRef: CallIdRef;\n private _context: CallContext;\n private _recording: LocalRecordingCallFeature;\n constructor(callIdRef: CallIdRef, context: CallContext, recording: LocalRecordingCallFeature) {\n this._callIdRef = callIdRef;\n this._context = context;\n this._recording = recording;\n\n // If recording as already started when we joined the call, make sure it is reflected in state as there may not\n // be an event for it.\n if (this._recording.isRecordingActive) {\n this._context.setCallLocalRecordingActive(this._callIdRef.callId, this._recording.isRecordingActive);\n // recordings getter only returns a list of active recordings, so we can set the list of recordings here\n this._context.setCallLocalRecordingInfos(this._callIdRef.callId, this._recording.recordings, []);\n }\n this.subscribe();\n }\n private subscribe = (): void => {\n this._recording.on('isLocalRecordingActiveChanged', this.isAvailableChanged);\n this._recording.on('localRecordingsUpdated', this.isRecordingsUpdated);\n };\n public unsubscribe = (): void => {\n this._recording.off('isLocalRecordingActiveChanged', this.isAvailableChanged);\n this._recording.off('localRecordingsUpdated', this.isRecordingsUpdated);\n };\n private isAvailableChanged = (): void => {\n this._context.setCallLocalRecordingActive(this._callIdRef.callId, this._recording.isRecordingActive);\n };\n private isRecordingsUpdated = (data: {\n added: LocalRecordingInfo[];\n removed: LocalRecordingInfo[];\n }): void => {\n this._context.setCallLocalRecordingInfos(this._callIdRef.callId, this._recording.recordings, data.removed);\n };\n}"]}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { RealTimeTextFeature } from '@azure/communication-calling';
|
2
|
-
import { CallContext } from './CallContext';
|
3
|
-
import { CallIdRef } from './CallIdRef';
|
4
|
-
/**
|
5
|
-
* @private
|
6
|
-
*/
|
7
|
-
export declare class RealTimeTextSubscriber {
|
8
|
-
private _callIdRef;
|
9
|
-
private _context;
|
10
|
-
private _realTimeTextFeature;
|
11
|
-
constructor(callIdRef: CallIdRef, context: CallContext, realTimeText: RealTimeTextFeature);
|
12
|
-
private subscribe;
|
13
|
-
unsubscribe: () => void;
|
14
|
-
private realTimeTextReceived;
|
15
|
-
}
|
16
|
-
//# sourceMappingURL=RealTimeTextSubscriber.d.ts.map
|
@@ -1,22 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @private
|
3
|
-
*/
|
4
|
-
export class RealTimeTextSubscriber {
|
5
|
-
constructor(callIdRef, context, realTimeText) {
|
6
|
-
this.subscribe = () => {
|
7
|
-
this._realTimeTextFeature.on('realTimeTextReceived', this.realTimeTextReceived);
|
8
|
-
};
|
9
|
-
this.unsubscribe = () => {
|
10
|
-
this._realTimeTextFeature.off('realTimeTextReceived', this.realTimeTextReceived);
|
11
|
-
};
|
12
|
-
this.realTimeTextReceived = (data) => {
|
13
|
-
this._context.setIsRealTimeTextActive(this._callIdRef.callId, true);
|
14
|
-
this._context.addRealTimeText(this._callIdRef.callId, data);
|
15
|
-
};
|
16
|
-
this._callIdRef = callIdRef;
|
17
|
-
this._context = context;
|
18
|
-
this._realTimeTextFeature = realTimeText;
|
19
|
-
this.subscribe();
|
20
|
-
}
|
21
|
-
}
|
22
|
-
//# sourceMappingURL=RealTimeTextSubscriber.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RealTimeTextSubscriber.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/RealTimeTextSubscriber.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,OAAO,sBAAsB;IAIjC,YAAY,SAAoB,EAAE,OAAoB,EAAE,YAAiC;QAMjF,cAAS,GAAG,GAAS,EAAE;YAC7B,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC,sBAAsB,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAClF,CAAC,CAAC;QACK,gBAAW,GAAG,GAAS,EAAE;YAC9B,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,sBAAsB,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACnF,CAAC,CAAC;QACM,yBAAoB,GAAqC,CAAC,IAAsB,EAAQ,EAAE;YAChG,IAAI,CAAC,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YACpE,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC9D,CAAC,CAAC;QAdA,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,oBAAoB,GAAG,YAAY,CAAC;QACzC,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;CAWF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { RealTimeTextFeature, RealTimeTextInfo, RealTimeTextReceivedEventHandler } from '@azure/communication-calling';\nimport { CallContext } from './CallContext';\nimport { CallIdRef } from './CallIdRef';\n/**\n * @private\n */\nexport class RealTimeTextSubscriber {\n private _callIdRef: CallIdRef;\n private _context: CallContext;\n private _realTimeTextFeature: RealTimeTextFeature;\n constructor(callIdRef: CallIdRef, context: CallContext, realTimeText: RealTimeTextFeature) {\n this._callIdRef = callIdRef;\n this._context = context;\n this._realTimeTextFeature = realTimeText;\n this.subscribe();\n }\n private subscribe = (): void => {\n this._realTimeTextFeature.on('realTimeTextReceived', this.realTimeTextReceived);\n };\n public unsubscribe = (): void => {\n this._realTimeTextFeature.off('realTimeTextReceived', this.realTimeTextReceived);\n };\n private realTimeTextReceived: RealTimeTextReceivedEventHandler = (data: RealTimeTextInfo): void => {\n this._context.setIsRealTimeTextActive(this._callIdRef.callId, true);\n this._context.addRealTimeText(this._callIdRef.callId, data);\n };\n}"]}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { TogetherModeCallFeature } from '@azure/communication-calling';
|
2
|
-
import { CallContext } from './CallContext';
|
3
|
-
import { CallIdRef } from './CallIdRef';
|
4
|
-
import { InternalCallContext } from './InternalCallContext';
|
5
|
-
/**
|
6
|
-
* TogetherModeSubscriber is responsible for subscribing to together mode events and updating the call context accordingly.
|
7
|
-
*/
|
8
|
-
export declare class TogetherModeSubscriber {
|
9
|
-
private _callIdRef;
|
10
|
-
private _context;
|
11
|
-
private _internalContext;
|
12
|
-
private _togetherMode;
|
13
|
-
private _featureName;
|
14
|
-
private _togetherModeVideoStreamSubscribers;
|
15
|
-
constructor(callIdRef: CallIdRef, context: CallContext, internalContext: InternalCallContext, togetherMode: TogetherModeCallFeature);
|
16
|
-
private subscribe;
|
17
|
-
unsubscribe: () => void;
|
18
|
-
private onSceneUpdated;
|
19
|
-
private onSeatUpdated;
|
20
|
-
private addRemoteVideoStreamSubscriber;
|
21
|
-
private updateTogetherModeStreams;
|
22
|
-
private onTogetherModeStreamUpdated;
|
23
|
-
}
|
24
|
-
//# sourceMappingURL=TogetherModeSubscriber.d.ts.map
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import { convertSdkCallFeatureStreamToDeclarativeCallFeatureStream } from './Converter';
|
2
|
-
import { TogetherModeVideoStreamSubscriber } from './TogetherModeVideoStreamSubscriber';
|
3
|
-
/**
|
4
|
-
* TogetherModeSubscriber is responsible for subscribing to together mode events and updating the call context accordingly.
|
5
|
-
*/
|
6
|
-
export class TogetherModeSubscriber {
|
7
|
-
constructor(callIdRef, context, internalContext, togetherMode) {
|
8
|
-
this._featureName = 'togetherMode';
|
9
|
-
this.subscribe = () => {
|
10
|
-
this._togetherMode.on('togetherModeStreamsUpdated', this.onTogetherModeStreamUpdated);
|
11
|
-
this._togetherMode.on('togetherModeSceneUpdated', this.onSceneUpdated);
|
12
|
-
this._togetherMode.on('togetherModeSeatingUpdated', this.onSeatUpdated);
|
13
|
-
};
|
14
|
-
this.unsubscribe = () => {
|
15
|
-
this._togetherMode.off('togetherModeStreamsUpdated', this.onTogetherModeStreamUpdated);
|
16
|
-
this._togetherMode.off('togetherModeSceneUpdated', this.onSceneUpdated);
|
17
|
-
this._togetherMode.off('togetherModeSeatingUpdated', this.onSeatUpdated);
|
18
|
-
};
|
19
|
-
this.onSceneUpdated = (args) => {
|
20
|
-
this._context.setTogetherModeSeatingCoordinates(this._callIdRef.callId, args);
|
21
|
-
};
|
22
|
-
this.onSeatUpdated = (args) => {
|
23
|
-
this._context.setTogetherModeSeatingCoordinates(this._callIdRef.callId, args);
|
24
|
-
};
|
25
|
-
this.addRemoteVideoStreamSubscriber = (togetherModeVideoStream) => {
|
26
|
-
if (this._togetherModeVideoStreamSubscribers.has(togetherModeVideoStream.id)) {
|
27
|
-
return;
|
28
|
-
}
|
29
|
-
this._togetherModeVideoStreamSubscribers.set(togetherModeVideoStream.id, new TogetherModeVideoStreamSubscriber(this._callIdRef, togetherModeVideoStream, this._context));
|
30
|
-
};
|
31
|
-
this.updateTogetherModeStreams = (addedStreams, removedStreams) => {
|
32
|
-
removedStreams.forEach(stream => {
|
33
|
-
var _a;
|
34
|
-
(_a = this._togetherModeVideoStreamSubscribers.get(stream.id)) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
35
|
-
this._togetherModeVideoStreamSubscribers.delete(stream.id);
|
36
|
-
this._internalContext.deleteCallFeatureRenderInfo(this._callIdRef.callId, this._featureName, stream.mediaStreamType);
|
37
|
-
});
|
38
|
-
addedStreams.filter(stream => stream.isAvailable).forEach(stream => {
|
39
|
-
this._internalContext.setCallFeatureRenderInfo(this._callIdRef.callId, this._featureName, stream.mediaStreamType, stream, 'NotRendered', undefined);
|
40
|
-
this.addRemoteVideoStreamSubscriber(stream);
|
41
|
-
});
|
42
|
-
this._context.setTogetherModeVideoStreams(this._callIdRef.callId, addedStreams.filter(stream => stream.isAvailable).map(stream => convertSdkCallFeatureStreamToDeclarativeCallFeatureStream(stream, this._featureName)), removedStreams.map(stream => convertSdkCallFeatureStreamToDeclarativeCallFeatureStream(stream, this._featureName)));
|
43
|
-
const notificationTarget = this._togetherMode.togetherModeStream.length ? 'togetherModeStarted' : 'togetherModeEnded';
|
44
|
-
this._context.setLatestNotification(this._callIdRef.callId, {
|
45
|
-
target: notificationTarget,
|
46
|
-
timestamp: new Date()
|
47
|
-
});
|
48
|
-
};
|
49
|
-
this.onTogetherModeStreamUpdated = (args) => {
|
50
|
-
this.updateTogetherModeStreams(args.added, args.removed);
|
51
|
-
};
|
52
|
-
this._callIdRef = callIdRef;
|
53
|
-
this._context = context;
|
54
|
-
this._internalContext = internalContext;
|
55
|
-
this._togetherMode = togetherMode;
|
56
|
-
this._togetherModeVideoStreamSubscribers = new Map();
|
57
|
-
this.subscribe();
|
58
|
-
}
|
59
|
-
}
|
60
|
-
//# sourceMappingURL=TogetherModeSubscriber.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TogetherModeSubscriber.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/TogetherModeSubscriber.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,yDAAyD,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAExF;;GAEG;AACH,MAAM,OAAO,sBAAsB;IAOjC,YAAY,SAAoB,EAAE,OAAoB,EAAE,eAAoC,EAAE,YAAqC;QAF3H,iBAAY,GAA0B,cAAc,CAAC;QAUrD,cAAS,GAAG,GAAS,EAAE;YAC7B,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,4BAA4B,EAAE,IAAI,CAAC,2BAA2B,CAAC,CAAC;YACtF,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,0BAA0B,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;YACvE,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,4BAA4B,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QAC1E,CAAC,CAAC;QACK,gBAAW,GAAG,GAAS,EAAE;YAC9B,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,4BAA4B,EAAE,IAAI,CAAC,2BAA2B,CAAC,CAAC;YACvF,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,0BAA0B,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;YACxE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,4BAA4B,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3E,CAAC,CAAC;QACM,mBAAc,GAAG,CAAC,IAA4B,EAAQ,EAAE;YAC9D,IAAI,CAAC,QAAQ,CAAC,iCAAiC,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,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,EAAE,CAAC;IACnB,CAAC;CA8CF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { RemoteVideoStream, TogetherModeCallFeature, TogetherModeSeatingMap, TogetherModeVideoStream } from '@azure/communication-calling';\nimport { CallContext } from './CallContext';\nimport { CallIdRef } from './CallIdRef';\nimport { InternalCallContext } from './InternalCallContext';\nimport { convertSdkCallFeatureStreamToDeclarativeCallFeatureStream } from './Converter';\nimport { TogetherModeVideoStreamSubscriber } from './TogetherModeVideoStreamSubscriber';\nimport { CallFeatureStreamName } from './CallClientState';\n/**\n * TogetherModeSubscriber is responsible for subscribing to together mode events and updating the call context accordingly.\n */\nexport class TogetherModeSubscriber {\n private _callIdRef: CallIdRef;\n private _context: CallContext;\n private _internalContext: InternalCallContext;\n private _togetherMode: TogetherModeCallFeature;\n private _featureName: CallFeatureStreamName = 'togetherMode';\n private _togetherModeVideoStreamSubscribers: Map<number, TogetherModeVideoStreamSubscriber>;\n constructor(callIdRef: CallIdRef, context: CallContext, internalContext: InternalCallContext, togetherMode: TogetherModeCallFeature) {\n this._callIdRef = callIdRef;\n this._context = context;\n this._internalContext = internalContext;\n this._togetherMode = togetherMode;\n this._togetherModeVideoStreamSubscribers = new Map<number, TogetherModeVideoStreamSubscriber>();\n this.subscribe();\n }\n private subscribe = (): void => {\n this._togetherMode.on('togetherModeStreamsUpdated', this.onTogetherModeStreamUpdated);\n this._togetherMode.on('togetherModeSceneUpdated', this.onSceneUpdated);\n this._togetherMode.on('togetherModeSeatingUpdated', this.onSeatUpdated);\n };\n public unsubscribe = (): void => {\n this._togetherMode.off('togetherModeStreamsUpdated', this.onTogetherModeStreamUpdated);\n this._togetherMode.off('togetherModeSceneUpdated', this.onSceneUpdated);\n this._togetherMode.off('togetherModeSeatingUpdated', this.onSeatUpdated);\n };\n private onSceneUpdated = (args: TogetherModeSeatingMap): void => {\n this._context.setTogetherModeSeatingCoordinates(this._callIdRef.callId, args);\n };\n private onSeatUpdated = (args: TogetherModeSeatingMap): void => {\n this._context.setTogetherModeSeatingCoordinates(this._callIdRef.callId, args);\n };\n private addRemoteVideoStreamSubscriber = (togetherModeVideoStream: TogetherModeVideoStream): void => {\n if (this._togetherModeVideoStreamSubscribers.has(togetherModeVideoStream.id)) {\n return;\n }\n this._togetherModeVideoStreamSubscribers.set(togetherModeVideoStream.id, new TogetherModeVideoStreamSubscriber(this._callIdRef, togetherModeVideoStream, this._context));\n };\n private updateTogetherModeStreams = (addedStreams: TogetherModeVideoStream[], removedStreams: TogetherModeVideoStream[]): void => {\n removedStreams.forEach(stream => {\n this._togetherModeVideoStreamSubscribers.get(stream.id)?.unsubscribe();\n this._togetherModeVideoStreamSubscribers.delete(stream.id);\n this._internalContext.deleteCallFeatureRenderInfo(this._callIdRef.callId, this._featureName, stream.mediaStreamType);\n });\n addedStreams.filter(stream => stream.isAvailable).forEach(stream => {\n this._internalContext.setCallFeatureRenderInfo(this._callIdRef.callId, this._featureName, stream.mediaStreamType, stream as RemoteVideoStream, 'NotRendered', undefined);\n this.addRemoteVideoStreamSubscriber(stream);\n });\n this._context.setTogetherModeVideoStreams(this._callIdRef.callId, addedStreams.filter(stream => stream.isAvailable).map(stream => convertSdkCallFeatureStreamToDeclarativeCallFeatureStream(stream, this._featureName)), removedStreams.map(stream => convertSdkCallFeatureStreamToDeclarativeCallFeatureStream(stream, this._featureName)));\n const notificationTarget = this._togetherMode.togetherModeStream.length ? 'togetherModeStarted' : 'togetherModeEnded';\n this._context.setLatestNotification(this._callIdRef.callId, {\n target: notificationTarget,\n timestamp: new Date()\n });\n };\n private onTogetherModeStreamUpdated = (args: {\n added: TogetherModeVideoStream[];\n removed: TogetherModeVideoStream[];\n }): void => {\n this.updateTogetherModeStreams(args.added, args.removed);\n };\n}"]}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { TogetherModeVideoStream } from '@azure/communication-calling';
|
2
|
-
import { CallContext } from './CallContext';
|
3
|
-
import { CallIdRef } from './CallIdRef';
|
4
|
-
/**
|
5
|
-
* @private
|
6
|
-
*/
|
7
|
-
export declare class TogetherModeVideoStreamSubscriber {
|
8
|
-
private _callIdRef;
|
9
|
-
private _togetherModeStream;
|
10
|
-
private _context;
|
11
|
-
constructor(callIdRef: CallIdRef, stream: TogetherModeVideoStream, context: CallContext);
|
12
|
-
private subscribe;
|
13
|
-
unsubscribe: () => void;
|
14
|
-
private isAvailableChanged;
|
15
|
-
private isReceivingChanged;
|
16
|
-
private isSizeChanged;
|
17
|
-
}
|
18
|
-
//# sourceMappingURL=TogetherModeVideoStreamSubscriber.d.ts.map
|
@@ -1,31 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @private
|
3
|
-
*/
|
4
|
-
export class TogetherModeVideoStreamSubscriber {
|
5
|
-
constructor(callIdRef, stream, context) {
|
6
|
-
this.subscribe = () => {
|
7
|
-
this._togetherModeStream.on('isAvailableChanged', this.isAvailableChanged);
|
8
|
-
this._togetherModeStream.on('isReceivingChanged', this.isReceivingChanged);
|
9
|
-
this._togetherModeStream.on('sizeChanged', this.isSizeChanged);
|
10
|
-
};
|
11
|
-
this.unsubscribe = () => {
|
12
|
-
this._togetherModeStream.off('isAvailableChanged', this.isAvailableChanged);
|
13
|
-
this._togetherModeStream.off('isReceivingChanged', this.isReceivingChanged);
|
14
|
-
this._togetherModeStream.off('sizeChanged', this.isSizeChanged);
|
15
|
-
};
|
16
|
-
this.isAvailableChanged = () => {
|
17
|
-
this._context.setTogetherModeVideoStreamIsAvailable(this._callIdRef.callId, this._togetherModeStream.id, this._togetherModeStream.isAvailable);
|
18
|
-
};
|
19
|
-
this.isReceivingChanged = () => {
|
20
|
-
this._context.setTogetherModeVideoStreamIsReceiving(this._callIdRef.callId, this._togetherModeStream.id, this._togetherModeStream.isReceiving);
|
21
|
-
};
|
22
|
-
this.isSizeChanged = () => {
|
23
|
-
this._context.setTogetherModeVideoStreamSize(this._callIdRef.callId, this._togetherModeStream.id, this._togetherModeStream.size);
|
24
|
-
};
|
25
|
-
this._callIdRef = callIdRef;
|
26
|
-
this._togetherModeStream = stream;
|
27
|
-
this._context = context;
|
28
|
-
this.subscribe();
|
29
|
-
}
|
30
|
-
}
|
31
|
-
//# sourceMappingURL=TogetherModeVideoStreamSubscriber.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TogetherModeVideoStreamSubscriber.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/TogetherModeVideoStreamSubscriber.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,OAAO,iCAAiC;IAI5C,YAAY,SAAoB,EAAE,MAA+B,EAAE,OAAoB;QAM/E,cAAS,GAAG,GAAS,EAAE;YAC7B,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC,oBAAoB,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;YAC3E,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC,oBAAoB,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;YAC3E,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QACjE,CAAC,CAAC;QACK,gBAAW,GAAG,GAAS,EAAE;YAC9B,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,oBAAoB,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;YAC5E,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,oBAAoB,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;YAC5E,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QAClE,CAAC,CAAC;QACM,uBAAkB,GAAG,GAAS,EAAE;YACtC,IAAI,CAAC,QAAQ,CAAC,qCAAqC,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,mBAAmB,CAAC,EAAE,EAAE,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;QACjJ,CAAC,CAAC;QACM,uBAAkB,GAAG,GAAS,EAAE;YACtC,IAAI,CAAC,QAAQ,CAAC,qCAAqC,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,mBAAmB,CAAC,EAAE,EAAE,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;QACjJ,CAAC,CAAC;QACM,kBAAa,GAAG,GAAS,EAAE;YACjC,IAAI,CAAC,QAAQ,CAAC,8BAA8B,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,mBAAmB,CAAC,EAAE,EAAE,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACnI,CAAC,CAAC;QAvBA,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;CAoBF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { TogetherModeVideoStream } from '@azure/communication-calling';\nimport { CallContext } from './CallContext';\nimport { CallIdRef } from './CallIdRef';\n/**\n * @private\n */\nexport class TogetherModeVideoStreamSubscriber {\n private _callIdRef: CallIdRef;\n private _togetherModeStream: TogetherModeVideoStream;\n private _context: CallContext;\n constructor(callIdRef: CallIdRef, stream: TogetherModeVideoStream, context: CallContext) {\n this._callIdRef = callIdRef;\n this._togetherModeStream = stream;\n this._context = context;\n this.subscribe();\n }\n private subscribe = (): void => {\n this._togetherModeStream.on('isAvailableChanged', this.isAvailableChanged);\n this._togetherModeStream.on('isReceivingChanged', this.isReceivingChanged);\n this._togetherModeStream.on('sizeChanged', this.isSizeChanged);\n };\n public unsubscribe = (): void => {\n this._togetherModeStream.off('isAvailableChanged', this.isAvailableChanged);\n this._togetherModeStream.off('isReceivingChanged', this.isReceivingChanged);\n this._togetherModeStream.off('sizeChanged', this.isSizeChanged);\n };\n private isAvailableChanged = (): void => {\n this._context.setTogetherModeVideoStreamIsAvailable(this._callIdRef.callId, this._togetherModeStream.id, this._togetherModeStream.isAvailable);\n };\n private isReceivingChanged = (): void => {\n this._context.setTogetherModeVideoStreamIsReceiving(this._callIdRef.callId, this._togetherModeStream.id, this._togetherModeStream.isReceiving);\n };\n private isSizeChanged = (): void => {\n this._context.setTogetherModeVideoStreamSize(this._callIdRef.callId, this._togetherModeStream.id, this._togetherModeStream.size);\n };\n}"]}
|
package/dist/dist-esm/chat-component-bindings/src/utils/getImageAttachmentsFromHTMLContent.js
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @private
|
3
|
-
*/
|
4
|
-
export const getImageAttachmentsFromHTMLContent = (content) => {
|
5
|
-
let imageAttachments;
|
6
|
-
// get image attachments from content,
|
7
|
-
// for the editing scenario, this includes the ones before editing and the newly added ones during editing.
|
8
|
-
const document = new DOMParser().parseFromString(content, 'text/html');
|
9
|
-
document.querySelectorAll('img').forEach(img => {
|
10
|
-
if (imageAttachments === undefined) {
|
11
|
-
imageAttachments = [];
|
12
|
-
}
|
13
|
-
imageAttachments.push({
|
14
|
-
id: img.id,
|
15
|
-
attachmentType: 'image'
|
16
|
-
});
|
17
|
-
});
|
18
|
-
return imageAttachments;
|
19
|
-
};
|
20
|
-
//# sourceMappingURL=getImageAttachmentsFromHTMLContent.js.map
|