@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,49 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { EnvironmentInfo } from '@azure/communication-calling';
|
3
|
-
/**
|
4
|
-
* Modal that guides user through enabling their camera and mic access
|
5
|
-
* @private
|
6
|
-
*/
|
7
|
-
export declare const CallReadinessModal: (props: {
|
8
|
-
mobileView: boolean;
|
9
|
-
modalLayerHostId: string;
|
10
|
-
permissionsState: {
|
11
|
-
camera: PermissionState;
|
12
|
-
microphone: PermissionState;
|
13
|
-
};
|
14
|
-
environmentInfo?: EnvironmentInfo;
|
15
|
-
isPermissionsModalDismissed: boolean;
|
16
|
-
setIsPermissionsModalDismissed: (dismissedState: boolean) => void;
|
17
|
-
onPermissionsTroubleshootingClick?: (permissionsState: {
|
18
|
-
camera: PermissionState;
|
19
|
-
microphone: PermissionState;
|
20
|
-
}) => void;
|
21
|
-
doNotPromptCamera: boolean;
|
22
|
-
}) => JSX.Element;
|
23
|
-
/**
|
24
|
-
* Modal that guides user through enabling their camera and mic access
|
25
|
-
* This is used when permission API is not supported
|
26
|
-
* @private
|
27
|
-
*/
|
28
|
-
export declare const CallReadinessModalFallBack: (props: {
|
29
|
-
mobileView: boolean;
|
30
|
-
checkPermissionModalShowing: boolean;
|
31
|
-
permissionsState: {
|
32
|
-
camera: PermissionState;
|
33
|
-
microphone: PermissionState;
|
34
|
-
};
|
35
|
-
modalLayerHostId: string;
|
36
|
-
environmentInfo?: EnvironmentInfo;
|
37
|
-
isPermissionsModalDismissed: boolean;
|
38
|
-
setIsPermissionsModalDismissed: (dismissedState: boolean) => void;
|
39
|
-
onPermissionsTroubleshootingClick?: (permissionsState: {
|
40
|
-
camera: PermissionState;
|
41
|
-
microphone: PermissionState;
|
42
|
-
}) => void;
|
43
|
-
}) => JSX.Element;
|
44
|
-
/**
|
45
|
-
* Placeholder for conditional compile
|
46
|
-
* @private
|
47
|
-
*/
|
48
|
-
export declare const CallReadinessModalPlaceHolder: () => JSX.Element;
|
49
|
-
//# sourceMappingURL=CallReadinessModal.d.ts.map
|
package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js
DELETED
@@ -1,203 +0,0 @@
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
2
|
-
// Licensed under the MIT License.
|
3
|
-
import React from 'react';
|
4
|
-
import { CameraAndMicrophoneSitePermissions, CameraSitePermissions, MicrophoneSitePermissions, _DrawerSurface } from "../../../../../react-components/src";
|
5
|
-
import { _ModalClone } from "../../../../../react-components/src";
|
6
|
-
import { drawerContainerStyles } from '../styles/CallComposite.styles';
|
7
|
-
import { _isSafari } from '../utils';
|
8
|
-
const DRAWER_HIGH_Z_BAND = 99; // setting z index to 99 so that it sit above all components
|
9
|
-
/**
|
10
|
-
* Modal that guides user through enabling their camera and mic access
|
11
|
-
* @private
|
12
|
-
*/
|
13
|
-
export const CallReadinessModal = (props) => {
|
14
|
-
const { mobileView, permissionsState, environmentInfo, isPermissionsModalDismissed, setIsPermissionsModalDismissed, onPermissionsTroubleshootingClick } = props;
|
15
|
-
const onLightDismissTriggered = () => {
|
16
|
-
// do nothing here
|
17
|
-
// only way to dismiss this drawer is clicking on allow access which will leads to device permission prompt
|
18
|
-
};
|
19
|
-
// On Safari browser with 2 options: don't allow/never for this website again, when don't allow is clicked, permissionAPI returns prompt and PermissionGranted from calling sdk returns false (the right value)
|
20
|
-
const videoState = permissionsState.camera;
|
21
|
-
const audioState = permissionsState.microphone;
|
22
|
-
const showModal = !props.doNotPromptCamera && videoState === 'denied' || !props.doNotPromptCamera && videoState === 'prompt' || audioState === 'denied' || audioState === 'prompt';
|
23
|
-
const isSafari = _isSafari(environmentInfo);
|
24
|
-
const modal = !showModal ? undefined : () => {
|
25
|
-
// if both video and audio permission are not set
|
26
|
-
if (videoState === 'prompt' && !props.doNotPromptCamera && audioState === 'prompt') {
|
27
|
-
return React.createElement(CameraAndMicrophoneSitePermissions, { appName: 'app', browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick ? () => {
|
28
|
-
onPermissionsTroubleshootingClick(permissionsState);
|
29
|
-
} : undefined, kind: "request" });
|
30
|
-
}
|
31
|
-
// if audio permission is set up but video is not
|
32
|
-
else if (videoState === 'prompt' && !props.doNotPromptCamera) {
|
33
|
-
return React.createElement(CameraSitePermissions, { appName: 'app', browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick ? () => {
|
34
|
-
onPermissionsTroubleshootingClick(permissionsState);
|
35
|
-
} : undefined, onContinueAnywayClick: () => {
|
36
|
-
setIsPermissionsModalDismissed(false);
|
37
|
-
}, kind: "request" });
|
38
|
-
}
|
39
|
-
// if video permission is set up but audio is not
|
40
|
-
else if (audioState === 'prompt') {
|
41
|
-
return React.createElement(MicrophoneSitePermissions, { appName: 'app', browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick ? () => {
|
42
|
-
onPermissionsTroubleshootingClick(permissionsState);
|
43
|
-
} : undefined, kind: "request" });
|
44
|
-
}
|
45
|
-
// if both video and audio are denied
|
46
|
-
else if (videoState === 'denied' && !props.doNotPromptCamera && audioState === 'denied') {
|
47
|
-
return React.createElement(CameraAndMicrophoneSitePermissions, { appName: 'app', browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick ? () => {
|
48
|
-
onPermissionsTroubleshootingClick(permissionsState);
|
49
|
-
} : undefined, kind: "denied" });
|
50
|
-
}
|
51
|
-
// if only video is denied
|
52
|
-
else if (videoState === 'denied' && !props.doNotPromptCamera) {
|
53
|
-
return React.createElement(CameraSitePermissions, { appName: 'app', browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick ? () => {
|
54
|
-
onPermissionsTroubleshootingClick(permissionsState);
|
55
|
-
} : undefined, onContinueAnywayClick: () => {
|
56
|
-
setIsPermissionsModalDismissed(false);
|
57
|
-
}, kind: "denied" });
|
58
|
-
}
|
59
|
-
// if only audio is denied
|
60
|
-
else {
|
61
|
-
return React.createElement(MicrophoneSitePermissions, { appName: 'app', browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick ? () => {
|
62
|
-
onPermissionsTroubleshootingClick(permissionsState);
|
63
|
-
} : undefined, kind: "denied" });
|
64
|
-
}
|
65
|
-
};
|
66
|
-
if (mobileView && modal !== undefined) {
|
67
|
-
return React.createElement(React.Fragment, null, isPermissionsModalDismissed && React.createElement(_DrawerSurface, { disableMaxHeight: true, onLightDismiss: onLightDismissTriggered, styles: drawerContainerStyles(DRAWER_HIGH_Z_BAND) }, modal()));
|
68
|
-
}
|
69
|
-
else if (!mobileView && modal !== undefined) {
|
70
|
-
return React.createElement(_ModalClone, { styles: {
|
71
|
-
root: {
|
72
|
-
position: 'unset'
|
73
|
-
},
|
74
|
-
main: {
|
75
|
-
position: 'absolute',
|
76
|
-
left: '50%',
|
77
|
-
top: '50%',
|
78
|
-
transform: 'translate(-50%, -50%)'
|
79
|
-
}
|
80
|
-
}, layerProps: {
|
81
|
-
hostId: props.modalLayerHostId
|
82
|
-
}, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
|
83
|
-
setIsPermissionsModalDismissed(false);
|
84
|
-
}, overlay: {
|
85
|
-
styles: {
|
86
|
-
root: {
|
87
|
-
background: 'rgba(0,0,0,0.4)'
|
88
|
-
}
|
89
|
-
}
|
90
|
-
}, forceFocusInsideTrap: true, focusTrapZoneProps: {
|
91
|
-
disabled: false,
|
92
|
-
onKeyDown: (ev) => {
|
93
|
-
if (ev.key === 'Escape') {
|
94
|
-
setIsPermissionsModalDismissed(false);
|
95
|
-
}
|
96
|
-
}
|
97
|
-
} }, modal());
|
98
|
-
}
|
99
|
-
else {
|
100
|
-
return React.createElement(React.Fragment, null);
|
101
|
-
}
|
102
|
-
};
|
103
|
-
/**
|
104
|
-
* Modal that guides user through enabling their camera and mic access
|
105
|
-
* This is used when permission API is not supported
|
106
|
-
* @private
|
107
|
-
*/
|
108
|
-
export const CallReadinessModalFallBack = (props) => {
|
109
|
-
const { mobileView, checkPermissionModalShowing, permissionsState, environmentInfo, isPermissionsModalDismissed, setIsPermissionsModalDismissed, onPermissionsTroubleshootingClick } = props;
|
110
|
-
const onLightDismissTriggered = () => {
|
111
|
-
// do nothing here
|
112
|
-
// only way to dismiss this drawer is clicking on allow access which will leads to device permission prompt
|
113
|
-
};
|
114
|
-
const videoState = permissionsState.camera;
|
115
|
-
const audioState = permissionsState.microphone;
|
116
|
-
// When permissions are not set, do nothing here
|
117
|
-
// When permissions are set to denied, show helper screen
|
118
|
-
const showModal = videoState === 'denied' || audioState === 'denied';
|
119
|
-
const isSafari = _isSafari(environmentInfo);
|
120
|
-
const modal = !showModal ? undefined : () => {
|
121
|
-
if (videoState === 'denied' && audioState === 'denied') {
|
122
|
-
return React.createElement(CameraAndMicrophoneSitePermissions, { appName: 'app', browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick ? () => {
|
123
|
-
onPermissionsTroubleshootingClick(permissionsState);
|
124
|
-
} : undefined, kind: "denied" });
|
125
|
-
}
|
126
|
-
else if (videoState === 'denied' && audioState === 'granted') {
|
127
|
-
return React.createElement(CameraSitePermissions, { appName: 'app', browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick ? () => {
|
128
|
-
onPermissionsTroubleshootingClick(permissionsState);
|
129
|
-
} : undefined, onContinueAnywayClick: () => {
|
130
|
-
setIsPermissionsModalDismissed(false);
|
131
|
-
}, kind: "denied" });
|
132
|
-
}
|
133
|
-
else {
|
134
|
-
return React.createElement(MicrophoneSitePermissions, { appName: 'app', browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick ? () => {
|
135
|
-
onPermissionsTroubleshootingClick(permissionsState);
|
136
|
-
} : undefined, kind: "denied" });
|
137
|
-
}
|
138
|
-
};
|
139
|
-
if (mobileView) {
|
140
|
-
return React.createElement(React.Fragment, null,
|
141
|
-
(checkPermissionModalShowing || audioState === 'prompt' || videoState === 'prompt') && React.createElement(_DrawerSurface, { disableMaxHeight: true, onLightDismiss: onLightDismissTriggered, styles: drawerContainerStyles(DRAWER_HIGH_Z_BAND) },
|
142
|
-
React.createElement(CameraAndMicrophoneSitePermissions, { appName: 'app', browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick ? () => {
|
143
|
-
onPermissionsTroubleshootingClick(permissionsState);
|
144
|
-
} : undefined, kind: "check" })),
|
145
|
-
isPermissionsModalDismissed && !checkPermissionModalShowing && modal !== undefined && React.createElement(_DrawerSurface, { disableMaxHeight: true, onLightDismiss: onLightDismissTriggered, styles: drawerContainerStyles(DRAWER_HIGH_Z_BAND) }, modal()));
|
146
|
-
}
|
147
|
-
else {
|
148
|
-
return React.createElement(React.Fragment, null,
|
149
|
-
(checkPermissionModalShowing || audioState === 'prompt' || videoState === 'prompt') && React.createElement(_ModalClone, { styles: {
|
150
|
-
root: {
|
151
|
-
position: 'unset'
|
152
|
-
},
|
153
|
-
main: {
|
154
|
-
position: 'absolute',
|
155
|
-
left: '50%',
|
156
|
-
top: '50%',
|
157
|
-
transform: 'translate(-50%, -50%)'
|
158
|
-
}
|
159
|
-
}, layerProps: {
|
160
|
-
hostId: props.modalLayerHostId
|
161
|
-
}, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
|
162
|
-
setIsPermissionsModalDismissed(false);
|
163
|
-
}, overlay: {
|
164
|
-
styles: {
|
165
|
-
root: {
|
166
|
-
background: 'rgba(0,0,0,0.4)'
|
167
|
-
}
|
168
|
-
}
|
169
|
-
} },
|
170
|
-
React.createElement(CameraAndMicrophoneSitePermissions, { appName: 'app', browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick ? () => {
|
171
|
-
onPermissionsTroubleshootingClick(permissionsState);
|
172
|
-
} : undefined, kind: "check" })),
|
173
|
-
!checkPermissionModalShowing && modal !== undefined && React.createElement(_ModalClone, { styles: {
|
174
|
-
root: {
|
175
|
-
position: 'unset'
|
176
|
-
},
|
177
|
-
main: {
|
178
|
-
position: 'absolute',
|
179
|
-
left: '50%',
|
180
|
-
top: '50%',
|
181
|
-
transform: 'translate(-50%, -50%)'
|
182
|
-
}
|
183
|
-
}, layerProps: {
|
184
|
-
hostId: props.modalLayerHostId
|
185
|
-
}, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
|
186
|
-
setIsPermissionsModalDismissed(false);
|
187
|
-
}, overlay: {
|
188
|
-
styles: {
|
189
|
-
root: {
|
190
|
-
background: 'rgba(0,0,0,0.4)'
|
191
|
-
}
|
192
|
-
}
|
193
|
-
} }, modal()));
|
194
|
-
}
|
195
|
-
};
|
196
|
-
/**
|
197
|
-
* Placeholder for conditional compile
|
198
|
-
* @private
|
199
|
-
*/
|
200
|
-
export const CallReadinessModalPlaceHolder = () => {
|
201
|
-
return React.createElement(React.Fragment, null);
|
202
|
-
};
|
203
|
-
//# sourceMappingURL=CallReadinessModal.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CallReadinessModal.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-composites/src/composites/CallComposite/components/CallReadinessModal.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kCAAkC,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,cAAc,EAAE,4CAAmC;AAClJ,OAAO,EAAE,WAAW,EAAE,4CAAmC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,MAAM,kBAAkB,GAAG,EAAE,CAAC,CAAC,6DAA6D;AAC5F;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAelC,EAAe,EAAE;IAChB,MAAM,EACJ,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,2BAA2B,EAC3B,8BAA8B,EAC9B,iCAAiC,EAClC,GAAG,KAAK,CAAC;IACV,MAAM,uBAAuB,GAAG,GAAS,EAAE;QACzC,kBAAkB;QAClB,2GAA2G;IAC7G,CAAC,CAAC;IAEF,+MAA+M;IAC/M,MAAM,UAAU,GAAoB,gBAAgB,CAAC,MAAM,CAAC;IAC5D,MAAM,UAAU,GAAoB,gBAAgB,CAAC,UAAU,CAAC;IAChE,MAAM,SAAS,GAAG,CAAC,KAAK,CAAC,iBAAiB,IAAI,UAAU,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,iBAAiB,IAAI,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,QAAQ,CAAC;IACnL,MAAM,QAAQ,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAoC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE;QAC3E,iDAAiD;QACj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I,EAAE;wBACJ,QAAQ,EAAE,UAAU;wBACpB,IAAI,EAAE,KAAK;wBACX,GAAG,EAAE,KAAK;wBACV,SAAS,EAAE,uBAAuB;qBACnC;iBACF,EAAE,UAAU,EAAE;oBACb,MAAM,EAAE,KAAK,CAAC,gBAAgB;iBAC/B,EAAE,MAAM,EAAE,2BAA2B,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE;oBACzE,8BAA8B,CAAC,KAAK,CAAC,CAAC;gBACxC,CAAC,EAAE,OAAO,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE;4BACJ,UAAU,EAAE,iBAAiB;yBAC9B;qBACF;iBACF,IACM,KAAK,EAAE,CACI,CACf,CAAC;IACR,CAAC;AACH,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAgB,EAAE;IAC7D,OAAO,yCAAK,CAAC;AACf,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React from 'react';\nimport { CameraAndMicrophoneSitePermissions, CameraSitePermissions, MicrophoneSitePermissions, _DrawerSurface } from '@internal/react-components';\nimport { _ModalClone } from '@internal/react-components';\nimport { drawerContainerStyles } from '../styles/CallComposite.styles';\nimport { EnvironmentInfo } from '@azure/communication-calling';\nimport { _isSafari } from '../utils';\nconst DRAWER_HIGH_Z_BAND = 99; // setting z index to 99 so that it sit above all components\n/**\n * Modal that guides user through enabling their camera and mic access\n * @private\n */\nexport const CallReadinessModal = (props: {\n mobileView: boolean;\n modalLayerHostId: string;\n permissionsState: {\n camera: PermissionState;\n microphone: PermissionState;\n };\n environmentInfo?: EnvironmentInfo;\n isPermissionsModalDismissed: boolean;\n setIsPermissionsModalDismissed: (dismissedState: boolean) => void;\n onPermissionsTroubleshootingClick?: (permissionsState: {\n camera: PermissionState;\n microphone: PermissionState;\n }) => void;\n doNotPromptCamera: boolean;\n}): JSX.Element => {\n const {\n mobileView,\n permissionsState,\n environmentInfo,\n isPermissionsModalDismissed,\n setIsPermissionsModalDismissed,\n onPermissionsTroubleshootingClick\n } = props;\n const onLightDismissTriggered = (): void => {\n // do nothing here\n // only way to dismiss this drawer is clicking on allow access which will leads to device permission prompt\n };\n\n // On Safari browser with 2 options: don't allow/never for this website again, when don't allow is clicked, permissionAPI returns prompt and PermissionGranted from calling sdk returns false (the right value)\n const videoState: PermissionState = permissionsState.camera;\n const audioState: PermissionState = permissionsState.microphone;\n const showModal = !props.doNotPromptCamera && videoState === 'denied' || !props.doNotPromptCamera && videoState === 'prompt' || audioState === 'denied' || audioState === 'prompt';\n const isSafari = _isSafari(environmentInfo);\n const modal: undefined | (() => JSX.Element) = !showModal ? undefined : () => {\n // if both video and audio permission are not set\n if (videoState === 'prompt' && !props.doNotPromptCamera && audioState === 'prompt') {\n return <CameraAndMicrophoneSitePermissions appName={'app'} browserHint={isSafari ? 'safari' : 'unset'} onTroubleshootingClick={onPermissionsTroubleshootingClick ? () => {\n onPermissionsTroubleshootingClick(permissionsState);\n } : undefined} kind=\"request\" />;\n }\n // if audio permission is set up but video is not\n else if (videoState === 'prompt' && !props.doNotPromptCamera) {\n return <CameraSitePermissions appName={'app'} browserHint={isSafari ? 'safari' : 'unset'} onTroubleshootingClick={onPermissionsTroubleshootingClick ? () => {\n onPermissionsTroubleshootingClick(permissionsState);\n } : undefined} onContinueAnywayClick={() => {\n setIsPermissionsModalDismissed(false);\n }} kind=\"request\" />;\n }\n // if video permission is set up but audio is not\n else if (audioState === 'prompt') {\n return <MicrophoneSitePermissions appName={'app'} browserHint={isSafari ? 'safari' : 'unset'} onTroubleshootingClick={onPermissionsTroubleshootingClick ? () => {\n onPermissionsTroubleshootingClick(permissionsState);\n } : undefined} kind=\"request\" />;\n }\n // if both video and audio are denied\n else if (videoState === 'denied' && !props.doNotPromptCamera && audioState === 'denied') {\n return <CameraAndMicrophoneSitePermissions appName={'app'} browserHint={isSafari ? 'safari' : 'unset'} onTroubleshootingClick={onPermissionsTroubleshootingClick ? () => {\n onPermissionsTroubleshootingClick(permissionsState);\n } : undefined} kind=\"denied\" />;\n }\n // if only video is denied\n else if (videoState === 'denied' && !props.doNotPromptCamera) {\n return <CameraSitePermissions appName={'app'} browserHint={isSafari ? 'safari' : 'unset'} onTroubleshootingClick={onPermissionsTroubleshootingClick ? () => {\n onPermissionsTroubleshootingClick(permissionsState);\n } : undefined} onContinueAnywayClick={() => {\n setIsPermissionsModalDismissed(false);\n }} kind=\"denied\" />;\n }\n // if only audio is denied\n else {\n return <MicrophoneSitePermissions appName={'app'} browserHint={isSafari ? 'safari' : 'unset'} onTroubleshootingClick={onPermissionsTroubleshootingClick ? () => {\n onPermissionsTroubleshootingClick(permissionsState);\n } : undefined} kind=\"denied\" />;\n }\n };\n if (mobileView && modal !== undefined) {\n return <>\n {isPermissionsModalDismissed && <_DrawerSurface disableMaxHeight={true} onLightDismiss={onLightDismissTriggered} styles={drawerContainerStyles(DRAWER_HIGH_Z_BAND)}>\n {modal()}\n </_DrawerSurface>}\n </>;\n } else if (!mobileView && modal !== undefined) {\n return <_ModalClone styles={{\n root: {\n position: 'unset'\n },\n main: {\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: 'translate(-50%, -50%)'\n }\n }} layerProps={{\n hostId: props.modalLayerHostId\n }} isOpen={isPermissionsModalDismissed} isBlocking={false} onDismiss={() => {\n setIsPermissionsModalDismissed(false);\n }} overlay={{\n styles: {\n root: {\n background: 'rgba(0,0,0,0.4)'\n }\n }\n }} forceFocusInsideTrap={true} focusTrapZoneProps={{\n disabled: false,\n onKeyDown: (ev: React.KeyboardEvent<HTMLElement>) => {\n if (ev.key === 'Escape') {\n setIsPermissionsModalDismissed(false);\n }\n }\n }}>\n {modal()}\n </_ModalClone>;\n } else {\n return <></>;\n }\n};\n/**\n * Modal that guides user through enabling their camera and mic access\n * This is used when permission API is not supported\n * @private\n */\nexport const CallReadinessModalFallBack = (props: {\n mobileView: boolean;\n checkPermissionModalShowing: boolean;\n permissionsState: {\n camera: PermissionState;\n microphone: PermissionState;\n };\n modalLayerHostId: string;\n environmentInfo?: EnvironmentInfo;\n isPermissionsModalDismissed: boolean;\n setIsPermissionsModalDismissed: (dismissedState: boolean) => void;\n onPermissionsTroubleshootingClick?: (permissionsState: {\n camera: PermissionState;\n microphone: PermissionState;\n }) => void;\n}): JSX.Element => {\n const {\n mobileView,\n checkPermissionModalShowing,\n permissionsState,\n environmentInfo,\n isPermissionsModalDismissed,\n setIsPermissionsModalDismissed,\n onPermissionsTroubleshootingClick\n } = props;\n const onLightDismissTriggered = (): void => {\n // do nothing here\n // only way to dismiss this drawer is clicking on allow access which will leads to device permission prompt\n };\n const videoState = permissionsState.camera;\n const audioState = permissionsState.microphone;\n\n // When permissions are not set, do nothing here\n // When permissions are set to denied, show helper screen\n const showModal = videoState === 'denied' || audioState === 'denied';\n const isSafari = _isSafari(environmentInfo);\n const modal: undefined | (() => JSX.Element) = !showModal ? undefined : () => {\n if (videoState === 'denied' && audioState === 'denied') {\n return <CameraAndMicrophoneSitePermissions appName={'app'} browserHint={isSafari ? 'safari' : 'unset'} onTroubleshootingClick={onPermissionsTroubleshootingClick ? () => {\n onPermissionsTroubleshootingClick(permissionsState);\n } : undefined} kind=\"denied\" />;\n } else if (videoState === 'denied' && audioState === 'granted') {\n return <CameraSitePermissions appName={'app'} browserHint={isSafari ? 'safari' : 'unset'} onTroubleshootingClick={onPermissionsTroubleshootingClick ? () => {\n onPermissionsTroubleshootingClick(permissionsState);\n } : undefined} onContinueAnywayClick={() => {\n setIsPermissionsModalDismissed(false);\n }} kind=\"denied\" />;\n } else {\n return <MicrophoneSitePermissions appName={'app'} browserHint={isSafari ? 'safari' : 'unset'} onTroubleshootingClick={onPermissionsTroubleshootingClick ? () => {\n onPermissionsTroubleshootingClick(permissionsState);\n } : undefined} kind=\"denied\" />;\n }\n };\n if (mobileView) {\n return <>\n {(checkPermissionModalShowing || audioState === 'prompt' || videoState === 'prompt') && <_DrawerSurface disableMaxHeight={true} onLightDismiss={onLightDismissTriggered} styles={drawerContainerStyles(DRAWER_HIGH_Z_BAND)}>\n <CameraAndMicrophoneSitePermissions appName={'app'} browserHint={isSafari ? 'safari' : 'unset'} onTroubleshootingClick={onPermissionsTroubleshootingClick ? () => {\n onPermissionsTroubleshootingClick(permissionsState);\n } : undefined} kind=\"check\" />\n </_DrawerSurface>}\n {isPermissionsModalDismissed && !checkPermissionModalShowing && modal !== undefined && <_DrawerSurface disableMaxHeight={true} onLightDismiss={onLightDismissTriggered} styles={drawerContainerStyles(DRAWER_HIGH_Z_BAND)}>\n {modal()}\n </_DrawerSurface>}\n </>;\n } else {\n return <>\n {(checkPermissionModalShowing || audioState === 'prompt' || videoState === 'prompt') && <_ModalClone styles={{\n root: {\n position: 'unset'\n },\n main: {\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: 'translate(-50%, -50%)'\n }\n }} layerProps={{\n hostId: props.modalLayerHostId\n }} isOpen={isPermissionsModalDismissed} isBlocking={false} onDismiss={() => {\n setIsPermissionsModalDismissed(false);\n }} overlay={{\n styles: {\n root: {\n background: 'rgba(0,0,0,0.4)'\n }\n }\n }}>\n <CameraAndMicrophoneSitePermissions appName={'app'} browserHint={isSafari ? 'safari' : 'unset'} onTroubleshootingClick={onPermissionsTroubleshootingClick ? () => {\n onPermissionsTroubleshootingClick(permissionsState);\n } : undefined} kind=\"check\" />\n </_ModalClone>}\n\n {!checkPermissionModalShowing && modal !== undefined && <_ModalClone styles={{\n root: {\n position: 'unset'\n },\n main: {\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: 'translate(-50%, -50%)'\n }\n }} layerProps={{\n hostId: props.modalLayerHostId\n }} isOpen={isPermissionsModalDismissed} isBlocking={false} onDismiss={() => {\n setIsPermissionsModalDismissed(false);\n }} overlay={{\n styles: {\n root: {\n background: 'rgba(0,0,0,0.4)'\n }\n }\n }}>\n {modal()}\n </_ModalClone>}\n </>;\n }\n};\n\n/**\n * Placeholder for conditional compile\n * @private\n */\nexport const CallReadinessModalPlaceHolder = (): JSX.Element => {\n return <></>;\n};"]}
|
package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { EnvironmentInfo } from '@azure/communication-calling';
|
3
|
-
/**
|
4
|
-
* @internal
|
5
|
-
*/
|
6
|
-
export type UnsupportedBrowserPageProps = {
|
7
|
-
onTroubleshootingClick?: () => void;
|
8
|
-
environmentInfo?: EnvironmentInfo;
|
9
|
-
};
|
10
|
-
/**
|
11
|
-
*
|
12
|
-
* @internal
|
13
|
-
*/
|
14
|
-
export declare const UnsupportedBrowserPage: (props: UnsupportedBrowserPageProps) => JSX.Element;
|
15
|
-
//# sourceMappingURL=UnsupportedBrowser.d.ts.map
|
package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
import { Stack } from '@fluentui/react';
|
2
|
-
import { UnsupportedBrowser, UnsupportedBrowserVersion, UnsupportedOperatingSystem } from "../../../../../react-components/src";
|
3
|
-
import React from 'react';
|
4
|
-
import { useLocale } from '../../localization';
|
5
|
-
import { useAdapter } from '../adapter/CallAdapterProvider';
|
6
|
-
/**
|
7
|
-
*
|
8
|
-
* @internal
|
9
|
-
*/
|
10
|
-
export const UnsupportedBrowserPage = (props) => {
|
11
|
-
const { onTroubleshootingClick, environmentInfo } = props;
|
12
|
-
const adapter = useAdapter();
|
13
|
-
const onContinueClick = () => {
|
14
|
-
adapter.allowUnsupportedBrowserVersion();
|
15
|
-
};
|
16
|
-
const locale = useLocale();
|
17
|
-
const unsupportedBrowserStrings = locale.component.strings.UnsupportedBrowser;
|
18
|
-
const unsupportedBrowserVersionStrings = locale.component.strings.UnsupportedBrowserVersion;
|
19
|
-
const unsupportedOperatingSystemStrings = locale.component.strings.UnsupportedOperatingSystem;
|
20
|
-
let pageElement = React.createElement(React.Fragment, null);
|
21
|
-
if (!(environmentInfo === null || environmentInfo === void 0 ? void 0 : environmentInfo.isSupportedPlatform)) {
|
22
|
-
pageElement = React.createElement(UnsupportedOperatingSystem, { onTroubleshootingClick: onTroubleshootingClick, strings: unsupportedOperatingSystemStrings });
|
23
|
-
}
|
24
|
-
else if (!(environmentInfo === null || environmentInfo === void 0 ? void 0 : environmentInfo.isSupportedBrowser)) {
|
25
|
-
pageElement = React.createElement(UnsupportedBrowser, { onTroubleshootingClick: onTroubleshootingClick, strings: unsupportedBrowserStrings });
|
26
|
-
}
|
27
|
-
else if (!(environmentInfo === null || environmentInfo === void 0 ? void 0 : environmentInfo.isSupportedBrowserVersion)) {
|
28
|
-
pageElement = React.createElement(UnsupportedBrowserVersion, { onTroubleshootingClick: onTroubleshootingClick, strings: unsupportedBrowserVersionStrings, onContinueAnywayClick: onContinueClick });
|
29
|
-
}
|
30
|
-
else {
|
31
|
-
throw new Error('There was a problem with your environment info');
|
32
|
-
}
|
33
|
-
return React.createElement(Stack, { styles: containerStyles }, pageElement);
|
34
|
-
};
|
35
|
-
const containerStyles = {
|
36
|
-
root: {
|
37
|
-
margin: 'auto',
|
38
|
-
paddingTop: '3rem'
|
39
|
-
}
|
40
|
-
};
|
41
|
-
//# sourceMappingURL=UnsupportedBrowser.js.map
|
package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"UnsupportedBrowser.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAgB,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,4CAAmC;AACvH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,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,EAAE,eAAe,GAAI,CAAC;IACjL,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACpE,CAAC;IACD,OAAO,oBAAC,KAAK,IAAC,MAAM,EAAE,eAAe,IAAG,WAAW,CAAS,CAAC;AAC/D,CAAC,CAAC;AACF,MAAM,eAAe,GAAiB;IACpC,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM;KACnB;CACF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { EnvironmentInfo } from '@azure/communication-calling';\nimport { IStackStyles, Stack } from '@fluentui/react';\nimport { UnsupportedBrowser, UnsupportedBrowserVersion, UnsupportedOperatingSystem } from '@internal/react-components';\nimport React from 'react';\nimport { useLocale } from '../../localization';\nimport { useAdapter } from '../adapter/CallAdapterProvider';\n\n/**\n * @internal\n */\nexport type UnsupportedBrowserPageProps = {\n onTroubleshootingClick?: () => void;\n environmentInfo?: EnvironmentInfo;\n};\n\n/**\n *\n * @internal\n */\nexport const UnsupportedBrowserPage = (props: UnsupportedBrowserPageProps): JSX.Element => {\n const {\n onTroubleshootingClick,\n environmentInfo\n } = props;\n const adapter = useAdapter();\n const onContinueClick = (): void => {\n adapter.allowUnsupportedBrowserVersion();\n };\n const locale = useLocale();\n const unsupportedBrowserStrings = locale.component.strings.UnsupportedBrowser;\n const unsupportedBrowserVersionStrings = locale.component.strings.UnsupportedBrowserVersion;\n const unsupportedOperatingSystemStrings = locale.component.strings.UnsupportedOperatingSystem;\n let pageElement: JSX.Element | undefined = <></>;\n if (!environmentInfo?.isSupportedPlatform) {\n pageElement = <UnsupportedOperatingSystem onTroubleshootingClick={onTroubleshootingClick} strings={unsupportedOperatingSystemStrings} />;\n } else if (!environmentInfo?.isSupportedBrowser) {\n pageElement = <UnsupportedBrowser onTroubleshootingClick={onTroubleshootingClick} strings={unsupportedBrowserStrings} />;\n } else if (!environmentInfo?.isSupportedBrowserVersion) {\n pageElement = <UnsupportedBrowserVersion onTroubleshootingClick={onTroubleshootingClick} strings={unsupportedBrowserVersionStrings} onContinueAnywayClick={onContinueClick} />;\n } else {\n throw new Error('There was a problem with your environment info');\n }\n return <Stack styles={containerStyles}>{pageElement}</Stack>;\n};\nconst containerStyles: IStackStyles = {\n root: {\n margin: 'auto',\n paddingTop: '3rem'\n }\n};"]}
|
package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.d.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
/**
|
3
|
-
* @private
|
4
|
-
*/
|
5
|
-
export interface AttachmentDownloadErrorBarProps {
|
6
|
-
/**callback to dismiss the download error message */
|
7
|
-
onDismissDownloadErrorMessage: () => void;
|
8
|
-
/** Error message to render */
|
9
|
-
attachmentDownloadErrorMessage: string;
|
10
|
-
}
|
11
|
-
/**
|
12
|
-
* @private
|
13
|
-
*/
|
14
|
-
export declare const AttachmentDownloadErrorBar: (props: AttachmentDownloadErrorBarProps) => JSX.Element;
|
15
|
-
//# sourceMappingURL=AttachmentDownloadErrorBar.d.ts.map
|
package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
2
|
-
// Licensed under the MIT License.
|
3
|
-
import { MessageBar, MessageBarType, Stack } from '@fluentui/react';
|
4
|
-
import React from 'react';
|
5
|
-
/**
|
6
|
-
* @private
|
7
|
-
*/
|
8
|
-
export const AttachmentDownloadErrorBar = (props) => {
|
9
|
-
const { attachmentDownloadErrorMessage, onDismissDownloadErrorMessage } = props;
|
10
|
-
const messageBarIconProps = {
|
11
|
-
iconName: 'ProtectedDocument'
|
12
|
-
};
|
13
|
-
if (attachmentDownloadErrorMessage !== '') {
|
14
|
-
return React.createElement(Stack, { horizontal: true, horizontalAlign: "space-between", verticalAlign: "center" },
|
15
|
-
React.createElement(MessageBar, { messageBarType: MessageBarType.warning, onDismiss: () => {
|
16
|
-
onDismissDownloadErrorMessage();
|
17
|
-
}, messageBarIconProps: messageBarIconProps }, attachmentDownloadErrorMessage));
|
18
|
-
}
|
19
|
-
else {
|
20
|
-
return React.createElement(React.Fragment, null);
|
21
|
-
}
|
22
|
-
};
|
23
|
-
//# sourceMappingURL=AttachmentDownloadErrorBar.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"AttachmentDownloadErrorBar.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,KAAsC,EAAe,EAAE;IAChG,MAAM,EACJ,8BAA8B,EAC9B,6BAA6B,EAC9B,GAAG,KAAK,CAAC;IACV,MAAM,mBAAmB,GAAG;QAC1B,QAAQ,EAAE,mBAAmB;KAC9B,CAAC;IACF,IAAI,8BAA8B,KAAK,EAAE,EAAE,CAAC;QAC1C,OAAO,oBAAC,KAAK,IAAC,UAAU,QAAC,eAAe,EAAC,eAAe,EAAC,aAAa,EAAC,QAAQ;YAC3E,oBAAC,UAAU,IAAC,cAAc,EAAE,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE;oBACpE,6BAA6B,EAAE,CAAC;gBAClC,CAAC,EAAE,mBAAmB,EAAE,mBAAmB,IACtC,8BAA8B,CACpB,CACP,CAAC;IACb,CAAC;SAAM,CAAC;QACN,OAAO,yCAAK,CAAC;IACf,CAAC;AACH,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { MessageBar, MessageBarType, Stack } from '@fluentui/react';\nimport React from 'react';\n\n/**\n * @private\n */\nexport interface AttachmentDownloadErrorBarProps {\n /**callback to dismiss the download error message */\n onDismissDownloadErrorMessage: () => void;\n /** Error message to render */\n attachmentDownloadErrorMessage: string;\n}\n\n/**\n * @private\n */\nexport const AttachmentDownloadErrorBar = (props: AttachmentDownloadErrorBarProps): JSX.Element => {\n const {\n attachmentDownloadErrorMessage,\n onDismissDownloadErrorMessage\n } = props;\n const messageBarIconProps = {\n iconName: 'ProtectedDocument'\n };\n if (attachmentDownloadErrorMessage !== '') {\n return <Stack horizontal horizontalAlign=\"space-between\" verticalAlign=\"center\">\n <MessageBar messageBarType={MessageBarType.warning} onDismiss={() => {\n onDismissDownloadErrorMessage();\n }} messageBarIconProps={messageBarIconProps}>\n {attachmentDownloadErrorMessage}\n </MessageBar>\n </Stack>;\n } else {\n return <></>;\n }\n};"]}
|
package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { ParticipantMenuItemsCallback } from "../../../../react-components/src";
|
3
|
-
import { AvatarPersonaDataCallback } from '..';
|
4
|
-
/**
|
5
|
-
* Props for the chat screen people pane
|
6
|
-
* @private
|
7
|
-
*/
|
8
|
-
type ChatScreenPeoplePaneProps = {
|
9
|
-
onFetchAvatarPersonaData?: AvatarPersonaDataCallback;
|
10
|
-
onFetchParticipantMenuItems?: ParticipantMenuItemsCallback;
|
11
|
-
isMobile?: boolean;
|
12
|
-
};
|
13
|
-
/**
|
14
|
-
* @private
|
15
|
-
*/
|
16
|
-
export declare const ChatScreenPeoplePane: (props: ChatScreenPeoplePaneProps) => JSX.Element;
|
17
|
-
export {};
|
18
|
-
//# sourceMappingURL=ChatScreenPeoplePane.d.ts.map
|
@@ -1,18 +0,0 @@
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
2
|
-
// Licensed under the MIT License.
|
3
|
-
import { ParticipantList } from "../../../../react-components/src";
|
4
|
-
import React from 'react';
|
5
|
-
import { ParticipantContainer } from '../common/ParticipantContainer';
|
6
|
-
import { useLocale } from '../localization';
|
7
|
-
import { usePropsFor } from './hooks/usePropsFor';
|
8
|
-
/**
|
9
|
-
* @private
|
10
|
-
*/
|
11
|
-
export const ChatScreenPeoplePane = (props) => {
|
12
|
-
const { onFetchAvatarPersonaData, onFetchParticipantMenuItems, isMobile } = props;
|
13
|
-
const locale = useLocale();
|
14
|
-
const chatListHeader = locale.strings.chat.chatListHeader;
|
15
|
-
const participantListProps = usePropsFor(ParticipantList);
|
16
|
-
return React.createElement(ParticipantContainer, { participantListProps: participantListProps, title: chatListHeader, onFetchAvatarPersonaData: onFetchAvatarPersonaData, onFetchParticipantMenuItems: onFetchParticipantMenuItems, isMobile: isMobile });
|
17
|
-
};
|
18
|
-
//# sourceMappingURL=ChatScreenPeoplePane.js.map
|
package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ChatScreenPeoplePane.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,EAAgC,yCAAmC;AAC3F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAYlD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAgC,EAAe,EAAE;IACpF,MAAM,EACJ,wBAAwB,EACxB,2BAA2B,EAC3B,QAAQ,EACT,GAAG,KAAK,CAAC;IACV,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC;IAC1D,MAAM,oBAAoB,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC;IAC1D,OAAO,oBAAC,oBAAoB,IAAC,oBAAoB,EAAE,oBAAoB,EAAE,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAAC;AACvO,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ParticipantList, ParticipantMenuItemsCallback } from '@internal/react-components';\nimport React from 'react';\nimport { AvatarPersonaDataCallback } from '..';\nimport { ParticipantContainer } from '../common/ParticipantContainer';\nimport { useLocale } from '../localization';\nimport { usePropsFor } from './hooks/usePropsFor';\n\n/**\n * Props for the chat screen people pane\n * @private\n */\ntype ChatScreenPeoplePaneProps = {\n onFetchAvatarPersonaData?: AvatarPersonaDataCallback;\n onFetchParticipantMenuItems?: ParticipantMenuItemsCallback;\n isMobile?: boolean;\n};\n\n/**\n * @private\n */\nexport const ChatScreenPeoplePane = (props: ChatScreenPeoplePaneProps): JSX.Element => {\n const {\n onFetchAvatarPersonaData,\n onFetchParticipantMenuItems,\n isMobile\n } = props;\n const locale = useLocale();\n const chatListHeader = locale.strings.chat.chatListHeader;\n const participantListProps = usePropsFor(ParticipantList);\n return <ParticipantContainer participantListProps={participantListProps} title={chatListHeader} onFetchAvatarPersonaData={onFetchAvatarPersonaData} onFetchParticipantMenuItems={onFetchParticipantMenuItems} isMobile={isMobile} />;\n};"]}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
import { Action, AttachmentUpload, AttachmentUploadActionType, ProgressAction, CompleteAction, FailedAction, RemoveAction, ClearAction } from '../file-sharing/AttachmentUpload';
|
2
|
-
/**
|
3
|
-
* @private
|
4
|
-
*/
|
5
|
-
export interface ImageAction {
|
6
|
-
messageId: string;
|
7
|
-
}
|
8
|
-
/**
|
9
|
-
* @private
|
10
|
-
*/
|
11
|
-
interface ImageSetAction extends Action, ImageAction {
|
12
|
-
type: AttachmentUploadActionType.Set;
|
13
|
-
newUploads: AttachmentUpload[];
|
14
|
-
}
|
15
|
-
/**
|
16
|
-
* @private
|
17
|
-
*/
|
18
|
-
interface ImageProgressAction extends ProgressAction, ImageAction {
|
19
|
-
}
|
20
|
-
/**
|
21
|
-
* @private
|
22
|
-
*/
|
23
|
-
interface ImageCompleteAction extends CompleteAction, ImageAction {
|
24
|
-
}
|
25
|
-
/**
|
26
|
-
* @private
|
27
|
-
*/
|
28
|
-
interface ImageFailedAction extends FailedAction, ImageAction {
|
29
|
-
}
|
30
|
-
/**
|
31
|
-
* @private
|
32
|
-
*/
|
33
|
-
interface ImageRemoveAction extends RemoveAction, ImageAction {
|
34
|
-
}
|
35
|
-
/**
|
36
|
-
* @private
|
37
|
-
*/
|
38
|
-
interface ImageClearAction extends ClearAction, ImageAction {
|
39
|
-
}
|
40
|
-
/**
|
41
|
-
* @private
|
42
|
-
*/
|
43
|
-
export type ImageActions = ImageSetAction | ImageProgressAction | ImageCompleteAction | ImageFailedAction | ImageRemoveAction | ImageClearAction;
|
44
|
-
/**
|
45
|
-
* @internal
|
46
|
-
*/
|
47
|
-
export declare const ImageUploadReducer: (state: Record<string, AttachmentUpload[]> | undefined, action: ImageActions) => Record<string, AttachmentUpload[]> | undefined;
|
48
|
-
export {};
|
49
|
-
//# sourceMappingURL=ImageUploadReducer.d.ts.map
|
@@ -1,44 +0,0 @@
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
2
|
-
// Licensed under the MIT License.
|
3
|
-
import { AttachmentUploadActionType } from '../file-sharing/AttachmentUpload';
|
4
|
-
/**
|
5
|
-
* @internal
|
6
|
-
*/
|
7
|
-
export const ImageUploadReducer = (state, action) => {
|
8
|
-
const messageId = action.messageId;
|
9
|
-
const messageState = state && state[messageId];
|
10
|
-
switch (action.type) {
|
11
|
-
case AttachmentUploadActionType.Set:
|
12
|
-
if (!messageState || messageState.length === 0) {
|
13
|
-
return Object.assign(Object.assign({}, state), { [messageId]: action.newUploads });
|
14
|
-
}
|
15
|
-
return Object.assign(Object.assign({}, state), { [messageId]: messageState.filter(v => !v.metadata.error).concat(action.newUploads) });
|
16
|
-
case AttachmentUploadActionType.Completed:
|
17
|
-
if (!messageState) {
|
18
|
-
return state;
|
19
|
-
}
|
20
|
-
return Object.assign(Object.assign({}, state), { [messageId]: messageState.map(v => v.taskId === action.taskId ? Object.assign(Object.assign({}, v), { metadata: Object.assign(Object.assign({}, v.metadata), { id: action.id, url: action.url, progress: 1 }) }) : v) });
|
21
|
-
case AttachmentUploadActionType.Failed:
|
22
|
-
if (!messageState) {
|
23
|
-
return state;
|
24
|
-
}
|
25
|
-
return Object.assign(Object.assign({}, state), { [messageId]: messageState.map(v => v.taskId === action.taskId ? Object.assign(Object.assign({}, v), { metadata: Object.assign(Object.assign({}, v.metadata), { error: {
|
26
|
-
message: action.message
|
27
|
-
} }) }) : v) });
|
28
|
-
case AttachmentUploadActionType.Remove:
|
29
|
-
if (!messageState) {
|
30
|
-
return state;
|
31
|
-
}
|
32
|
-
return Object.assign(Object.assign({}, state), { [messageId]: messageState.filter(v => !v.metadata.error).filter(v => v.metadata.id !== action.id) });
|
33
|
-
case AttachmentUploadActionType.Progress:
|
34
|
-
if (!messageState) {
|
35
|
-
return state;
|
36
|
-
}
|
37
|
-
return Object.assign(Object.assign({}, state), { [messageId]: messageState.map(v => v.taskId === action.taskId ? Object.assign(Object.assign({}, v), { metadata: Object.assign(Object.assign({}, v.metadata), { progress: action.progress }) }) : v) });
|
38
|
-
case AttachmentUploadActionType.Clear:
|
39
|
-
return Object.assign(Object.assign({}, state), { [messageId]: [] });
|
40
|
-
default:
|
41
|
-
return state;
|
42
|
-
}
|
43
|
-
};
|
44
|
-
//# sourceMappingURL=ImageUploadReducer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ImageUploadReducer.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadReducer.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAA4B,0BAA0B,EAA2E,MAAM,kCAAkC,CAAC;AAsCjL;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAqD,EAAE,MAAoB,EAAkD,EAAE;IAChK,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IACnC,MAAM,YAAY,GAAG,KAAK,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/C,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,0BAA0B,CAAC,GAAG;YACjC,IAAI,CAAC,YAAY,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC/C,uCACK,KAAK,KACR,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,UAAU,IAC9B;YACJ,CAAC;YACD,uCACK,KAAK,KACR,CAAC,SAAS,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,IAClF;QACJ,KAAK,0BAA0B,CAAC,SAAS;YACvC,IAAI,CAAC,YAAY,EAAE,CAAC;gBAClB,OAAO,KAAK,CAAC;YACf,CAAC;YACD,uCACK,KAAK,KACR,CAAC,SAAS,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,iCAC1D,CAAC,KACJ,QAAQ,kCACH,CAAC,CAAC,QAAQ,KACb,EAAE,EAAE,MAAM,CAAC,EAAE,EACb,GAAG,EAAE,MAAM,CAAC,GAAG,EACf,QAAQ,EAAE,CAAC,OAEb,CAAC,CAAC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AE,IACf;QACJ;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { Action, AttachmentUpload, AttachmentUploadActionType, ProgressAction, CompleteAction, FailedAction, RemoveAction, ClearAction } from '../file-sharing/AttachmentUpload';\n/**\n * @private\n */\nexport interface ImageAction {\n messageId: string;\n}\n/**\n * @private\n */\ninterface ImageSetAction extends Action, ImageAction {\n type: AttachmentUploadActionType.Set;\n newUploads: AttachmentUpload[];\n}\n/**\n * @private\n */\ninterface ImageProgressAction extends ProgressAction, ImageAction {}\n/**\n * @private\n */\ninterface ImageCompleteAction extends CompleteAction, ImageAction {}\n/**\n * @private\n */\ninterface ImageFailedAction extends FailedAction, ImageAction {}\n/**\n * @private\n */\ninterface ImageRemoveAction extends RemoveAction, ImageAction {}\n/**\n * @private\n */\ninterface ImageClearAction extends ClearAction, ImageAction {}\n/**\n * @private\n */\nexport type ImageActions = ImageSetAction | ImageProgressAction | ImageCompleteAction | ImageFailedAction | ImageRemoveAction | ImageClearAction;\n/**\n * @internal\n */\nexport const ImageUploadReducer = (state: Record<string, AttachmentUpload[]> | undefined, action: ImageActions): Record<string, AttachmentUpload[]> | undefined => {\n const messageId = action.messageId;\n const messageState = state && state[messageId];\n switch (action.type) {\n case AttachmentUploadActionType.Set:\n if (!messageState || messageState.length === 0) {\n return {\n ...state,\n [messageId]: action.newUploads\n };\n }\n return {\n ...state,\n [messageId]: messageState.filter(v => !v.metadata.error).concat(action.newUploads)\n };\n case AttachmentUploadActionType.Completed:\n if (!messageState) {\n return state;\n }\n return {\n ...state,\n [messageId]: messageState.map(v => v.taskId === action.taskId ? {\n ...v,\n metadata: {\n ...v.metadata,\n id: action.id,\n url: action.url,\n progress: 1\n }\n } : v)\n };\n case AttachmentUploadActionType.Failed:\n if (!messageState) {\n return state;\n }\n return {\n ...state,\n [messageId]: messageState.map(v => v.taskId === action.taskId ? {\n ...v,\n metadata: {\n ...v.metadata,\n error: {\n message: action.message\n }\n }\n } : v)\n };\n case AttachmentUploadActionType.Remove:\n if (!messageState) {\n return state;\n }\n return {\n ...state,\n [messageId]: messageState.filter(v => !v.metadata.error).filter(v => v.metadata.id !== action.id)\n };\n case AttachmentUploadActionType.Progress:\n if (!messageState) {\n return state;\n }\n return {\n ...state,\n [messageId]: messageState.map(v => v.taskId === action.taskId ? {\n ...v,\n metadata: {\n ...v.metadata,\n progress: action.progress\n }\n } : v)\n };\n case AttachmentUploadActionType.Clear:\n return {\n ...state,\n [messageId]: []\n };\n default:\n return state;\n }\n};"]}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import { AttachmentMetadataInProgress } from "../../../../../acs-ui-common/src";
|
2
|
-
import { AttachmentUpload } from '../file-sharing/AttachmentUpload';
|
3
|
-
import { ChatAdapter } from '../adapter/ChatAdapter';
|
4
|
-
import { Dispatch } from 'react';
|
5
|
-
import { ImageActions } from './ImageUploadReducer';
|
6
|
-
import { ChatCompositeStrings } from '../Strings';
|
7
|
-
/**
|
8
|
-
* @private
|
9
|
-
*/
|
10
|
-
export declare const getInlineImageData: (image: string) => Promise<Blob | undefined>;
|
11
|
-
/**
|
12
|
-
* @internal
|
13
|
-
*/
|
14
|
-
export declare const getEditBoxMessagesInlineImages: (editBoxInlineImageUploads: Record<string, AttachmentUpload[]> | undefined) => Record<string, AttachmentMetadataInProgress[]> | undefined;
|
15
|
-
/**
|
16
|
-
* @internal
|
17
|
-
*/
|
18
|
-
export declare const getSendBoxInlineImages: (sendBoxInlineImageUploads: Record<string, AttachmentUpload[]> | undefined) => AttachmentMetadataInProgress[] | undefined;
|
19
|
-
/**
|
20
|
-
* @internal
|
21
|
-
*/
|
22
|
-
export declare const onInsertInlineImageForEditBox: (imageAttributes: Record<string, string>, fileName: string, messageId: string, adapter: ChatAdapter, handleEditBoxInlineImageUploadAction: Dispatch<ImageActions>, chatCompositeStrings: ChatCompositeStrings) => Promise<void>;
|
23
|
-
/**
|
24
|
-
* @internal
|
25
|
-
*/
|
26
|
-
export declare const onInsertInlineImageForSendBox: (imageAttributes: Record<string, string>, fileName: string, adapter: ChatAdapter, handleSendBoxInlineImageUploadAction: Dispatch<ImageActions>, chatCompositeStrings: ChatCompositeStrings) => Promise<void>;
|
27
|
-
/**
|
28
|
-
* @internal
|
29
|
-
*/
|
30
|
-
export declare const cancelInlineImageUpload: (imageAttributes: Record<string, string>, imageUploads: Record<string, AttachmentUpload[]> | undefined, messageId: string, inlineImageUploadActionHandler: Dispatch<ImageActions>, adapter: ChatAdapter) => void;
|
31
|
-
/**
|
32
|
-
* @internal
|
33
|
-
*/
|
34
|
-
export declare const updateContentStringWithUploadedInlineImages: (content: string, imageUploads: Record<string, AttachmentUpload[]> | undefined, messageId?: string) => string;
|
35
|
-
/**
|
36
|
-
* @internal
|
37
|
-
*/
|
38
|
-
export declare const getImageFileNameFromAttributes: (imageAttributes: Record<string, string>) => string;
|
39
|
-
//# sourceMappingURL=ImageUploadUtils.d.ts.map
|