@microsoft/omnichannel-chat-widget 1.8.5-0 → 1.8.6
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/lib/cjs/assets/Audios.js +1 -2
- package/lib/cjs/assets/Icons.js +16 -32
- package/lib/cjs/common/Constants.js +58 -86
- package/lib/cjs/common/KeyCodes.js +9 -10
- package/lib/cjs/common/contextDataStore/DataStoreManager.js +7 -8
- package/lib/cjs/common/facades/FacadeChatSDK.js +11 -13
- package/lib/cjs/common/storage/default/defaultCacheManager.js +7 -8
- package/lib/cjs/common/telemetry/AppInsightsEvents.js +2 -3
- package/lib/cjs/common/telemetry/ScenarioMarker.js +10 -12
- package/lib/cjs/common/telemetry/TelemetryConstants.js +31 -29
- package/lib/cjs/common/telemetry/TelemetryHelper.js +39 -39
- package/lib/cjs/common/telemetry/TelemetryManager.js +21 -24
- package/lib/cjs/common/telemetry/defaultConfigs/defaultAppInsightsConfig.js +2 -3
- package/lib/cjs/common/telemetry/defaultConfigs/defaultAriaConfig.js +2 -3
- package/lib/cjs/common/telemetry/defaultConfigs/defaultTelemetryConfiguration.js +2 -3
- package/lib/cjs/common/telemetry/defaultConfigs/defaultTelemetryInternalData.js +2 -3
- package/lib/cjs/common/telemetry/loggers/appInsightsLogger.js +7 -8
- package/lib/cjs/common/telemetry/loggers/ariaTelemetryLogger.js +1 -1
- package/lib/cjs/common/utils/SecureEventBus.js +36 -10
- package/lib/cjs/common/utils/dispatchCustomEvent.js +2 -3
- package/lib/cjs/common/utils/xssUtils.js +1 -1
- package/lib/cjs/common/utils.js +10 -11
- package/lib/cjs/components/callingcontainerstateful/CallingContainerStateful.js +15 -17
- package/lib/cjs/components/chatbuttonstateful/ChatButtonStateful.js +10 -12
- package/lib/cjs/components/chatbuttonstateful/common/styleProps/defaultOutOfOfficeChatButtonStyleProps.js +2 -3
- package/lib/cjs/components/citationpanestateful/CitationDim.js +3 -4
- package/lib/cjs/components/citationpanestateful/CitationPaneStateful.js +3 -6
- package/lib/cjs/components/citationpanestateful/common/defaultProps/defaultCitationPaneProps.js +3 -5
- package/lib/cjs/components/confirmationpanestateful/ConfirmationPaneStateful.js +3 -5
- package/lib/cjs/components/confirmationpanestateful/common/defaultProps/defaultConfirmationPaneLocalizedTexts.js +2 -3
- package/lib/cjs/components/dimlayer/DimLayer.js +1 -1
- package/lib/cjs/components/draggable/DraggableChatWidget.js +3 -5
- package/lib/cjs/components/draggable/DraggableEventEmitter.js +4 -6
- package/lib/cjs/components/draggable/DraggableEventNames.js +4 -5
- package/lib/cjs/components/draggable/DraggableEventReceiver.js +2 -4
- package/lib/cjs/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +8 -10
- package/lib/cjs/components/errorboundary/ErrorBoundary.js +17 -21
- package/lib/cjs/components/footerstateful/FooterStateful.js +9 -11
- package/lib/cjs/components/footerstateful/audionotificationstateful/AudioNotificationStateful.js +2 -4
- package/lib/cjs/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.js +4 -4
- package/lib/cjs/components/footerstateful/downloadtranscriptstateful/common/defaultLibraryScripts.js +1 -2
- package/lib/cjs/components/headerstateful/HeaderStateful.js +13 -15
- package/lib/cjs/components/headerstateful/common/styleProps/defaultOutOfOfficeHeaderStyleProps.js +2 -3
- package/lib/cjs/components/livechatwidget/LiveChatWidget.js +6 -8
- package/lib/cjs/components/livechatwidget/common/ActivityStreamHandler.js +10 -14
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/AddActivitySubscriber.js +26 -32
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +10 -12
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.js +9 -11
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +9 -11
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +9 -11
- package/lib/cjs/components/livechatwidget/common/ChatAdapterShim.js +12 -17
- package/lib/cjs/components/livechatwidget/common/ChatWidgetEvents.js +4 -5
- package/lib/cjs/components/livechatwidget/common/Deferred.js +10 -13
- package/lib/cjs/components/livechatwidget/common/PersistentConversationHandler.js +12 -15
- package/lib/cjs/components/livechatwidget/common/authHelper.js +1 -1
- package/lib/cjs/components/livechatwidget/common/chatDisconnectHelper.js +5 -5
- package/lib/cjs/components/livechatwidget/common/createAdapter.js +3 -3
- package/lib/cjs/components/livechatwidget/common/createDownloadTranscriptProps.js +1 -2
- package/lib/cjs/components/livechatwidget/common/createFooter.js +1 -1
- package/lib/cjs/components/livechatwidget/common/createInternetConnectionChangeHandler.js +6 -6
- package/lib/cjs/components/livechatwidget/common/createMarkdown.js +1 -2
- package/lib/cjs/components/livechatwidget/common/defaultProps/defaultPersistentChatHistoryProps.js +2 -3
- package/lib/cjs/components/livechatwidget/common/defaultProps/defaultScrollBarProps.js +2 -3
- package/lib/cjs/components/livechatwidget/common/defaultStyles/defaultLiveChatWidgetGeneralStyles.js +2 -3
- package/lib/cjs/components/livechatwidget/common/endChat.js +12 -13
- package/lib/cjs/components/livechatwidget/common/helpers/markdownHelper.js +1 -1
- package/lib/cjs/components/livechatwidget/common/initConfirmationPropsComposer.js +4 -4
- package/lib/cjs/components/livechatwidget/common/initWebChatComposer.js +17 -17
- package/lib/cjs/components/livechatwidget/common/liveChatConfigUtils.js +8 -8
- package/lib/cjs/components/livechatwidget/common/overridePropsOnMockIfApplicable.js +4 -5
- package/lib/cjs/components/livechatwidget/common/reconnectChatHelper.js +6 -6
- package/lib/cjs/components/livechatwidget/common/registerTelemetryLoggers.js +11 -11
- package/lib/cjs/components/livechatwidget/common/renderSurveyHelpers.js +10 -10
- package/lib/cjs/components/livechatwidget/common/startChat.js +37 -37
- package/lib/cjs/components/livechatwidget/common/startChatErrorHandler.js +6 -7
- package/lib/cjs/components/livechatwidget/interfaces/IMockProps.js +3 -4
- package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +76 -78
- package/lib/cjs/components/loadingpanestateful/LoadingPaneStateful.js +6 -8
- package/lib/cjs/components/loadingpanestateful/common/defaultStyleProps/defaultgeneralLoadingPaneStyleProps.js +2 -3
- package/lib/cjs/components/loadingpanestateful/common/errorUIStyleProps/errorUILoadingPaneStyleProps.js +2 -3
- package/lib/cjs/components/notificationpanestateful/NotificationPaneStateful.js +37 -40
- package/lib/cjs/components/notificationpanestateful/defaultProps/defaultChatDisconnectControlProps.js +2 -3
- package/lib/cjs/components/notificationpanestateful/defaultProps/defaultChatDisconnectStyleProps.js +2 -3
- package/lib/cjs/components/ooohpanestateful/OOOHPaneStateful.js +3 -5
- package/lib/cjs/components/ooohpanestateful/common/defaultStyleProps/defaultgeneralOOOHPaneStyleProps.js +2 -3
- package/lib/cjs/components/postchatloadingpanestateful/PostChatLoadingPaneStateful.js +3 -5
- package/lib/cjs/components/postchatloadingpanestateful/common/defaultgeneralPostChatLoadingPaneStyleProps.js +2 -3
- package/lib/cjs/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +4 -6
- package/lib/cjs/components/postchatsurveypanestateful/common/defaultStyleProps/defaultgeneralPostChatSurveyPaneStyleProps.js +2 -3
- package/lib/cjs/components/postchatsurveypanestateful/common/isValidSurveyUrl.js +1 -2
- package/lib/cjs/components/postchatsurveypanestateful/enums/CustomerVoiceEvents.js +3 -4
- package/lib/cjs/components/postchatsurveypanestateful/enums/PostChatSurveyMode.js +3 -4
- package/lib/cjs/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +10 -12
- package/lib/cjs/components/prechatsurveypanestateful/common/defaultProps/defaultPreChatSurveyLocalizedTexts.js +2 -3
- package/lib/cjs/components/prechatsurveypanestateful/common/defaultStyles/defaultGeneralPreChatSurveyPaneStyleProps.js +2 -3
- package/lib/cjs/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +8 -10
- package/lib/cjs/components/reconnectchatpanestateful/ReconnectChatPaneStateful.js +4 -6
- package/lib/cjs/components/startchaterrorpanestateful/StartChatErrorPaneStateful.js +15 -17
- package/lib/cjs/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneGeneralStyleProps.js +2 -3
- package/lib/cjs/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneIconImageProps.js +2 -3
- package/lib/cjs/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneIconStyleProps.js +2 -3
- package/lib/cjs/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneSubtitleStyleProps.js +2 -3
- package/lib/cjs/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneTitleStyleProps.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/WebChatContainerStateful.js +34 -37
- package/lib/cjs/components/webchatcontainerstateful/common/DemoChatAdapter.js +18 -21
- package/lib/cjs/components/webchatcontainerstateful/common/DemoChatSDK.js +17 -20
- package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatAdapter.js +21 -24
- package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatSDK.js +20 -23
- package/lib/cjs/components/webchatcontainerstateful/common/MockBotCardCommandType.js +4 -5
- package/lib/cjs/components/webchatcontainerstateful/common/MockBotCommand.js +4 -5
- package/lib/cjs/components/webchatcontainerstateful/common/activities/botActivity.js +1 -2
- package/lib/cjs/components/webchatcontainerstateful/common/activities/conversationDividerActivity.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/common/activityConverters/convertPersistentChatHistoryMessageToActivity.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultAttachmentProps.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultMarkdownLocalizedTexts.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultWebChatContainerStatefulProps.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultWebChatStatefulProps.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/common/defaultStyles/defaultAdaptiveCardStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStatefulContainerStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/common/mockadapter.js +12 -15
- package/lib/cjs/components/webchatcontainerstateful/common/mockchatsdk.js +10 -12
- package/lib/cjs/components/webchatcontainerstateful/common/utils/attachmentActivityUtils.js +0 -1
- package/lib/cjs/components/webchatcontainerstateful/common/utils/chatAdapterUtils.js +10 -13
- package/lib/cjs/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.js +1 -1
- package/lib/cjs/components/webchatcontainerstateful/hooks/usePersistentChatHistory.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.js +7 -8
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/WebChatEventSubscribers.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +7 -8
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/BrowserVendor.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineActivityType.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineSenderRole.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/MessageType.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/NotificationLevel.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/NotificationScenarios.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/SendStatus.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/WebChatActionType.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.js +9 -11
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsEgressMiddleware.js +1 -2
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsIngressMiddleware.js +1 -2
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activities/Constants.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activities/ConversationDividerActivity.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activities/LazyLoadActivity.js +60 -42
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activities/LoadInlineBannerActivity.js +2 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.js +8 -9
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityStatusMiddleware.js +1 -1
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachmentMiddleware.js +4 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/Attachment.js +11 -12
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/AttachmentContent.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/AttachmentIcon.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/DownloadBlockedAttachment.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/FileScanStatus.js +4 -5
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/MaliciousAttachment.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/ScanInProgressAttachment.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/Spinner.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/avatarMiddleware.js +1 -1
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/cardActionMiddleware.js +3 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentContentStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDividerStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDownloadIconStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentFileNameStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentSizeStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentAdaptiveCardStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentIconStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarTextStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultInLineBannerStyle.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultReceivedMessageAnchorStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSentMessageAnchorStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageBoxStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampContentStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampFailedStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampRetryStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorBubbleStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorContainerStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorMessageStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageBoxStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageStyles.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/messageSequenceIdOverrideMiddleware.js +6 -6
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/messageTimestampMiddleware.js +7 -7
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +1 -1
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/HistoryMessageTimestamp.js +1 -1
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/NotDeliveredTimestamp.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/SendingTimestamp.js +1 -1
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/toastMiddleware.js +1 -2
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentProcessingMiddleware.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.js +7 -8
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/callActionMiddleware.js +1 -2
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/channelDataMiddleware.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/citationsMiddleware.js +8 -8
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/conversationEndMiddleware.js +9 -10
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/customEventMiddleware.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/dataMaskingMiddleware.js +1 -2
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/gifUploadMiddleware.js +4 -5
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlPlayerMiddleware.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlTextMiddleware.js +4 -5
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/localizedStringsBotInitialsMiddleware.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/maxMessageSizeValidator.js +3 -4
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/preProcessingMiddleware.js +1 -2
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/sanitizationMiddleware.js +2 -3
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +8 -10
- package/lib/cjs/contexts/ChatAdapterStore.js +1 -2
- package/lib/cjs/contexts/ChatContextStore.js +1 -2
- package/lib/cjs/contexts/ChatSDKStore.js +1 -2
- package/lib/cjs/contexts/FacadeChatSDKStore.js +1 -2
- package/lib/cjs/contexts/common/ConversationState.js +3 -4
- package/lib/cjs/contexts/common/LiveChatWidgetActionType.js +211 -4
- package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +3 -3
- package/lib/cjs/contexts/common/StartChatFailureType.js +3 -4
- package/lib/cjs/controller/componentController.js +1 -1
- package/lib/cjs/firstresponselatency/Constants.js +3 -4
- package/lib/cjs/firstresponselatency/FirstResponseLatencyTracker.js +9 -11
- package/lib/cjs/firstresponselatency/util.js +8 -8
- package/lib/cjs/hooks/useChatAdapterStore.js +1 -2
- package/lib/cjs/hooks/useChatContextStore.js +1 -2
- package/lib/cjs/hooks/useChatSDKStore.js +1 -2
- package/lib/cjs/hooks/useFacadeChatSDKStore.js +1 -2
- package/lib/cjs/hooks/useWindowDimensions.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/plugins/createChatTranscript.js +25 -28
- package/lib/cjs/plugins/newMessageEventHandler.js +2 -2
- package/lib/esm/common/Constants.js +40 -39
- package/lib/esm/common/KeyCodes.js +9 -9
- package/lib/esm/common/contextDataStore/DataStoreManager.js +6 -6
- package/lib/esm/common/facades/FacadeChatSDK.js +9 -10
- package/lib/esm/common/storage/default/defaultCacheManager.js +6 -6
- package/lib/esm/common/telemetry/ScenarioMarker.js +9 -10
- package/lib/esm/common/telemetry/TelemetryConstants.js +33 -25
- package/lib/esm/common/telemetry/TelemetryHelper.js +38 -37
- package/lib/esm/common/telemetry/TelemetryManager.js +19 -20
- package/lib/esm/common/telemetry/loggers/appInsightsLogger.js +5 -5
- package/lib/esm/common/telemetry/loggers/ariaTelemetryLogger.js +1 -1
- package/lib/esm/common/utils/SecureEventBus.js +9 -8
- package/lib/esm/common/utils.js +10 -11
- package/lib/esm/components/callingcontainerstateful/CallingContainerStateful.js +12 -12
- package/lib/esm/components/chatbuttonstateful/ChatButtonStateful.js +7 -7
- package/lib/esm/components/citationpanestateful/CitationDim.js +1 -1
- package/lib/esm/components/citationpanestateful/CitationPaneStateful.js +0 -1
- package/lib/esm/components/draggable/DraggableEventEmitter.js +1 -1
- package/lib/esm/components/draggable/DraggableEventNames.js +3 -3
- package/lib/esm/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +5 -5
- package/lib/esm/components/errorboundary/ErrorBoundary.js +15 -17
- package/lib/esm/components/footerstateful/FooterStateful.js +6 -6
- package/lib/esm/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.js +3 -3
- package/lib/esm/components/headerstateful/HeaderStateful.js +10 -10
- package/lib/esm/components/livechatwidget/LiveChatWidget.js +3 -3
- package/lib/esm/components/livechatwidget/common/ActivityStreamHandler.js +9 -12
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/AddActivitySubscriber.js +23 -28
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +8 -9
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.js +7 -8
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +7 -8
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +7 -8
- package/lib/esm/components/livechatwidget/common/ChatAdapterShim.js +10 -14
- package/lib/esm/components/livechatwidget/common/ChatWidgetEvents.js +3 -3
- package/lib/esm/components/livechatwidget/common/Deferred.js +8 -10
- package/lib/esm/components/livechatwidget/common/PersistentConversationHandler.js +10 -12
- package/lib/esm/components/livechatwidget/common/authHelper.js +1 -1
- package/lib/esm/components/livechatwidget/common/chatDisconnectHelper.js +5 -5
- package/lib/esm/components/livechatwidget/common/createAdapter.js +3 -3
- package/lib/esm/components/livechatwidget/common/createInternetConnectionChangeHandler.js +6 -6
- package/lib/esm/components/livechatwidget/common/createMarkdown.js +0 -1
- package/lib/esm/components/livechatwidget/common/endChat.js +12 -13
- package/lib/esm/components/livechatwidget/common/initConfirmationPropsComposer.js +4 -4
- package/lib/esm/components/livechatwidget/common/initWebChatComposer.js +16 -16
- package/lib/esm/components/livechatwidget/common/liveChatConfigUtils.js +8 -8
- package/lib/esm/components/livechatwidget/common/overridePropsOnMockIfApplicable.js +3 -3
- package/lib/esm/components/livechatwidget/common/reconnectChatHelper.js +6 -6
- package/lib/esm/components/livechatwidget/common/registerTelemetryLoggers.js +11 -11
- package/lib/esm/components/livechatwidget/common/renderSurveyHelpers.js +10 -10
- package/lib/esm/components/livechatwidget/common/startChat.js +37 -37
- package/lib/esm/components/livechatwidget/common/startChatErrorHandler.js +6 -7
- package/lib/esm/components/livechatwidget/interfaces/IMockProps.js +3 -3
- package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +73 -73
- package/lib/esm/components/loadingpanestateful/LoadingPaneStateful.js +3 -3
- package/lib/esm/components/notificationpanestateful/NotificationPaneStateful.js +34 -35
- package/lib/esm/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +1 -1
- package/lib/esm/components/postchatsurveypanestateful/enums/CustomerVoiceEvents.js +3 -3
- package/lib/esm/components/postchatsurveypanestateful/enums/PostChatSurveyMode.js +3 -3
- package/lib/esm/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +7 -7
- package/lib/esm/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +5 -5
- package/lib/esm/components/reconnectchatpanestateful/ReconnectChatPaneStateful.js +1 -1
- package/lib/esm/components/startchaterrorpanestateful/StartChatErrorPaneStateful.js +12 -12
- package/lib/esm/components/webchatcontainerstateful/WebChatContainerStateful.js +31 -32
- package/lib/esm/components/webchatcontainerstateful/common/DemoChatAdapter.js +15 -17
- package/lib/esm/components/webchatcontainerstateful/common/DemoChatSDK.js +15 -17
- package/lib/esm/components/webchatcontainerstateful/common/DesignerChatAdapter.js +18 -20
- package/lib/esm/components/webchatcontainerstateful/common/DesignerChatSDK.js +18 -20
- package/lib/esm/components/webchatcontainerstateful/common/MockBotCardCommandType.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/common/MockBotCommand.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/common/activityConverters/convertPersistentChatHistoryMessageToActivity.js +1 -1
- package/lib/esm/components/webchatcontainerstateful/common/mockadapter.js +10 -12
- package/lib/esm/components/webchatcontainerstateful/common/mockchatsdk.js +7 -8
- package/lib/esm/components/webchatcontainerstateful/common/utils/attachmentActivityUtils.js +0 -1
- package/lib/esm/components/webchatcontainerstateful/common/utils/chatAdapterUtils.js +7 -7
- package/lib/esm/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.js +1 -1
- package/lib/esm/components/webchatcontainerstateful/hooks/usePersistentChatHistory.js +1 -1
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.js +6 -6
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +6 -6
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/BrowserVendor.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineActivityType.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineSenderRole.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/MessageType.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/NotificationLevel.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/NotificationScenarios.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/SendStatus.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/WebChatActionType.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.js +7 -8
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activities/LazyLoadActivity.js +28 -35
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.js +6 -6
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachmentMiddleware.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/Attachment.js +9 -9
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/DownloadBlockedAttachment.js +1 -1
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/FileScanStatus.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/MaliciousAttachment.js +1 -1
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/ScanInProgressAttachment.js +1 -1
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/cardActionMiddleware.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/messageSequenceIdOverrideMiddleware.js +6 -6
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/messageTimestampMiddleware.js +7 -7
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/NotDeliveredTimestamp.js +1 -1
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/toastMiddleware.js +0 -1
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentProcessingMiddleware.js +2 -2
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.js +6 -6
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/channelDataMiddleware.js +2 -2
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/citationsMiddleware.js +8 -8
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/conversationEndMiddleware.js +8 -8
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/customEventMiddleware.js +2 -2
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/gifUploadMiddleware.js +3 -3
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlPlayerMiddleware.js +2 -2
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlTextMiddleware.js +2 -2
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/localizedStringsBotInitialsMiddleware.js +3 -4
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/maxMessageSizeValidator.js +2 -2
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +6 -7
- package/lib/esm/contexts/common/ConversationState.js +3 -3
- package/lib/esm/contexts/common/LiveChatWidgetActionType.js +211 -3
- package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +3 -3
- package/lib/esm/contexts/common/StartChatFailureType.js +3 -3
- package/lib/esm/controller/componentController.js +1 -2
- package/lib/esm/firstresponselatency/Constants.js +3 -3
- package/lib/esm/firstresponselatency/FirstResponseLatencyTracker.js +7 -8
- package/lib/esm/firstresponselatency/util.js +8 -8
- package/lib/esm/plugins/createChatTranscript.js +23 -25
- package/lib/esm/plugins/newMessageEventHandler.js +2 -2
- package/package.json +28 -22
|
@@ -1,53 +1,261 @@
|
|
|
1
|
-
export let LiveChatWidgetActionType
|
|
2
|
-
|
|
1
|
+
export let LiveChatWidgetActionType = /*#__PURE__*/function (LiveChatWidgetActionType) {
|
|
2
|
+
/*
|
|
3
|
+
Parameters:
|
|
4
|
+
- true: When the minimize button is clicked
|
|
5
|
+
- false: When the chat button is clicked after the chat is minimized (not closed)
|
|
6
|
+
*/
|
|
3
7
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_WIDGET_ELEMENT_ID"] = 0] = "SET_WIDGET_ELEMENT_ID";
|
|
8
|
+
/*
|
|
9
|
+
Parameters:
|
|
10
|
+
- props: The rendering middleware props
|
|
11
|
+
*/
|
|
4
12
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_RENDERING_MIDDLEWARE_PROPS"] = 1] = "SET_RENDERING_MIDDLEWARE_PROPS";
|
|
13
|
+
/*
|
|
14
|
+
Parameters:
|
|
15
|
+
- props: The localized middlware texts
|
|
16
|
+
*/
|
|
5
17
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_MIDDLEWARE_LOCALIZED_TEXTS"] = 2] = "SET_MIDDLEWARE_LOCALIZED_TEXTS";
|
|
18
|
+
// New: store citation map produced by the citations middleware
|
|
6
19
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_CITATIONS"] = 3] = "SET_CITATIONS";
|
|
20
|
+
/*
|
|
21
|
+
Parameters:
|
|
22
|
+
- dir: The global direction prop that will apply to each component if noit specified
|
|
23
|
+
*/
|
|
7
24
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_GLOBAL_DIR"] = 4] = "SET_GLOBAL_DIR";
|
|
25
|
+
/*
|
|
26
|
+
Parameters:
|
|
27
|
+
- true: When the minimize button is clicked
|
|
28
|
+
- false: When the chat button is clicked after the chat is minimized (not closed)
|
|
29
|
+
*/
|
|
8
30
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_MINIMIZED"] = 5] = "SET_MINIMIZED";
|
|
31
|
+
/*
|
|
32
|
+
Parameters:
|
|
33
|
+
ConversationState enum : Enum that controls different Conversation behaviour
|
|
34
|
+
*/
|
|
9
35
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_CONVERSATION_STATE"] = 6] = "SET_CONVERSATION_STATE";
|
|
36
|
+
/*
|
|
37
|
+
Parameters:
|
|
38
|
+
string or null: The element id that the control will return to after a popup/modal is closed
|
|
39
|
+
*/
|
|
10
40
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_PREVIOUS_FOCUSED_ELEMENT_ID"] = 7] = "SET_PREVIOUS_FOCUSED_ELEMENT_ID";
|
|
41
|
+
/*
|
|
42
|
+
Parameters:
|
|
43
|
+
- true: When chat is failing to start
|
|
44
|
+
- false: When chat is functioning normally
|
|
45
|
+
*/
|
|
11
46
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_START_CHAT_FAILING"] = 8] = "SET_START_CHAT_FAILING";
|
|
47
|
+
/*
|
|
48
|
+
Parameters:
|
|
49
|
+
- string: The start chat failure type
|
|
50
|
+
*/
|
|
12
51
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_START_CHAT_FAILURE_TYPE"] = 9] = "SET_START_CHAT_FAILURE_TYPE";
|
|
52
|
+
/*
|
|
53
|
+
Parameters:
|
|
54
|
+
- true: When chat is outside operating hours
|
|
55
|
+
- false: When chat is not outside operatin hours
|
|
56
|
+
*/
|
|
13
57
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_OUTSIDE_OPERATING_HOURS"] = 10] = "SET_OUTSIDE_OPERATING_HOURS";
|
|
58
|
+
/*
|
|
59
|
+
Parameters:
|
|
60
|
+
string: The PreChat Survey JSON payload in string format
|
|
61
|
+
*/
|
|
14
62
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_PRE_CHAT_SURVEY_RESPONSE"] = 11] = "SET_PRE_CHAT_SURVEY_RESPONSE";
|
|
63
|
+
/*
|
|
64
|
+
Parameters:
|
|
65
|
+
string: The custom context in json format
|
|
66
|
+
*/
|
|
15
67
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_CUSTOM_CONTEXT"] = 12] = "SET_CUSTOM_CONTEXT";
|
|
68
|
+
/*
|
|
69
|
+
Parameters:
|
|
70
|
+
- true: When close chat button is clicked
|
|
71
|
+
- false: when clicked on Confirm button on confirmation pane
|
|
72
|
+
*/
|
|
16
73
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_SHOW_CONFIRMATION"] = 13] = "SET_SHOW_CONFIRMATION";
|
|
74
|
+
/*
|
|
75
|
+
Parameters:
|
|
76
|
+
- true: When Email Transcript button is clicked
|
|
77
|
+
- false: when Done button clicked on Email Transcript pane
|
|
78
|
+
*/
|
|
17
79
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_SHOW_EMAIL_TRANSCRIPT_PANE"] = 14] = "SET_SHOW_EMAIL_TRANSCRIPT_PANE";
|
|
80
|
+
/*
|
|
81
|
+
Parameters:
|
|
82
|
+
string: Email id from prechat survey pane(if available)
|
|
83
|
+
*/
|
|
18
84
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_PRECHAT_RESPONSE_EMAIL"] = 15] = "SET_PRECHAT_RESPONSE_EMAIL";
|
|
85
|
+
/*
|
|
86
|
+
Parameters:
|
|
87
|
+
true: When audio notification on
|
|
88
|
+
null: During initialization
|
|
89
|
+
false: When audio notification off
|
|
90
|
+
*/
|
|
19
91
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_AUDIO_NOTIFICATION"] = 16] = "SET_AUDIO_NOTIFICATION";
|
|
92
|
+
/*
|
|
93
|
+
Parameters:
|
|
94
|
+
true: If voice and video calling is enabled
|
|
95
|
+
false: Incase of disabled
|
|
96
|
+
*/
|
|
20
97
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_E2VV_ENABLED"] = 17] = "SET_E2VV_ENABLED";
|
|
98
|
+
/*
|
|
99
|
+
Parameters:
|
|
100
|
+
any: Contains the Post Chat Context information if set
|
|
101
|
+
*/
|
|
21
102
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_POST_CHAT_CONTEXT"] = 18] = "SET_POST_CHAT_CONTEXT";
|
|
103
|
+
/*
|
|
104
|
+
Parameters:
|
|
105
|
+
true: When call is initiated from from an agent
|
|
106
|
+
false: To hide the calling container
|
|
107
|
+
*/
|
|
22
108
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SHOW_CALLING_CONTAINER"] = 19] = "SHOW_CALLING_CONTAINER";
|
|
109
|
+
/*
|
|
110
|
+
Parameters:
|
|
111
|
+
true: To show the incoming call container
|
|
112
|
+
false: When call is accepted or rejected
|
|
113
|
+
*/
|
|
23
114
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_INCOMING_CALL"] = 20] = "SET_INCOMING_CALL";
|
|
115
|
+
/*
|
|
116
|
+
Parameters:
|
|
117
|
+
true: When both local and remote video are disabled to hide video calling container
|
|
118
|
+
false: If any of remote or local video is enabled to Show video calling container
|
|
119
|
+
*/
|
|
24
120
|
LiveChatWidgetActionType[LiveChatWidgetActionType["DISABLE_VIDEO_CALL"] = 21] = "DISABLE_VIDEO_CALL";
|
|
121
|
+
/*
|
|
122
|
+
Parameters:
|
|
123
|
+
true/false: Local video toggle
|
|
124
|
+
*/
|
|
25
125
|
LiveChatWidgetActionType[LiveChatWidgetActionType["DISABLE_LOCAL_VIDEO"] = 22] = "DISABLE_LOCAL_VIDEO";
|
|
126
|
+
/*
|
|
127
|
+
Parameters:
|
|
128
|
+
true/false: remote video toggle
|
|
129
|
+
*/
|
|
26
130
|
LiveChatWidgetActionType[LiveChatWidgetActionType["DISABLE_REMOTE_VIDEO"] = 23] = "DISABLE_REMOTE_VIDEO";
|
|
131
|
+
/*
|
|
132
|
+
Parameters:
|
|
133
|
+
any: Contains the chat token data
|
|
134
|
+
*/
|
|
27
135
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_CHAT_TOKEN"] = 24] = "SET_CHAT_TOKEN";
|
|
136
|
+
/*
|
|
137
|
+
Parameters:
|
|
138
|
+
true/false: Decides whether to show the start chat button
|
|
139
|
+
*/
|
|
28
140
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_START_CHAT_BUTTON_DISPLAY"] = 25] = "SET_START_CHAT_BUTTON_DISPLAY";
|
|
141
|
+
/*
|
|
142
|
+
Parameters:
|
|
143
|
+
any: Proactive chat parameter when proactive chat starts
|
|
144
|
+
*/
|
|
29
145
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_PROACTIVE_CHAT_PARAMS"] = 26] = "SET_PROACTIVE_CHAT_PARAMS";
|
|
146
|
+
/*
|
|
147
|
+
Parameters:
|
|
148
|
+
IInternalTelemetryData: Sets internal telemetry data for telemetry logging
|
|
149
|
+
*/
|
|
30
150
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_TELEMETRY_DATA"] = 27] = "SET_TELEMETRY_DATA";
|
|
151
|
+
/*
|
|
152
|
+
Parameters:
|
|
153
|
+
string: Reconnect Id for chat reconnect
|
|
154
|
+
*/
|
|
31
155
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_RECONNECT_ID"] = 28] = "SET_RECONNECT_ID";
|
|
156
|
+
/*
|
|
157
|
+
Parameters:
|
|
158
|
+
number: Keeps track of unread message count on chat minimize
|
|
159
|
+
*/
|
|
32
160
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_UNREAD_MESSAGE_COUNT"] = 29] = "SET_UNREAD_MESSAGE_COUNT";
|
|
161
|
+
/*
|
|
162
|
+
Parameters:
|
|
163
|
+
number: Toggle focus on chat button
|
|
164
|
+
*/
|
|
33
165
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_FOCUS_CHAT_BUTTON"] = 30] = "SET_FOCUS_CHAT_BUTTON";
|
|
166
|
+
/*
|
|
167
|
+
Parameters:
|
|
168
|
+
any: Set conversation ended by agent state
|
|
169
|
+
*/
|
|
34
170
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_CONVERSATION_ENDED_BY_AGENT_EVENT_RECEIVED"] = 31] = "SET_CONVERSATION_ENDED_BY_AGENT_EVENT_RECEIVED";
|
|
171
|
+
/*
|
|
172
|
+
Parameters:
|
|
173
|
+
any: Set conversation ended entity
|
|
174
|
+
*/
|
|
35
175
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_CONVERSATION_ENDED_BY"] = 32] = "SET_CONVERSATION_ENDED_BY";
|
|
176
|
+
/*
|
|
177
|
+
Parameters:
|
|
178
|
+
any: Set widget state from cache
|
|
179
|
+
*/
|
|
36
180
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_WIDGET_STATE"] = 33] = "SET_WIDGET_STATE";
|
|
181
|
+
/*
|
|
182
|
+
Parameters:
|
|
183
|
+
any: Set live chat context
|
|
184
|
+
*/
|
|
37
185
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_LIVE_CHAT_CONTEXT"] = 34] = "SET_LIVE_CHAT_CONTEXT";
|
|
186
|
+
/*
|
|
187
|
+
string: SignIn ID for authentication
|
|
188
|
+
*/
|
|
38
189
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_BOT_OAUTH_SIGNIN_ID"] = 35] = "SET_BOT_OAUTH_SIGNIN_ID";
|
|
190
|
+
/*
|
|
191
|
+
Parameters:
|
|
192
|
+
any: Set height and width of Widget
|
|
193
|
+
*/
|
|
39
194
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_WIDGET_SIZE"] = 36] = "SET_WIDGET_SIZE";
|
|
195
|
+
/*
|
|
196
|
+
Parameters:
|
|
197
|
+
any: Set widget instance id
|
|
198
|
+
*/
|
|
40
199
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_WIDGET_INSTANCE_ID"] = 37] = "SET_WIDGET_INSTANCE_ID";
|
|
200
|
+
/*
|
|
201
|
+
Parameters:
|
|
202
|
+
any: Set live chat config
|
|
203
|
+
*/
|
|
41
204
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_LIVE_CHAT_CONFIG"] = 38] = "SET_LIVE_CHAT_CONFIG";
|
|
205
|
+
/*
|
|
206
|
+
Parameters:
|
|
207
|
+
true/false: Checks if Postchat workflow is already initiated
|
|
208
|
+
*/
|
|
42
209
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_POST_CHAT_WORKFLOW_IN_PROGRESS"] = 39] = "SET_POST_CHAT_WORKFLOW_IN_PROGRESS";
|
|
210
|
+
/*
|
|
211
|
+
Parameters:
|
|
212
|
+
any: Set initial chat sdk request id (for reconnect scenario when start new chat is deferred)
|
|
213
|
+
*/
|
|
43
214
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_INITIAL_CHAT_SDK_REQUEST_ID"] = 40] = "SET_INITIAL_CHAT_SDK_REQUEST_ID";
|
|
215
|
+
/*
|
|
216
|
+
Parameters:
|
|
217
|
+
true/false: To check if bot configured survey needs to be used
|
|
218
|
+
*/
|
|
44
219
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_SHOULD_USE_BOT_SURVEY"] = 41] = "SET_SHOULD_USE_BOT_SURVEY";
|
|
220
|
+
/*
|
|
221
|
+
Parameters:
|
|
222
|
+
any: Set customer disconnect
|
|
223
|
+
*/
|
|
45
224
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_CHAT_DISCONNECT_EVENT_RECEIVED"] = 42] = "SET_CHAT_DISCONNECT_EVENT_RECEIVED";
|
|
225
|
+
/*
|
|
226
|
+
Parameters:
|
|
227
|
+
any: Set selected survey mode
|
|
228
|
+
*/
|
|
46
229
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_SURVEY_MODE"] = 43] = "SET_SURVEY_MODE";
|
|
230
|
+
/*
|
|
231
|
+
Parameters:
|
|
232
|
+
ConfirmationState: Set confirmation state(OK/Cancel/NotSet)
|
|
233
|
+
*/
|
|
47
234
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_CONFIRMATION_STATE"] = 44] = "SET_CONFIRMATION_STATE";
|
|
235
|
+
/*
|
|
236
|
+
Parameters:
|
|
237
|
+
ParticipantType: Set participant type when rendering post chat survey
|
|
238
|
+
*/
|
|
48
239
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_POST_CHAT_PARTICIPANT_TYPE"] = 45] = "SET_POST_CHAT_PARTICIPANT_TYPE";
|
|
240
|
+
/*
|
|
241
|
+
Parameters:
|
|
242
|
+
true/false: Determines if conversational survey feature is enabled
|
|
243
|
+
*/
|
|
49
244
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_CONVERSATIONAL_SURVEY_ENABLED"] = 46] = "SET_CONVERSATIONAL_SURVEY_ENABLED";
|
|
245
|
+
/*
|
|
246
|
+
Parameters:
|
|
247
|
+
true/false: Determines if conversational survey flow is active
|
|
248
|
+
*/
|
|
50
249
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_CONVERSATIONAL_SURVEY_DISPLAY"] = 47] = "SET_CONVERSATIONAL_SURVEY_DISPLAY";
|
|
250
|
+
/*
|
|
251
|
+
Parameters:
|
|
252
|
+
null payload, simply returns the existing inMemory state
|
|
253
|
+
*/
|
|
51
254
|
LiveChatWidgetActionType[LiveChatWidgetActionType["GET_IN_MEMORY_STATE"] = 48] = "GET_IN_MEMORY_STATE";
|
|
255
|
+
/*
|
|
256
|
+
Parameters:
|
|
257
|
+
string: Sets/updates current bot avatar initials (used for dynamic refresh of persistent messages)
|
|
258
|
+
*/
|
|
52
259
|
LiveChatWidgetActionType[LiveChatWidgetActionType["SET_BOT_AVATAR_INITIALS"] = 49] = "SET_BOT_AVATAR_INITIALS";
|
|
53
|
-
|
|
260
|
+
return LiveChatWidgetActionType;
|
|
261
|
+
}({});
|
|
@@ -8,11 +8,11 @@ import { defaultWebChatStyles } from "../../components/webchatcontainerstateful/
|
|
|
8
8
|
export const getLiveChatWidgetContextInitialState = props => {
|
|
9
9
|
var _props$controlProps, _props$webChatContain;
|
|
10
10
|
const isOutsideOperatingHours = () => {
|
|
11
|
-
var _props$chatConfig
|
|
12
|
-
return ((_props$chatConfig = props.chatConfig) === null || _props$chatConfig === void 0
|
|
11
|
+
var _props$chatConfig;
|
|
12
|
+
return ((_props$chatConfig = props.chatConfig) === null || _props$chatConfig === void 0 || (_props$chatConfig = _props$chatConfig.LiveWSAndLiveChatEngJoin) === null || _props$chatConfig === void 0 || (_props$chatConfig = _props$chatConfig.OutOfOperatingHours) === null || _props$chatConfig === void 0 ? void 0 : _props$chatConfig.toString().toLowerCase()) === "true";
|
|
13
13
|
};
|
|
14
14
|
const widgetCacheId = getWidgetCacheIdfromProps(props);
|
|
15
|
-
const cacheTtlInMins = (props === null || props === void 0
|
|
15
|
+
const cacheTtlInMins = (props === null || props === void 0 || (_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.cacheTtlInMins) ?? Constants.CacheTtlInMinutes;
|
|
16
16
|
const storageType = (props === null || props === void 0 ? void 0 : props.useSessionStorage) === true ? StorageType.sessionStorage : StorageType.localStorage;
|
|
17
17
|
const initialState = defaultClientDataStoreProvider(cacheTtlInMins, storageType).getData(widgetCacheId);
|
|
18
18
|
if (!isNullOrUndefined(initialState)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export let StartChatFailureType
|
|
2
|
-
(function (StartChatFailureType) {
|
|
1
|
+
export let StartChatFailureType = /*#__PURE__*/function (StartChatFailureType) {
|
|
3
2
|
StartChatFailureType["Unauthorized"] = "unauthorized";
|
|
4
3
|
StartChatFailureType["AuthSetupError"] = "authSetupError";
|
|
5
4
|
StartChatFailureType["Generic"] = "generic";
|
|
6
|
-
|
|
5
|
+
return StartChatFailureType;
|
|
6
|
+
}({});
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ConversationState } from "../contexts/common/ConversationState";
|
|
2
2
|
export const shouldShowChatButton = state => {
|
|
3
3
|
var _state$appStates;
|
|
4
|
-
return (state.appStates.isMinimized || state.appStates.conversationState === ConversationState.Closed) && (state === null || state === void 0
|
|
4
|
+
return (state.appStates.isMinimized || state.appStates.conversationState === ConversationState.Closed) && (state === null || state === void 0 || (_state$appStates = state.appStates) === null || _state$appStates === void 0 ? void 0 : _state$appStates.hideStartChatButton) === false; // Do not show chat button in case of popout
|
|
5
5
|
};
|
|
6
|
-
|
|
7
6
|
export const shouldShowProactiveChatPane = state => {
|
|
8
7
|
return !state.appStates.isMinimized && state.appStates.conversationState === ConversationState.ProactiveChat;
|
|
9
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export let ScenarioType
|
|
2
|
-
(function (ScenarioType) {
|
|
1
|
+
export let ScenarioType = /*#__PURE__*/function (ScenarioType) {
|
|
3
2
|
ScenarioType["UserSendMessageStrategy"] = "UserSendMessageStrategy";
|
|
4
3
|
ScenarioType["SystemMessageStrategy"] = "SystemMessageStrategy";
|
|
5
4
|
ScenarioType["ReceivedMessageStrategy"] = "ReceivedMessageStrategy";
|
|
6
|
-
|
|
5
|
+
return ScenarioType;
|
|
6
|
+
}({});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _classCallCheck(
|
|
2
|
-
function _defineProperties(
|
|
3
|
-
function _createClass(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
1
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
2
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
3
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { BroadcastEvent, LogLevel, TelemetryEvent } from "../common/telemetry/TelemetryConstants";
|
|
8
8
|
import { BroadcastService } from "@microsoft/omnichannel-chat-components";
|
|
9
9
|
import { TelemetryHelper } from "../common/telemetry/TelemetryHelper";
|
|
@@ -45,7 +45,7 @@ export let FirstResponseLatencyTracker = /*#__PURE__*/function () {
|
|
|
45
45
|
// we do have a mechanism in place to prevent log agent messages.
|
|
46
46
|
this.isABotConversation = true;
|
|
47
47
|
}
|
|
48
|
-
_createClass(FirstResponseLatencyTracker, [{
|
|
48
|
+
return _createClass(FirstResponseLatencyTracker, [{
|
|
49
49
|
key: "createTrackingMessage",
|
|
50
50
|
value: function createTrackingMessage(payload, type) {
|
|
51
51
|
return {
|
|
@@ -212,5 +212,4 @@ export let FirstResponseLatencyTracker = /*#__PURE__*/function () {
|
|
|
212
212
|
this.historyListener.unsubscribe();
|
|
213
213
|
}
|
|
214
214
|
}]);
|
|
215
|
-
return FirstResponseLatencyTracker;
|
|
216
215
|
}();
|
|
@@ -64,14 +64,14 @@ export const buildMessagePayload = (activity, userId) => {
|
|
|
64
64
|
return {
|
|
65
65
|
// To identify hidden contents vs empty content
|
|
66
66
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
67
|
-
text: (activity === null || activity === void 0
|
|
67
|
+
text: (activity === null || activity === void 0 || (_text = activity.text) === null || _text === void 0 ? void 0 : _text.length) >= 1 ? `*contents hidden (${activity === null || activity === void 0 || (_text2 = activity.text) === null || _text2 === void 0 ? void 0 : _text2.length} chars)*` : "",
|
|
68
68
|
type: activity === null || activity === void 0 ? void 0 : activity.type,
|
|
69
69
|
timestamp: activity === null || activity === void 0 ? void 0 : activity.timestamp,
|
|
70
70
|
userId: userId,
|
|
71
|
-
tags: (activity === null || activity === void 0
|
|
71
|
+
tags: (activity === null || activity === void 0 || (_activity$channelData2 = activity.channelData) === null || _activity$channelData2 === void 0 ? void 0 : _activity$channelData2.tags) || [],
|
|
72
72
|
messageType: "",
|
|
73
73
|
Id: activity === null || activity === void 0 ? void 0 : activity.id,
|
|
74
|
-
role: activity === null || activity === void 0
|
|
74
|
+
role: activity === null || activity === void 0 || (_activity$from = activity.from) === null || _activity$from === void 0 ? void 0 : _activity$from.role,
|
|
75
75
|
isChatComplete: false
|
|
76
76
|
};
|
|
77
77
|
};
|
|
@@ -80,21 +80,21 @@ export const polyfillMessagePayloadForEvent = (activity, payload, conversationId
|
|
|
80
80
|
return {
|
|
81
81
|
...payload,
|
|
82
82
|
channelData: activity === null || activity === void 0 ? void 0 : activity.channelData,
|
|
83
|
-
chatId: activity === null || activity === void 0
|
|
83
|
+
chatId: activity === null || activity === void 0 || (_activity$conversatio = activity.conversation) === null || _activity$conversatio === void 0 ? void 0 : _activity$conversatio.id,
|
|
84
84
|
conversationId: conversationId,
|
|
85
85
|
Id: activity === null || activity === void 0 ? void 0 : activity.id,
|
|
86
86
|
isChatComplete: false,
|
|
87
87
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
88
88
|
text: activity === null || activity === void 0 ? void 0 : activity.text,
|
|
89
89
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
90
|
-
attachment: (activity === null || activity === void 0
|
|
91
|
-
role: activity === null || activity === void 0
|
|
90
|
+
attachment: (activity === null || activity === void 0 || (_attachments = activity.attachments) === null || _attachments === void 0 ? void 0 : _attachments.length) >= 1 ? activity === null || activity === void 0 ? void 0 : activity.attachments : [],
|
|
91
|
+
role: activity === null || activity === void 0 || (_activity$from2 = activity.from) === null || _activity$from2 === void 0 ? void 0 : _activity$from2.role
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
export const getScenarioType = activity => {
|
|
95
95
|
var _activity$from3, _activity$channelData3;
|
|
96
|
-
const role = activity === null || activity === void 0
|
|
97
|
-
const tags = activity === null || activity === void 0
|
|
96
|
+
const role = activity === null || activity === void 0 || (_activity$from3 = activity.from) === null || _activity$from3 === void 0 ? void 0 : _activity$from3.role;
|
|
97
|
+
const tags = activity === null || activity === void 0 || (_activity$channelData3 = activity.channelData) === null || _activity$channelData3 === void 0 ? void 0 : _activity$channelData3.tags;
|
|
98
98
|
if (role === Constants.userMessageTag) {
|
|
99
99
|
return ScenarioType.UserSendMessageStrategy;
|
|
100
100
|
}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
function _classCallCheck(
|
|
2
|
-
function _defineProperties(
|
|
3
|
-
function _createClass(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
1
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
2
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
3
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
/* eslint-disable no-useless-escape */
|
|
8
8
|
|
|
9
9
|
import { createFileAndDownload } from "../common/utils";
|
|
10
10
|
import defaultLibraryScripts from "../components/footerstateful/downloadtranscriptstateful/common/defaultLibraryScripts";
|
|
11
11
|
import DOMPurify from "dompurify";
|
|
12
12
|
let TranscriptHTMLBuilder = /*#__PURE__*/function () {
|
|
13
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
14
|
-
|
|
15
13
|
function TranscriptHTMLBuilder(options) {
|
|
16
|
-
var _this$options, _this$options2, _this$options3, _this$options4, _this$options5, _this$options6, _this$options7, _this$options8, _this$options9, _this$
|
|
14
|
+
var _this$options, _this$options2, _this$options3, _this$options4, _this$options5, _this$options6, _this$options7, _this$options8, _this$options9, _this$options0, _this$options1, _this$options10, _this$options11;
|
|
17
15
|
_classCallCheck(this, TranscriptHTMLBuilder);
|
|
18
16
|
_defineProperty(this, "options", void 0);
|
|
17
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
19
18
|
_defineProperty(this, "pageTitle", "Customer Transcript");
|
|
20
19
|
_defineProperty(this, "attachmentMessage", "The following attachment was uploaded during the conversation: ");
|
|
21
20
|
_defineProperty(this, "networkOnlineMessage", "Connection restored. Please refresh the page");
|
|
@@ -61,20 +60,20 @@ let TranscriptHTMLBuilder = /*#__PURE__*/function () {
|
|
|
61
60
|
if ((_this$options9 = this.options) !== null && _this$options9 !== void 0 && _this$options9.customerAvatarFontColor) {
|
|
62
61
|
this.customerAvatarFontColor = this.options.customerAvatarFontColor;
|
|
63
62
|
}
|
|
64
|
-
if ((_this$
|
|
63
|
+
if ((_this$options0 = this.options) !== null && _this$options0 !== void 0 && _this$options0.customerDisplayName) {
|
|
65
64
|
this.customerDisplayName = this.options.customerDisplayName;
|
|
66
65
|
}
|
|
67
|
-
if ((_this$
|
|
66
|
+
if ((_this$options1 = this.options) !== null && _this$options1 !== void 0 && _this$options1.disableMarkdownMessageFormatting) {
|
|
68
67
|
this.disableMarkdownMessageFormatting = this.options.disableMarkdownMessageFormatting;
|
|
69
68
|
}
|
|
70
|
-
if ((_this$
|
|
69
|
+
if ((_this$options10 = this.options) !== null && _this$options10 !== void 0 && _this$options10.disableNewLineMarkdownSupport) {
|
|
71
70
|
this.disableNewLineMarkdownSupport = this.options.disableNewLineMarkdownSupport;
|
|
72
71
|
}
|
|
73
|
-
if ((_this$
|
|
72
|
+
if ((_this$options11 = this.options) !== null && _this$options11 !== void 0 && _this$options11.externalScripts) {
|
|
74
73
|
this.externalScripts = this.options.externalScripts;
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
|
-
_createClass(TranscriptHTMLBuilder, [{
|
|
76
|
+
return _createClass(TranscriptHTMLBuilder, [{
|
|
78
77
|
key: "createMetaElement",
|
|
79
78
|
value: function createMetaElement() {
|
|
80
79
|
const htmlData = `
|
|
@@ -99,32 +98,32 @@ let TranscriptHTMLBuilder = /*#__PURE__*/function () {
|
|
|
99
98
|
}, {
|
|
100
99
|
key: "createWebChatScriptElement",
|
|
101
100
|
value: function createWebChatScriptElement() {
|
|
102
|
-
var _this$externalScripts, _this$externalScripts2, _this$externalScripts3, _this$externalScripts4, _this$externalScripts5
|
|
103
|
-
return (_this$externalScripts = this.externalScripts) !== null && _this$externalScripts !== void 0 && (_this$
|
|
101
|
+
var _this$externalScripts, _this$externalScripts2, _this$externalScripts3, _this$externalScripts4, _this$externalScripts5;
|
|
102
|
+
return (_this$externalScripts = this.externalScripts) !== null && _this$externalScripts !== void 0 && (_this$externalScripts = _this$externalScripts.botframeworkWebChat) !== null && _this$externalScripts !== void 0 && _this$externalScripts.src ? this.createScriptElement((_this$externalScripts2 = this.externalScripts) === null || _this$externalScripts2 === void 0 || (_this$externalScripts2 = _this$externalScripts2.botframeworkWebChat) === null || _this$externalScripts2 === void 0 ? void 0 : _this$externalScripts2.src, (_this$externalScripts3 = this.externalScripts) === null || _this$externalScripts3 === void 0 || (_this$externalScripts3 = _this$externalScripts3.botframeworkWebChat) === null || _this$externalScripts3 === void 0 ? void 0 : _this$externalScripts3.integrity, (_this$externalScripts4 = this.externalScripts) === null || _this$externalScripts4 === void 0 || (_this$externalScripts4 = _this$externalScripts4.botframeworkWebChat) === null || _this$externalScripts4 === void 0 ? void 0 : _this$externalScripts4.crossOrigin, (_this$externalScripts5 = this.externalScripts) === null || _this$externalScripts5 === void 0 || (_this$externalScripts5 = _this$externalScripts5.botframeworkWebChat) === null || _this$externalScripts5 === void 0 ? void 0 : _this$externalScripts5.referrerPolicy) : this.createScriptElement(defaultLibraryScripts.botframeworkWebChat.src);
|
|
104
103
|
}
|
|
105
104
|
}, {
|
|
106
105
|
key: "createRxJsScriptElement",
|
|
107
106
|
value: function createRxJsScriptElement() {
|
|
108
|
-
var _this$
|
|
109
|
-
return (_this$
|
|
107
|
+
var _this$externalScripts6, _this$externalScripts7, _this$externalScripts8, _this$externalScripts9, _this$externalScripts0;
|
|
108
|
+
return (_this$externalScripts6 = this.externalScripts) !== null && _this$externalScripts6 !== void 0 && (_this$externalScripts6 = _this$externalScripts6.rxJs) !== null && _this$externalScripts6 !== void 0 && _this$externalScripts6.src ? this.createScriptElement((_this$externalScripts7 = this.externalScripts) === null || _this$externalScripts7 === void 0 || (_this$externalScripts7 = _this$externalScripts7.rxJs) === null || _this$externalScripts7 === void 0 ? void 0 : _this$externalScripts7.src, (_this$externalScripts8 = this.externalScripts) === null || _this$externalScripts8 === void 0 || (_this$externalScripts8 = _this$externalScripts8.rxJs) === null || _this$externalScripts8 === void 0 ? void 0 : _this$externalScripts8.integrity, (_this$externalScripts9 = this.externalScripts) === null || _this$externalScripts9 === void 0 || (_this$externalScripts9 = _this$externalScripts9.rxJs) === null || _this$externalScripts9 === void 0 ? void 0 : _this$externalScripts9.crossOrigin, (_this$externalScripts0 = this.externalScripts) === null || _this$externalScripts0 === void 0 || (_this$externalScripts0 = _this$externalScripts0.rxJs) === null || _this$externalScripts0 === void 0 ? void 0 : _this$externalScripts0.referrerPolicy) : this.createScriptElement(defaultLibraryScripts.rxJs.src, defaultLibraryScripts.rxJs.integrity, defaultLibraryScripts.rxJs.crossOrigin, defaultLibraryScripts.rxJs.referrerPolicy);
|
|
110
109
|
}
|
|
111
110
|
}, {
|
|
112
111
|
key: "createReactScriptElement",
|
|
113
112
|
value: function createReactScriptElement() {
|
|
114
|
-
var _this$
|
|
115
|
-
return (_this$
|
|
113
|
+
var _this$externalScripts1, _this$externalScripts10, _this$externalScripts11, _this$externalScripts12, _this$externalScripts13;
|
|
114
|
+
return (_this$externalScripts1 = this.externalScripts) !== null && _this$externalScripts1 !== void 0 && (_this$externalScripts1 = _this$externalScripts1.react) !== null && _this$externalScripts1 !== void 0 && _this$externalScripts1.src ? this.createScriptElement((_this$externalScripts10 = this.externalScripts) === null || _this$externalScripts10 === void 0 || (_this$externalScripts10 = _this$externalScripts10.react) === null || _this$externalScripts10 === void 0 ? void 0 : _this$externalScripts10.src, (_this$externalScripts11 = this.externalScripts) === null || _this$externalScripts11 === void 0 || (_this$externalScripts11 = _this$externalScripts11.react) === null || _this$externalScripts11 === void 0 ? void 0 : _this$externalScripts11.integrity, (_this$externalScripts12 = this.externalScripts) === null || _this$externalScripts12 === void 0 || (_this$externalScripts12 = _this$externalScripts12.react) === null || _this$externalScripts12 === void 0 ? void 0 : _this$externalScripts12.crossOrigin, (_this$externalScripts13 = this.externalScripts) === null || _this$externalScripts13 === void 0 || (_this$externalScripts13 = _this$externalScripts13.react) === null || _this$externalScripts13 === void 0 ? void 0 : _this$externalScripts13.referrerPolicy) : this.createScriptElement(defaultLibraryScripts.react.src);
|
|
116
115
|
}
|
|
117
116
|
}, {
|
|
118
117
|
key: "createReactDomScriptElement",
|
|
119
118
|
value: function createReactDomScriptElement() {
|
|
120
|
-
var _this$
|
|
121
|
-
return (_this$
|
|
119
|
+
var _this$externalScripts14, _this$externalScripts15, _this$externalScripts16, _this$externalScripts17, _this$externalScripts18, _this$externalScripts19;
|
|
120
|
+
return (_this$externalScripts14 = this.externalScripts) !== null && _this$externalScripts14 !== void 0 && (_this$externalScripts14 = _this$externalScripts14.reactDom) !== null && _this$externalScripts14 !== void 0 && _this$externalScripts14.src ? this.createScriptElement((_this$externalScripts15 = this.externalScripts) === null || _this$externalScripts15 === void 0 || (_this$externalScripts15 = _this$externalScripts15.reactDom) === null || _this$externalScripts15 === void 0 ? void 0 : _this$externalScripts15.src, (_this$externalScripts16 = this.externalScripts) === null || _this$externalScripts16 === void 0 || (_this$externalScripts16 = _this$externalScripts16.reactDom) === null || _this$externalScripts16 === void 0 ? void 0 : _this$externalScripts16.integrity, (_this$externalScripts17 = this.externalScripts) === null || _this$externalScripts17 === void 0 || (_this$externalScripts17 = _this$externalScripts17.reactDom) === null || _this$externalScripts17 === void 0 ? void 0 : _this$externalScripts17.crossOrigin, (_this$externalScripts18 = this.externalScripts) === null || _this$externalScripts18 === void 0 || (_this$externalScripts18 = _this$externalScripts18.reactDom) === null || _this$externalScripts18 === void 0 ? void 0 : _this$externalScripts18.referrerPolicy) : this.createScriptElement(((_this$externalScripts19 = this.externalScripts) === null || _this$externalScripts19 === void 0 || (_this$externalScripts19 = _this$externalScripts19.reactDom) === null || _this$externalScripts19 === void 0 ? void 0 : _this$externalScripts19.src) ?? defaultLibraryScripts.reactDom.src);
|
|
122
121
|
}
|
|
123
122
|
}, {
|
|
124
123
|
key: "createMarkdownItScriptElement",
|
|
125
124
|
value: function createMarkdownItScriptElement() {
|
|
126
|
-
var _this$
|
|
127
|
-
return (_this$
|
|
125
|
+
var _this$externalScripts20, _this$externalScripts21, _this$externalScripts22, _this$externalScripts23, _this$externalScripts24;
|
|
126
|
+
return (_this$externalScripts20 = this.externalScripts) !== null && _this$externalScripts20 !== void 0 && (_this$externalScripts20 = _this$externalScripts20.markdownIt) !== null && _this$externalScripts20 !== void 0 && _this$externalScripts20.src ? this.createScriptElement((_this$externalScripts21 = this.externalScripts) === null || _this$externalScripts21 === void 0 || (_this$externalScripts21 = _this$externalScripts21.markdownIt) === null || _this$externalScripts21 === void 0 ? void 0 : _this$externalScripts21.src, (_this$externalScripts22 = this.externalScripts) === null || _this$externalScripts22 === void 0 || (_this$externalScripts22 = _this$externalScripts22.markdownIt) === null || _this$externalScripts22 === void 0 ? void 0 : _this$externalScripts22.integrity, (_this$externalScripts23 = this.externalScripts) === null || _this$externalScripts23 === void 0 || (_this$externalScripts23 = _this$externalScripts23.markdownIt) === null || _this$externalScripts23 === void 0 ? void 0 : _this$externalScripts23.crossOrigin, (_this$externalScripts24 = this.externalScripts) === null || _this$externalScripts24 === void 0 || (_this$externalScripts24 = _this$externalScripts24.markdownIt) === null || _this$externalScripts24 === void 0 ? void 0 : _this$externalScripts24.referrerPolicy) : this.createScriptElement(defaultLibraryScripts.markdownIt.src, defaultLibraryScripts.markdownIt.integrity, defaultLibraryScripts.markdownIt.crossOrigin);
|
|
128
127
|
}
|
|
129
128
|
}, {
|
|
130
129
|
key: "createExternalScriptElements",
|
|
@@ -686,7 +685,6 @@ let TranscriptHTMLBuilder = /*#__PURE__*/function () {
|
|
|
686
685
|
return htmlData;
|
|
687
686
|
}
|
|
688
687
|
}]);
|
|
689
|
-
return TranscriptHTMLBuilder;
|
|
690
688
|
}();
|
|
691
689
|
const createChatTranscript = async function (transcript, facadeChatSDK) {
|
|
692
690
|
let renderAttachments = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
@@ -70,11 +70,11 @@ export const createOnNewAdapterActivityHandler = (chatId, userId, startTime) =>
|
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
const isValidMessage = activity => {
|
|
73
|
-
var _activity$channelData, _activity$channelData2
|
|
73
|
+
var _activity$channelData, _activity$channelData2;
|
|
74
74
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
75
75
|
const messageHasNoText = !(activity !== null && activity !== void 0 && activity.text);
|
|
76
76
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
77
|
-
const messageHasNoTags = !(activity !== null && activity !== void 0 && activity.channelData) || !(activity !== null && activity !== void 0 && (_activity$channelData = activity.channelData) !== null && _activity$channelData !== void 0 && _activity$channelData.tags) || (activity === null || activity === void 0
|
|
77
|
+
const messageHasNoTags = !(activity !== null && activity !== void 0 && activity.channelData) || !(activity !== null && activity !== void 0 && (_activity$channelData = activity.channelData) !== null && _activity$channelData !== void 0 && _activity$channelData.tags) || (activity === null || activity === void 0 || (_activity$channelData2 = activity.channelData) === null || _activity$channelData2 === void 0 || (_activity$channelData2 = _activity$channelData2.tags) === null || _activity$channelData2 === void 0 ? void 0 : _activity$channelData2.length) === 0;
|
|
78
78
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
79
79
|
const messageHasNoAttachments = !(activity !== null && activity !== void 0 && activity.attachments) || (activity === null || activity === void 0 ? void 0 : activity.attachments.length) === 0;
|
|
80
80
|
if (messageHasNoTags && messageHasNoText && messageHasNoAttachments) {
|